How to configure flow shaping on S series switch


S series switch (except S1700) switch, traffic shaping is to control the speed of the output message, so that the message sent at a uniform rate. It can be achieved through the flow of the function of the port speed limit.
There is no difference of Traffic shaping configuration between frame type equipment and S series switch box equipment. Configuration example is as following.
[HUAWEI] interface gigabitethernet 3/0/1
[HUAWEI-GigabitEthernet3/0/1] qos queue 0 shaping cir 50000 pir 100000
- On S series switch box equipment, S5720HI does not support CIR, CBS and PBS configuration parameters.
- S series switch box X1E series of devices do not support the configuration of CIR, CBS and PBS parameters.

Other related questions:
How does an S series switch process unknown multicast flows
Unknown multicast flows are the multicast data flows that have no forwarding entries in the chip or the flows that are not requested by users. When Layer 2 multicast is not enabled on a switch, an S series switch broadcasts unknown multicast flows in a VLAN. After Layer 2 multicast is enabled, processing on other models excluding the S1700 is as follows: If Layer 2 multicast is enabled on the E600, S1720, S2700SI, S2710SI, S2700EI, S2720, S2750EI, S5700S-LI, S5700LI, S5710-C-LI, S5710-X-LI, S5700SI, S5720S-SI, and S5720SI, they broadcast unknown multicast flows in the corresponding VLAN, regardless of which Layer 2 multicast forwarding mode is used. - Other switches process unknown multicast flows based on the Layer 2 multicast forwarding mode. If the IP address-based forwarding mode is used, the switches drop unknown multicast flows. If the MAC address-based forwarding mode is used, the switches broadcast unknown multicast flows in a VLAN. To prevent broadcast of unknown multicast packets in a VLAN, run the multicast drop-unknown command. This command configures a switch to drop unknown multicast packets. After this command is configured, the switch also discards protocol packets that are transparently transmitted within the VLAN and use the reserved multicast address.

Configure NetStream on S series switches
NetStream is a traffic statistics and analysis technology. NetStream supports exporting of original, aggregation, and flexible flow statistics. The following is an example of configuring exporting of original flow on an S series switch (except the S1700). 1. Configure NetStream sampling on GE1/0/1, set the sampling mode to packet-based regular sampling, and set the interval to 1200. [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] ip netstream sampler fix-packets 1200 inbound [HUAWEI-GigabitEthernet1/0/1] ip netstream sampler fix-packets 1200 outbound [HUAWEI-GigabitEthernet1/0/1] quit 2. Set the inactive aging time to 100 seconds and enable FIN- and RST-based aging. [HUAWEI] ip netstream timeout inactive 100 [HUAWEI] ip netstream tcp-flag enable 3. Set the source IP address of the exported packets carrying original flow statistics to, destination IP address to, and destination port number to 6000. [HUAWEI] ip netstream export source [HUAWEI] ip netstream export host 6000 4. Set the version of exported packets to version 9. [HUAWEI] ip netstream export version 9 5. Enable NetStream flow statistics collection on GE1/0/1. [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] ip netstream inbound [HUAWEI-GigabitEthernet1/0/1] ip netstream outbound [HUAWEI-GigabitEthernet1/0/1] quit [HUAWEI] quit

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top