Académique Documents
Professionnel Documents
Culture Documents
com
QoS
QUALITY OF SERVICE
INTRODUCTION TO QUALITY OF SERVICE
CONCEPTS AND PROTOCOLS
Peter R. Egli
INDIGOO.COM
1/20
Rev. 3.10
indigoo.com
Contents
1.
2.
3.
4.
5.
6.
7.
2/20
Rev. 3.10
indigoo.com
3/20
Rev. 3.10
indigoo.com
SF
DA
SA
0x8100
p-tag
CFI
0x0800
Payload
FCS
4/20
Rev. 3.10
indigoo.com
PC 9
Building
floor 3
PC 6
Building
floor 2
PC 3
Building
floor 1
PC 4
Router
PC 5
VLAN switch
VLAN switch 2
PC 1
PC 2
VLAN switch 1
VLAN trunks
Peter R. Egli 2015
VLAN1
VLAN2
(Accounting) (Marketing)
VLAN3
(Sales)
5/20
Rev. 3.10
indigoo.com
6/20
Rev. 3.10
indigoo.com
MPLS switches IP traffic flows on layer 2 thus improving network performance (more
throughput).
MPLS combines IP routing (addressing) and fast forwarding of traffic (layer 2 switching).
MPLS LSPs (Label Switched Paths) can be assigned certain QoS (like ATM PVCs).
IP forwarding
Label switching
IP forwarding
IP
D=192.168.2.2
192.168.2.2
IP
D=192.168.2.2
IP
D=192.168.2.2
L1
IP
D=192.168.2.2
L2
IP
D=192.168.2.2
L3
MPLS headers
(labels)
Peter R. Egli 2015
7/20
Rev. 3.10
indigoo.com
Classifier
Marker
Shaper
Dropper
(scheduler)
IP packet
Classifier: Classifies packet into an internal class. For intermediate routers, the
classifier may be missing (packet already classified by AS ingress router).
Meter: Measures the temporal properties of the packet stream selected by the classifier and instructs
the marker and shaper/scheduler to treat a specific packet accordingly (e.g. drop a packet that is out-ofprofile, i.e. the stream already used 100% of the available bandwidth).
Marker: Marks packets according to the class defined by the classifier.
Shaper / scheduler: Extracts packets from queues according to a local policy and
sends the packet.
Peter R. Egli 2015
8/20
Rev. 3.10
indigoo.com
TOS
DSCP
Version
IHL
TOS / DSCP
Identification
TTL
CU
Total length
U
DF
MF
Protocol
Fragment offset
Header checksum
IP source address
IP destination address
Optional IP options
Peter R. Egli 2015
9/20
Rev. 3.10
indigoo.com
DiffServ Domain A
DiffServ Domain B
DiffServ Domain C
Q1
Q2
Service classes:
Premium
Q3
Q4
Ingress node:
Marking (classification)
at ingress point
Peter R. Egli 2015
Egress node:
Queueing (e.g. WRED)
and shaping.
Gold
Silver
Bronze
10/20
Rev. 3.10
indigoo.com
Receiver
Sender
RSVP PATH message (stores path to receiver which then allocates
resources along the path).
RSVP RESV (reservation) message reserves bandwidth etc. along the path.
11/20
Rev. 3.10
indigoo.com
50%
25%
13%
12%
12/20
Rev. 3.10
indigoo.com
Packet A
Packet B
Packet C
12
Packet D
13
Packet E
10
14
11
15
16
18
2
17
19
20
21
6
13/20
Rev. 3.10
indigoo.com
14/20
Rev. 3.10
indigoo.com
ECN combines IP and transport layer (e.g. TCP) functionality by using bits in the IP header and
TCP header. Support for other transport protocols may be added in the future.
IP header:
ECN uses 2 bits of the DSCP field in the IP header to signal congestion information to
the receiver.
DiffServ Code Point
ECN-capable
transport bits (ECT)
ECT ECT
(0)
(1)
DSCP
DSCP / ECT
IP header
ECT(0)
ECT(1)
Description
ECT(0) codepoint
ECT(1) codepoint
indigoo.com
Destination Port
Sequence Number
TCP header
Acknowledgement Number
Header Length
Unused
Checksum
TCP Flag
Urgent Pointer
Description
CWR
ECE
16/20
Rev. 3.10
indigoo.com
Network
App 'A'
TCP/IP A'
1
TCP/IP B'
Router
Send data
Packet forward
with ECN
codepoint=11 (CE)
Send packet,
3
ECT=10 or 01
Congestion
window
7
reduction
App B'
Router queue
congestion
TCP ACK
17/20
Rev. 3.10
indigoo.com
18/20
Rev. 3.10
indigoo.com
19/20
Rev. 3.10
indigoo.com
20/20
Rev. 3.10