Lesson 7: Rate Limiting and Traffic Shaping Flashcards

1
Q

Motivation for Rate Limiting and Traffic Shaping

A

Control network resources and ensure no traffic flow exceeds pre-specified rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Classifications of Sources

A

Data, Audio, Video

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is CBR and what does it look like?

A

Constant Bit Rate: Arrives at regular intervals, packets are same size as they arrive. Example: Audio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is VBR and what does it look like?

A

Variable Bit Rate: Shaped according to the average rate and peak rate. Average rate is a small fraction of the peak rate. Example: Video and Data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does Leaky Bucket Traffic Shaping Work?

A

Each flow has its own bucket, and traffic arrives in bucket of a size beta. Data can arrive faster or slower into bucket, but will not exceed the RHO drain rate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In a leaky bucket, what controls the max burst size?

A

The size of the bucket controls the max burst size that can be sent at once.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does (r, T) traffic shaping work?

A

There are T-bit frames, and the flow can only inject less than or equal to r bits into each T-bit frame.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens if the sender wants to send more than one packet of r bits in a T-bit frame in (r,T) traffic shaping?

A

They must wait until the next T-bit frame to do so.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens in (r, T) traffic shaping if a flow exceeds a certain rate?

A

The excess packets for that flow are given lower priority, which can be done at the sender or the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is it called when the network marks packets with lower priorities?

A

Policing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is it called when the sender marks packets with priorities?

A

Marking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a token bucket, and how does it work?

A

In a token bucket, tokens are placed into a bucket at rate rho, where beta is the capacity of the bucket. Traffic can be sent through regulator as long as there are token in the bucket. Otherwise, it will have to wait for token to be placed in bucket to be sent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the formula for the maximum rate that can be sent in a token bucket?

A

Beta + T*rho, where beta is the bucket size, T is the time interval, and rho is the rate at which tokens are placed in the bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In what way is a token bucket worse than a leaky bucket?

A

Token buckets are much harder to police than leaky buckets, since they have no discards or priorties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the main differences between a leaky bucket and a token bucket?

A

A token bucket allows burstiness, but will bound it to rate rho. A leaky bucket will force the bursty traffic to be smoothed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a way that you can police packets in a token bucket?

A

Use a composite shaper, which is where you combine a token bucket and a leaky bucket. The Token bucket fills into a leaky bucket, which allows for good policing by confirming that the flow data rate does not exceed the avg data rate allowed by the leaky bucket.

17
Q

What are the two main types of power boost?

A

Capped power boost, where the rate at which a user can achieve during a boost window cannot exceed a particular rate. Uncapped Power Boost, where the rate at which the user can achieve is theoretically unlimited, or only limited by the bucket size.

18
Q

What is the equation to find the time(d) at which a sender can send at a rate r, which exceeds the sustained rate Rsustained?

A

d = beta/(r - Rsustained)

19
Q

What effect does powerboost have on latency?

A

Powerboost has a negative effect on latency. Although it allows a higher traffic rate, users may experience high latency and loss over the duration of the power boost at a higher sending rate.