Allied Telesis AlliedWare Plus Switch User Manual


 
Page 14 | AlliedWare Plus™ OS: Overview of QoS
Setting new values explicitly
To explicitly set new values for a particular class map, first create the class map (if necessary),
by entering the following command:
awplus(config)#class-map <name>
Then simply enter the following commands:
awplus(config)#policy-map <name>
awplus(config-pmap)#class <name>
awplus(config-pmap-c)#set cos <0-7>
awplus(config-pmap-c)#set queue <0-7>
awplus(config-pmap-c)#set bandwidth-class {green|yellow|red}
awplus(config-pmap-c)#set dscp <0-63>
You can set one or more of the above values. The effect is that all packets that match the
class map and policy map are marked with the values specified with these commands.
Using the mark-dscp map
The data structure that drives the premarking process is the mark-dscp map. This is a single
global table which can be thought of as a table of 64 rows—one row for each DSCP number.
In each cell of the table there are four new marker values that will be applied to packets:
802.
1
p, DSCP, bandwidth class and egress queue. The following table shows the structure of
the mark-dscp map.
DSCP New marker values
0
802.
1
p = ...
new-dscp = ...
new-bandwidth-class = ...
new-queue = ...
1
802.
1
p = ...
new-dscp = ...
new-bandwidth-class = ...
new-queue = ...
2
802.
1
p = ...
new-dscp = ...
new-bandwidth-class = ...
new-queue = ...
.
.
.
63
802.
1
p = ...
new-dscp = ...
new-bandwidth-class = ...
new-queue = ...