EEC-484/584 Computer Networks

Slides:



Advertisements
Similar presentations
Introduction 2 1: Introduction.
Advertisements

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.
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.
1-1 Foundation Objectives: 1.1 What’s the Internet? 1.2 Network edge 1.3 Network core 1.4 Network access and physical media 1.5 Internet structure and.
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,
Introduction 1 Lecture 3 Networking Concepts slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering Department.
CS 3830 Day 2 Introduction 1-1. Announcements  Program 1 posted on the course web  Project folder must be in 1DropBox on S drive by: 9/14 at 3pm  Must.
Introduction 1-1 Lecture 3 Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CS3516: These slides.
1 Computer Communication & Networks Lecture 4 Circuit Switching, Packet Switching, Delays Waleed.
RSC Part I: Introduction Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are, mainly, part of the companion slides to.
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.
Instructor: Christopher Cole Some slides taken from Kurose & Ross book IT 347: Chapter 1.
1 Kommunikatsiooniteenuste arendus IRT0080 Loeng 7 Avo Ots telekommunikatsiooni õppetool, TTÜ raadio- ja sidetehnika inst.
How do loss and delay occur?
Introduction 1-1 Chapter 1 Introduction Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April 2009.
Introduction Switches and Access. 2 Chapter 1 Introduction Computer Networking: A Top Down Approach Featuring the Internet, 5 rd edition. Jim.
Wireless access networks  shared wireless access network connects end system to router  via base station aka “access point”  wireless LANs:  b/g.
Computer Networks Performance Metrics. Performance Metrics Outline Generic Performance Metrics Network performance Measures Components of Hop and End-to-End.
Chapter 1 Introduction Circuit/Packet Switching Protocols Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley,
Introduction Chapter 1: roadmap 1.1 what is the Internet? 1.2 network edge  end systems, access networks, links 1.3 network core  packet switching, circuit.
RSC Part I: Introduction Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are, mainly, part of the companion slides to.
Lecture 5: Internetworking: A closer View By Dr. Najla Al-Nabhan Introduction 1-1.
Introduction1-1 Chapter 1 Computer Networks and the Internet Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose,
Computer Networks Performance Metrics
Four sources of packet delay
1 Computer Networks & The Internet Lecture 4 Imran Ahmed University of Management & Technology.
Introduction 1-1 Chapter 1 Part 3 Delay, loss and throughput These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose,
CS 3830 Day 4 Introduction 1-1. Announcements  No office hour 12pm-1pm today only  Quiz on Friday  Program 1 due on Friday (put in DropBox on S drive)
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,
EEC-484/584 Computer Networks
Chapter 1: roadmap 1.1 what is the Internet? 1.2 network edge  end systems, access networks, links 1.3 network core  packet switching, circuit switching,
CSE 413: Computer Network Circuit Switching and Packet Switching Networks Md. Kamrul Hasan
Introduction1-1 Data Communications and Computer Networks Chapter 1 CS 3830 Lecture 2 Omar Meqdadi Department of Computer Science and Software Engineering.
Introduction 1-1 1DT057 Distributed Information Systems Chapter 1 Introduction.
Lecture # 3: WAN Data Communication Network L.Rania Ahmed Tabeidi.
A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their original slides that accompany the.
CSEN 404 Introduction to Networks Amr El Mougy Lamia AlBadrawy.
Introduction1-1 Data Communications and Computer Networks Chapter 1 CS 3830 Lecture 3 Omar Meqdadi Department of Computer Science and Software Engineering.
CS 5565 Network Architecture and Protocols
Graciela Perera Introduction Graciela Perera
Introduction to Networks
Lec # 22 Data Communication Muhammad Waseem Iqbal.
Part 0: Networking Review
Administrative Things
CS 381 Introduction to computer networks
CS 5565 Network Architecture and Protocols
Chapter 1: Introduction
A Taxonomy of Communication Networks
CS 5565 Network Architecture and Protocols
RSC Part II: Network Layer 1. Basic Concepts
Chapter 1: roadmap 1.1 What is the Internet? 1.2 Network edge
Lecture 2: Internet Structure & Internetworking
Comp 365 Computer Networks Chapter 1 Part 2 Network Core Fall 2014
Network Core and QoS.
CS Lecture 2 Network Performance
Session 2 INST 346 Technologies, Infrastructure and Architecture
Computer Networks Performance Metrics
Chapter 1: roadmap 1.1 What is the Internet? 1.2 Network edge
Lecture 1: introduction
Network Core and QoS.
Comp 410 AOS Packet Switching
Chapter 1 Introduction Computer Networking: A Top Down Approach
Presentation transcript:

EEC-484/584 Computer Networks Lecture 2 Wenbing Zhao wenbingz@gmail.com (Part of the slides are based on Drs. Kurose & Ross’s slides for their Computer Networking book)

EEC-484/584: Computer Networks Outline Internet structure Network edge Hosts and applications Network core Packet switching Delay, loss and throughput in packet-switched networks 2/17/2019 EEC-484/584: Computer Networks

A Closer Look at Internet Structure: Network edge: Applications and hosts Access networks, physical media: wired, wireless communication links Network core: interconnected routers network of networks 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks The Network Edge: End systems (hosts): run application programs e.g. Web, email at “edge of network” peer-peer client/server Client/server model client host requests, receives service from always-on server e.g. Web browser/server; email client/server Peer-peer model minimal (or no) use of dedicated servers, e.g. Skype, BitTorrent 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Access Networks Q: How to connect end systems to edge router? residential access nets DSL, Cable Modem institutional access networks (school, company) mobile access networks Wifi 3G, 4G, LTE 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks The Network Core Mesh of interconnected routers The fundamental question: how is data transferred through net? circuit switching: dedicated circuit per call: telephone net packet-switching: data sent thru net in discrete “chunks” 2/17/2019 EEC-484/584: Computer Networks

Network Core: Circuit Switching End-to-end resources reserved for “call” link bandwidth, switch capacity dedicated resources: no sharing circuit-like (guaranteed) performance call setup required 2/17/2019 EEC-484/584: Computer Networks

Network Core: Circuit Switching Network resources (e.g., bandwidth) divided into “pieces” pieces allocated to calls resource piece idle if not used by owning call (no sharing) Dividing link bandwidth into “pieces” frequency division time division 2/17/2019 EEC-484/584: Computer Networks

Circuit Switching: FDM and TDM 4 users Example: FDM frequency time Two simple multiple access control techniques. Each mobile’s share of the bandwidth is divided into portions for the uplink and the downlink. Also, possibly, out of band signaling. As we will see, used in AMPS, GSM, IS-54/136 TDM frequency time 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Numerical Example How long does it take to send a file of 640,000 bits from host A to host B over a circuit-switched network? All links are 1.536 Mbps Each link uses TDM with 24 slots/sec 500 msec to establish end-to-end circuit Let’s work it out! Each circuit has a transmission rate of 1.536Mbps/24=64kbps, so it takes 640,000 bits/64kbps = 10 seconds to transmit the file. Adding .5sec circuit establishment time, it comes to 10.5 second per file. Here we ignored the propagation delay 2/17/2019 EEC-484/584: Computer Networks

Network Core: Packet Switching Each end-end data stream divided into packets User A, B packets share network resources Each packet uses full link bandwidth Resources used as needed Resource contention: Aggregate resource demand can exceed amount available Congestion: packets queue, wait for link use Store and forward: packets move one hop at a time Node receives complete packet before forwarding Bandwidth division into “pieces” Dedicated allocation Resource reservation 2/17/2019 EEC-484/584: Computer Networks

Packet Switching: Statistical Multiplexing 100 Mb/s Ethernet C A Statistical Multiplexing 1.5 Mb/s B queue of packets waiting for output link D E Sequence of A & B packets does not have fixed pattern, bandwidth shared on demand  statistical multiplexing TDM: each host gets same slot in revolving TDM frame 2/17/2019 EEC-484/584: Computer Networks

Packet-Switching: Store-and-Forward L R R R Takes L/R seconds to transmit (push out) packet of L bits on to link at R bps Store and forward: entire packet must arrive at router before it can be transmitted on next link End to end delay = 3L/R (assuming zero propagation/processing/queueing delay) Example: L = 7.5 Mbits R = 1.5 Mbps End-to-end delay = 15 sec The 3L/R emphasize on the delay caused by the store and forward strategy: the packet has to be transmitted 3 times: - sender (end system) to 1st router - 1st router to 2nd router - 2nd router to receiver more on delay shortly … 2/17/2019 EEC-484/584: Computer Networks

Packet Switching versus Circuit Switching Packet switching allows more users to use network! 1 Mb/s link each user: 100 kb/s when “active” active 10% of time circuit-switching: 10 users packet switching: with 35 users, probability > 10 active at same time is less than .0004 Don’t’ worry how the number 0.0004 is derived N users 1 Mbps link 2/17/2019 EEC-484/584: Computer Networks

Packet Switching versus Circuit Switching Is packet switching a “slam dunk winner?” Great for bursty data resource sharing simpler, no call setup Excessive congestion: packet delay and loss protocols needed for reliable data transfer, congestion control Q: How to provide circuit-like behavior? bandwidth guarantees needed for audio/video apps still an unsolved problem 2/17/2019 EEC-484/584: Computer Networks

Internet Structure: Network of Networks Roughly hierarchical At center: “tier-1” ISPs (e.g., Verizon, Sprint, AT&T, Cable and Wireless), national/international coverage Treat each other as equals Tier 1 ISP Tier-1 providers interconnect (peer) privately Tier 1 ISP Tier 1 ISP 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Tier-1 ISP: e.g., Sprint … to/from customers peering to/from backbone …. POP: point-of-presence 2/17/2019 EEC-484/584: Computer Networks

Internet Structure: Network of Networks “Tier-2” ISPs: smaller (often regional) ISPs Connect to one or more tier-1 ISPs, possibly other tier-2 ISPs Tier-2 ISPs also peer privately with each other. Tier-2 ISP pays tier-1 ISP for connectivity to rest of Internet tier-2 ISP is customer of tier-1 provider Tier-2 ISP Tier 1 ISP Tier 1 ISP Tier 1 ISP 2/17/2019 EEC-484/584: Computer Networks

Internet Structure: Network of Networks “Tier-3” ISPs and local ISPs last hop (“access”) network (closest to end systems) local ISP Tier 3 Local and tier- 3 ISPs are customers of higher tier ISPs connecting them to rest of Internet Tier-2 ISP Tier 1 ISP Tier 1 ISP Tier 1 ISP 2/17/2019 EEC-484/584: Computer Networks

Internet Structure: Network of Networks A packet passes through many networks! local ISP Tier 3 Tier-2 ISP Tier 1 ISP Tier 1 ISP Tier 1 ISP EEC-484/584: Computer Networks 2/17/2019

How Do Loss and Delay Occur? Packets queue in router buffers packet arrival rate to link exceeds output link capacity packets queue, wait for turn packet being transmitted (delay) A free (available) buffers: arriving packets dropped (loss) if no free buffers packets queueing (delay) B 2/17/2019 EEC-484/584: Computer Networks

Four Sources of Packet Delay 1. Processing delay: check bit errors determine output link 2. Queueing delay time waiting at output link for transmission depends on congestion level of router A B propagation transmission nodal processing queueing 2/17/2019 EEC-484/584: Computer Networks

Delay in Packet-Switched Networks 3. Transmission delay: R=link bandwidth (bps) L=packet length (bits) time to send bits into link = L/R 4. Propagation delay: d = length of physical link s = propagation speed in medium (~2x108 m/sec) propagation delay = d/s Note: s and R are very different quantities! A B propagation transmission nodal processing queueing 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Caravan Analogy toll booth ten-car caravan 100 km cars “propagate” at 100 km/hr toll booth takes 12 sec to service car (transmission time) car~bit; caravan ~ packet Q: How long until caravan is lined up before 2nd toll booth? Time to “push” entire caravan through toll booth onto highway = 12*10 = 120 sec Time for last car to propagate from 1st to 2nd toll both: 100km/(100km/hr)= 1 hr A: 62 minutes 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Caravan Analogy toll booth toll booth 100 km 100 km ten-car caravan Cars now “propagate” at 1000 km/hr Toll booth now takes 1 min to service a car Q: Will cars arrive at 2nd booth before all cars serviced at 1st booth? Yes! After 7 min, 1st car at 2nd booth and 3 cars still at 1st booth. 1st bit of packet can arrive at 2nd router before packet is fully transmitted at 1st router! Applet list: http://wps.aw.com/aw_kurose_network_5/111/28536/7305312.cw/index.html 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Nodal Delay dproc = processing delay typically a few microsecs or less dqueue = queuing delay depends on congestion dtrans = transmission delay = L/R, significant for low-speed links dprop = propagation delay a few microsecs to hundreds of msecs 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Queueing Delay R=link bandwidth (bps) L=packet length (bits) a=average packet arrival rate traffic intensity = La/R La/R ~ 0: average queueing delay small La/R -> 1: delays become large La/R > 1: more “work” arriving than can be serviced, average delay infinite! 2/17/2019 EEC-484/584: Computer Networks

“Real” Internet delays and routes What do “real” Internet delay & loss look like? Traceroute program: provides delay measurement from source to router along end-end Internet path towards destination. For all i: sends three packets that will reach router i on path towards destination router i will return packets to sender sender times interval between transmission and reply. 3 probes 3 probes 3 probes 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Packet Loss Queue (aka buffer) preceding link in buffer has finite capacity Packet arriving to full queue dropped (aka lost) Lost packet may be retransmitted by previous node, by source end system, or not at all buffer (waiting area) packet being transmitted A B packet arriving to full buffer is lost Applets: http://wps.aw.com/aw_kurose_network_3/21/5493/1406348.cw/index.html 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Throughput Throughput: rate (bits/time unit) at which bits transferred between sender/receiver Instantaneous: rate at given point in time Average: rate over longer period of time pipe that can carry fluid at rate Rc bits/sec) pipe that can carry fluid at rate Rs bits/sec) link capacity Rs bits/sec link capacity Rc bits/sec server sends bits (fluid) into pipe server, with file of F bits to send to client 2/17/2019 EEC-484/584: Computer Networks

EEC-484/584: Computer Networks Throughput (more) Rs < Rc What is average end-to-end throughput? Rc bits/sec Rs bits/sec Rs > Rc What is average end-to-end throughput? Rs bits/sec Rc bits/sec link on end-end path that constrains end-end throughput bottleneck link 2/17/2019 EEC-484/584: Computer Networks

Throughput: Internet Scenario Rs Per-connection end-end throughput: min(Rc,Rs,R/10) In practice: Rc or Rs is often bottleneck Rs Rs R Rc Rc Rc 10 connections (fairly) share backbone bottleneck link R bits/sec 2/17/2019 EEC-484/584: Computer Networks