No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Security

S7700 and S9700 V200R011C10

This document describes the configurations of Security, including ACL, reflective ACL, local attack defense, MFF, attack defense, traffic suppression and storm control, ARP security, port security, DHCP snooping, ND snooping, PPPoE+, IPSG, SAVI, URPF, keychain, separating the management plane from the service plane, security risks.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Setting the Sampling Ratio for Port Attack Defense

Setting the Sampling Ratio for Port Attack Defense


A device with port attack defense enabled identifies attacks by analyzing sampled packets. A proper packet sampling ratio can reduce the errors in attack packet identification and packet rate calculation.

A small sampling ratio improves attack defense accuracy, but consumes more CPU resources. For example, when the sampling ratio is set to 1, the device analyzes every packet. The attack packets can be detected quickly, but CPU usage becomes high and services are affected. Therefore, balance between the attack defense precision and CPU usage when setting a sampling ratio.


  1. Run system-view

    The system view is displayed.

  2. Run cpu-defend policy policy-name

    The attack defense policy view is displayed.

  3. Run auto-port-defend sample sample-value

    The protocol packet sampling ratio for port attack defense is set.

    By default, the protocol packet sampling ratio for port attack defense is 5. That is, one packet is sampled when every 5 packets are received.

Updated: 2019-10-18

Document ID: EDOC1000178319

Views: 151489

Downloads: 84

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next