CSEP 561 Bits and Links. David Wetherall

Similar documents
CSE 461 Bits and Links. David Wetherall

CSE 561 Bits and Links. David Wetherall

CSE 461: Bits and Bandwidth. Next Topic

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

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

The Physical Layer Outline

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

Point-to-Point Communications

Chapter 2. Physical Layer

Physical Layer. Networked Systems Architecture 3 Lecture 6

Physical Layer. Networked Systems (H) Lecture 3

C06a: Digital Modulation

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

Lecture 5 Transmission

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

Physical Layer. Networked Systems 3 Lecture 5

Lecture 2: Links and Signaling"

Basic Concepts in Data Transmission

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

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

Physical Layer. Networks: Physical Layer 1

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

CS441 Mobile & Wireless Computing Communication Basics

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

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

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

Encoding and Framing

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

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

Computer Networks

Lecture Outline. Data and Signals. Analogue Data on Analogue Signals. OSI Protocol Model

DATA TRANSMISSION. ermtiong. ermtiong

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

Physical Layer: Outline

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

Introduction to LAN/WAN. Physical Layer

Data Communications and Networking (Module 2)

CHAPTER 2. Instructor: Mr. Abhijit Parmar Course: Mobile Computing and Wireless Communication ( )

Data Communications & Computer Networks

Lecture 3: Data Transmission

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

Course 2: Channels 1 1

EC 554 Data Communications

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

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

QUESTION BANK SUBJECT: DIGITAL COMMUNICATION (15EC61)

ECE 435 Network Engineering Lecture 16

Data and Computer Communications Chapter 3 Data Transmission

Chapter 3 Digital Transmission Fundamentals

Lecture Fundamentals of Data and signals

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. Chapter 3 Data Transmission

Digital Modulation Schemes

CPSC Network Programming. How do computers really communicate?

Signal Encoding Techniques

CSCI-1680 Physical Layer Rodrigo Fonseca

Data com ch#3 (part 2)

ECE 435 Network Engineering Lecture 20

SEN366 Computer Networks

Chapter 4 Digital Transmission 4.1

Lecture 3: Wireless Physical Layer: Modulation Techniques. Mythili Vutukuru CS 653 Spring 2014 Jan 13, Monday


Review of Lecture 2. Data and Signals - Theoretical Concepts. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

CS307 Data Communication

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

ETSF15 Physical layer communication. Stefan Höst

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Downloaded from 1

Data and Computer Communications. Chapter 3 Data Transmission

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

Qiz 1. 3.discrete time signals can be obtained by a continuous-time signal. a. sampling b. digitizing c.defined d.

Computer Communication Networks Physical

Data Communications and Networks

Contents. Telecom Service Chae Y. Lee. Data Signal Transmission Transmission Impairments Channel Capacity

Fundamentals of Digital Communication

The Physical Layer Chapter 2. The Physical Layer

You may use a calculator, but you may not use a computer during the test or have any wireless device with you.

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT.

Transmission Impairments

Chapter 3 Digital Transmission Fundamentals

E-716-A Mobile Communications Systems. Lecture #2 Basic Concepts of Wireless Transmission (p1) Instructor: Dr. Ahmad El-Banna

Communication Limits. Goals. Parity. RS-232 Format

28. What is meant by repetition rate of the AM envelope? (ADC,AU-2010) 29. Describe the upper and lower sidebands. (ADC, AU-2010) 30.

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Chapter 2: Fundamentals of Data and Signals

Chapter 3. Data Transmission

Introduction to Telecommunications and Computer Engineering Unit 3: Communications Systems & Signals

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

EE390 Final Exam Fall Term 2002 Friday, December 13, 2002

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

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

Stream Information. A real-time voice signal must be digitized & transmitted as it is produced Analog signal level varies continuously in time

Wireless Communications

College of information Technology Department of Information Networks Telecommunication & Networking I Chapter DATA AND SIGNALS 1 من 42

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Simplex. Direct link.

Department of Computer Science and Engineering. CSE 3213: Communication Networks (Fall 2015) Instructor: N. Vlajic Date: Dec 13, 2015

UNIT TEST I Digital Communication

Transcription:

CSEP 561 Bits and Links David Wetherall djw@cs.washington.edu

Topic How do we send a message across a wire or wireless link? The physical/link layers: 1. Different kinds of media 2. Fundamental limits 3. Encoding bits 4. Model of a link Application Transport Network Link Physical djw // CSEP 561, Autumn 2010 L2.2

1. Wires Now Cat 6, Cat 7 for GigE, four pairs Twisted pairs: twists reduce RF emission / crosstalk; also shielding can be added Coaxial cable: inner and outer ring conductor for superior noise immunity Many different specs/grades depending di on application i 100s of MHz for 100s of meters djw // CSEP 561, Autumn 2010 L2.3

Fiber Optic Cable Long, thin, pure strand of glass light propagated with total internal reflection enormous bandwidth available (terabits) Multi-Mode Light source (LED, laser) Light detector (photodiode) Single-Mode Light source (LED, laser) Light detector (photodiode) djw // CSEP 561, Autumn 2010 L2.4

Wireless Different frequencies have different properties Signals subject to atmospheric/environmental effects djw // CSEP 561, Autumn 2010 L2.5

US spectrum allocations regulation 2.4GHz WiFi 700 MHz Verizon djw // CSEP 561, Autumn 2010 L2.6

Model of a wire Frequencies beyond cutoff highly attenuated Bandwidth = passband (Hz) Signal also subject to: Attenuation (repeaters) Distortion (frequency and delay) Noise (thermal, crosstalk, impulse) response B freq EE: Bandwidth = width of frequency passband, measured in Hz CS: Bandwidth = information carrying capacity, measured in bits/sec djw // CSEP 561, Autumn 2010 L2.7

Attenuation ti of optic fiber Enormous bandwidth in each window djw // CSEP 561, Autumn 2010 L2.8

2. Effect of flimited it dbandwidth Lost! Less bandwidth permits less rapid signal transitions djw // CSEP 561, Autumn 2010 L2.9

Signals over a wire If we send a waveform, what do we get out? Signal loss Delay Frequency-dependent attenuation Noise at the receiver What do we want to get out? Fidelity versus interpretability djw // CSEP 561, Autumn 2010 L2.10

Nyquist Limit it (~1924) For a noiseless channel with bandwidth B Symbols will be distorted, and sending too fast leads to Inter-symbol Interference (ISI) 1 0 eye The maximum rate at which h it is possible to send: R = 2B symbols/sec e.g., 3KHz 6Ksym/sec djw // CSEP 561, Autumn 2010 L2.11

Taking Noise into Account Noise limits how many signal levels we can safely distinguish between 0 S = max signal amp., N = max noise amp. The number of bits per symbol depends on the number of signal levels E.g, 4 levels l implies 2bit bits / symbol 3 1 N S 2 djw // CSEP 561, Autumn 2010 L2.12

Shannon limit it (1948) Capacity = Bandwidth x log 2 1 + Signal Noise ( ) Bits/sec How fast signal can change How many signal levels can be seen Shannon, A Mathematical ti Theory of Communication, 1948. SNR or Signal-to-Noise ratio defined as decibels on a log scale SNR = 10 log 10 ( Signal / Noise), e.g., 30dB = 1000 times djw // CSEP 561, Autumn 2010 L2.13

3. Encoding Bits with Signals Generate analog waveform (e.g., voltage) from digital data at transmitter and sample to recover at receiver NRZ: 1 +1V 0-1V We send/recover symbols that are mapped to bits May have >2 different symbols, e.g., amplitudes Thus distinguish symbol rate versus bit rate This is baseband transmission djw // CSEP 561, Autumn 2010 L2.14

NRZ Simplest encoding, NRZ (Non-return to zero) Use high/low voltages, e.g., high = 1, low = 0 Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ djw // CSEP 561, Autumn 2010 L2.15

Issue: Clock recovery Um, how many zeros was that again? 1 0 0 0 0 0 0 If sender and receiver have exact clocks no problem. But they don t! Any brilliant ideas? djw // CSEP 561, Autumn 2010 L2.16

Embed clock in signal (Manchester) Signal is XOR of data (NRZ) and clock (transition per bit) Low-to-high is 0; high-to-low is 1 Signal rate is twice the bit rate Advantage: self-clocking, Disadvantage: BW inefficiency djw // CSEP 561, Autumn 2010 L2.17

4B/5B Codes We want self-clocking 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-to-back 80% efficiency, plus use illegal codes as markers Many more complex codes are available; some use multiple voltage level djw // CSEP 561, Autumn 2010 L2.18

Scrambling XOR data with known pseudo-random sequence Can generate cheaply with linear feedback shift registers (LFSR) Causes transitions with reasonable probability Also tends to whiten data (better for RF) Reverse at receiver by XORing with ihsame sequence djw // CSEP 561, Autumn 2010 L2.19

Passband transmission i For wireless, fiber, need to encode signal by modulating carrier wave can t propagate at baseband Carrier frequency set by assigned bandwidth, e.g., 2.45GHz WiFi Modulation: can change carrier Amplitude Phase/frequency djw // CSEP 561, Autumn 2010 L2.20

Modulation examples (a) A binary signal (b) Amplitude shift keying (c) Frequency shift keying (d) Phase shift keying djw // CSEP 561, Autumn 2010 L2.21

Constellations ti Express modulation as a constellation Points are amplitude/phase modulations for valid symbols Many names for schemes: BPSK, QPSK QAM QAM 16 constellation in 3G (HSPDA) djw // CSEP 561, Autumn 2010 L2.22

BER versus SNR Need higher SNR for more complex modulations to keep a low bit error rate djw // CSEP 561, Autumn 2010 L2.23

4. Abstract t model of a link 11110010 (i (signal) 11110010 Host A Host B What really happens Network interface cards (NICs) (also called network adaptors ) Message M Delay D, Rate R Abstract link for our purposes djw // CSEP 561, Autumn 2010 L2.24

Model Message Mbit bits Rate R Mbps Delay D seconds Typically all we will need (but not so good for wireless!) Other parameters that are important: Whether the media is broadcast or not The kind and frequency of errors (bit error rate, BER) djw // CSEP 561, Autumn 2010 L2.25

Message Latency How long does it take to send a message? Message M Delay D, Rate R Two terms: Propagation delay = distance / speed of signal in media How quickly a message travels over the wire 2/3c for copper wire Transmission delay = message (bits) / rate (bps) How quickly you can inject the message onto the wire Later we will see queuing delay djw // CSEP 561, Autumn 2010 L2.26

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 djw // CSEP 561, Autumn 2010 L2.27

Bandwidth-delay product: 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 BD tells us how much data we could send before hearing back from the receiver something related to the first bit sent. djw // CSEP 561, Autumn 2010 L2.28

BD Example BD = 50ms * 45Mbps = 2.2525 * 10^6 = 280KB 101100 11 001010101010101010111 0010101010101010101 djw // CSEP 561, Autumn 2010 L2.29

Wireless versus Wired links Wireless complications: Broadcast channel has interference effects Link capacity varies lots over time, e.g., as endpoints move Which wireless links are up even varies over time Endpoint moves SNR changes due to RF effects rate must go down if SNR falls to keep low BER; or rate wants to go up if SNR rises to use spectrum efficiently Wired is about engineering the right link properties Wireless is about adapting to the channel capacity djw // CSEP 561, Autumn 2010 L2.30