Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

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:

  1. Ensure that the interface on which you want to configure port shaping is up and running.
  2. Assign a shaping rate for the interface:

    The value indicates the maximum amount of traffic (in bps) that can pass through the interface. This value must be less than the maximum bandwidth for that 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:

  1. Ensure that the interface on which you want to configure queue shaping is up and running.
  2. Configure queue shaping:
    1. Define a scheduler and assign a shaping rate to the scheduler:

      You can assign a rate (a value in bits per second (bps)) or a percentage value for shaping-rate.

    2. Define a scheduler map and assign a forwarding class and scheduler (that you defined in the previous step) to the scheduler map:
    3. Assign the scheduler map to an interface: