Unit 4 Notes PDF
Unit 4 Notes PDF
UNIT - III
Dr.A.Kathirvel
Professor & Head/IT - VCEW
UNIT - III
Best Effort service model – Scheduling and Dropping policies
– Network Performance Parameters – Quality of Service and
metrics – WFQ and its variants – Random Early Detection –
QoS aware Routing – Admission Control – Resource
Reservation – RSVP - Traffic Shaping Algorithms – Caching –
Laissez Faire Approach - Possible Architectures – An
Overview of QoS Architectures
Quality of Service
• MM systems consist of set of services
• To provide generic MM services, services get parameterized with so called
Quality of Service
• Examples of QoS parameters:
– QoS for Audio service:
• Sample rate – 8000 samples/second
• Sample resolution – 8 bits per sample
– QoS for network service:
• Throughput – 100 Mbps
• Connection setup time – 50 ms
QoS (cont.)
• QoS concept comes from networking service and was
introduced for specification how good the offered network
services are
• Services are performed on different objects
– Media sources
– Media sinks
– Connections
• QoS specification characterizes the service objects
Layered Model for QoS
Application QoS Parameters
System QoS Parameters
Network QoS Parameters
QoS Classes
• Guaranteed Service Class
– QoS guarantees are provided based on deterministic and statistical QoS
parameters
• Predictive Service Class
– QoS parameter values are estimated and based on the past behavior of
the service
• Best Effort Service Class
– There are no guarantees or only partial guarantees are provided
QoS Classes (cont.)
QoS Class determines: (a) reliability of offered QoS, (b) utilization of resources
Deterministic QoS Parameters
• Simple implementation
Round Robin Scheduling
• multiple classes
• cyclically scan class queues, serving one from each class (if available)
• provides protection against misbehaving sources (also guarantees a
minimum bandwidth to every connection)
Max-Min Fair Share
• Fair Resource allocation to best-effort connections?
• Fair share allocates a user with a “small” demand what it wants, and evenly
distributes unused resources to the “big” users.
• Maximize the minimum share of a source whose demand is not fully
satisfied.
– Resources are allocated in order of increasing demand
– no source gets a resource share larger than its demand
– sources with unsatisfied demand s get an equal share of resource
• A Generalized Processor Sharing (GPS) server will implement max-min
fair share
Weighted Fair Queueing
• generalized Round Robin (offers differential service to
each connection/class)
• each class gets weighted amount of service in each cycle
Policing Mechanisms
Goal: limit traffic to not exceed declared parameters
Three common-used criteria:
• (Long term) Average Rate: how many pkts can be sent per unit time (in the
long run)
– crucial question: what is the interval length: 100 packets per sec or
6000 packets per min have same average!
• Peak Rate: e.g., 6000 pkts per min. (ppm) avg.; 1500 ppm peak rate
• (Max.) Burst Size: max. number of pkts sent consecutively (with no
intervening idle)
IETF Differentiated Services
Concerns with Intserv:
• Scalability: signaling, maintaining per-flow router state difficult with large
number of flows
• Flexible Service Models: Intserv has only two classes. Also want “qualitative”
service classes
– “behaves like a wire”
– relative service distinction: Platinum, Gold, Silver
Diffserv approach:
• simple functions in network core, relatively complex functions at edge routers
(or hosts)
• Don’t define service classes, provide functional components to build service
classes
#32
Diffserv Architecture
Edge router: marking
- per-flow traffic management r scheduling
- marks packets as in-profile and out-
profile b ..
.
Core router:
- per class traffic management
- buffering and scheduling
based on marking at edge
- preference given to in-profile
packets
QoS #33
Edge-router Packet Marking
• profile: pre-negotiated rate A, and token bucket size B
• packet marking at edge based on per-flow profile
Rate A
User packets
QoS #34
Classification and Conditioning
• Packet is marked in the Type of Service (TOS) in IPv4, and
Traffic Class in IPv6
• 6 bits used for Differentiated Service Code Point (DSCP)
and determine PHB that the packet will receive
• 2 bits are currently unused
QoS #35
Classification and Conditioning
QoS #36
Forwarding (PHB)
• Per Hop Behavior (PHB) result in a different observable
(measurable) forwarding performance behavior
• PHB does not specify what mechanisms to use to ensure
required PHB performance behavior
• Examples:
– Class A gets x% of outgoing link bandwidth over time
intervals of a specified length
– Class A packets leave first before packets from class B
QoS #37
Forwarding (PHB)
PHBs being developed:
• Expedited Forwarding: pkt departure rate of a class equals or exceeds
specified rate
– logical link with a minimum guaranteed rate
• Premium service
– DSCP = 101110 (46)
• Assured Forwarding: 4 classes of traffic
– each guaranteed minimum amount of bandwidth
– each with three drop preference partitions
• Gold, silver, bronze
QoS #38
DiffServ Routers
DiffServ
Edge
Router
Classifier Marker Meter Policer
DiffServ PHB
Select PHB PHB Local
Core PHB
PHB conditions
Router
Extract Packet
DSCP treatment
QoS #39
IntServ vs. DiffServ
IntServ
network
DiffServ
network
QoS #41
Comparison of Intserv & Diffserv
Architectures
Intserv Diffserv
Coordination for End-to-End Local (Per-Hop)
service differentiation
Scope of Service A Unicast or Multicast Anywhere in a
Differentiation path Network or in
specific paths
Scalabilty Limited by the number Limited by the
of flows number of classes
of service
Network Accounting Based on flow Based on class
characteristics and QoS usage
requirement
Network Management Similar to Circuit Similar to existing
Switching networks IP networks
Interdomain Multilateral Bilateral
deployment Agreements Agreements
QoS #42
Traffic Regulators
bucket size, b
per-flow
rate, R
WFQ
D = b/R
max
IETF Integrated Services
• architecture for providing QOS guarantees in IP networks
for individual application sessions
• resource reservation: routers maintain state info (a la VC)
of allocated resources, QoS req’s
• admit/deny new call setup requests:
request/
reply
QoS-sensitive
scheduling (e.g.,
WFQ)
RSVP
• Multipoint Multicast connections
• Soft state
• Receiver initiated reservations
• identifies a session using a combination of dest. Address,
transport-layer protocol type, dest. Port number
• each RSVP operation applies only to packets of a particular
session
• not a routing protocol; merely used to reserve resources along
the existing route set up by whichever underlying routing
protocol
RSVP Messages
• Path message originating from the traffic sender
– to install reverse routing state in each router along the path
– to provide recceivers with information about the
characteristics of the sender traffic and end-to-end path so
that they can make appropriate reservation requests
• Resv message originating from the receivers
– to carry reservation requests to the routers along the
distribution tree between receivers and senders
• PathTear, ResvTear, ResvErr, PathErr
PATH Message
• Phop: the address of the last RSVP-capable node to forward
this path message.
• Sender template: filter specification identifying the sender
• Sender Tspec: defines sender traffic characteristics
• Optional Adspec: info about the end-to-end path used by the
receivers to compute the level of resources that must be
reserved
RESV Message
• Rspec: reservation specification comprising the value R of
bandwidth to be reserved in each router, and a slack term about
end-to-end delay
• reservation style, FF, WF, SE
• Filterspec to identify the senders
• Flowspec comprising the Rspec and traffic specification (set
equal to Sender Tspec)
• optional ResvConf
Call Admission
Arriving session must :
• declare its QOS requirement
– R-spec: defines the QOS being requested
• characterize traffic it will send into network
– T-spec: defines traffic characteristics
• signaling protocol: needed to carry R-spec and T-spec to
routers (where reservation is required)
– RSVP
Intserv QoS: Service models [rfc2211, rfc 2212]
Guaranteed service: Controlled load service:
• worst case traffic arrival: leaky-bucket- "a quality of service closely
policed source approximating the QoS that same
• simple (mathematically provable) flow would receive from an unloaded
bound on delay [Parekh 1992, Cruz network element."
1988]
bucket size, b
per-flow
rate, R
WFQ
D = b/R
max
Multimedia in Networks
Fundamental characteristics:
• Typically delay sensitive Classes of MM applications:
delay. • Streaming stored audio and
• But loss tolerant: infrequent video
losses cause minor glitches • Streaming live audio and
that can be concealed. video
• Antithesis of data • Real-time interactive video
(programs, banking info,
etc.), which are loss
intolerant but delay tolerant.
• Multimedia is also called
“continuous media”
Multimedia in networks (2)
Streaming stored MM Unidirectional Real-Time:
• Clients request audio/video • similar to existing TV and radio
stations, but delivery over the
files from servers and
Internet
pipeline reception over the
• Non-interactive, just listen/view
network and display
Interactive Real-Time :
• Interactive: user can control
• Phone or video conference
operation (similar to VCR:
pause, resume, fast forward, • More stringent delay requirement
rewind, etc.) than Streaming & Unidirectional
because of real-time nature
• Delay: from client request • Video: < 150 msec acceptable
until display start can be 1
• Audio: < 150 msec good, <400
to 10 seconds
msec acceptable
Multimedia in networks (3): challenges
• TCP/UDP/IP suite provides best-
effort, no guarantees on delay or • Design for multimedia apps
delay variation. would be easier if there were
some 1st and 2nd class services.
– Streaming apps with initial
delay of 5-10 seconds are now – But in the public Internet, all
commonplace, but packets receive equal service.
performance deteriorates if – Packets containing real-time
links are congested interactive audio and video
(transoceanic) stand in line, like everyone
– Real-Time Interactive apps else.
have rigid requirements for • There have been, and continue to
packet delay and jitter. be, efforts to provide
– Jitter is the variability of differentiated service.
packet delays within the same
packet stream.
Multimedia in networks (4):
making the best of best effort
To mitigate impact of “best-effort” • We can send redundant packets to
Internet, we can: mitigate the effects of packet loss.
• Use UDP to avoid TCP and its
slow-start phase… We will discuss all these “tricks”.
• Buffer content at client and
control playback to remedy jitter
• We can timestamp packets, so that
receiver knows when the packets
should be played back.
• Adapt compression level to
available bandwidth
How should the Internet evolve to better
support multimedia?
Integrated services philosophy:
• Change Internet protocols so that Differentiated services philosophy:
applications can reserve end-to- • Fewer changes to Internet
end bandwidth infrastructure, yet provide 1st and
– Need to deploy protocol that 2nd class service.
reserves bandwidth • Datagrams are marked.
– Must modify scheduling • User pays more to send/receive
policies in routers to honor 1st class packets.
reservations
• ISPs pay more to backbones to
– Application must provide the send/receive 1st class packets.
network with a description of
its traffic, and must further
abide to this description.
• Requires new, complex software
in hosts & routers
How should the Internet evolve to better
support multimedia? (cont.)
Laissez-faire philosophy Virtual private networks (VPNs)
• No reservations, no datagram • Reserve permanent blocks of
marking bandwidth for enterprises.
• As demand increases, provision • Routers distinguish VPN traffic
more bandwidth using IP addresses
• Place stored content at edge of • Routers use special scheduling
network: policies to provide reserved
– ISPs & backbones add caches bandwidth.
– Content providers put content
in CDN nodes
– P2P: choose nearby peer with
content
QoS Architectures
Host A Host B
Application Application
QoS-enabled
Presentation Presentation
Top-to-Bottom QoS
Application
Session Session QoS API
Physical Physical
SBM
End-to-End QoS
Protocol Comparison
QoS Net App Description
most x Provisioned resources end-to-end (leased lines)
x x RSVP Guaranteed (provides feedback to application)
x x RSVP Controlled Load (provides feedback to application)
x MPLS (Multi-Protocol Label Switching)
DiffServ applied at network ingress appropriate to RSVP service
x x
level for that flow
x x DiffServ or SBM applied on per-flow basis by source application
x DiffServ applied at network core ingress
x Fair queuing applied by network elements (e.g. WFQ, RED)
least Best effort service
Multicast Environments
• RSVP
– Heterogeneous receivership makes reservation merging a difficult task
• DiffServ
– Its relative simplicity makes it a better fit for multicast support
• MPLS
– Work is underway, no standards have emerged yet
• SBM
– Explicit support for multicast
Conclusions
• Complexity at the edges – simple network core
– Limit RSVP’s use on the backbone
– Instead use the DiffServ
• DiffServ is a perfect complement for RSVP
• ToDo :
– Performance attributes for each class still missing
– Interworking solution for mapping IP CoS to ATM QoS
Queries