Figure 4-2 Line rate implementation
In the token bucket approach to traffic control, burst traffic can be transmitted so long as enough tokens
are available in the token bucket; if tokens are inadequate, packets cannot be transmitted until the
required number of tokens are generated in the token bucket. Thus, traffic rate is restricted to the rate
for generating tokens, thus limiting traffic rate and allowing bursty traffic.
Compared with traffic policing, line rate can only limit traffic rate on a physical interface. Since traffic
policing operates at the IP layer, it can limit the rate of different flows on a port. However, traffic policing
ignores packets not processed by the IP layer. To limit the rate of all the packets on interfaces, using line
rate is easier.
CAR/GTS/Line Rate Configuration
On the S5120-EI series switches, traffic policing is achieved mainly through QoS policies. For QoS
policy configuration, refer to
Configuring GTS
The S5120-EI series switches implement GTS based on queues, that is, implement GTS by setting
GTS parameters for packets of a certain queue.
Configuration procedure
Follow these steps to configure GTS:
To do...
Enter system view
Enter
Enter
interface
interface
view
view or
Configuring a QoS
Policy.
Use the command...
system-view
interface interface-type
interface-number
4-4
Remarks
—
Use either command.
Settings in interface view take
effect on the current interface;