CSE 461: Bits and Bandwidth. Next Topic

Similar documents
CSE 461 Bits and Links. David Wetherall

CSEP 561 Bits and Links. David Wetherall

CSE 561 Bits and Links. David Wetherall

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

Physical Layer. Transfers bits through signals overs links Wires etc. carry analog signals We want to send digital bits. Signal

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

Lecture 5 Transmission

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Computer Networks

CSE 123: Computer Networks Alex C. Snoeren. Project 1 out Today, due 10/26!

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Stefan Savage

CSCI-1680 Physical Layer Rodrigo Fonseca

Operating Systems and Networks. Networks Part 2: Physical Layer. Adrian Perrig Network Security Group ETH Zürich

Introduc8on to Computer Networks. Where we are in the Course. Overview of the Physical Layer

Lecture 2: Links and Signaling"

Lecture 23: Media Access Control. CSE 123: Computer Networks Alex C. Snoeren

The Physical Layer Outline

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Alex C. Snoeren

EECS 122: Introduction to Computer Networks Encoding and Framing. Questions

Physical Layer. Networked Systems Architecture 3 Lecture 6

Chapter 2. Physical Layer

Physical Layer. Networked Systems (H) Lecture 3

Encoding and Framing

Lecture 2: Links and Signaling. CSE 123: Computer Networks Stefan Savage

Encoding and Framing. Questions. Signals: Analog vs. Digital. Signals: Periodic vs. Aperiodic. Attenuation. Data vs. Signal

Physical Layer. Networked Systems 3 Lecture 5

Chapter 3 Data and Signals

CPSC Network Programming. How do computers really communicate?

Channel Concepts CS 571 Fall Kenneth L. Calvert

C06a: Digital Modulation

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

ITL Basics of Encoding and Wiring

Last Time. Transferring Information. Today (& Tomorrow (& Tmrw)) Application Layer Example Protocols ftp http Performance.

EE 304 TELECOMMUNICATIONs ESSENTIALS HOMEWORK QUESTIONS AND ANSWERS

Announcements : Wireless Networks Lecture 3: Physical Layer. Bird s Eye View. Outline. Page 1

BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

DATA TRANSMISSION. ermtiong. ermtiong

Lecture 21: Links and Signaling

Lecture-8 Transmission of Signals

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

Introduc)on to Computer Networks

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

BSc (Hons) Computer Science with Network Security. Examinations for Semester 1

EITF25 Internet Techniques and Applications L2: Physical layer. Stefan Höst

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

PRINCIPLES OF COMMUNICATION SYSTEMS. Lecture 1- Introduction Elements, Modulation, Demodulation, Frequency Spectrum

Transmission Media. - Bounded/Guided Media - Uubounded/Unguided Media. Bounded Media

and coding (a.k.a. communication theory) Signals and functions Elementary operation of communication: send signal on

Outline / Wireless Networks and Applications Lecture 3: Physical Layer Signals, Modulation, Multiplexing. Cartoon View 1 A Wave of Energy

Chapter 2: Fundamentals of Data and Signals

CSE123A discussion session

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Data Communication (CS601)

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

IST 220 Exam 1 Notes Prepared by Dan Veltri

Physical connec-vity CSCI 466: Networks Keith Vertanen Fal 2011

Lecture 8: Media Access Control. CSE 123: Computer Networks Stefan Savage

Announcement : Wireless Networks Lecture 3: Physical Layer. A Reminder about Prerequisites. Outline. Page 1

ECE 435 Network Engineering Lecture 20

2. By convention, the minimum and maximum values of analog data and signals are presented as voltages.

Data Communications and Networking (Module 2)

Chapter 2: Computer Networks

Multiplexing. Chapter 8. Frequency Division Multiplexing Diagram. Frequency Division Multiplexing. Multiplexing

Chapter Two. Fundamentals of Data and Signals. Data Communications and Computer Networks: A Business User's Approach Seventh Edition

Lecture 3: Transmission Media

Lecture 3: The Physical Layer and Transmission Media

Physical Layer: Outline

Lecture (06) Digital Coding techniques (II) Coverting Digital data to Digital Signals

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

ECE 271 INTRODUCTION TO TELECOMMUNICATION NETWORKS HOMEWORK QUESTIONS ECE 271 HOMEWORK-1

Introduction to LAN/WAN. Physical Layer

Hello and welcome to today s lecture. In the last couple of lectures we have discussed about various transmission media.

Systems. Roland Kammerer. 29. October Institute of Computer Engineering Vienna University of Technology. Communication in Distributed Embedded

ECE 435 Network Engineering Lecture 4

Department of Computer Science and Engineering. CSE 3213: Computer Networks I (Fall 2009) Instructor: N. Vlajic Date: Dec 11, 2009.

Week 2 Lecture 1. Introduction to Communication Networks. Review: Analog and digital communications

William Stallings Data and Computer Communications. Bab 4 Media Transmisi

1. What is the bandwidth of a signal that ranges from 40 KHz to 4 MHz? a MHz (4M -40K) b. 36 MHz c. 360 KHz d. 396 KHz

Data Communication and Media

Class 4 ((Communication and Computer Networks))

The Physical Layer Chapter 2. The Physical Layer

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

CS441 Mobile & Wireless Computing Communication Basics

Introduction to Communications Part Two: Physical Layer Ch3: Data & Signals

Optical Fiber Communications p. 1 Introduction p. 1 History of Optical Fibers p. 1 Optical Fibers Versus Metallic Cable Facilities p.

Chapter 4 Digital Transmission 4.1

two computers. 2- Providing a channel between them for transmitting and receiving the signals through it.

SEN366 Computer Networks

William Stallings Data and Computer Communications. Chapter 8 Multiplexing. Multiplexing

ECE 435 Network Engineering Lecture 16

Lecture 8: Media Access Control

Module 3: Physical Layer

CS307 Data Communication

Class 4 ((Communication and Computer Networks))

Sirindhorn International Institute of Technology Thammasat University

Physical Layer. Networks: Physical Layer 1

CS420/520 Axel Krings Page 1 Sequence 8

COSC 3213: Computer Networks I: Chapter 3 Handout #4. Instructor: Dr. Marvin Mandelbaum Department of Computer Science York University Section A

Layering and Controlling Errors

Signal Encoding Techniques

Transcription:

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 Application Presentation Session Transport Network Data Link Physical

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., 802.11 wireless LANs, Bluetooth (2.4GHz) Microwave, satellite, cell phones, Wireless Different frequencies have different properties Signals subject to atmospheric/environmental effects AM FM Twisted Pair Coax TV Microwave Satellite Fiber 10 4 10 6 10 8 10 10 10 12 10 14 Freq (Hz) Radio Microwave IR Light UV

Fiber Long, thin, pure strand of glass light propagated with total internal reflection enormous bandwidth available (terabits) Light source (LED, laser) Light detector (photodiode) Multi-mode allows many different paths, limited by dispersion Chromatic dispersion if multiple frequencies Aside: bandwidth of a channel EE: bandwidth (B, in Hz) is the width of the passband 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 1 0 We send/recover symbols that are mapped to bits Signal transition rate = baud rate, versus bit rate This is baseband transmission take a signals course! 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 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 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 Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ Clock Manchester NRZI 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 11101 Never more than three consecutive 0s back-toback 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 0x7E (header) Payload (variable) (trailer) Flag 0x7E 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

Administrivia if you are not on the class mailing list: please join it ASAP project 1 project teams have been formed if you don t have a team, come talk to me *today* any questions on the project? 4. Model of a Link Message M bits Rate R Mbps Delay D seconds Abstract model is typically all we will need What goes in comes out altered by the model Other parameters that are important: The kind and frequency of errors Whether the media is broadcast or not

Message Latency How long does it take to send a message? Message M Two terms: Delay D, Rate R 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 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 = 1000 bytes Latency = 10ms + (1024 x 8)/(56 x 1024) sec = 153ms! Cross-country with T3 (45Mbps) line: D = 50ms, R = 45Mbps, M = 1000 bytes Latency = 50ms + (1024 x 8) / (45 x 1000000) 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 Departure Time Arrival Time + RTT The round trip time (RTT) is twice the one way delay Measure of how long to signal and get a response

Throughput Measure of system s ability to pump out data NOT the same as bandwidth Throughput = Transfer Size / Transfer Time Eg, 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 stopped shipping the bits Messages Occupy Space On the Wire Consider a 1b/s network. How much space does 1 byte take? 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. Implications?

A More Realistic Example BD = 50ms * 45Mbps = 2.25 * 10^6 = 280KB 101100 11 0010101010101010101 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