CSE 461: Bits and Bandwidth Next Topic  Focus: How do we send a message across a wire?  The physical / link layers: 1. Different kinds of media 2.

Slides:



Advertisements
Similar presentations
Physical Layer: Signals, Capacity, and Coding
Advertisements

Physical Layer II: Framing, SONET, SDH, etc.
CSCI-1680 Physical Layer Link Layer I Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
1 Chapter 2 Agenda Announcements / updates Gayle Laakman McDowell, 10/11, 4:30pm, UW2-005 GUIs / IDEs for remotely accessing uw1-320-lab Other references.
Lecture 3, 1Spring 2003, COM1337/3501CCN: Direct Link Networks Direct Link Networks Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie,
Fundamentals of Computer Networks ECE 478/578
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
Computer Networks Physical Layer Professor Hui Zhang
Physical Layer – Part 2 Data Encoding Techniques
Professor Yashar Ganjali Department of Computer Science University of Toronto
CS 4700 / CS 5700 Network Fundamentals Lecture 5: Physical Layer (The layer for EE majors…) Revised 1/14/13.
Computer Science & Engineering Introduction to Computer Networks Overview of the Physical Layer.
Spring 2002CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
1 Part II: Data Transmission The basics of media, signals, bits, carriers, and modems Fall 2005 Qutaibah Malluhi Computer Science and Engineering Qatar.
Fundamentals of Computer Networks ECE 478/578 Lecture #3: Encoding and Framing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
Computers Are Your Future © 2006 Prentice-Hall, Inc.
Network+ Guide to Networks, Fourth Edition Chapter 3 Transmission Basics and Networking Media.
Physical Layer – Part 2 Data Encoding Techniques
Chapter 3 Data and Signals
1 Physical Layer. 2 Analog vs. Digital  Analog: continuous values over time  Digital: discrete values with sharp change over time.
3.1 Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
2-1 Physical Layer l Theoretical basis for data communications n Fourier analysis n distortion –by different attenuation rates of different frequency components.
7.1 Chapter 7 Transmission Media Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 9.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 8.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 4 - Physical Layer Transmission and Link Layer Basics.
Chapter Five Understanding the Physical Layer. Objectives Here you will see how data is encoded for transmission over media. You’ll learn some different.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
EE 122: Encoding And Framing Ion Stoica September 9, 2002.
CSCI-1680 Physical Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Data Communication. 2 Data Communications Data communication system components: Message Message Information (data) to be communicated. Sender Sender Device.
Chapter-4/5-1CS331- Fakhry Khellah Term 081 Chapter 4 (Only 4.2 – 4.3) Digital Transmission.
Professor Ayse Karaman Announcements Programming assignment 1 is out – visit
CSE 461: Bits and Bandwidth Jeremy Elson Microsoft Research Ben Greenstein
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
02 – Performance Basics 1CS Computer Networks.
CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
27-Oct-15Computer Networks1 Outline Chapter 2: Direct Link Networks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
CSE 461 University of Washington1 Where we are in the Course Beginning to work our way up starting with the Physical layer Physical Link Network Transport.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 7.
Fall 2000Datacom 11 Outline Hardware Building Blocks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Hardware Building Blocks and Encoding COM211 Communications and Networks CDA College Theodoros Christophides
Day 4 Encoding Data. So… We have analog and digital data, and analog and digital signals. –We can use any combination of the above –Why? Shouldn’t we.
CS 4700 / CS 5700 Network Fundamentals
1 CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
CSCI-1680 Physical Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
9-Jan-164/598N: Computer Networks Overview Performance metrics - Section 1.5 Direct link networks –Hardware building blocks - Section 2.1 –Encoding - Section.
Physical Layer Issues and Methods Outline Physical Layer Overview Non-Return to Zero Manchester 4B/5B.
Wireless and Mobile Networks (ELEC6219) Session 3: Theories of Data Communications. Data Link Layer. Adriana Wilde and Jeff Reeve 22 January 2015.
Computers Are Your Future © 2008 Prentice-Hall, Inc.
CSCI 465 Data Communications and Networks Lecture 8 Martin van Bommel CSCI 465 Data Communications and Networks 1.
Data Communications and Computer Networks Chapter 1 Network Architecture Models Logical and physical connections.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 6: Datalink layer problems Slides used.
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
Physical Layer Issues and Methods Outline Physical Layer Ethernet Technology Physical Layer Encoding Final Exam Review - ??
TOPIC 1.2 INTRODUCTION TO NETWORKING. OBJECTIVES By the end of the topic, students should be able to: a) List the elements of data communication systems.
1 Point-to-Point Links: Encoding Encoding: Section 2.2 (Section 2.1 read on your own)
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
CSE331: Introduction to Networks and Security Lecture 2 Fall 2002.
Lect-10-2: Physical Layer Computer Networks : An Introduction to Computer Networks Handout #12: Physical Layer Signaling, Coding and Clocking.
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
Physical Layer. Data Communications - Physical Layer2 Physical Layer Essence: Provide the means to transmit bits from sender to receiver involves a lot.
Getting Connected (Chapter 2 Part 1)
Important Concepts at the Physical Layer
Fundamentals of Computer Networks
CSCI-1680 Physical Layer Link Layer I
Home work project #1 Develop and fully debug your program on the Cushing 208 lab. Machines - planet lab machines may not have good development environment.
Handout # 4: Link Layer, Error Detection/Correction
Presentation transcript:

CSE 461: Bits and Bandwidth

Next Topic  Focus: How do we send a message across a wire?  The physical / link layers: 1. Different kinds of media 2. Encoding bits, messages 3. Model of a link Physical Data Link Network Transport Session Presentation Application

1. Different kinds of media  Wire  Twisted pair, e.g., CAT5 UTP, 10  100Mbps, 100m  Coaxial cable, e.g, thin-net, 10  100Mbps, 200m  Fiber  Multi-mode, 100Mbps, 2km  Single mode, 100  2400 Mbps, 40km  Wireless  Infra-red, e.g., IRDA, ~1Mbps  RF, e.g., wireless LANs, Bluetooth (2.4GHz)  Microwave, satellite, cell phones, …

Fiber  Long, thin, pure strand of glass  light propagated with total internal reflection  enormous bandwidth available (terabits)  Multi-mode allows many different paths, limited by dispersion Light source (LED, laser) Light detector (photodiode)

Aside: bandwidth of a channel  EE: bandwidth (B, in Hz) is the width of the pass-band in the frequency domain  CS: bandwidth (bps) is the information carrying capacity (C) of the channel  Shannon showed how they are related by noise  noise limits how many signal levels we can safely distinguish  geekspeak: “cannot distinguish the signal from the noise”

2. Encoding Bits with Signals  Generate analog waveform (e.g., voltage) from digital data at transmitter and sample to recover at receiver  We send/recover symbols that are mapped to bits  Signal transition rate = baud rate, versus bit rate 0 1

NRZ and NRZI  Simplest encoding, NRZ (Non-return to zero)  Use high/low voltages, e.g., high = 1, low = 0  Variation, NRZI (NRZ, invert on 1)  Use transition for 1s, no transition for 0s Bits NRZ

Clock Recovery  Problem: How do we distinguish consecutive 0s or 1s?  If we sample at the wrong time we get garbage …  If sender and receiver have exact clocks no problem  But in practice they drift slowly  This is the problem of clock recovery  Possible solutions:  Send separate clock signal  expensive  Keep messages short  limits data rate  Embed clock signal in data signal  other codes

Manchester Coding  Make transition in the middle of every bit period  Low-to-high is 0; high-to-low is 1  Signal rate is twice the bit rate  Used on 10 Mbps Ethernet  Advantage: self-clocking  clock is embedded in signal, and we re-sync with a phase-locked loop every bit  Disadvantage: 50% efficiency

Coding Examples

4B/5B Codes  We want transitions *and* efficiency …  Solution: map data bits (which may lack transitions) into code bits (which are guaranteed to have them)  4B/5B code:  0000  11110, 0001  01001, … 1111   Never more than three consecutive 0s back-to-back  80% efficiency  This code is used by LANs such as FDDI

3. Framing  Need to send message, not just bits  Requires that we synchronize on the start of message reception at the far end of the link  Complete Link layer messages are called frames  Common approach: Sentinels  Look for special control code that marks start of frame  And escape or “stuff” this code within the data region

Example: Point-to-Point Protocol (PPP)  IETF standard, used for dialup and leased lines  Flag is special and indicates start/end of frame  Occurrences of flag inside payload must be “stuffed”  Like an “escape” character: \.\.\”\\ -->..”\  Replace 0x7E with 0x7D, 0x5E  Replace 0x7D with 0x7D, 0x5D Flag 0x7E (header) Payload (variable) (trailer) Flag 0x7E

4. Model of a Link  Abstract model is typically all we will need  Other parameters that are important:  The kind and frequency of errors  Whether the media is broadcast or not Message M bits Rate R Mbps Delay D seconds

Message Latency  How long does it take to send a message?  Two terms:  Propagation delay = distance / speed of light in media How quickly a message travels over the wire  Transmission delay = message (bits) / rate (bps) How quickly you can inject the message onto the wire  Later we will see queuing delay … Delay D, Rate R Message M

Relationships  Latency = Propagation + Transmit + Queue  Propagation Delay = Distance/SpeedOfLight  Transmit Time = MessageSize/Bandwidth

One-way Latency Dialup with a modem:  D = 10ms, R = 56Kbps, M = 1024 bytes  Latency = 10ms + (1024 x 8)/(56 x 1024) sec = 153ms! Cross-country with T3 (45Mbps) line:  D = 50ms, R = 45Mbps, M = 1024 bytes  Latency = 50ms + (1024 x 8) / (45 x 1024*1024) sec = 50ms!  Either a slow link or long wire makes for large latency

Latency and RTT  Latency is typically the one way delay over a link  Arrival Time - Departure Time  The round trip time (RTT) is twice the one way delay  Measure of how long to signal and get a response + RTT Departure Time Arrival Time

Throughput  Measure of system’s ability to “pump out” data  NOT the same as bandwidth  Throughput = Transfer Size / Transfer Time  E.g., “I transferred 1000 bytes in 1 second on a 100Mb/s link” BW? Throughput?  Transfer Time = SUM OF  Time to get started shipping the bits  Time to ship the bits  Time to get a response if necessary

Messages Occupy “Space” On the Wire  Consider a 1b/s network.  Suppose latency is 16 seconds.  How many bits can the network “store”  This is the BANDWIDTH-DELAY product  Measure of “data in flight.”  1b/s * 16s = 16b  Tells us how much data can be sent before a receiver sees any of it.  Twice B.D. tells us how much data we could send before hearing back from the receiver something related to the first bit sent.  What are the implications of high B.D.?

101100…11… A More Realistic Example BD = 50ms * 45Mbps = 2.25 * 10^6 = 280KB

Key Concepts  We typically model links in terms of bandwidth and delay, from which we can calculate message latency  Different media have different properties that affect their performance as links  We need to encode bits into signals so that we can recover them at the other end of the channel.  Framing allows complete messages to be recovered at the far end of the link