866 CHAPTER 66: TRAFFIC CLASSIFICATION, TP, AND LR CONFIGURATION
implement different regulation policies in different conditions, including “enough 
tokens in C bucket”, “insufficient tokens in C bucket but enough tokens in E 
bucket” and “insufficient tokens in both C bucket and E bucket”.
TP The typical application of TP is to supervise the specification of certain traffic into 
the network and limit it within a reasonable range, or to “discipline” the extra 
traffic. In this way, the network resources and the interests of the operators are 
protected. For example, you can limit HTTP packets to be within 50% of the 
network bandwidth. If the traffic of a certain connection is excess, TP can choose 
to drop the packets or to reset the priority of the packets.
TP is widely used in policing the traffic into the network of internet service 
providers (ISPs). TP can classify the policed traffic and perform pre-defined policing 
actions based on different evaluation results. These actions include:
■ Forwarding conforming packets or non-conforming packets.
■ Dropping conforming or non-conforming packets.
■ Marking a conforming packet with a new 802.1p precedence value and 
forwarding the packet.
■ Marking a conforming packet with a new IP precedence value and forwarding 
the packet.
■ Marking a conforming packet or a non-conforming packet with a new DSCP 
precedence value and forwarding the packet.
LR Port rate limiting refers to limiting the total rate of inbound or outbound packets 
on a port.
Port rate limiting can be implemented through token buckets. That is, if you 
perform port rate limiting configuration for a port, the token bucket determines 
the way to process the packets to be sent by this port or packets reaching the 
port. Packets can be sent or received if there are enough tokens in the token 
bucket; otherwise, they will be dropped.
Compared to TP, port rate limiting applies to all the packets passing a port. It is a 
simpler solution if you want to limit the rate of all the packets passing a port.
LR Configuration
LR Configuration
Procedure
Follow these steps to configure LR:
To do… Use the command…  Remarks 
Enter system view system-view - 
Enter 
interface 
view or 
port group 
view 
Enter port 
view 
interface interface-type 
interface-number 
Enter either view.
For Ethernet interface view, the 
following configuration takes 
effect only on the current 
interface. For entering port 
group view, the following 
configuration takes effect on all 
the ports. 
Enter port 
group view 
port-group { manual 
port-group-name | aggregation 
agg-id }