Configuring Shaping for CoS (CLI Procedure)
Port shaping and queue shaping enable you to limit traffic on an interface or queue, respectively, so that you can control the amount of traffic passing through the interface or the queue. Port shaping enables you to shape the aggregate traffic through an interface to a rate that is less than the line rate for that interface. When you configure port shaping on an interface, you are essentially specifying a value that indicates the maximum amount of traffic that can pass through the interface. This value must be less than the maximum bandwidth for that interface. Queue shaping enables you to throttle the rate at which a queue transmits packets. When you configure queue shaping, you can specify either as the maximum rate at which traffic can pass through the queue or as a percentage of the available bandwidth.
Configuring Port Shaping for CoS on an EX Series Switch
You can configure port shaping on network interfaces, aggregated Ethernet interfaces (also known as link aggregation groups (LAGs)), and loopback interfaces.
To configure port shaping on an interface:
Configuring Queue Shaping for CoS on an EX Series Switch
Queue shaping enables you to restrict the rate at which queues transmit traffic. You can configure queue shaping on any queue supported by CoS on an EX Series switch that supports up to eight output queues and 16 forwarding classes. Forwarding classes can be thought of as output queues. In effect, the result of classifying packets into forwarding classes is the identification of an output queue for a particular packet. For a classifier to assign an output queue to a packet, it must associate the packet with one of the forwarding classes discussed in Understanding CoS Forwarding Classes.
To configure queue shaping:
- Ensure that the interface on which you want to configure queue shaping is up and running.
- Configure queue shaping: