Page 726 / 998 Scroll up to view Page 721 - 725
QOS
Classifier command reference
iMG/RG Software Reference Manual (Quality of Service)
7-30
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.16 CLASSIFIER PROFILE SET RULE MARK TOS
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} MARK TOS <tos>
Description
This command determines what happens if a rule is matched. You can configure the clas-
sifier to mark packets with a specific Type of Service (ToS). If set, the TOS field in the IP
header will be changed to the value set here.
The ToS field is also known as the DSCP field. See also the classifier profile set rule mark
dscp command which provides an alternative method of marking the same IP header
field.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Option
Description
Default Value
name
A name that identifies an existing profile. To
display profile names, use the classifier list
profiles command.
N/A
number
A number that identifies an existing profile.
To display profile numbers, use the classifier
list profiles command.
N/A
rule name
A name that identifies an existing rule. To
display rule names, use the classifier profile
list rules command.
N/A
rule number
A number that identifies an existing rule. To
display rule numbers, use the classifier
profile list rules command.
N/A
tos
The Type of Service (ToS). This value is
specified in hexadecimal format (0xNN)
between the ranges 0x00 and 0xfc. The 2
least significant bits are ignored. Set to any to
cancel the tos setting.
none
Page 727 / 998
Classifier command reference
QOS
7-31
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile pr1 set rule r1 mark tos 0x04
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.17 CLASSIFIER PROFILE SET RULE MARK VPRI
Syntax
CLASSIFIER PROFILE <profilename> SET RULE <rulename> MARK
VLANPRI <vlanpri>
Description
This rule marks 802.1p priority in the packet. This rule works on both 802.1q tagged and
untagged packets, if the packet is untagged and rule is configured a 4byte field (802.1q
field) is added in the packet and 802.1p priority is set.
If packet is already tagged then the value of 802.1p priority is reset to the value provided
in the rule.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Example
--> classifier profile pr1 set rule r1 mark vlanpri 3
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
Option
Description
Default Value
profilename
A name that identifies an existing profile.
To display profile names, use the classifier
list profiles command.
N/A
rule name
A name that identifies an existing rule. To
display rule names, use the classifier
profile list rules command.
N/A
vlanpri
The vlan priority to be matched ,valid
values 0 to 7
N/A
Page 728 / 998
QOS
Classifier command reference
iMG/RG Software Reference Manual (Quality of Service)
7-32
7.1.5.1.18 CLASSIFIER PROFILE SET RULE METERID
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} METERID <meterid>
Description
T
his command determines what happens if a rule is matched. You can configure the clas-
sifier to assign a
meter Id
to the packet matching a rule.
Once you have set which
meter Id
to assign, you need to create an association between
the classified stream and the meter instance using the
TRANSPORTS SET METER
INSTANCE
command.
If the meter device is not in use, this setting has no effect.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Example
--> classifier profile pr1 set rule r1 meterid 1
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
TRANSPORTS SET METER INSTANCE PROFILE
7.1.5.1.19 CLASSIFIER PROFILE SET RULE OFFSET
Syntax
CLASSIFIER PROFILE <profilename> SET RULE <rule name> OFFSET
<offset> MASK <mask> VALUE <value>
Description
This command tries to match all bytes in the packet starting at a valid offset from the
Ethernet header.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Option
Description
Default Value
name
An existing profile. To display profile names, use the
CLAS-
SIFIER LIST PROFILES
command.
N/A
number
An existing profile. To display profile numbers, use the
CLASSIFIER LIST PROFILES
command.
N/A
rule name
An existing rule. To display rule names, use the
CLASSI-
FIER PROFILE LIST RULES
command.
N/A
meterid
A number that represents a meter instance. The meter
instance and profile is set on a specific transport using the
TRANSPORTS SET METER INSTANCE
command.
N/A
Page 729 / 998
Classifier command reference
QOS
7-33
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile pr1 set rule r1 offset 0 mask ffffffffffff value 000000000001
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.20 CLASSIFIER PROFILE SET RULE PHYPORT
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} PHYPORT <portnum>
Description
This command configures a classifier rule to test the physical port on which a packet
arrived. This test is used when multiple Ethernet ports are connected to the same trans-
port (and therefore share the same classifier profile), but packets must be classified differ-
ently depending on which port they arrive on. The physical port numbers are positive,
non-zero integers.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Option
Description
Default Value
profilename
A name that identifies an existing profile. To
display profile names, use the classifier list
profiles command.
N/A
rule name
A name that identifies an existing rule. To
display rule names, use the classifier profile
list rules command.
N/A
offset
Offset from the ethernet header ,valid values
0 to 1500
N/A
mask
Mask to be taken , valid values
0x000000000000 to 0xffffffffffff
N/A
value
It is the value to match against
N/A
Page 730 / 998
QOS
Classifier command reference
iMG/RG Software Reference Manual (Quality of Service)
7-34
Example
--> classifier profile pr1 set rule r1 phyport 1
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.21 CLASSIFIER PROFILE SET RULE PRIORITY
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} PRIORITY <priority>
Description
T
his command determines what happens if a rule is matched. You can configure the clas-
sifier to assign a priority to the packet matching a rule. The priority is mapped to a
scheduling priority value or queue ID (configured using the
SCHEDULER PROFILE
SET QUEUE WEIGHT
command) in order for the scheduler to identify different prior-
ity streams and provide appropriate scheduling behavior.
Multiple traffic streams may map to the same scheduling priority.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Option
Description
Default Value
name
A name that identifies an existing profile. To
display profile names, use the classifier list
profiles command.
N/A
number
A number that identifies an existing profile.
To display profile numbers, use the classifier
list profiles command.
N/A
rule name
A name that identifies an existing rule. To
display rule names, use the classifier profile
list rules command.
N/A
portnum
A physical port number which must be a
positive, non-zero integer.
N/A

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