Quality of service
Shaping and policing
Two ways to hold traffic to a rate: a shaper queues the excess, a policer drops it.
Shaping and policing both hold traffic to a rate, measured with a token bucket: a rate plus an allowed burst. A shaper queues the excess: nothing is lost, but everything behind it gets delay. A policer drops it: no delay but loss, so TCP cuts its window and resends. Providers police what enters their network; facing one, shape just under its rate so nothing reaches it to be dropped.
Read next
- Quality of service Deciding which traffic waits when a link is full: classify it, then schedule the queue, voice first.
- Bufferbloat Delay added by an oversized queue that TCP fills before any packet is dropped.
- Congestion window The sender's own limit on data in flight, grown while all goes well and cut on loss.
- DSCP Six bits in the IP header that mark a packet's traffic class, such as EF (46) for voice.