Coordinated Scheduling: A Mechanism for Efficient Multi-Node - - PowerPoint PPT Presentation

coordinated scheduling a mechanism for efficient multi
SMART_READER_LITE
LIVE PREVIEW

Coordinated Scheduling: A Mechanism for Efficient Multi-Node - - PowerPoint PPT Presentation

Coordinated Scheduling: A Mechanism for Efficient Multi-Node Communication Edward W. Knightly and Chengzhi Li Rice Networks Group http://www.ece.rice.edu/networks Background: Priority Scheduling Each packet has a priority index


slide-1
SLIDE 1

http://www.ece.rice.edu/networks

Edward W. Knightly and Chengzhi Li Rice Networks Group

Coordinated Scheduling: A Mechanism for Efficient Multi-Node Communication

slide-2
SLIDE 2

Edward W. Knightly

Background: Priority Scheduling

Each packet has a priority index Scheduler selects smallest priority index pkt first Index assignment scheme ⇒ Service Discipline

– FIFO: index = arrival_time – Virtual Clock: index = max(arrival_time, prev_index + L/ r)

Arrival Index L/r

slide-3
SLIDE 3

Edward W. Knightly

Earliest Deadline First

Scheduler services packet with smallest deadline = arrival_time + delay_bound EDF is optimal for a single server

Arrival Index

d

slide-4
SLIDE 4

Edward W. Knightly

Multiple Nodes: I ssue 1 , Sub- Optim ality

Over multiple nodes, EDF is not optimal

– Locally optimal rules do not achieve global

  • ptimum (best end-to-end performance)

⇒ … Can do better

slide-5
SLIDE 5

Edward W. Knightly

Multiple Nodes: I ssue 2 , Traffic Distortion

Traffic can become more bursty downstream

– Arrivals previously in now in

Consequence: difficult to analyze and efficiently

support multi-node QoS

Node j Node j+1

d

  • t

t + I t arrivals

I] t d,

  • t

[ + I] t , t [ +

slide-6
SLIDE 6

Edward W. Knightly

Existing Solutions to Distortion Problem

1.

Reshape traffic

Hold packets until conform to original pattern

2.

Isolate flows

Limit distortion by limiting sharing (e.g., guaranteed rate)

  • Problems

– Utilization impact of isolation/ non-work-conserving – Scalability issues with per-flow operations

Node j Node j+1

d

  • t

t + I t

slide-7
SLIDE 7

Edward W. Knightly

Grand Challenge

Design a scheduler with the following properties

Efficient

– achieves high utilization and is work-conserving

Scalable

– without per-flow mechanisms

Quality of Service

– Provides mechanisms for end-to-end services

slide-8
SLIDE 8

Edward W. Knightly

Our Approach: Coordination

Virtual coordination among servers

– Router computes priority index as a function of upstream index

Implications

– Late packets upstream have increased priority downstream – Early packets have priorities reduced downstream

slide-9
SLIDE 9

Edward W. Knightly

Rem aining Outline

Devise a general framework & definition for

coordination

Show that CEDF, FIFO+ , CJVC, … belong to the

CNS class

Derive end-to-end schedulability conditions of CNS

networks – results apply to all schedulers

Illustrate performance implications of coordination

slide-10
SLIDE 10

Edward W. Knightly

Coordinated Netw ork Scheduling Definition

CNS is a work conserving scheduler that selects the

packet with the smallest priority index first

Indexes are given by: hop j at the packet k the

  • f

index priority

  • f

increment the d hop first at the i flow

  • f

packet k the

  • f

time arrival (virtual) t hop j its at i flow

  • f

packet k the

  • f

index priority d hop j at the d d hop first at the d t d

th th k j i, th k i th th k j i, th k j i, k 1

  • j

i, k i,1 k i k j i,

= = =      + + = Observe the recursive relationship of priorities, i.e.,

coordination

slide-11
SLIDE 11

Edward W. Knightly

Coordinated Netw ork Scheduling

Observation: A number of (old and new) schedulers

employ coordination – Recursive priority index

Goal: Identify their common elements and study

the class under a single framework

slide-12
SLIDE 12

Edward W. Knightly

FI FO+ [ CSZ9 2 ]

Servers measure , the average local queueing

delay, and actual packet delay

First node is FIFO Downstream priority index is accumulated

terms from upstream nodes

Multi-node performance gains over WFQ [ CSZ92]

d

d

  • d

)

d ^

delay of packet: d mean delay at router: d ^ priority index += d - d ^ t+d-d ^ t

slide-13
SLIDE 13

Edward W. Knightly

FI FO+ is a Coordinated Scheduler

Specifying scheduler is CNS index assignment

d d

k j i, k 1

  • j

i,

+ d t

k i,1 k i +

t k

i

Node 1 Node j

) d

  • d

(

k 1

  • j

i, 1

  • j

i,

) = +

header priority index data header priority index data

→ =

k 1

  • j

i, 1

  • j

i, k j i,

d

  • d

d ) → = d

k i,1

FIFO at first hop Downstream, relative delay is accumulated, and adjusts priority

slide-14
SLIDE 14

Edward W. Knightly

Coordinated Earliest Deadline First ( Sim ilar to [ And9 9 ,CW M8 9 ] )

CEDF uses virtual coordination among servers

– Downstream priority index is a function of upstream index (t+ 5+ 5 vs. u+ 5)

Late packets upstream have increased priority downstream

– Ex. Pkt delayed by 9 has 2nd node index 1 (vs. 5)

Early packets have priorities reduced downstream

– Ex. Pkt delayed by 1 has 2nd node index 9 (vs. 5)

(t+5)+5

t+5 arrival time t arrival time u

slide-15
SLIDE 15

Edward W. Knightly

Core- stateless Jitter- controlled Virtual Clock ( CJVC) [ SZ9 9 ]

CJVC’s goal: per-flow QoS guarantees without per-

flow state in the core – Mechanism: Dynamic Packet State (DPS)

Observe: CJVC has recursive priority among nodes

– CJVC CNS

d t

k i,1 k i +

Node 1

d d

k j i, k 1

  • j

i,

+

Node j header priority index data header priority index data

? r l t

k i i k i k i

+ +

k i i k i

? r l + = +

slide-16
SLIDE 16

Edward W. Knightly

CNS Properties

All CNS schedulers are core-stateless and scalable CJVC, FIFO+ , …

can be viewed as CNS index assignment schemes – Rate-CNS

priority index depends on reserved bandwidth (ex. CJVC)

– Delay-CNS

index depends on delay parameter (CEDF, FIFO+ , OCF)

slide-17
SLIDE 17

Edward W. Knightly

Advantage of CNS Fram ew ork

Improved understanding of multi-node mechanisms Scheduler design

– CEDF: end-to-end delay bounds – CJVC refinement: work-conserving and without “slack variable”

Performance analysis and QoS

– Solve CNS, solve all…

slide-18
SLIDE 18

Edward W. Knightly

Theoretical Results

Essential Traffic Envelope (ETE)

– Traffic interfering with ability to meet QoS target

Bound ETE downstream

– Exploit coordination property – Prove distortion limited, much as with reshapers

Bound end-to-end delay

– Local (per-node) violations permissible

Index assignment schemes

– CNS can achieve delay bounds of WFQ

slide-19
SLIDE 19

Edward W. Knightly

Traffic Envelopes

Envelopes characterize arrivals as a function of

interval length – Max and deterministic [ Cr95, KWLZ95] – Statistical [ QK99]

Recall: traffic distortion problem

⇒ envelopes distorted

time t + I t

E*( I ) = 3

slide-20
SLIDE 20

Edward W. Knightly

New Concept: Essential Traffic Envelope

Essential traffic impedes a packet’s ability to meet

a deadline – Ex. with FIFO, it’s pkts arriving earlier

Approach: bound traffic with a deadline range vs.

an arrival time range (ETE vs. TE)

Arrival Index Essential Traffic

d t + t

slide-21
SLIDE 21

Edward W. Knightly

I llustration: First Hop ( EDF and CNS)

1st hop: priority indexes are the same in CNS and EDF Suppose that the third packet is seriously delayed due to

cross traffic

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Packet Arrival Event Packet Departure Event Packet Priority Index

5 d =

slide-22
SLIDE 22

Edward W. Knightly

Second Hop W ithout Coordination ( EDF)

At the second hop, the priority indexes depend on the

(local/ late) arrival times in EDF

Traffic distortion is large and propagates downstream

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Packet Arrival Event Packet Departure Event Packet Priority Index

5 d =

slide-23
SLIDE 23

Edward W. Knightly

Second Hop W ith Coordination ( CNS)

I llustration of Essential Traffic Sm oothing

2nd hop: the priority indexes are independent of the

(local/ late) arrival times in CNS

Departures are narrowly distorted (without reshaping) Theory tightly bounds distortion of essential traffic

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Packet Arrival Event Packet Departure Event Packet Priority Index

5 d =

slide-24
SLIDE 24

Edward W. Knightly

End- to- End Schedulability Condition

Allow local violations (ex. missed per-node deadlines)

– … contrast to all previous work

Bound Essential Traffic Envelope downstream Derive an end-to-end delay bound

Schedulability Condition for all coordinated schedulers (CEDF, CJVC, GEDF, FIFO+ , … )

CEDF, GEDF, …

not previously derived

CJVC bound tighter than [ ZDH01]

slide-25
SLIDE 25

Edward W. Knightly

I ndex Assignm ent

Coordinated scheduling achieves the same end-to-end delay bound as WFQ

  • Recall: indexes can be delay targets or L/ r rate assignments
  • Result: under CJVC-like rate assignment and leaky bucket

constrained flows ⇒Same WFQ bounds, yet scalable, work conserving, … ⇒CNS is no worse than WFQ. But can be much better!

slide-26
SLIDE 26

Edward W. Knightly

Perform ance Analysis: CNS vs. GPS

Two CNS weight assignment schemes:

– S-CNS (Simplified CNS)

  • Constant local delay assignment scheme (2 and 6 msec respectively)

– G-EDF (Global EDF) [ CWM89]

Uniform allocation with larger weight at first node

Path for target traffic Path for background traffic

Server 1 Server 2 Server 3 Server 4 Server 5 Server 6

slide-27
SLIDE 27

Edward W. Knightly

Voice Flow s 64/ 32 kb/ sec

Advantages of coordination

– lower end-to-end delay bounds and larger admissible regions

slide-28
SLIDE 28

Edward W. Knightly

CNS vs. EDF ( Pareto on- off)

With 300 flows, reduction in delay form 120 msec

to 50 msec

slide-29
SLIDE 29

Edward W. Knightly

CNS vs. W FQ

With 300 flows, delay reduced from 170 to 50 msec

slide-30
SLIDE 30

Edward W. Knightly

Conclusions

CNS provides a framework for coordinated and

scalable schedulers – FIFO+ , CJVC, GEDF, CEDF, …

General end-to-end results for CNS class

– Bound downstream envelopes exploiting recursive priority index

CNS performance advantages

– Can outperform WFQ, EDF, and re-shaping EDF

slide-31
SLIDE 31

Edward W. Knightly

RNG Projects

Coordinated Scheduling [ LK00,LK01,…

] – Robustness to parameter allocation – Multi-hop wireless networks

Web Server and End System QoS [ KK00] Scalable QoS

– Edge [ CK00, SSYK01] and Host [ BKSSZ00] controlled services

Multi-class services

– Theory [ QK99] and measurement [ KK01]