CANOGA PERKINS CanogaOS Configuration Guide User Manual

Page 272

Advertising
background image

CanogaOS Configuration Guide

Proprietary & Confidential Canoga Perkins Metro Ethernet Switches

Page 272 of 350

drop-precedence-0‘s max-threshold is 35, drop-precedence 1 is 45, drop-precedence 2 is 55. If
buffered packets exceeds min-threshold, the subsequent packet will be dropped randomly with
rate of

(drop-probability /256)

DUT(config)# interface eth-0-1

DUT(config-if)# queue 1 random-detect

DUT(config-if)# queue 1 random-detect min-threshold 20 30 40

DUT(config-if)# queue 1 random-detect max-threshold 35 45 55

Schedule

Packets are scheduled by SP between classes and WRR between queues in a class.
The following shows mapping queue to different class and configuring bandwidth. 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> class <0-3> to map queue to specified class.

4. queue-bandwidth to set egress queues’ bandwidth.

The following example shows configuring schedule parameters for egress queues. In this
example, queue 5 6 7 belongs to class 3, which is highest priority. The bandwidth is
1:1:1:1:1:2:3:4.

DUT(config)# interface eth-0-1

DUT(config-if)# queue 5 class 3

DUT(config-if)# queue-bandwidth 1 1 1 1 1 2 3 4

Configure port policing

All traffic received or transmitted in the physical interface can be limited rate, and all the exceeding traffic
will be dropped.

The following shows creating a port-policer to limit bandwidth. 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. port-policer ingress|egress color-blind|color-aware cir <1-1000000> cbs

<0-4000000> ebs <0-4000000>| pir <1-1000000> pbs <0-4000000> drop-color red|yellow

(use-l3-length) to specify a port policer.

Note: The no port-polcier ingress|egress command deletes a port policer.

Advertising