انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة
الكلية كلية العلوم للبنات
القسم قسم الحاسبات
المرحلة 4
أستاذ المادة علي كاظم ادريس السعدي
29/05/2018 23:23:44
CMPE 257: Wireless and Mobile Networking Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 11 CMPE 257 Winter 11 1Student Presentation: Logistics • We will source from San Jose. – Send me your presentations ahead of time. CMPE 257 Winter 11 2Today • E2E protocols (cont’d). CMPE 257 Winter 11 3Reliable Point2Point Transport Layer: Outline ? TCP/IP basics. ? Impact of transmission errors on TCP performance. ? Approaches to improve TCP performance on wireless networks. ? Classification. ? TCP on infrastructure-based networks (cont’d). ? TCP on MANETs. CMPE 257 Winter 11 4Strict E2E Schemes CMPE 257 Winter 11 5Receiver-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. CMPE 257 Winter 11 6Heuristics • 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. CMPE 257 Winter 11 7Receiver-Based Scheme • Packet loss due to congestion: 12 FH 11 10 BS MH T FH BS 12 11 Congestion loss CMPE 257 Winter 11 10 MH 8Receiver-Based Scheme • Packet loss due to transmission error: 12 FH 11 10 BS MH 2 T 12 FH BS 11 Error loss CMPE 257 Winter 11 10 MH 9Sender-Based Discrimination Scheme CMPE 257 Winter 11 10Sender-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) CMPE 257 Winter 11 11Heuristics 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. CMPE 257 Winter 11 12Heuristics 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) CMPE 257 Winter 11 13Sender-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 CMPE 257 Winter 11 14Sender-Based Heuristics: Disadvantage • Does not work quite well enough!! Reason • Not much correlation between observed short-term statistics, and onset of congestion. CMPE 257 Winter 11 15Sender-Based Heuristics: Advantages • Only sender needs to be modified. Needs further investigation to develop better heuristics. – Investigate longer-term heuristics. CMPE 257 Winter 11 16Reliable Point2Point Transport Layer: Outline ? TCP/IP basics. ? Impact of transmission errors on TCP performance. ? Approaches to improve TCP performance on wireless networks. ? Classification. ? TCP on cellular. ? TCP on MANETs. CMPE 257 Winter 11 17TCP in Mobile Ad Hoc Networks CMPE 257 Winter 11 18Issues • 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. CMPE 257 Winter 11 19Throughput 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. CMPE 257 Winter 11 20Analysis of TCP Performance over MANETs [Holland99] • Impact of mobility. • Simulation study. • Performance metric: throughput. – Baseline: ideal (expected) throughput. • Upper bound. • Static network. CMPE 257 Winter 11 21Throughput versus Hops 1600 1400 1200 1000 800 600 400 200 0 TCP Throughtput (Kbps) 1 2 3 4 5 6 7 8 9 10 Number of hops TCP throughput over 2 Mbps 802.11 MAC, fixed, linear MANET. CMPE 257 Winter 11 22Expected Throughput ? exp ected _ throughput = ? ti * Ti ? ti i = 1 ? i = 1 • Ti is measured throughput for i hops using static linear chain topology. • ti time duration of TCP connection containing i hops. CMPE 257 Winter 11 23Throughput versus speed Throughput decreases with speed... Expected Average Throughput (Over 50 runs) Actual Speed (m/s) CMPE 257 Winter 11 24Throughput versus Speed But not always... 30 m/s 20 m/s Actual throughput Mobility pattern # CMPE 257 Winter 11 25Impact of Mobility TCP Throughput 10 m/s 2 m/s Ideal throughput (Kbps) CMPE 257 Winter 11 26Impact of Mobility 20 m/s 30 m/s Ideal throughput CMPE 257 Winter 11 27Why Throughput Degrades mobility causes link breakage, resulting in route failure Route is repaired TCP sender starts sending packets again No throughput No throughput despite route repair TCP data and acks en route discarded CMPE 257 Winter 11 28Why Throughput Degrades? mobility causes link breakage, resulting in route failure TCP sender times out. Backs off timer. Route is repaired TCP sender resumes sending No throughput No throughput despite route repair Larger route repair delays especially harmful TCP data and acks en route discarded CMPE 257 Winter 11 29Why Throughput Improves? Low Speed Scenario C B D C D B A C B D A 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. CMPE 257 Winter 11 30Why Throughput Improves? Higher Speed Scenario C B D C D B A C B D A 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. CMPE 257 Winter 11 31Why 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. CMPE 257 Winter 11 32How 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. CMPE 257 Winter 11 33ELFN • Explicit Link Failure Notification. • Piggyback notification onto DSR’s route failure message to sender. • TCP responds by disabling congestion control until route is fixed. – Disable retransmission timers. – When ACK is received, TCP restores state and resumes normal operation. CMPE 257 Winter 11 34Performance Improvement With feedback Without network feedback Ideal throughput 2 m/s speed CMPE 257 Winter 11 35Performance Improvement With feedback Without network feedback Ideal throughput 30 CMPE m/s 257 speed Winter 11 36as a ideal Performance with Explicit Notification 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Base TCP With explicit notification 2 10 20 30 mean speed (m/s) CMPE 257 Winter 11 37Issues: 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. CMPE 257 Winter 11 38Impact 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. CMPE 257 Winter 11 39fraction throughput) To Cache or Not to Cache Average speed (m/s) CMPE 257 Winter 11 40Why 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 timeout, second cached route is broken route also broken CMPE 257 Winter 11 41To 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. CMPE 257 Winter 11 42Caching 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. CMPE 257 Winter 11 43Window 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. CMPE 257 Winter 11 44RTO 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. CMPE 257 Winter 11 45TCP 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. CMPE 257 Winter 11 46Fixed-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. CMPE 257 Winter 11 47Improving TCP under OOO Delivery [Wang02] CMPE 257 Winter 11 48Out-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 TCP layer. – Turn off fast retransmit. • Can result in poor performance in presence of congestion. CMPE 257 Winter 11 49TCP DOOR • Detect and respond to out-of-order (OOO) packets. – Differentiate between OOO and congestion losses. • OOO delivery caused by: – Retransmissions. – Route changes. CMPE 257 Winter 11 50Detecting OOO • OOO delivery can happen in either direction. • Sender detects OOO (duplicate) ACKs. • Receiver detects OOO data packets. CMPE 257 Winter 11 51OOO 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. CMPE 257 Winter 11 52OOO 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. CMPE 257 Winter 11 53OOO 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. CMPE 257 Winter 11 54Evaluation • Simulation environment: – ns-2 + CMU extensions. – Mobility: random way-point. – Workload: single TCP between fixed S and R with and without congestion. CMPE 257 Winter 11 55Results • 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. CMPE 257 Winter 11 56DSR Caching • With DSR caching enabled, lower performance improvements. • Claim TCP performance was better than when caching was off. – Why? CMPE 257 Winter 11 57
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم
|