Docsity

Mobile Computing - TCP Function, Study notes of Mobile Computing

Toggle sidebar
bg1
1
TCP functions
•Offers connections between two
applications
•Within a connection TCP can give
certain guarantees, such as in-order
delivery or reliable data transmission
using transmission technique.
•It has built-in mechanisms to behave
in aā€ network friendlyā€ manner for eg.
If TCP encounters packet loss, it
assumes network internal congestion
and slows down the transmission rate.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Mobile Computing - TCP Function and more Study notes Mobile Computing in PDF only on Docsity!

TCP functions

• Offers connections between two

applications

• Within a connection TCP can give

certain guarantees, such as in-order

delivery or reliable data transmission

using transmission technique.

• It has built-in mechanisms to behave

in aā€ network friendlyā€ manner for eg.

If TCP encounters packet loss, it

assumes network internal congestion

and slows down the transmission rate.

Problems With TCP in Wireless

Networks

  • (^) The performance of TCP is generally lower in wireless

networks than in wired.

  • (^) TCP cannot distinguish problems that typically occur in

wireless networks from congestion. The congestion control

algorithms in TCP are based on the assumptions that data

is lost mainly due to congestion and that data loss due to

transmission errors is rare. Therefore, data loss is

interpreted as a signal of congestion in the network.

  • (^) Even in a wireless network, where data loss may not be

related to congestion, data loss still signals congestion to

the sender.

  • (^) TCP segments may be lost if the radio conditions are poor

and the link layer protocol provides a low reliability. After

some retransmission attempts the link layer protocol gives

up and leaves further error recovery to TCP.

  • (^) Handover events may also lead to data loss.
  • (^) TCP may also misinterpret a sudden increase in the round

trip time as data loss. If the delay is long enough for the

retransmission timer to expire before an acknowledgment

is received, then TCP misinterprets the delay as an

indication of data loss due to congestion

Factors Affecting TCP

Performance

• Channel Losses:

• Low Bandwidth

• Signal Fading

• Movement Across Cells

• Channel Asymmetry

• Link LAtency

TCP Improvement

• Indirect TCP (I-TCP)

• Snoop TCP

• Mobile TCP

• Fast Retransmit / Fast Recovery

• Transmission / Time-out Freezing

• Selective Retransmission

• Transaction-Oriented TCP (T/TCP)

Snooping TCP

  • (^) Snooping means secretive investigations into things that do not concern oneself. One of the drawback of I-TCP is the segmentation of the single TCP connection into two TCP connections. This loses the original end to end TCP semantic. The following TCP enhancement i-e snooping TCP works completely transparently & hence doesn’t loses end-to-end semantic. The main function of the enhancement is buffering of packets close to the mobile host to perform fast local retransmission in case of packet loss.
  • (^) In this approach, Foreign agent buffers all packets with destination mobile host & additionally ā€˜snoops’ the packet flow in both directions to recognize acknowledgments.
  • (^) Data transfer to the mobile host in snooping TCP takes place as follows:-
    • The foreign FA agent buffers data until is receives an acknowledgement from the mobile host, FA detects packet loss via duplicate ACKs or time-out and then perform faster retransmission compared to the correspondent host, this all is transparent for the fixed n/w.
  • (^) This would make the correspondent host believe that mobile host had received the data & would violate the end-to-end semantic in case of a foreign agent failure data transfer the mobile host with destination correspondent host works as follows as –FA snoops into the stream to detect gaps in the sequence no. of TCP. FA detects packet loss on the wireless link via sequence numbers, FA answers directly with a Nack to the MH. MH can now retransmit data with only a very short delay.
  • (^) Adv. & Disadv
    • Detect missing packets
    • Perform NACK
    • (^) Reordering of packets is done automatically at the correspondent host by TCP. Wired Internet Mobile Host End-to-End TCP Connection Correspondent Host Foreign Agent Local Re-transmission Snooping of ACKs Buffering of Data

TCP Improvement

  • (^) Mobile TCP (M-TCP) :- It has the same goals as I-TCP & snooping TCP i.e. It also uses a split connection based approach but tries to preserve end-to-end semantics. M-TCP adopts a three-level hierarchy-
  • (^) At the lowest level, mobile hosts communicate with mobile support stations in each cell; which are in turn controlled by a ā€œsupervisory hostā€ (SH); The SH is connected to the wired n/w and serves as the point where the connections is split.A TCP client exists at the SH.
  • (^) The TCP client receives the segment from the TCP sender & passes it to M-TCP client to send it to the wireless device. Thus, B/W the sender & the SH, standard TCP is used while M-TCP is used b/w the SH & the wireless device. M-TCP is designed to recover quickly from the wireless losses due to disconnections & to eliminate serial timeouts. TCP on the SH does not acknowledge packets it receive until the wireless device acknowledged then.
  • Fast retransmit / Fast recovery :-
  • (^) As moving to a new foreign agent can cause packet loss or time out at mobile hosts or corresponding hosts. TCP concludes congestion & goes into slow start, although there is no congestion. The idea is to artificially force the fast retransmit behavior on the mobile host 7 correspondent host side. As soon as the mobile host registers at a new foreign agent using mobile IP, it starts sending duplicated acknowledgements to correspondent hosts. The proposal is to send three duplicates. This forces the correspondent host to go into fast retransmit mode.

Configuration Parameter / Factors to adapt TCP to wireless environment

  1. Large Windows
  2. Limited Transmit
  3. Large MTU (Maximum Transfer Unit)
  4. Selective Acknowledgement
  5. Explicit Congestion Notification
  6. Timestamp