Got it

Traffic Policing Issue

Created: Jun 4, 2020 10:15:37Latest reply: Jul 8, 2020 23:24:44 972 22 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello everyone,


I got one issue when I test traffic policing on Huawei S12704.

My scenario: (check Policing Issue attachment).

- PC1 sends out traffic at a high rate (1Gbps). (using iperf tool)

- SW1 & SW2 applies traffic policing at 15Mbps on the link between SW1 & SW2 (Outbound direction).


My issue:

In the beginning, when PC1 starts to send traffic to PC2, SW1 will receive traffic with full bandwidth and it applies traffic policing (limit traffic at 15Mbps) on an outgoing interface (XG2/2/0/32). But the peak rate on the outgoing interface is higher than 15Mbps. (Check Output_Peak_Rate attachment)



Configuration on SW1:

traffic policy BES2_LIMIT match-order config
 classifier TEST_C behavior CAR_15M
traffic classifier TEST_C operator or precedence 30
 if-match acl 3051
traffic behavior CAR_15M
 permit
 car cir 15360 pir 15360 cbs 2887680 pbs 2887680 mode color-blind green pass yellow pass red discard
 statistic enable
acl number 3051
 rule 5 permit ip source 10.92.92.0 0.0.0.255 dscp ef


Can anyone help or explain my issue?

Many thanks,

Attachment: You need to log in to download or view. No account? Register

All Answers
Posted by Harry101 at 2020-06-10 07:56 Hello @chenhui  Thank you for your explanation. So to get the correct peak rate at the first second ...
Hi,
As the documentation describes below:

In Color-Blind mode, the following rules apply when a packet of size B arrives at time t:
If Tp(t) – B < 0, the packet is marked red, and The Tc and Tp values remain unchanged.
If Tp(t) – B ≥ 0 but Tc(t) – B < 0, the packet is marked yellow, and Tp is decremented by B.
If Tc(t) – B ≥ 0, the packet is marked green and both Tp and Tc are decremented by B.

When the bucket P is used up, then if configure the yellow marking traffic pass, more traffic will passing through than configuring the yellow marking traffic discard. The result is a higher peak rate in the motoring result.
View more
  • x
  • convention:

Harry101
Harry101 Created Jun 11, 2020 04:46:59 (0) (0)
Hi chenhui,
I want to use single-rate single-bucket, how can I configure this? (reject PIR + PBS)  
Hi Harry,
I tried to configure only the CIR, it seems that the switch would add the PIR automatically.
Actually, it is same that the configured CIR equals to PIR.
View more
  • x
  • convention:

Hi Chenhui,
I think we can not control or adjust the output peak rate because I tried to reduce the CBS value to a minimum value but it does still not match exactly the peak rate that we need. We should accept it.
Anyway, thank you for your help and your explanation, it's very helpful for me.
View more
  • x
  • convention:

Posted by Harry101 at 2020-06-12 03:30 Hi Chenhui,I think we can not control or adjust the output peak rate because I tried to reduce the C ...
Hi,
As I tried before, I think, the output peak rate is hardly to calculate precisely. The suddenly peak rate is meanless, the smaller monitoring interval is, more precise the instantaneous peak rate is. BTW, usually, the peak rate we referring is the PIR, rather than the instantaneous output peak rate.
View more
  • x
  • convention:

thanks for take your time to share it!
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.