H3C S5100-SI Operation Manual page 402

Ethernet switches
Hide thumbs Also See for H3C S5100-SI:
Table of Contents

Advertisement

Token bucket
A token bucket can be considered as a container holding a certain number of tokens. The
system puts tokens into the bucket at a set rate. When the token bucket is full, the extra
tokens will overflow.
Figure 1-6 Evaluate the traffic with the token bucket
Packets to be sent
through this port
Evaluating the traffic with the token bucket
The evaluation of traffic specification is based on whether the number of tokens in the
bucket can meet the need of packet forwarding. If the number of tokens in the bucket is
enough for forwarding the packets, the traffic conforms to the specification and is called
conforming traffic; otherwise, the traffic does not conform to the specification and is called
exceeding traffic.
A token bucket uses the following parameters:
Average rate: The rate at which tokens are put into the bucket, namely, the permitted
average rate of the traffic. It is usually set to the committed information rate (CIR).
Burst size: The capacity of the token bucket, namely, the maximum traffic size that is
permitted in each burst. It is usually set to the committed burst size (CBS). The set
burst size must be greater than the maximum packet size.
Evaluation is performed each time a packet arrives. If the number of tokens in the bucket
is enough, the traffic conforms to the specification and the tokens for forwarding the packet
are taken away; if the number of tokens in the bucket is not enough, it means that too many
tokens have been used and the traffic exceeds the specification.
Put tokens in the bucket at the set rate
Packet
classification
Continue to send
Token bucket
Drop
1-13

Advertisement

Table of Contents
loading

This manual is also suitable for:

H3c s5100-ei

Table of Contents