Rate Limiting and Traffic Shaping Flashcards
Classification of traffic sources: Data
- Bursty
- Periodic
- Regular
Classification of traffic sources: Audio
- Continuous
2. Periodic
Classification of traffic sources: Video
- Continuous
- Bursty (due to how video is compressed)
- Periodic
Constant Bit Rate: example
Audio
Variable Bit Rate: example
Video and Data
Leaky Bucket
Traffic arrives in a bucket of size beta and drains from bucket at a rate rho
- Smooths out traffic by passing packets only when there is a token. Does not permit burstiness.
- Discards packets for which no tokens are available (no concept of queue)
- Application: Traffic shaping or traffic policing.
(r, T) Traffic Shaping
- Traffic Divided in to T-bit frames
2. Flow can inject >= r bits into T-bit frams
What happens when flow exceed rate in (r, T) Traffic Shaping?
The excess packets are assigned a lower priority
Policing
When the network (as opposed to the sender) marks packets for lower priority.
**this refers to (r, T) traffic shaping
Type of bucket: shaping bursty traffic
Token Bucket
Token bucket: Rate
rate < B + (rho*T)
T = time interval B = bucket size rho = rate at which token accumulate
Token bucket: characteristics
- Permits burstiness, but bounds it
2. No discard or priority
Leaky bucket: characteristics
- smooths bursty traffic
2. has priority policies
Power Boost: Definition
- Allows users to send at higher rate for a brief period of time
There are 2 types of Power Boost
- Capped
2. Uncapped
Uncapped Power Boost (explanation)
The original max rate is rho.
The higher rate is rho(c).
The area of the boosted segment is beta. This is the size of the token bucket.
Buffer Bloat: explained
- Even if a sender can burst at high speed, the buffer can only be drained at a rate Rsus.
Buffer bloat delay calculation
delay = data in buffer / Rsus
Buffer Bloat: solutions
- Smaller buffers
2. Traffic shaping (of your home router)
Passive measurement: definition
Collect traffic that is already being sent on the network
a. packets
b. flow statistics
c. application logs
Active measurement: definition
inject extra traffic into the network
a. ping
b. traceroute
Passive Measurement: SNMP
Simple Network Management Protocol
- Poll the Management information base (MIB) for particular information
Passive Measurement: packet monitoring
Wireshark (basically)
Passive Measurement: flow monitoring
- A flow is basically all packets/traffic from one particular source
- Less precise than packet monitoring (since you aren’t capturing all packets)