Docsity

Scheduling - Engineering Approach to Computer Networking - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Scheduling - Engineering Approach to Computer Networking - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Scheduling

An Engineering Approach to Computer Networking An Engineering Approach to Computer Networking

Outline nn

What is schedulingWhat is scheduling

n n

Why we need itWhy we need it

n n

Requirements of a scheduling disciplineRequirements of a scheduling discipline

nn

Fundamental choicesFundamental choices

nn

Scheduling best effort connectionsScheduling best effort connections

n n

Scheduling guaranteed-service connectionsScheduling guaranteed-service connections

n n

Packet drop strategiesPacket drop strategies

Components nn

A scheduling discipline does two things:A scheduling discipline does two things:

u u

decides service order decides service order

u u

manages queue of service requests manages queue of service requests

nn

Example:Example:

uu

consider queries awaiting web server consider queries awaiting web server

u u

scheduling discipline decides service order scheduling discipline decides service order

u u

and also if some query should be ignored and also if some query should be ignored

Where? nn

Anywhere where contention may occurAnywhere where contention may occur

n n

At every layer of protocol stackAt every layer of protocol stack

n n

Usually studied at network layer, at output queues of switchesUsually studied at network layer, at output queues of switches

Why do we need one? nn

Because future applications need itBecause future applications need it

n n

We expect two types of future applicationsWe expect two types of future applications

u u

best-effort (adaptive, non-real time) best-effort (adaptive, non-real time)

FF

e.g. email, some types of file transfere.g. email, some types of file transfer

uu

guaranteed service (non-adaptive, real time) guaranteed service (non-adaptive, real time)

F F

e.g. packet voice, interactive video, stock quotese.g. packet voice, interactive video, stock quotes

What can scheduling disciplines do? nn

Give different users different qualities of serviceGive different users different qualities of service

n n

Example of passengers waiting to board a planeExample of passengers waiting to board a plane

u u

early boarders spend less time waiting early boarders spend less time waiting

uu

bumped off passengers are ‘lost’! bumped off passengers are ‘lost’!

nn

Scheduling disciplines can allocateScheduling disciplines can allocate

u u

bandwidth bandwidth

u u

delay delay

uu

loss loss

nn

They also determine howThey also determine how

fairfair

the network is the network is

Requirements nn

An ideal scheduling disciplineAn ideal scheduling discipline

u u

is easy to implement is easy to implement

u u

is fair is fair

uu

provides performance bounds provides performance bounds

uu

allows easy allows easy

admission control admission control decisions

decisions

F F

to decide whether a new flow can be allowedto decide whether a new flow can be allowed

Requirements: 1. Ease of implementation nn

Scheduling discipline has to make a decision once every fewScheduling discipline has to make a decision once every fewmicroseconds!microseconds!

n n

Should be implementableShould be

implementable in a few instructions or hardware

in a few instructions or hardware

u u

for hardware: critical constraint is VLSI for hardware: critical constraint is VLSI

spacespace

nn

Work per packet should scale less than linearly with number ofWork per packet should scale less than linearly with number ofactive connectionsactive connections

Fairness (contd.) nn

Fairness isFairness is

intuitively intuitively a good idea

a good idea

n n

But it also providesBut it also provides

protection protection

u u

traffic hogs cannot overrun others traffic hogs cannot overrun others

uu

automatically builds automatically builds

firewalls firewalls around heavy users

around heavy users

nn

Fairness is aFairness is a

globalglobal objective, but scheduling is local

objective, but scheduling is local

n n

Each endpoint must restrict its flow to the smallest fair allocationEach endpoint must restrict its flow to the smallest fair allocation

n n

Dynamics + delay => global fairness may never be achievedDynamics + delay => global fairness may never be achieved

Requirements: 3. Performance bounds nn

What is it?What is it?

u u

A way to obtain a desired level of service A way to obtain a desired level of service

n n

Can beCan be

deterministic ordeterministic

or

statistical statistical

nn

Common parameters areCommon parameters are

uu

bandwidth bandwidth

u u

delay delay

u u

delay-jitter delay-jitter

uu

loss loss

Delay and delay-jitter nn

Bound on some parameter of the delay distribution curveBound on some parameter of the delay distribution curve

Req’ments: 4. Ease of admission control nn

Admission control needed to provide QoSAdmission control needed to provide QoS

n n

Overloaded resource cannot guarantee performanceOverloaded resource cannot guarantee performance

n n

Choice of scheduling discipline affects ease of admission controlChoice of scheduling discipline affects ease of admission controlalgorithmalgorithm

Fundamental choices1. Number of priority levels1. Number of priority levels2. Work-conserving vs2. Work-conserving

vs. non-work-conserving

. non-work-conserving 3. Degree of aggregation3. Degree of aggregation4. Service order within a level4. Service order within a level

Choices: 1. Priority nn

Packet is served from a given priority level only if no packetsPacket is served from a given priority level only if no packetsexist at higher levels (exist at higher levels (

multilevel priority with exhaustive service multilevel priority with exhaustive service)

n n

Highest level gets lowest delayHighest level gets lowest delay

n n

Watch out for starvation!Watch out for starvation!

nn

Usually map priority levels to delay classesUsually map priority levels to delay classes

Low bandwidth urgent messages Low bandwidth urgent messages

Realtime Realtime

Non- Non-realtime

realtime

Priority

Docsity.com