xStack® DES-3528/DES-3552 Series Layer 2 Managed Stackable Fast Ethernet Switch CLI Reference Guide
279
config flow_meter
Purpose
Used to configure packet flow-based metering based on an access profile and rule.
Syntax
config flow_meter [profile_id <value 1-14> | profile_name <name 1-32>] access_id
<value 1-128> [rate [<value 0-1048576>] {burst_size [<value 0-16384>]} rate_exceed
[drop_packet | remark_dscp <value 0-63>] | tr_tcm cir <value 0-1048576> {cbs <value
0-16384>} pir <value 0-1048576> {pbs <value 0-16384>} {conform [permit |
replace_dscp <value 0-63>] {counter [enable | disable]}} exceed [permit {replace_dscp
<value 0-63>} | drop] {counter [enable | disable]} violate [permit {replace_dscp <value
0-63>} | drop] {counter [enable | disable]} | sr_tcm cir <value 0-1048576> cbs <value 0-
16384> ebs <value 0-16384> {conform [permit | replace_dscp <value 0-63>] {counter
[enable | disable]}} exceed [permit {replace_dscp <value 0-63>} | drop] {counter
[enable |disable]} violate [permit {replace_dscp <value 0-63>} | drop] {counter [enable
|disable]} | delete]
Description
This command is used to configure the flow-based metering function. The metering function
supports three modes, single rate two color, single rate three color, and two rate three color.
The access rule must be created before the parameters in this command is configured.
For the single rate two color mode, users may set the preferred bandwidth for this rule, in
Kbps and once the bandwidth has been exceeded, overflow packets will be either dropped or
remark to other DSCP.
For the single rate three color mode, users need to specify the committed rate in Kbps, the
commited burst size and the excess burst size.
For the two rate three color mode, users need to specify the committed rate in Kbps, the
commited burst size, the peak rate and the peak burst size.
The green color packet will be treated as the conforming action, the yellow color packet will
be treated as the exceeding action, and the red color packet will be treated as the violating
action.
Parameters
profile_id
- Specifies the profile ID.
<value 1-14>
- Enter the profile ID here. This value must be between 1 and 14.
profile_name
- Specifies the name of the profile. The maximum length is 32 characters.
<name>
- Enter the profile name used here.
access_id
- Specifies the access ID.
<access_id>
- Enter the access ID used here.
rate
- This specifies the rate for single rate two color mode. Specify the committed bandwidth
in Kbps for the flow.
<value 0-1048576>
- Enter the rate for single rate two color mode here. This value must be
between 0 and 1048576.
burst_size
- (Optional) This specifies the burst size for the single rate two color mode. The
unit is Kbytes.
<value 0-16384>
- Enter the burst size value here. This value must be between 0 and 16384.
rate_exceed
- This specifies the action for packets that exceed the committed rate in single
rate two color.
drop_packet
- Drop the overflow packets immediately.
remark_dscp
- Mark the packet with a specified DSCP. The packet is set to have a high drop
precedence.
<value 0-63>
- Enter the remark DSCP value here. This value must be between 0 and 63.
tr_tcm
- Specifies the “two rate three color mode”.
cir
- Specifies the “Committed Information Rate”. The unit is in Kbps. CIR should always be
equal or less than PIR.
<value 0-1048576>
- Enter the commited information rate value here.
cbs
- (Optional) Specifies the “Committed Burst Size”. The unit is Kbytes. That is to say, 1
means 1Kbytes. This parameter is an optional parameter. The default value is 4Kbyte.
<value 0-16384>
- Enter the commited burst size value here.
pir
- Specifies the “Peak Information Rate”. The unit is in Kbps. PIR should always be equal
to or greater than CIR.
<value 0-1048576>
- Enter the peak information rate value here.