Basic Concepts CS 438: Spring 2014 Matthew Caesar

Slides:



Advertisements
Similar presentations
Introduction 2 1: Introduction.
Advertisements

1 IK1500 Communication Systems IK1330 Lecture 3: Networking Anders Västberg
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
1 If the Internet is the answer, then what was the question? EE122 Fall 2012 Scott Shenker Materials with thanks.
Intro (continued) and Design Principles Nick Feamster CS 3251: Computer Networking I Spring 2013.
Giuseppe Bianchi Basic switching concepts circuit switching message switching packet switching.
CS 381 Introduction to computer networks Lecture 2 1/29/2015.
James 1:5 If any of you lacks wisdom, he should ask God, who gives generously to all without finding fault, and it will be given to him.
CS 381 Introduction to computer networks Chapter 1 - Lecture 3 2/5/2015.
Introduction© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science.
Lect-2: BasicsComputer Networks : An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book:
Lecture 2 Introduction 1-1 Chapter 1: roadmap 1.1 What is the Internet? 1.2 Network edge  end systems, access networks, links 1.3 Network core  circuit.
ECOM 4314 Data Communications Fall September, 2010.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 13 Introduction to Networks and the Internet.
1 An Introduction to Computer Networks Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof.
Lecture Internet Overview: roadmap 1.1 What is the Internet? (A simple overview last week) Today, A closer look at the Internet structure! 1.2 Network.
Lecture Internet Overview: roadmap 1.1 What is the Internet? 1.2 Network edge  end systems, access networks, links 1.3 Network core  circuit switching,
Lecture Internet Overview: roadmap 1.1 What is the Internet? 1.2 Network edge  end systems, access networks, links 1.3 Network core  circuit switching,
Communication concepts (Continued) Week 2 Lecture 2.
Ch. 28 Q and A IS 333 Spring Q1 Q: What is network latency? 1.Changes in delay and duration of the changes 2.time required to transfer data across.
Lecture 1, 1Spring 2003, COM1337/3501Computer Communication Networks Rajmohan Rajaraman COM1337/3501 Textbook: Computer Networks: A Systems Approach, L.
1: Introduction1 Part I: Introduction Goal: r get context, overview, “feel” of networking r more depth, detail later in course r approach: m descriptive.
1 Computer Communication & Networks Lecture 4 Circuit Switching, Packet Switching, Delays Waleed.
Introduction 1-1 Chapter 1: roadmap 1.1 What is the Internet? 1.2 Network edge  end systems, access networks, links 1.3 Network core  circuit switching,
Slides originally from Professor Williamson at U Calgary1-1 Introduction Part II  Network Core  Delay & Loss in Packet-switched Networks  Structure.
Introduction 1-1 Chapter 1 Part 2 Network Core These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
CS 447 Networks and Data Communication
Data Comm. & Networks Instructor: Ibrahim Tariq Lecture 3.
Review of Networking Concepts Part 1: Switching Networks
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Introduction Slide 1 A Communications Model Source: generates.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
Communication Networks Fourth Meeting. Types of Networks  What is a circuit network?  Two people are connected and allocated them their own physical.
Computer Networks Performance Metrics. Performance Metrics Outline Generic Performance Metrics Network performance Measures Components of Hop and End-to-End.
ECE 466 Switching Networks. ECE 466 A communication network provides a scalable solution to connect a large number of end systems Communication Networks.
Chapter 1 Introduction Circuit/Packet Switching Protocols Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley,
Data and Computer Communications Chapter 10 – Circuit Switching and Packet Switching (Wide Area Networks)
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
RSC Part I: Introduction Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are, mainly, part of the companion slides to.
ECE 4450:427/527 - Computer Networks Spring 2015 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 2: Overview of Computer Network.
Computer Networks with Internet Technology William Stallings
J.Tiberghien - VUB09-06-K.Steenhaut & J.Tiberghien - VUB 1 Telecommunications Concepts Chapter 1.6 Multiplexing & Routing.
Packet switching network Data is divided into packets. Transfer of information as payload in data packets Packets undergo random delays & possible loss.
William Stallings Data and Computer Communications
Lecture 8 Virtual Switching (contd.) & Message Switching.
Lecture # 03 Switching Course Instructor: Engr. Sana Ziafat.
Unit III Bandwidth Utilization: Multiplexing and Spectrum Spreading In practical life the bandwidth available of links is limited. The proper utilization.
Basic Concepts EE 122, Fall 2013 Sylvia Ratnasamy
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CH. 8: SWITCHING & DATAGRAM NETWORKS 7.1.
CSE 413: Computer Network Circuit Switching and Packet Switching Networks Md. Kamrul Hasan
1 Switching and Forwarding Sections Connecting More Than Two Hosts Multi-access link: Ethernet, wireless –Single physical link, shared by multiple.
Computer Networks Chapter 8 – Circuit Switching versus Packet Switching.
Introduction1-1 Data Communications and Computer Networks Chapter 1 CS 3830 Lecture 2 Omar Meqdadi Department of Computer Science and Software Engineering.
Computer Communication & Networks Lecture # 03 Circuit Switching, Packet Switching Nadeem Majeed Choudhary
Data Communication Networks Lec 13 and 14. Network Core- Packet Switching.
Lecture # 3: WAN Data Communication Network L.Rania Ahmed Tabeidi.
2003 컴퓨터 통신 1 Foundation # 컴퓨터 통신 2 Outline A Detailed FTP Example Layering Packet Switching and Circuit Switching Some terms –Data rate, “Bandwidth”
1. Layered Architecture of Communication Networks: Circuit Switching & Packet Switching.
Introduction1-1 Data Communications and Computer Networks Chapter 1 CS 3830 Lecture 3 Omar Meqdadi Department of Computer Science and Software Engineering.
Network Processing Systems Design
Chapter 2 PHYSICAL LAYER.
Advanced Computer Networks
SWITCHING Switched Network Circuit-Switched Network Datagram Networks
Anthony D. Joseph and Ion Stoica
Network Core and QoS.
Data Communication Networks
An Engineering Approach to Computer Networking
Network Core and QoS.
Comp 410 AOS Packet Switching
Presentation transcript:

Basic Concepts CS 438: Spring 2014 Matthew Caesar

Today 10,000 foot view of the Internet Basic concepts links packet delays circuit switching packet (datagram) switching Layering

A 10,000 foot view of the Internet

Encode information on modulated “Carrier signal” Phase, frequency, and amplitude modulation, and combinations thereof Ethernet: self-clocking Manchester coding ensures one transition per clock Technologies: copper, optical, wireless Volts -0.7 Volts How can Two Hosts Communicate?

5 Naïve approach: full mesh Problem: Obviously doesn’t scale to the 570,937,778+ hosts in the Internet How can many hosts communicate?

6 Better approach: Multiplex traffic with routers Goals: make network robust to failures and attack, maintain spare capacity, reduce operational costs Introduces new challenges: What topology to use? How to find and look up paths? How to identify destinations?

7

8

The Internet is a federated system ISP A user ISP B ISP C user Tied together by IP -- the “Internet Protocol” : a single common interface between users and the network and between networks The Internet ties together different networks >20,000 ISP networks Internet

The Internet is a federated system The Internet ties together different networks >20,000 ISP networks A single, common interface is great for interoperability… …but tricky for business Why does this matter? ease of interoperability is the Internet’s most important goal practical realities of incentives, economics and real-world trust drive topology, route selection and service evolution

How can routers find paths? 11 Robert pinterest.com / / / /8 Prefix Hop s IF Routing Table at B D /8 Prefix Hop s IF Routing Table at C D /8 Prefix Hop s IF Routing Table at A B 2 A B C D IP address /8 Prefix Robert’s local DNS server Pinterest’s authoritative DNS server.com authoritative DNS sever Hosts assigned topology-dependent addresses Routers advertise address blocks (“prefixes”) Routers compute “shortest” paths to prefixes Map IP addresses to names with DNS

Basic Concepts

Nodes and Links AB

Properties of Links Bandwidth (capacity): “width” of the link number of bits sent (or received) per unit time (bits/sec or bps) Latency (delay): “length” of the link propagation time for data to travel along the link (seconds) Bandwidth-Delay Product (BDP): “volume” of the link amount of data that can be “in flight” at any time propagation delay × bits/time = total bits in link bandwidth Latency delay x bandwidth

Examples of Bandwidth-Delay Same city over a slow link: BW ~100Mbps Latency ~0.1msec BDP ~10,000bits (~1.25KBytes) Cross-country over fast link: BW ~10Gbps Latency~10msec BDP ~10 8 bits (~12.5GBytes)

time=0 Packet Delay Sending a 100B packet from A to B? AB 100 Byte packet Time 1Mbps, 1ms Time to transmit one bit = 1/10 6 s Time to transmit 800 bits=800x1/10 6 s Time when that bit reaches B = 1/ /10 3 s The last bit reaches B at (800x1/10 6 )+1/10 3 s = 1.8ms Packet Delay = Transmission Delay + Propagation Delay Packet Delay = (Packet Size ÷ Link Bandwidth) + Link Latency

Packet Delay Sending a 100B packet from A to B? AB 100Byte packet Time 1Mbps, 1ms 1Gbps, 1ms? The last bit reaches B at (800x1/10 6 )+1/10 3 s = 1.8ms 1GB file in 100B packets The last bit reaches B at (800x1/10 9 )+1/10 3 s = ms The last bit in the file reaches B at (10 7 x800x1/10 9 )+1/10 3 s = 8001ms 10 7 x 100B packets

Packet Delay: The “pipe” view Sending 100B packets from A to B? AB 100Byte packet Time 1Mbps, 10ms 100Byte packet time  BW  pkt tx time

Packet Delay: The “pipe” view Sending 100B packets from A to B? 1Mbps, 10ms (BDP=10,000) time  BW  10Mbps, 1ms (BDP=10,000) time  BW  1Mbps, 5ms (BDP=5,000) time  BW 

Packet Delay: The “pipe” view Sending 100B packets from A to B? 1Mbps, 10ms (BDP=10,000) time  BW  1Mbps, 10ms (BDP=10,000) time  BW  200B?

Any questions?

Nodes and Links AB

What if we have more nodes? One link for every node? Need a scalable way to interconnect nodes

What if I have more nodes? One link for all nodes? This is a broadcast network

Solution: A switched network Nodes share network link resources How is this sharing implemented?

Two forms of switched networks Circuit switching (used in the telephone network) Packet switching (used in the Internet)

(1) Node A sends a reservation request (2) Interior switches establish a connection -- i.e., “circuit” (3) A starts sending data (4) A sends a “teardown circuit” message Idea: source reserves network capacity along a path A B 10Mb/s? Circuit Switching

Time-division Each circuit allocated certain time slots Frequency-division Each circuit allocated certain frequencies time frequency time Circuit Switching: sharing a link

Time divided into frames; frames into slots Relative slot position inside a frame determines to which conversation data belongs e.g., slot 0 belongs to orange conversation Slots are reserved (released) during circuit setup (teardown) If a conversation does not use its circuit capacity is lost! Frames Slots = Time Division Multiplexing

time Timing in Circuit Switching

time Timing in Circuit Switching

time Timing in Circuit Switching

time

Circuit Establishment time Timing in Circuit Switching

Information Circuit Establishment Transfer time Timing in Circuit Switching

Information Circuit Establishment Transfer Circuit Teardown time Timing in Circuit Switching

Circuit switching: pros and cons Pros guaranteed performance fast transfer (once circuit is established) Cons

Information Circuit Establishment Transfer Circuit Teardown time Timing in Circuit Switching

Circuit switching: pros and cons Pros guaranteed performance fast transfer (once circuit is established) Cons wastes bandwidth if traffic is “bursty”

Information Circuit Establishment Transfer Circuit Teardown time Timing in Circuit Switching

Information Circuit Establishment Circuit Teardown time Data transfer Timing in Circuit Switching

Circuit switching: pros and cons Pros guaranteed performance fast transfers (once circuit is established) Cons wastes bandwidth if traffic is “bursty” connection setup time is overhead

A B Circuit switching doesn’t “route around trouble” Circuit switching

Circuit switching: pros and cons Pros guaranteed performance fast transfers (once circuit is established) Cons wastes bandwidth if traffic is “bursty” connection setup time is overhead recovery from failure is slow

Two forms of switched networks Circuit switching (e.g., telephone network) Packet switching (e.g., Internet)

Packet Switching Data is sent as chunks of formatted bits (Packets) Packets consist of a “header” and “payload”* © Nick McKeown Internet Address 2.Age 3.Checksum to protect header Header Data headerpayload

Packet Switching Data is sent as chunks of formatted bits (Packets) Packets consist of a “header” and “payload”* payload is the data being carried header holds instructions to the network for how to handle packet (think of the header as an interface!)

Packet Switching Data is sent as chunks of formatted bits (Packets) Packets consist of a “header” and “payload” Switches “forward” packets based on their headers

Switches forward packets to MIT to UW UIUC to NYU DestinationNext Hop UIUC4 UW5 MIT2 NYU3 Forwarding Table MIT switch#2 switch#5 switch#3 switch#4

time payload hdrhdr What about the time to process the packet at the switch? We’ll assume it’s relatively negligible (mostly true) Timing in Packet Switching

time payload hdrhdr Could the switch start transmitting as soon as it has processed the header? Yes! This would be called a “cut through” switch Timing in Packet Switching

time payload hdrhdr We will always assume a switch processes/forwards a packet after it has received it entirely. This is called “store and forward” switching Timing in Packet Switching

Packet Switching Data is sent as chunks of formatted bits (Packets) Packets consist of a “header” and “payload” Switches “forward” packets based on their headers

Packet Switching Data is sent as chunks of formatted bits (Packets) Packets consist of a “header” and “payload” Switches “forward” packets based on their headers Each packet travels independently no notion of packets belonging to a “circuit”

Packet Switching Data is sent as chunks of formatted bits (Packets) Packets consist of a “header” and “payload” Switches “forward” packets based on their headers Each packet travels independently No link resources are reserved in advance. Instead packet switching leverages statistical multiplexing

Statistical Multiplexing

Data Rate 1 Data Rate 2 Data Rate 3 Three Flows with Bursty Traffic Time Capacity

Data Rate 1 Data Rate 2 Data Rate 3 When Each Flow Gets 1/3 rd of Capacity Time Frequent Overloading

Time No Overloading Statistical multiplexing relies on the assumption that not all flows burst at the same time. Very similar to insurance, and has same failure case When flows share total capacity

Data Rate 1 Data Rate 2 Data Rate 3 Three Flows with Bursty Traffic Time Capacity

Data Rate 1 Data Rate 2 Data Rate 3 Three Flows with Bursty Traffic Time Capacity

Data Rate >> Capacity Three Flows with Bursty Traffic Time Capacity What do we do under overload?

time  BW  pkt tx time Statistical multiplexing: pipe view

No Overload ! Statistical multiplexing: pipe view

Transient Overload Not a rare event! Queue Statistical multiplexing: pipe view

Transient Overload Not a rare event! Queue Statistical multiplexing: pipe view

Transient Overload Not a rare event! Queue Statistical multiplexing: pipe view

Transient Overload Not a rare event! Queue Statistical multiplexing: pipe view

Transient Overload Not a rare event! Queue Statistical multiplexing: pipe view

Queue Transient Overload Not a rare event! Queues absorb transient bursts! Statistical multiplexing: pipe view

What about persistent overload? Will eventually drop packets Statistical multiplexing: pipe view

Queues introduce queuing delays Recall, packet delay = tx delay + prop delay With queues (stat. muxing) packet delay = tx delay + prop delay + queuing delay Queuing delay caused by “packet interference” Made worse at high load less “idle time” to absorb bursts think about traffic jams at rush hour

Basic Queuing Theory Terminology Arrival process: how packets arrive Average rate A Peak rate P Service process: transmission times Average transmission time (function of packet size) W: average time packets wait in the queue W for “waiting time” L: average number of packets waiting in the queue L for “length of queue” Two different quantities

Little’s Law (1961) L = A x W Average queue size (L) is average packet arrival rate (A) times average wait time (W) Surprisingly, not influenced by arrival process distribution, service distribution, service order, etc. Used for router queue, circuit dimensioning More complex computation: X th percentile queue size Realm of queuing theory Depends on arrival/service processes

Statistical Multiplexing is a recurrent theme in computer science Phone network rather than dedicated lines Ancient history Packet switching rather than circuits Today’s lecture Cloud computing Shared datacenters, rather than single PCs

Packet Switching Data is sent as chunks of formatted bits (Packets) Packets consist of a “header” and “payload” Switches “forward” packets based on their headers Each packet travels independently No link resources are reserved in advance. Instead packet switching leverages statistical multiplexing allows efficient use of resources but introduces queues and queuing delays

Circuit switching: pros and cons Pros guaranteed performance fast transfers (once circuit is established) Cons wastes bandwidth if traffic is “bursty” connection setup adds delay recovery from failure is slow

Packet switching: pros and cons Cons no guaranteed performance header overhead per packet queues and queuing delays Pros efficient use of bandwidth (stat. muxing) no overhead due to connection setup resilient -- can `route around trouble’

Recap: you should leave this lecture with… A sense of how the basic `plumbing’ works links and switches packet delays (tx, propagation, queuing) statistical multiplexing and queues circuit vs. packet switching Next: back to lofty principles protocols and layering