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

Similar documents
Lecture 2: Links and Signaling"

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

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

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

Lecture 21: Links and Signaling

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

Lecture 5 Transmission

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Physical Layer. Networked Systems Architecture 3 Lecture 6

Computer Networks

Physical Layer. Networked Systems 3 Lecture 5

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

CSE 461: Bits and Bandwidth. Next Topic

Physical Layer. Networked Systems (H) Lecture 3

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

Chapter 2. Physical Layer

CSE 461 Bits and Links. David Wetherall

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

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

Encoding and Framing

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

Basic Concepts in Data Transmission

The Physical Layer Outline

CSEP 561 Bits and Links. David Wetherall

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

Physical Layer: Outline

CSCI-1680 Physical Layer Rodrigo Fonseca

CSE 561 Bits and Links. David Wetherall

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

Chapter 4 Digital Transmission 4.1

Signal Encoding Techniques

CPSC Network Programming. How do computers really communicate?

Lecture 3 Concepts for the Data Communications and Computer Interconnection

C06a: Digital Modulation

CSE123A discussion session

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

SEN366 Computer Networks

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

Introduction to LAN/WAN. Physical Layer

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

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

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

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

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

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

ECE 435 Network Engineering Lecture 16

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

Lecture 3: Data Transmission

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Data Communications and Networking (Module 2)

Fundamentals of Data and Signals

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

Module 3: Physical Layer

Physical Layer. Networks: Physical Layer 1

Chapter 2: Fundamentals of Data and Signals

Fundamentals of Digital Communication

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

Computer Networks Chapter 2: Physical layer

Class 4 ((Communication and Computer Networks))

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

Point-to-Point Communications

UNIT-1. Basic signal processing operations in digital communication

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Data Communications & Computer Networks

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

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

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

CS441 Mobile & Wireless Computing Communication Basics

ECE 435 Network Engineering Lecture 4

Channel Concepts CS 571 Fall Kenneth L. Calvert

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

ECE 435 Network Engineering Lecture 20

Chapter-1: Introduction

Data Communication. Chapter 3 Data Transmission

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

COMP211 Physical Layer

Downloaded from 1

DATA TRANSMISSION. ermtiong. ermtiong

IST 220 Exam 1 Notes Prepared by Dan Veltri

Digital Communication

Lecture Fundamentals of Data and signals

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

Chapter 3 Data Transmission COSC 3213 Summer 2003

a. Find the minimum number of samples per second needed to recover the signal without loosing information.

Lecture-8 Transmission of Signals

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

Data and Computer Communications. Chapter 3 Data Transmission

Chapter 3. Data Transmission

Fundament Fundamen als t of Communications

ITL Basics of Encoding and Wiring

ITM 1010 Computer and Communication Technologies

Signal Encoding Techniques

EC 554 Data Communications

Overview. Lecture 3. Terminology. Terminology. Background. Background. Transmission basics. Transmission basics. Two signal types

Data Communications and Networks

Data Communication (CS601)

Introduc)on to Computer Networks

Basic Communications Theory Chapter 2

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

Transcription:

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

Signaling Types of physical media 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 CSE 123 Lecture 1: Course Introduction! 2

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 CSE 123 Lecture 2: Links and Signaling! 3

CSE 123 Lecture 2: Links and Signaling! 4

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 CSE 123 Lecture 2: Links and Signaling! 5

Every channel degrades a signal Distortion impacts how the receiver will interpret signal response ideal actual freq B CSE 123 Lecture 2: Links and Signaling! 6

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 CSE 123 Lecture 2: Links and Signaling! 7

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 CSE 123 Lecture 2: Links and Signaling! 8

Typical examples Multimode Fiber 100Mbps 2km Single Mode Fiber 100-2400Mbps 40km Cheaper to drive (LED vs laser) & terminate Longer distance (low attenuation) Higher data rates (low dispersion) CSE 123 Lecture 2: Links and Signaling! 9

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 ADSL CSE 123 Lecture 2: Links and Signaling! 10

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 CSE 123 Lecture 2: Links and Signaling! 11

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, anyone? Time (min) CSE 123 Lecture 2: Links and Signaling! 12

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 CSE 123 Lecture 2: Links and Signaling! 13

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 CSE 123 Lecture 2: Links and Signaling! 14

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 CSE 123 Lecture 2: Links and Signaling! 15

Input Signal Amplitude Shift Keying (ASK) Frequency Shift Keying (FSK) Phase Shift Keying (PSK) CSE 120 Lecture 1: Course Introduction! 16

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 CSE 123 Lecture 2: Links and Signaling! 17

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? CSE 123 Lecture 2: Links and Signaling! 18

In a channel bandlimited to f, we can send at maximum symbol (baud) rate of 2f without ISI CSE 123 Lecture 2: Links and Signaling! 19

OK, but why not send multiple bits per symbol E.g., multiple voltage levels instead of just high/low Four levels gets you two bits, log L in general Could we define an infinite number of levels? Channel noise limits bit density Intuitively, need level separation Only get log(s/2n) bits per symbol Can combine this observation with Nyquist C < 2 B log(s/2n) in a perfect channel, but CSE 123 Lecture 2: Links and Signaling! 20

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? CSE 123 Lecture 2: Links and Signaling! 21

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 CSE 123 Lecture 2: Links and Signaling! 22

Sampling at the correct rate (2f) yields actual signal Always assume lowest-frequency wave that fits samples Sampling too slowly yields aliases CSE 123 Lecture 2: Links and Signaling! 23

Need to determine when to START sampling, too CSE 123 Lecture 2: Links and Signaling! 24

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 CSE 123 Lecture 2: Links and Signaling! 25

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 CSE 123 Lecture 2: Links and Signaling! 26

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 CSE 123 Lecture 2: Links and Signaling! Courtesy Robin Kravets 27

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 Ever hear of Phase Lock Looks (PLLs)? Basic idea is to use transitions to lock in CSE 123 Lecture 2: Links and Signaling! 28

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 CSE 123 Lecture 2: Links and Signaling! Courtesy Robin Kravets 29

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 CSE 123 Lecture 2: Links and Signaling! Courtesy Robin Kravets 30

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 CSE 123 Lecture 2: Links and Signaling! Courtesy Robin Kravets 31

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 4-bit 5-bit 0000 11110 0001 01001 0010 10100 0011 10101 0100 01010 0101 01011 0110 01110 0111 01111 CSE 123 Lecture 2: Links and Signaling! 1000 10010 1001 10011 1010 10110 1011 10111 1100 11010 1101 11011 1110 11100 1111 11101 32

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 CSE 123 Lecture 2: Links and Signaling! 33

Read 2.3 Log into Moodle; let me know if you have problems Get started on Project 1! CSE 123 Lecture 2: Links and Signaling! 34