SNR S2940-8G-v2 Switch Configuration Guide
QoS Configuration
2. Configure a policy map
Command Explanation
Global Mode
policy-map <policy-map-name>
no policy-map <policy-map-name>
Create a policy map and enter policy map
mode; the no command deletes the speci-
fied policy map.
class <class-map-name> [insert-before <class-
map-name>]
no class <class-map-name>
After a policy map is created, it can be as-
sociated to a class. Different policy or new
DSCP value can be applied to different data
streams in class mode; the no command
deletes the specified class.
set { ip dscp <new-dscp> | ip precedence <new-
precedence> | internal priority <new-inp> | drop
precedence <new-dp> | cos <new-cos> }
no set { ip dscp | ip precedence | internal priority
| drop precedence | cos }
Assign a new DSCP, CoS, IP Precedence
value for the classified traffic; the no com-
mand cancels the newly assigned value.
Single bucket mode:
policy <bits_per_second> <nor-
mal_burst_bytes> ({ conform-action ACTION |
exceed-action ACTION } )
Dual bucket mode:
policy <bits_per_second> <nor-
mal_burst_bytes> [pir <peak_rate_bps>] |
<maximum_burst_bytes> [{ conform-action AC-
TION | exceed-action ACTION | violate-action
ACTION }]
ACTION definition:
drop | transmit | set-dscp-transmit <dscp_value>
| set-prec-transmit <ip_precedence_value> | set-
cos-transmit <cos_value> | set-internal-priority
<inp_value> | set-Drop-Precedence <dp_value>
no policy
Configure a policy for the classified flow.
The non-aggregation policy command sup-
ports three colors. Analyze the working
mode of the token bucket, whether it is
singe rate single bucket, single rate dual
bucket, dual rate dual bucket, set corre-
sponding action to different color packets.
The no command will delete the mode con-
figuration. Single bucket mode is supported
by the specific switch.
policy aggregate <aggregate-policy-name>
no policy aggregate <aggregate-policy-name>
Apply a policy to classified traffic; the no
command deletes the specified policy set.
accounting
no accounting
Set statistic function for the classified traf-
fic. After enable this function under the pol-
icy class map mode, add statistic function to
the traffic of the policy class map. In single
bucket mode, the messages can only red or
green when passing policy. In the print in-
formation, in-profile means green and out-
profile means red. In dual bucket mode,
there are three colors of the packets. In
the print information, in-profile means green
and out-profile means red and yellow.
184