Lecture 3: 3rd October 2019 Flashcards
Scheduling in routers
What is scheduling, in general?
Distributing requests to access a resource in a manner determined by a system or algorithm.
What is the scheduled resource in routers?
A place in the output queue, to gain bandwidth/capacity.
What is the service of routers?
packet forwarding
What are the service requests of routers?
packets arriving on input lines
How and why are packets classified in routers?
inbound packets and control signals from the forwarding and routing policies are fed into the internal packet classifier. This is because there are multiple output buffers so packets will be sent to the appropriate ones by some measure or distinction.
What do the switching fabrics of routers do?
Use forwarding/routing tables to move received packets from the packet classifier to output buffers.
How is it decided which output queue is able to output in each turn?
The scheduler decides this.
What is FCFS aka?
FIFO
How does FCFS work?
1st to arrive is 1st out; one queue preserving chronological order.
What are work-conserving scheduling algorithms?
Scheduling algorithms in which each packet is serviced ASAP, and as long as there is traffic the output will never be idle. Like a roundabout vs traffic light crossroads: as long as cars in, cars going out.
Is FCFS work-conserving? Why?
Yes because as long as there is input into the queue there will be output, and each packet is output as soon as it reaches the end of the queue.
What is the difference between work-conserving and non-work-conserving algorithms?
Work-conserving scheduling algorithms are like a roundabout vs traffic light crossroads: as long as cars in, cars going out. A work-conserving scheduler is a scheduler that always tries to keep the scheduled resource/s busy if there are submitted jobs ready to be scheduled. It’s called work-conserving because it conserves the ability to constantly do work if possible.
Non-work conserving algorithms are harder to implement, usually in software rather than hardware, so are usually used toward the edge of networks. Token buckets are used to implement “speed limits”.
What is the FCFS conservation law?
The product of the mean link utilisation and the delay due to the scheduler for each flow a scheduler is managing is equal to a constant which limits the maximum performance of a scheduler without hardware changes. The mean link utilisation is equal to the mean arrival rate divided by the mean service rate.
What are the consequences of the FCFS conservation law?
The mean delay due to a scheduler is inversely proportional to its mean link utilisation.
Can routers control the arrival rate?
No