broadcast-suppression (traffic behavior view)

Function

The broadcast-suppression command restricts the rate at which broadcast packets are transmitted.

The undo broadcast-suppression command cancels the configuration.

By default, broadcast suppression is not configured in the traffic behavior view.

Format

broadcast-suppression { cir cir-value } [ cbs cbs-value ] [ green { discard | pass [ service-class class color { green | yellow | red } ] } | red { discard | pass [ service-class class color { green | yellow | red } ] } ] *

undo broadcast-suppression [ { cir cir-value } [ cbs cbs-value ] [ green { discard | pass [ service-class class color { green | yellow | red } ] } | red { discard | pass [ service-class class color { green | yellow | red } ] } ] * ]

Parameters

Parameter Description Value
cir cir-value

Specifies the Committed Information Rate (CIR).

The value is an integer ranging from 0 to 4294967295, in kbit/s.

cbs cbs-value

Specifies the Committed Burst Size (CBS).

The value is an integer ranging from 0 to 4294967295, in bytes.

The CBS value must be larger than the CIR value.

The default CBS value is calculated in the format of cbs-value = cir-value*187.

  • If cir-value < 100000 kbit/s, the CBS value is calculated in the format of cbs-value = cir-value*187, in bytes.
  • If cir-value >= 100000 kbit/s, the CBS value is calculated in the format of cbs-value = 100000*187, in bytes.
green

Specify behavior conducted when rate no higher than CIR.

-

discard

Discards packets of a specific color (green, yellow, or red).

-

pass

Allows packets of a specific color (green, yellow, or red) to pass.

-

service-class class

Specifies the CoS that the packets are to be re-marked.

The value can be:

  • cs7
  • cs6
  • ef
  • af4
  • af3
  • af2
  • af1
  • be
color green

Indicates that packets are colored green.

-

color yellow

Indicates that packets are colored yellow.

-

color red

Indicates that packets are colored red.

-

red

Specify behavior conducted when rate higher than CIR.

-

broadcast-suppression

Broadcast suppression.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
cli write

Usage Guidelines

Usage Scenario

A growing number of broadcast packets occupy a large amount of network resources. In this situation, services may not be provisioned properly.

To prevent broadcast storms, you can run the broadcast-suppression command to set thresholds for broadcast traffic that is allowed to pass through an interface. If the broadcast traffic volume exceeds the value set using the broadcast-suppression command, the system drops the excessive broadcast traffic.

Precautions

The command is valid only for broadcast traffics.

The broadcast suppression does not take effected in VLL scenario.

If the broadcast-suppression command is run for multiple times, the latest configuration overrides the previous ones.

To achieve accurate packet suppression, specify a value for the CBS that is over 10 times the length of the packet.

If member interfaces of a trunk interface reside on different forwarding or traffic management modules, the effective CIR or PIR for CAR or user-queue can be a multiple of the configured one.

Example

# Set the CIR of broadcast traffic to 1 Mbit/s. Allow the green packets to pass and map them to AF1 and green.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] broadcast-suppression cir 1000 green pass service-class af1 color green
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >