CS423: Lectures 2-4, Physical Layer. George Varghese. April 16, 2008



Similar documents
Lecture 3: Signaling and Clock Recovery. CSE 123: Computer Networks Stefan Savage

EECC694 - Shaaban. Transmission Channel

Data Transmission. Data Communications Model. CSE 3461 / 5461: Computer Networking & Internet Technologies. Presentation B

Public Switched Telephone System

Analog vs. Digital Transmission

How To Encode Data From A Signal To A Signal (Wired) To A Bitcode (Wired Or Coaxial)

(Refer Slide Time: 2:10)

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

Telecommunications, Networks, and Wireless Computing

1. (Ungraded) A noiseless 2-kHz channel is sampled every 5 ms. What is the maximum data rate?

Unit of Learning # 2 The Physical Layer. Redes de Datos Sergio Guíñez Molinos sguinez@utalca.cl

ADSL part 2, Cable Internet, Cellular

INTRODUCTION TO COMMUNICATION SYSTEMS AND TRANSMISSION MEDIA

Narrowband and Broadband Access Technologies

10/13/2008 Vasile Dadarlat --Computer Networks 1

THE BCS PROFESSIONAL EXAMINATIONS BCS Level 5 Diploma in IT. October 2009 EXAMINERS' REPORT. Computer Networks

CS263: Wireless Communications and Sensor Networks

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

: Instructor

Copyright. Transport networks. Physical layer Transport and access networks. Pag. 1

Solution. (Chapters ) Dr. Hasan Qunoo. The Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department

TCOM 370 NOTES LOCAL AREA NETWORKS AND THE ALOHA PROTOCOL

1.264 Lecture 32. Telecom: Basic technology. Next class: Green chapter 4, 6, 7, 10. Exercise due before class

Multiplexing on Wireline Telephone Systems

Chapter 9. Communications and Networks. McGraw-Hill/Irwin. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

How To Get High Speed Internet In Australia

Wired & Wireless LAN Connections

Long Distance Connection and WAN

Data Transmission. Raj Jain. Professor of CIS. The Ohio State University. Columbus, OH

Physical Layer. Communication Satellites. ECE 453 Introduction to Computer Networks. Lecture 3 Physical Layer II

Digital Subscriber Line (DSL) Transmission Methods

Physical Layer, Part 2 Digital Transmissions and Multiplexing

COMPUTERS ARE YOUR FUTURE CHAPTER 8 WIRED & WIRELESS COMMUNICATION

What Does Communication (or Telecommunication) Mean?

Introduction to Computer Networks and Data Communications

Residential Broadband: Technologies for High-Speed Access To Homes

Fast Ethernet and Gigabit Ethernet. Networks: Fast Ethernet 1

Next Generation of High Speed. Modems8

LECTURE #31. Telephone Services. Data Communication (CS601) Common carrier Services & Hierarchies

Attenuation (amplitude of the wave loses strength thereby the signal power) Refraction Reflection Shadowing Scattering Diffraction

Computers Are Your Future Prentice-Hall, Inc.

Residential Broadband: Technologies for High-Speed Access To Homes

Broadband Technology Clinic. Burlington Telecom Advisory Board

Think! Think! Data communications. Long-Distance. Modems: to analog and back. Transmission Media. The last mile is the hardest for digital information

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Fast Ethernet and Gigabit Ethernet. Computer Networks: Fast and Gigabit Ethernet

Wireless Networks. Reading: Sec5on 2.8. COS 461: Computer Networks Spring Mike Freedman

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

Lecture 7 Multiple Access Protocols and Wireless


TCOM 370 NOTES 99-6 VOICE DIGITIZATION AND VOICE/DATA INTEGRATION

CSCI Topics: Internet Programming Fall 2008

Chapter 2 from Tanenbaum - modified. The Physical Layer. Ref: A.S. Tanenbaum, Computer Networks, 4 th Ed., Prentice-Hall, 2003, ISBN:

Chapter 1: roadmap. Access networks and physical media

CHAPTER 8 MULTIPLEXING

Chapter 9 Communications and Networks

Broadband 101: Installation and Testing

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

communication over wireless link handling mobile user who changes point of attachment to network

IT Data Communication and Networks (Optional)

Mobile Communications Chapter 2: Wireless Transmission

MODULATION Systems (part 1)

Network Topologies. Network Topologies

Communication Networks. MAP-TELE 2011/12 José Ruela

DT3: RF On/Off Remote Control Technology. Rodney Singleton Joe Larsen Luis Garcia Rafael Ocampo Mike Moulton Eric Hatch

TUTORIAL FOR CHAPTER 8

About Me" List of Lectures" In This Course" Mobile and Sensor Systems. Lecture 1: Introduction to Wireless Systems" " Dr. Cecilia Mascolo" "

ADSL2 AND ADSL2plus THE NEW ADSL STANDARDS

IT4405 Computer Networks (Compulsory)

Network Performance: Networks must be fast. What are the essential network performance metrics: bandwidth and latency

Data Communications & Networks. Session 3 Main Theme Data Encoding and Transmission. Dr. Jean-Claude Franchitti

COMPUTER NETWORKS HANDOUTS LECTURERS # PREPARED BY: HAMMAD KHALID KHAN. Copyright Virtual University of Pakistan

White Paper. D-Link International Tel: (65) , Fax: (65) Web:

Chap#5 (Data communication)

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

EECS 122: Introduction to Computer Networks Multiaccess Protocols. ISO OSI Reference Model for Layers

Physical Layer. Computer Networks. Transmitting Signals (1/2) Analog vs. Digital. Paolo Costa

LTE, WLAN, BLUETOOTHB

XDSL and DSLAM Access Technologies

EPL 657 Wireless Networks

ADSL or Asymmetric Digital Subscriber Line. Backbone. Bandwidth. Bit. Bits Per Second or bps

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

What s The Difference Between Bit Rate And Baud Rate?

Networks. The two main network types are: Peer networks

Demystifying Wireless for Real-World Measurement Applications

1 Which network type is a specifically designed configuration of computers and other devices located within a confined area? A Peer-to-peer network

Computer Networks. Definition of LAN. Connection of Network. Key Points of LAN. Lecture 06 Connecting Networks

Broadband access. Nils Holte, NTNU. NTNU Department of Telecommunications Kursdagene ved NTNU, Digitale telenett, 9. januar

NETWORKING TECHNOLOGIES

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

Multiplexing. Multiplexing is the set of techniques that allows the simultaneous transmission of multiple signals across a single physical medium.

Internet Service Overview

Clocking. Clocking in the Digital Network

Discovering Computers Chapter 9 Communications and Networks

DATA COMMUNICATIONS AND NETWORKING. Solved Examples

Application Note License-Exempt Gigabit Ethernet Microwave Radio Applications

1.264 Lecture 34. Telecom: Connecting wired LAN, WAN. Next class: Green chapter 17. Exercise due before class

Digital Modulation. David Tipper. Department of Information Science and Telecommunications University of Pittsburgh. Typical Communication System

Module 5. Broadcast Communication Networks. Version 2 CSE IIT, Kharagpur

Transcription:

CS423: Lectures 2-4, Physical Layer George Varghese April 16, 2008

What does the Physical Layer Do? bits SENDER PHYSICAL LAYER RECEIVER 1 RECEIVER 1 RECEIVER 1 A possibly faulty, single-hop, bit pipe that connects a sender to possibly multiple receivers 1

Morse Code Analogy Example bit pipe: sending Morse Code to receivers using a flashlight. Issues: Fundamental Limits: Brain-eye system processing limits leads to Inter Symbol Interference Media Issues: Flashlight, semaphore Coding: Morse code, getting in synch, knowing receiver rate. 2

PHYSICAL LAYER: SUBLAYERS Input Stream Output Stream 01010000 01010000 Coding Sublayer Decoding Sublayer Coded Stream Media Transmission Sublayer Input Signal Coded Stream Media Reception Sublayer Output Signal Signal Transmission Sublayer (SHANNON AND NYQUIST LIMITS) 3

Why understand the Physical Layer in Sublayers? The bottom sublayer is really describing the essential properties of the media (frequency response, bit error rate). These influence data transmission rates (Nyqvuist, Shannon limits). This lecture. The middle sublayer describes properties of particular media e.g.. satellites, coaxial cable, fibre. The top sublayer is about things like clock recovery, synchronization etc. Sublayers can be studied independently. Separate concerns. Each sublayer exacts its price! 4

1.0 Bottom Sublayer: Signal Transmission and Limits 5

Sending bits to a receiver Goal: to send a sequence of 0 s and 1 s from a sender to a receiver by sending energy (e.g., light, electricity) over a channel (e.g., fiber, cable). One coding: 0 = no energy, 1 = energy. Problem: Real channels distort input energy signals. Leads to two questions. Q1: How can we predict what a given channel will do to an input signal given some properties of the channel. Answer: Fourier Analysis. Q2: How does distortion affect maximum bit rate? Answer: Nyqvuist (sluggishness) and Shannon (noise) limits. 6

Signals, and channels Amplitude 2V 1.5V 1V Time Continuous Time Discrete Period Time Periodic Signal: energy (e.g., voltage, light) that varies with time. Continuous and Discrete. Periodic. Period and frequency. Channel: physical medium that conveys energy from a sender to a receiver (e.g., a fiber link) with possible distortion. 7

Sine Waves Amplitude 0 90 180 360 1.5 V Time 1 msec Sine waves are special because all signals can be rewritten in terms of sine waves. Mathematically: A sin(2πf t + θ), A is max value, f is frequency, is initial phase shift Example: Frequency 1 Hz, θ = 0. Values at t = 0 and t = 1/4. Use calculator but express angle in radians! 8

Fourier Analysis: the big picture If we forget about noise, most channels are nice to sine waves. A sine wave of frequency f is always scaled by a fixed factor s(f) and phase shifted by a fixed amount p(f) regardless of amplitude. Thus we can completely describe a channel by plotting the values of s(f) (frequency response) and p(f) (phase response) for all values of frequency f. To find what happens to arbitrary signal S, we i) Use Fourier Analysis to rewrite S as a sum of sine waves of diff frequencies ii) Use frequency and phase response to see effect of each sine wave iii) Add scaled sine waves to find output signal. 9

Frequency and Phase Response Examples Scaling Factor FREQUENCY RESPONSE 2 180 Frequency (Hz) 200 Hz 1200 Hz Phase Shift PHASE RESPONSE 90 100 200 Hz Frequency (Hz) Bandwidth: range of frequecies for which channel passes signal through. Not very precise. 10

Sluggishness and Noise Most channels are sluggish (they take time to respond) because they turn a deaf hear to higher frequencies in the input signal. Thus lower bandwidth channels are more sluggish. What about noise? Different models for different channels. Simplest and common model: white noise (uniformly distributed at all frequencies and normally distributed within a frequency) 11

Sampling Bits 1 1 0 1 INPUT OUTPUT Ideal Sampling Points at receiver Receivers recover the bits in the input signal by sampling output signal close to middle of bit period. Two limits to bit rate: channel bandwidth (Nyquist) and noise (Shannon). 12

Bandwidth and Intersymbol Interference We know that a channel that cannot pass frequencies beyond f cannot respond fast enough if signals are sent at a rate faster than f. If we do so, then when the first signal is still settling, the energy of the second signal will start mixing in. If first signal is a 0 and second is a 1, receiver may decode incorrectly. Technically, we say that signalling at a rate higher than the channel bandwidth causes Inter Symbol Interference or ISI. 13

NYQUIST LIMIT T Time Signal frequency = 1/T = f Maximum Signal Rate = 2/T = 2f Works only if we have removed frequency components above f 14

Baud Rate and Bit Rate To prevent ISI, we cannot signal at faster than 2f times per second. Baud rate is max signalling rate. But each symbol in a signal can carry multiple bits. For example: 0, 2, 4 and 5V. 4 possible values and 2 bits per symbol. With L signal levels, bit rate is log L times baud rate. So why can t we transmit at terabits over a phone line? Noise. 15

THE SHANNON BOUND 0 S N N 1 2 3 S = Maximum Signal Amplitude N = Maximum Noise Amplitude log(s/2n) bits per signal 2 B signals/sec (Nyquist) Naive Bound = 2 B log(s/2n) Shannon Bound = B log(1 + S/2N) 16

2.0 Top Sublayer: Clock Recovery 17

Who needs a clock anyway? 0 0 0 1 1 1 1 0 0 0 0 1 1 0 How to initially synchronize receiver clock with sender clock? Initial Training Bits Problem: All real physical clocks drift over time. Crucial at high speeds. Small drift leads to sampling error. How to keep in synch? Transitions 18

Transitions and Coding Parse: nohewontgosoon. Need spaces and punctutations to parse speech. Stream of bits without transitions (change in signal value) equally hard to parse. Real data may contain all 0 s. How can you ensure transitions. Coding. Adds cost. Code to ensure that every n bits you get at least m transitions. Different coding schemes parameterized by n and m. 19

Asynchronous Coding START BIT 5 8 DATA BITS PLUS PARITY 1 2 STOP BITS IDEAL SAMPLING POINTS Codes a character (5-7) bits at a time. ASCII. Adds parity bit. Character is framed using a start bit and one or two stop bits. 1 is encoded as lowe voltage, 0 as high. 20

Why Synchronous Transmission For Clock Recovery, receiver must know when to start its receive clock (phase). Then can sample the line at periodic intervals at the same rate as sender clock with some help from transitions in data. In asynchronous, receiver gets locked in phase when the voltage goes from low to high (start bit). Need to have fairly large idle time between characters for receiver to get locked in phase for each character; slows transmission and limits it to low rates. Two overheads to start bits: extra bit but also extra time needed for reliable detection. (Starting up receiver clock is expensive) In synchronous, we put a large number of start bits at the start of a large number of data bits. This allows the startup overhead to be amortized. 21

Getting locked in phase S1 S2 Time In asynchronous you get in phase by a single 0 to 1 transition. Not very reliable in the presence of noise. In Manchester, you get in phase by sending a preamble or group of start bits of the form 010101 in which the only transitions are at mid bit; easy to recognize and get locked in phase. 22

Phase Locked Loops RECEIVER SAMPLING CLOCK OBSERVED TRANSITIONS IN DATA Once you lock in at the start of a data unit, you can rely on accuracy of receiver clock frequency (as in asynchronous). Can t do that if data unit is large (as in synchronous). Could try resetting receiver clock on every observed transition. Susceptible to noise. Better to use more gradual adjustment. Phase Locked Loops measure phase difference and speed up or slow down receiver clock to reduce phase difference. Commonly used. 23

Eye Patterns 0 1 0 1 0 1 0 1 0 1 0 1 Superpose to get eye pattern In a perfect system, we will have a well-defined eye. Should sample at center of eye. Nice visual test of line quality. 24

"SYNCHRONOUS" TRANSMISSION Upto 12000 Bits Lots of Start Bits (Preamble) Lots of Stop Bits (Postamble) same as asynchronous except larger frame sizes. It requires better clock tolerance and more sophisticated coding. 25

1.5 1.5 0 1 0 0 NRZL 1.5 1.5 Manchester Time Evaluation Criteria Coding Efficiency(Real Bits/Coded Bits) Signal to Noise Ratio DC Balance Implementation Complexity 26

Broadband Coding (So far) Baseband Coding using energy levels such as voltage or light. In broadband coding information is modulated on a carrier wave of a certain frequency. Used by modems. Modulation refers to changing the properties of the carrier to convey the required information. Frequency Shift Keying (FSK): high frequency encodes a 1 and low a 0, Amplitude Shift Keying (ASK): high amplitude encodes a 1. QAM (multiple amplitudes and phases) 27

MULTIPLEXING (SHARING) S1 S1 S2 S1 S2 S1 S2... S2 TIME DIVISION MULTIPLEXING (TDM) S1 S1 S2 S2 FREQUENCY DIVISION MULTIPLEXING (FDM) 3.0 Middle Sublayer: Media Specific Challenges and Opportunities 28

Media Affects Protocols Low Bandwidth led to tight encoding: Early Phone lines, not needed on LANs Broadcast LANs led to use of Multicast: Initialization and free copies, to IP multicast. Building wiring led to Switching: Wiring closets to hubs to ATM switches. Fiber led to rings: Point-to-point fibers lead to rings. Fiber led to Digital: Long haul telephone network becomes digital. Wireless leads to low bandwidths again: Laptops. Need Ipv6 compression on wireless links! 29

CPU UART MODEM MODEM UART CPU Twisted Pair TERMINAL CPU Low bandwidth RS 232 Cheap, Easy to Install 30

Using Twisted Pair for Higher Rates Today Standard twisted pair is limited by loading cables by telephone company to 4 Mhz. Shannon limit is around 56 Kbps (not counting compression). Two alternatives Better quality twisted pair cables for local area networks e.g., Cat 3 (10 Mbps, Manchester), Cat 5 (100 Mbps, 100 Mhz bandwidth uses 4-5 coding) Telephone company removes loading cables, reduces your length, and gives you ADSL. Asymmetrical. 31

BASEBAND CABLE (e.g. ETHERNET) CPU Transceiver Adaptor Transceiver Adaptor CPU Coaxial Cable TERMINAL CPU High bandwidth (10 100 MHz) Hard to tap, expensive to Install Small Distance (1 3 km without repeaters) 32

Using Coaxial Cable Today Coaxial cable has high bandwidth. Used for original 10 Mbps Ethernet but very clunky. Twisted pair (e.g. Cat 5) used today. Cable still used in cable networks for cable TV and for data via cable modems. Divide bandwidth into 6 Mhz channels for each TV channel and one 6 Mhz channel for downstream data. Theoretically can reach 30 Mbps but beware other users and bandwidth limits. Upstream much less. 33

FIBRE OPTICS Slow Signal Direct Signal LED Laser Huge Bandwidth (10 Million Mhz!) Photodiode Almost Imposible to Tap Point to point Secure Excellent Electrical Isolation Thin and Easy to Install Optics still expensive Unidirectional 34

MICROWAVE TOWER CROWDED CITY TOWER Avoids Right of Way May be cheaper than installing cable Reasonable Bandwidth Has problems with Rain Upto 100 km distance 35

SATELLITE DISH DISH Avoids Right of Way Good Bandwidth (500 Mhz) World Wide Large Latency Antenna Cost READING ASSIGNMENT: Section 2.2 36

Wireless Data Transmission Options 802.11: Wireless LANs using a wireless access point (AP) at hot spot using unlicensed frequency band 2.4 to 4.485 Ghz (radio frequency) 100 metres. 11 Mbps with 802.11b. Needs hotspot but becoming common and very cheap! Bluetooth: ad hoc personal area networks with no AP. Master-slave. 4 Mbps WiMax: broader geographical range smaller bandwidth of a few Mbps 3 G (Cellular telephone networks carrying data) at a few Mbps such as EDO. Unlimited geographical range and true mobility 37

802.11b in some more detail AP configured with a SSID that you can see when doing View Available Networks and a channel number from 1 to 11. Non-overlapping channels (1 6, 11) can be used to triple bandwidth Each AP periodically sends a beacon containg SSID. Each AP scans all 11 channels looking for beacons to get a list of networks. Some choice of AP and then mobile sets up an association Access protocol to send data tricky because of hidden terminal problem. Mobile A can send to base station and so can Mobile B, but A and B cannot hear each other but can interfere at base station. Needs careful protocol design (later) 38

Bandwidth Span Disadv Adv Twisted Pair < 1Mbps 1 2Km low speed cheap,easy to install Digital Coax 10 100Mbps 1 2km hard to tap, install broadcast Analog Coax 100 500Mbps 100km exp.analog amplifiers cable companies use it now! Satellite 100 500Mbps worldwide prop delay antennas no right of way cost does not depend on distance Microwave 10 100Mbps 100km fog outages no right of way Fiber terabits 100km no broadcast no mobility security isolation bandwidth Infrared < 4 Mbps 3 m obstacles wireless RF 115 kbps 1 km for infrared 39

ETHERNET TRANSMISSION Input Bit Stream Output Bit Stream 01010000 01010000 Manchester Synchronous Coding Decoding Coded Bit Stream Media Transmission Sublayer Input Signal Coded Bit Stream Media Reception Sublayer Output Signal MEDIA (COAXIAL CABLE) 40