Professional Documents
Culture Documents
www.huawei.com
3. QoS Troubleshooting
1.8 HQoS
IntServ model
Principle
0 20 23 24 31
EXP: A 3-bit priority field represents
标签 EXP S TTL 32比特
the priority of MPLS packets. The
value ranges from 0 to 7.
2层头部 MPLS头部 IP头部 数据
override
The AR supports the mappings between 802.1p priorities and local priorities,
between 802.1p priorities and DSCP priorities, and between 802.1p priorities
and EXP priorities. The mappings between 802.1p priorities remain
unchanged.
The AR supports the mappings between EXP priorities and local priorities,
between EXP priorities and DSCP priorities, and between EXP priorities and
802.1p priorities. The mappings between EXP priorities remain unchanged.
Packets to be sent Place tokens in the token bucket at the specified rate
from this interface
Classification
Token bucket
Discard packets
Meter: measures the network traffic using the token bucket mechanism and sends
the measurement result to the marker.
Maker: colors packets based on the measurement result received from the meter.
Packets are colored green, yellow, or red.
Action: performs actions based on packet coloring results received from the marker,
including:
pass: forwards the packets meeting the measurement result.
pass + remark: changes the internal priority of a packet and then forwards it.
discard: discards the packets that do not meet the measurement result.
By default, green and yellow packets are forwarded, whereas red packets are discarded.
Weighted Round Robin (WRR) ensures that packets in all the queues are
scheduled in turn. WRR schedules packets in queues based on the weight of
each queue. If the weight is set according to the number of packets, WRR is
used. If the weight is set according to the number of bytes of packets, Deficit
Round Robin (DRR) is used.
HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential Page 22
1.6 Congestion Management-WFQ
Fair Queuing (FQ) ensures that network resources are allocated evenly to
optimize the delay and jitter of all flows. Compared with FQ, Weighted FQ
(WFQ) uses priorities to schedule packets.
Tail drop: When the queue length is greater than the upper drop threshold,
excess packets (buffered at the queue tail) are discarded.
To avoid global TCP synchronization, Random Early Detection (RED) is used. The RED
mechanism randomly discards packets so that the transmission speed of multiple TCP
connections is not reduced simultaneously. In this manner, global TCP synchronization is
prevented. The rate of TCP traffic and network traffic become stable.
The AR provides WRED. WRED discards packets in queues based on DSCP priorities or
IP priorities. You can independently set the upper drop threshold, lower drop threshold, and
drop probability for different types of packets. When the number of packets reaches the
lower drop threshold, the AR starts to discard packets. When the number of packets
reaches the upper drop threshold, the AR discards all the packets. A higher threshold
indicates a high drop probability. The greatest drop probability cannot exceed the upper
drop threshold percentage. WRED discards packets in queues based on the drop
probability, preventing a certain degree of congestion.
HQoS droppers:
3. QoS Troubleshooting
Voice, video, and data services on the LAN side are assigned different 802.1p
priorities.
Voice, video, and data services on the LAN side belong to different VLANs.
RouterA needs to limit the total traffic of a single enterprise user within a
proper range.
# Configure interface-based traffic policing in the inbound direction of Eth2/0/0 on RouterA in the
inbound direction to limit traffic of a single enterprise user within the proper range.
[RouterA-Ethernet2/0/0] qos car inbound cir 10000
# Configure interface-based traffic shaping on RouterA and set the CIR value to 8000 kbit/s.
[RouterA-Ethernet3/0/0] qos gts cir 8000 cbs 200000
# Create a queue profile qp1 on RouterA, set the scheduling mode to WFQ for queues 0 to 5 and to
PQ for queue 6 and queue 7, set CIR values of queue 6, queue 5, and queue 2 to 256 kbit/s, 2000
kbit/s, and 4000 kbit/s, and set CBS values of queue 6, queue 5, and queue 2 to 6400 bytes, 50000
bytes, and 100000 bytes.
[RouterA] qos queue-profile qp1
[RouterA-qos-queue-profile-qp1] schedule pq 6 to 7 wfq 0 to 5
[RouterA-qos-queue-profile-qp1] queue 6 gts cir 256 cbs 6400
[RouterA-qos-queue-profile-qp1] queue 5 gts cir 4000 cbs 100000
[RouterA-qos-queue-profile-qp1] queue 2 gts cir 2000 cbs 50000
# Create a queue profile queue-profile1 on RouterA and set the scheduling mode and drop mode
for each queue.
[RouterA] qos queue-profile queue-profile1
[RouterA-qos-queue-profile-queue-profile1] schedule pq 5 wfq 4 to 3
[RouterA-qos-queue-profile-queue-profile1] queue 4 drop-profile video
[RouterA-qos-queue-profile-queue-profile1] queue 3 drop-profile data
# Create traffic behaviors vpna and vpnb on the router to shape packets from different VLANs and
bind them to sub traffic policies.
[Router] traffic behavior vpna
[Router-behavior-vpna] gts cir 20000
[Router-behavior-vpna] traffic-policy vpna-sub
[Router] traffic behavior vpnb
[Router-behavior-vpnb] gts cir 3000
[Router-behavior-vpnb] traffic-policy vpnb-sub
# Apply the traffic policy on Eth3/0/0 of the router in the outbound direction.
[Router-Ethernet3/0/0] traffic-policy enterprise outbound
3. QoS Troubleshooting
4. QoS Troubleshooting
4.1 Priority Mapping Troubleshooting
Is traffic
policy applied Locate the fault Is fault rectified?
successfully?
Yes No
Configure a
Do packets
correct traffic
match the rule? Is fault rectified?
classification
rule
Yes No Yes
Is traffic Configure a
behavior set correct traffic Is fault rectified?
correctly? behavior
Yes No
Seek
technical End
support