Page 86 / 757 Scroll up to view Page 81 - 85
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
82
DGS-3627:admin# show flow_meter
Command: show flow_meter
Flow Meter Information
---------------------------------
Profile ID:4
Access ID:1
Mode : trTCM
CIR:1000(64Kbps) CBS:200(Kbyte)
PIR:2000(64Kbps) PBS:200(Kbyte)
Action:
Conform : Permit
Counter: Disabled
Exceed
: Permit
Replace DSCP: 21
Counter: Disabled
Violate : Drop
Counter: Disabled
Total Entries: 1
DGS-3627:admin#
config time_range
Purpose
Used to configure the range of time to activate a function on the switch.
Syntax
config time_range <range_name 32> [hours start_time <time hh:mm:ss> end_time
<time hh:mm:ss> weekdays <daylist> |delete]
Description
This command defines a specific range of time to activate a function on the Switch by
specifying which time range in a day and which days in a week are covered in the time range.
Note that the specified time range is based on SNTP time or configured time. If this time is
not available, then the time range will not be met.
Parameters
<range_name 32>
- Specifies the name of the time range settings.
start_time
- Specifies the starting time in a day. (24-hr time) For example, 19:00 means 7PM.
19 is also acceptable. start_time must be smaller than end_time.
end_time
- Specifies the ending time in a day. (24-hr time)
weekdays
- Specify the list of days contained in the time range. Use a dash to define a period
of days. Use a comma to separate specific days. For example, mon-fri (Monday to Friday),
sun, mon, fri (Sunday, Monday and Friday)
delete
- Deletes a time range profile. When a time_range profile has been associated with
ACL entries, the delete of this time_range profile will fail.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the range of time to activate a function on the switch.
DGS-3627:admin# config time_range weekend hours start_time 0:0:0 end_time 23:59:5
9 weekdays sun,sat
Command: config time_range weekend hours start_time 0:0:0 end_time 23:59:59 week
days sun,sat
Success.
DGS-3627:admin#
show time_range
Purpose
Used to display time range information.
Syntax
show time_range
Description
The show time_range command displays current time range setting.
Page 87 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
83
show time_range
Parameters
None.
Restrictions
None.
Example usage:
To display current time range setting:
DGS-3627:admin#show time_range
Command: show time_range
Time Range Information
-------------------------
Range Name
:
weekend
Weekdays
:
Sun,Sat
Start Time
:
00:00:00
End Time
:
23:59:59
Total Entries :1
DGS-3627:admin#
Page 88 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
84
10
ACL FLOW METERING COMMANDS
Before configuring the ACL Flow Meter, here is a list of acronyms and terms users will need to know.
trTCM
– Two Rate Three Color Marker. This, along with the srTCM, are two methods available on the switch for metering
and marking packet flow. The trTCM meters and IP flow and marks it as a color based on the flow’s surpassing of two
rates, the CIR and the PIR.
CIR
– Committed Information Rate. Common to both the trTCM and the srTCM, the CIR is measured in bytes of
IP packets. IP packet bytes are measured by taking the size of the IP header but not the link specific headers.
For the trTCM, the packet flow is marked green if it doesn’t exceed the CIR and yellow if it does. The configured
rate of the CIR must not exceed that of the PIR. The CIR can also be configured for unexpected packet bursts
using the CBS and PBS fields.
CBS
– Committed Burst Size. Measured in bytes, the CBS is associated with the CIR and is used to identify
packets that exceed the normal boundaries of packet size. The CBS should be configured to accept the biggest
IP packet that is expected in the IP flow.
PIR
– Peak Information Rate. This rate is measured in bytes of IP packets. IP packet bytes are measured by
taking the size of the IP header but not the link specific headers. If the packet flow exceeds the PIR, that packet
flow is marked red. The PIR must be configured to be equal or more than that of the CIR.
PBS
– Peak Burst Size. Measured in bytes, the PBS is associated with the PIR and is used to identify packets
that exceed the normal boundaries of packet size. The PBS should be configured to accept the biggest IP packet
that is expected in the IP flow.
srTCM
– Single Rate Three Color Marker. This, along with the trTCM, are two methods available on the switch for
metering and marking packet flow. The srTCM marks its IP packet flow based on the configured CBS and EBS. A packet
flow that does not reach the CBS is marked green, if it exceeds the CBS but not the EBS its marked yellow, and if it
exceeds the EBS its marked red.
CBS
– Committed Burst Size. Measured in bytes, the CBS is associated with the CIR and is used to identify
packets that exceed the normal boundaries of packet size. The CBS should be configured to accept the biggest
IP packet that is expected in the IP flow.
EBS
– Excess Burst Size. Measured in bytes, the EBS is associated with the CIR and is used to identify packets
that exceed the boundaries of the CBS packet size. The EBS is to be configured for an equal or larger rate than
the CBS.
DSCP
– Differentiated Services Code Point. The part of the packet header where the color will be added. Users may
change the DSCP field of incoming packets.
The ACL Flow Meter function will allow users to color code IP packet flows based on the rate of incoming packets. Users
have two types of Flow metering to choose from, trTCM and srTCM, as explained previously. When a packet flow is
placed in a color code, the user can choose what to do with packets that have exceeded that color-coded rate.
Green
– When an IP flow is in the green mode, its configurable parameters can be set in the Conform field, where the
packets can have their DSCP field changed. This is an acceptable flow rate for the ACL Flow Meter function.
Yellow
– When an IP flow is in the yellow mode, its configurable parameters can be set in the Exceed field. Users may
choose to either
Permit
or
Drop
exceeded packets. Users may also choose to change the DSCP field of the packets.
Red
– When an IP flow is in the red mode, its configurable parameters can be set in the Exceed field. Users may choose
to either
Permit
or
Drop
exceeded packets. Users may also choose to change the DSCP field of the packets.
Users may also choose to count exceeded packets by clicking the
Counter
check box. If the counter is enabled, the
counter setting in the access profile will be disabled.
The ACL Flow Meter commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters)
in the following table.
Page 89 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
85
Command
Parameters
config flow_meter profile_id
<value 1-14> access_id <value 1-128>[ [ tr_tcm
cir <value 0-156249> {cbs
<value 0-16384>} pir <value 0-156249> {pbs <value 0-16384>} |
sr_tcm
cir
<value 0-156249> 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 ]
show flow_meter
{profile_id <value 1-14> {access_id <value 1-128>}}
Each command is listed, in detail, in the following sections.
Page 90 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
86
config flow_meter profile_id
Purpose
Used to configure the flow metering function for ACL..
Syntax
config flow_meter profile_id <value 1-14> access_id <value 1-128>[ [ tr_tcm
cir <value 0-
156249> {cbs <value 0-16384>} pir <value 0-156249> {pbs <value 0-16384>} |
sr_tcm
cir
<value 0-156249> 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 parameters for the flow metering function for ACL entries
created on the switch.
Parameters
profile_id <value 1-14>
Enter the pre-configured Profile ID for which to configure the ACL Flow
Metering parameters.
access_id <value 1-128>
Enter the pre-configured Access ID for which to configure the ACL
Flow Metering parameters.
tr_tcm
- Choosing this field will allow users to employ the Two Rate Three Color Mode and set
the following parameters to determine the color rate of the IP packet flow.
cir <value 0-156249>
– The Committed Information Rate can be set between 0 and
156249
. IP flow rates at or below this level will be considered
green
. IP flow rates that
exceed this rate but not the PIR rate are considered
yellow
.
cbs <value 0-16384>
The Committed Burst Size. Used to gauge packets that are larger
than the normal IP packets. This field does not have to be set for this feature to function
properly but is to be used in conjunction with the CIR setting. The CBS should be
configured to accept the biggest IP packet that is expected in the IP flow.
pir <value 0-16384>
The Peak information Rate. IP flow rates that exceed this setting
will be considered as
red
. This field must be set at an equal or higher value than the CIR.
pbs <value 0-16384>
The Peak Burst Size. This optional field is to be used in
conjunction with the PIR. The PBS should be configured to accept the biggest IP packet
that is expected in the IP flow.
sr_tcm
Choosing this field will allow users to employ the Single Rate Three Color Mode and set
the following parameters to determine the color rate of the IP packet flow.
cir <value 0-156249>
– The Committed Information Rate can be set between 0-156249.
The color rates are based on the following two fields which are used in conjunction with
the CIR.
cbs <value 0-16384>
Committed Burst Size. Measured in bytes, the CBS is associated
with the CIR and is used to identify packets that exceed the normal boundaries of packet
size. The CBS should be configured to accept the biggest IP packet that is expected in
the IP flow. Packet flows which are lower than this configured value are marked green.
Packet flows which exceed this value but are less than the EBS value are marked yellow.
ebs <value 0-16384>
Excess Burst Size. Measured in bytes, the EBS is associated
with the CIR and is used to identify packets that exceed the boundaries of the CBS
packet size. The EBS is to be configured for an equal or larger rate than the CBS. Packet
flows that exceed this value are marked as red.
conform
This field denotes the
green
packet flow. Green packet flows may have their DSCP
field rewritten to a value stated in this field. Users may also choose to count green packets by
checking the Counter check box.
permit
– Enter this parameter to allow packet flows that are in the green flow.
replace_dscp <value 0-63>
Packets that are in the green flow may have their DSCP
field rewritten using this parameter and entering the DSCP value to replace.
counter [enable | disable] –
Use this parameter to enable or disable the packet counter
for the specified ACL entry in the green flow.
exceed
This field denotes the
yellow
packet flow. Yellow packet flows may have excess
packets permitted through or dropped. Users may replace the DSCP field of these packets by
checking its radio button and entering a new DSCP value in the allotted field.
permit
– Enter this parameter to allow packet flows that are in the yellow flow.
replace_dscp <value 0-63>
Packets that are in the yellow flow may have their DSCP

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top