CS8603 Notes 003-4 Edubuzz360
CS8603 Notes 003-4 Edubuzz360
com
www.rejinpaul.com
UNIT IV
Mobile TCP - WAP – Architecture – WDP – WTLS – WTP – WSP – WAE - WTA -
Architecture - WML
The behaviour TCP shows after the detection of congestion is called slow
start
Instead of starting transmission at a fixed transmission window size, the
transmission is started at the lowest window size and then doubled after
each successful transmission.
If congestion is detected, the transmission window size is reduced to half of
its current size.
The sender always calculates a congestion window for a receiver.
1. The start size of the congestion window is one segment.
2. The sender sends one packet and waits for acknowledgement.
3. If this acknowledgement arrives, the sender increases the congestion
window by one, now sending two packets.
4. After arrival of the two corresponding acknowledgements, the sender again
adds 2 to the congestion window, one for each of the acknowledgements.
5. Now the congestion window equals 4.
6. This scheme doubles the congestion window every time the
acknowledgements come back, which takes one round trip time (RTT). This
is called the exponential growth of the congestion window in the slow start
mechanism.
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
The sender can retransmit the missing packet(s) before the timer expires.
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
It does not wait until the timer expires it retransmit a packet whenever
sender is getting 3 duplicate acknowledgements.
After retransmitting a packet it sets the window size is reduced to its half
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Standard TCP is used between the fixed computer and the access point.
The foreign agent (access point) acts as a proxy and relays all data in both
directions.
Packet delivery:
If CN sends packet, FA acknowledges packet and forwards packet to MN
If MN receives packet, it acknowledges
This acknowledgement only used by CN
Similarly if MN sends packet, FA acknowledges packet and forwards it to CN
Packet Loss:
Case1 : If a packet is lost on the wireless link due to a transmission error:
Then the CN would not notice this.
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Advantages:
1. The approach automatically falls back to standard TCP if the
enhancements stop working.
2. The CN does not need to be changed since most of the enhancements are
in the FA.
3. It does not need a handover of state as soon as the MH moves to another
FA.
4. It does not matter if the next FA uses the enhancement or not. If not, the
approach automatically falls back to the standard solution.
Disadvantages:
1. Snooping TCP does not isolate the behaviour of the wireless link as good
as I-TCP.
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
The SH is responsible for exchanging data to both the Standard host and
the Mobile host.
In this approach, we assume that the error bit rate is less as compared to
other wireless links.
So if any packet is lost, the retransmission has to occur from the original
sender and not by the SH.
1. The SH monitors the ACKs being sent by the MH.
2. If for a long period ACKs have not been received, then the SH assumes that
the MH has been disconnected.
3. If so the SH blocks the sender by setting its window size to 0.
4. Then the sender goes into persistent mode i.e. the sender will not try to
retransmit the data.
5. Now when the SH detects a connectivity established again with the MH,
the window of the sender is restored to original value.
Advantages of Mobile TCP:
1. M-TCP maintains the TCP end-to-end semantics.
2. If the MH is disconnected, it avoids useless retransmissions, slow starts or
breaking connections by simply shrinking the sender’s window to 0.
3. M-TCP does not buffer data so, no forwarding.
Disadvantages of Mobile TCP:
7
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Advantages:
1. It is simple.
2. Only minor changes in the MN software results in performance increase.
3. No FA or CN host has to be changed.
Disadvantages: Increased time delay in the retransmitted packets to move
from CN to MH.
4.3.5 Transmission/time-out freezing
In normal TCP, a disconnection takes place when the connection is lost for
a longer time.
Example: When a MN moving through a tunnel or passing black out areas,
the connection is lost and it needs to make connection once again, when it
comes back.
TCP freezing:
MAC layer is often able to detect interruption in advance
MAC can inform TCP layer of upcoming loss of connection
TCP stops sending, but does not assume a congested link.
MAC layer signals again if reconnected.
Advantages:
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Disadvantages:
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Fast Avoids slow start ate Simple and efficient Mixed layers, not
Retransmission roaming transparent.
/Fast Recovery
10
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Features:
Interoperable: Allowing terminals and software from different vendors to
communicate with networks from different providers
Scalable: Protocols and services should scale with customer needs and
number of customers
Efficient: Provision of QoS suited to the characteristics of the wireless
and mobile networks
Reliable: Provision of a consistent and predictable platform for deploying
services
Secure: Preservation of the integrity of user data, protection of devices
and services from security problems.
WAP Architecture:
WAP is designed in a layered fashion, so that it can be extensible, flexible,
and scalable. The WAP protocol stack is divided into five layers −
Layers of WAP Protocol:
Application Layer (Wireless Application Environment (WAE))
Session Layer(Wireless Session Protocol (WSP))
Transaction Layer(Wireless Transaction Protocol (WTP))
Security Layer(Wireless Transport Layer Security (WTLS))
Transport Layer(Wireless Datagram Protocol (WDP))
a) Bearer services
The basis for transmission of data is formed by different bearer services.
WAP uses existing data services and will integrate further services.
Example:
Message services such as short message service (SMS) of GSM, Circuit-
switched data such as high-speed circuit switched data (HSCSD) in GSM
Packet switched data such as general packet radio service (GPRS) in
GSM.
Many other bearers are supported, such as CDPD, IS-136,PHS.
No special interface has been specified between the bearer service
b) Transport Layer (Wireless Datagram Protocol (WDP))
The transport layer with its wireless datagram protocol (WDP) and the
additional wireless control message protocol (WCMP) offers a bearer
independent, reliable datagram-oriented service to the higher layers of the
WAP architecture
11
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
12
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
On the left side, different fixed networks, such as the traditional internet
and the public switched telephone network (PSTN), are shown.
Several new elements will be implemented between these networks
WAP-enabled wireless, mobile devices in a wireless network on the right-
hand side.
To browse web pages with handheld devices, a wireless mark-up language
(WML) has been defined in WAP.
Special filters within the fixed network can translate HTML into WML, web
servers can already provide pages in WML, or the gateways between the fixed
13
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
and wireless network can translate HTML into WML. These gateways not
only filter pages but also act as proxies for web access.
WML is additionally converted into binary WML for more efficient
transmission.
Wireless telephony application (WTA) server translates all incoming signals
into WML events displayed at the handheld device
14
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
15
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
16
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
17
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
18
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
19
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
20
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
21
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
22
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Origin server: Standard web servers running HTTP and generating content
using scripts, providing pages using a database, or applying any other
technology. Origin servers will respond to the request.
Then the gateway encodes the response and its content & then transfers
the encoded response with the content to the client.
Push services: The WAE logical model also includes push services.
Then an origin server pushes content to the gateway.
The gateway encodes the pushed content and transmits the encoded push
content to the client.
User Agent: Several user agents can reside within a client.
User agents include such items as: browsers, phonebooks, message
editors etc.
WAE does not specify the number of user agents or their functionality.
User agent handles access to, and interaction with, mobile telephone
features.
23
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
a) Client
The client is connected via a mobile network with a WTA server, other
telephone networks and a WAP gateway.
A WML user agent running on the client.
24
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
The client may have voice and data connections over the network.
c) WTA server: One difference between WTA servers and other servers besides
security is the tighter control of QoS.
d) Other servers: Other origin servers can be connected via the WAP gateway.
Other servers located in the internet, may not be able to give as good QoS
guarantees as the network operator.
f) WTA user agent: The WTA user agent has a very rigid and real-time context
management for browsing the web compared to the standard WML user agent.
Interaction between a WTA client, a WTA gateway, a WTA server, the mobile
network and a voice box server:
25
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
26
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com
www.edubuzz360.com
www.rejinpaul.com
Either these decks can be static files on the server or they can be
dynamically generated.
WML describes the intent of interaction in an abstract manner. The user
agent on a handheld device has to decide how to best present all elements
of a card.
Features of WML:
Text and images: WML gives hints how text and images can be presented
to a user. However, the exact presentation of data to a user is up to the user
agent running on the handheld device.
User interaction: WML supports different elements for user input.
Examples: text entry controls for text or password entry, option selections
or controls for task invocation.
Navigation: WML offers a history mechanism with navigation through the
browsing history, hyperlinks and other inter card navigation elements.
Context management: WML allows for saving the state between different
decks without server interaction so state can be shared across different
decks.
WML HTML
Mark-up language for wireless Mark-up language for wired
communication communication
Makes use of variables Does not use of variables
WML script stored in a separate file
JavaScript is embedded in the same
HTML file
Images are stores as WBMP(Wireless Images are stores as GIF, JPEG or
Bitmap) PNG
WBMP is a 2 bit image Size of the images are much larger in
HTML
Case sensitive Not Case sensitive
WML has fewer tags than HTML HTML has more tags than WML
A set of ‘WML cards’ make a ‘DECK’ A set of ‘HTML pages’ make a ‘SITE’
WMLScript:
27
https://play.google.com/store/apps/details?id=com.sss.edubuzz360
Download Useful Materials @ www.rejinpaul.com