Professional Documents
Culture Documents
The IP QoS
The IP QoS
Privileged and confidential. The information contained in this material is privileged and confidential, and is intended
only for the use of the individual to whom it is addressed and others who have been specifically authorized to receive
it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this
material is strictly prohibited. If you have received this material in error, please destroy it immediately.
QoS in IP networks
Contents
• OSI
• Protocol Stack
• Port numbers
• TCP/UDP
• The need for QoS
• LTE Network QoS
• IP precedence,
• Differentiated services (DiffServ)
• Multi-Protocol Label Switching (MPLS)
2
Protocol Encapsulation
User Data
HOST A HOST B
3
Protocol Stack
Network
Data Network
Application Application
Message
Application Application
Message
Presentation Presentation
Message
Session Session
Segment
Transport TCP/UDP Transport
Packet Packet
Network (IP) Network Network
Frame Frame
Data Link(ATM/Ethernet) Data Link ATM Data Link
Signal Signal
Physical (SDH) Physical Physical
Layer 3- Switching
4
Transport layer protocols
Physical Physical
SDH
5
Port numbers
Port numbers are used by TCP and UDP to identify the source and destination
application running in multi tasking systems.
Dynamic port numbers are used by the client
Well known port numbers are used by the server:
TCP 20 FTP Data
TCP 21 FTP
TCP 23 Telnet
TCP 25 SMTP
UDP 53 Domain
UDP 67 BOOTP Server
FTP Server
21
Ethernet Ethernet
6
TCP
NETWORK
LAYER(3)
1 PACKET
3 2
PACKET SWITCH
3
SWITCH 1
PACKET 2 3 1
2
3 2 1 SWITCH
PACKET
1
PACKET
SWITCH
SWITCH
eNodeB
7
User Datagram Protocol (UDP)
Source Port Indicates the port of the sending process. It is the port to
which replies are addressed.
Destination Port Specifies the port of the destination process on the
destination host.
Length The length (in bytes) of this user datagram, including the
header.
Checksum
8
Layer 3 - Switching
0 4 8 16 19 24 31
VERS HLEN Service Type Total Length
Identification Flags Fragment Offset
Time To Live Protocol Header Checksum
Source IP Address
NETWORK
Destination IP Address LAYER(3)
IP Options (If any) Padding
DATA
...
1 PACKET
3 2
PACKET SWITCH
3
SWITCH 1
PACKET 2 3 1
2
3 2 1 SWITCH
PACKET
1
PACKET
SWITCH
SWITCH
eNodeB
9
Layer 3 - Switching
0 4 8 16 19 24 31
VERS HLEN Service Type Total Length
Identification Flags Fragment Offset
Time To Live Protocol Header Checksum
Source IP Address
NETWORK
Destination IP Address LAYER(3)
IP Options (If any) Padding
DATA
...
128.2.7.9 126.2.7.9
PACKET
SWITCH
11
LTE is all IP
HSS
S1
MME
Serving
Gateway
192.128.10.101
192.128.10.0
PCI
GCID
VLAN ID
Host address: 192.128.10.1
Mask : 255.255.255.0
Default Gateway: 192.128.10.101
12
IP datagram
0 4 8 16 19 24 31
VERS HLEN Service Type Total Length
Identification Flags Fragment Offset
Time To Live Protocol Header Checksum
Source IP Address
Destination IP Address
IP Options (If any) Padding
DATA
...
13
The need for QoS
14
3G Services and QoS Classes
RT
Telephony
Video Telephony
VoIP •Each application is
DELAY SENSITIVE
15
EPC
Http VoIP Providing low loss, latency and jitter for
FTP streaming some traffic aggregate means ensuring
SMTP
that the aggregate sees no (or very
NON REAL REAL TIME small) queues.
TIME SERVICES
SERVICES
IP
16
LTE Network QoS
LTE-Uu S1-U S5
Serving P-
PDN
Gateway Gateway
EPS Bearer External Bearer
17
Packet classification
Buffering issues may be overcome by enabling separate voice and video data
queues in the network switches and routers.
Separate queues allow time critical data such as audio and video to be transmitted
in a priority fashion.
18
The Original IPv4 ToS Byte
0 4 8 16 19 24 31
VER HLE
S N
ToS Total Length Precedence was a 3 bit field which
Flag
Identification
s
Fragment Offset treats high priority packets as more
Time To Live Protocol Header Checksum important than other packets.
Source IP Address
Destination IP Address If a router is congested and needs to
IP Options (If any) Padding discard some packets, it will discard
DATA
packets having lowest priority first.
...
19
DiffServ Codepoint Field
0 4 8 16 19 24 31
VERS HLEN ToS Total Length
Identification Flags Fragment Offset
Time To Live Protocol Header Checksum
Source IP Address
Destination IP Address
IP Options (If any) Padding
DATA
...
The modern redefinition of the ToS field is a six-bit Differentiated Services Code
Point (DSCP) field and a two-bit Explicit Congestion Notification (ECN) field.
Class Selector
0 1 2 3 4 5 6 7
Differentiated Services Code Point (DSCP) Explicit Congestion
Notification
20
DS routing
DS requires routers
that support queue
scheduling and
management to
prioritize outbound
packets and control
the queue depth to
minimize congestion
in the
network.
21
DiffServ
DiffServ relies on a mechanism to classify and mark packets as belonging to a
specific class.
22
Classification and marking
Traffic may be classified by many different parameters, such as source
address, destination address or port numbers and assigned to a specific traffic
class.
Packet classification and policing can be carried out at the edge of the network
by edge router
23
Different traffic classes
In theory, a network could have up to 64 (i.e. 26) different traffic classes using
different DSCPs.
0 1 2 3 4 5 6 7
Differentiated Services Code Point (DSCP) Explicit Congestion
Notification
In practice, however, most networks use the following commonly defined Per-Hop
Behaviors:
24
Default PHB
Essentially, any traffic that does not meet the requirements of any of the other
defined classes is placed in the default PHB.
0 1 2 3 4 5 6 7
Differentiated Services Code Point (DSCP) Explicit Congestion
Notification
25
Expedited Forwarding (EF) PHB
Expedited Forwarding (EF) PHB
The IETF defines Expedited Forwarding behavior in RFC 3246. The EF PHB has
the characteristics of low delay, low loss and low jitter. These characteristics are
suitable for voice, video and other real time services.
EF traffic is often given strict priority queuing above all other traffic classes.
0 1 2 3 4 5 6 7
Differentiated Services Code Point (DSCP) Explicit Congestion
Notification
EF PHB is especially suitable for applications (like VoIP) that require very low
packet loss, guaranteed bandwidth, low delay and low jitter.
26
DiffServ Per-Hop Behaviours
27
Assured Forwarding
Traffic that exceeds the subscription rate faces a higher probability of being
dropped if congestion occurs.
IP datagram
Number of bits
4 4 8 variable
Version
Header
Length
Type of
Service
... Data
The AFxy PHB defines four AFx
classes: AF1, AF2, AF3, and AF4.
6 MSBs LSBs are not assigned
28
Assured Forwarding (AF)
The AF behavior group defines four separate AF classes with Class 4 having the
highest priority.
Within each class, packets are given a drop precedence (high, medium or low, where
higher precedence means more dropping).
The combination of classes and drop precedence yields twelve separate DSCP
encodings from AF11 through AF43 .
29
DiffServ Per-Hop Behaviours
30
Class Selector (CS) PHB
Class Selector
0 1 2 3 4 5 6 7
Differentiated Services Code Point (DSCP) Explicit Congestion
Notification
31
Summary
DSCP EF
DSCP AF4
DSCP AF3
DSCP
AF2
Operator
AF1
DSCP configurable
BE
DSCP
mapping
6 Default PHBs
corresponding to the IP
egress scheduling queues
32
EPS Bearer
33
User plane - Bearers
LTE-Uu S1-U S5
Serving P-
PDN
Gateway Gateway
E-RAB
LTE-Uu S1-U S5
Serving P-
PDN PDN
Gateway Gateway
Packet
Scheduling Default Bearer
Dedicated Bearer
Default EPS Bearer :
Does not allocate any
Be established during Attach Process
additional IP address to
Allocate IP address to UE
UE
Does not have specifc QoS (only Nominal QoS is applied).
Is linked to a specified
Packet default EPS bearer
Scheduling Dedicated Bearer
Dedicated Bearer
Normally be established during the call setup after idle mode.
Have a specific (usually guaranteed) QoS
35
Bearers-QoS Class Identifier
LTE-Uu S1-U S5
Serving P-
PDN
Gateway Gateway
Packet
Scheduling
Default Bearer
Packet
Scheduling Dedicated Bearer
36
Traffic Flow Templates (TFT)
Non Real
Real Time
Time
Application Application
Port Numbers
TCP UDP
IP
37
Traffic Flow Templates (TFT)
Each EPS bearer is associated with a traffic flow template (TFT).
This comprises a set of packet filters, one for each of the packet flows that
make up the bearer.
Traffic flow template is always associated with dedicated bearer and while
default bearer may or may not have TFT.
EPS Bearer ID
Packet
Packet
Dedicated
filters Data Bearer 8 GTP-U Tunnel 8 GTP-U Tunnel 8
EPS bearer
filters
Packet Packet
Data Bearer 8 GTP-U Tunnel 8 GTP-U Tunnel 8
filters filters
38
Traffic Flow Templates (TFT)
0 4 8 16 19 24 31
VERS HLEN Service Type Total Length
Identification Flags Fragment Offset
Time To Live Protocol Header Checksum
Source IP Address
Destination IP Address
IP Options (If any) Padding
DATA
...
EPS Bearer ID
Packet
Packet
Dedicated
filters Data Bearer 8 GTP-U Tunnel 8 GTP-U Tunnel 8
EPS bearer
filters
Packet Packet
Data Bearer 8 GTP-U Tunnel 8 GTP-U Tunnel 8
filters filters
39
Traffic Flow Templates (TFT)
TFT is set of all packet filter associated with an EPS bearer
EPS Bearer ID
P- Dedicated
Data Bearer 8 GTP-U Tunnel 8 GTP-U Tunnel 8
Gateway EPS bearer
The parameters include:
• The source IP address
• The destination IP address
• The source port number
• The destination port number
• The protocol identification (i.e., TCP or UDP).
40
ACTIVATE DEDICATED EPS BEARER CONTEXT REQUEST
1Pv4-
10.1.10.6 Ipv4 address : 10.1.10.6
Ipv4 mask 255.0.0.0
EPS Bearer ID = 6
41
ACTIVATE DEDICATED EPS BEARER CONTEXT REQUEST
PORT
Packet Filter
1Pv4- ID=8
10.1.10.6
EPS Bearer ID = 6
42
TWO PACKET FILTERS
MME
ACTIVATE DEDICATED EPS BEARER CONTEXT REQUEST
EPS ID =6
LINK EPS BEARER = 5
44
Activate Dedicated EPS Bearer Context Reject
45
Multiprotocol Label Switching
46
MPLS
MPLS is designed to
bring the speed of OSI layer 2, the
link/switching layer, up to layer 3, the
network protocol layer.
47
MPLS header
• A 20-bit label value. A label with the value of 1 represents the router alert label.
• 3-bit Traffic Class field for QoS (quality of service) priority (experimental) and
ECN (Explicit Congestion Notification).
• 1-bit bottom of stack flag. If this is set, it signifies that the current label is the
last in the stack.
• 8-bit TTL (time to live) field
48
Label edge router
A label edge router (LER, also known as edge LSR) is a router that operates at
the edge of an MPLS network and acts as the entry and exit points for the
network. LERs respectively, push an MPLS label onto an incoming packet and
pop it off the outgoing packet. Alternatively,
GSM GSM
E1 E1
3G ATM 3G ATM
IP Network IP Network
LTE- LTE-
Ethernet MPLS supports the transport of a wide range of layer 2 Ethernet
and layer 3 services, including TDM,
ATM, and IP, and is thus able to support the migration
from from legacy (TDM and ATM) to IP based RANs
49
Label switch router (LSR)
A MPLS router that performs routing based only on the label is called a label
switch router (LSR)
51
Label Stack
•MPLS IP packets can carry anywhere from 1, 2, 3, . . . .
up to “m” labels,
•Only the top of the stack is accessible to the router
•The bottom label is Label 1, and the top label is Label m
•Label 1 refers to the last router in the path, and Label 2
bottom label Label 1 refers to the next hop router
•The “S” bit is set to 1 for the bottom label, and to 0 for all
other labels
52
Label Stack
As the IP packet moves through the route:
1) The ingress PE router adds two labels to the packet, defining two LSP’s – one
to the final PE router, and one to the next hop router
2) The next hop router receives the packet, pops Label 2 and adds a new Label 2
that refers to the next hop router – this repeats until the final PE router is reached
3) the final router is a PE router, which pops both Label 2 and then Label 1, and
sends the pure IP packet out it’s egress port and to the CE router
ingress
ingress
MPLS Network
54
Label Stack
When a router in an MPLS network receives an unlabeled
packet, it reverts to ordinary IP routing protocols.
ingress
MPLS Network
55
Summary
LER -push an MPLS label onto an incoming packet and pop it off the
outgoing packet
56