qos in networkscs680/lecture/pdf/cs680_intro.pdf•introduction •integrated ... •qos based...

33
02/18/08 1 QoS in Networks QoS in Networks CS680 CS680 Prof. A. Sahoo Prof. A. Sahoo

Upload: lamthien

Post on 12-Apr-2018

244 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 1

QoS in NetworksQoS in NetworksCS680CS680

Prof. A. SahooProf. A. Sahoo

Page 2: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 2

Topics to be CoveredTopics to be Covered• Introduction• Integrated Services

- Architecture- Service models

- Guaranteed service- Controlled load service

- RSVP- Salient parts of RFC 2205

• Packet scheduling (various scheduling mechanisms e.g. max-min fair scheduling, GPS, WFQ, WRR etc.)

Page 3: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 3

Topics to be CoveredTopics to be Covered• Differentiated Services

– Basic approach– PHBs– Services– Diffserv fields– Traffic classification and conditioning– AF PHB– EF PHB– Traffic Policing– IntServ over DiffServ– Congestion control

Page 4: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 4

Topics to be CoveredTopics to be Covered• Multiprotocol Label Switching

– Motivation– Label switching proposals (tag switching, IP

switching etc.)– MPLS architecture

• Salient parts of RFC 3031

– Label Distribution Protocols

Page 5: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 5

Topics to be CoveredTopics to be Covered• Traffic description methods and Delay Analysis• Internet Traffic Engineering

– The Fish Problem– Building blocks of TE– Constraint based routing– Multipath load sharing

• QoS based routing• QoS in Wireless Network• Virtual Private Network• Papers in those topics

Page 6: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 6

Books and ReferencesBooks and References• Internet QoS – Architecture and Mechanisms for

Quality of Service - Zheng Wang, Publisher: Morgan Kauffman.• MPLS Technology and Application – B. Davie, Y.

Rekhter, Publisher: Morgan Kauffman.• An Engineering Approach to Computer

Networking- S. Keshav, publisher : Addison-Wesley.

• Various RFCs and papers.

Page 7: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 7

PrerequisitePrerequisite• UG or PG course in Computer Networks

– Understanding of MAC, routing, TCP/IP protocols

• Basics in Algorithms• Basics in Queueing Theory

Page 8: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 8

Class EvaluationClass Evaluation• Surprise Quizzes – 10%• Mid sem – 30%• End sem – 40%• Course Project – 20%

Page 9: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 9

Grading PolicyGrading Policy• Based on clustering

Page 10: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 10

Pre-RequisitePre-Requisite• Undergraduate Computer Networks

Knowledge– Understanding of TCP, IP routing protocols,

various MAC protocols

• Basic knowledge in probability theory• Basic understanding of queuing theory

Page 11: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 11

Other Academic PoliciesOther Academic Policies• Academic dishonesty

– Will not be tolerated at all• Will get fail grade for doing so

• Attendance Policy– As per Institute rule

• Falling Short will get you XX grade

Page 12: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 12

Introduction (cont’d)Introduction (cont’d)• For Many Years Internet was primarily

used for networking research. File transfer, email were the most popular application: They do not need any performance guarantee from underlying network.

• New applications such as VoIP, video conferencing, e-commerce apps are sensitive to network performance.

Page 13: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 13

Introduction (cont’d)Introduction (cont’d)• Internet cannot provide any resource

guarantees : the service is best effort• Internet does not provide service differentiation :

all packets are treated equal.• But applications such as VoIP require low delay,

jitter and packet loss; whereas file transfer app can tolerate fair amount of delay and loss. Thus there is a need to differentiate between packets of such applications.

Page 14: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 14

Current State of InternetCurrent State of Internet• Uses best-effort service model• No guarantee of timeliness of delivery• No service discrimination• Bandwidth and network congestion

problems• Unpredictable network response time

Page 15: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 15

What is QoSWhat is QoS• The capability to provide resource

assurance and service differentiation so that delay, jitter or loss sensitive applications can perform satisfactorily is often referred to as quality of service (QoS).

• can be provided through relative prioritization of resource allocation to different flows/packets in the network.

Page 16: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 16

QoSQoS• QoS parameters

– At bit level• Bit error rate

– At Packet level• Delay• Delay Jitter• Packet loss• Throughput

– At call level• Blocking probability

– At Application level• Throughput• Response time

Page 17: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 17

QoSQoS• QoS in circuit-switched network

– Quite Easy

• QoS in packet-switched network– Difficult (why?)

• Wired network• Wireless network• Inherent limitation of protocols• Queuing

Page 18: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 18

Resource AllocationResource Allocation• Many problems in the Internet come down to

issue of resource allocation.• Packets get delayed or dropped because network

resource cannot meet the traffic demands.• A network consists of shared resources :

bandwidth, buffer, serving traffic from competing users.

• To support QoS network must allocate resources and decide who should get how much resources.

Page 19: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 19

Resource Allocation (cont’d)Resource Allocation (cont’d)• Current Internet does not support active

resource allocation.• Network treats all packets equally and

then serves FCFS.• Hence current Internet offers best effort

service.• Adequate for some apps (e.g. file

transfer), but not suitable for realtime apps.

Page 20: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 20

Integrated ServicesIntegrated Services• Based on per flow resource reservation.• Apps must make a reservation before

transmitting traffic.• App characterize its traffic and resource

requirement.• Network uses routing protocol to find a

path.• A reservation protocol is used to install the

reservation state along that path.

Page 21: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 21

Integrated Services (cont’d)Integrated Services (cont’d)• At each hop, admission control checks whether

sufficient resources are available to accept the new reservation.

• Resource reservation enforced by packet classification and scheduling mechanisms.

• Two new service models were introduced : guaranteed service and controlled load.

• Guaranteed service provides deterministic worst case delay

• Controlled load provides less firm guarantee : it’s close to a lightly loaded best-effort network.

Page 22: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 22

Integrated Services (cont’d)Integrated Services (cont’d)• Overhead of setting up reservation is high.• Scalability problem : Backbone will have a

large number of flows and keeping flow information is not feasible.

Page 23: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 23

Differentiated ServiceDifferentiated Service• User traffic is divided into a small number

of forwarding classes.• For each forwarding class, the amount of

traffic that users can inject is limited at the edge of the network.

• Edge of a differentiated Services network responsible for mapping packets to their appropriate forwarding classes.

• Packet classification is usually based on service level agreement.

Page 24: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 24

Differentiated Service Differentiated Service (Cont’d)(Cont’d)

• Nodes at the edge of the network perform traffic policing to ensure conformance.

• Non-conforming traffic may be dropped, delayed or marked with a different forwarding class.

• Forwarding class is directly encoded into the packet header.

• Interior nodes use this info. to differentiate the treatment of packets.

• Does not require resource reservation.

Page 25: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 25

Differentiated Service Differentiated Service (Cont’d)(Cont’d)

• Forwarding classes apply to traffic aggregates rather than individual flows.

• No scalability problem.

Page 26: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 26

Multiprotocol Label Multiprotocol Label Switching (MPLS)Switching (MPLS)

• A short fixed length label is encoded into the packet header and is used for packet forwarding.

• When a label switch router (LSR) receives a MPLS packet, it uses incoming label to find the next hop and the corresponding outgoing label.

• In MPLS, the path a packet traverses is called label switched path (LSP).

• Network protocol independent

Page 27: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 27

Multiprotocol Label Multiprotocol Label Switching (MPLS)Switching (MPLS)

• Works alongside existing routing technologies and provide a mechanism for explicit control over routing paths.

• Used for traffic engineering, guaranteeing QoS and VPN.

Page 28: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 28

Traffic EngineeringTraffic Engineering• The basic problem : Given a network and traffic

demands, how can traffic flows in the network be organized so that an optimization objective can be achieved.

• Typically optimal operating point is reached when traffic is evenly distributed : leads to min queuing delay and packet loss.

• This cannot be achieved through destination based IP routing

• Advanced routing techniques constraint-based routing are used.

Page 29: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 29

Traffic Engineering (cont’d)Traffic Engineering (cont’d)• Routes are computed with multiple

constraints and aims for efficient resource utilization.

• Appropriate path selection with uniform traffic distribution and the congestion avoidance techniques improve the network performance

• MPLS can be used to achieve this goal.

Page 30: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 30

QoS based RoutingQoS based Routing• Basic routing protocols do not consider

any QoS parameters e.g. delay, packet loss.

• They are dynamic in terms of topology changes due to link or node failure

• But static in terms of performance of the network w.r.t. delay, packet loss etc

• QoS based routing provides a mechanism to get QoS support from the routing protocol.

Page 31: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 31

QoS based Routing (cont’d)QoS based Routing (cont’d)• Study few mechanisms proposed in

literature– Shortest Path First with Emergency Exits– OSPF Extension with QoS routing (RFC 2676)– OSPF based Load Sensitive Routing

Page 32: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 32

QoS in Wireless NetworkQoS in Wireless Network• Mostly study IEEE 802.11 based network• 802.11 MAC is a contention based

(CSMA/CA) MAC• Hence there is no guarantee/assurance for

an application to have bounded delay/packet loss

• Look at various proposals in literature that addresses the QoS issues

Page 33: QoS in Networkscs680/lecture/pdf/cs680_intro.pdf•Introduction •Integrated ... •QoS based routing •QoS in Wireless Network ... •QoS in circuit-switched network –Quite Easy

02/18/08 33

QoS in Wireless Network QoS in Wireless Network (cont’d)(cont’d)

• DCF• Some enhancement to DCF for QoS• EDCA• Distributed Fair Scheduling in MAC• Wireless Token Ring Protocol• Blackburst