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

S1720, S2700, S5700, and S6720 V200R011C10

This document describes the configurations of Security, including 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, MPAC, separating the management plane from the service plane, security risks, PKI.
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, IKE, IPSEC-ESP, 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.

  • On the S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750EI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S5710-X-LI, S5720LI, S5720S-LI, S5700S-LI, S5700LI, S6720LI, S6720S-LI, S6720SI, and S6720S-SI, CIR value for packets sent to the CPU is expressed in kilobits per second (kbps), but the system limits the rate of packets in packets per second (pps). The kbps rate is converted to the pps rate using the following formula: pps = kbps x 1024/packet_length/8, where packet_length indicates the length of packets sent to the CPU.

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 or a rate limit after ALP is enabled in the attack defense policy view.

    • Configure rate limits 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 | ike | ipsec-esp | ospf | ssh | telnet | tftp } cir cir-value [ cbs cbs-value ]

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

        Table 3-7 lists the default CIR and CBS values for the setup of BGP, FTP, HTTPS, IKE, IPSEC-ESP, OSPF, SSH, TELNET, and TFTP connections.

        Table 3-7  Default CIR and CBS values

        Product

        CIR

        CBS

        S1720GFR, S2750EI, S5700LI, S5700S-LI, S5710-X-LI

        • FTP, SSH, TFTP: 1024 kbit/s
        • Telnet: 64 kbit/s
        • FTP, SSH, TFTP: 192512 bytes
        • Telnet: 12032 bytes

        S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720LI, S5720S-LI, S6720LI, S6720S-LI

        • FTP, SSH, TFTP: 1024 kbit/s
        • OSPF: 512 kbit/s
        • Telnet: 64 kbit/s
        • FTP, SSH, TFTP: 192512 bytes
        • OSPF: 96256 bytes
        • Telnet: 12032 bytes

        S5720SI, S5720S-SI

        • FTP, SSH, TFTP: 1024 kbit/s
        • IKE: 64 kbit/s
        • IPSEC-ESP: 320 kbit/s
        • Telnet: 64 kbit/s
        • FTP, SSH, TFTP: 192512 bytes
        • IKE: 12032 bytes
        • IPSEC-ESP: 60160 bytes
        • Telnet: 12032 bytes

        S2720EI

        • FTP, SSH, TFTP: 1024 kbit/s
        • IKE: 64 kbit/s
        • IPSEC-ESP: 320 kbit/s
        • OSPF: 512 kbit/s
        • Telnet: 64 kbit/s
        • FTP, SSH, TFTP: 192512 bytes
        • IKE: 12032 bytes
        • IPSEC-ESP: 60160 bytes
        • OSPF: 96256 bytes
        • Telnet: 12032 bytes

        S5730SI, S5730S-EI, S6720SI, S6720S-SI

        • BGP: 1024 kbit/s
        • FTP, SSH, TFTP: 1536 kbit/s
        • IKE: 64 kbit/s
        • IPSEC-ESP: 4096 kbit/s
        • OSPF: 512 kbit/s
        • Telnet: 64 kbit/s
        • BGP: 192512 bytes
        • FTP, HTTPS, SSH, TFTP: 288768 bytes
        • IKE: 12032 bytes
        • IPSEC-ESP: 770048 bytes
        • OSPF: 96256 bytes
        • Telnet: 12032 bytes

        S5720EI, S6720EI, S6720S-EI

        • BGP: 1024 kbit/s
        • FTP, HTTPS, SSH, TFTP: 1536 kbit/s
        • IKE: 64 kbit/s
        • IPSEC-ESP: 4096 kbit/s
        • OSPF: 512 kbit/s
        • Telnet: 64 kbit/s
        • BGP: 192512 bytes
        • FTP, HTTPS, SSH, TFTP: 288768 bytes
        • IKE: 12032 bytes
        • IPSEC-ESP: 770048 bytes
        • OSPF: 96256 bytes
        • Telnet: 12032 bytes

        S5720HI

        • BGP: 1024kbit/s
        • FTP, HTTPS, SSH, TFTP: 1536kbit/s
        • IPSEC-ESP: 800kbit/s
        • OSPF: 512kbit/s
        • TELNET: 64kbit/s
        • BGP: 192512bytes
        • FTP, HTTPS, SSH, TFTP: 288768bytes
        • IPSEC-ESP: 150400bytes
        • OSPF: 96256bytes
        • TELNET: 12032bytes
        NOTE:
        • Only the S5730SI, S5730S-EI, S5720EI, S5720HI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the bgp parameter.
        • Only the S5720EI, S5720HI, S6720EI, and S6720S-EI support the https parameter.
        • Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S5720EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the ike parameter.
        • Only the S2720EI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S5720EI, S5720HI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the ipsec-esp parameter.
        • Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S5720LI, S5720S-LI, S5730SI, S5730S-EI, S5720EI, S5720HI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the ospf parameter.
        • A shared CAR value for packets of FTP, SSH, TFTP connections can be set on S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, and S6720S-SI. For example, the linkup-car packet-type ftp cir cir-value [ cbs cbs-value ] command specifies the CAR value for FTP packets when an FTP connection is set up, and also specifies the CAR value for packets of SSH, TFTP connections.
      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 | https | ike | ipsec-esp | ospf | ssh | telnet | tftp } enable

        ALP of protocol packets is enabled.

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

        NOTE:
        • Only the S5730SI, S5730S-EI, S5720EI, S5720HI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the bgp parameter.
        • Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S5720EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the ike parameter.
        • Only the S2720EI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S5720EI, S5720HI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the ipsec-esp parameter.
        • Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S5720LI, S5720S-LI, S5730SI, S5730S-EI, S5720EI, S5720HI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S6720EI, and S6720S-EI support the ospf parameter.
        • After ALP is enabled for HTTPS, the CIR value (transmission rate) is automatically increased to ensure high-speed file transmission between the web NMS and switch.
        • After hardware-based Layer 3 forwarding is enabled for IPv4 packets on an S2750EI, S5700-10P-LI-AC, or S5700-10P-PWR-LI-AC, this command is not supported.

Translation
Download
Updated: 2019-03-28

Document ID: EDOC1000178177

Views: 220164

Downloads: 712

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