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

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

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

Lecture 2: Links and Signaling"

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

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

Encoding and Framing

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

CSCI-1680 Physical Layer Rodrigo Fonseca

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

Computer Networks

Physical Layer. Networked Systems (H) Lecture 3

CSE 461 Bits and Links. David Wetherall

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Lecture 5 Transmission

Chapter 4 Digital Transmission 4.1

CSE 461: Bits and Bandwidth. Next Topic

Fundamentals of Data and Signals

CSEP 561 Bits and Links. David Wetherall

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

Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

COMP467. Local Asynchronous Communication. Goals. Data is usually sent over a single channel one bit at a time.

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

Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

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

Basic Concepts in Data Transmission

Physical Layer. Networked Systems Architecture 3 Lecture 6

C06a: Digital Modulation

Channel Concepts CS 571 Fall Kenneth L. Calvert

Digital Transmission

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

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

Physical Layer. Networked Systems 3 Lecture 5

SEN366 Computer Networks

Module 3: Physical Layer

The Physical Layer Outline

CPSC Network Programming. How do computers really communicate?

Chapter 2. Physical Layer

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

Lecture 3 Concepts for the Data Communications and Computer Interconnection

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Introduc)on to Computer Networks

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

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

CSE123A discussion session

Chapter 2: Fundamentals of Data and Signals

Lecture 3: Data Transmission

Ș.l. dr. ing. Lucian-Florentin Bărbulescu

Lecture-8 Transmission of Signals

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

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

Data Communications and Networking (Module 2)

Physical Layer: Outline

Basic Communications Theory Chapter 2

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

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

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

King Fahd University of Petroleum & Minerals Computer Engineering Dept

Chapter 3 Digital Transmission Fundamentals

ITM 1010 Computer and Communication Technologies

Fundamentals of Digital Communication

Digital Transmission

Lecture 3: Error Handling

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

Chapter 12: Digital Modulation and Modems

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

CS601-Data Communication Latest Solved Mcqs from Midterm Papers

CS601 Data Communication Solved Objective For Midterm Exam Preparation

CS311: Data Communication Transmission Impairments and Channel Capacity. Assistant Professor Dept. of CSE IIT Jodhpur

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

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

Communication Limits. Goals. Parity. RS-232 Format

Computer Networks Chapter 2: Physical layer

Lecture 8: Media Access Control

ITL Basics of Encoding and Wiring

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

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

ECE 435 Network Engineering Lecture 4

Module 7 Bandwidth and Maximum Data Rate of a channel

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Computer Networks - Xarxes de Computadors

Chapter 3 Data and Signals

Data Communications & Computer Networks

Transmission Impairments

Signal Encoding Techniques

In this lecture. System Model Power Penalty Analog transmission Digital transmission

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

Data Communication (CS601)

Transmission Principles

Representation of Information. Transmission Principles. Agenda. Transmission of Information

Digital to Digital Encoding

Physical Layer. Networks: Physical Layer 1

Data Communication. Chapter 3 Data Transmission

Digital Communication (650533) CH 3 Pulse Modulation

Point-to-Point Communications

Text Book: Simon Haykin & Michael Moher,

Pulse Code Modulation

Downloaded from 1

Outline. EEC-484/584 Computer Networks. Homework #1. Homework #1. Lecture 8. Wenbing Zhao Homework #1 Review

Transcription:

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

Lecture 3 Overview Signaling constraints Shannon s Law Nyquist Limit Encoding schemes Clock recovery Manchester, NRZ, NRZI, etc. 2

Ways to measure a channel How fast? Bandwidth measured in bits per second» Yes, this is an abuse of terminology sorry. Often talk about KBps or Mbps Bytes vs bits How long was the wait? Delay (one-way or round trip) measured in seconds How efficiently? Overhead measured in bits or seconds or cycles or Any mistakes? Error rate measured in terms of probability of flipped bit 3

Ok, recall from last class No channel is perfect and the original signal gets modified along the way Attenuation: signal power absorbed by medium Distortion: frequency, phase changes Noise: random background signals response ideal actual B freq Different mediums distort different signals differently Note: that here bandwidth means frequency over which signals cannot pass through channel

Sampling To reconstruct signal we need to sample it

Intersymbol Interference Bandlimited channels cannot respond faster than some maximum frequency f Channel takes some time to settle Attempting to signal too fast will mix symbols Previous symbol still settling in Mix (add/subtract) adjacent symbols Leads to intersymbol interference (ISI) OK, so just how fast can we send symbols? 6

Speed Limit: Nyquist In a channel bandlimited to f, we can send at maximum symbol (baud) rate of 2f without ISI 7

Multiple Bits per Symbol Nyquist limits the number of symbols per second we can send, but doesn t talk about the information content in each symbol Couldn t we send multiple bits per symbol E.g., multiple voltage levels instead of just high/low Four levels gets you two bits, log 2 M in general (M levels) Can combine this observation with Nyquist Channel capacity: C < 2 B log 2 (M) Why not infinite levels? Infinite bandwidth no? 8

Noise matters Real channels are noisy noise creates measurement challenges Example: Encode 4 values using voltage» 2 bits per symbol» Symbols at 3V, 2V, 1V and 0V What if noise is 0.5V?» If you get line level of 2.5V then what symbol is it? 11 or 10? Limited to ~ log 2 (S/2N) bits per symbol (S = signal power, N = Noise) Previous example: S = 3V-0V=3V, N=0.5V, so we can have log 2 (3/1) = 1.58 bits per symbol 3V 0V 1 0 00 0110 11 3V 2V 1V 0V 9

Shannon s Law Shannon considered noisy channels and derived C = B log (1 + S/N) Gives us an upper bound on any channel s performance regardless of signaling scheme Old school modems approached this limit B = 3000Hz, S/N = 30dB = 1000 C = 3000 x log(1001) =~ 30kbps 28.8Kbps anyone remember dialup? 10

How long to send a message? Transmit time T = M/R + D 10 Mbps Ethernet LAN (M=1KB)» M/R = ~1 ms, D = ~5 us 155 Mbps cross country ATM link (M=1KB)» M/R = ~50 us, D = 40-100 ms Where are the bits in the mean time? In transit inside the network ( in the pipe ) R*D is called the bandwidth-delay product How many bits can be stored be stored in transit Colloquially, we say fill the pipe 11

Common Link Speeds Copper based off of old phone-line provisioning Basic digital service was 64-Kbps ISDN line Everything else is an integer multiple» T-1 is 24 circuits 24 * 64 = 1.544 Mbps» T-3 is 28 T-1s, or 28 * 1.544 = 44.7 Mbps Optical links based on STS standard STS is electrical signaling, OC is optical transmission Base speed comes from STS-1 at 51.84 Mbps OC-3 is 3 * 51.84 = 155.25 Mbps Move to asymmetric link schemes Your service at home is almost surely DOCSIS or ADSL 12

Next problem: Clock recovery How does the receiver know when to sample the signal? Sampling rate: How often to sample? Sampling phase:» When to start sampling? (getting in phase)» How to adjust sampling times (staying in phase)

Why the sampling rate matters Signal could have multiple interpretations Which of these is correct? 0 0 1 1 0 0 1 1 Signal 0 1 0 1 Signal 14

Nyquist Revisited Sampling at the correct rate (2f) yields actual signal Always assume lowest-frequency wave that fits samples Sampling too slowly yields aliases 15

The Importance of Phase Need to determine when to START sampling, too 16

Clock Recovery Using a training sequence to get receiver lined up Send a few, known initial training bits Adds inefficiency: only m data bits out of n transmitted Need to combat clock drift as signal proceeds Use transitions to keep clocks synched up Question is, how often do we do this? Quick and dirty every time: asynchronous coding Spend a lot of effort to get it right, but amortize over lots of data: synchronous coding 17

Asynchronous Coding Encode several bits (e.g. 7) together with a leading start bit and trailing stop bit Data can be sent at any time Start bit transition kicks of sampling intervals Can only run for a short while before drifting 18

Example: RS232 serial lines Uses two voltage levels (+15V, -15V), to encode single bit binary symbols Needs long idle time limited transmit rate +15 Voltage + -15 idle start 1 0 0 1 1 0 0 stop idle Time Courtesy Robin Kravets 19

Synchronous coding Encode many bits (thousands) together Amortize cost of learning clock information from start bits (preamble) and stop bits (trailer) Continuously learn clock from data stream Examples» Watch for 0-1 or 1-0 transitions, and adjust clock» Called clock recovery process NRZ NRZI Manchester 4B/5B Many others 20

Summary Signaling & Modulation Transforming digital signal to and from analog representation Fundamental limits (Shannon) Lots of ways to encode signal (modulation) onto a given medium Clock recovery Receiver needs to adjust its sampling times to best extract signal from channel Sender can code signal to make it far easier to do this 21

For Next Class Read 2.3 Layering next 22