link scheduling & queuing cos 461: computer networks

20
Link Scheduling & Queuing COS 461: Computer Networks http://www.cs.princeton.edu/courses/ archive/spr14/cos461/

Upload: clifford-hubbard

Post on 01-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Link Scheduling & Queuing COS 461: Computer Networks

Link Scheduling & Queuing

COS 461: Computer Networks

http://www.cs.princeton.edu/courses/archive/spr14/cos461/

Page 2: Link Scheduling & Queuing COS 461: Computer Networks

Outline

• Link scheduling (not covered on Monday)• Queuing practice questions• Miscellanea

Page 3: Link Scheduling & Queuing COS 461: Computer Networks

First-In First-Out Scheduling

• First-in first-out scheduling– Simple, but restrictive

• Example: two kinds of traffic– Voice over IP needs low delay– E-mail is not that sensitive about delay

• Voice traffic waits behind e-mail

3

Page 4: Link Scheduling & Queuing COS 461: Computer Networks

Strict Priority• Multiple levels of priority– Always transmit high-priority traffic when present

• Isolation for the high-priority traffic– Almost like it has a dedicated link• Except for (small) delay for transmission

• Possible starvation

4

High

Low

Page 5: Link Scheduling & Queuing COS 461: Computer Networks

Weighted Fair Queuing• Each queue gets a fraction of the link

bandwidth• Rotate across queues on a small time scale• What if a queue is empty during its time slice?– Move on to next queue if work conserving

50% red, 25% blue, 25% green

5

Page 6: Link Scheduling & Queuing COS 461: Computer Networks

Weighted Fair Queuing• If non-work conserving– Flows get at most their allocated weight

• If work-conserving– Send extra traffic from one queue if others are idle– Bytes, not packets– Higher or lower utilization than non-work conserving?

• Results in max-min fairness– Maximize the minimum rate of each flow

6

Page 7: Link Scheduling & Queuing COS 461: Computer Networks

Implementation Trade-Offs

• FIFO– One queue, trivial scheduler

• Strict priority– One queue per priority level, simple scheduler

• Weighted fair scheduling– One queue per class, and more complex scheduler

7

Page 8: Link Scheduling & Queuing COS 461: Computer Networks

For the following questions, assume that these are always coupled with a FIFO scheduling policy.The full queue problem occurs if routers’ queues are often full.The lockout problem refers to a situation where a small number of flows monopolize the available queue space on a router.

•Drop-tail solves the full queue problem T/F

8

Page 9: Link Scheduling & Queuing COS 461: Computer Networks

For the following questions, assume that these are always coupled with a FIFO scheduling policy.The full queue problem occurs if routers’ queues are often full.The lockout problem refers to a situation where a small number of flows monopolize the available queue space on a router.

•Drop-tail solves the full queue problem T/F

9

Page 10: Link Scheduling & Queuing COS 461: Computer Networks

For the following questions, assume that these are always coupled with a FIFO scheduling policy.The full queue problem occurs if routers’ queues are often full.The lockout problem refers to a situation where a small number of flows monopolize the available queue space on a router.

•Drop-tail solves the full queue problem T/F•Random Early Detection (RED) solves the full queue problem T/F

10

Page 11: Link Scheduling & Queuing COS 461: Computer Networks

For the following questions, assume that these are always coupled with a FIFO scheduling policy.The full queue problem occurs if routers’ queues are often full.The lockout problem refers to a situation where a small number of flows monopolize the available queue space on a router.

•Drop-tail solves the full queue problem T/F•Random Early Detection (RED) solves the full queue problem T/F

11

Page 12: Link Scheduling & Queuing COS 461: Computer Networks

For the following questions, assume that these are always coupled with a FIFO scheduling policy.The full queue problem occurs if routers’ queues are often full.The lockout problem refers to a situation where a small number of flows monopolize the available queue space on a router.

•Drop-tail solves the full queue problem T/F•Random Early Detection (RED) solves the full queue problem T/F•RED solves the lockout problem for TCP flows T/F

12

Page 13: Link Scheduling & Queuing COS 461: Computer Networks

For the following questions, assume that these are always coupled with a FIFO scheduling policy.The full queue problem occurs if routers’ queues are often full.The lockout problem refers to a situation where a small number of flows monopolize the available queue space on a router.

•Drop-tail solves the full queue problem T/F•Random Early Detection (RED) solves the full queue problem T/F•RED solves the lockout problem for TCP flows T/F

13

Page 14: Link Scheduling & Queuing COS 461: Computer Networks

1 Drop-tail has fewer burst losses than REDT/F

14

Page 15: Link Scheduling & Queuing COS 461: Computer Networks

1 Drop-tail has fewer burst losses than REDT/F

15

Page 16: Link Scheduling & Queuing COS 461: Computer Networks

1 Drop-tail has fewer burst losses than REDT/F

2 Both drop-tail and RED can be used with Explicit Congestion Notification (ECN), so the router can signal congestion to the sender without dropping a packet

T/F

16

Page 17: Link Scheduling & Queuing COS 461: Computer Networks

1 Drop-tail has fewer burst losses than REDT/F

2 Both drop-tail and RED can be used with Explicit Congestion Notification (ECN), so the router can signal congestion to the sender without dropping a packet

T/F

17

Page 18: Link Scheduling & Queuing COS 461: Computer Networks

1 Drop-tail has fewer burst losses than REDT/F

2 Both drop-tail and RED can be used with Explicit Congestion Notification (ECN), so the router can signal congestion to the sender without dropping a packet

T/F3 RED drops every incoming packet with some probability P > 0

T/F

18

Page 19: Link Scheduling & Queuing COS 461: Computer Networks

1 Drop-tail has fewer burst losses than REDT/F

2 Both drop-tail and RED can be used with Explicit Congestion Notification (ECN), so the router can signal congestion to the sender without dropping a packet

T/F3 RED drops every incoming packet with some probability P > 0

T/F

19

Page 20: Link Scheduling & Queuing COS 461: Computer Networks

TCP Windows

• Receive window– flow control

• Congestion window– Additive increase / multiplicative decrease– Triple duplicate ACKs– Slow-start, fast retransmit, fast recovery, etc.