Presentation is loading. Please wait.

Presentation is loading. Please wait.

CMPE 257 - Wireless and Mobile Networking 1 CMPE 257 Spring 2006 End-to-End Protocols 2 Wireless and Mobile Networks.

Similar presentations


Presentation on theme: "CMPE 257 - Wireless and Mobile Networking 1 CMPE 257 Spring 2006 End-to-End Protocols 2 Wireless and Mobile Networks."— Presentation transcript:

1 CMPE 257 - Wireless and Mobile Networking 1 CMPE 257 Spring 2006 End-to-End Protocols 2 Wireless and Mobile Networks

2 CMPE 257 - Wireless and Mobile Networking 2 Announcements Exam: –June 7 th in class. Project presentations and demos: –June 12 th. 4-7pm. Homework 4 (routing) is up.

3 CMPE 257 - Wireless and Mobile Networking 3 Today E2E protocols continued.

4 CMPE 257 - Wireless and Mobile Networking 4 E2E Protocols Reliable point-to-point. Reliable multipoint.

5 CMPE 257 - Wireless and Mobile Networking 5 Reliable Point-to-Point Transport: Outline TCP/IP basics. Impact of transmission errors on TCP performance. Approaches to improve TCP performance on wireless networks. –Classification. TCP on single-hop infrastructure-based wireless networks. TCP on MANETs.

6 CMPE 257 - Wireless and Mobile Networking 6 Classification E2E versus cross-layer approaches. –E2E approaches: connection end points try to distinguish between congestion and non- congestion losses. –Cross-layer approaches: combination of e2e and intermediate node participation.

7 CMPE 257 - Wireless and Mobile Networking 7 Cross-Layer Approaches Link layer error recovery. Link layer retransmission. TCP-awareness: Snoop [Balakrishnan95] –TCP-unawareness. Split connection.

8 CMPE 257 - Wireless and Mobile Networking 8 TCP-Aware Link Layer Retransmission

9 CMPE 257 - Wireless and Mobile Networking 9 Snoop Protocol [Balakrishnan95] More sophisticated link-level retransmission scheme. End-to-end semantics retained. Soft state at base station.

10 CMPE 257 - Wireless and Mobile Networking 10 Snoop Protocol FHMHBS wireless physical link network transport application physical link network transport application physical link network transport application rxmt Per TCP-connection state TCP connection

11 CMPE 257 - Wireless and Mobile Networking 11 Snoop Protocol Buffers data packets at base station. –Data sent by FH not yet ack’d by MH. –Allow link layer retransmission. When dupacks received by BS from MH (or local timeout), retransmit on wireless link, if packet in buffer. Prevents fast retransmit by TCP sender at FH by suppressing dupacks at BS.

12 CMPE 257 - Wireless and Mobile Networking 12 Snoop : Example FHMHBS 40393738 3634 Example assumes delayed ack - every other packet ack’d 36 37 38 35 TCP state maintained at link layer

13 CMPE 257 - Wireless and Mobile Networking 13 Snoop : Example 41403839 3634 36 37 38 3539

14 CMPE 257 - Wireless and Mobile Networking 14 Snoop : Example 42413940 36 Duplicate acks are not delayed 36 dupack 37 38 39 40

15 CMPE 257 - Wireless and Mobile Networking 15 Snoop : Example 40 36 Duplicate acks 414342 37 38 39 40 41

16 CMPE 257 - Wireless and Mobile Networking 16 Snoop : Example FHMHBS 41 36 374443 36 37 38 39 40 41 42 Discard dupack Dupack triggers retransmission of packet 37 from base station BS needs to be TCP-aware to be able to interpret TCP headers

17 CMPE 257 - Wireless and Mobile Networking 17 Snoop : Example 37 36 424544 36 37 38 39 40 41 42 43 36

18 CMPE 257 - Wireless and Mobile Networking 18 Snoop : Example 42 36 434645 36 37 38 39 40 41 42 43 41 36 44 TCP sender does not fast retransmit

19 CMPE 257 - Wireless and Mobile Networking 19 Snoop : Example 43 36 444746 36 37 38 39 40 41 42 43 41 36 44 TCP sender does not fast retransmit 45

20 CMPE 257 - Wireless and Mobile Networking 20 Snoop : Example FHMHBS 44 36 454847 36 42 43 41 36 44 45 43 46

21 CMPE 257 - Wireless and Mobile Networking 21 Performance 2 Mbps Wireless link

22 CMPE 257 - Wireless and Mobile Networking 22 Snoop Protocol: Advantages Snoop prevents fast retransmit from sender despite transmission errors and out-of-order delivery on the wireless link. If wireless link delay-bandwidth product less than 4 packets: simple (TCP-unaware) link level retransmission scheme can suffice. –Since delay-bandwidth product is small, retransmission scheme can deliver lost packet without causing MH to send 3 dupacks.

23 CMPE 257 - Wireless and Mobile Networking 23 Snoop Protocol: Advantages Higher throughput can be achieved. Local recovery from wireless losses. Fast retransmit not triggered at sender despite out-of-order link layer delivery. End-to-end semantics retained. Soft state at base station. –Loss of the soft state affects performance, but not correctness.

24 CMPE 257 - Wireless and Mobile Networking 24 Snoop Protocol:Disadvantages Link layer at base station needs to be TCP- aware. Not useful if TCP headers are encrypted (IPsec). Cannot be used if TCP data and TCP ACKs traverse different paths.

25 CMPE 257 - Wireless and Mobile Networking 25 Delayed Dupacks Approach TCP-unaware approximation of TCP-aware link layer. Attempts to imitate Snoop without making BS TCP- aware. Snoop implements two features at BS: –Link layer retransmission. –Dupack handling: reduced interference between TCP and link layer retransmissions (drop dupacks).

26 CMPE 257 - Wireless and Mobile Networking 26 Delayed Dupacks Implements same two features: –at BS : link layer retransmission. –at MH : reducing interference between TCP and link layer retransmissions (by delaying dupacks).

27 CMPE 257 - Wireless and Mobile Networking 27 Delayed Dupacks Protocols TCP receiver delays dupacks (third and subsequent) for interval D, when out-of-order packets received. Dupack delay intended to give link level retransmit time to succeed. Benefit: Delayed dupacks can result in recovery from a transmission loss without triggering a response from the TCP sender. Disadvantage: Recovery from congestion losses delayed.

28 CMPE 257 - Wireless and Mobile Networking 28 Delayed Dupacks Protocols Delayed dupacks released after interval D, if missing packet not received. Link layer maintains state to allow retransmission.

29 CMPE 257 - Wireless and Mobile Networking 29 Delayed Dupacks: Example 40393738 3634 Example assumes delayed ack - every other packet ack’d Link layer acks are not shown 36 37 38 35 Link layer state

30 CMPE 257 - Wireless and Mobile Networking 30 Delayed Dupacks: Example BS 41403839 3634 36 37 38 39 35 Removed from BS link layer buffer on receipt of a link layer ack (LL acks not shown in figure)

31 CMPE 257 - Wireless and Mobile Networking 31 Delayed Dupacks: Example 42413940 36 Duplicate acks are not delayed 36 dupack 37 38 39 40

32 CMPE 257 - Wireless and Mobile Networking 32 Delayed Dupacks: Example 40 36 Duplicate acks 414342 37 38 39 40 41 Original ack

33 CMPE 257 - Wireless and Mobile Networking 33 Delayed Dupacks: Example 41 36 374443 36 37 39 40 41 42 Base station forwards dupacks dupackdupacks Delayed dupack

34 CMPE 257 - Wireless and Mobile Networking 34 Delayed Dupacks: Example 37 36 424544 36 37 40 41 42 36 dupacks Delayed dupacks 43

35 CMPE 257 - Wireless and Mobile Networking 35 Delayed Dupacks : Example 42434645 36 37 41 42 43 41 TCP sender does not fast retransmit 44 Delayed dupacks are discarded if lost packet received before delay D expires

36 CMPE 257 - Wireless and Mobile Networking 36 Delayed Dupacks [Vaidya99] 2 Mbps wireless duplex link with 20 ms delay No congestion losses 20 ms 10 Mbps2 Mbps

37 CMPE 257 - Wireless and Mobile Networking 37 Delayed Dupacks [Vaidya99] 5% packet loss due to congestion 20 ms 10 Mbps2 Mbps

38 CMPE 257 - Wireless and Mobile Networking 38 Delayed Dupacks: Advantages Link layer need not be TCP-aware. Can be used even if TCP headers are encrypted. Works well for relatively small wireless RTT (compared to end-to-end RTT). –Relatively small D sufficient in such cases.

39 CMPE 257 - Wireless and Mobile Networking 39 Delayed Dupacks: Disadvantages Right value of dupack delay D dependent on wireless link properties. Mechanisms to determine D needed. Delays dupacks for congestion losses too, delaying congestion loss recovery.

40 CMPE 257 - Wireless and Mobile Networking 40 Cross-Layer Approaches Link layer error recovery. Link layer retransmission. –TCP-awareness. –TCP-unawareness. Split connection.

41 CMPE 257 - Wireless and Mobile Networking 41 Split Connection Approach

42 CMPE 257 - Wireless and Mobile Networking 42 Split Connection Approach End-to-end TCP connection is broken into one connection on the wired part of route and one over wireless part.

43 CMPE 257 - Wireless and Mobile Networking 43 Split Connection Approach Connection between wireless host MH and fixed host FH goes through base station BS. FH-MH = FH-BS + BS-MH FHMHBS Base StationMobile Host Fixed Host

44 CMPE 257 - Wireless and Mobile Networking 44 Split Connection Approach Split connection results in independent control for the two parts. –Congestion/error control protocols, packet size, time-outs, may be different for each part. FHMHBS Base StationMobile Host Fixed Host

45 CMPE 257 - Wireless and Mobile Networking 45 Split Connection Approach wireless physical link network transport application physical link network transport application physical link network transport application rxmt Per-TCP connection state TCP connection

46 CMPE 257 - Wireless and Mobile Networking 46 Split Connection Approach : Classification Hides transmission errors from sender Primary responsibility at base station If specialized transport protocol used on wireless, then wireless host also needs modification

47 CMPE 257 - Wireless and Mobile Networking 47 Split Connection Approach: Example Indirect TCP [Bakre94] –FH - BS connection : Standard TCP. –BS - MH connection : Standard TCP.

48 CMPE 257 - Wireless and Mobile Networking 48 Split Connection: Advantages BS-MH connection can be optimized independent of FH-BS connection. –Different congestion/error control. Local recovery of errors. –Faster recovery due to relatively shorter RTT on wireless link. Good performance achievable using appropriate BS-MH protocol. –Standard TCP on BS-MH performs poorly when multiple packet losses per window. –Selective ACKs improve performance.

49 CMPE 257 - Wireless and Mobile Networking 49 Split Connection: Disadvantages End-to-end semantics violated. –ACK may be delivered to sender before data delivered to receiver. FHMHBS 40 39 3738 36 40

50 CMPE 257 - Wireless and Mobile Networking 50 Split Connection: Disadvantages BS retains hard state. –BS failure can result in loss of data. If BS fails, packets 39 and 40 will be lost. Both ack’d to sender;sender does not buffer. FHMHBS 40 39 3738 36 40

51 CMPE 257 - Wireless and Mobile Networking 51 Split Connection: Disadvantages BS retains hard state. Hand-off latency increases due to state transfer –Data that has been ack’d to sender must be moved to new base station.

52 CMPE 257 - Wireless and Mobile Networking 52 Handoff FHMHBS 40 39 3738 36 40 MH New base station Hand-off 40 39

53 CMPE 257 - Wireless and Mobile Networking 53 Split Connection: Disadvantages Buffer space needed at BS for each TCP connection. –BS buffers tend to get full, when wireless link slower (one window worth of data on wired connection could be stored at the base station for each split connection). Extra copying of data at BS –Copying from FH-BS socket buffer to BS-MH socket buffer. –Increases end-to-end latency.

54 CMPE 257 - Wireless and Mobile Networking 54 Split Connection: Disadvantages May not be useful if data and acks traverse different paths. –Example: data on a satellite wireless hop, acks on a dial-up channel. FHMH data ack BS

55 CMPE 257 - Wireless and Mobile Networking 55 E2E Approaches Strict E2E versus E2E with intermediate node involvement. E2E with intermediate node involvement: –Explicit notifications.

56 CMPE 257 - Wireless and Mobile Networking 56 Explicit Notification Schemes General Philosophy Approximate ideal TCP behavior. –Ideally, TCP sender should simply retransmit a packet lost due to transmission errors without taking any congestion control actions. A node determines whether packets are lost due to errors and informs sender using an “explicit notification”. Sender, on receiving the notification, does not reduce congestion window, but retransmits lost packet.

57 CMPE 257 - Wireless and Mobile Networking 57 Explicit Notification Schemes Motivated by Explicit Congestion Notification (ECN) proposals [Floyd94]. Variations proposed in literature differ in: Who sends explicit notification. How they decide to send explicit notification. What sender does on receiving notification.

58 CMPE 257 - Wireless and Mobile Networking 58 Explicit Loss Notification [Balakrishnan98] MH is the TCP sender. Wireless link first on path from sender to receiver. Base station keeps track of holes in packet sequence. When a dupack is received from the receiver, BS compares the dupack sequence number with recorded holes. –If there is a match, an ELN bit is set in dupack.

59 CMPE 257 - Wireless and Mobile Networking 59 ELN When sender receives dupack with ELN set, it retransmits packet, but does not reduce congestion window. MHFHBS 4321134 wireless Record hole at 2 11 11 TCP sender TCP receiver Dupack with ELN bit set

60 CMPE 257 - Wireless and Mobile Networking 60 Explicit Loss Notification [Biaz99thesis] Adapts ELN proposed in [Balakrishnan98] for the case when MH is receiver. Caches TCP sequence numbers at base station, similar to Snoop. But does not cache data packets, unlike Snoop. Duplicate acks are tagged with ELN bit before being forwarded to sender if sequence number for the lost packet is cached at BS. Sender takes appropriate action on receiving ELN.

61 CMPE 257 - Wireless and Mobile Networking 61 ELN [Biaz99thesis] 37 36 37 3839 38 Sequence numbers cached at base station 37 Dupack with ELN TCP sender TCP receiver

62 CMPE 257 - Wireless and Mobile Networking 62 Explicit Bad State Notification [Bakshi97] MH is TCP receiver. BS attempts to deliver packets to MH using link layer retransmission scheme. If packet cannot be delivered using small number of retransmissions, BS sends a Explicit Bad State Notification (EBSN) message to TCP sender. When TCP sender receives EBSN, it resets RTO. –Timeout delayed when wireless channel in bad state.

63 CMPE 257 - Wireless and Mobile Networking 63 Partial Ack Protocols [Cobb95][Biaz97] Send two types of acknowledgements. Partial ACK informs sender that a packet was received by an intermediate host (typically, base station). Normal TCP cumulative ACK needed by sender for reliability purposes.

64 CMPE 257 - Wireless and Mobile Networking 64 Partial Ack Protocols When packet for which partial ack is received detected to be lost, sender does not reduce its congestion window –Loss assumed to be due to wireless errors. 37 36 Partial ack 37 Cumulative ack

65 CMPE 257 - Wireless and Mobile Networking 65 Variations Base station may or may not locally buffer and retransmit lost packets.

66 CMPE 257 - Wireless and Mobile Networking 66 Announcements Today: –Finish E2E protocols (including multicast). –Course evaluations. Exam on Wed. 06.07. –Topics: everything up to E2E protocols. –Includes: Models and Architectures. MAC. Routing (unicast and multicast). Wireless Internetworking. Bluetooth. DTR. E2E Protocols Project: 06.12 –Project reports. –Project presentations.

67 CMPE 257 - Wireless and Mobile Networking 67 Recap’ing: Transport Protocols Reliable point-to-point transport. –TCP on single-hop infrastructure-based wireless networks. Cross-layer schemes. Strict E2E schemes. –TCP on MANETs. Reliable multipoint transport.

68 CMPE 257 - Wireless and Mobile Networking 68 Strict E2E Schemes

69 CMPE 257 - Wireless and Mobile Networking 69 Receiver-Based Scheme [Biaz98Asset] MH is TCP receiver. Receiver uses heuristics to “guess” cause of packet loss. When receiver believes that packet loss is due to errors, it sends notification to sender. TCP sender, on receiving notification, retransmits lost packet, without reducing congestion window.

70 CMPE 257 - Wireless and Mobile Networking 70 Heuristics Receiver uses inter-arrival time between consecutively received packets to guess cause of packet loss. On determining a packet loss as being due to errors, the receiver may: –Tag corresponding dupacks with an ELN bit, or –Send an explicit notification to sender.

71 CMPE 257 - Wireless and Mobile Networking 71 Receiver-Based Scheme Packet loss due to congestion: FHMHBS 101211 FHMHBS 11 1012 T Congestion loss

72 CMPE 257 - Wireless and Mobile Networking 72 Receiver-Based Scheme Packet loss due to transmission error: FHMHBS 101211 FHMHBS 101112 Error loss 2 T

73 CMPE 257 - Wireless and Mobile Networking 73 Sender-Based Discrimination Scheme

74 CMPE 257 - Wireless and Mobile Networking 74 Sender-Based Discrimination [Biaz98ic3n,Biaz99techrep] Sender can attempt to determine cause of a packet loss. If packet loss determined to be due to errors, do not reduce congestion window. Sender can only use statistics based on round-trip times, window sizes, and loss pattern. –Unless network provides more information (example: explicit loss notification)

75 CMPE 257 - Wireless and Mobile Networking 75 Heuristics for Congestion Avoidance Define condition C as a function of congestion window size and observed RTTs. Condition C evaluated for new RTT. If (C == True), reduce congestion window.

76 CMPE 257 - Wireless and Mobile Networking 76 Heuristics for Congestion Avoidance: Some proposals TCP Vegas [Brakmo94] expected throughput ET = W(i) / RTTmin actual throughput AT = W(i) / RTT(i) Condition C = ( ET-AT > beta)

77 CMPE 257 - Wireless and Mobile Networking 77 Sender-Based Heuristics Record latest value evaluated for condition C. When a packet loss is detected: –If last evaluation of C is TRUE, assume packet loss due to congestion. –Else assume packet loss due to transmission errors. If packet loss determined to be due to errors, do not reduce congestion window

78 CMPE 257 - Wireless and Mobile Networking 78 Sender-Based Heuristics: Disadvantage Does not work quite well enough!! Reason Not much correlation between observed short-term statistics, and onset of congestion.

79 CMPE 257 - Wireless and Mobile Networking 79 Sender-Based Heuristics: Advantages Only sender needs to be modified. Needs further investigation to develop better heuristics. –Investigate longer-term heuristics.

80 CMPE 257 - Wireless and Mobile Networking 80 TCP in Multi-Hop Ad Hoc Networks (MANETs)

81 CMPE 257 - Wireless and Mobile Networking 81 Issues Route changes due to mobility. –Frequent route changes may cause OOO delivery. Wireless transmission errors. –Problem compounded due to multiple hops. MAC –MAC protocol can impact TCP performance.

82 CMPE 257 - Wireless and Mobile Networking 82 Throughput over Multi-Hop Wireless Paths [Gerla99] When contention-based MAC protocol is used, connections over multiple hops are at a disadvantage compared to shorter connections. –They have to contend for wireless access at each hop. –Delay or drop probability increases with number of hops.

83 CMPE 257 - Wireless and Mobile Networking 83 Improving TCP Performance in MANETs Classification: –Cross-layer. –Strictly end-to-end. First, we’ll look at cross-layer approaches…

84 CMPE 257 - Wireless and Mobile Networking 84 Analysis of TCP Performance over MANETs [Holland99] Impact of mobility. Simulation study. Performance metric: throughput. –Baseline: ideal (expected) throughput. Upper bound. Static network.

85 CMPE 257 - Wireless and Mobile Networking 85 Throughput versus Hops TCP throughput over 2 Mbps 802.11 MAC, fixed, linear MANET.

86 CMPE 257 - Wireless and Mobile Networking 86 Expected Throughput Ti is measured throughput for i hops using static linear chain topology. ti time duration of TCP connection containing i hops.

87 CMPE 257 - Wireless and Mobile Networking 87 Throughput versus speed Speed (m/s) Average Throughput (Over 50 runs) Expected Actual Throughput decreases with speed…

88 CMPE 257 - Wireless and Mobile Networking 88 Throughput versus Speed Mobility pattern # Actual throughput 20 m/s 30 m/s But not always…

89 CMPE 257 - Wireless and Mobile Networking 89 Impact of Mobility TCP Throughput Ideal throughput (Kbps) Actual throughput 2 m/s10 m/s

90 CMPE 257 - Wireless and Mobile Networking 90 Impact of Mobility Ideal throughput Actual throughput 20 m/s 30 m/s

91 CMPE 257 - Wireless and Mobile Networking 91 mobility causes link breakage, resulting in route failure TCP data and acks en route discarded Why Throughput Degrades TCP sender starts sending packets again Route is repaired No throughput despite route repair

92 CMPE 257 - Wireless and Mobile Networking 92 mobility causes link breakage, resulting in route failure TCP data and acks en route discarded Why Throughput Degrades? TCP sender times out. Backs off timer. Route is repaired TCP sender resumes sending Larger route repair delays especially harmful No throughput despite route repair

93 CMPE 257 - Wireless and Mobile Networking 93 Why Throughput Improves? Low Speed Scenario C B D A C B D A C B D A 1.5 second route failure Route from A to D is broken for ~1.5 second. When TCP sender times out after 1 second, route still broken. TCP times out after another 2 seconds, and only then resumes.

94 CMPE 257 - Wireless and Mobile Networking 94 Why Throughput Improves? Higher Speed Scenario C B D A C B D A C B D A 0.75 second route failure Route from A to D is broken for ~ 0.75 second. Before TCP sender times (after 1 second), route is repaired.

95 CMPE 257 - Wireless and Mobile Networking 95 Why Throughput Improves? General Principle TCP timeout interval somewhat independent of speed. Network state at higher speed, when timeout occurs, may be more favorable than at lower speed. Network state: –Link/route status. –Route caches. –Congestion.

96 CMPE 257 - Wireless and Mobile Networking 96 How to Improve Throughput Network feedback. Inform TCP of route failure explicitly. Let TCP know when route is repaired. –Probing. –Explicit notification. Reduce repeated TCP timeouts and backoff.

97 CMPE 257 - Wireless and Mobile Networking 97 ELFN Explicit Link Failure Notification. Piggyback notification onto DSR’s route failure message to sender. TCP sender responds by disabling congestion control until route is fixed. –Disable retransmission timers. –When ACK is received, TCP restores state and resumes normal operation. TCP sender probes the network until it gets an ACK, which indicates it can resume normal operation.

98 CMPE 257 - Wireless and Mobile Networking 98 Performance Improvement Without network feedback Ideal throughput 2 m/s speed With feedback Actual throughput

99 CMPE 257 - Wireless and Mobile Networking 99 Performance Improvement Without network feedback With feedback Ideal throughput 30 m/s speed Actual throughput

100 CMPE 257 - Wireless and Mobile Networking 100 Performance with Explicit Notification

101 CMPE 257 - Wireless and Mobile Networking 101 Issues: Network Feedback Network knows best (why packets are lost). + Network feedback beneficial. - Need to modify transport & network layer to receive/send feedback Need mechanisms for information exchange between layers.

102 CMPE 257 - Wireless and Mobile Networking 102 Impact of Caching Route caching has been suggested as a mechanism to reduce route discovery overhead (e.g., DSR). Each node may cache one or more routes to given destination. When route from S to D detected as broken, node S may: –Use another cached route from local cache, or –Obtain a new route using cached route at another node.

103 CMPE 257 - Wireless and Mobile Networking 103 To Cache or Not to Cache Average speed (m/s) Actual throughput (as fraction of expected throughput)

104 CMPE 257 - Wireless and Mobile Networking 104 Why Performance Degrades With Caching When a route is broken, route discovery returns cached route from local cache or from nearby node. Cached routes may also be broken. timeout due to route failure timeout, cached route is broken timeout, second cached route also broken

105 CMPE 257 - Wireless and Mobile Networking 105 To Cache or Not to Cache Caching can result in faster route “repair”. But, faster does not necessarily mean correct. If incorrect repairs occur often enough, caching performs poorly. Need mechanisms for determining when cached routes are stale.

106 CMPE 257 - Wireless and Mobile Networking 106 Caching and TCP Performance Caching can reduce overhead of route discovery even if cache accuracy is not very high. But if cache accuracy is not high enough, gains in routing overhead may be offset by loss of TCP performance due to multiple timeouts.

107 CMPE 257 - Wireless and Mobile Networking 107 Window Size After Route Repair When route breaks: may be too optimistic or may be too conservative. Better be conservative than overly optimistic –Reset window to small value after route repair. –TCP needs to be aware of route repair (Route Failure and Route Re-establishment Notifications). –Impact low on paths with small delay-bw product.

108 CMPE 257 - Wireless and Mobile Networking 108 RTO After Route Repair If new route longer, RTO may be too small, leading to timeouts. New RTO = function of old RTO, old route length, and new route length. –Example: new RTO = old RTO * new route length / old route length –Not evaluated yet.

109 CMPE 257 - Wireless and Mobile Networking 109 TCP-Feedback [Chandran01] TCP-F. Similar to ELFN. Relies on notification from routing layer. –When route breakage is detected, a Route Failure Notification (RFN) sent to TCP sender. TCP sender goes to “Snooze” state when RFN received. –Freezes all timers and congestion control. –Stops sending data. TCP sender resumes normal operation when it gets a Route Re-establishment Notification (RRN). –If it does not get RRN within a certain time interval, leaves snooze state. –It invokes congestion control before transmitting data.

110 CMPE 257 - Wireless and Mobile Networking 110 Ad Hoc TCP [Liu01] ATCP also uses network-layer feedback. Implemented as a layer between TCP and network layer. –Listens to ECNs and ICMP (e.g., destination unreachable) messages. TCP ATCP Network Layer

111 CMPE 257 - Wireless and Mobile Networking 111 ATCP (Cont’d) Depending on network notification, TCP sender switches to different states. E.g., “destination unreachable” causes TCP sender to enter “persist” state, during which no packets are sent until route is mended. ECNs invoke TCP congestion control. 3 Dupacks are used as indication of transmission errors. –New ACK resumes TCP’s normal operation.

112 CMPE 257 - Wireless and Mobile Networking 112 Improving TCP Performance in MANETs Classification: –Cross-layer. –Strictly end-to-end.

113 CMPE 257 - Wireless and Mobile Networking 113 TCP Over Different Routing Protocols [Dyer2001] Impact of routing algorithm on TCP performance. –Metrics: connect time, throughput and overhead. On-demand routing. –AODV and DSR. –ADV: adaptive on-demand with proactive updates. Sender-based heuristic to improve TCP’s performance.

114 CMPE 257 - Wireless and Mobile Networking 114 Fixed-RTO TCP does not exponentially backoff the RTO. Uses sender-based heuristic to distinguish between congestion and “route failure” losses. –Route failure assumed if 2 consecutive timeouts. –Unack’d packet retransmitted. –No RTO backoff in the second (and +) timeout. –RTO remains fixed until retransmission is ack’d.

115 CMPE 257 - Wireless and Mobile Networking 115 Improving TCP under OOO Delivery [Wang02]

116 CMPE 257 - Wireless and Mobile Networking 116 Out-of-Order Packet Delivery Route changes may result in out-of-order (OOO) delivery. Significantly OOO delivery confuses TCP, triggering congestion control. Potential solutions: –Avoid OOO delivery by ordering packets before delivering to IP layer –Turn off fast retransmit. Can result in poor performance in presence of congestion

117 CMPE 257 - Wireless and Mobile Networking 117 TCP DOOR Detect and respond to out-of-order (OOO) packets. –Differentiate between OOO and congestion losses. OOO delivery caused by: –Retransmissions. –Route changes.

118 CMPE 257 - Wireless and Mobile Networking 118 Detecting OOO OOO delivery can happen in either direction. Sender detects OOO (duplicate) ACKs. Receiver detects OOO data packets.

119 CMPE 257 - Wireless and Mobile Networking 119 OOO ACKs Sequence number of packet being ACKed: monotonically increasing. –Why? ACKs are not re-transmitted. For DUPACKs, add 1-byte to count DUPACKs. ADSN: ACK duplication sequence number. TCP header option. Each DUPACK carries different ADSN.

120 CMPE 257 - Wireless and Mobile Networking 120 OOO Data Packets At receiver. Why comparing sequence numbers doesn’t work? –Retransmissions: higher sequence #’s can arrive earlier. –Out-of-sequence event. Use extra sequence number: incremented with every data packet, including retransmissions. –2-byte TCP packet sequence number (TPSN) as TCP option. –Or timestamp. Sender needs to be notified.

121 CMPE 257 - Wireless and Mobile Networking 121 OOO Response At sender. 2 types of response: –Temporarily disable congestion control for fixed time interval T1. –If in congestion avoidance mode in the last T2 time interval, go back to prior state.

122 CMPE 257 - Wireless and Mobile Networking 122 Evaluation Simulation environment: –ns-2 + CMU extensions. –Mobility: random way-point. –Workload: single TCP between fixed S and R with and without congestion.

123 CMPE 257 - Wireless and Mobile Networking 123 Results Significant goodput improvement (~50%) when 2 response mechanisms used. Sender versus receiver detection. –Seem to perform the same. –Correlation between OOO ACKs and data. Response mechanisms. –Both in place show better performance.


Download ppt "CMPE 257 - Wireless and Mobile Networking 1 CMPE 257 Spring 2006 End-to-End Protocols 2 Wireless and Mobile Networks."

Similar presentations


Ads by Google