DOC PREVIEW
UT Dallas CS 6390 - 15. CC-RED-FairQueueing

This preview shows page 1-2-15-16-17-32-33 out of 33 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Advanced Computer Networks Congestion Control - 2 Fair Queuing & DECbit & REDOverviewQueuing DisciplinesTypical Internet QueuingFIFO + Drop-tail ProblemsActive Queue ManagementActive Queue DesignsSlide 8Fairness GoalsWhat is Fairness?Max-min FairnessMax-min Fairness ExampleImplementing max-min FairnessBit-by-bit RRSlide 15Fair QueuingFQ AlgorithmDelay AllocationFair Queuing TradeoffsSlide 20DECbitEnd HostsExplicit Congestion NotificationSlide 26Internet ProblemsRED Design ObjectivesLock-out ProblemFull Queues ProblemRandom Early Detection (RED)RED DetailsRED Details (cont)Slide 34Tuning REDAdvanced Computer NetworksCongestion Control - 2Fair Queuing & DECbit & REDOverviewQueuing disciplinesFairnessFair-queuingDECbit & ECNREDQueuing DisciplinesEach router must implement some queuing disciplineQueuing allocates both bandwidth and buffer space:Bandwidth: which packet to serve (transmit) next Buffer space: which packet to drop next (when required)Queuing also affects latencyTypical Internet QueuingFIFO + drop-tailSimplest choiceUsed widely in the InternetFIFO (first-in-first-out) Implies single class of trafficDrop-tailArriving packets get dropped when queue is full regardless of flow or importanceImportant distinction:FIFO: scheduling disciplineDrop-tail: drop policyFIFO + Drop-tail ProblemsLeaves responsibility of congestion control to edges (e.g., TCP)Does not separate between different flowsNo policing: send more packets  get more serviceSynchronization: end hosts react to same eventsActive Queue ManagementDesign active router queue management to aid congestion control Why?Routers can distinguish between propagation delay and persistent queuing delayRouters can decide on transient congestion, based on workloadActive Queue DesignsModify both routers and hostsExplicit congestion notification info in packet headerE.g. DECbit – not used in TCP/IPE.g. ECN – explicit congestion notification to work w/TCPModify routers (hosts use TCP)Fair queuingPer-connection buffer allocationRED (Random Early Detection)Drop packet or set bit in packet header as soon as congestion is startingOverviewQueuing disciplinesFairnessFair-queuingDECbit & ECNREDFairness GoalsAllocate resources fairly Isolate ill-behaved usersRouter does not send explicit feedback to sourceStill needs e2e congestion controlStill achieve statistical muxingOne flow can fill entire pipe if no contendersWork conserving  scheduler never idles link if it has a packetWhat is Fairness?At what granularity?Flows, connections, domains?What if flows/connections have different RTTs/links/etc.Should they share a link fairly or be TCP fair?Basically a tough question to answer – typically design mechanisms instead of policyIs TCP CC (TCP Reno) fair ?Max-min FairnessAllocate user with “small” demand what it wants, evenly divide unused resources to “big” usersFormally:Resources allocated in terms of increasing demandNo source gets resource share larger than its demandSources with unsatisfied demands get equal share of resourceMax-min Fairness ExampleAssume sources 1..n, with resource demands X1..Xn in ascending orderAssume channel capacity C.Give C/n to X1; if this is more than X1 wants, divide excess (C/n - X1) to other sources: each gets C/n + (C/n - X1)/(n-1)If this is larger than what X2 wants, repeat processImplementing max-min FairnessBitwise round robin among all queuesWhy not simple round robin?Variable packet length  can get more service by sending bigger packetsUnfair instantaneous service rateWhat if arrive just before/after packet departs?But fair in a long termBit-by-bit RRSingle flow: a logical clock ticks when a bit is transmitted For packet i:Pi = time to transmit packet i, Ai = arrival time, Si = begin transmit time, Fi = finish transmit timeFi = Si+Pi = max (Fi-1, Ai) + PiMultiple flows: clock ticks when a bit from all active flows is transmitted  round numberFair queuing simulates bit-by-bit RROverviewQueuing disciplinesFairnessFair-queuingDECbit & ECNREDFair QueuingMapping bit-by-bit schedule onto packet transmission scheduleTransmit packet with the lowest Fi at any given timeHow do you compute Fi? Fi = Si+Pi = max (Fi-1, Ai) + PiFQ AlgorithmFor multiple flowscalculate Fi for each packet that arrives on each flowtreat all Fi’s as timestampsnext packet to transmit is one with lowest timestampNot perfect: can’t preempt current packetExampleFlow 1 Flow 2(a) (b)Output OutputF = 8F = 10F = 5F = 10F = 2Flow 1(arriving)Flow 2(transmitting)Delay AllocationReduce delay for flows using less than fair sharePull back arrival times for sources whose queues drain temporarilySchedule based on Bi instead of FiFi = Pi + max (Fi-1, Ai)  Bi = Pi + max (Fi-1, Ai - )If Ai < Fi-1, flow is active and  has no effectIf Ai > Fi-1, flow is inactive and  determines how much history to take into accountInfrequent senders do better when history is usedFair Queuing TradeoffsFQ can control congestion by monitoring flowsNon-adaptive flows can still be a problem – why?Complex stateMust keep queue per flowHard in routers with many flows (e.g., backbone routers)Flow aggregation is a possibility (e.g. do fairness per domain)Complex computationClassification into flows may be hardMust keep queues sorted by finish timesThe round duration changes whenever the flow count changesOverviewQueuing disciplinesFairnessFair-queuingDECbit & ECNREDDECbitRoutermonitors average queue length over last busy+idle cycleset congestion bit if average queue length > 1Queue lengthCurrenttimeTimeCurrentcyclePreviouscycleAveragingintervalEnd HostsDestination echoes CI bit back to sourceSource records how many packets resulted in set bit during the past congestion window intervalIf less than 50% of last window’s worth had bit set increase CongestionWindow by 1 packetIf 50% or more of last window’s worth had bit set decrease CongestionWindow to 0.875 of current oneExplicit Congestion Notification Proposed for standard TCPTCP uses packet losses to detect congestionWasteful and unnecessaryECN (RFC 2481)Routers mark packets instead of dropping themReceiver returns


View Full Document

UT Dallas CS 6390 - 15. CC-RED-FairQueueing

Documents in this Course
VoIP

VoIP

44 pages

TE-MPLS

TE-MPLS

38 pages

TCP

TCP

28 pages

QoS

QoS

27 pages

P2P

P2P

50 pages

IPv6

IPv6

81 pages

IPv6

IPv6

64 pages

AODV-v2

AODV-v2

19 pages

aodv

aodv

32 pages

19. P2P

19. P2P

50 pages

18. VoIP

18. VoIP

44 pages

17. QoS

17. QoS

27 pages

13. TCP

13. TCP

28 pages

6. IPv6

6. IPv6

81 pages

19. P2P

19. P2P

50 pages

18. VoIP

18. VoIP

44 pages

17. QoS

17. QoS

27 pages

6. IPv6

6. IPv6

81 pages

6. IPv6

6. IPv6

81 pages

19. P2P

19. P2P

50 pages

18. VoIP

18. VoIP

44 pages

17. QoS

17. QoS

27 pages

13. TCP

13. TCP

28 pages

CC

CC

74 pages

19. P2P

19. P2P

50 pages

18. VoIP

18. VoIP

44 pages

17. QoS

17. QoS

27 pages

13. TCP

13. TCP

28 pages

6. IPv6

6. IPv6

81 pages

CC

CC

74 pages

Load more
Download 15. CC-RED-FairQueueing
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view 15. CC-RED-FairQueueing and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view 15. CC-RED-FairQueueing 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?