beautypg.com

PLANET XGS3-24040 User Manual

Page 224

background image

14-90

or dual rate dual bucket, by analyzing the parameters. The no command will delete the mode

configuration.

Parameters:

bits_per_second: the committed information rate - CIR , in Kbps, ranging from 1 to 10000000.

normal_burst_bytes:the committed burst size – CBS, in kb, ranging from 1 to 1000000. When the

configured CBS value exceeds the max limit of the chip, configure the hardware with max number

supported by the chip without any CLI prompt.

maximum_burst_bytes:the peak burst size, in kb, ranging from 1 to 10000000. When the configured

PBS value exceeds the max limit of the chip, configure the hardware with max number supported by

the chip without any CLI prompt. Notice: this configuration only exists in dual bucket mode.

pir peak_rate_bps:the peak burst size, in kb, ranging from 1 to 10000000. When the configured PBS

value exceeds the max limit of the chip, configure the hardware with max number supported by the

chip without any CLI prompt. Notice: this configuration only exists in dual bucket mode.

conform-action:the actions to take when the CIR is not exceeded, which means the messages are

green, including drop, set-dscp-transmit: change dscp (ranging from 0 to 63), set-prec-transmit:

change TOS (ranging from 0 to 1), transmit: messages will pass without any action.

exceed-action:the actions to take when the CIR is exceeded but PIR isn’t, which means the

messages are yellow, including drop, policed-dscp-transmit: mark down the packets DSCP value,

transmit: messages will pass without any action.

violate-action:the actions to take when the PIR is exceeded, which means the messages are red,

including drop, policed-dscp-transmit: mark down the packets DSCP value, transmit: messages will

pass without any action. Notice: this action only exists in dual bucket mode.

Default:

No aggregation Policer is defined by default; the default action of conform-action is transmit, while

that of exceed-action and violate-action both is drop. show running-config won’t display the default

configurations.

Command mode:

Policy class map configuration Mode

Usage Guide:

The CLI can support both singe bucket and dual bucket configuration, and determine which one to

select by checking whether violate-action is configured. When configuring with CLI, after configuring

CBS, if the action is directly configured, the mode is single rate single bucket; if only PBS is

configured, the mode is single rate dual bucket; if PIR and PBS are configured, the mode is dual

rate dual bucket.

Example:

In the policy class table configuration mode, set the CIR as 1000, CBS as 2000 and the action when

CIR is not exceeded as transmitting the messages after changing DSCP to 23, and the action

triggered by exceeding CIR as transmit without changing the messages.

Switch(config)#class-map cm

Switch(config-classmap-cm)#match cos 0

Switch(config-classmap-cm)#exit