< Home

Example for Configuring Traffic Suppression

Networking Requirements

In Figure 1, Switch A is connected to a Layer 2 network and a Layer 3 router. Switch A needs to be configured to prevent broadcast storms caused by a large number of broadcast packets, unknown multicast packets, and unknown unicast packets forwarded at Layer 2, and prevent heavy traffic caused by a large number of known multicast packets and known unicast packets at Layer 2 and Layer 3.

Figure 1 Networking diagram of traffic suppression

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure traffic suppression in the view of GE0/0/1 to restrict a large number of broadcast packets, unknown multicast packets, and unknown unicast packets forwarded at Layer 2.

  2. Configure traffic suppression in the view of GE0/0/1 and GE0/0/2 to restrict a large number of known multicast packets and known unicast packets forwarded at Layer 2 and Layer 3.

Procedure

  1. Enter the interface view GE0/0/1.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] interface gigabitethernet 0/0/1

  2. Configure traffic suppression for broadcast packets. Set bandwidth percentage for broadcast packets to 80%.

    [SwitchA-GigabitEthernet0/0/1] broadcast-suppression 80

  3. Set bandwidth percentage for unknown multicast packets to 80%.

    [SwitchA-GigabitEthernet0/0/1] multicast-suppression 80

  4. Configure traffic suppression for unknown unicast packets. Set bandwidth percentage for unknown unicast packets to 80%.

    [SwitchA-GigabitEthernet0/0/1] unicast-suppression 80
    [SwitchA-GigabitEthernet0/0/1] quit

  5. Set bandwidth percentage for known multicast packets to 80%.

    [SwitchA-GigabitEthernet0/0/1] known-multicast-suppression 80

  6. Configure traffic suppression for known unicast packets. Set bandwidth percentage for known unicast packets to 80%.

    [SwitchA-GigabitEthernet0/0/1] known-unicast-suppression 80
    [SwitchA-GigabitEthernet0/0/1] quit

  7. Enter the interface view GE0/0/2.

    [SwitchA] interface gigabitethernet 0/0/2

  8. Set bandwidth percentage for known multicast packets to 80%.

    [SwitchA-GigabitEthernet0/0/2] known-multicast-suppression 80

  9. Configure traffic suppression for known unicast packets. Set bandwidth percentage for known unicast packets to 80%.

    [SwitchA-GigabitEthernet0/0/2] known-unicast-suppression 80
    [SwitchA-GigabitEthernet0/0/2] quit

  10. Verify the configuration.

    Run the display flow-suppression interface command to view the traffic suppression configuration on GE0/0/1.

    [SwitchA] display flow-suppression interface gigabitethernet 0/0/1
     storm type         rate mode   set rate value                                  
    ------------------------------------------------------------------------------- 
     unknown-unicast    percent     percent: 80%                                   
     multicast          percent     percent: 80%                                   
     broadcast          percent     percent: 80% 
     known-unicast      percent     percent: 80%
     known-multicas     percent     percent: 80%                                  
    ------------------------------------------------------------------------------- 

    Run the display flow-suppression interface command to view the traffic suppression configuration on GE0/0/2.

    [SwitchA] display flow-suppression interface gigabitethernet 0/0/2
     storm type         rate mode   set rate value                                  
    ------------------------------------------------------------------------------- 
     unknown-unicast    percent     percent: 100%                                   
     multicast          percent     percent: 100%                                   
     broadcast          percent     percent: 10% 
     known-unicast      percent     percent: 80%
     known-multicas     percent     percent: 80%                                  
    ------------------------------------------------------------------------------- 

Configuration Files

Switch A configuration file

#
sysname SwitchA
#
interface GigabitEthernet0/0/1
 unicast-suppression 80
 multicast-suppression 80
 broadcast-suppression 80
 known-unicast-suppression 80
 known-multicast-suppression 80
#
#
interface GigabitEthernet0/0/2
 known-unicast-suppression 80
 known-multicast-suppression 80
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >