Rate Limit on Physical Interfaces

gokibria
gokibria  Diamond  (1)
7 years 10 months ago  View: 1619  Reply: 7
1F

When the rate of the outgoing network traffic on an interface is greater than that of the incoming network traffic on the interface, you can adopt traffic shaping (TS) to avoid packet loss and network congestion.


Purpose

TS limits the volume and burst of outgoing traffic on a network connection. Thus, the packets can be transmitted at an even rate. TS is carried out by means of the buffer and TB. When packets are transmitted too fast, the packets are first cached in the buffer and then transmitted at an even rate under the control of the TB. Both traffic policing and traffic shaping are realized at the network layer (IP layer) and thus take effect on only the packets that need to be processed at the IP layer. To limit the rate of sending all packets on an interface, you need to adopt rate limit on the physical interface.


Rate limit on physical interfaces controls traffic by means of a TB and buffer. A TB can be regarded as a container of tokens, which has a pre-defined capacity. The system puts tokens into the TB at a set rate. When the TB is full of tokens, the excessive tokens overflow and the number of the tokens in the TB does not increase.

The process is as follows:

If there are enough tokens in the TB, packets can be forwarded by the device,

and the number of tokens in the TB decreases based on the length of the arriving packets.

If the TB is empty, packets enter the buffer queue. The packets in the buffer queue can be sent when enough tokens are put into the TB.




mdarifislam
mdarifislam  Platinum 
7 years 10 months ago
2F
Please share more about TB and TS.
mdarifislam
mdarifislam  Platinum 
7 years 10 months ago
3F
Please share command line steps for this.
mdarifislam
mdarifislam  Platinum 
7 years 10 months ago
4F
Nice informative post.
mdarifislam
mdarifislam  Platinum 
7 years 10 months ago
5F
Please share command line steps for this.
madhossain
madhossain  Silver 
7 years 10 months ago
6F
How TB manages tokens.
madhossain
madhossain  Silver 
7 years 10 months ago
7F
I need to know more about TB.
madhossain
madhossain  Silver 
7 years 10 months ago
8F
Good to know about this.