Professional Documents
Culture Documents
www.huawei.com
Objectives Contents
Upon completion of this section, you will be able to: 1. QoS Service Models
Be familiar with QoS service models 2. Traffic Classification and Re-marking
Understand the implementation of the DiffServ model
3. Congestion Management and Congestion Avoidance
Be familiar with the packet classification basis
4. Traffic Policing and Traffic Shaping
Understand the process of packet re-marking
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page22 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page33
1
Traditional E2E Network Communication Network Quality Requirements of Various
Problems Services
WAN Network requirements of various services must be met to ensure the
communication quality.
Blocked point
Packet Loss
10Mbps Traffic Type Bandwidth Delay Jitter
E1 E1 Ratio
Data flow 10Mbit/s Voice Low High High Low
Enterprise headquarters Video High High High Low
Enterprise branch
FTP Medium, high Low Low High
Traditional network devices process packets based on the packet arrival Email, HTTP web Medium,
Low Low Low
page browsing high
sequence. That is, the packet that arrives first is preferentially forwarded. When
network congestion occurs, the communication quality of some key services
cannot be guaranteed (such as voice delay, video frame freezing, failure to To improve communication quality is to improve the bandwidth and reduce
process key services). This affects user experience. the delay, jitter, and packet loss ratio.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page44 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page55
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page66 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page77
2
Comparison Between Three Service
DiffServ Model
Models
Because the implementation of the IntServ model is complex and the bandwidth usage is
low, the Differentiated Service (DiffServ) model is used to ensure the communication Service
Advantage Disadvantage
Models
quality of key services.
③ Send packets to buffer queues based on CoS It cannot differentiate different
values and implement differentiated services BE Model The implementation is simple.
① Classify packets at the network service flows.
ingress and re-mark priority of packets. based on the scheduling mechanism between
queues.
The IntServ model needs to trace and
The IntServ model provides E2E record the status of each data flow.
IntServ
QoS services and ensures the The implementation is complex, the
Model bandwidth and delay. scalability is low, and the bandwidth
usage is low.
DS edge node DS node DS node The DiffServ model does not need
to trace the status of each data The DiffServ model needs to be
② Map priorities of packets to locally
DiffServ domain
DiffServ flow, occupies a few resources, and deployed on each node, and there
Enterprise defined CoS values. Model has strong extensibility. are high requirements for technical
Enterprise
branch headquarters In addition, this model can personnel's capabilities.
implement differentiated services.
The DiffServ model is widely used.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page88 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page99
⑥ ⑤ ① Rule 1
④ ② Rule 2
③ Rule 3
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page10
10 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page11
11
3
Packet Classification Basis Complex Traffic Classification
Because simple traffic classification cannot classify traffic in a fine-
Packet classification technology can transmit different types of packets
granular manner, complex traffic classification is used.
based on link types and QoS priority fields in packets. Complex Traffic
Common Matching Item Description
Classification Type
802.1Q field in the VLAN frame header: 802.1p priority in the inner or outer
Complex traffic
VLAN tag Matching items can be
Dest add Sour add 802.1Q (PRI) Length/Type Data FCS classification at the link
combined flexibly.
layer Source or destination MAC address
IP-Precedence
Label field in MPLS packets: Source or destination IPv4 address
Complex traffic Matching items can be
Link layer header Label (EXP) Layer 3 header Layer 3 payload TCP/UDP source port number
classification at the IP layer combined flexibly.
TCP/UDP destination port number
ToS
Version Len Len … Protocol FCS IP-SA IP-DA Data
(IPP/DSCP) Complex traffic classification based on source MAC addresses and TCP
One traffic classification mode is used and matching rules are simple, so port numbers can be used to meet requirements 1 and 2 in slide 11,
this classification is called simple traffic classification. respectively.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page12
12 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page13
13
RTA
Finance
Manager FTP Server SWA DS edge node
department
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page14
14 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page15
15
4
Packet Re-marking Process Packet Re-marking Configuration
traffic behavior manager
remark 8021p 1
Manager DS edge node DS node traffic behavior voice
(3333-3333-3333) remark 8021p 5
traffic behavior video
802.1p=1 remark 8021p 3
802.1p=5
RTA
Finance department Manager DS node
802.1p=3 G0/0/0 802.1p=1
SWA 802.1p=2 G0/0/1
G0/0/2 802.1p=5 RTA
Finance department 802.1p=3
SWB FTP G0/0/3 SWA 802.1p=2
Server
DS edge node SWB G0/0/0 FTP
Server
① Complex traffic classification ② Simple traffic classification ③ Complex traffic classification
and re-marking and re-marking and re-marking int g0/0/0
traffic-policy a1 inbound
Source MAC 802.1p 802.1p TCP Source
802.1p 802.1p traffic policy a1 int g0/0/1
Address Port classifier manager behavior manager traffic-policy a1 inbound
2 3 int g0/0/2
3333-3333- classifier voice behavior voice
1 3 5 20 2 classifier video behavior video traffic-policy a1 inbound
3333 int g0/0/3
… … … … … … traffic-policy a1 inbound
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page16
16 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page17
17
Implementation of Congestion
Contents
Management (1/2)
1. QoS Service Models
FTP server SWB
2. Traffic Classification and Re-marking 802.1p=2
Queue 0
802.1p=1
Queue 1
3. Congestion Management and Congestion Avoidance 802.1p=5 Queue 2
Enterprise
branch
802.1p=3
…
SWA RTA
4. Traffic Policing and Traffic Shaping
Queue
802.1p LP
Index
Send packets to different queues based
- 0 0
on the mapping between local priorities
1 1 1 and queue index numbers.
2 2 2
3 3 3
- 4 4
5 5 5
- 6 6
- 7 7
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page18
18 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page19
19
5
Implementation of Congestion
FIFO
Management (2/2)
FIFO queue Queue scheduling
… Video FTP Data Voice
Video FTP Video FTP FTP Queue 2 Advantage: The implementation of First In First Out (FIFO) is simple and the
2. Common queue scheduling algorithms processing speed is fast.
…
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page20
20 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page21
21
PQ WRR
Queue a weight 3
Top 8 7 4 1
Queue scheduling
Classification
Middle
Advantage: Weight Round Robin (WRR) prevents the problem that low-priority
Advantage: For Priority Queuing (PQ), high-priority packets are
queues are not scheduled.
preferentially forwarded. Disadvantage: Packets are scheduled based on number of packets. In this case,
Disadvantage: Low-priority queues may be not scheduled. packets with different sizes are not scheduled in a fair manner and low-delay
services are not scheduled in a timely manner.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page22
22 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page23
23
6
WFQ PQ+WFQ
Packets to be sent
Packets to be sent
from this interface
from this interface
Sent packets
Sent packets
Classification Interface
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page24
24 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page25
25
Advantage: Class-based Queuing (CBQ) supports user-defined rules and defines Low-delay services are guaranteed and
PQ+WFQ packets are scheduled based on weights User-defined rules are not supported.
different scheduling policies for different services.
in a fair manner.
Disadvantage: Because complex traffic classification is involved, enabling CBQ
CBQ User-defined rules are supported. More system resources are consumed.
consumes some system resources.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page26
26 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page27
27
7
Congestion Management Requirements Congestion Management Implementation
(PQ+WFQ) (PQ+WFQ)
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page28
28 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page29
29
Traditional Processing After the Queue Is Disadvantages of Tail Drop: Global TCP
Full Synchronization (1/2)
4 3 2 1 10 Mbit/s
6 5
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page30
30 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page31
31
8
Disadvantages of Tail Drop: Global TCP
Solution: RED
Synchronization (2/2)
To avoid global TCP synchronization, some packets are discarded randomly before queues are full. The
3. The TCP acknowledgement packets sent by the server are transmission rate of some TCP connections can be reduced to prevent global TCP synchronization as
discarded due to congestion. Consequently, the sender does
2. Traffic is heavy. As a result, the queue not receive TCP acknowledgement and considers that network much as possible. Such a random packet drop behavior is called Random Early Detection (RED).
is full and tail drop is used. congestion occurs. Then both the TCP window size and traffic
are reduced.
Traffic Traffic
Drop
probability
Drop probability
100% curve
Maximum
3. When the length of the queue is
drop larger than the maximum drop
probability threshold, all new incoming packets
are dropped.
Actual queue
length
Time Lower drop Upper drop Maximum queue
4. Network congestion is eliminated. The sender can receive threshold length
1. TCP connections threshold
TCP acknowledgement packets, and considers that network
enter the slow start congestion does not occur. Then TCP connections enter the 1. When the length of the 2. When the length of a queue ranges from the lower Time
state. slow start state. This process repeats.
queue is shorter than the drop threshold to the upper drop threshold, subsequent 4. Global TCP synchronization may still occur, but the
minimum drop threshold, packets are randomly dropped. The longer the queue, the
packets are not dropped. link utilization is greatly increased.
larger the drop probability.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page32
32 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page33
33
Cause: Tail drop cannot distinguish traffic. Cause: Tail drop cannot distinguish traffic.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page34
34 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page35
35
9
Solution: WRED WRED Configuration Requirement
WRED technology sets drop policies for data packets with different
priorities or queues to distinguish and discard traffic. Requirement: When network congestion occurs
and queues are full, FTP traffic is discarded later
Drop probability than other traffic.
Drop probability
100%
curve Manager DS node
dscp E1
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page38
38 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page39
39
10
Traffic Policing Traffic Shaping
Configure traffic policing on the Configure traffic shaping on the
traffic behavior voice
inbound interface of the enterprise outbound interface of the enterprise traffic behavior voice Packet rate of the outbound
egress router to limit the rate of total car cir 800 The packets of which the rate is
traffic behavior video Packet rate of egress router to ensure bandwidth of gts cir 800 interface on RTA
traffic and ensure the minimum exceeded may be discarded or the different types of traffic and optimize traffic behavior video (data traffic used as an example)
bandwidth of various traffic. car cir 2000 the inbound priority of the packets is reduced bandwidth usage. gts cir 2000
traffic behavior data interface on RTA before being forwarded.
traffic behavior data
car cir 1200 gts cir 1200
Advantage: Traffic shaping limits the rates of different packets separately. The buffer
Advantage: Different types of packets can be limited separately.
mechanism can reduce bandwidth waste and traffic retransmission.
Disadvantage: When a link becomes idle, bandwidth is wasted. Discarded traffic may be Disadvantage: Traffic shaping may increase the delay.
retransmitted.
Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page40
40 Copyright
Copyright©©2017
2017Huawei
HuaweiTechnologies Co.,Co.,
Technologies Ltd. All
Ltd.rights reserved.
All rights reserved. Page
Page41
41
11
Thank You
www.huawei.com
12