Support

How to Configure Rate Limiting on S7700 and S9700?

Huawei switches are subdivided into many series, such as S2700 series, S3700 series and S5700 series etc.

When you use different series Huawei swtiches, you might be involved in how to configure the rate limiting for different series? This article will tell you how to do it.

Configuring Rate Limiting on the S2700, S3700, and S5700

The following rate limiting configuration is recommended:

Set the CIR, CBS, and PBS and do not set the PIR.

Set the CBS to 200 times the CIR.

Set the PBS to 2 times the CBS, that is, 400 times the CIR.

S5700-28P-LI-24S-BAT.jpg

The CIR is expressed in Kbit/s (1024 bit/s), and the CBS and PBS are expressed in bytes.

Set the rate limit for outbound packets on the interface to 10 Mbit/s.

[HUAWEI] interface ethernet 0/0/1
[HUAWEI-Ethernet0/0/1] qos lr outbound cir 10240 cbs 2048000

Set the rate limit for inbound packets on the interface to 10 Mbit/s.

[HUAWEI] interface ethernet 0/0/1
[HUAWEI-Ethernet0/0/1] qos lr inbound cir 10240 cbs 2048000

NOTE:

A traffic policy can be used in the physical interface view, Eth-Trunk interface view, and VLAN view. When a traffic policy is used in the VLAN view, interfaces in the VLAN share the bandwidth specified by the rate limit specified by the traffic policy.

On the S5700, a physical interface is a GE interface.

S5700-28P-LI-24S-BAT.jpg

Configuring Rate Limiting on the S6700

The following rate limiting configuration is recommended:

Set the CIR, CBS, and PBS and do not set the PIR.

Set the CBS to 200 times the CIR.

Set the PBS to 2 times the CBS, that is, 400 times the CIR.

The CIR is expressed in Kbit/s (1024 bit/s), and the CBS and PBS are expressed in bytes.

Set the rate limit for outbound packets on the interface to 10 Mbit/s.

[HUAWEI] interface XGigabitEthernet 1/0/1
[HUAWEI-XGigabitEthernet1/0/1] qos lr outbound cir 10240 cbs 2048000

Set the rate limit for inbound packets on the interface to 10 Mbit/s.

[HUAWEI] interface XGigabitEthernet 1/0/1
[HUAWEI-XGigabitEthernet1/0/1] qos lr inbound cir 10240 cbs 2048000

Configuring Interface-based or Flow-based Rate Limiting on the S7700 and S9700

Configuring rate limiting on an interface

S9703.jpg

# Set the rate limit for inbound packets on the interface to 10 Mbit/s.

[Quidway] qos car car1 cir 10240 cbs 1024000
[Quidway] interface GigabitEthernet1/0/0
[Quidway-GigabitEthernet1/0/0] qos car inbound car1

# Set the rate limit for outbound packets on the interface to 10 Mbit/s.

[Quidway] interface gigabitethernet1/0/0 
[Quidway-GigabitEthernet1/0/0] qos lr cir 10240 pir 10240

Configuring rate limiting for a flow

# Set the rate limiting for any inbound and outbound flows on an interface to 10 Mbit/s.

[Quidway] traffic classifier c1 operator and
[Quidway-classifier-c1] if-match any
[Quidway-classifier-c1] quit
[Quidway] traffic behavior b1
[Quidway-behavior-b1] car cir 10240 pir 10240 green pass yellow pass red discard
[Quidway-behavior-b1] quit
[Quidway] traffic policy p1
[Quidway-trafficpolicy-p1] classifier c1 behavior b1
[Quidway-trafficpolicy-p1] quit
[Quidway] interface gigabitethernet1/0/1
[Quidway-GigabitEthernet1/0/1] traffic-policy p1 inbound
[Quidway-GigabitEthernet1/0/1] traffic-policy p1 outbound

NOTE:

A traffic policy can be used in the inbound and outbound directions in the system view, interface view, and VLAN view.

After reading the above article, you will know how to configure rate limiting on Huawei series products. Regarding Huawei switches series products, there are still many functions and configurations that we need to learn. If you have any interests, please feel free to contact: supports@thunder-link.com.

Related Posts