1-20 
Configuring Traffic Shaping 
Refer to Traffic Policing and Traffic Shaping for information about traffic shaping. 
Configuration prerequisites 
z  The queue for which traffic shaping is to be performed has been determined. 
z  The maximum traffic rate and the burst size have been determined.  
z  The port where traffic shaping is to be configured has been determined. 
Configuration procedure 
Follow these steps to configure traffic shaping: 
To do…  Use the command…  Remarks 
Enter system view 
system-view 
— 
Enter Ethernet port view 
interface interface-type 
interface-number 
— 
Configure traffic shaping 
traffic-shape [ queue 
queue-id ] max-rate 
burst-size 
Required 
Disabled by default. 
Traffic shaping can be configured in 
one of the following two modes: 
z  Without queue queue-id specified, 
traffic shaping applies to all traffic.
z  With  queue queue-id specified, 
traffic shaping applies to traffic in 
the specified queue. 
 
Configuration example 
# Configure traffic shaping for all the traffic to be transmitted through GigabitEthernet 1/0/1, with the 
maximum traffic rate being 640 kbps and the burst size being 16 kbytes.  
<Sysname> system-view 
[Sysname] interface GigabitEthernet1/0/1 
[Sysname-GigabitEthernet1/0/1] traffic-shape 640 16 
Configuring Queue Scheduling 
Refer to Queue Scheduling for information about queue scheduling. 
Configuration prerequisites 
The queue scheduling algorithm to be used and the related parameters have been determined. 
Configuration procedures 
1)  Configuring SP queuing 
Follow these steps to configure SP queuing: 
To do…  Use the command…  Remarks 
Enter system view 
system-view 
—