Академический Документы
Профессиональный Документы
Культура Документы
QoS Principle
ISSUE 1.0
www.huawei.com
IP IP IP IP
512 kbps
256 kbps
10 Mbps
100 Mbps
IP IP IP IP
Delay = P1 + Q1 + P2 + Q2 + P3 + Q3 + P4 = X ms
Forwarding
Bandwidth
IP IP IP IP
Processing delay
Queuing delay
Transit delay
Forwarding
IP IP IP IP IP
Tail-drop
cTCP Data
Compress
the Headers
Interactive Not
(e.g., Telnet) Low Low Low important
No No No
Silver Guaranteed guarantee guarantee guarantee
Bronze Guaranteed No No No
limited guarantee guarantee guarantee
Best Effort No No No No
guarantee guarantee guarantee guarantee
request
reply
Policy Decision
Point (PDP)
Resource reservation
Admission control
RSVP is a protocol for reserving resources. The receiver initiates RSVP to set
up the resource reservation for the multicast and unicast data traffic. RSVP is
used between the host and the network device (FRCs 2205 to 2215).
Common Open Policy Service (COPS) is a simple protocol at the application
layer. COPS uses the query/response mode. This protocol applies to the policy
exchange between the policy server and the policy client. In the COPS protocol,
policy server is also the policy decision point (PDP), such as SPS in SIG. Policy
client is also the policy enforcement point (PEP), such as the MA5200F. (RFCs
2748 to 2753)
RSVP
Class of Service
or
Best Effort
RSVP
All Routers
• WFQ applied per flow
based on RSVP requests
Precedence
Classifier
WRED
Premium Egress Router
Standard
• RSVP protocol
sent on to destination
Ingress Router • WFQ applied to
• RSVP protocol manage egress flow
Mapped to classes
Passed through to Backbone
egress • WRED applied based
on class
HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confidential page20
IntServ Advantages & Disadvantages
+ RSVP advantages
• Simple to control (end-to-end)
– RSVP disadvantages
• No expandability
DS code point : The DS node chooses corresponding PHB according to the DSCP value.
DS field: It contains the TOS of the IPV4 packet header or the traffic type field of IPV6
(defined by RFC2474).
Three combinations
− “xxxxx0”: common
− “xxxx11”: pilot or for local use
− “xxxx01”: pilot or for local use (It can be also used as the formal one)
Default DSCP: “000000”
Default PHB: FIFO, tail-drop
ACL , IP priority
Meter
High-Speed Low-Speed
Link Link
WAN
256 kbps
Use TDM on a
The access resources
single physical
are limited.
link or lease
FastEthernet
64 kbps
links.
128 kbps
Server
Farm Internet
Traffic Shaping
− Traffic shaping does not discard packets.
− Traffic shaping displays the congestion of frame relay communication.
Traffic Policing
− Traffic policing supports the packet marking.
− Traffic policing does not require Buffer to be added, whereas traffic
shaping requires additional queue system.
Bandwidth
Link Bandwidth
Exceeding Traffic
Rate Limit
Conforming Traffic
Time
Use the token bucket mechanism to record the arrival rate of packets.
The token bucket functions only on the condition of new packets.
The conforming traffic and exceeding traffic are returned.
700
200
200
Bc + Be
Shaping
− Generic traffic shaping (GTS)
− Frame Relay traffic shaping (FRTS)
− Class-based traffic shaping
Policing
− Committed access rate (CAR)
− Class-based traffic policing
Meter
Shaper
Classifier Marker
Dropper
Traffic
Stream
Shaping
Forwarder Classifier Yes No
WFQ
No
No Shaping
Classifier Yes Yes
WFQ
No
Yes
Shaping
Classifier Yes No
WFQ
Yes
No
Physical Interface
Queue(s)
ISP expects to provide a service for subscribers. With this service, subscribers
can use the whole E1 line for 30s in case of burst, but the normal rate is 256
kbps.
GTS parameters
− Bit rate: 256,000— output rate is 256,000 bps
− Burst size—32,000 the number of bits sent in 125 ms
− Excess burst size: 61,440,000 = 2,048,000 x 30
WAN
Core
Customer
interface ethernet0/0
qos gts cir 256000 cbs 32000 ebs 61440000
!
interface serial1/0
qos gts cir 256000 cbs 32000 ebs 61440000
WAN
Core
Customer
interface ethernet 0/0
qos gts acl 101 cir 64000
interface serial 1/0
qos gts acl 101 cir 64000
!
access-list 101 permit tcp any any eq www
Meter
Inbound
or
Outbound
Classifier Marker Dropper
Meter
Forwarding
Outbound
Meter
Software Hardware
CAR Queue Queue
(FIFO, PQ,
(FIFO)
CQ, WFQ, ...)
drop
transmit
Output Queue
Class 2? CAR or
Forward
continue
drop
transmit
Class n? CAR
Meter
Yes Forward
Yes / No
Conforms? Transmit? or
Enqueue
No
Go to
Mark? Yes
Continue? Next
CAR Command
Yes No
Set IP Precedence? Set IP Precedence
Yes
Yes Drop?
Set DSCP? Set DSCP
Yes
Set MPLS Experimental? Set MPLS Experimental
Yes
Set QoS group? Set QoS Group
Customer
Internet
NAP
Customer ISP
Customer
The WEB traffic is limited as 512 kbps and with high priority.
− The priority of excess traffic is the same as that of normal traffic.
All traffic cannot exceed 256 kbps and should have the priority 0.
− Excess traffic is discarded.
− Normal burst traffic is 16000 bytes.
− Extra burst traffic is 24000 bytes.
2 Mbps
Internet
Customer NAP
ISP
Inbound
Outbound
Forwarded Packets
FIFO
Forwarded Packets
Hardware
Medium? Tail-drop Queue 2 Queuing System
Pre-emptive
Scheduler Hardware Q Interface
Packet in No
HIGH
queue?
Packet in No
Yes
MEDIUM
queue?
Packet in No
Yes
NORMAL
queue?
Packet in No
Yes
LOW
queue?
Yes
Dispatch packet
and start checking the Hardware Q
HIGH queue again
+ Advantages
Transmit the packets with high priority at short delay.
Support devices manufactured by different vendors.
Support all HUAWEI VRP versions.
– Disadvantages
Each PQ class has the disadvantages of FIFO.
The queue with low priority is discarded when congestion
occurs in the queue with high priority.
Configure the classification manually on each hop.
Forwarded Packets
Hardware
Class 2? Tail Drop Queue 2 Queuing System
Round-
Robin Hardware Q Interface
Scheduler
No
Is Queue N
Packet in No Next Queue Yes
over the
Queue N? (increase N)
threshold?
Yes
Dispatch
Packet Hardware Q
Hardware
Flow 2? WFQ drop Queue 2 Queuing System
WFQ
Scheduler Hardware Q Interface
Parameter
− Classification mechanism
− Weighted fairness
Each queue uses the improved tail-drop.
Yes Yes
Worst Worst
Yes No
Finish Finish
Time? Time?
No Yes
Old
Drop the packet with
the worst finish time
(old) and enqueue the
Nth packet (new).
New
Hold-queue out limit (HQO) restricts the total number of packets that can be
placed in all queues.
Congestive discard threshold (CDT) limits the number of packets that can be
placed in each queue.
N is an SN given to the classified packets before the decision that whether the
packets enter the queues or are discarded.
HQO reaches its upper threshold 10. Newly arrived packets are discarded as
the TDM system places them at the end.
HQO reaches its upper threshold 10. Newly arrived packets are not
discarded as the TDM system does not place them at the end. Instead, the
packets placed at the end are discarded.
CDT exceeds its upper limit 8. Newly arrived packets are discarded for the TDM
system places them at the end.
CDT exceeds its upper limit 8. Newly arrived packets enter the queue as they
are not placed at the end.
The packets that are placed in the empty sub-queue will not be
discarded forever.
The packet priority does not affect the discarding mechanism.
Each packet are marked with the finish time in the TDM system.
WFQ scheduling mechanism sends the packets marked with the earliest
finish time out of the TDM system.
refer to the On the Efficient Implementation of Fair Queuing, written by Keshav and Berkeley in
1994.
1 2048
2 1365
3 1024
4 819
5 682
6 585
7 512
+ Advantages
Be simple to configure.
Guarantee the transmission of all traffic.
Preferentially discard the packets that is invasive to bandwidth.
Support devices manufactured by different vendors.
Support all HUAWEI VRP versions.
– Disadvantages
Each WFQ class has all disadvantages of FIFO.
Multiple traffic is terminated in a queue.
Cannot configure classification.
Cannot guarantee a certain bandwidth.
Performance is damaged by complex classification and scheduling
mechanisms.
Flow C
Random early detection (RED) discards packets at random before the queue
is full.
Packets discarded by RED increase gradually with the queue expansion.
Influence given by RED :
− The speed of the TCP session slows down and approaches to the link
bandwidth.
− Compared with the maximum queue length, the average queue length is
shortened.
The IP priority can be used to preferentially discard the packet that has low
priority and is invasive to bandwidth.
Drop
No drop Random drop Full drop
Probability
100%
Maximum
Drop
Probability
10%
20 40 Average
Queue
Size
Minimum Maximum
Threshold Threshold
Flow C
The TCP synchronization prevents the value of average link use from
approaching to the link bandwidth.
Tail drops slows down the TCP session start.
Average link
use
Flow A
Flow B
Flow C
The value of average link use gets close to the link bandwidth.
Random drops reduces the value of slide windows for the TCP session.
Drop
Probability
100%
10%
10 20 40 Average
Queue
WRED profiles can be manually set. Size
Drop
Probability
100%
10%
100%
10% EF
Average
20 36 40 Queue
Size
100%
10%
Average
20 24 28 32 40 Queue
Size
Queue No
IP Packet WRED Full?
FIFO Queue
IP Precedence
Yes
or
DSCP
Select the
WRED
Random Drop Tail Drop
profile
Minimum Threshold
Maximum Threshold
IP Priority Meaning
0 High-drop, best-effort traffic
1 Low-drop, best-effort traffic
2 Premium traffic outside of the contract
4 Unused
5 Voice over IP
VoIP
Priority 3
Routing
0.1
Priority 1
Priority 2
Priority 0
Average
Queue Size RSVP
10
15
20
25
30
35
37
HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confidential page101
Thank you
www.huawei.com