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

Reminder

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

upgrade

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).
Configuring a Rule for Sending Packets to the CPU

Configuring a Rule for Sending Packets to the CPU

Context

To reduce the number of packets sent to the CPU and prevent interference between the packets of different types, the switch limits the rate of packets sent to the CPU in different modes, including rate limiting for protocol packets and rate limiting for packets after ALP is enabled. ALP packet rate limiting has the highest priority.

NOTE:
  • The default CPCAR value is recommended.

  • BGP, FTP, HTTPS, OSPF, SSH, TELNET, and TFTP are disabled when the configuration is initialized. When the protocols are enabled but connections are not set up, the switch sends packets with the CAR values set using the car command. When connections are set up and ALP is enabled, the switch sends packets with the CAR values set using the linkup-car command.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure a rule for sending packets to the CPU.

    Run cpu-defend policy policy-name

    The attack defense policy view is displayed.

    Configure a rate limit on protocol packets and a rate limit after ALP is enabled in the attack defense policy view.

    • Configure a rate limit for protocol packets.

      The action to be performed on protocol packets sent to the CPU can be car or deny. When you configure the action to be performed on packets of the same protocol, the latest configuration takes effect.

      • Run car { packet-type packet-type | user-defined-flow flow-id } cir cir-value [ cbs cbs-value ]

        The CIR and CBS values for packets sent to the CPU are set.

        By default, the CIR value for user-defined flows is 64 kbit/s. You can run the display cpu-defend configuration command to check the CAR values for protocol packets.

      • Run deny { packet-type packet-type | user-defined-flow flow-id }

        The action taken for the packets sent to the CPU is set to deny.

        By default, the switch does not discard packets sent to the CPU. Instead, the switch limits the rate of user-defined flows and packets sent to the CPU based on the default rate. You can run the display cpu-defend configuration command to check the CAR values of each type of packets.

    • Configure a rate limit after ALP is enabled.

      1. Run linkup-car packet-type { bgp | ftp | https | ospf | ssh | telnet | tftp } cir cir-value [ cbs cbs-value ]

        The CAR values for protocol packets, including the CIR and CBS values, are set.

        By default, the CIR and CBS for sending packets of BGP and OSPF connections on the LPU are 512 kbit/s and 64000 bytes; the CIR and CBS for sending packets of FTP, HTTPS, TFTP, SSH, and TELNET connections on the LPU are 2048 kbit/s and 256000 bytes.

        By default, the CIR and CBS for sending packets of BGP and OSPF connections on the MPU are 512 kbit/s and 64000 bytes respectively; the CIR and CBS for sending packets of FTP, HTTPS, TFTP, SSH, and TELNET connections on the MPU are 4096 kbit/s and 770048 bytes respectively.

      2. Run quit

        Return to the system view.

      3. Run cpu-defend application-apperceive enable

        Globally ALP is enabled.

        By default, globally ALP is enabled.

      4. Run cpu-defend application-apperceive { bgp | ftp | ssh | tftp | ospf | https | telnet } enable

        The ALP of protocol packets is enabled. The CAR values of protocol packets set using linkup-car take effect.

        By default, ALP is enabled on FTP, SSH, HTTPS, TFTP, and TELNET packets and disabled on BGP and OSPF packets.

        NOTE:

        After HTTPS dynamic link association is enabled, the CIR value (maximum transmission rate) is automatically increased to ensure that the web NMS and switch can exchange files at a high speed.

Translation
Download
Updated: 2019-04-01

Document ID: EDOC1000178319

Views: 145614

Downloads: 78

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