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

Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

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).
Using a Traffic Policy to Limit the Rate of Packets

Using a Traffic Policy to Limit the Rate of Packets

Limiting the Traffic Rate Based on IP Addresses

Set the rate limit of packets from the PC at 192.168.1.10 to 4 Mbit/s.

<HUAWEI> system-view 
[~HUAWEI] acl 2000
[*HUAWEI-acl4-basic-2000] rule permit source 192.168.1.10 0.0.0.0
[*HUAWEI-acl4-basic-2000] quit
[*HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] if-match acl 2000
[*HUAWEI-classifier-c1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] car cir 4096
[*HUAWEI-behavior-b1] quit
[*HUAWEI] traffic policy p1
[*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[*HUAWEI-trafficpolicy-p1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] traffic-policy p1 inbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit

Limiting the Rate of Packets from Devices on a Network Segment

Set the rate limit of packets from devices on the network segment of 192.168.1.0 to 50 Mbit/s.

<HUAWEI> system-view 
[~HUAWEI] acl 2000
[*HUAWEI-acl4-basic-2000] rule permit source 192.168.1.0 0.0.0.255
[*HUAWEI-acl4-basic-2000] quit
[*HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] if-match acl 2000
[*HUAWEI-classifier-c1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] car cir 51200
[*HUAWEI-behavior-b1] quit
[*HUAWEI] traffic policy p1
[*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[*HUAWEI-trafficpolicy-p1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] traffic-policy p1 inbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit

Limiting the Traffic Rate Based on IP Addresses and Protocols

Set the rate limit of HTTP traffic (port 80) from devices on the network segment of 192.168.1.0 to 10 Mbit/s.

<HUAWEI> system-view 
[~HUAWEI] acl 3000
[*HUAWEI-acl4-advance-3000] rule permit tcp destination-port eq 80 source 192.168.1.0 0.0.0.255
[*HUAWEI-acl4-advance-3000] quit
[*HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] if-match acl 3000
[*HUAWEI-classifier-c1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] car cir 10240
[*HUAWEI-behavior-b1] quit
[*HUAWEI] traffic policy p1
[*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[*HUAWEI-trafficpolicy-p1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] traffic-policy p1 inbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit
Translation
Download
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 194309

Downloads: 3212

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