CANOGA PERKINS CanogaOS Configuration Guide User Manual

Page 273

Advertising
background image

CanogaOS Configuration Guide

Proprietary & Confidential Canoga Perkins Metro Ethernet Switches

Page 273 of 350

The following example shows creating an ingress port policer. In this example, if the received
traffic exceeds a 48000-kbps average traffic rate, it is dropped.

DUT(config)# interface eth-0-1

DUT(config-if)# port-policer ingress color-blind cir 48000 cbs 10000 ebs 20000

drop-color red

Configure shaping

Port shaping

All traffic transmitted in the physical interface can be shaped, and all the exceeding traffic will
be buffered. If no buffer, it is dropped.
The following shows creating a port shaping to shape traffic. Follow these steps from Privileged
Exec mode.

1. configure terminal.

2. interface IFNAME to specify the interface to match to the policy map.

IFNAME = name of interface

3. shape average percent <0-99> to specify a port shaping.

Note: The no shape command deletes a port shaping.
The following example shows creating a port shaping. In this example, if the received traffic
exceeds a 50 percent of the whole interface bandwidth, it is buffered.

DUT(config)# interface eth-0-1

DUT(config-if)# shape average percent 50

Queue shaping

All the traffic in the egress queue can be shaped, and all the exceeding traffic will be buffered. If
no buffer, it is dropped.
The following shows creating a queue shaping to shape traffic. Follow these steps from
Privileged Exec mode.

1. configure terminal.

2. interface IFNAME to specify the interface to match to the policy map.

IFNAME = name of interface

3. queue <0-7> shape average percent <0-99> to specify a queue shaping.

Note: The no queue <0-7> shape command deletes a queue shaping.
The following example shows creating a queue shaping for queue 3. In this example, if the traffic
in queue 3 exceeds a 10 percent of the whole interface bandwidth, it is buffered.

DUT(config)# interface eth-0-1

DUT(config-if)# queue 3 shape average percent 10

Advertising