1 / 58

Scheduling for Communication and Processing Networks

Scheduling for Communication and Processing Networks. Jean Walrand EECS University of California, Berkeley CORNELL, 4/25/2011. Ref: Jiang-Walrand: Scheduling and Congestion Control for Communication and Processing Networks. Morgan-Claypool 2010 . WiFi Network. WiFi Network.

etenia
Download Presentation

Scheduling for Communication and Processing Networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scheduling for Communication and Processing Networks • Jean Walrand • EECS • University of California, BerkeleyCORNELL, 4/25/2011 Ref: Jiang-Walrand: Scheduling and Congestion Control for Communication and Processing Networks. Morgan-Claypool 2010

  2. WiFi Network

  3. WiFi Network

  4. WiFi Network

  5. WiFi Network How to schedule transmissions? How many active nodes? Hard to organize. Answer: Try at random! Norman Abramson

  6. WiFi Network Backoff timers; Random initial value Freeze timer whenchannel is busy Transmit when timerruns out

  7. WiFi Network Backoff timers; Random initial value Freeze timer whenchannel is busy Transmit when timerruns out

  8. WiFi Network This scheme is called CSMA Carrier Sense Multiple Access

  9. WiFi Network Collisions are possible: When initial timer valuesare very similar.

  10. WiFi Network To reduce chances ofcollision: When retransmittinga packet, nodesselect initial value of timer in a range that istwice as wide.

  11. WiFi Network Metcalfe & Boggs This scheme is called Exponential Backoff Thus, WiFi uses CSMA withExponential Backoff

  12. WiFi Network CSMA with Exponential Backoffworks pretty well. About 50% efficient… Most users are happy.

  13. Ad Hoc Network Why not transmitdirectly? More efficient(parallel transmissions,lower power,…) If no infrastructure. Multi-hop to reach destination.

  14. Ad Hoc Network How to schedule transmissions? WiFi scheme? Very unfair to nodes with many neighbors.

  15. Ad Hoc Network How to schedule transmissions? WiFi scheme? Very unfair to nodes with many neighbors.

  16. Ad Hoc Network How to schedule transmissions? WiFi scheme? Very unfair to nodes with many neighbors. Also, oblivious to requirementsof the different nodes.

  17. Adaptive CSMA Libin Jiang Replace Exponential Backoffby Queue-Based Backoff

  18. Adaptive CSMA A node with a bigger backlog should choose its random backoff in a smaller range. Stuff to send Backoff timers

  19. Adaptive CSMA The node with a bigger backlog will get a higher throughput.

  20. Adaptive CSMA Let R = 1/(average timer value) = rate of transmission attempts Adjust R so that the link transmits fast enough. R1 R2 R3 Backlog increases  increase R. Backlog decreases  decrease R.

  21. Adaptive CSMA Let R = 1/(average timer value) = rate of transmission attempts Adjust R so that the link transmits fast enough. R1 R2 R3 Backlog increases  increase R. Backlog decreases  decrease R.

  22. Adaptive CSMA How to choose the values of R? R = Exp{a.Backlog} Do we need to know all the backlogs? No Could some nodes starve other nodes? No Can such a scheme be efficient and fair? Yes

  23. Dual Algorithm Complex Problem: Congestion Control Simple Solution:TCP: AIMD Max SjUj(xj) s.t. Rate on link k < Ck Dual algorithm  Local Solution Frank Kelly Complex Problem: Illegal Immigration Simple Solution: Make Mexico a state. 
Complex Problem: National DebtSimple Solution: Blow it off. 
Complex Problem: Global WarmingSimpleSolution: Everyone run their air conditioners and ice machines 24/7. Complex Problem: High gas prices.Simple Solution: Lower the prices. Complex Problem: AIDSSimple Solution: Don't get it. Complex Problem: ObesitySimple Solution: Send all the fat people to live in areas that are suffering from a famine.Complex Problem: FamineSimple Solution: Send everyone suffering from famine to live where the fat people are. 
This is really very simple, you know? I don't understand why governments and others in authority have so much trouble dealing with these kind of things.Complex Problem: High gas prices.Simple Solution: Lower the prices. 
What? It's not like oil companies need a real reason to raise the prices, why do we need to come up with any further motivation to lower them? However, if that's not good enough for you, how about this one?Simple Solution #2: Take over OPEC and establish "Free Oil Month".Now that's a good idea if there ever was one.Complex Problem: AIDSSimple Solution: Don't get it.Article Source: http://EzineArticles.com/1439932 - Each link k posts a price rk ≈ its backlog - Each user j chooses xj to maximize utility - price Uj(xj) – Skrk1{j uses k}

  24. Dual Algorithm Much subsequent work; backpressure protocols (see references) Related idea: Maximize drift of Lyapunov function (see references) Complex Problem: Illegal Immigration Simple Solution: Make Mexico a state. 
Complex Problem: National DebtSimple Solution: Blow it off. 
Complex Problem: Global WarmingSimpleSolution: Everyone run their air conditioners and ice machines 24/7. Complex Problem: High gas prices.Simple Solution: Lower the prices. Complex Problem: AIDSSimple Solution: Don't get it. Complex Problem: ObesitySimple Solution: Send all the fat people to live in areas that are suffering from a famine.Complex Problem: FamineSimple Solution: Send everyone suffering from famine to live where the fat people are. 
This is really very simple, you know? I don't understand why governments and others in authority have so much trouble dealing with these kind of things.Complex Problem: High gas prices.Simple Solution: Lower the prices. 
What? It's not like oil companies need a real reason to raise the prices, why do we need to come up with any further motivation to lower them? However, if that's not good enough for you, how about this one?Simple Solution #2: Take over OPEC and establish "Free Oil Month".Now that's a good idea if there ever was one.Complex Problem: AIDSSimple Solution: Don't get it.Article Source: http://EzineArticles.com/1439932

  25. Dual Algorithm Complex Problem: Scheduling Conflicting Links Simple Solution:MWM (Maximum Weighted Matching) Complex Problem: Illegal Immigration Simple Solution: Make Mexico a state. 
Complex Problem: National DebtSimple Solution: Blow it off. 
Complex Problem: Global WarmingSimpleSolution: Everyone run their air conditioners and ice machines 24/7. Complex Problem: High gas prices.Simple Solution: Lower the prices. Complex Problem: AIDSSimple Solution: Don't get it. Complex Problem: ObesitySimple Solution: Send all the fat people to live in areas that are suffering from a famine.Complex Problem: FamineSimple Solution: Send everyone suffering from famine to live where the fat people are. 
This is really very simple, you know? I don't understand why governments and others in authority have so much trouble dealing with these kind of things.Complex Problem: High gas prices.Simple Solution: Lower the prices. 
What? It's not like oil companies need a real reason to raise the prices, why do we need to come up with any further motivation to lower them? However, if that's not good enough for you, how about this one?Simple Solution #2: Take over OPEC and establish "Free Oil Month".Now that's a good idea if there ever was one.Complex Problem: AIDSSimple Solution: Don't get it.Article Source: http://EzineArticles.com/1439932

  26. MWM Conflicting nodes: At any time, either {2} or {1, 3} can transmit. Maximal Independent Sets. or 1 2 3 Complex Problem: Illegal Immigration Simple Solution: Make Mexico a state. 
Complex Problem: National DebtSimple Solution: Blow it off. 
Complex Problem: Global WarmingSimpleSolution: Everyone run their air conditioners and ice machines 24/7. Complex Problem: High gas prices.Simple Solution: Lower the prices. Complex Problem: AIDSSimple Solution: Don't get it. Complex Problem: ObesitySimple Solution: Send all the fat people to live in areas that are suffering from a famine.Complex Problem: FamineSimple Solution: Send everyone suffering from famine to live where the fat people are. 
This is really very simple, you know? I don't understand why governments and others in authority have so much trouble dealing with these kind of things.Complex Problem: High gas prices.Simple Solution: Lower the prices. 
What? It's not like oil companies need a real reason to raise the prices, why do we need to come up with any further motivation to lower them? However, if that's not good enough for you, how about this one?Simple Solution #2: Take over OPEC and establish "Free Oil Month".Now that's a good idea if there ever was one.Complex Problem: AIDSSimple Solution: Don't get it.Article Source: http://EzineArticles.com/1439932 At any time, the links in the maximal independent set with the largest sum of queue lengths transmit.

  27. MWM Complex Problem: Illegal Immigration Simple Solution: Make Mexico a state. 
Complex Problem: National DebtSimple Solution: Blow it off. 
Complex Problem: Global WarmingSimpleSolution: Everyone run their air conditioners and ice machines 24/7. Complex Problem: High gas prices.Simple Solution: Lower the prices. Complex Problem: AIDSSimple Solution: Don't get it. Complex Problem: ObesitySimple Solution: Send all the fat people to live in areas that are suffering from a famine.Complex Problem: FamineSimple Solution: Send everyone suffering from famine to live where the fat people are. 
This is really very simple, you know? I don't understand why governments and others in authority have so much trouble dealing with these kind of things.Complex Problem: High gas prices.Simple Solution: Lower the prices. 
What? It's not like oil companies need a real reason to raise the prices, why do we need to come up with any further motivation to lower them? However, if that's not good enough for you, how about this one?Simple Solution #2: Take over OPEC and establish "Free Oil Month".Now that's a good idea if there ever was one.Complex Problem: AIDSSimple Solution: Don't get it.Article Source: http://EzineArticles.com/1439932 • Two problems: • Finding out the backlogs of other nodes; • Finding the independent set with maximum sum. Property: Stabilizes the queues. [Tassiulas, Ephremides 92] At any time, the links in the maximal independent set with the largest sum of queue lengths transmit.

  28. Dual Algorithm Complex Problem:Random AccessSimple Solution:Adaptive CSMA Max H(p(R)) s.t. sj>lj Service rate at node j Entropy of distribution of independent sets Complex Problem: Illegal Immigration Simple Solution: Make Mexico a state. 
Complex Problem: National DebtSimple Solution: Blow it off. 
Complex Problem: Global WarmingSimpleSolution: Everyone run their air conditioners and ice machines 24/7. Complex Problem: High gas prices.Simple Solution: Lower the prices. Complex Problem: AIDSSimple Solution: Don't get it. Complex Problem: ObesitySimple Solution: Send all the fat people to live in areas that are suffering from a famine.Complex Problem: FamineSimple Solution: Send everyone suffering from famine to live where the fat people are. 
This is really very simple, you know? I don't understand why governments and others in authority have so much trouble dealing with these kind of things.Complex Problem: High gas prices.Simple Solution: Lower the prices. 
What? It's not like oil companies need a real reason to raise the prices, why do we need to come up with any further motivation to lower them? However, if that's not good enough for you, how about this one?Simple Solution #2: Take over OPEC and establish "Free Oil Month".Now that's a good idea if there ever was one.Complex Problem: AIDSSimple Solution: Don't get it.Article Source: http://EzineArticles.com/1439932 Dual Algorithm  Local Solution Rj updated based on backlog of j Rj ≈ Exp{aXj}

  29. Queue Lengths † Example † λ = 0.98*(convex combination of maximal independent sets) 0.2*{1, 3} + 0.3*{1, 4, 6} + 0.3*{3, 5} + 0*{2, 4} + 0.2*{2, 5} Time Network

  30. Congestion Control + Scheduling • Links want to maximize the “total utility”u1(λ1) + u2(λ2) + u3(λ3) • Congestion control + scheduling[Adjust arrival rates]

  31. Node i maximizes Congestion Control + Scheduling

  32. Node i maximizes Congestion Control + Scheduling • Approach: Q-CSMA + input rate control • Fact: (Essentially) achieves maximum utility

  33. Congestion Control + Scheduling + Routing • Wireless links, with interference • (Here, assume that transmitters interfere with each other via carrier sensing.) • Goal: maximize total utility of flows • Congestion control, scheduling, and routing

  34. Congestion Control + Scheduling + Routing Node [1]: If (9 - 5)C(g) > (9 - 3)C(b): [1] -> [3]; Else: [1] -> [2] Let b[1] = max{(9 - 5)C(g), (9 - 3)C(b)} Let T[1] be exponentially distributed with rate Exp{ αb[1] } • [1] • [2] Node [2]: If (8 - 4)C(d) > (3 - 0)C(c): (d); Else: (c) Let b[2] = max{(8 - 4)C(d), (3 - 0)C(c)} Let T[2] be exponentially distributed with rate Exp{ αb[2] } • [3]

  35. Congestion Control + Scheduling + Routing Then, use CSMA with those backoff delays. Also, A chooses x that maximizes UA(x) - β10x; B chooses y s.t.... • [1] • [2] • [3] Fact: (Essentially) achieves maximum utility

  36. Congestion Control + Scheduling + Routing Multipath routing allowed Unicast S2 -> D2 Anycast S1 to any D1

  37. Summary • Each node: • Adjusts incoming rate: maximize u(λ) - λβX • Calculates, for every flowbackpressure = link rate * (trans. Q - receiver Q) • Chooses flow with max. backpressure B • Generates backoff with mean = 1/exp{αB} • Then uses CSMA • Fact: (Essentially) maximizes sum of utilities

  38. Status • Compatibility with TCPB: Using max S(log(1 + x)) [Srikant] • Reduce Delays: B+: Placeholder packets, virtual arrivals • Routing: C+: Avoid long paths • CollisionsWithout hidden nodes: A: [Srikant et al., LJ-JW]With hidden nodes: B: Using RTS/CTS; [Kim et al.] • Unreliable links: A • Changing links: C • Multicast, Unicast: A • Implementations: Promising examples (Rhee, Chiang, …)

  39. Processing Networks

  40. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3

  41. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 MWM T = 0

  42. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 MWM T = 1-

  43. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 MWM T = 1

  44. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 MWM T = 2-

  45. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 MWM T = 2

  46. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 MWM T = 3- Maximum Weighted Matching is not stable.

  47. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 DWM: Use MWM based on Virtual Queues

  48. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 DWM: Use MWM based on Virtual Queues T = 0-

  49. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 DWM: Use MWM based on Virtual Queues T = 0

  50. Processing Networks Task: 1 from queue 1; Task B: 1 from all queues; Task C: 1 from queue 3 DWM: Use MWM based on Virtual Queues T = 1-

More Related