Computer Networks

Similar documents
Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Lecture 5 Transmission

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

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

The Physical Layer Outline

Encoding and Framing

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

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

Chapter 2. Physical Layer

CSE 461: Bits and Bandwidth. Next Topic

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

Physical Layer: Outline

Physical Layer. Networked Systems (H) Lecture 3

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

Thursday, April 17, 2008, 6:28:40

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

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

CSCI-1680 Physical Layer Rodrigo Fonseca

Lecture 2: Links and Signaling"

ITL Basics of Encoding and Wiring

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Physical Layer. Networked Systems 3 Lecture 5

Physical Layer. Networked Systems Architecture 3 Lecture 6

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

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

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

Wavelength Multiplexing. The Target

DATA TRANSMISSION. ermtiong. ermtiong

CPSC Network Programming. How do computers really communicate?

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

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

ECE 435 Network Engineering Lecture 16

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

CSE 461 Bits and Links. David Wetherall

LE/EECS 3213 Fall Sebastian Magierowski York University. EECS 3213, F14 L8: Physical Media

Optical Communications and Networks - Review and Evolution (OPTI 500) Massoud Karbassian

C06a: Digital Modulation

Chapter 2: Computer Networks

Chapter 2: Fundamentals of Data and Signals

Chapter 4 Digital Transmission 4.1

Introduction to LAN/WAN. Physical Layer

Physical Layer. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

CSEP 561 Bits and Links. David Wetherall

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

ECE 435 Network Engineering Lecture 20

CS420/520 Axel Krings Page 1 Sequence 8

ITM 1010 Computer and Communication Technologies

Data and Computer Communications. Tenth Edition by William Stallings

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

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

EE 304 TELECOMMUNICATIONs ESSENTIALS HOMEWORK QUESTIONS AND ANSWERS

Optical networking. Emilie CAMISARD GIP RENATER Optical technologies engineer Advanced IP Services

Fundamentals of Data and Signals

Cable Testing TELECOMMUNICATIONS AND NETWORKING

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

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

Wireless Intro : Computer Networking. Wireless Challenges. Overview

SEN366 Computer Networks

COMP211 Physical Layer

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

Basic Concepts in Data Transmission

TECHNICAL ARTICLE: DESIGN BRIEF FOR INDUSTRIAL FIBRE OPTICAL NETWORKS

Lecture 2. Introduction to Optical. Ivan Avrutsky, ECE 5870 Optical Communication Networks, Lecture 2. Slide 1

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

Lecture 3: Data Transmission

Optical Communications and Networks - Review and Evolution (OPTI 500) Massoud Karbassian

OPTICAL NETWORKS. Building Blocks. A. Gençata İTÜ, Dept. Computer Engineering 2005

Multiplexing. Chapter 8. Frequency Division Multiplexing Diagram. Frequency Division Multiplexing. Multiplexing

ECE 271 INTRODUCTION TO TELECOMMUNICATION NETWORKS HOMEWORK QUESTIONS ECE 271 HOMEWORK-1

William Stallings Data and Computer Communications 7 th Edition. Chapter 4 Transmission Media

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Chapter 3 Digital Transmission Fundamentals

Point-to-Point Communications

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

Data and Computer Communications. Tenth Edition by William Stallings

Optical Transport Tutorial

Signal Encoding Techniques

Data Communication. Chapter 3 Data Transmission

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

The Physical Layer Chapter 2. The Physical Layer

Ph.D. Course Spring Wireless Communications. Wirebound Communications

Fundamentals of Digital Communication

Lecture 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

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

William Stallings Data and Computer Communications. Bab 4 Media Transmisi

William Stallings Data and Computer Communications. Chapter 8 Multiplexing. Multiplexing

Chapter 3 Digital Transmission Fundamentals

Data and Computer Communications. Chapter 3 Data Transmission

Bandwidth utilization is the wise use of available bandwidth to achieve specific goals.

Data Communications and Networking (Module 2)

ET4254 Communications and Networking 1

TELECOMMUNICATION SYSTEMS

Lecture-8 Transmission of Signals

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

Chapter 4: Transmission Media

Channel Concepts CS 571 Fall Kenneth L. Calvert

Course 2: Channels 1 1

Transcription:

15-441 Computer Networks Physical Layer Professor Hui Zhang hzhang@cs.cmu.edu 1

Communication & Physical Medium There were communications before computers There were communication networks before computer networks Talk over the air Letter delivered by person, horse, bird 2 Hui Zhang

Latency Distance Bandwidth How to Characterize Good Communication? 3 Hui Zhang

Historical Perspective Independent developments of telecommunication network and local area data networks (LAN) Telecommunication network Analog signal with analog transmission Digital transmission of voice over long distance Long distance digital circuit for data transmission service Access modem for data transmission Introduction of optical transmission 4 Hui Zhang

Frequency, Bandwidth of Signal A 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 Frequency: how fast a period signal changes, measured in Hz Bandwidth: width of the frequency range E.g. human voice: 100~3300 Hz, with a bandwidth of 3200 Amplitude Time Frequency 5 Hui Zhang

Bandwidth of Transmission Channels Every medium supports transmission in a certain frequency range. Outside this range, effects such as attenuation degrade the signal too much Transmission and reception 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. Thanks to our EE friends Good Frequency Signal Bad 6 Hui Zhang

Multiplexing Transmit multiple signals on the same channel Frequency Division Multiplexing Time Division Multiplexing 7 Hui Zhang

Baseband versus Carrier Modulation Baseband modulation: send the bare signal. Carrier modulation: use the signal to modulate a higher frequency signal (carrier). Can be viewed as the product of the two signals Corresponds to a shift in the frequency domain Important for Frequency Division Multiplexing 8 Hui Zhang

Amplitude Carrier Modulation Amplitude Signal Carrier Frequency 9 Hui Zhang Amplitude Modulated Carrier

Frequency Division Multiplexing: Multiple Channels Determines Bandwidth of Link Amplitude Determines Bandwidth of Channel Different Carrier Frequencies 10 Hui Zhang

Analog vs. Digital Used in different contexts Analog Digital Data (something has meaning) Signal (encoded data) Transmission Voice, Image Continuously varying wave Propogation of waves Text, computer message Sequence of 1 s and 0 s Propogation of 1 s and 0 s 11 Hui Zhang

Data Encoding: Mapping Data Into Signal Analog data encoded in analog signal Radio,TV, telephone Analog data encoded in digital signal Digital voice (PCM sampling) Digital data encoded in digital signal Ethernet (Manchester) FDDI (NRZ 4B/5B) 12 Hui Zhang

Analog vs. Digital Transmission Digital transmission Interpret the signal as 1 s and 0 s Use repeaters to reconstruct the signal Analog transmission Do not interpret content Use amplifiers to boost the strength of signal Why digital transmission? 13 Hui Zhang

Non-Ideal Channel 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 14 Hui Zhang

Digitalization of Analog Voice Two steps: Sample the voice signal at certain frequency Quantize the sample What should be the sampling frequency so that the original signal can be reconstructed losslessly? Nyquist s sampling theorem: 2H, where H is the bandwidth of the signal PCM coding: 8000 Hz sampling 7 or 8 bits encoding of each sample (logarithmically spaced) 56 or 64 kbps 15 Hui Zhang

Digital Transmission/Multiplexing Hierarchy North America T1/DS1: 24 voice channels plus 1 bit per sample (24 x 8 + 1) x 8000 = 1.544 Mbps T3/DS3: another D2 hierarchy that is rarely exposed 7 x 4 x 1.544 = 44.736 Mbps Europe has different standard E1, E3 16 Hui Zhang

Data over Telephone Network Private line data service 56kbps, T1, T3 How to extend data service to home over analog subscriber loop? Modem: digital signal over analog transmission channel 17 Hui Zhang

Modulation Sender changes the nature of the signal in a way that the receiver can recognize. Amplitude modulation: change the strength of the signal, typically between on and off. Sender and receiver agree on a rate On means 1, Off means 0 Similar: frequency or phase modulation 18 Hui Zhang

Amplitude and Frequency Modulation 0 0 1 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 1 1 0 1 1 0 0 0 1 19 Hui Zhang

Channel Bandwidth and Capacity For Digital Signal Question: given a channel with bandwidth H, what is the capacity of the channel for digital signal? How to measure channel capacity? Baud rate: number of symbols per second (Hz) Bit rate: Baud rate x bits/symbol Nyquist Theorem: a noiseless channel of width H can at most transmit a signal of rate 2H Examples the twisted pair long loop has channel bandwidth of 3200 Hz Use Phase-Shift Modulation, there are 8 possible configurations per symbol Channel bit rate? 20 Hui Zhang

Capacity of Noisy Channel Nyquist establishes the channel capacity of an ideal channel, what about noisy channels? Shannon s theorem: C = B x log (1 + S/N) C: maximum capacity (bps) B: channel bandwidth (Hz) S/N: signal to noise ratio of the channel Example: Local loop bandwidth: 3200 Hz Typical S/N: 1000 What is the upper limit? 21 Hui Zhang

Unshielded twisted pair Copper Wire Two copper wires twisted - avoid antenna effect Grouped into cables: multiple pairs with common sheath Category 3 (voice grade) versus category 5 100 Mbps up to 100 m, 1 Mbps up to a few km (assuming digital transmission) Coax cables. One connector is placed inside the other connector Holds the signal in place and keeps out noise Gigabit up to a km Signaling processing research pushes the capabilities of a specific technology. E.g. modems, use of cat 5 22 Hui Zhang

Age of Fiber and Optics Enabling technology: optical transmission over fiber Advantages of fiber Huge bandwidth (TeraHz): huge capacity Low attenuation: long distance 23 Hui Zhang

Ray Propagation cladding core lower index of refraction 24 Hui Zhang

Light Transmission in Fiber 1.0 loss (db/km) 0.5 tens of THz 0.0 1000 1.3μ 1.55μ 1500 wavelength (nm) 25 Hui Zhang

Fiber and Optical Source Types Multimode fiber. 62.5 or 50 micron core carries multiple modes used at 850 nm or 1310 nm, usually LED source subject to mode dispersion: different propagation modes travel at different speeds typical limit: 1 Gbps at 100m Single mode 8 micron core carries a single mode used at 1.3 or 1.55 microns, usually laser diode source typical limit: 10 Gbps at 40 km or more, rapidly improved by technology advances still subject to chromatic dispersion 26 Hui Zhang

Gigabit Ethernet: Physical Layer Comparison Medium Transmit/receive Distance Comment Copper 1000BASE-CX 25 m machine room use Twisted pair 1000BASE-T 100 m MM fiber 62 μm 1000BASE-SX 260 m 1000BASE-LX 500 m MM fiber 50 μm 1000BASE-SX 525 m 1000BASE-LX 550 m SM fiber 1000BASE-LX 5000 m Twisted pair 100BASE-T 100 m 2p of UTP5/2-4p of UTP3 MM fiber 100BASE-SX 2000m 27 Hui Zhang

SONET: Optical Network for Long Distance Sender and receiver are always synchronized. Frame boundaries are recognized based on the clock No need to continuously look for special bit sequences SONET frames contain room for control and data. Data frame multiplexes bytes from many users Control provides information on data, management, 3 cols transport overhead 87 cols payload capacity 9 rows 28 Hui Zhang

SONET Framing Base channel is STS-1 (Synchronous Transport System). Takes 125 μsec and corresponds to 51.84 Mbps 1 byte corresponds to a 64 Kbs channel (PCM voice) Also called OC-1 = optical carrier Standard ways of supporting slower and faster channels. Slower: select a set of bytes in each frame Faster: interleave multiple frames at higher rate 3 cols transport overhead 87 cols payload capacity, including 1 col path overhead 9 rows 29 Hui Zhang

Know Your Signal Line Rates Signal Type Line Rate Asynchronous Payload Carrying Capacity # of DS0 # of DS1 # of DS3 DS0 (POTS eq.) 64,000 bps - - - DS1 DS3 1.544 Mbps 24 - - 44.736 Mbps 672 28 - EC-1 1 (STS-1E) 51.84 Mbps 672 28 - OC-3 155 Mbps 2,016 84 3 OC-12 622 Mbps 8,064 336 12 OC-48 2.49 Gbps 32,256 1,344 48 OC-192 9.95 Gbps 129,024 5,376 192 OC-768 39.8 Gbps 516,096 21,504 768 30 Hui Zhang

Optical Amplification At end of span, either regenerate electronically or amplify. Electronic repeaters are potentially slow, but can eliminate noise. Amplification over long distances made practical by erbium doped fiber amplifiers offering up to 40 db gain, linear response over a broad spectrum. Ex: 10 Gbps at 500 km. pump laser source 31 Hui Zhang

Wavelength Division Multiplexing Send multiple wavelengths through the same fiber. Multiplex and demultiplex the optical signal on the fiber Each wavelength represents an optical carrier that can carry a separate signal. ITU grid: 40 wavelengths around 1510 nm Optical Splitter Frequency 32 Hui Zhang

WDM: A Winner in Long Haul Source: Lucent Technologies and BancBoston Robertson Stephens. 33 Hui Zhang

2x4 Network Architecture Subscriber/ Enterprise LAN Wireless Router RF Cable Copper Fiber Metro Access ACCESS End Office/ Collocation Server Metro Core Service Node/ASP Voice Switch Server Voice Switch Router INTEROFFICE G(SONET) Metro Hub Office ATM Voice Switch OXC Long Haul λ ISP Backbone Router λ INTERCITY G(λ) λ Services Transport λ HAN 34 Hui Zhang

Some Observations 2x4 Network architecture Premise, access, metro, core Transport and service layers Optical vs. Copper Premise and access dominated by copper loops DWDM very effective solution for long-haul Metro is dominated by SONET 35 Hui Zhang

Encoding Mapping bits into signal Adaptor Signal Adaptor Adaptor: convert bits into physical signal and physical signal back into bits 36 Hui Zhang

Why Do We Need Encoding? Meet certain electrical constraints. Receiver needs enough transitions to keep track of the transmit clock Avoid receiver saturation Create control symbols, besides regular data symbols. E.g. start or end of frame, escape,... Error detection or error corrections. Some codes are illegal so receiver can detect certain classes of errors Minor errors can be corrected by having multiple adjacent signals mapped to the same data symbol Encoding can be very complex, e.g. wireless. 37 Hui Zhang

Encoding We use two discrete signals, high and low, to encode 0 and 1 The transmission is synchronous, i.e., there is a clock used to sample the signal In general, the duration of one bit is equal to one or two clock ticks 38 Hui Zhang

Non-Return to Zero (NRZ) 1 high signal; 0 low signal 0 0 1 0 1 0 1 1 0 NRZ (non-return to zero) Clock Disadvantages: when there is a long sequence of 1 s or 0 s Sensitive to clock skew, i.e., difficult to do clock recovery Difficult to interpret 0 s and 1 s (baseline wander) 39 Hui Zhang

Non-Return to Zero Inverted (NRZI) 1 make transition; 0 stay at the same level Solve previous problems for long sequences of 1 s, but not for 0 s 0 0 1 0 1 0 1 1 0 NRZI (non-return to zero inverted) Clock 40 Hui Zhang

Manchester 1 high-to-low transition; 0 low-to-high transition Addresses clock recovery and baseline wander problems Disadvantage? 0 0 1 0 1 0 1 1 0 Manchester Clock 41 Hui Zhang

Manchester 0 0 1 0 1 0 1 1 0 Manchester Clock 42 Hui Zhang

4B/5B Encoding Goal: address inefficiency of Manchester encoding, while avoiding long periods of low or high signals Solution: Use 5 bits to encode every sequence of four bits such that no 5 bit code has more than one leading 0 and two trailing 0 s Use NRZI to encode the 5 bit codes 4-bit 5-bit 0000 11110 0001 01001 0010 10100 0011 10101 0100 01010 0101 01011 0110 01110 1111 01111 4-bit 5-bit 1000 10010 1001 10011 1010 10110 1011 10111 1100 11010 1101 11011 1110 11100 1111 11101 43 Hui Zhang

Other Encoding 8B/10B: Fiber Channel and Gigabit Ethernet DC balance 64B/66B: 10 Gbit Ethernet 44 Hui Zhang