H3C LS-3100-52P-OVS-H3 Operation Manual - page 1279
4-4
Line Rate
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 first handled by the token bucket at line rate. If there are enough
tokens 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 4-4 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.
GTS/Line Rate Configuration
Configuring GTS
Configuration procedure
Follow these steps to configure GTS:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter
interface
view
interface interface-type
interface-number
Enter
interface
view or
port group
view
Enter port
group
view
port-group manual port-group-name
Use either command.
Settings in interface view take
effect on the current interface;
settings in port group view
take effect on all ports in the
port group.