Got it

How calculate WFQ weight on Huawei Router

Created: May 21, 2020 16:19:29Latest reply: May 22, 2020 11:19:13 501 4 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage shaping-percentage-value } [ pbs pbs-value ] | port-wred wred-name | low-latency } * outbound


I have 8 queue 

cs7pq
cs6pq
EFpq
AF4WFQ
AF3WFQ
AF2WFQ
AF1WFQ
BEWFQ


Which weight i need to aply?

utulization interface

BE = 200 Mb

AF1 = 200Mb

AF3 = 300Mb



Featured Answers

Recommended answer

ViktorG
Created May 21, 2020 19:37:06

Hi there, mate!

From the implementation experience, it would be great if:
1 - Define Bandwidth for Priority queue - for example:
port-queue ef pq shaping shaping-percentage 10 outbound
port-queue cs6 pq shaping shaping-percentage 1 outbound
port-queue cs7 pq shaping shaping-percentage 1 outbound

2 - After, you can Calculate the required BW for each WFQ according to the following formula.
Remaining bandwidth x Weight of the particular queue/Sum of weights.

Remaining bandwidth = 100% - pq shaping shaping-percentage
Also, need to take into account the AF2 and AF4.

Take care and have a great day!
Viktor
View more
  • x
  • convention:

All Answers
Hello,
In weighted fair queuing (WFQ) scheduling, the value of the weight for each queue is 1–100. Generally, the sum of all weights is set to 100 to facilitate calculation. However, this is not mandatory.

The bandwidth ratio occupied by each queue = the weight of the queue/the sum of all weights.

For example: If the current interface has four queues, and the weights are 10, 10, 10, and 50 respectively, the bandwidth ratio is 10/80 when the weight value of the queue is 10, and the bandwidth ratio is 50/80 when the queue's weight value is 50.

Thanks
View more
  • x
  • convention:

Hi there, mate!

From the implementation experience, it would be great if:
1 - Define Bandwidth for Priority queue - for example:
port-queue ef pq shaping shaping-percentage 10 outbound
port-queue cs6 pq shaping shaping-percentage 1 outbound
port-queue cs7 pq shaping shaping-percentage 1 outbound

2 - After, you can Calculate the required BW for each WFQ according to the following formula.
Remaining bandwidth x Weight of the particular queue/Sum of weights.

Remaining bandwidth = 100% - pq shaping shaping-percentage
Also, need to take into account the AF2 and AF4.

Take care and have a great day!
Viktor
View more
  • x
  • convention:

DDSN
DDSN Admin Created May 22, 2020 01:36:52

Hi 774241,
WFQ weight-value
Specifies the scheduling weight after bandwidth is allocated to PQ queues.
Assume that the total bandwidth of the interface queue is X.
The bandwidth of the PQ queue is Y.
The weight of WFQ is Z.
Then,Z=(X-Y)/X.
I hope it helps!
View more
  • x
  • convention:

  • x
  • convention:

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.