Kommunikationssysteme [KS]

Similar documents
Queuing. Congestion Control and Resource Allocation. Resource Allocation Evaluation Criteria. Resource allocation Drop disciplines Queuing disciplines

Resource allocation in networks. Resource Allocation in Networks. Resource allocation

Real-Time Protocol (RTP)

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

Kommunikationssysteme [KS]

Quality of Service (QoS)

Improving QOS in IP Networks. Principles for QOS Guarantees

Network Support for Multimedia

Unit 2 Packet Switching Networks - II

Advanced Computer Networks

of-service Support on the Internet

Advanced Lab in Computer Communications Meeting 6 QoS. Instructor: Tom Mahler

Network Layer Enhancements

Overview Computer Networking What is QoS? Queuing discipline and scheduling. Traffic Enforcement. Integrated services

Mohammad Hossein Manshaei 1393

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

Quality of Service (QoS)

Lecture Outline. Bag of Tricks

Week 7: Traffic Models and QoS

Internet Services & Protocols. Quality of Service Architecture

Multicast and Quality of Service. Internet Technologies and Applications

Quality of Service in the Internet

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Computer Networking. Queue Management and Quality of Service (QOS)

TELE Switching Systems and Architecture. Assignment Week 10 Lecture Summary - Traffic Management (including scheduling)

Quality of Service in the Internet

A Preferred Service Architecture for Payload Data Flows. Ray Gilstrap, Thom Stone, Ken Freeman

Lecture 14: Performance Architecture

Topic 4b: QoS Principles. Chapter 9 Multimedia Networking. Computer Networking: A Top Down Approach

Real-Time Control Protocol (RTCP)

Router s Queue Management

Congestion Control and Resource Allocation

Master Course Computer Networks IN2097

Common network/protocol functions

Multiplexing. Common network/protocol functions. Multiplexing: Sharing resource(s) among users of the resource.

Part1: Lecture 4 QoS

Master Course Computer Networks IN2097

IP QOS Theory and Practice. eng. Nikolay Milovanov CCIE SP# 20094

Tutorial 9 : TCP and congestion control part I

Integrated and Differentiated Services. Christos Papadopoulos. CSU CS557, Fall 2017

Overview. Lecture 22 Queue Management and Quality of Service (QoS) Queuing Disciplines. Typical Internet Queuing. FIFO + Drop tail Problems

Basics (cont.) Characteristics of data communication technologies OSI-Model

Scheduling. Scheduling algorithms. Scheduling. Output buffered architecture. QoS scheduling algorithms. QoS-capable router

Quality of Service in the Internet. QoS Parameters. Keeping the QoS. Leaky Bucket Algorithm

CSE 461 Quality of Service. David Wetherall

CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS

Last time! Overview! 14/04/15. Part1: Lecture 4! QoS! Router architectures! How to improve TCP? SYN attacks SCTP. SIP and H.

Telematics 2. Chapter 3 Quality of Service in the Internet. (Acknowledgement: These slides have been compiled from Kurose & Ross, and other sources)

Episode 5. Scheduling and Traffic Management

H3C S9500 QoS Technology White Paper

Multimedia networking: outline

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

Mul$media Networking. #10 QoS Semester Ganjil 2012 PTIIK Universitas Brawijaya

Lecture 4 Wide Area Networks - Congestion in Data Networks

Lecture 22: Buffering & Scheduling. CSE 123: Computer Networks Alex C. Snoeren

Introduction to IP QoS

048866: Packet Switch Architectures

Congestion in Data Networks. Congestion in Data Networks

Quality of Service (QoS)

different problems from other networks ITU-T specified restricted initial set Limited number of overhead bits ATM forum Traffic Management

Fairness, Queue Management, and QoS

What Is Congestion? Computer Networks. Ideal Network Utilization. Interaction of Queues

Flow Control. Flow control problem. Other considerations. Where?

Chapter 24 Congestion Control and Quality of Service Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

EP2210 Scheduling. Lecture material:

Quality of Service Monitoring and Delivery Part 01. ICT Technical Update Module

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

ETSF10 Internet Protocols Transport Layer Protocols

Fair Queueing. Presented by Brighten Godfrey. Slides thanks to Ion Stoica (UC Berkeley) with slight adaptation by Brighten Godfrey

Configuring QoS CHAPTER

Presentation Outline. Evolution of QoS Architectures. Quality of Service Monitoring and Delivery Part 01. ICT Technical Update Module

ATM Quality of Service (QoS)

Congestion Control in Communication Networks

Quality of Service (QoS) Computer network and QoS ATM. QoS parameters. QoS ATM QoS implementations Integrated Services Differentiated Services

Chapter 24 Congestion Control and Quality of Service 24.1

Lecture 24: Scheduling and QoS

QUALITY of SERVICE. Introduction

RSVP 1. Resource Control and Reservation

Resource Control and Reservation

Performance Evaluation of Scheduling Mechanisms for Broadband Networks

Lesson 14: QoS in IP Networks: IntServ and DiffServ

Multimedia Applications over Packet Networks

The War Between Mice and Elephants

DiffServ Architecture: Impact of scheduling on QoS

Multimedia networking: outline

Quality of Service (QoS)

QoS for Real Time Applications over Next Generation Data Networks

Sharing Bandwidth Fairly During Congestion

Chapter 6: Congestion Control and Resource Allocation

Multimedia Networking and Quality of Service

Random Early Detection (RED) gateways. Sally Floyd CS 268: Computer Networks

QoS MIB Implementation

The Network Layer and Routers

QoS provisioning. Lectured by Alexander Pyattaev. Department of Communications Engineering Tampere University of Technology

Principles. IP QoS DiffServ. Agenda. Principles. L74 - IP QoS Differentiated Services Model. L74 - IP QoS Differentiated Services Model

Defining QoS for Multiple Policy Levels

ADVANCED COMPUTER NETWORKS

15-744: Computer Networking. Overview. Queuing Disciplines. TCP & Routers. L-6 TCP & Routers

QoS Configuration. Overview. Introduction to QoS. QoS Policy. Class. Traffic behavior

Transcription:

Kommunikationssysteme [KS] Dr.-Ing. Falko Dressler Computer Networks and Communication Systems Department of Computer Sciences University of Erlangen-Nürnberg http://www7.informatik.uni-erlangen.de/~dressler/ dressler@informatik.uni-erlangen.de [KS], WS 2005/2006 2-2.1

Course Overview Network Infrastructure Basics of communication networks, packet- / circuit switched networks, telephone networks, ATM Quality of Service and Multimedia Policing, scheduling, AQM, audio/video streaming, conferencing and VoIP, IntServ, DiffServ, ATM, MPLS Simulation Tools, accomplishment, measures Protocol Engineering FSM, SDL, MSC, UML Wireless / Mobile Communications GSM, UMTS, mobility issues, WLAN, WPAN, WSN Network Security Threats and security goals, basic mechanisms [KS], WS 2005/2006 2-2.2

Scheduling Scheduling the manner in which queued packets are selected for transmission e.g., at output ports of routers FIFO (first in first out) scheduling: a single queue is maintained, packets are sent in order of arrival to queue as long as the queue is not empty, the oldest remaining packet is taken next Drawbacks of FIFO: no special treatment of flows possible flows of larger packets get better service greedy flows can crowd out more cautious ones [KS], WS 2005/2006 2-2.3

Scheduling Priority scheduling: packets are classified into priority classes class may depend on marking or other header info, e.g. IP source/dest, port numbers, ToS, etc. transmit highest priority queued packet, FIFO in same class non-preemptive [KS], WS 2005/2006 2-2.4

Scheduling Round robin scheduling (Fair Queuing): multiple classes cyclically scan class queues, serving one packet from each class, skip empty queues work-conserving (link is never idle when packet to transmit) no advantage for greedy flows fair, but flows with short packets are penalized [KS], WS 2005/2006 2-2.5

Scheduling [KS], WS 2005/2006 2-2.6

Scheduling Processor Sharing (PS): bit-by-bit round robin idealized, not practical to implement each class queue receives the same share of available capacity: if there are N queues with a packet to send, each queue receives (1/N) th of the available capacity long packets no longer receive an advantage Exact description R(t) number of rounds up to time t (normalized to output data rate) in one round each queue can transmit as many bits as the link can transmit in one real time unit example: link with 1 Gbps, time unit 1 s, one round is time of single queue to transmit 1 Gb we can think of R(t) as virtual time, recording the rate of service seen by the packet at the head of a queue an equivalent definition is R (t) = 1/max[1, N(t)] [KS], WS 2005/2006 2-2.7

Scheduling Definition of all required quantities R(t) number of rounds up to time t N(t) nonempty queues at time t P a i number of rounds to transmit packet i in queue a τ a i arrival time for packet i in queue a S a i value of R(t) at start of transmission of packet i in queue a F a i value of R(t) at end of transmission of packet i in queue a Recurrence relations the recurrence relations show how the system evolves in virtual time: F a i = Sa i + Pa i S a i = max[fa i-1, R(τa i )] not possible to derive real finishing time on its arrival because it depends on future arrivals [KS], WS 2005/2006 2-2.8

Scheduling Example PS: thin black solid lines [KS], WS 2005/2006 2-2.9

Scheduling Bit-Round Fair Queuing (BRFQ): entire packets instead of bits emulates PS simple rule: whenever a packet finishes transmission, the next packet sent is the one with smallest value of F a i (as seen at the start of transmission) throughput and average delay experienced under BRFQ converges to that under PS as time increases [KS], WS 2005/2006 2-2.10

Scheduling Example BRFQ: grey bars [KS], WS 2005/2006 2-2.11

Scheduling Comparison of FIFO, FQ and BRFQ [KS], WS 2005/2006 2-2.12

Scheduling Generalized Processor Sharing (GPS): PS/BRFQ fairly allocate available capacity among all active flows not able to provide different amounts of the capacity to different flows for QoS support such differential allocation capability is needed with GPS, each flow a is assigned a weight w a that determines how many data are transmitted from that queue during each round if all queues are filled, in each round Σw a /R bits are transmitted in each round again idealized, not practical to implement Example link with 1 Gbps, time unit 1 s w a = 0.3 one round is time of queue a to transmit 0.3 Gb if all queues are filled, one round is time to transmit Σw a Gb [KS], WS 2005/2006 2-2.13

Scheduling Calculation of GPS schedules Work a i (t) = work already performed at flow a for packet i at time t Rest a i (t) = remaining work at flow a for packet i at time t = Pa i (t)- Worka i (t) Speed a (t) = speed at flow a at time t = wa / for periods without discrete change we have: Rest a i (t+δ) = Resta i (t) - Speeda (t) Δ R(t) = S a i + Worka i (t)/w a w α α nonempty Properties the virtual packet length is hence multiplied by 1/w a the recurrence relationships of PS generalize to: F a i = Sa i + Pa i /w a S a i = max[fa i-1, R(τa i )] as a consequence, for a non-empty flow i a minimum fraction r i = w i / Σw a of the link capacity is guaranteed [KS], WS 2005/2006 2-2.14

Scheduling Weighted Fair Queuing (WFQ): entire packets instead of bits same rule as in BRFQ: whenever a packet finishes transmission, the next packet sent is the one with smallest value of F a i but with recurrence relationships from GPS minimum rate similar as in GPS (adapted to packets) [KS], WS 2005/2006 2-2.15

Scheduling WFQ vs. FIFO w1 = 0.5 w2 =... = w11 = 0.05 [KS], WS 2005/2006 2-2.16

Active Queue Management Traditionally: passive queue management in routers two states: no packet drop 100% packet drop once the buffer reaches a certain value variants tail-drop drop-from-front push-out [KS], WS 2005/2006 2-2.17

Active Queue Management Problems with passive queue management a trade-off between the buffer size and QoS: larger buffers result in higher throughput, but longer delay global synchronization traffic burst fills queues so packets get lost many TCP connections enter slow start traffic drops so network becomes under utilized connections leave slow start at same time causing burst lock-out a single connection monopolises the buffer space, gives rise to fairness problems full queue queue is full for a long period of time, long queuing delay [KS], WS 2005/2006 2-2.18

Active Queue Management Active Queue Management provide preventive measures to manage a buffer to eliminate problems associated with PQM characteristics: preventive random packet drop is performed before the buffer is full the probability of preventive packet drop increases with the increasing level of congestion goals: reduce dropped packets support low-delay interactive services avoid lock-out and global synchronization [KS], WS 2005/2006 2-2.19

Active Queue Management Random early detect (RED) calculate the average queue size (exponentially weighted moving average) if average is below lower threshold: queue if average between lower and upper threshold: drop with probability if average beyond upper threshold: drop [KS], WS 2005/2006 2-2.20

Active Queue Management Calculation of drop probability fraction of the region less than average: F = avg TH TH TH max min min a first probability P b = F P max variable count gives packets since last discard drop probability: P a Pb = 1 count P b = 1/P b 1 count [KS], WS 2005/2006 2-2.21

Random Early Detection Algorithm RED Algorithm calculate the average queue size avg if avg < TH min queue packet else if TH min avg < TH max calculate probability P a with probability P a discard packet else with probability 1-P a queue packet else if avg TH max discard packet [KS], WS 2005/2006 2-2.22

Active Queue Management Performance comparison (simulation) [KS], WS 2005/2006 2-2.23

Active Queue Management RED parameters parameter choice affects performance significantly some recommendations weight for averaging w q = 0.002 P max = 0.02 Min TH = 5 packets Max TH = at least 3 Min TH selection of optimal values is an open issue [KS], WS 2005/2006 2-2.24

Policing Policing regulation of the rate at which packets are injected into the network at the source/entry of the network/internal mostly: average rate, peak rate, maximum burst size Example: without regulation a source injects bursts of size B = 1 MB link rate is R = 100 Mbps burst length is = B R 20 2 8 b = s 83.9 ms 10 b L 8 injection rate 100 Mbps arriving packets? network 83.9 ms t [KS], WS 2005/2006 2-2.25

Policing Leaky bucket actually a queue can regulate average rate can smooth out bursts Example bursts of size B = 1 MB every second drain out rate r = 10 Mbps arriving packets bucket capacity b drain out rate r departing packets burst length is = B R = 2 20 L 7 10 8 b b 839 ms injection rate 10 Mbps 1 s 2 s t [KS], WS 2005/2006 2-2.26

Policing token fill rate r Token bucket bucket holding up to b tokens arriving packets packet wait area departing? packets regulator: remove tokens and forward packet bucket is a counter tokens can represent packets or bytes (assumed here) a packet may be forwarded if there are sufficient tokens to match size if so, the packet is forwarded and the bucket drained out of the corresponding number of tokens if not: drop, queue, mark, relegate to best-effort, data sent in time T cannot exceed rt+b [KS], WS 2005/2006 2-2.27

Policing Setting token bucket parameters r regulates the long term rate, either the average rate or the peak rate but not both b regulates the amount by which the data rate can exceed the average rate for short periods of time, but how exactly? Maximum burst size R line rate (maximum forwarding rate of regulator) B maximum burst size, L maximum burst length we know: B = L R and also: B = b + L r (a full bucket + additional tokens generated during the burst) hence: L R = b + L r and L = b R r = b /R 1 r /R also: b B = 1 r /R [KS], WS 2005/2006 2-2.28

Policing Example bursts of size B = 1 MB line rate R = 100 Mbps, token generation rate r = 10 Mbps bucket capacity b = 250 KB injection rate 100 Mbps 250 KB B = = 250 KB / 0.9 277.8 KB 10 Mbps 1 100 Mbps 277.8 2 8 b L = B /R s = 22.7 ms 8 10 b 10 Example 22.7 ms 613 ms b = 500 KB, r = 8 Mbps, R = 10 Mbps t 500 KB B = = 500 KB / 0.2 = 8 Mbps 1 10 Mbps 2,500 KB [KS], WS 2005/2006 2-2.29

Policing Policing average and peak rate two token buckets in tandem: first one with a small bucket for the peak rate, second for average rate with a bucket appropriate for the bursts Example peak rate 10 Mbps, average rate 2 Mbps, max. burst size B = 10 MB r 1 = 10 Mbps, b 1 = 1 r 2 = 2 Mbps r2 2 Mbps b2 = B 1 = 10 MB 1 = 8 MB R 10 Mbps (by taking the peak rate r 1 as the line speed R) [KS], WS 2005/2006 2-2.30

Policing Token bucket variants shaper: queue for arriving packets, nonconfirming and other packets are delayed arriving packets t dropper: no queue for arriving packets, non-confirming packets are dropped marker: no queue for arriving packets, non-confirming packets are marked and can be dropped later token bucket as a leaky bucket: b = 1, queue for arriving packets departing packets t t [KS], WS 2005/2006 2-2.31

Policing Token bucket + GPS: bounded delay flows limited by token buckets r i, b i GPS scheduling with weights w i = r i delay bound: bi Di R r / similar bound exists for token bucket + WFQ i r j arriving traffic token rate, r 1 bucket size, b 1 GPS per-flow weight r i [KS], WS 2005/2006 2-2.32