beautypg.com

Configuring traffic policing, Line rate – H3C Technologies H3C S10500 Series Switches User Manual

Page 45

background image

37

Line rate

NOTE:

Line rate supports rate-limiting the outbound traffic.

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

Follow these steps to configure traffic policing:

To do…

Use the command…

Remarks

Enter system view

system-view —

Create a class and enter class
view

traffic classifier tcl-name [ operator { and |
or } ]

Configure match criteria

if-match match-criteria

Return to system view

quit

This manual is related to the following products: