DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
110
DGS-3710-12C:admin#
6-14
config flow_meter
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 of this function can be applied. 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, overflowing packets will either be dropped or have a drop
precedence set, depending on the user configuration. For single rate three color mode, users need
to specify the committed rate, in Kbps, the committed burst size, and the excess burst size. For the
two rate three color mode, users need to specify the committed rate in Kbps, the committed 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.
The replace DSCP action can be performed on packets that conform (GREEN), exceed
(YELLOW), and violate (RED) the criteria. The color mapping for both “single rate three color” and
“two rate three color” mode follow RFC 2697 and RFC 2698 in the color-blind situation.
Format
config flow_meter [profile_id <value 1-12> | profile_name <name 1-32>] access_id <value 1-
128> [rate [<value 0-1000000>] {burst_size [<value 0-16384>]} rate_exceed [drop_packet |
remark_dscp <value 0-63>] | tr_tcm cir <value 0-1000000> {cbs <value 0-16384>} pir <value
0-1000000> {pbs <value 0-16384>} {[color_blind | color_aware]} {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-1000000> cbs <value 0-16384> ebs
<value 0-16384> {[color_blind | color_aware]} {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]
Parameters
profile_id
- Specifies the index of the access list profile.
<value 1-12>
- Specifies the value between 1 and 12.
profile_name
- Specifies the name of the profile.
<name 1-32>
- Specifies the name of the profile. The maximum length is 32 characters.
access_id
- Specifies the index of the access list entry.
<value 1-128>
- Specifies the value between 1 and 128.
rate
- Specifies the rate for single rate two color mode. Specifies the committed bandwidth in
Kbps for the flow.
<value 0-1000000>
- Specifies the value between 0 and 1000000.
burst_size
- (Optional) Specifies the burst size for the single rate two color mode. The unit is
Kbyte.
<value 0-16384>
- Specifies the value between 0 and 16384.
rate_exceed
- Specifies the action for packets that exceed the committed rate in single rate two
color mode. The action can be specified as one of the following:
drop_packet
- Drop the packet immediately.
remark_dscp
- Mark the packet with a specified DSCP. The packet is set to drop for packets