Page 741 / 998 Scroll up to view Page 736 - 740
Meter command reference
QOS
7-45
iMG/RG Software Reference Manual (Quality of Service)
Example
--> meter add profile mp1 tokenbucket 80 10000
See also
METER ADD PROFILE SRTCM
METER ADD PROFILE TRTCM
7.1.6.1.3 METER ADD PROFILE TRTCM
Syntax
METER ADD PROFILE <name> TRTCM <cir> <cbs> <pir> <pbs>
Description
This command creates a meter profile that uses the trTCM algorithm for metering.
If a packet stream’s average rate is within CIR and the burst size is within CBS, then the
packet is in profile (green).
If a packet stream’s average rate is within PIR and the burst size is within PBS, then the
packet is partially in profile (yellow).
All other packets are out of profile (red).
Note that only IP packet size (IP header and payload) is considered for calculations.
You can specify the treatment or actions for green, yellow and red packets using the
meter set profile action commands. You can then set the profile to create meter instance
on a transport using the
TRANSPORTS SET METER INSTANCE PROFILE
com-
mand.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Option
Description
Default Value
name
An arbitrary name that identifies the profile. It can be
made up of one or more letters or a combination of let-
ters and digits, but it cannot start with a digit.
N/A
cir
Committed Information Rate
in kbps.
N/A
cbs
Committed Burst Size
in bytes.
N/A
Option
Description
Default Value
name
An arbitrary name that identifies the profile. It can be
made up of one or more letters or a combination of let-
ters and digits, but it cannot start with a digit.
N/A
Page 742 / 998
QOS
Meter command reference
iMG/RG Software Reference Manual (Quality of Service)
7-46
Example
--> meter add profile mp1 trtcm 80 10000 120 15000
See also
METER ADD PROFILE SRTCM
METER ADD PROFILE TOKENBUCKET
METER LIST PROFILES
7.1.6.1.4 METER CLEAR PROFILES
Syntax
METER CLEAR PROFILES
Description
This command allows you to delete all meter profiles that were previously created using
the meter add profile commands.
Note that this command does not delete the profiles that are associated with meter
instances created using the
TRANSPORTS SET METER INSTANCE PROFILE
com-
mand.
Example
--> meter clear profiles
See also
METER ADD PROFILE SRTCM
METER ADD PROFILE TOKENBUCKET
METER ADD PROFILE TRTCM
7.1.6.1.5 METER DELETE PROFILE
Syntax
METER DELETE PROFILE <name>
Description
This command deletes a single meter profile that was previously created using one of the
meter add profile commands.
Note:
Note that this command does not delete the profiles that are associated with meter instances created
using the
TRANSPORTS SET METER INSTANCE PROFILE
command.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
cir
Committed Information Rate
in kbps.
N/A
cbs
Committed Burst Size
in bytes.
N/A
pir
Peak Information Rate
in kbps.
N/A
pbs
Peak Burst Size
in bytes.
N/A
Option
Description
Default Value
Page 743 / 998
Meter command reference
QOS
7-47
iMG/RG Software Reference Manual (Quality of Service)
Example
--> meter delete profile mp1
See also
METER ADD PROFILE SRTCM
METER ADD PROFILE TOKENBUCKET
METER ADD PROFILE TRTCM
7.1.6.1.6 METER LIST PROFILES
Syntax
METER LIST PROFILES
Description
This command lists all of the meter profiles that were created using the
METER ADD
PROFILE
commands. It displays the following information about meter profiles:
Name
Type of algorithm used
CIR value (in kbps)
CBS value (in bytes)
EBS value (for algorithm type srtcm only)
PIR value (for algorithm type trtcm only)
PBS value (for algorithm type trtcm only)
Green action
Yellow action (for algorithm types trtcm and srtcm only)
Red action
Example
--> meter list profiles
Meter Profiles:
Name|
Type
| CIR | CBS | PIR | PBS | EBS |Green | Yellow| Red
|
|kbps |bytes|kbps |bytes|bytes|
|
|
----|------------|-----|-----|-----|-----|-----|------|-------|-----
mp1| tokenbucket| 80
|10000|
|
|
| Pass |
| Drop
mp2| srtcm
| 80
|10000|
|
|25000| Pass | Pass
| Drop
mp3| trtcm
| 80
|10000| 120 |15000|
| Pass | Pass
| Drop
--------------------------------------------------------------------
Option
Description
Default Value
name
An existing profile. To display names, use the
METER LIST PROFILES
command.
N/A
Page 744 / 998
QOS
Meter command reference
iMG/RG Software Reference Manual (Quality of Service)
7-48
See also
METER ADD PROFILE SRTCM
METER ADD PROFILE TOKENBUCKET
METER ADD PROFILE TRTCM
7.1.6.1.7 METER SET PROFILE ACTION DROP
Syntax
METER SET PROFILE <name> {GREEN|RED|YELLOW} ACTION DROP
Description
This command configures an existing profile to drop packets depending on their meter-
ing result. Note that if this command is not applied, by default the green and yellow pack-
ets are passed and red packets are dropped.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> meter set profile mp1 green action drop
See also
METER LIST PROFILES
7.1.6.1.8 METER SET PROFILE ACTION MARK DSCP
Syntax
METER SET PROFILE <name> {GREEN|RED|YELLOW} ACTION MARK DSCP
<dscp>
Description
This command configures a profile to set the DSCP value in the IP header of packets
depending on their metering result (green, yellow or red). The DSCP value is written
into the DS field in the header of the IP packet.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Option
Description
Default Value
name
An existing profile. To display names, use the
METER
LIST PROFILES
command.
N/A
green
Sets packets with green (in profile) metering results to be
dropped.
pass
red
Sets packets with red (out of profile) metering results to be
dropped.
drop
yellow
Sets packets with yellow (partially in profile) metering results
to be dropped.
pass
Page 745 / 998
Meter command reference
QOS
7-49
iMG/RG Software Reference Manual (Quality of Service)
Example
--> meter set profile mp1 yellow action mark dscp 011001
See also
METER LIST PROFILES
7.1.6.1.9 METER SET PROFILE ACTION PASS
Syntax
METER SET PROFILE <name> {GREEN|RED|YELLOW} ACTION PASS
Description
This command configures an existing profile to pass packets depending on their metering
result. The DSCP value in the IP header of packets is not set.
Note that if this command is not applied, by default the green and yellow packets are
passed and red packets are dropped.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Option
Description
Default Value
name
An existing profile. To display names, use the
METER
LIST PROFILES
command.
N/A
green
Sets the DSCP value in packets with green (in profile) meter-
ing results.
N/A
red
Sets the DSCP value in packets with red (out of profile)
metering results.
N/A
yellow
Sets the DSCP value in packets with yellow (partially in pro-
file) metering results to be dropped.
N/A
dscp
The
Differentiated Service Code Point
(DSCP). This can
be either a hexadecimal (0xNN) or a 6 binary digits
(NNNNNN), in which case the six most significant bits indi-
cate the DSCP value while the two least significant ones are
ignored.
N/A
Option
Description
Default Value
name
An existing profile. To display names, use the
METER
LIST PROFILES
command.
N/A
green
Sets packets with green (in profile) metering results to pass.
pass

Rate

4 / 5 based on 3 votes.

Popular Allied-Telesis Models

Bookmark Our Site

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

Share
Top