CS144, Stanford University Error in Q3-7. CS144, Stanford University Using longest prefix matching, the IP address 21.44.9.5 will match which entry? a.21.0.0.0/8.

Slides:



Advertisements
Similar presentations
ECE358: Computer Networks Fall 2014
Advertisements

1 CNPA B Nasser S. Abouzakhar Queuing Disciplines Week 8 – Lecture 2 16 th November, 2009.
Congestion Control Reasons: - too many packets in the network and not enough buffer space S = rate at which packets are generated R = rate at which receivers.
Fundamentals of Computer Networks ECE 478/578
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 – QoS.
Resource Allocation: Deterministic Analysis. Traffic Model Stochastic Different sample paths with different properties Expected case analysis Deterministic.
1.  Congestion Control Congestion Control  Factors that Cause Congestion Factors that Cause Congestion  Congestion Control vs Flow Control Congestion.
Abhay.K.Parekh and Robert G.Gallager Laboratory for Information and Decision Systems Massachusetts Institute of Technology IEEE INFOCOM 1992.
Courtesy: Nick McKeown, Stanford 1 Intro to Quality of Service Tahir Azim.
Networks: Sample Performance Problems 1 Sample Network Performance Problems.
Computer Networks Computer Networks Term B10 Network Delay Network Delay Performance Problems.
Nick McKeown CS244 Lecture 6 Packet Switches. What you said The very premise of the paper was a bit of an eye- opener for me, for previously I had never.
Worst-case Fair Weighted Fair Queueing (WF²Q) by Jon C.R. Bennett & Hui Zhang Presented by Vitali Greenberg.
Lect-2: BasicsComputer Networks : An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book:
End-to-End Analysis of Distributed Video-on-Demand Systems Padmavathi Mundur, Robert Simon, and Arun K. Sood IEEE Transactions on Multimedia, February.
CS 268: Lecture 15/16 (Packet Scheduling) Ion Stoica April 8/10, 2002.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Performance Modeling Computer Science Division Department of Electrical Engineering and Computer.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Packet Scheduling and QoS Computer Science Division Department of Electrical Engineering and.
Nick McKeown 1 Memory for High Performance Internet Routers Micron February 12 th 2003 Nick McKeown Professor of Electrical Engineering and Computer Science,
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 3. QoS.
Surprise Quiz EE384Z: McKeown, Prabhakar ”Your Worst Nightmares in Packet Switching Architectures”, 3 units [Total time = 15 mins, Marks: 15, Credit is.
7/15/2015HY220: Ιάκωβος Μαυροειδής1 HY220 Schedulers.
Advanced Computer Networks 1 Sample Network Performance Problems.
1 IP routers with memory that runs slower than the line rate Nick McKeown Assistant Professor of Electrical Engineering and Computer Science, Stanford.
Network Technologies (TCP/IP)
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
A Generalized Processor Sharing Approach to Flow Control in Integrated Services Networks: The Single-Node Case Abhay K. Parekh, Member, IEEE, and Robert.
CIS679: Scheduling, Resource Configuration and Admission Control r Review of Last lecture r Scheduling r Resource configuration r Admission control.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Winter 2006EE384x1 EE384x: Packet Switch Architectures I Parallel Packet Buffers Nick McKeown Professor of Electrical Engineering and Computer Science,
TCP Trunking: Design, Implementation and Performance H.T. Kung and S. Y. Wang.
March 29 Scheduling ?. What is Packet Scheduling? Decide when and what packet to send on output link 1 2 Scheduler flow 1 flow 2 flow n Buffer management.
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.
Nick McKeown1 Building Fast Packet Buffers From Slow Memory CIS Roundtable May 2002 Nick McKeown Professor of Electrical Engineering and Computer Science,
Florida State UniversityZhenhai Duan1 BCSQ: Bin-based Core Stateless Queueing for Scalable Support of Guaranteed Services Zhenhai Duan Karthik Parsha Department.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Nick McKeown Spring 2012 Lecture 2,3 Output Queueing EE384x Packet Switch Architectures.
Winter 2006EE384x1 EE384x: Packet Switch Architectures I a) Delay Guarantees with Parallel Shared Memory b) Summary of Deterministic Analysis Nick McKeown.
Mr. Mark Welton.  Quality of Service is deployed to prevent data from saturating a link to the point that other data cannot gain access to it  QoS allows.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 18: Quality of Service Slides used with.
Winter 2008CS244a Handout 71 CS244a: An Introduction to Computer Networks Handout 7: Congestion Control Nick McKeown Professor of Electrical Engineering.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Weighted Fair Queuing Some slides used with.
048866: Packet Switch Architectures
1 Fair Queuing Hamed Khanmirza Principles of Network University of Tehran.
Queue Scheduling Disciplines
Delay in packet switched network. Circuit switching In Circuit switched networks the resources needed along a path (buffers and link transmission rate)
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Energy-aware QoS packet scheduling.
Spring Computer Networks1 Congestion Control Sections 6.1 – 6.4 Outline Preliminaries Queuing Discipline Reacting to Congestion Avoiding Congestion.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Providing QoS in IP Networks
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.
2003 컴퓨터 통신 1 Foundation # 컴퓨터 통신 2 Outline A Detailed FTP Example Layering Packet Switching and Circuit Switching Some terms –Data rate, “Bandwidth”
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 17 – Multimedia Transport Subsystem (Part 3) Klara Nahrstedt Spring 2011.
CS244 Packet Scheduling (Generalized Processor Sharing) Some slides created by: Ion Stoica and Mohammad Alizadeh
Tel Hai Academic College Department of Computer Science Prof. Reuven Aviv Markov Models for data flow In Computer Networks Resource: Fayez Gebali, Analysis.
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
: An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book: Chap. 3.1 Homepage
QoS & Queuing Theory CS352.
Topics discussed in this section:
EE384x: Packet Switch Architectures
Computer Science Division
Congestion Control, Quality of Service, & Internetworking
Variations of Weighted Fair Queueing
Network Simulation NET441
COMP/ELEC 429 Introduction to Computer Networks
EECS 122: Introduction to Computer Networks Packet Scheduling and QoS
Presentation transcript:

CS144, Stanford University Error in Q3-7

CS144, Stanford University Using longest prefix matching, the IP address will match which entry? a /8 b /24 c /32 d /28 2 IP address: …… Prefix: …… /28 ✔ IP address: …… Prefix: …… XXXX/28

CS144, Stanford University CS144 An Introduction to Computer Networks Packet Switching

CS144, Stanford University4 Outline 1.End-to-end delay 2.Queueing delay 3.Simpler queue model 4.Rate guarantees 5.Delay guarantees (hard!)

CS144, Stanford University5 Propagation Delay, t l : The time it takes a single bit to travel over a link at propagation speed c. l Example: A bit takes 5ms to travel 1,000km in an optical fiber with propagation speed 2 x 10 8 m/s.

CS144, Stanford University6 Packetization Delay, t p : The time from when the first to the last bit of a packet is transmitted. p Example 1: A 64byte packet takes 5.12  s to be transmitted onto a 100Mb/s link. Example 2: A 1kbit packet takes 1.024s to be transmitted onto a 1kb/s link. r bits/s

CS144, Stanford University End-to-end delay 7 l 1, r 1 l 2, r 2 l 3, r 3 l 4, r 4 Example: How long will it take a packet of length p to travel from A to B, from when the 1 st bit is sent, until the last bit arrives? Assume the switches store-and-forward packets along the path. A B

CS144, Stanford University8 l 1, r 1 l 2, r 2 l 3, r 3 l 4, r 4 AB S1S2S3 A B S1 S2 S3 p/r 2 l 2 /c p/r 3 l 3 /c p/r 4 l 4 /c time l 1 /c p/r 1 time

CS144, Stanford University9 l 1, r 1 l 2, r 2 l 3, r 3 l 4, r 4 AB S1S2S3 Q 2 (t) p/r 1 A B S1 S2 S3 p/r 2 l 1 /c l 2 /c p/r 3 p/r 4 l 3 /c l 4 /c Q 2 (t) time *Queueing = UK spelling, adopted by Kleinrock at UCLA in 1960s. Queueing and queuing (US spelling) are both widely used.

CS144, Stanford University Packet delay variation 10 CDF (%) RTT (ms)

CS144, Stanford University Simple model of router queue 11

CS144, Stanford University12 Simple model of a router queue Properties of A(t), D(t): A(t), D(t) are non-decreasing A(t) >= D(t) R A(t), D(t)D(t) Router queue Q(t)Q(t)

CS144, Stanford University13 Simple model of a queue A(t)A(t) D(t)D(t) Cumulative number of bytes departed up until time t. time Link rate Cumulative number of bytes Cumulative number of bytes arrived up until time t. R 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) R

CS144, Stanford University14 D(t) A(t) Time Q(t) d(t) Queue occupancy: Q(t) = A(t) - D(t). Queueing delay, d(t), is the time spent in the queue by a byte that arrived at time t, assuming the queue is served first-come-first-served (FCFS). Simple model of a queue Cumulative number of bytes

CS144, Stanford University15 Example Cumulative number of bits Every second, a 100 bit packet arrives to a queue at rate 1000b/s. The maximum departure rate is 500b/s. What is the average occupancy of the queue? D(t) A(t) time 0.1s0.2s1.0s 100 Solution: During each repeating 1s cycle, the queue fills at rate 500b/s for 0.1s, then drains at rate 500b/s for 0.1s. Over the first 0.2s, the average queue occupancy is therefore bits. The queue is empty for 0.8s every cycle, and so average queue occupancy:

CS144, Stanford University Priorities and Rates 16

CS144, Stanford University FIFO is a free for all 17 R B

CS144, Stanford University Strict Priorities 18 R High Low

CS144, Stanford University Weighted Priorities 19 R Weight = 2 Weight = 1

CS144, Stanford University Weighted Priorities 20 R Weight = w 1 Weight = w n

CS144, Stanford University What we’d like 21 R Weight = w 1 Weight = w n

CS144, Stanford University A practical way to do it 22 R Weight = w 1 Weight = w n

CS144, Stanford University Finishing Time 23 Finishing time: bit-by-bit Finishing time: pkt-by-pkt

CS144, Stanford University Summary: Priorities and Rates FIFO queues are a free for all: No priorities and no guaranteed rates. Strict priorities: High priority traffic “sees” a network with no low priority traffic. Useful if we have limited amounts of high priority traffic. Weighted Fair Queueing (WFQ) lets us give each flow a guaranteed service rate, by scheduling them in order of their bit-by-bit finishing times. 24

CS144, Stanford University Delay Guarantees 25

CS144, Stanford University Delay guarantees: Intuition 26 l 1, r 1 l 2, r 2 l 3, r 3 l 4, r 4 AB Q 2 (t)Q 1 (t)Q 3 (t) If we know the upper bound of Q 1 (t), Q 2 (t) and Q 3 (t), then we know the upper bound of the end-to-end delay.

CS144, Stanford University Delay guarantees: Intuition 27 R Rate = R 1 Rate = R n

CS144, Stanford University So how can we control the delay of packets? What we already know how to control: 1.The rate at which a queue is served (WFQ). 2.The size of each queue. How do we make sure no packets are dropped?

CS144, Stanford University Zooming in on one queue 29 R B A(t)D(t) time Cumulative bytes A(t) D(t) R Key idea: In general, we don’t know the arrival process. So let’s constrain it.

CS144, Stanford University Constraining traffic time Cumulative bits   Number of bits that can arrive in any period of length t is bounded by: This is called “(  ) regulation” In our example:  = B and  = R 1

CS144, Stanford University (  )-constrained Arrivals and Minimum Service Rate time Cumulative bits A(t) D(t) R1R1   d max B max If flows are leaky-bucket constrained, and routers use WFQ, then end-to-end delay guarantees are possible.

CS144, Stanford University The leaky bucket regulator Tokens at rate,  Token bucket size,  Packet buffer Packets Send packet if and only if enough tokens

CS144, Stanford University Putting it all together 33 A B Q 2 (t)Q 1 (t) Leaky Bucket Regulator

CS144, Stanford University An example In the network below, an application wants a rate of 10Mb/s and an end to end delay of less than 5ms for 1000byte packets. A B 10km, 1Gb/s100km, 100Mb/s10km, 1Gb/s Once we decided to bound the delay to no more than 2.15ms in each router, we concluded that we need to make sure: (a) we don't store more than 2960 bytes in each router, which we accomplish by setting the token bucket at the source equal to 2960 bytes, and (b) the router buffer can hold at least 2960 bytes so we don't drop data (we can make the router buffer bigger if we'd like to; we just won't use it).

CS144, Stanford University In practice While it is technically possible to do so, very few networks actually control end to end delay. Why? -It is complicated to make work, requiring coordination. -In most networks, a combination of over-provisioning and priorities work well enough. 35

CS144, Stanford University Summary If we know the size of a queue and the rate at which it is served, then we can bound the delay through it. We can pick the size of the queue, and WFQ lets us pick the rate at which it is served. Therefore, we just need a way to prevent packets being dropped along the way. For this, we use a leaky bucket regulator. We can therefore bound the end to end delay. 36