EP2200 Queueing theory and teletraffic systems

Similar documents
EP2200 Queueing theory and teletraffic systems

TELCOM 2130 Queueing Theory. David Tipper Associate Professor Graduate Telecommunications and Networking Program. University of Pittsburgh

Teletraffic theory I: Queuing theory

Introduction to the course

Teletraffic theory (for beginners)

EP2200 Queueing theory and teletraffic systems

Data Network Protocol Analysis & Simulation

Network Performance Analysis

Introduction: Two motivating examples for the analytical approach

Queuing Systems. 1 Lecturer: Hawraa Sh. Modeling & Simulation- Lecture -4-21/10/2012

Read Chapter 4 of Kurose-Ross

Traffic Modeling of Communication Networks

ETSN01 Advanced Telecommunication Course Outline 2016

ETSN01 Exam Solutions

Introduction ETSN01 Advanced Telecommunications. Emma Fitzgerald

Calculating Call Blocking and Utilization for Communication Satellites that Use Dynamic Resource Allocation

Lecture 5: Performance Analysis I

Motivation: Wireless Packet-Based Transport

ON NEW STRATEGY FOR PRIORITISING THE SELECTED FLOW IN QUEUING SYSTEM

3. Examples. Contents. Classical model for telephone traffic (1) Classical model for telephone traffic (2)

Network Traffic Characterisation

DDSS: Dynamic Dedicated Servers Scheduling for Multi Priority Level Classes in Cloud Computing

Cover sheet for Assignment 3

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

2. Traffic. Contents. Offered vs. carried traffic. Characterisation of carried traffic

2. Modelling of telecommunication systems (part 1)

Queuing Networks Modeling Virtual Laboratory

2. Traffic lect02.ppt S Introduction to Teletraffic Theory Spring

Perspectives on Network Calculus No Free Lunch but Still Good Value

A PRACTICAL APPROACH FOR MULTIMEDIA TRAFFIC MODELING

M/G/c/K PERFORMANCE MODELS

Connection-Level Scheduling in Wireless Networks Using Only MAC-Layer Information

Router s Queue Management

Modelling TCP with Markov chains

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 11

Introduction to Queuing Systems

Performance Analysis of WLANs Under Sporadic Traffic

Course Curriculum for Master Degree in Network Engineering and Security

Internet Architecture and Protocol

TCP performance analysis through. processor sharing modeling

EECS 3214 Midterm Test Winter 2017 March 2, 2017 Instructor: S. Datta. 3. You have 120 minutes to complete the exam. Use your time judiciously.

Tutorial 9 : TCP and congestion control part I

IP Network Emulation

ETSN01 Exam. August 22nd am 1pm. Clearly label each page you hand in with your name and the page number in the bottom right hand corner.

QOS IN PACKET NETWORKS

Lecture 21. Reminders: Homework 6 due today, Programming Project 4 due on Thursday Questions? Current event: BGP router glitch on Nov.

The Network Layer and Routers

Week 7: Traffic Models and QoS

QSN - Quality of Service in Networks

Announcements. TAs office hours: Mohamed Grissa: Mohamed Alkalbani:

Maximum Number of Users Which Can Be Served by TETRA Systems

Outline. Application examples

Quality of Service in Telecommunication Networks

Comparative Study of blocking mechanisms for Packet Switched Omega Networks

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

BROADBAND AND HIGH SPEED NETWORKS

Capacity planning and.

Some economical principles

Queueing Networks. Lund University /

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

EECS 454: Modeling and Analysis of Communication Networks

programming exercises.

Resource Allocation and Queuing Theory

MASTER OF ENGINEERING PROGRAM IN INFORMATION

Network traffic engineering

Computer Networks. ENGG st Semester, 2010 Hayden Kwok-Hay So

CENTRAL TEXAS COLLEGE ITCC 2412 CCNA 3: Scaling Networks. Semester Hours Credit: 4

ANALYSIS OF THE CORRELATION BETWEEN PACKET LOSS AND NETWORK DELAY AND THEIR IMPACT IN THE PERFORMANCE OF SURGICAL TRAINING APPLICATIONS

Modelling data networks research summary and modelling tools

BANK ATM QUEUEING MODEL: A CASE STUDY Ashish Upadhayay* 1

Capacity planning and.

Introduction to Real-Time Communications. Real-Time and Embedded Systems (M) Lecture 15

Network Architecture I

Stochastic Processing Networks: What, Why and How? Ruth J. Williams University of California, San Diego

INSE 7110 Winter 2009 Value Added Services Engineering in Next Generation Networks Week #2. Roch H. Glitho- Ericsson/Concordia University

Markov Chains and Multiaccess Protocols: An. Introduction

CENTRAL TEXAS COLLEGE ITCC 1414 CCNA 1: Introduction to Networks. Semester Hours Credit: 4

Part A: Course Outline

>>> SOLUTIONS <<< Answer the following questions regarding the basics principles and concepts of networks.

Erlang s B and C-Formulae: Another Method to Estimate the Number of Routes

School of Computing and Information Sciences. Course Title: Data Structures Date: 3/30/2010 Course Number: COP 3530 Number of Credits: 3

Advanced Internet Technologies

Master Course Computer Networks IN2097

10. Network dimensioning

Southern Polytechnic State University Spring Semester 2009

Markov Model Based Congestion Control for TCP

Error Control System for Parallel Multichannel Using Selective Repeat ARQ

Program Changes Communications Engineering

CSC 4900 Computer Networks: Introduction

Chapter 4. Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, sl April 2009.

CENTRAL TEXAS COLLEGE ITCC 1440 CCNA 2: Routing and Switching Essentials. Semester Hours Credit: 4

COMPUTER AND DATA NETWORKS

Computational Geometry. Definition, Application Areas, and Course Overview

A Novel Scheduling and Queue Management Scheme for Multi-band Mobile Routers

Textbook(s) and other required material: Raghu Ramakrishnan & Johannes Gehrke, Database Management Systems, Third edition, McGraw Hill, 2003.

STATE UNIVERSITY OF NEW YORK AT STONY BROOK. CEASTECHNICAL REPe. Multiclass Information Based Deflection Strategies for the Manhattan Street Network

Performance Evaluation. of Input and Virtual Output Queuing on. Self-Similar Traffic

3D Graphics Programming Mira Costa High School - Class Syllabus,

Kadi Sarva Vishwavidyalaya Gandhinagar

iscrete-event System Simulation of Queues with Spreadsheets Combined with Simple VBA Code: A Teaching Case

Transcription:

EP2200 Queueing theory and teletraffic systems Viktoria Fodor Laboratory of Communication Networks School of Electrical Engineering Lecture 1 If you want to model networks Or a complex data flow A queue's the key to help you see All the things you need to know. (Leonard Kleinrock, Ode to a Queue from IETF RFC 1121) 1

What is queuing theory? What are teletraffic systems? Queuing theory Mathematical tool to describe resource sharing systems, e.g., telecommunication networks, computer systems Requests arrive dynamically Request may form a queue to wait for service Applied probability theory, stochastic processes Teletraffic systems Systems with telecommunication traffic (data networks, telephone networks) Are designed and evaluated using queuing theory Why do we need a whole theory for that? 2

What is queuing theory? What are teletraffic systems? Streaming: How long should the system pre-fetch to ensure continuous streaming? Software Defined Networking: Will increased time of routing decisions degrade network performance? Cloud computing: What limits the performance? The server? The network? My device? Smart grid: Can the network delay ensure efficient control? Would secure routing paths compromise performance? Vehicular networks: How does security and privacy mechanisms affect the delay of the messages? 3

Waiting time Why do we need teletraffic theory? Waiting delays at output buffers in network routers depending on the traffic to be served? 17.5 15 Waiting time at a router How will the delay change if the number of packets arriving within a second increases? 12.5 10 7.5 5 2.5 Input ports Output ports 0.6 0.7 0.8 0.9 Switching engine Routing processor Load = Load Transmitted data per time unit Link capacity Load=1 could be served if packets would not arrive randomly 4

Throughput Why do we need teletraffic theory? Throughput (useful transmissions) in a wireless network with random access If transmissions may collide, how would the throughput change if the number of packets to be sent doubles? What is the effect of packet collisions? 0.175 0.15 0.125 0.1 0.075 Throughput in a random access network vs. load Th_max 0.175 0.05 0.025 0.2 0.4 0.6 0.8 Load 5

Blocking Throughput Why do we need teletraffic theory? Call blocking probability in a telephone network vs. load Erlang (Danish, 1878-1929) Link capacity TCP throughput vs. packet loss 0.8 0.7 0.6 0.5 RTT=t 0.4 0.3 RTT=10t 0.2 0.1 Load 0.2 0.4 0.6 0.8 1 Experienced packet loss Teletraffic systems are non-linear, and mathematical tools are needed to predict their performance and to assist system or protocol design. 6

Course objectives Basic theory understand the theoretical background of queuing systems, apply the theory for systems not considered in class Applications find appropriate queuing models of simple problems, derive performance metrics Basis for modeling more complex problems advanced courses on performance evaluation master thesis project industry (telecommunication engineer) Prerequisites mathematics, statistics, probability theory, stochastic systems communication networks, computer systems 7

Learning Outcomes Discuss and apply the theory of continuous time Markov-processes to describe complex stochastic systems. Discuss, derive and apply the theory of Markovian queuing systems, and some of the simpler non-markovian queuing systems. Discuss and apply the theory of non-markovial queuing systems. Discuss and apply main theoretic results for the modeling of queuing networks. Analyze communication, networking or computer engineering related problems with the tools of Markov-processes and queuing models. 8

Course organization Course responsible, lectures and recitations Viktoria Fodor <vfodor@kth.se> Course web page KTH Social EP2200 (https://www.kth.se/social/course/ep2200/) Course reading material, home assignments, project, messages, updated schedule and course information Your responsibility to stay up to date! Useful resources: applets, calculators Useful links: on-line books Links to probability theory basics 9

Course material All course material on line Lecture notes by Jorma Virtamo, HUT, and Philippe Nain, INRIA Used with their permission Excerpts from L. Kleinrock, Queueing Systems Problem set with outlines of solutions Old exam problems with full solutions Erlang tables Formula sheet, Laplace transforms Printed course material: STEX (from Friday) No text book needed! If you would like a book, then you can get one on your own Ng Chee Hock, Queueing Modeling Fundamentals, Wiley, 1998. (simple) L. Kleinrock, Queueing Systems, Volume 1: Theory, Wiley, 1975 (well known, engineers) D. Gross, C. M. Harris, Fundamentals of Queueing Theory, Wiley, 1998 (difficult) Beware, the notations might differ 10

Course organization 12 lectures cover the theoretical part 12 recitations applications of theory Two home assignments and a project (1.5 ECTS, compulsory, pass/fail) Deadlines, information on the web Home assignments (beginning and middle of the course) numerical exercises and proofs individual submission, only handwritten version you need 75% satisfactory solution to pass this moment Submit in class or at the STEX office Small project (end of the course) computer exercise (matlab, C, java, simulation platform ) +5 points for outstanding projects (upper 10%) 11

Exam There is a written exam to pass the course, 5 hours Consists of five problems of 10 points each Passing grade usually 20 3 points Allowed aid is the Beta mathematical handbook (or similar) and simple calculator. Probability theory and queuing theory books are not allowed! The sheet of queuing theory formulas will be provided, also Erlang tables and Laplace transforms, if needed (same as in the course binder and on the web) Possibility to complementary oral exam if you miss E by 2-3 points (Fx) Complement to E Registration is mandatory for all the exams At least two weeks prior to the exam Students from previous years: contact STEX (stex@ee.kth.se) if you are not sure what to do Questions: e-mail or via KTH Social, including asking for meeting 12

PhD students in brief Lectures and recitations as for all students Submission of home assignments as all students Exam as all students (P/F, at least grade B level to pass) Additional weekly seminars on advanced material Different project Please say after class for a brief discussion 13

Step 0 Queuing theory is applied probability theory Students need to be able to work with basic probability theory tools Short summary in Virtamo notes, chapters 1-4 Suggested video lectures First recitation is dedicated to probability theory overview Early home assignment with only probability theory problems 14

Lecture 1 Queuing systems - introduction Teletraffic examples and the performance triangle The queuing model Block diagram System parameters Performance measures Stochastic processes recall 15

Example Packet transmission at a large IP router Input ports Output ports Switching engine Routing processor We simplify modeling typically the switching engine is very fast the transmission at the output buffers limits the packet forwarding performance we do not model the switching engine, only the output buffers 16

Example Packet transmission at the output link of a large IP router packets arrive randomly and wait for free output link Performance: Waiting time in the buffer Number of packets waiting Probability of buffer overflow and packet loss Depends on: How many packets arrive in a time period (packet/sec) How long is the transmission time (packet out of the buffer) Link capacity (bit/s) Packet size (bits) 17

Example Packet transmission at the output link of a large IP router - packets wait for free output link Performance: Number of packets waiting Waiting time in the buffer Probability of buffer owerflow Depends on: How many packets arrive Packet size Link capacity Service demand Server capacity 18

Example Voice calls in a GSM cell calls arrive randomly and occupy a channel. Call blocked if all channels busy. Performance Probability of blocking a call Utilization of the channels Depends on: How many calls arrive Length of a conversation Cell capacity (number of voice channels) Service demand Server capacity 19

Performance of queuing systems The triangular relationship in queuing Service demand stochastic Server capacity Performance Works in 3 directions stochastic Given service demand and server capacity achievable performance Given server capacity and required performance acceptable demand Given demand and required performance required server capacity 20

Lecture 1 Queuing systems - introduction Teletraffic examples and the performance triangle The queuing model Block diagram System parameters Performance measures Stochastic processes recall 21

Block diagram of a queuing system Queuing system: abstract model of a resource sharing system buffer and server(s) Customers: arrive, wait, get served and leave the queuing system customers can get blocked, service can be interrupted Arrival Return to system Blocking Interrupted service Waiting Completed service Under service Exit system Buffer Server 22

Description of queuing systems System parameters (related to server capacity) Number of servers (customers served in parallel) Buffer capacity Infinite: enough waiting room for all customers Finite: customers might be blocked Order of service (FIFO, random, priority) Service demand (stochastic) Arrival process: How do the customers arrive to the system given by a stochastic process Service process: How long service time does a customer demand given by a probability distribution Customer: IP packet Phone call 23

Examples in details Packet transmission at the output link of a large IP router Number of servers: 1 Buffer capacity: max. number of IP packets Order of service: FIFO Arrivals: IP packet multiplexed at the output buffer Services: transmission of one IP packet (service time = transmission time = packet length / link transmission rate) 24

Examples in details Voice calls in a GSM cell channels for parallel calls, each call occupies a channel if all channels are busy the call is blocked Number of servers: number of parallel channels Buffer capacity: no buffer Order of service: does not apply Arrivals: call attempts in the GSM cell Service: the phone call (service time = length of the phone call) 25

Group work 1. Service at a bank, with queue numbers and several clerks 2. Cashiers at the supermarket, customers select a queue randomly and wait there in a queue 3. Several terminals transmitting in a WLAN Draw the block diagram of the queuing systems Describe the model: arrivals, service, number of servers, buffer capacity, order of service 26

Performance measures N N q N s Number of customers in the system (N) Number of customers in the queue (N q ) Number of customers in the server (N s ) System time (T) W x Waiting time of a customer (W) Service time of a customer (x) T Probability of blocking (blocked customers / all arrivals) Utilization of a server (time server occupied / all considered time) Transient measures how will the system state change in the near future? Stationary measures how does the system behave on the long run? average measures often considered in this course 28

Lecture 1 Queuing systems - introduction Teletraffic examples and the performance triangle The queuing model Block diagram System parameters Performance measures Stochastic processes recall 29

Stochastic process Stochastic process A system that evolves changes its state - in time in a random way Family of random variables Variables indexed by a time parameter Continuous time: X(t), a random variable for each value of t Discrete time: X(n), a random variable for each step n=0,1, State space: the set of possible values of r.v. X(t) (or X(n)) Continuous or discrete state X(t) X(n) Number of packets waiting: Discrete space Continuous time time packet Waiting time of consecutive packets: Discrete time Continuous space EP2200 Queuing theory and teletraffic systems 30

31 EP2200 Queuing theory and teletraffic systems We are interested in quantities, like: time dependent (transient) state probabilities (statistics over many realizations, an ensemble of realizations, ensemble average ): n th order statistics joint distribution over n samples limiting (or stationary) state probabilities (if exist) : Stochastic process - statistics } ) ( { lim ), ) ( ( lim x t X P F x t X P f t x t x ) ) ( ( ) ( ), ) ( ( ) ( x t X P t F x t X P t f x x ) ) (,, ) ( ( ),, ( 1 1 1,, 1 n n n x x x t X x t X P t t F n ensemble average t x

Stochastic process - terminology The stochastic process is: stationary, if all n th order statistics are unchanged by a shift in time: F x ( t ) F x ( t), t F x x ( t,, tn ) Fx x ( t,, tn), n, t, 1,, n 1 1,, n 1 1, t n ergodic, if the ensemble average is equal to the time average of a single realization consequence: if a process ergodic, then the statistics of the process can be determined from a single (infinitely long) realization and vice versa time average t ensemble average EP2200 Queuing theory and teletraffic systems 32

Stochastic process Example on stationary versus ergodic Consider a source, that generates the following sequences with the same probability (state space A,B,E): ABABABAB BABABABA EEEEEEEE Is this source stationary? Is this source ergodic? EP2200 Queuing theory and teletraffic systems 33

Summary Today: Queuing systems - definition and parameters Stochastic processes Next lecture: Poisson processes and Markov-chains, the theoretical background to analyze queuing systems Recitation: Probability theory and transforms (Have a quick look at Virtamo 1-4 before class) Definition of probability of events Conditional probability, law of total probability, Bayes formula, independent events Random variables, distribution functions Bernoulli, Binomial, Geometric, Poisson Uniform, Exponential, Erlang-k Z and Laplace transforms 34