1 15-441 Computer Networks Physical Layer Professor Hui Zhang

Slides:



Advertisements
Similar presentations
Physical Layer: Signals, Capacity, and Coding
Advertisements

Physical Layer II: Framing, SONET, SDH, etc.
Physical Layer II: Framing, SONET, SDH, etc. CS 4251: Computer Networking II Nick Feamster Spring 2008.
Physical layer: Public Switched Telephone Network (PSTN)
1 Chapter 2 Agenda Announcements / updates Gayle Laakman McDowell, 10/11, 4:30pm, UW2-005 GUIs / IDEs for remotely accessing uw1-320-lab Other references.
Chapter 2 Fundamentals of Data and Signals
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
ECE 4321: Computer Networks Chapter 3 Data Transmission.
Physical Layer – Part 2 Data Encoding Techniques
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Physical Layer Network Fundamentals – Chapter 8.
CSCI 4550/8556 Computer Networks Comer, Chapter 12: Long Distance Digital Connection Technologies.
Analog to Digital (digital telephony) Given an analog function (voice?) we wish to represent it as a sequence of digital values Pulse Amplitude Modulation.
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
20101 The Physical Layer Chapter Bandwidth-Limited Signals.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Transmission Slide 1 Continuous & Discrete Signals.
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.
Chapter 2 Fundamentals of Data and Signals
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
Module 3.0: Data Transmission
Framing and Encoding EECS 122: Lecture 26 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
Communications and Networking Gregory Kesden.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
Chapter 3 Data and Signals
The Physical Layer: Data Transmission Basics
1 Chapter 2 Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User’s Approach.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
1 Physical Layer. 2 Analog vs. Digital  Analog: continuous values over time  Digital: discrete values with sharp change over time.
Computer Networks Physical Layer Dave Eckhardt Many slides stolen from Peter Steenkiste, Hui Zhang Srini Seshan, David Andersen Plus some new.
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.
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
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
EE 122: Encoding And Framing Ion Stoica September 9, 2002.
9/18/2015© 2012 Raymond P. Jefferis IIILect Forms of Communication.
Chapter 11 - Long-Distance Digital Connection Technologies Introduction Digital telephony Digitizing voice Example Sampling parameters Synchronous communication.
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.
Business Data Communications, by Allen Dooley, (c) 2005 Pearson Prentice Hall Chapter Two 1 Business Data Communications Chapter Two Physical Layer Fundamentals.
CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
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.
CSCI-1680 Physical Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
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.
Channel capacity A very important consideration in data communications is how fast we can send data, in bits per second, over a channel.
9-Jan-164/598N: Computer Networks Overview Performance metrics - Section 1.5 Direct link networks –Hardware building blocks - Section 2.1 –Encoding - Section.
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.
Data Communications and Computer Networks Chapter 1 Network Architecture Models Logical and physical connections.
McGraw-Hill©2003 The McGraw-Hill Companies, Inc. Chapter 6 Physical Layer.
Physical Layer Issues and Methods Outline Physical Layer Ethernet Technology Physical Layer Encoding Final Exam Review - ??
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.
Computer Communication & Networks
Lecture 4 Physical Layer & Link Layer Basics Peter Steenkiste
Department of Computer Science Carnegie Mellon University
KOMUNIKASI DATA Materi Pertemuan 10.
Telecommunications & Networks
Physical Layer – Part 2 Data Encoding Techniques
فصل سوم: لایه فیزیکی (Physical Layer)
Physical Layer – Part 2 Data Encoding Techniques
Presentation transcript:

Computer Networks Physical Layer Professor Hui Zhang

2 Hui Zhang 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 …

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

4 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

5 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 Time Frequency Amplitude

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

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

8 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

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

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

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

12 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)

13 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?

14 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

15 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

16 Hui Zhang 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

17 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

18 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

19 Hui Zhang Amplitude and Frequency Modulation

20 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?

21 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?

22 Hui Zhang 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 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

23 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

24 Hui Zhang Ray Propagation lower index of refraction core cladding

25 Hui Zhang Light Transmission in Fiber 1000 wavelength (nm) loss (dB/km) tens of THz 1.3  1.55 

26 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

27 Hui Zhang 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

28 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

29 Hui Zhang 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

30 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 --- DS Mbps 24-- DS Mbps EC-1 (STS-1E) Mbps OC Mbps 2, OC Mbps 8, OC Gbps 32,2561,34448 OC Gbps 129,0245, OC Gbps 516,09621,504768

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

32 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

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

34 Hui Zhang 2x4 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

35 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

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

37 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.

38 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

39 Hui Zhang Non-Return to Zero (NRZ)  1  high signal; 0  low signal 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)

40 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 Clock NRZI (non-return to zero inverted)

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

42 Hui Zhang Manchester Clock Manchester

43 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 bit 5-bit

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