Configuring Traffic Shaping
Refer to
Traffic Policing and Traffic Shaping
Configuration prerequisites
The queue for which traffic shaping is to be performed has been determined.
The maximum traffic rate and the burst size have been determined.
The port where traffic shaping is to be configured has been determined.
Configuration procedure
Follow these steps to configure traffic shaping:
To do...
Enter system view
Enter Ethernet port view
Configure traffic shaping
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
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...
Enter system view
for information about traffic shaping.
Use the command...
system-view
interface interface-type
interface-number
traffic-shape [ queue
queue-id ] max-rate
burst-size
for information about queue scheduling.
Use the command...
system-view
1-20
Remarks
—
—
Required
Disabled by default.
Traffic shaping can be configured in
one of the following two modes:
Without queue queue-id specified,
traffic shaping applies to all traffic.
With queue queue-id specified,
traffic shaping applies to traffic in
the specified queue.
Remarks
—