7 - Qos Configuration ISSUE1.0 PDF
7 - Qos Configuration ISSUE1.0 PDF
7 - Qos Configuration ISSUE1.0 PDF
ODW000106 Qos
Configuration
www.huawei.com
Congestion management
Congestion avoidance
CBQ
Congestion management
QoS debugging
Congestion avoidance
A A
Processing Processing
delay time
delay Network transit delay
End-to-end delay
3 2 1 Sender
3 2 1 receiver
D3 D2 D1
D3=D2=D1
HUAWEI TECHNOLOGIES CO., LTD. Page 7
Bandwidth Limit…
10M
I wa IP
nt 1
00M
M
ant 30
Iw I want 2M
Using Best-Effort model can transfer any number of packets at any time
without getting previous approval
OK! OK!
OK! OK!
Start to communicate
Congestion management
QoS debugging
Congestion avoidance
Congestion management
QoS debugging
Flow
classification
drop
After the CAR policy is applied to the interface, this interface will not
support the fast forwarding
E0/0
[Quidway-ethernet0/0] qos car inbound any cir 800000 cbs 150000 ebs 0 green
remark--prec-continue 5 red discard
[Quidway-serial1/0] qos car inbound any cir 80000 cbs 150000 ebs 0 green
remark--prec-continue 3 red discard
[Quidway] qos carl 1 precedence 3
[Quidway] qos carl 2 precedence 5
[Quidway-serial1/1] qos car outbound carl 1 cir 80000 cbs 150000 ebs 0 green
pass red discard
[Quideay-serial1/1] qos car oubound carl 2 cir 80000 cbs 150000 ebs 0 green pass
red discard
HUAWEI TECHNOLOGIES CO., LTD. Page 21
Traffic Shaping Token
128Kbps
Flow
256Kbps classification
Queue
bucket
128Kbps
FR
GTS (Generic Traffic Shaping) is to solve Interface rates on both sides of the
link are not matching
GTS limits traffic of messages and buffer the messages which
exceeds the traffic limit stipulated
Traffic shaping may increase the delay.
[routerA-Serial1/0] qos gts any cir 80000 cbs 150000 ebs 0 queue-length 1000
the interface will not support the fast forwarding when using GTS
Flow
classification
QoS queue
256Kbps
128Kbps
Bucket
LR limites the total rate for sending packets (including the emergency
packet) on a physical interface.
LR also utilizes the token bucket to perform the traffic control
LR using the QoS queue for congestion management
Example
S1/0
Congestion management
QoS debugging
Output
queue
In case of network congestion, ensure messages of different priority levels gain different QoSs,
such as time delay and bandwidth
Put messages into different queues according to their priority levels, and give different
dispatch priorities, probabilities or bandwidths to different queues
FIFO( First In First Out )
RTPQ
CBQ (CBWFQ)
By default, the length of the FIFO queue is 75, with the value
ranging 1 to 1024
Display the strategy of the interface
display interfaces interface-type interface-number
Flow
classification
High
Medium
drop Normal
Low
Queue Length
top 20
middle 40
normal 60
bottom 80
S1/1
Flow
classification
Queue 0
Queue 1
Queue 2
drop
Queue 16
CQ (Custom queuing), that the user can configure the proportion of the bandwidth
for the different queue
CQ is divided into 17queues: Queue 0 is the system queue; queue 1 to queue
16 is the user queue.
S1/1
Queue 1
Queue 1
Queue 2
drop
Queue N
N=16,32…2048,4096
WFQ (Weighted fair queuing), assures justice to services with identical priority.
Maximum number of queues can be configured (16-4096)
Use HASH algorithm to dispatches the data flow into different queues
Example
S1/0
……
Define traffic behavior, and define a group of QoS features in the traffic
behavior view.
Define the policy, and define the corresponding traffic behavior for the
class in use in the policy view.
Configure fair queuing, can only be associated with the default class
can be used only after the queue af command and queue wfq command
have been configured.
can be used only after the queue af command and queue wfq command
have been configured.
[Quidway-behavior-database] queue-length 16
Configure DSCP value to 6 to identify packets.
[Quidway] traffic behavior database
When creating the policy, the default has the default-class as the
default class, which associates with be behavior.
Specify the traffic behavior for the class in the policy
classifier tcl-name behavior behavior-name
Associate an Apply Policy to the Interface or ATM PVC
qos apply policy policy-name { inbound | outbound }
PC2 PC4
Telephone Telephone
[RouterA]qos policy 1
[RouterA-qospolicy-1]classifier 1 behavior 1
[RouterA-qospolicy-1]classifier 2 behavior 2
Congestion management
QoS debugging
Congestion management
QoS debugging
time
Flow
classification
Queue 1
Queue 1
Queue 2
Max-threshold
min-threshold
drop
Queue N
N=16,32…2048,4096
WRED (Weighted Random Early Detection)
WRED avoids the TCP global synchronization through the random drop packets
The same priority but different queue , the queue longer the packet drop more