Traffic Shaping by Token Bucket: Unit 03.04.04 CS 5220: Computer Communications
Traffic Shaping by Token Bucket: Unit 03.04.04 CS 5220: Computer Communications
Traffic Shaping by Token Bucket: Unit 03.04.04 CS 5220: Computer Communications
04
CS 5220:
COMPUTER COMMUNICATIONS
Packet
Size N
Incoming traffic Shaped traffic
Server
Packet
Token rate regulates transfer of packets
If sufficient tokens available, packets enter network without delay
K determines how much burstiness allowed into the network
Token Bucket Shaping Effect (full)
Q1: what are two main differences of a leaky bucket and a token bucket?
Allow saving for burst spending; packet discarding or not.
(a)
(b)
Feedback information
Congestion Warning