conges on control resource alloca on
play

Conges'on Control & Resource Alloca'on Guevara Noubir - PowerPoint PPT Presentation

Conges'on Control & Resource Alloca'on Guevara Noubir Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 6. Fundamentals of Computer Networks CC & RA


  1. Conges'on ¡Control ¡& ¡ ¡ Resource ¡Alloca'on ¡ Guevara ¡Noubir ¡ Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 6. Fundamentals of Computer Networks CC & RA

  2. Lecture ¡Outline ¡ • Conges'on ¡control ¡ – Queuing ¡Discipline ¡ – Reac'ng ¡to ¡Conges'on ¡ – Avoiding ¡Conges'on ¡ • Resource ¡alloca'on ¡ – Real-­‑'me ¡Applica'ons ¡ – Integrated ¡Services ¡ – Differen'ated ¡Services ¡ Fundamentals of Computer Networks CC & RA

  3. Issues ¡ • Two ¡sides ¡of ¡the ¡same ¡coin ¡ – pre-­‑allocate ¡resources ¡so ¡at ¡to ¡avoid ¡conges'on ¡ ¡ – control ¡conges'on ¡if ¡(and ¡when) ¡it ¡occurs ¡ ¡ S o u r c e 10-Mbps Ethernet 1 Router Destination 1.5-Mbps T1 link Source 2 • Two ¡points ¡of ¡implementa'on ¡ – hosts ¡at ¡the ¡edges ¡of ¡the ¡network ¡(transport ¡protocol) ¡ – routers ¡inside ¡the ¡network ¡(queuing ¡discipline) ¡ • Addi'onal ¡requirements: ¡fairness ¡ • Underlying ¡service ¡model ¡ – best-­‑effort ¡(assume ¡for ¡now) ¡ – mul'ple ¡ quali&es ¡of ¡service ¡ Fundamentals of Computer Networks CC & RA

  4. Framework ¡ • Connec'onless ¡flows ¡ – sequence ¡of ¡packets ¡sent ¡between ¡source/des'na'on ¡pair ¡ – maintain ¡ so/ ¡state ¡at ¡the ¡routers ¡ Source 1 Router Destination 1 Router Source 2 Router Destination 2 Source 3 • Taxonomy ¡ – router-­‑centric ¡versus ¡host-­‑centric ¡ – reserva'on-­‑based ¡versus ¡feedback-­‑based ¡ – window-­‑based ¡versus ¡rate-­‑based ¡ Fundamentals of Computer Networks CC & RA

  5. Evalua'on ¡ • Main ¡metrics ¡of ¡networking? ¡ => ¡Power ¡(ra'o ¡of ¡throughput ¡to ¡delay) ¡ Throughput/delay Optimal Load load • Fairness ¡ Fundamentals of Computer Networks CC & RA

  6. Queuing ¡Discipline ¡ • First-­‑In-­‑First-­‑Out ¡(FIFO) ¡or ¡First-­‑Come-­‑First-­‑Serve ¡(FCFS) ¡ – does ¡not ¡discriminate ¡between ¡traffic ¡sources ¡ – Scheduling ¡vs. ¡drop ¡policy ¡ • Fair ¡Queuing ¡(FQ) ¡ – explicitly ¡segregates ¡traffic ¡based ¡on ¡flows ¡ – ensures ¡no ¡flow ¡captures ¡more ¡than ¡its ¡share ¡of ¡capacity ¡ – varia'on: ¡weighted ¡fair ¡queuing ¡(WFQ) ¡ • Problem? ¡ Flow 1 Flow 2 Round-robin service Flow 3 Flow 4 Fundamentals of Computer Networks CC & RA

  7. FQ ¡Algorithm ¡ • Suppose ¡clock ¡'cks ¡each ¡'me ¡a ¡bit ¡is ¡transmi\ed ¡from ¡each ¡flow ¡ • Let ¡ P i ¡denote ¡the ¡length ¡of ¡packet ¡ i ¡ • Let ¡ S i ¡denote ¡the ¡'me ¡when ¡start ¡to ¡transmit ¡packet ¡ i ¡ • Let ¡ F i ¡denote ¡the ¡'me ¡when ¡finish ¡transmi^ng ¡packet ¡ i ¡ • F i ¡= ¡ S i ¡+ ¡ P i ¡ • When ¡does ¡the ¡router ¡start ¡transmi^ng ¡packet ¡ i ? ¡ – if ¡packet ¡ i ¡arrived ¡before ¡router ¡finished ¡packet ¡ i ¡-­‑ ¡1 ¡ from ¡this ¡flow, ¡then ¡immediately ¡aber ¡last ¡bit ¡of ¡ i ¡-­‑ ¡1 ¡ ( F i-­‑1 ) ¡ – if ¡no ¡current ¡packets ¡for ¡this ¡flow, ¡then ¡start ¡ transmi^ng ¡when ¡arrives ¡(call ¡this ¡ A i ) ¡ • Thus: ¡ F i ¡= ¡ MAX ¡ ( F i ¡-­‑ ¡1 , ¡ A i ) ¡+ ¡ P i ¡ Fundamentals of Computer Networks CC & RA

  8. FQ ¡Algorithm ¡(cont) ¡ • For ¡mul'ple ¡flows ¡ – calculate ¡ F i ¡for ¡each ¡packet ¡that ¡arrives ¡on ¡each ¡flow ¡ – treat ¡all ¡ F i ’s ¡as ¡'mestamps ¡ – next ¡packet ¡to ¡transmit ¡is ¡one ¡with ¡lowest ¡'mestamp ¡ – clock ¡advances ¡by ¡one ¡'ck ¡when ¡ n ¡bits ¡are ¡transmi\ed ¡ • Not ¡perfect: ¡can’t ¡preempt ¡current ¡packet ¡ • Example ¡ Flow 1 Flow 2 Flow 1 Flow 2 Output (arriving) (transmitting) Output F = 10 F = 10 F = 8 F = 5 F = 2 (a) (b) Fundamentals of Computer Networks CC & RA

  9. TCP ¡Conges'on ¡Control ¡ • Idea ¡ – assumes ¡best-­‑effort ¡network ¡(FIFO ¡or ¡FQ ¡routers) ¡each ¡ source ¡determines ¡network ¡capacity ¡for ¡itself ¡ – uses ¡implicit ¡feedback ¡to ¡adapt ¡ – ACKs ¡pace ¡transmission ¡( self-­‑clocking ) ¡ • Challenge ¡ – determining ¡the ¡available ¡capacity ¡in ¡the ¡first ¡place ¡ – adjus'ng ¡to ¡changes ¡in ¡the ¡available ¡capacity ¡ Fundamentals of Computer Networks CC & RA

  10. Addi've ¡Increase/Mul'plica've ¡ Decrease ¡ • Objec've: ¡adjust ¡to ¡changes ¡in ¡the ¡available ¡capacity ¡ • New ¡state ¡variable ¡per ¡connec'on: ¡ CongestionWindow ¡ – limits ¡how ¡much ¡data ¡source ¡has ¡in ¡transit ¡ MaxWin = MIN(CongestionWindow, AdvertisedWindow) EffWin = MaxWin - (LastByteSent - LastByteAcked) • Idea: ¡ – increase ¡ CongestionWindow ¡when ¡conges'on ¡goes ¡down ¡ – decrease ¡ CongestionWindow ¡when ¡conges'on ¡goes ¡up ¡ Fundamentals of Computer Networks CC & RA

  11. AIMD ¡(cont) ¡ • Ques'on: ¡how ¡does ¡the ¡source ¡determine ¡whether ¡or ¡not ¡the ¡ network ¡is ¡congested? ¡ • Answer: ¡a ¡'meout ¡occurs ¡ – 'meout ¡signals ¡that ¡a ¡packet ¡was ¡lost ¡ – packets ¡are ¡seldom ¡lost ¡due ¡to ¡transmission ¡error ¡on ¡wired ¡networks ¡ – lost ¡packet ¡implies ¡conges'on ¡ Fundamentals of Computer Networks CC & RA

  12. AIMD ¡(cont) ¡ Source Destination • Algorithm – increment CongestionWindow by one packet per RTT ( linear increase ) – divide CongestionWindow by two whenever a timeout occurs ( multiplicative decrease ) … • In ¡prac'ce: ¡increment ¡a ¡li\le ¡for ¡each ¡ACK ¡ Increment = (MSS * MSS)/CongestionWindow CongestionWindow += Increment ¡ ¡ Fundamentals of Computer Networks CC & RA

  13. AIMD ¡(cont) ¡ • Trace: ¡sawtooth ¡behavior ¡ 70 60 50 40 KB 30 20 10 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 T ime (seconds) Fundamentals of Computer Networks CC & RA

  14. Slow ¡Start ¡ Source Destination • Objec've: ¡determine ¡the ¡ available ¡capacity ¡when ¡ star'ng ¡ ¡ • Idea: ¡ – begin ¡with ¡ CongestionWindow ¡= ¡1 ¡ packet ¡ – double ¡ CongestionWindow ¡each ¡ RTT ¡(increment ¡by ¡1 ¡packet ¡for ¡ … each ¡ACK) ¡ Fundamentals of Computer Networks CC & RA

  15. Slow ¡Start ¡(cont) ¡ • Exponen'al ¡growth, ¡but ¡slower ¡than ¡all ¡at ¡once ¡ • Used… ¡ – when ¡first ¡star'ng ¡connec'on ¡ – when ¡connec'on ¡goes ¡dead ¡wai'ng ¡for ¡'meout ¡ • Trace ¡ 70 60 50 KB 40 30 20 10 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 • Problem: ¡lose ¡up ¡to ¡half ¡a ¡ CongestionWindow ’s ¡worth ¡of ¡data ¡ Fundamentals of Computer Networks CC & RA

  16. Fast ¡Retransmit ¡and ¡Fast ¡Recovery ¡ • Problem: ¡coarse-­‑grain ¡TCP ¡ Sender Receiver Packet 1 'meouts ¡lead ¡to ¡idle ¡ Packet 2 periods ¡ ACK 1 Packet 3 ACK 2 Packet 4 • Fast ¡retransmit: ¡use ¡ ACK 2 Packet 5 duplicate ¡ACKs ¡to ¡trigger ¡ Packet 6 retransmission ¡ ACK 2 ACK 2 – In ¡prac'ce ¡3 ¡duplicate ¡ACKs ¡ Retransmit – Results ¡in ¡20% ¡improvement ¡ packet 3 in ¡throughput ¡ ACK 6 Fundamentals of Computer Networks CC & RA

  17. Results ¡ 70 60 50 40 KB 30 20 10 1.0 2.0 3.0 4.0 5.0 6.0 7.0 • Fast ¡recovery ¡ – skip ¡the ¡slow ¡start ¡phase ¡ – go ¡directly ¡to ¡half ¡the ¡last ¡successful ¡ CongestionWindow ( ssthresh ) ¡ Fundamentals of Computer Networks CC & RA

  18. Conges'on ¡Avoidance ¡ • TCP’s ¡strategy ¡ – control ¡conges'on ¡once ¡it ¡happens ¡ – repeatedly ¡increase ¡load ¡in ¡an ¡effort ¡to ¡find ¡the ¡point ¡at ¡which ¡ conges'on ¡occurs, ¡and ¡then ¡back ¡off ¡ • Alterna've ¡strategy ¡ – predict ¡when ¡conges'on ¡is ¡about ¡to ¡happen ¡ – reduce ¡rate ¡before ¡packets ¡start ¡being ¡discarded ¡ – call ¡this ¡conges'on ¡ avoidance , ¡instead ¡of ¡conges'on ¡ control ¡ • Two ¡possibili'es ¡ ¡ – router-­‑centric: ¡DECbit ¡and ¡RED ¡Gateways ¡ ¡ – host-­‑centric: ¡TCP ¡Vegas ¡ ¡ Fundamentals of Computer Networks CC & RA

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend