Physical Layer: Outline

Similar documents
Chapter 3 Digital Transmission Fundamentals

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

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

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

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Lecture 5 Transmission

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

Chapter 3 Digital Transmission Fundamentals

Chapter 2. Physical Layer

Physical Layer. Networks: Physical Layer 1

Lecture 3: Data Transmission

Chapter 3 Digital Transmission Fundamentals

Basic Concepts in Data Transmission

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

Lecture Fundamentals of Data and signals

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

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

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

Signal Characteristics

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

Data Communication. Chapter 3 Data Transmission

The quality of the transmission signal The characteristics of the transmission medium. Some type of transmission medium is required for transmission:

Computer Networks

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

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

Data Communications & Computer Networks

Chapter 3. Data Transmission

Part II Data Communications

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

Chapter 3 Data and Signals

COMP211 Physical Layer

CS441 Mobile & Wireless Computing Communication Basics

The Physical Layer Outline

Encoding and Framing

Course 2: Channels 1 1

EC 554 Data Communications

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

CPSC Network Programming. How do computers really communicate?

Point-to-Point Communications

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

Wireless Intro : Computer Networking. Wireless Challenges. Overview

Introduction to LAN/WAN. Physical Layer

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

ECE 435 Network Engineering Lecture 16

DATA TRANSMISSION. ermtiong. ermtiong

Outline / Wireless Networks and Applications Lecture 5: Physical Layer Signal Propagation and Modulation

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Lecture 2: Links and Signaling"

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

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

IST 220 Exam 1 Notes Prepared by Dan Veltri

Data and Computer Communications Chapter 3 Data Transmission

ECE 435 Network Engineering Lecture 20

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

Lecture 2 Physical Layer - Data Transmission

CSE 461 Bits and Links. David Wetherall

Chapter 3 Data Transmission COSC 3213 Summer 2003

Data and Computer Communications. Chapter 3 Data Transmission

UNIT-1. Basic signal processing operations in digital communication

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

Outline / Wireless Networks and Applications Lecture 2: Networking Overview and Wireless Challenges. Protocol and Service Levels

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

CS307 Data Communication

ENGR 4323/5323 Digital and Analog Communication

CSEP 561 Bits and Links. David Wetherall

CSE 561 Bits and Links. David Wetherall

Fundamentals of Digital Communication

Transmission Impairments

Downloaded from 1

Chapter 3 Data Transmission

Data Encoding g(p (part 2)

Data Transmission (II)

Data Communications and Networks

Signals and Systems Lecture 9 Communication Systems Frequency-Division Multiplexing and Frequency Modulation (FM)

Cable Testing TELECOMMUNICATIONS AND NETWORKING

ITM 1010 Computer and Communication Technologies

DATA COMMUNICATION. Channel and Noise

Chapter-1: Introduction

Some key functions implemented in the transmitter are modulation, filtering, encoding, and signal transmitting (to be elaborated)

L(f) = = (f) G(f) L2(f) Transmission Impairments: Attenuation (cont.)

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

TE 302 DISCRETE SIGNALS AND SYSTEMS. Chapter 1: INTRODUCTION

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

Chapter 3 Data and Signals 3.1

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

Physical Layer. Networked Systems (H) Lecture 3

2. TELECOMMUNICATIONS BASICS

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

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

INTRODUCTION TO COMMUNICATION SYSTEMS AND TRANSMISSION MEDIA

Revision Guide for Chapter 3

Data Transmission. ITS323: Introduction to Data Communications. Sirindhorn International Institute of Technology Thammasat University ITS323

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

EE 304 TELECOMMUNICATIONs ESSENTIALS HOMEWORK QUESTIONS AND ANSWERS

Lecture 3 Concepts for the Data Communications and Computer Interconnection

MSIT 413: Wireless Technologies Week 4

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

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

Pulse Code Modulation

Transcription:

18-345: Introduction to Telecommunication Networks Lectures 3: Physical Layer Peter Steenkiste Spring 2015 www.cs.cmu.edu/~prs/nets-ece Physical Layer: Outline Digital networking Modulation Characterization of Communication Channels Fundamental Limits in Digital Transmission Modems and Digital Modulation Line Coding Properties of Media and Digital Transmission Systems Error Detection and Correction 1 2 Digital Networks Digital transmission enables networks to support many services TV E-mail Telephone Analog versus Digital Information Analog information takes on continuous values Sound, images, etc. Digital information takes on discrete values Text, banking data, etc. Can convert between the two representations of information Sampling and interpolation 3 4 1

Block vs. Stream Information Block Information that occurs in a single block Text message Data file JPEG image MPEG file Size = bits / block or Bytes/block 1 KByte (KB) = 2 10 bytes 1 MByte (MB) = 2 20 bytes 1 GByte (GB) = 2 30 bytes Stream Information that is produced & transmitted continuously Real-time voice Streaming video Bit rate = bits / second 1 Kbps = 10 3 bps 1 Mbps = 10 6 bps 1 Gbps = 10 9 bps Many Types of Information Stream Block Analog Voice, video Images, radar map, Digital Stock market Spreadsheets, text file, 5 6 Traditional Communication Options Send analog information over analog networks Voice over the telephone network Video using broadcast TV Pictures using the USPS Send digital information over digital networks Messages via telegraph: beacons electrical Internet: many applications, e.g., ftp, (text) email, bboards, telnet, initially now social networks, But Can Mix and Match Analog information can be digitized and sent over digital network Video becomes MPEG Image becomes JPEG Digital networks use analog channels Bits are encoded on analog waveforms But switching is done based on the bits 7 8 2

Example Why Use a Single Digital Network? JPEG Modem IP Telephone Network Optical Backbone JPEG Modem Economically advantageous to have a single network Multimedia applications want to mix different types of data More convenient if a single networks is used Computers operate only on digital data Digital transmission can recover from errors (e.g. noise, distortion) Not possible when transmitting analog information over an analog network 9 10 Analog Transmission All details must be reproduced accurately Why digital? Problem with Analog Long- Distance Communications Transmission segment Source Repeater... Repeater Destination Sent Distortion Attenuation Received 11 Each repeater attempts to restore analog signal to its original form Restoration is imperfect Distortion is not completely eliminated Noise & interference is only partially removed Signal quality decreases with # of repeaters Communications becomes distance-limited Still used in analog cable TV systems Analogy: Copy a song using a cassette recorder 12 3

Digital Transmission Only discrete levels need to be reproduced Digital Long-Distance Communications Transmission segment Source Regenerator... Regenerator Destination Sent Distortion Attenuation Received Simple Receiver: Was original pulse positive or negative? Regenerator recovers original data sequence and retransmits on next segment Can design so error probability is very small Then each regeneration is like the first time! Analogy: copy an MP3 file Communications is possible over very long distances Digital systems advantage over analog systems Less power, longer distances, lower system cost Monitoring, multiplexing, coding, encryption, protocols 13 14 Physical Layer: Outline Digital networking Modulation Characterization of Communication Channels Fundamental Limits in Digital Transmission Modems and Digital Modulation Line Coding Properties of Media and Digital Transmission Systems Error Detection and Correction 15 Transferring Information Information transfer is a physical process In this class, we generally care about Electrical signals (on a wire) Optical signals (in a fiber) More broadly, EM waves Information carriers can be very diverse: Sound waves,quantum states, proteins, ink & paper, etc. Quote: You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. 16 4

Modulation Changing a signal to convey information Ways to modulate a sinusoidal wave In music: Amplitude Modulation (AM) Volume Frequency Modulation (FM) Pitch Phase Modulation (PM) Timing Amplitude Frequency Modulation Examples 0 0 1 1 0 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 0 1 1 0 0 0 1 In our case, modulate signal to encode a 0 or a 1. (multi-valued signals sometimes) Analog is the same value just changes continuously Phase 17 18 Why Different Modulation Methods? Offers choices with different tradeoffs: Transmitter/Receiver complexity Power requirements Bandwidth Medium (air, copper, fiber, ) Noise immunity Range Multiplexing More on this next lecture Physical Layer: Outline Digital networks Modulation Characterization of Communication Channels Fundamental Limits in Digital Transmission Modems and Digital Modulation Line Coding Properties of Media and Digital Transmission Systems Error Detection and Correction 19 20 5

Questions of Interest How long will it take to transmit a message? How many bits are in the message (text, image)? How fast does the network/system transfer information? Can a network/system handle a voice (video) call? How many bits/second does voice/video require? At what quality? How long will it take to transmit a message without errors? How are errors introduced? How are errors detected and corrected? What transmission speed is possible over radio, copper cables, fiber, infrared,? Transmitter A Communications System Communication channel Receiver Transmitter Converts information into a signal suitable for transmission Injects energy into communications medium or channel Telephone converts voice into electric current Wireless LAN card converts bits into electromagnetic waves Receiver Receives energy from medium Converts received signal into a form suitable for delivery to user Telephone converts current into voice Wireless LAN card converts electromagnetic waves into bits 21 22 +A -A Digital Binary Signal 1 0 1 1 0 1 0 T 2T 3T 4T 5T 6T Here, Bit Rate = 1 bit / T seconds For a given communications medium: How do we increase the bit rate (speed)? How do we achieve reliable communications? Are there limits to speed and reliability? Bandwidth Bandwidth is width of the frequency range in which the Fourier transform of the signal is non-zero. Sometimes referred to as the channel width Or, where it is above some threshold value (Usually, the half power threshold, e.g., -3dB) db - short for decibel Defined as 10 * log 10 (P 1 /P 2 ) When used for signal to noise: 10 * log 10 (S/N) Also: dbm power relative to 1 milliwatt Defined as 10 * log 10 (P/1 mw) 23 24 6

Signal = Sum of Waves Simpler Example + 1.3 X + 0.56 X + 1.15 X 25 26 The Frequency Domain A (periodic) signal can be viewed as a sum of sine waves of different strengths. Corresponds to energy at a certain frequency Every signal has an equivalent representation in the frequency domain. What frequencies are present and what is their strength (energy) E.g., radio and TV signals, Spectra & Bandwidth Spectrum of a signal: measures power of signal as function of frequency x 1 (t) varies faster in time & has more high frequency content than x 2 (t) Bandwidth W s is defined as range of frequencies where a signal has non-negligible power, e.g. range of band that contains 99% of total signal power Spectrum of x 1 (t) 1.2 1 0.8 0.6 0.4 0.2 0 0 3 6 9 Spectrum of x 2 (t) 1.2 1 0.8 0.6 0.4 0.2 12 15 18 21 24 27 30 frequency (khz) 33 36 39 42 0 0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 frequency (khz) 27 28 7

Transmission Channel Considerations Every medium supports transmission in a certain frequency range. Outside this range, effects such as attenuation,.. degrade the signal too much Transmission and receive hardware will try to maximize the useful bandwidth in this frequency band. Tradeoffs between cost, distance, bit rate As technology improves, these parameters change, even for the same wire. Good Frequency Bad Attenuation & Dispersion Real are not nice low pass filters Why do we care? Good Frequency Bad + =??? Signal 30 Limits to Speed and Distance Noise: random energy is added to the signal. Attenuation: some of the energy in the signal leaks away. Dispersion: attenuation and propagation speed are frequency dependent. (Changes the shape of the signal) Effects limit the data rate that a channel can sustain.» But affects different technologies in different ways Effects become worse with distance.» Tradeoff between data rate and distance Pulse Transmission Rate Objective: Maximize pulse rate through a channel, that is, make T as small as possible Channel T t t If input is a narrow pulse, then typical output is a spread-out pulse with ringing Question: How frequently can these pulses be transmitted without interfering with each other? 2W c pulses/sec with binary amplitude encoding where W c is the bandwidth of the channel 32 8

X(t) = a cos(2 ft) Bandwidth of a Channel Channel If input is sinusoid of frequency f, then output is a sinusoid of same frequency f Output is attenuated by an amount A(f) that depends on f A(f) 1, then input signal passes readily A(f) 0, then input signal is blocked Bandwidth W c is range of frequencies passed by channel Y(t) = A(f) a cos(2 ft) A(f) 0 1 W c Ideal lowpass channel f 33 Multi-level Pulse Transmission Assume channel of bandwidth W c, and transmit 2W c pulses/sec (without interference) If pulses amplitudes are either -A or +A, then each pulse conveys 1 bit, so Bit Rate = 1 bit/pulse x 2W c pulses/sec = 2W c bps If amplitudes are from {-A, - A/3, +A/3, +A}, then bit rate is 2x2W c bps By going to M=2 m amplitude levels, we achieve Bit Rate = m bits/pulse x 2W c pulses/sec = 2mW c bps In the absence of noise, the bit rate can be increased without limit by increasing m 34 Noise & Reliable Communications All physical systems have noise Electrons always vibrate at non-zero temperature Motion of electrons induces noise Presence of noise limits accuracy of measurement of received signal amplitude Errors occur if digital signal separation is comparable to noise level Thus, noise places a limit on how many amplitude levels can be used in pulse transmission Bit Error Rate (BER) increases with decreasing signal-tonoise ratio High SNR Low SNR Signal-to-Noise Ratio (SNR) Signal Noise Signal + noise t t t No errors Signal Noise Signal + noise t t t Average signal power error SNR = Average noise power 35 SNR (db) = 10 log 10 SNR 36 9

Physical Layer: Outline Digital networks Modulation Characterization of Communication Channels Fundamental Limits in Digital Transmission Line Coding Modems and Digital Modulation Properties of Media and Digital Transmission Systems Error Detection and Correction The Nyquist Limit A noiseless channel of width H can at most transmit a binary signal at a rate 2 x H. Assumes binary amplitude encoding 37 38 The Nyquist Limit A noiseless channel of width H can at most transmit a binary signal at a rate 2 x H. Assumes binary amplitude encoding E.g. a 3000 Hz channel can transmit data at a rate of at most 6000 bits/second Past the Nyquist Limit More aggressive encoding can increase the bandwidth Example: modulate multi-valued symbols Modulate blocks of digital signal bits, e.g, 3 bits = 8 values Often combine multiple modulation techniques PSK PSK+AM Hmm, I once bought a modem that did 54K???? Problem? Noise! The signals representing two symbols are less distinct Noise can prevent receiver from decoding them correctly 39 40 10

Modem rate Example: Modem Rates 100000 10000 1000 100 1975 1980 1985 1990 1995 2000 Year Lecture 4 15-441 2008-10 41 Capacity of a Noisy Channel Places upper bound on channel capacity, while considering noise Shannon s theorem: C = B x log 2 (1 + S/N) C: maximum capacity (bps) B: channel bandwidth (Hz) S/N: signal to noise ratio of the channel Often expressed in decibels (db) ::= 10 log(s/n) Example: Local loop bandwidth: 3200 Hz Typical S/N: 1000 (30db) What is the upper limit on capacity? C = 3200 x log 2 (1 + 1000) = 31.9 Kbps 42 Shannon s Channel Capacity Theorem C Wc log 2 (1 SNR) bps Arbitrarily-reliable communications is possible if the transmission rate R < C If R > C, then arbitrarily-reliable communications is not possible Arbitrarily-reliable means the BER can be made arbitrarily small through sufficiently complex coding C can be used as a measure of how close a system design is to the best achievable performance Bandwidth W c & SNR determine C 43 Example Find the Shannon channel capacity for a telephone channel with W c = 3400 Hz and SNR = 40 db SNR (db) = 40 db corresponds to SNR = 10^(40/10) = 10000 C = 3400 log 2 (1 + 10000) = 3400 log 10 (10001)/log 10 2 = 45200 bps 44 11