Docsity

TCP and Mobility: Adapting TCP for Wireless and Mobile Environments, Lecture notes of Mobile Computing

Toggle sidebar
bg1
IT 408: Mobile Computing
TCP and Mobility
Mobile Transport Layer
June 2012, MIT
Seyoum T.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download TCP and Mobility: Adapting TCP for Wireless and Mobile Environments and more Lecture notes Mobile Computing in PDF only on Docsity!

IT 408: Mobile Computing

TCP and Mobility

Mobile Transport Layer

Seyoum T.

Application

Transport

I-TCP Snoop TCP M-TCP

Network

Mobile IP WLAN

Data Link

Physical

TCP Basics

  • Reliable, ordered delivery
    • uses sequence numbers, acknowledgements, timeouts and retransmissions
    • End-to-end semantics (ACK after data rec’d)
  • Provides flow and congestion control
    • If TCP encounters packet loss, it assumes network internal congestion and slows down transmission
    • uses sliding window based buffers and feedback from receiver/network to adjust transmission rate

Congestion Control

  • On detecting a packet loss, TCP sender assumes that network congestion has occurred
  • On detecting packet loss, TCP sender drastically reduces the congestion window
  • Reducing congestion window reduces amount of data that can be sent per RTT

TCP and wireless/mobility

  • Error rates on wireless links are orders of magnitude higher compared to fixed fiber or copper links
  • TCP assumes congestion if packets dropped
    • typically wrong in wireless networks
    • often packet loss due to transmission errors
  • mobility itself can cause packet loss
    • nodes roam from one access point or foreign agent to another with packets in transit

Motivation for TCP adaptation

Performance of an unchanged TCP degrades severely for wireless/mobile environments

  • TCP cannot be changed fundamentally
    • Widely deployed in the fixed network
    • Internet interoperability requirement
  • TCP for wireless/mobility has to be compatible with “standard” TCP

Classical TCP Improvements

  • Goal is to increase TCP’s performance for wireless and mobile environments
  • Considerations
    • TCP performs poorly for wireless links
    • TCP within the fixed networks cannot be changed
  • Transmission errors are more common than congestion errors in wireless links - Hence requires explicit solutions for this

TCP Improvements…

  • Indirect TCP
  • Snoop TCP
  • Mobile TCP
  • Fast retransmit/fast recovery
  • Transaction oriented TCP

I-TCP…

  • Instead of the mobile host, the BS now terminates the standard TCP connection, acting as a proxy - The BS (access point) is now seen as the mobile host for the fixed host and as the fixed host for the mobile host - relays all data in both directions
  • Between the BS and the mobile host, a special TCP, adapted to wireless links, is used
  • A good place for segmenting the connection between mobile host and correspondent host is at the foreign agent of mobile IP - The foreign agent controls the mobility of the mobile host - hand over the connection to the next foreign agent when the mobile host moves on.

I-TCP…

  • FH sends packets to MH
    • FA sends acknowledgment to FH
    • FA forwards it to the MH
  • If MH receives the packet, it acknowledges the FA
  • If the packet gets lost in the wireless link
    • FH wouldn’t notice this
    • FA tries to retransmit it
  • Same procedures will be used if MH sends packets

I-TCP Cons

  • Breaks end-to-end TCP semantics
    • What will happen if the FA crashes after sending ACK of a given packet to FH?
    • The FH doesn’t know anything about the partitioning
  • BS (FA) can sometimes be a bottleneck
    • Increased handover latency
    • Over-buffering of packets at the FA
  • FA must be a trusted entity
    • TCP connections end at this point
    • If users apply end-to-end encryption, the foreign agent has to be integrated into all security mechanisms

Snooping TCP (S-TCP)

  • Improves on split connection
    • end-to-end semantics retained
  • The main function of the enhancement is to buffer data close to the mobile host to perform fast local retransmission in case of packet loss
  • FA buffers all packets with destination mobile host and additionally ‘snoops’ the packet flow in both directions to recognize acknowledgements - Inspects TCP header of data packets and ACK packets - Keeps track of packets in both direction - Local retransmission between BS and MH

Snoop TCP Advantages

  • End-to-end TCP semantic is preserved
  • Local recovery from wireless loses
  • The CN does not need to be changed; most of the enhancements are in the FA.
  • It does not need a handover of state (buffered packets) as soon as the MH moves to another FA - If data still exist in buffer, time-out will occur and CN will retransmit it

Snoop TCP Cons

  • Under long and frequent disconnections, sender times out
  • Not useful if TCP headers are encrypted