The line rate of a physical interface specifies the maximum rate for forwarding packets (including critical
packets).
Line rate also uses token buckets for traffic control. With line rate configured on an interface, all packets
to be sent through the interface are handled by the token bucket at line rate. If enough tokens are in the
token bucket, packets can be forwarded. Otherwise, packets are put into QoS queues for congestion
management. In this way, the traffic passing the physical interface is controlled.
Figure 12 Line rate implementation
The token bucket mechanism limits traffic rate when accommodating bursts. It allows bursty traffic to be
transmitted if enough tokens are available. If tokens are scarce, packets cannot be transmitted until
efficient tokens are generated in the token bucket. It restricts the traffic rate to the rate for generating
tokens.
Line rate can only limit traffic rate on a physical interface, and traffic policing can limit the rate of a flow
on an interface. To limit the rate of all the packets on interfaces, using line rate is easier.
Configuring traffic policing
Configuration restrictions and guidelines
In a traffic behavior, do not configure traffic policing with any priority marking action (including local
precedence, drop precedence, 802.1p priority, DSCP value, and IP precedence marking actions) in the
same traffic behavior. Otherwise, you will fail to apply the QoS policy successfully.
Configuration procedure
To configure traffic policing:
Step
1.
Enter system view.
2.
Create a class and enter class
view.
3.
Configure match criteria.
Command
system-view
traffic classifier tcl-name [ operator { and
| or } ]
if-match match-criteria
35
Remarks
N/A
N/A
N/A