Quality of
Service Over IP
Raj Jain
The Ohio State University
Columbus, OH 43210
Jain@[Link]
[Link]
Raj Jain
The Ohio State University
Overview
q
q
q
q
q
Integrated services
Resource Reservation Protocol: RSVP
Differentiated Services
QoS routing
Multiprotocol Label Switching (MPLS) CoS
Raj Jain
The Ohio State University
Multimedia
Application Video Conferencing, Telephony, Fax
Transport Timing Sync, payload id, error recovery
Network
QoS, Multicast, Signaling
Datalink
Access Control, Multicast, signaling
Multiple channels via SDM, FDM, TDM
Physical
Raj Jain
The Ohio State University
IETF Groups
Application Iptel, fax
Transport Avt (RTP), mmusic (RTSP)
Network
Qosr, MPLS, IntServ, Issl, Diff-serv, RSVP
Datalink
IEEE 802.1p
Broadband Ethernet 10Broad36
Physical
Raj Jain
The Ohio State University
QoS Triangle
Low Capacity
Carrier
High Traffic Sender
q
q
q
Receiver
High QoS
Senders want to send traffic any time with high load,
high burstiness
Receivers expect low delay and high throughput
Since links are expensive, providers want to minimize
the infrastructure
If one of the three gives in no problem
Raj Jain
The Ohio State University
Components of QoS
Architecture
1. Services with different QoS: Service definitions
2. Ways for users to communicate what they need:
Signaling or admission control
3. Ways for providers to ensure that users are following
their commitment: Policing/shaping
4. Ways for providers to find the routes:
QoS based routing
5. QoS based forwarding: Buffer Allocation and Drop
Policy, Queueing Discipline and Service Policy,
Traffic Management of elastic traffic
The Ohio State University
Raj Jain
6
ATM vs IP
QoS Component ATM
Services
CBR, VBR,
ABR, UBR
Signaling
UNI 4.0
Policing/Shaping Leaky bucket
Forwarding
Per-VC/per-class
queueing
Elastic Traffic
ABR
Mgmt
Routing
PNNI
IP
Integrated
Services
RSVP
Token bucket
Differentiated
Services
RED, Slow-start
QoS routing
Raj Jain
The Ohio State University
Integrated Services
q
q
Best Effort Service
Controlled-Load Service: Performance as good as in
an unloaded datagram network. No quantitative
assurances. (Min throughput)
Guaranteed Service: rt-VBR
m Firm bound on data throughput and delay.
m Delay jitter or average delay not guaranteed or
minimized.
m Every element along the path must provide delay
bound.
m Is not always implementable, e.g., Shared Ethernet.
Raj Jain
The Ohio State University
Flow Specification
Traffic Spec Network Traffic Spec
Sender
Receiver
QoS Spec
Available Resources
q
q
TSpec: Token bucket parameters
RSpec (QoS): Allocated Rate (R) and delay slack (S)
S = Extra acceptable delay over that obtainable with R
Zero slack Reserve exactly R.
RSpec specified only for guaranteed rate service.
Not for controlled load service.
Raj Jain
The Ohio State University
RSVP
q
q
q
q
q
Resource ReSerVation Protocol
Internet signaling protocol
Carries resource reservation requests through the
network including traffic specs, QoS specs, network
resource availability
Sets up reservations at each hop
RSVP does not find routes.
Multicast routing protocols do.
Raj Jain
The Ohio State University
10
Path Messages
S1
R1
R4
H5
H4
S2
R2
R3
H3
Sources send quasi-periodic PATH messages to
multicast address
q Path message contain:
m Sender Template: Data format, Src Address, Src Port
m Sender TSpec: Traffic Characteristics. Not changed.
m ADSpec: Network path resource/service availability
Accumulated along the path.
The Ohio State University
Raj Jain
q
11
Reservation Requests
S1
R1
R4
H5
H4
S2
q
q
q
R2 R3
H3
Receivers must join multicast address to receive path
messages
Receivers generate reservation (RESV) requests
RESV messages contain resources to be reserved
RESV messages are forwarded along the reverse path
of PATH messages
Raj Jain
The Ohio State University
12
Reservation (Cont)
q
q
q
Requests are checked for resource
availability (admission control) and
administrative permissions (policy control)
Two or more RESV messages for the same source
over the same link are merged.
Routers maintain a soft state.
The receivers have to refresh periodically.
Heterogeneous Receivers: Sources divide traffic into
several flows. Each flow is a separate RSVP flow.
Receivers join one or more flows. Each RSVP flow is
homogeneous.
Raj Jain
The Ohio State University
13
Problems with RSVP and
Integrated Services
q
Complexity in routers: packet classification,
scheduling
Per-Flow State: O(n) Not scalable.
Number of flows in the backbone may be large.
Suitable for small private networks
Need a concept of Virtual Paths or aggregated flow
groups for the backbone
Need policy controls: Who can make reservations?
Support for accounting and security.
RSVP admission policy (rap) working group.
Raj Jain
The Ohio State University
14
Problems (Cont)
q
q
q
Receiver Based:
Need sender control/notifications in some cases.
Which receiver pays for shared part of the tree?
Soft State: Need route/path pinning (stability).
Limit number of changes during a session.
Throughput and delay guarantees require support of
lower layers. Shared Ethernet IP cant do GS or
CLS. Need switched full-duplex LANs.
Cant easily do RSVP on ATM either
Most of these arguments also apply to integrated
services.
Raj Jain
The Ohio State University
15
COPS Protocol
Policy
Policy
COPS
Enforcement
Decision
TCP
Point
Point
Client
Server
Common Open Policy Service Protocol
When the routers (clients) receive a RSVP message,
they send the request the server and obtain authorization
Will work with other (non-RSVP) signaling
Routers can make local decisions but should keep
servers informed
Servers can send unsolicited responses for changes later
Local
Decision
Point
q
q
q
q
q
Raj Jain
The Ohio State University
16
IP ToS Field
Ver Hdr Len Precedence ToS Unused Tot Len
4b
4b
3b
4b
1b
16b
q IPv4: 3-bit precedence + 4-bit ToS
q RFC791: ToS determines packet treatment and
monitory considerations
q RFC1349: bit1 min delay, bit2 max throughput,
bit3 max reliability, bit4 min cost
q OSPF and integrated IS-IS can compute paths for each
ToS
Raj Jain
The Ohio State University
17
Differentiated Services
Working Group
q
q
q
q
q
q
August 97: BOF started
Feb 98: Working group formed
Dec 98: Final document
Email: majordomo@[Link] in body:
subscribe diff-serv
Archive: [Link]
Charter: define ds byte (IPv4 ToS or IPv6 traffic class
octets)
Raj Jain
The Ohio State University
18
Diff-Serv Terminology
Service: Offered by the protocol layer
m Application: Mail, FTP, WWW, Video,...
m Transport: Delivery, Express Delivery,...
Best effort, controlled load, guaranteed service
q Per-Hop Behavior (PHB): Mechanisms - Drop
threshold, Queue assignment, Service priority, Service
Rate
q Flow: Packets with specific header fields, Destination
Address, Source Address, Port, Flow Label
q Aggregates: Stream of packets with the same DS byte
pattern
The Ohio State University
Raj Jain
q
19
Initial proposals
q
q
q
q
Assured service (Jacobson): traffic profile (VBR or
CLS like), in-profile and out-profile
Premium Service (Clark): Peak rate (CBR or GS like),
Virtual leased line
Two-bit Service: A-bit (CLP) and P-bit (Priority)
2 Priority bits, 1 drop bit
Bits for delay class: 2 bits 4 classes
Bits for Drop preference: 3 bits 8 classes
Raj Jain
The Ohio State University
20
Latest PHB Allocation
q
q
q
q
q
q
q
ppp i 00
ppp = Precedence (Higher is generally better)
i = in/out bit In profile/out Profile
Drop preference. Allows in/out pkts in same Queue
Compatible with current usage
Precedence is used as an index to select a queue, or
VC, ...
In IEEE-802 switches, only 1, 2, or 3 msbs used
Unrecognized code points Default forwarding
Raj Jain
The Ohio State University
21
PHB Allocation (Cont)
q
Plan: 32 code points standard,
16 Experimental/local use, 16 reserved
xxxxx0 Standard
xxxx11 Experimental/Local Use
xxxx01 Reserved for future
Raj Jain
The Ohio State University
22
End-to-end QoS
H
q
q
q
IntServ
Diff
IntServ
R
R R
R R
R
RSVP
Serv
RSVP
Hosts may mark DS byte or use RSVP signaling or
both or none.
Why hosts? 1. Encryption, 2. Hosts know the
importance of info even if the header fields are same
Routers may mark DS byte if necessary.
Routers at the intserv diff-serv boundary accept/reject
RSVP requests based on current load
Raj Jain
The Ohio State University
23
Service between intserv and diff-serv regions can be
statically or dynamically provisioned
Current integrated services (CLS, GS) may or may not
be practical
DS byte may be modified at network boundary
Raj Jain
The Ohio State University
24
Issues
S1
q
q
q
q
q
q
S2
Standard code points (behaviors)
Receiver control over incoming low-speed link
Signaling: Should users signal
or network managers set resource allocations
Dynamic or Static management controls?
Billing: Bit for receiver billing. If receiver billing, the
receiver should be able to deny/drop packets received.
Congestion Check Bit: If set, network indicates
highest priority for which packets are being dropped
in the ToS byte.
Raj Jain
The Ohio State University
25
QoS Extensions to OSPF
q
q
q
q
Open shortest path first
Separate metric can be specified for each ToS
supported
OSPF options field has a T-bit
T-bit = 1 Router can compute routes for each ToS
Work to extend OSPF is currently underway
QoS Frequent updates
Instability: Underloaded links become overloaded
Also, complexity
Ref: Z. Zhang, et al, QoS Extensions to OSPF, Sep. 97,
[Link]
Raj Jain
The Ohio State University
26
Inter-Domain QoS
Routing
q
Domains want to limit the frequency and amount of
information exchanged Stability
QoS based routing may cause frequent changes and
instability
QoS extensions to Border Gateway Protocol (BGP)
proposed but may or may not happen
Need hierarchical aggregation for scalability
Crank-back
Raj Jain
The Ohio State University
27
MPLS
Prefix
[Link]/16
[Link]/24
q
q
q
q
Label
1
2
Out-Port
2
3
Out-Label
3
4
Multiprotocol Label Switching
Current: Longest prefix match on the dest address
With Labels: Search can be replaced by indexing
MPLS labels contain 3-bit CoS
Ethernet Header Label L3 Header
Label
20b
The Ohio State University
CoS Stack Indicator Time to Live
3b
1b
8b
Raj Jain
28
Summary
q
q
q
q
q
q
Internet protocols suite is being extended to allow QoS
Integrated Services: GS = rtVBR, CLS = nrt-VBR
Signaling protocol: RSVP
Differentiated Services will use the DS byte
QoS Routing: QOSPF
Multiprotocol Label Switching has 3-bit CoS
Raj Jain
The Ohio State University
29
References
q
For a detailed list of references see:
[Link]
refs/ipqs_ref.htm
P. Ferguson and G. Huston, "Quality of Service:
Delivering QoS on the Internet and in Corporate
Networks," Wiley 1998.
RFC 2212, "Specification of Guaranteed Quality of
Service", 9/97
RFC 2211 "Specification of the Controlled-Load
Network Element Service", 9/97
Raj Jain
The Ohio State University
30
References (Cont)
q
RFC 2205, "Resource ReSerVation Protocol (RSVP)
-- Version 1 Functional Specification", 11/97
"The COPS (Common Open Policy Service)
Protocol", 03/16/1998, [Link]
"A Framework for Multiprotocol Label Switching",
11/26/1997, [Link]
"MPLS Label Stack Encoding", 02/18/1998, [Link]
"A Framework for QoS-based Routing in the
Internet", 04/09/1998, [Link]
Raj Jain
The Ohio State University
31
References (Cont)
q
Diff-Serv Mail Thread index, [Link]
"Definition of Differentiated Services Field (DS Byte)
in the IPv4 and IPv6 Headers," 5/1998, [Link]
"Differentiated Services Operational Model and
Definitions", 02/11/1998, [Link]
"IP Precedence in Differentiated Services Using the
Assured Service", 04/10/1998, [Link]
Raj Jain
The Ohio State University
32
References (Cont)
q
"A Framework for End-to-End QoS Combining
RSVP/IntServ and Differentiated Services",
03/16/1998, [Link]
Raj Jain
The Ohio State University
33
IETF Working Groups
Internet Fax (fax)
q IP Telephony (iptel)
q Audio/Video Transport (avt)
q MBONE deployment working group (mboned)
q Multiparty Multimedia Session Control (mmusic)
q Multicast Extensions to OSPF (mospf)
q Inter-Domain Multicast Routing (idmr)
q Large Scale Multicast Applications (lsma)
q Integrated Services (intserv)
q Integrated Services over Specific Link Layers (issll)
q Resource Reservation Setup Protocol (rsvp)
q QoS-based Routing (qosr)
q Differentiated services (diff-serv)
The Ohio State University
Raj Jain
q
34
List of Acronyms
ABR
ATM
BA
BGP
BOF
CBR
CDV
CFI
CLP
CLS
COPS
Available Bit Rate
Asynchronous Transfer Mode
Behavior Aggregate
Border Gateway Protocol
Birds of a Feather
Constant Bit Rate
Cell Delay Variation
Canonical Format Indicator
Cell Loss Priority
Controlled Load Service
Common Open Policy Service Protocol
Raj Jain
The Ohio State University
35
Acronyms (Cont)
CoS
DA
DQDB
DSBM
DVMRP
FCS
FDDI
FIFO
FTP
GS
ICMP
Class of Service
Destination Address
Distributed Queue Dual Bus
Designated Subnet Bandwidth Manager
Distance Vector Routing Multicast Protocol
Frame Check Sequence
Fiber Distributed Data Interface
First in First out
File Transfer Protocol
Guaranteed Service
Internet Control Message Protocol
Raj Jain
The Ohio State University
36
Acronyms (Cont)
IEEE
IETF
IGMP
IP
IPv4
IPv6
IS
IntServ
LANs
LLC
LU
Institution of Electrical and Electronic Engineers
Internet Engineering Task Force
Internet Group Management Protocol
Internet Protocol
Internet Protocol Version 4
Internet Protocol Version 6
Internal System
Integrated Services
Local Area Networks
Logical Link Control
Local Use
Raj Jain
The Ohio State University
37
Acronyms (Cont)
MAC
MBONE
MBS
MF
MPLS
MTU
NHRP
OOPS
OSPF
PASTE
Media Access Control
Multicast Backbone
Maximum Burst Size
Multi-field
Multiprotocol Label Switching
Maximum Transmission Unit
Next Hop Resolution Protocol
Open Outsourcing Policy Service
Open Shortest Path First
Provider Architecture for Differentiated Services
and Traffic Engineering
Raj Jain
The Ohio State University
38
Acronyms (Cont)
PCR
PHB
PIM
PT
QOSPF
QoS
RED
ResV
RFC
RIF
RSVP
Peak Cell Rate
Per-Hop Behavior
Protocol Independent Multicast
Protocol Type
QoS-OSPF
Quality of Service
Random Early Discard
Reservation Request
Request for Comment
Routing Information Field
Resource Reservation Protocol
Raj Jain
The Ohio State University
39
Acronyms (Cont)
RSpec
RTP
SBM
SONET
TCP
TPID
TR
TSpec
ToS
UBR
UDP
QoS Specification
Real-time Transport Protocol
Subnet Bandwidth Manager
Synchronous Optical Network
Transmission Control Protocol
Tag Protocol ID
Token Ring
Traffic Specification
Type of Service
Unspecified Bit Rate
User Datagram Protocol
Raj Jain
The Ohio State University
40
Acronyms (Cont)
UNI
VBR
VC
VLAN
WAN
WFQ
User-Network Interface
Variable Bit Rate
Virtual Circuit
Virtual Local Area Network
Wide Area Network
Weighted Fair Queueing
Raj Jain
The Ohio State University
41