Lecture 3: Signaling and Clock Recovery. CSE 123: Computer Networks Stefan Savage



Similar documents
EECC694 - Shaaban. Transmission Channel

CS423: Lectures 2-4, Physical Layer. George Varghese. April 16, 2008

Data Transmission. Data Communications Model. CSE 3461 / 5461: Computer Networking & Internet Technologies. Presentation B

How To Encode Data From A Signal To A Signal (Wired) To A Bitcode (Wired Or Coaxial)

Public Switched Telephone System

1. (Ungraded) A noiseless 2-kHz channel is sampled every 5 ms. What is the maximum data rate?

Analog vs. Digital Transmission

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

Physical Layer, Part 2 Digital Transmissions and Multiplexing

- T-Carrier Technologies -

15-441: Computer Networks Homework 1

Data Transmission. Raj Jain. Professor of CIS. The Ohio State University. Columbus, OH

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Unit of Learning # 2 The Physical Layer. Redes de Datos Sergio Guíñez Molinos sguinez@utalca.cl

INTRODUCTION TO COMMUNICATION SYSTEMS AND TRANSMISSION MEDIA

(Refer Slide Time: 2:10)

What s The Difference Between Bit Rate And Baud Rate?

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

5 Data Communication and Networking

MODULATION Systems (part 1)

IT Data Communication and Networks (Optional)

Digital Transmission (Line Coding)

Telecommunications, Networks, and Wireless Computing

Introduction to Digital Subscriber s Line (DSL)

Digital Transmission of Analog Data: PCM and Delta Modulation

IT4405 Computer Networks (Compulsory)

Process Control and Automation using Modbus Protocol

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Next Generation of High Speed. Modems8

COMPUTERS ARE YOUR FUTURE CHAPTER 8 WIRED & WIRELESS COMMUNICATION

Think! Think! Data communications. Long-Distance. Modems: to analog and back. Transmission Media. The last mile is the hardest for digital information

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Chap#5 (Data communication)

Computers Are Your Future Prentice-Hall, Inc.

BROADBAND AND HIGH SPEED NETWORKS

Chapter 2 - The TCP/IP and OSI Networking Models

Solution. (Chapters ) Dr. Hasan Qunoo. The Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department

TCOM 370 NOTES 99-6 VOICE DIGITIZATION AND VOICE/DATA INTEGRATION

C Information Systems for Managers Fall 1999

Mobile Communications Chapter 2: Wireless Transmission

Data Communications & Networks. Session 3 Main Theme Data Encoding and Transmission. Dr. Jean-Claude Franchitti

EECS 122: Introduction to Computer Networks Multiaccess Protocols. ISO OSI Reference Model for Layers

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

Digital Subscriber Line (DSL) Transmission Methods

The OSI & Internet layering models

: Instructor

ADSL or Asymmetric Digital Subscriber Line. Backbone. Bandwidth. Bit. Bits Per Second or bps

1.264 Lecture 32. Telecom: Basic technology. Next class: Green chapter 4, 6, 7, 10. Exercise due before class

Digital Modulation. David Tipper. Department of Information Science and Telecommunications University of Pittsburgh. Typical Communication System

Chapter 1: roadmap. Access networks and physical media

Fast Ethernet and Gigabit Ethernet. Networks: Fast Ethernet 1

Network Edge and Network Core

CTS2134 Introduction to Networking. Module 07: Wide Area Networks

Introduction to Computer Networks and Data Communications

Lecture 2 Outline. EE 179, Lecture 2, Handout #3. Information representation. Communication system block diagrams. Analog versus digital systems

Token Ring and. Fiber Distributed Data Interface (FDDI) Networks: Token Ring and FDDI 1

What Does Communication (or Telecommunication) Mean?

Fast Ethernet and Gigabit Ethernet. Computer Networks: Fast and Gigabit Ethernet

10/13/2008 Vasile Dadarlat --Computer Networks 1

Protocols. Packets. What's in an IP packet

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

Chapter 5. Data Communication And Internet Technology

Duobinary Modulation For Optical Systems

CSCI Topics: Internet Programming Fall 2008

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Lecture 2: Protocols and Layering. CSE 123: Computer Networks Stefan Savage

CS263: Wireless Communications and Sensor Networks

Multiplexing on Wireline Telephone Systems

NXU RoIP Link to Eliminate Voice-Grade Leased Line

CHAPTER 8 MULTIPLEXING

NRZ Bandwidth - HF Cutoff vs. SNR

Long Distance Connection and WAN

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

PCM Encoding and Decoding:

How To Get High Speed Internet In Australia

THE BCS PROFESSIONAL EXAMINATIONS BCS Level 5 Diploma in IT. October 2009 EXAMINERS' REPORT. Computer Networks

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Chapter 4 Connecting to the Internet through an ISP

Network Design. Yiannos Mylonas

DATA NETWORKING : Dr. Nawaporn Wisitpongphan nawapornn@kmutnb.ac.th

Broadband Technology Clinic. Burlington Telecom Advisory Board

Network Performance: Networks must be fast. What are the essential network performance metrics: bandwidth and latency

Chapter 7: Computer Networks, the Internet, and the World Wide Web. Invitation to Computer Science, C++ Version, Third Edition

Fundamentals of Telecommunications

Attenuation (amplitude of the wave loses strength thereby the signal power) Refraction Reflection Shadowing Scattering Diffraction

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

SHEET 5 CABLE TELEVISION SYSTEM

Lab 5 Getting started with analog-digital conversion

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

ADSL part 2, Cable Internet, Cellular

Communication Networks. MAP-TELE 2011/12 José Ruela

Frequently Asked Questions

Clocking. Clocking in the Digital Network

Introduction to Wireless Communications and Networks

DATA COMMUNICATIONS AND NETWORKING. Solved Examples

5 Signal Design for Bandlimited Channels

Internet Public Network

Wireless Links - Wireless communication relies on radio signals or infrared signals for transmitting data.

Transcription:

Lecture 3: Signaling and Clock Recovery CSE 123: Computer Networks Stefan Savage

Last time Protocols and layering Application Presentation Session Transport Network Datalink Physical Application Transport Network Datalink Physical Layer encapsulation via packet headers Ethernet Hdr IP Hdr TCP Hdr HTTP Hdr datalink network transport application Payload (Web object)

Today How to send data from point A to point B over some link?

Copper Typical examples Category 5 Twisted Pair 10-1Gbps 50-100m Coaxial Cable 10-100Mbps 200m twisted pair coaxial cable (coax) copper core insulation braided outer conductor outer insulation 4

Fiber Optics Typical examples Multimode Fiber 10Gbps 300m Single Mode Fiber 100Gbps 25km Cheaper to drive (LED vs laser) & terminate Longer distance (low attenuation) Higher data rates (low dispersion) 5

Wireless Widely varying channel bandwidths/distances Extremely vulnerable to noise and interference 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 6

Aside: Wireless spectrum Shared medium -> regulated use Wireless frequency allocations

Spectrum Allocation Policy approach forces spectrum to be allocated like a fixed spatial resource (e.g. land, disk space, etc) Reality is that spectrum is time and power shared Measurements show that fixed allocations are poorly utilized0 Frequency (Hz) Whitespaces? Time (min) 8

Overview for today Digital Signaling Why? Shannon s Law and Nyquist Limit Encoding schemes Clock recovery Manchester, NRZ, NRZI, etc. A lot of this material is not in the book Caveat: I am not an EE Professor 9

Signals: 10,000 foot review of digital vs analog Data can be represented continuously as an analog wave Or as a series of discrete digital symbols Why is the digital representation so powerful? Noise resistance: has to be a 0 or 1 0 0 1 0 1 1 1 0 0 0 1 Storage/reproducibility: analog waves can be converted to digital for storage and then back to analog (think about CDs)

Overall Goal: Send bits A three-step process Take an input stream of bits (digital data) Modulate some physical media to send data (analog) Demodulate the signal to retrieve bits (digital again) Anybody heard of a modem (Modulator-demodulator)? digital data (a string of symbols) modulation a signal demodulation digital data (a string of symbols) 0101100100100 0101100100100 11

A Simple Signaling System 12

Signals and Channels A signal is some form of energy (light, voltage, etc) Varies with time (on/off, high/low, etc.) Can be continuous or discrete We assume it is periodic with a fixed frequency A channel is a physical medium that conveys energy Any real channel will distort the input signal as it does so How it distorts the signal depends on the signal and the channel 13

Channel Properties Bandwidth-limited Range of frequencies the channel will transmit Means the channel is slow to react to change in signal Power attenuates over distance Signal gets softer (harder to hear ) the further it travels Different frequencies have different response (distortion) Background noise or interference May add or subtract from original signal Different physical characteristics Point-to-point vs. shared media Very different price points to deploy 14

Channel Challenges Every channel degrades a signal Distortion impacts how the receiver will interpret signal response ideal actual freq B 15

Impact of distortion & noise

Two Main Tasks First we need to transmit a signal Determine how to send the data, and how quickly Then we need to receive a (degraded) signal Figure out when someone is sending us bits Determine which bits they are sending A lot like a conversation WhatintheworldamIsaying needs punctuation and pacing Helps to know what language I m speaking 17

The Magic of Sine Waves All periodic signals can be expressed as sine waves Component waves are of different frequencies Sine waves are nice Phase shifted or scaled by most channels Easy to analyze Fourier analysis can tell us how signal changes But not in this class 18

Carrier Signals Baseband modulation: send the bare signal E.g. +5 Volts for 1, -5 Volts for 0 All signals fall in the same frequency range Broadband modulation Use the signal to modulate a high frequency signal (carrier). Can be viewed as the product of the two signals Amplitude Amplitude Signal Carrier Frequency Modulated Carrier 19

Forms of Digital Modulation Input Signal Amplitude Shift Keying (ASK) Frequency Shift Keying (FSK) Phase Shift Keying (PSK) CSE 120 Lecture 1: Course Introduction 20

Why Different Schemes? Properties of channel and desired application AM vs FM for analog radio Efficiency Some modulations can encode many bits for each symbol (subject to Shannon limit) Aiding with error detection Dependency between symbols can tell if a symbol wasn t decoded correctly Transmitter/receiver Complexity 21

Inter-symbol 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 inter-symbol interference (ISI) OK, so just how fast can we send symbols? 22

Speed Limit: Nyquist In a channel bandlimited to frequency f, we can send at maximum symbol (baud) rate of 2f without ISI Directly related to Nyquist sampling theorem Can reconstruct signal with maximum frequency f, by sampling at least 2f times per second 23

Multiple Bits per Symbol OK, but why not send multiple bits per symbol? E.g., instead of 3V=1 and 0V=0, multiple levels» 0V=00, 1V=01, 2V=10, 3V=11, etc 3V 0V 1 0 Four levels gets you two bits, log L in general 11 00 0110 3V 2V 1V 0V Could we define an infinite number of levels? 24

Shannon s law: noise kills S= signal power, N= noise Channel noise limits bit density Intuitively, need level separation» E.g., what if noise is 0.5V and you read signal of 1.5V.. what symbol is that? Can only get log(s/2n) bits per symbol Can combine this observation with Nyquist (and some more math) C = B log (1 + S/N) Shannon/Nyquist Capacity limit Example: old modems (B=3000Hz, S/N=30dB = 1000) C = 3000 x log(1001) =~ 30kbps 25

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)

Sampling at the Receiver Need to determine correct sampling frequency Signal could have multiple interpretations Which of these is correct? 0 0 1 1 0 0 1 1 Signal 0 1 0 1 Signal 27

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

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

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 30

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 31

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 0stop idle Time 32

Synchronous Coding Asynchronous receiver phase locks each symbol Takes time, limiting transmission rates So, start symbols need to be extra slow Need to fire up the clock, which takes time Instead, let s do this training once, then just keep sync Need to continually adjust clock as signal arrives Phase Lock Loops (PLLs)? Basic idea is to use transitions to lock in 33

Non-Return to Zero (NRZ) Signal to Data High 1 Low 0 Comments Transitions maintain clock synchronization Long strings of 0s confused with no signal Long strings of 1s causes baseline wander» We use average signal level to infer high vs low Both inhibit clock recovery Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ 34

Non-Return to Zero Inverted (NRZI) Signal to Data Transition 1 Maintain 0 Comments Solves series of 1s, but not 0s Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ NRZI 35

Manchester Encoding Signal to Data XOR NRZ data with senders clock signal High to low transition 1 Low to high transition 0 Comments Solves clock recovery problem Only 50% efficient ( ½ bit per transition) Still need preamble (typically 0101010101 trailing 11 in Ethernet) Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ Clock Manchester 36

4B/5B (100Mbps Ethernet) Goal: address inefficiency of Manchester encoding, while avoiding long periods of low signals Solution: Use five bits to encode every sequence of four bits No 5 bit code has more than one leading 0 and two trailing 0 s Use NRZI to encode the 5 bit codes Efficiency is 80% 4-bit 5-bit 0000 11110 0001 01001 0010 10100 0011 10101 0100 01010 0101 01011 0110 01110 0111 01111 4-bit 5-bit 1000 10010 1001 10011 1010 10110 1011 10111 1100 11010 1101 11011 1110 11100 1111 11101 37

Summary Two basic tasks: send and receive The trouble is the channel distorts the signal Transmission modulates some physical carrier Lots of different ways to do it, various efficiencies Receiver needs to recover clock to correctly decode All real clocks drift, so needs to continually adjust The encoding scheme can help a lot

For Next Class Framing and error detection Read 2.3-2.4 HW #1 is assigned due next Tues 39