Physical Layer. Networked Systems (H) Lecture 3

Similar documents
Physical Layer. Networked Systems 3 Lecture 5

Physical Layer. Networked Systems Architecture 3 Lecture 6

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Lecture 5 Transmission

Computer Networks

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

C06a: Digital Modulation

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

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

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

CSE 461 Bits and Links. David Wetherall

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

CSEP 561 Bits and Links. David Wetherall

The Physical Layer Outline

Encoding and Framing

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

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

Point-to-Point Communications

Basic Concepts in Data Transmission

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

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Fundamentals of Data and Signals

CSCI-1680 Physical Layer Rodrigo Fonseca

Signal Encoding Techniques

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

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

SEN366 Computer Networks

Lecture 2: Links and Signaling"

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

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

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

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

Chapter 4 Digital Transmission 4.1

Transmission Impairments

CSE 461: Bits and Bandwidth. Next Topic

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

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

Data Communications and Networking (Module 2)

Lecture 3: Data Transmission

Chapter 2. Physical Layer

Chapter 2: Fundamentals of Data and Signals

Class 4 ((Communication and Computer Networks))

Lecture Outline. Data and Signals. Analogue Data on Analogue Signals. OSI Protocol Model

CPSC Network Programming. How do computers really communicate?

Physical Layer: Outline

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

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

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

COMP211 Physical Layer

IST 220 Exam 1 Notes Prepared by Dan Veltri

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

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Digital Transmission

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Lecture-8 Transmission of Signals

ETSF15 Physical layer communication. Stefan Höst

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Introduction to LAN/WAN. Physical Layer

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

Cable Testing TELECOMMUNICATIONS AND NETWORKING

Data Communications & Computer Networks

Media. Twisted pair db/km at 1MHz 2 km. Coaxial cable 7 db/km at 10 MHz 1 9 km. Optical fibre 0.2 db/km 100 km

Sirindhorn International Institute of Technology Thammasat University

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

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Lecture (06) Digital Coding techniques (II) Coverting Digital data to Digital Signals

Fundamentals of Digital Communication

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

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

ECE 435 Network Engineering Lecture 4

Transmission Media. - Bounded/Guided Media - Uubounded/Unguided Media. Bounded Media

ECE 435 Network Engineering Lecture 16

Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

Ș.l. dr. ing. Lucian-Florentin Bărbulescu

ECE 435 Network Engineering Lecture 20

COSC 3213: Computer Networks I: Chapter 3 Handout #4. Instructor: Dr. Marvin Mandelbaum Department of Computer Science York University Section A

Physical connec-vity CSCI 466: Networks Keith Vertanen Fal 2011

EC 554 Data Communications

Computer Networks Lecture -4- Transmission Media. Dr. Methaq Talib

Physical Layer. Networks: Physical Layer 1

Introduc)on to Computer Networks

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

Jaringan Komputer. Outline. The Physical Layer

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

Data and Computer Communications Chapter 3 Data Transmission

Digital to Digital Encoding

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

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

Maximum date rate=2hlog 2 V bits/sec. Maximum number of bits/sec=hlog 2 (1+S/N)

Hello and welcome to today s lecture. In the last couple of lectures we have discussed about various transmission media.

DATA TRANSMISSION. ermtiong. ermtiong

Introduction to Wireless Coding and Modulation

Data Encoding g(p (part 2)

Multiple Access Techniques

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

Introduction to Wireless Coding and Modulation

Data and Computer Communications. Chapter 3 Data Transmission

Lecture Fundamentals of Data and signals

Transcription:

Physical Layer Networked Systems (H) Lecture 3 This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nd/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

Lecture Outline Physical layer concepts Wired links Wireless links Channel capacity 2

The Physical Layer The physical layer is concerned with transmission of raw data bits What type of cable or wireless link do you use? How to encode bits onto that channel? Baseband encoding Carrier modulation What is the capacity of the channel? 3

Wired Links Physical characteristics of cable or optical fibre: Size and shape of the plugs Maximum cable/fibre length Type of cable: electrical voltage, current, modulation Type of fibre: single- or multi-mode, optical clarity, colour, power output, and modulation of the laser 4

Unshielded Twisted Pair Electrical cable using two wires twisted together Each pair is unidirectional: signal and ground Twists reduce interference and noise pickup: more twists less noise Cable lengths of several miles possible at low data rates; ~100 metres at high rates Susceptibility to noise increases with cable length Extremely widely deployed: Ethernet cables Telephone lines 5

Optical Fibre Glass core and cladding, contained in plastic jacket for protection Somewhat fragile: glass can crack if bent sharply Unidirectional data: transmission laser at one end; photodetector at the other Laser light trapped in fibre by total internal reflection Very low noise, since electromagnetic interference does not affect light Very high capacity: 10s of Gbps over 100s of miles Very cheap to manufacture Requires relatively expensive lasers to operate Source: Wikipedia/Bob Mellish/CC BY-SA 3.0 6

Baseband Signal strength Wired Data Transmission Signal usually directly encoded onto the channel Signal usually occupies baseband region The bandwidth of the signal is denoted H, and is the frequency range used 0 H Frequency Encoding performed by varying the voltage in an electrical cable, or the intensity of light in an optical fibre Many encoding schemes exist: NRZ, NRZI, Manchester, 4B/5B, etc. 7

Non-Return to Zero Encoding Encode a 1 as a high signal, a 0 as a low signal Voltage 5 4 3 2 1 0-2V codes 0 0 Time 3-5V codes 1 8

Non-Return to Zero Encoding Encode a 1 as a high signal, a 0 as a low signal Bits: 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ: Limitations with runs of consecutive same bit: Baseline wander Clock recovery 9

NRZ Inverted Encoding Encode a 1 as a change in signal value, a 0 as a constant signal Bits: 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ Inverted: Solves problems with runs of consecutive 1s, does nothing for runs of consecutive 0s 10

Manchester Encoding Encode a 1 as a high-low transition, a 0 as a low-high transition Bits: 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 Manchester: Doubles the bandwidth needed, but avoids the problems with NRZ encoding 11

4B/5B Encoding 4-Bit Data Symbol 5-Bit Encoding 0000 11110 0001 01001 0010 10100 0011 10101 0100 01010 0101 01011 0110 01110 0111 01111 1000 10010 1001 10011 1010 10110 1011 10111 1100 11010 1101 11011 1110 11100 1111 11101 Manchester encoding inefficient only 50% of link capacity used Alternative insert extra bits to break up sequences of same bit Each 4 bit data symbol is changed to a 5 bit code for transmission; reversed at receiver Transmit 5 bit codes using NRZI encoding 80% of link capacity used for data 12

Example: Ethernet Baseband data with Manchester coding at 10 Mbps, or 4B/5B coding at 100 Mbps Receive Transmit 4 twisted pairs per cable 3 twists per inch 24 gauge (~0.5mm) copper 100m maximum cable length 13

Wireless Links Wireless links use carrier modulation, rather than baseband transmission Performance affected by: Carrier frequency Transmission power Modulation scheme Type of antenna, etc. 14

Source: http://xkcd.com/273/ 15

Carrier Modulation Carrier wave applied to channel at frequency, C Signal modulated onto the carrier Modulated Baseband Signal strength H Shifts signal from baseband to a higher carrier frequency 0 H Allows multiple signals on a single channel C Frequency Provided carriers spaced greater than bandwidth, H, of the signal Usually applied to wireless links, but can be used on wired links this is how ADSL and voice telephones share a phone line 16

Amplitude, Frequency, Phase Modulation Raw signal: Amplitude modulation: Frequency modulation: Phase modulation: 17

Complex Modulations More complex modulation schemes allow more than one bit to be sent per baud Use multiple levels of the modulated component Example: gigabit Ethernet uses amplitude modulation with five levels, rather than binary signalling Combine modulation schemes Vary both phase and amplitude quadrature amplitude modulation Example: 9600bps modems use 12 phase shift values at two different amplitudes Extremely complex combinations regularly used 18

Spread Spectrum Communication Single frequency channels prone to interference Mitigate by repeatedly changing carrier frequency, many times per second: noise unlikely to affect all frequencies Use a pseudo-random sequence to choose which carrier frequency is used for each time slot Seed of pseudo-random number generator is shared secret between sender and receiver, ensuring security Source: (Wikipedia/Public Domain) Hedy Lamarr (1914-2000) Example: 802.11b Wi-Fi uses spread spectrum using several frequencies centred ~2.4 GHz with phase modulation 19

Bandwidth and Channel Capacity The bandwidth of a channel determines the frequency range it can transport Fundamental limitations based on physical properties of the channel, design of the end points, etc. What about digital signals? Sampling theorem: to accurately digitise an analogue signal, need 2H samples per second Maximum transmission rate of a digital signal depends on channel bandwidth: Rmax = 2H log2 V Rmax = maximum transmission rate of channel (bits per second) H = bandwidth V = number of discrete values per symbol Assumption: perfect, noise-free, channel Source: IEEE Harry Nyquist (1889-1976) 20

Noise Real world channels are subject to noise Many causes of noise: Electrical interference Cosmic radiation Thermal noise Different noise spectra Corrupts the signal: additive interference 21

Signal to Noise Ratio Can measure signal power, S, and noise floor, N, in a channel Gives signal-to-noise ratio: S/N Typically quoted in decibels (db), not directly Signal-to-noise ratio in db = 10 log10 S/N Example: ADSL modems report S/N ~30 for good quality phone lines: signal power 1000x greater than noise Signal Noise S/N db 2 3 10 10 100 20 1000 30 t 22

Capacity of a Noisy Channel Capacity of noisy channel depends on type of noise Uniform or bursty; affecting all or some frequencies Simplest to model is Gaussian noise: uniform noise that impacts all frequencies equally Maximum transmission rate of a channel subject to Gaussian noise: Rmax = H log2(1 + S/N) Source: AT&TT Bell Labs Claude Shannon (1916-2001) 23

Capacity of a Noisy Channel 60000 50000 Maximum Data Rate 40000 30000 20000 10000 Example: maximum date rate of an analogue telephone line H = 3370 Hz (PSTN) 56kbps 0 0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 S/N 24

Implications Physical characteristics of channel limit amount of information that can be transferred Bandwidth Signal to noise ratio These are fundamental limits: might be reached with careful engineering, but cannot be exceeded 25