Network requirements, Configuration procedures – H3C Technologies H3C S12500 Series Switches User Manual
Page 68

59
Protocol packet rate limiting configuration example
Network requirements
As shown in
, multiple hosts are connected to Device through switches.
Configure protocol packet rate limiting to limit the rate of DHCP snooping protocol packet sent to the
CPU of the card in slot 3 of Device to 500 pps.
Figure 16 Network diagram
Configuration procedures
# Create class classifier_1, and configure the class to match system-index 19, which represents DHCP
snooping protocol packets. You can use the display qos policy control-plane pre-defined command to
see that system index 19 matches DHCP snooping protocol packets.
[Device] traffic classifier classifier_1
[Device-classifier-classifier_1] if-match system-index 19
[Device-classifier-classifier_1] quit
# Create behavior behavior_1, and configure the behavior to limit the packet rate to 500 pps.
[Device] traffic behavior behavior_1
[Device-behavior-behavior_1] packet-rate 500
[Device-behavior-behavior_1] quit
# Create a policy named policy, and associate class classifier_1 with behavior behavior_1 in the policy.
[Device] qos policy policy
[Device-qospolicy-policy] classifier classifier_1 behavior behavior_1
[Device-qospolicy-policy] quit
# Apply the QoS policy to the incoming traffic of the control plane of the card in slot 3.