1 15-441 Computer Networks Physical Layer Dave Eckhardt Many slides stolen from Peter Steenkiste, Hui Zhang Srini Seshan, David Andersen Plus some new.

Slides:



Advertisements
Similar presentations
Physical Layer II: Framing, SONET, SDH, etc.
Advertisements

Physical Layer II: Framing, SONET, SDH, etc. CS 4251: Computer Networking II Nick Feamster Spring 2008.
1 Transmission Fundamentals Chapter 2 (Stallings Book)
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
ECE 4321: Computer Networks Chapter 3 Data Transmission.
Computer Networks Physical Layer Professor Hui Zhang
Digital to Analog Many carrier facilities are analog Many transmission media are also analog (microwave, radio) We can carry digital values over analog.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Physical Layer Network Fundamentals – Chapter 8.
EE 4272Spring, 2003 Chapter 3 Data Transmission Part II Data Communications Concept & Terminology Signal : Time Domain & Frequency Domain Concepts Signal.
Multiplexing Multiplexing is the set of techniques that allows the simultaneous transmission of multiple signals across a single data link. A Multiplexer.
Lecture © Lecture 5 Physical Layer & Link Layer Basics Copyright © Seth Goldstein, 2008 Based on slides from previous 441 lectures.
Lecture 4: Physical Layer & Link Layer Basics Based on slides from previous 441 lectures : Computer Networking Copyright © CMU,
Chapter 3 Data and Signals
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Transmission Slide 1 Continuous & Discrete Signals.
1 K. Salah Module 3.3: Multiplexing WDM FDM TDM T-1 ADSL.
Network+ Guide to Networks, Fourth Edition Chapter 3 Transmission Basics and Networking Media.
IS250 Spring 2010 Physical Layer IS250 Spring 2010
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 7 Introduction to Networks and the Internet.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
Module 3.0: Data Transmission
Modulation                                                                 Digital data can be transmitted via an analog carrier signal by modulating one.
Module 2.2: ADSL, ISDN, SONET
Communications and Networking Gregory Kesden.
Modulation Modulation => Converts from digital to analog signal.
The Physical Layer: Data Transmission Basics
1 Physical Layer. 2 Analog vs. Digital  Analog: continuous values over time  Digital: discrete values with sharp change over time.
1 Long-Distance Communication. 2 Illustration of a Carrier Carrier –Usually a sine wave –Oscillates continuously –Frequency of carrier fixed.
3.1 Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
2-1 Physical Layer l Theoretical basis for data communications n Fourier analysis n distortion –by different attenuation rates of different frequency components.
9/9/2015© 2010 Raymond P. Jefferis IIILect Telephone Communications.
1 Business Telecommunications Data and Computer Communications Chapter 3 Data Transmission.
1 Ch 6 Long-Distance Communication Carriers, Modulation, and Modems.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 8.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 4 - Physical Layer Transmission and Link Layer Basics.
1 Lecture 5 Transmission Dejian Ye Software School Fudan University Networking, Spring 2008.
CE 4228 Data Communications and Networking
9/18/2015© 2012 Raymond P. Jefferis IIILect Forms of Communication.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Modulation, Multiplexing, & Public Switched Telephone.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 2 Physical layer.
Data Communications Chapter 16, Exploring the Digital Domain.
02 – Performance Basics 1CS Computer Networks.
Business Data Communications, by Allen Dooley, (c) 2005 Pearson Prentice Hall Chapter Two 1 Business Data Communications Chapter Two Physical Layer Fundamentals.
Digital Transmission Outlines:- Multiplexing FDM TDM WDM
CSE 461: Bits and Bandwidth Next Topic  Focus: How do we send a message across a wire?  The physical / link layers: 1. Different kinds of media 2.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
CS412 Introduction to Computer Networking & Telecommunication
Physical Layer PART II. Position of the physical layer.
Chapter 6 Multiplexing.
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
1. Physical Transmission Transmission Media Wire (guided) Coaxial cable Twisted Pair UTP STP Fiber Optic Wireless (unguided) Radio waves Microwave Infrared.
Shannon’s Theorem Nyquist Theorem Modulations Multiplexing
Module 4 Cable Testing.
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
1 3. Data Transmission. Prof. Sang-Jo Yoo 2 Contents  Concept and Terminology  Analog and Digital Data Transmission  Transmission Impairments  Asynchronous.
Transmission Media. Quiz: ANGEL->Lessons->Quiz 2 Figure 1Figure 2 Figure 3Figure 4.
McGraw-Hill©2003 The McGraw-Hill Companies, Inc. Chapter 6 Physical Layer.
TOPIC 1.2 INTRODUCTION TO NETWORKING. OBJECTIVES By the end of the topic, students should be able to: a) List the elements of data communication systems.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
The Physical Layer Chapter 2. The Theoretical Basis for Data Communication Fourier Analysis Bandwidth-Limited Signals Maximum Data Rate of a Channel.
Lecture 4 Physical Layer & Link Layer Basics Peter Steenkiste
Department of Computer Science Carnegie Mellon University
Chapter 4: Digital Transmission
Lecture 4 Continuation of transmission basics Chapter 3, pages 75-96
Physical Layer Theoretical basis for data communications
Physical Transmission
فصل سوم: لایه فیزیکی (Physical Layer)
Physical Layer Theoretical basis for data communications
Presentation transcript:

Computer Networks Physical Layer Dave Eckhardt Many slides stolen from Peter Steenkiste, Hui Zhang Srini Seshan, David Andersen Plus some new Spring '06 slides!!

Lecture Plan Physical layer What is the Data-Link layer? Framing, addressing, Medium Access Control Lots of Ethernet Then switching Starting with Ethernet Application Presentation Session Transport Network Datalink Physical

Concept Plan: “Signals to Packets” Analog Signal “Digital” Signal Bit Stream Packets Header/Body ReceiverSender Packet Transmission

Outline Signals Modulation Baseband, Analog, Digital Limits Multiplexing POTS Wire and Fiber Wireless

Signal What's a signal?

Base Case What's a signal? A sine wave is a simple signal Varying amplitude-signal at a single frequency – Frequency measured in “cycles per second” aka “Hertz” Frequency Amplitude

Another Base Case Here's a different sine wave Same maximum amplitude Twice the frequency Frequency Amplitude

Induction “Complicated” signals are sums of sine waves sin(x) + sin(2x) The shape looks complicated but the frequency-domain plot is still clear Frequency Amplitude

Frequency, Bandwidth of Signal A signal can be viewed as a sum of sine waves of different strengths sin(x) + ¼sin(3x) + 17sin(42x) +... Each component contributes some energy at some frequency Bandwidth: width of the frequency range Human voice: 100~3300 Hz, with a bandwidth of 3200 Hz Time Frequency Amplitude

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 Frequency GoodBad Signal

Modulation What are signals good for? Carrying information! Simple case: presence/absence of a sine wave – Frequency, amplitude remain constant – Sometimes it's on, sometimes it's off “On/off keying” aka “CW” One kind of “modulation”

Amplitude Modulation We can control/adjust different properties of a signal On/off keying is a special case of varying the strength (amplitude) Amplitude Modulation = “AM”

Frequency Modulation Another thing to adjust is frequency Switch between sin(x) and sin(2) from time to time Harder to think about, but easier to detect by ear!

Amplitude and Frequency Modulation

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

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 of analog phone line) Digital data encoded in digital signal Ethernet (Manchester) FDDI (NRZ 4B/5B) (next lecture)

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 do we increasingly use digital transmission?

Digitalization of Analog Voice Two steps: Sample the voice signal at certain frequency “Quantize the sample” (assign it a number) 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: 3 KHz voice band 8000 Hz sampling 7 or 8 bits encoding of each sample (logarithmically spaced) 56 or 64 kbps

Nyquist Limit A noiseless channel of width H can at most transmit a binary signal at a rate 2 x H. E.g. a 3000 Hz channel can transmit data at a rate of at most 6000 bits/second Assumes binary amplitude encoding

Expanding the Nyquist Limit More aggressive encoding can increase the channel bandwidth. Example: modems Same sampling rate - number of symbols per second Symbols have more possible values Every transmission medium supports transmission in a certain frequency range. The channel bandwidth is determined by the transmission medium and the quality of the transmitter and receivers Channel capacity increases over time due to innovation PSK PSK + AM

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 Example Twisted pair long loop has channel bandwidth of 3200 Hz Phase-Shift Modulation means 8 possible configurations per symbol Channel bit rate?

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

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

Capacity of a Noisy Channel Can’t add infinite symbols - you have to be able to tell them apart. This is where noise comes in. 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 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? Modems: Teleco internally converts to 56kbit/s digital signal, which sets a limit on B and the S/N.

Multiplexing Transmit multiple signals on the same channel Frequency Division Multiplexing Time Division Multiplexing

Supporting Multiple Channels Multiple channels can coexist if they transmit at a different frequency, or at a different time, or in a different part of the space. Three dimensional space: frequency, space, time Space can be limited using wires or using transmit power of wireless transmitters. Frequency multiplexing means that different users use a different part of the spectrum. Again, similar to radio: 95.5 versus station Controlling time is a Data Link protocol issue. Media Access Control (MAC): who gets to send when?

Time Division Multiplexing Different users use the wire at different points in time. Aggregate bandwidth also requires more spectrum. Frequency

Frequency versus Time-division Multiplexing With frequency-division multiplexing different users use different parts of the frequency spectrum. Each user can send all the time, at a reduced rate Example: roommates With time-division multiplexing different users send at different times. Each user can sent at full speed some of the time Example: a time-share condo The two solutions can be combined. Frequency Time Frequency Bands Slot Frame

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

Baseband versus Carrier Modulation Baseband modulation Convert some data to a signal 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

Amplitude Carrier Modulation Amplitude Signal Carrier Frequency Amplitude Modulated Carrier

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

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

Copper Wire Unshielded twisted pair Two copper wires twisted - avoid antenna effect Grouped into cables: multiple pairs with common sheath Category 3 (voice grade) versus Category Mbps up to 100 m 1 Mbps up to a few km (assuming digital transmission) Coaxial 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

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

Ray Propagation lower index of refraction core cladding

Light Transmission in Fiber 1000 wavelength (nm) loss (dB/km) 1500 nm (~200 Thz) tens of THz 1.3  1.55  LEDsLasers

Fiber and Optical Source Types Multi-mode fiber 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

Gigabit Ethernet: Physical Layer Comparison Medium Transmit/receiveDistanceComment Copper 1000BASE-CX25 m machine room use Twisted pair 1000BASE-T 100 m MM fiber 62  m 1000BASE-SX260 m 1000BASE-LX500 m MM fiber 50  m 1000BASE-SX525 m 1000BASE-LX550 m SM fiber 1000BASE-LX5000 m Twisted pair 100BASE-T100 m 2p of UTP5/2-4p of UTP3 MM fiber 100BASE-SX2000m

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. source pump laser

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

“Wireless” “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. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.” – Albert Einstein

Wireless Technologies Great technology: no wires to install, convenient mobility,.. High attenuation limits distances. Wave propagates out as a sphere Signal strength reduces quickly (1/distance) 3 High noise due to interference from other transmitters Use MAC and other rules to limit interference Aggressive encoding techniques to make signal less sensitive to noise Other effects: multipath fading, security,.. “Ether has limited bandwidth” Try to maximize its use Government oversight to control use

Things to Remember Bandwidth and distance of networks is limited by physical properties of media. Attenuation, noise, … Ne twork properties are determined by transmission medium and transmit/receive hardware. Nyquist gives a rough idea of idealized throughput Can do much better with better encoding Low b/w channels: Sophisticated encoding, multiple bits per wavelength. High b/w channels: Simpler encoding (FM, PCM, etc.), many wavelengths per bit. Multiple users can be supported using space, time, or frequency division multiplexing. Properties of different transmission media.

Analog versus Digital Encoding Digital transmissions. Interpret the signal as a series of 1’s and 0’s E.g., data transmission over the Internet Analog transmission Do not interpret the contents E.g., broadcast radio Why digital transmission?

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

SONET Framing Base channel is STS-1 (Synchronous Transport System). Takes 125  sec and corresponds to 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

Know Your Signal Line Rates Asynchronous Payload Carrying Capacity Signal Type 76821, ,096516,096516,096516, Gbps OC ,376129, Gbps OC ,34432, Gbps OC , Mbps OC , Mbps OC Mbps EC-1 (STS-1E) Mbps DS Mbps DS ,000 bps DS0 (POTS eq.) # of DS3 # of DS1 # of DS0 Line Rate

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

x4 Network Architecture Long HaulMetro CoreSubscriber/ Enterprise LAN HAN Metro Hub Office End Office/ Collocation INTERCITY G( ) Router Voice Switch ACCESSINTEROFFICE G(SONET) Transport Services Metro Access Router Service Node/ASP Voice Switch Wireless Server RF Cable Copper Fiber ATM OXC Voice Switch Backbone Router ISP

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

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 …

How to Characterize “Good” Communication? Latency Distance Bandwidth

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