Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.

Slides:



Advertisements
Similar presentations
Computer Networks Performance Metrics Advanced Computer Networks Fall 2013.
Advertisements

Computer Networks Performance Metrics Computer Networks Term B10.
Spring 2000CS 4611 Introduction Outline Statistical Multiplexing Inter-Process Communication Network Architecture Performance Metrics.
TELE202 Lecture 8 Congestion control 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »X.25 »Source: chapter 10 ¥This Lecture »Congestion control »Source:
Fundamentals of Computer Networks ECE 478/578
1 Chapter 8 Queueing models. 2 Delay and Queueing Main source of delay Transmission (e.g., n/R) Propagation (e.g., d/c) Retransmission (e.g., in ARQ)
CS 408 Computer Networks Congestion Control (from Chapter 05)
1 ELEN 602 Lecture 8 Review of Last lecture –HDLC, PPP –TDM, FDM Today’s lecture –Wavelength Division Multiplexing –Statistical Multiplexing –Preliminary.
Computer Networks Performance Metrics Advanced Computer Networks.
CS 381 Introduction to computer networks Chapter 1 - Lecture 3 2/5/2015.
Spring 2004 EE4272 EE4272: Computer Networks Instructor: Dr. Tricia Chigan Dept.: Elec. & Comp. Eng.
Lect-2: BasicsComputer Networks : An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book:
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Performance Modeling Computer Science Division Department of Electrical Engineering and Computer.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Computer Networks: Performance Measures1 Computer Network Performance Measures.
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
1/20 Introduction Outline Statistical Multiplexing Inter-Process Communication Network Architecture Performance Metrics Implementation Issues.
Networks: Performance Measures1 Network Performance Measures.
Module 2.0: Modeling of Network Components. Queueing theory  Basics : average number of packets 1/  : mean service time per packet [s] arriving per.
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
CS144, Stanford University Error in Q3-7. CS144, Stanford University Using longest prefix matching, the IP address will match which entry? a /8.
Lecture 1, 1Spring 2003, COM1337/3501Computer Communication Networks Rajmohan Rajaraman COM1337/3501 Textbook: Computer Networks: A Systems Approach, L.
Network Technologies (TCP/IP)
CS 6401 Introduction to Networking Aditya Akella Outline Administrivia Networking History Statistical Multiplexing Performance Metrics.
Courtesy: Nick McKeown, Stanford 1 TCP Congestion Control Tahir Azim.
Computer Networks & The Internet University of Management & Technology
1 Computer Communication & Networks Lecture 4 Circuit Switching, Packet Switching, Delays Waleed.
Slides originally from Professor Williamson at U Calgary1-1 Introduction Part II  Network Core  Delay & Loss in Packet-switched Networks  Structure.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
جلسه دهم شبکه های کامپیوتری به نــــــــــــام خدا.
Introduction to Operations Research
Computer Networks Performance Metrics. Performance Metrics Outline Generic Performance Metrics Network performance Measures Components of Hop and End-to-End.
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
Computer Networks Performance Metrics
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Winter 2008CS244a Handout 31 CS244a: An Introduction to Computer Networks Handout 3: Foundations and Basic Concepts Nick McKeown Professor of Electrical.
I NTRODUCTION TO C OMPUTER N ETWORKS By Dr. Nawaporn Wisitpongphan Presentation Slides Courtesy of: Prof Nick McKeown, Stanford University.
1 Physical and Data Link Layer Computer Network System Sirak Kaewjamnong.
Nick McKeown Spring 2012 Lecture 2,3 Output Queueing EE384x Packet Switch Architectures.
Fall 2001CS 6401 Introduction to Networking Outline Networking History Statistical Multiplexing Performance Metrics.
Spring 2002CS 4611 Introduction Outline Statistical Multiplexing Inter-Process Communication Network Architecture Performance Metrics Implementation Issues.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Winter 2008CS244a Handout 71 CS244a: An Introduction to Computer Networks Handout 7: Congestion Control Nick McKeown Professor of Electrical Engineering.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
048866: Packet Switch Architectures
1 Queuing Delay and Queuing Analysis. RECALL: Delays in Packet Switched (e.g. IP) Networks End-to-end delay (simplified) = End-to-end delay (simplified)
Computer Networks Performance Metrics Computer Networks Spring 2013.
Chap 2 Network Analysis and Queueing Theory 1. Two approaches to network design 1- “Build first, worry later” approach - More ad hoc, less systematic.
1 Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani Lecture 2: Foundation.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
Queuing Theory Simulation & Modeling.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
2003 컴퓨터 통신 1 Foundation # 컴퓨터 통신 2 Outline A Detailed FTP Example Layering Packet Switching and Circuit Switching Some terms –Data rate, “Bandwidth”
Introduction1-1 Data Communications and Computer Networks Chapter 1 CS 3830 Lecture 3 Omar Meqdadi Department of Computer Science and Software Engineering.
: An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book: Chap. 3.1 Homepage
CS 5565 Network Architecture and Protocols
Internet Queuing Delay Introduction
Computer Network Performance Measures
Computer Network Performance Measures
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
Congestion Control (from Chapter 05)
CSE 550 Computer Network Design
Presentation transcript:

Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani Lecture 10: Performance Evaluation

Univ. of TehranComputer Network2 Outline Strategy Performance factors Queuing Theory

Univ. of TehranComputer Network3 Strategies Circuit switching: carry bit streams Connection oriented. original telephone network Dedicated resource. Packet switching: store-and-forward messages Connectionless (IP) or connection oriented (ATM) Internet Shared resource. Packet switching is the focus of computer Networks.

Univ. of TehranComputer Network4 Packet Switching A R1 R2 R4 R3 B SourceDestination  It’s the method used by the Internet.  Each packet is individually routed packet-by-packet, using the router’s local routing table.  The routers maintain no per-flow state.  Different packets may take different paths.  Several packets may arrive for the same output link at the same time, therefore a packet switch has buffers.

Univ. of TehranComputer Network5 Packet Switching Simple router model R1 Link 1 Link 2 Link 3 Link 4 Link 1, ingressLink 1, egress Link 2, ingressLink 2, egress Link 3, ingressLink 3, egress Link 4, ingressLink 4, egress Choose Egress Choose Egress Choose Egress Choose Egress “4”

Univ. of TehranComputer Network6 Statistical Multiplexing On-demand time-division Schedule link on a per-packet basis Packets from different sources interleaved on link scheduling fairness, quality of service Buffer packets that are contending for the link Buffer (queue) overflow is called congestion …

Univ. of TehranComputer Network7 Statistical Multiplexing Basic idea time rate One flow Two flows Average rate Many flows  Network traffic is bursty. i.e. the rate changes frequently.  Peaks from independent flows generally occur at different times.  Conclusion: The more flows we have, the smoother the traffic. Average rates of: 1, 2, 10, 100, 1000 flows. rate

Univ. of TehranComputer Network8 Link rate, R X(t)X(t) B Dropped packets Queue Length X ( t ) Time Packet buffer Packets for one output Packet Switching Statistical Multiplexing DataHdr DataHdr DataHdr R R R  Because the buffer absorbs temporary bursts, the egress link need not operate at rate (N x R).  But the buffer has finite size, B, so losses will occur. 1 2 N

Univ. of TehranComputer Network9 Statistical Multiplexing B A time Rate C C A C B C

Univ. of TehranComputer Network10 Statistical Multiplexing Gain A B R 2C2C R < 2C A+B time Rate Statistical multiplexing gain = 2C/R Other definitions of SMG: The ratio of rates that give rise to a particular queue occupancy, or particular loss probability.

Univ. of TehranComputer Network11 Why does the Internet use packet switching? 1. Efficient use of expensive links: The links are assumed to be expensive and scarce. Packet switching allows many, bursty flows to share the same link efficiently. “Circuit switching is rarely used for data networks,... because of very inefficient use of the links” - Gallager 2. Resilience to failure of links & routers: ”For high reliability,... [the Internet] was to be a datagram subnet, so if some lines and [routers] were destroyed, messages could be... rerouted” - Tanenbaum

Univ. of TehranComputer Network12 Some Definitions Packet length, P, is the length of a packet in bits. Link length, L, is the length of a link in meters. Data rate, R, is the rate at which bits can be sent, in bits/second, or b/s. 1 Propagation delay, PROP, is the time for one bit to travel along a link of length, L. PROP = L/c. Transmission time, TRANSP, is the time to transmit a packet of length P. TRANSP = P/R. Latency is the time from when the first bit begins transmission, until the last bit has been received. On a link: Latency = PROP + TRANSP. 1. Note that a kilobit/second, kb/s, is 1000 bits/second, not 1024 bits/second.

Univ. of TehranComputer Network13 Packet Switching A R1 R2 R4 R3 B SourceDestination Host A Host B R1 R2 R3 TRANSP 1 TRANSP 2 TRANSP 3 TRANSP 4 PROP 1 PROP 2 PROP 3 PROP 4 “Store-and-Forward” at each Router

Univ. of TehranComputer Network14 Packet Switching vs. Message switching Breaking message into packets allows parallel transmission across all links, reducing end to end latency. It also prevents a link from being “hogged” for a long time by one message. Host A Host B R1 R2 R3 M/R Host A Host B R1 R2 R3 M/R

Univ. of TehranComputer Network15 Performance Metrics Bandwidth (throughput) data transmitted per time unit link versus end-to-end notation KB = 2 10 bytes Mbps = 10 6 bits per second Latency (delay) time to send message from point A to point B one-way versus round-trip time (RTT) components Latency = Propagation + Transmit + Queuing Queuing time can be a dominant factor

Univ. of TehranComputer Network16 Latency Latency ( Queuing Delay) Host A Host B R1 R2 R3 TRANSP 1 TRANSP 2 TRANSP 3 TRANSP 4 PROP 1 PROP 2 PROP 3 PROP 4 Q2Q2 The egress link might not be free, packets may be queued in a buffer. If the network is busy, packets might have to wait a long time. How can we determine the queuing delay?

Univ. of TehranComputer Network17 Queues and Queuing Delay Cross traffic causes congestion and variable queuing delay.

Univ. of TehranComputer Network18 A router queue  A(t), D(t)D(t) Model of router queue Q(t)Q(t) Buffer Server

Univ. of TehranComputer Network19 A router queue (cont)  A(t), D(t)D(t) Model of router queue Q(t)Q(t) Buffer Server Usually buffer size is finite State of the system depends on : 1.Packet arrival process, (Poisson, deterministic, etc) 2.Packet length distribution 3.The service discipline (FCFS, LCFS, priority, etc) 4.# of Server, service process

Univ. of TehranComputer Network20 A simple deterministic model Service discipline is FIFO Buffer can be finite of infinite Properties of A(t), D(t):  A(t), D(t) are non-decreasing  A(t) >= D(t)  A(t), D(t)D(t) Model of FIFO router queue Q(t)Q(t)

Univ. of TehranComputer Network21 A simple deterministic model bytes or “fluid” A(t)A(t) D(t)D(t) Cumulative number of departed bits up until time t. time Service process Cumulative number of bits Cumulative number of bits that arrived up until time t.  A(t)A(t) D(t)D(t) Q(t)Q(t) Properties of A(t), D(t) :  A(t), D(t) are non-decreasing  A(t) >= D(t) 

Univ. of TehranComputer Network22 D(t) A(t) time Q(t) d(t) Queue occupancy: Q(t) = A(t) - D(t). Queuing delay, d(t), is the time spent in the queue by a bit that arrived at time t, and if the queue is served first-come-first-served (FCFS or FIFO) Simple deterministic model Cumulative number of bits

Univ. of TehranComputer Network23 D(t) A(t) time Q(t) d(t) Example Cumulative number of bits Example: Every second, a train of 100 bits arrive at rate 1000b/s. The maximum departure rate is 500b/s. What is the average queue occupancy? 0.1s0.2s1.0s 100

Univ. of TehranComputer Network24 Queues with Random Arrival Processes 1. Usually, arrival processes are complicated, so we often model them as random processes. 2. The study of queues with random arrival processes is called Queueing Theory. 3. Queues with random arrival processes have some interesting properties. We’ll consider some here.

Univ. of TehranComputer Network25 Properties of queues Time evolution of queues. Examples Burstiness increases delay Determinism minimizes delay Little’s Result. The M/M/1 queue.

Univ. of TehranComputer Network26 Time evolution of a queue Packets  A(t), D(t)D(t) Model of FIFO router queue Q(t)Q(t) time Packet Arrivals: Departures: Q(t)Q(t)

Univ. of TehranComputer Network27 Burstiness increases delay Example 1: Periodic arrivals 1 packet arrives every 1 second 1 packet can depart every 1 second Depending on when we sample the queue, it will contain 0 or 1 packets. Example 2: N packets arrive together every N seconds (same rate) 1 packet departs every second Queue might contain 0,1, …, N packets. Both the average queue occupancy and the variance have increased. In general, burstiness increases queue occupancy (which increases queuing delay).

Univ. of TehranComputer Network28 Determinism minimizes delay Example 3: Random arrivals Packets arrive randomly; on average, 1 packet arrives per second. Exactly 1 packet can depart every 1 second. Depending on when we sample the queue, it will contain 0, 1, 2, … packets depending on the distribution of the arrivals. In general, determinism minimizes delay. i.e. random arrival processes lead to larger delay than simple periodic arrival processes.

Univ. of TehranComputer Network29 Little’s Result

Univ. of TehranComputer Network30 The Poisson process Arrival process is Poisson Queuing system is M/M/1, Poisson arrival, Exponential service, with 1 server. Arrival process is momeryless or arrival of packets are independent of each others Prob. of one arrival in Δt is λ Δt + o(Δt)

Univ. of TehranComputer Network31 The Poisson process (cont) Poisson process is a probability distribution function. Σ p(k) = 1 for all k=0, 1, … How many arrivals in t second? It is the expected value: Σ kp(k) = λt What is interarrival time, r, between two arrival f(r) = λe -λr This is the same the service time. f(r) = μe - μr

Univ. of TehranComputer Network32 The Poisson process Why use the Poisson process? It is the continuous time equivalent of a series of coin tosses. It is known to model well systems in which a large number of independent events are aggregated together. e.g. Arrival of new phone calls to a telephone switch Decay of nuclear particles “Shot noise” in an electrical circuit It makes the math easy. Be warned Network traffic is very bursty! Packet arrivals are not Poisson. But it models quite well the arrival of new flows.

Univ. of TehranComputer Network33 An M/M/1 queue A(t) is a Poisson process with rate, and the time to serve each packet is exponentially distributed with rate , then: We assume the system is in steady state, or stationary, with none time varying values. P n is the probability that there are n customer in the queue including the one in the service. ρ=  ration of load on capacity, is utilization or traffic intensity.  A(t), D(t)D(t) Model of FIFO router queue

Univ. of TehranComputer Network34 An M/M/1 queue (cont) Prob. that the system move from state n-1 to n is  with no departure, and probability that it moves from state n to n-1 is  In order the system to be in stationary state the probability of departure and moving state should be equal.  P n  P n-1  P n n-1 n n+1        ….

Univ. of TehranComputer Network35 An M/M/1 queue (cont) Considering the rate of interring and leaving the surface gives us. P n  P n+1 => P n+1 =  P n => P n =  n P 0 What is the value of P 0 ? Σ n P n  => P 0 Σ n  n  =  => P 0 =  –  P n =(  –  n n-1 n n+1       ….

Univ. of TehranComputer Network36 An M/M/1 queue If A(t) is a Poisson process with rate, and the time to serve each packet is exponentially distributed with rate , then:  A(t), D(t)D(t) Model of FIFO router queue

Univ. of TehranComputer Network37 Next Lecture: MAC How to share the wire How to extend to multiple segments Assigned reading [MB76] ETHERNET: Distributed Packet Switching for Local Area Networks [B+88] Measured Capacity of an Ethernet: Myths and Reality Chap. 2 of book (Recommended!)