Traffic shaping is similar to that of traffic policing. Traffic shaping buffers packets that need to be dropped by traffic policing by means of buffer and token bucket.
When the traffic volume on a network is heavy, nonconforming packets are directly discarded. If the upstream router sends a large volume of data traffic, the downstream network may be congested or a great number of packets are dropped. To prevent this situation, configure traffic shaping on the outbound interface of the upstream router to limit the traffic. Traffic shaping enables packets to be transmitted at an even rate and improves the allocation of bandwidth resources between the upstream and downstream networks.
Traffic shaping is carried out using buffers and token buckets. If packets are sent at a high rate, nonconforming packets are not dropped. Instead, such packets are placed in buffer queues. Under the control of token buckets, buffered packets are sent at an even rate by queue scheduling priority when the network is idle. As a result, packet retransmissions in case of packet dropping is prevented.
Differentiated service (DiffServ) is used to guarantee the bandwidth for behavior aggregate (BA) data traffic. The NetEngine 8000 F uses the queue scheduling mechanism to allocate resources to the services of different classes, such as expedited forwarding (EF) and assured forwarding (AF) queues. You do not need to configure queue management.
Currently, the NetEngine 8000 F supports traffic shaping only for the outgoing traffic on interfaces.
Before configuring traffic shaping, complete the following tasks:
Configure parameters for physical interfaces.
Configure link layer attributes for interfaces to ensure their normal operating.
Configure IP addresses for interfaces.
Enable a routing protocol for communication between devices.
After you configure traffic shaping, check whether the configuration takes effect.
Run the display interface [ interface-type [ interface-number ] ] command to check traffic information on a specific interface.