Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Similar documents
Lecture 5 Transmission

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

Computer Networks

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

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

Physical Layer: Outline

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

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

Chapter 2. Physical Layer

The Physical Layer Outline

Wireless Intro : Computer Networking. Wireless Challenges. Overview

Outline / Wireless Networks and Applications Lecture 5: Physical Layer Signal Propagation and Modulation

Physical Layer. Networked Systems (H) Lecture 3

CSE 461: Bits and Bandwidth. Next Topic

Lecture 2: Links and Signaling"

CPSC Network Programming. How do computers really communicate?

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

Physical Layer. Networked Systems 3 Lecture 5

Outline / Wireless Networks and Applications Lecture 2: Networking Overview and Wireless Challenges. Protocol and Service Levels

DATA TRANSMISSION. ermtiong. ermtiong

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

Encoding and Framing

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

Physical Layer. Networked Systems Architecture 3 Lecture 6

Chapter 2: Computer Networks

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

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

ECE 435 Network Engineering Lecture 16

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

Lecture 3: Data Transmission

ECE 435 Network Engineering Lecture 20

CSE 461 Bits and Links. David Wetherall

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

Chapter 3 Digital Transmission Fundamentals

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

Point-to-Point Communications

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

CSCI-1680 Physical Layer Rodrigo Fonseca

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

CSEP 561 Bits and Links. David Wetherall

CSE 561 Bits and Links. David Wetherall

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

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

Project = An Adventure : Wireless Networks. Lecture 4: More Physical Layer. What is an Antenna? Outline. Page 1

Data and Computer Communications. Chapter 3 Data Transmission

Cable Testing TELECOMMUNICATIONS AND NETWORKING

Chapter 3 Data and Signals

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

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

Lecture Fundamentals of Data and signals

TECHNICAL ARTICLE: DESIGN BRIEF FOR INDUSTRIAL FIBRE OPTICAL NETWORKS

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

Simple Algorithm in (older) Selection Diversity. Receiver Diversity Can we Do Better? Receiver Diversity Optimization.

Lecture 21: Links and Signaling

Wireless Transmission & Media Access

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

William Stallings Data and Computer Communications. Bab 4 Media Transmisi

EC 554 Data Communications

Chapter-15. Communication systems -1 mark Questions

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

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Data Communication. Chapter 3 Data Transmission

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

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Week 2 Lecture 1. Introduction to Communication Networks. Review: Analog and digital communications

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

Optical Transport Tutorial

Qiz 1. 3.discrete time signals can be obtained by a continuous-time signal. a. sampling b. digitizing c.defined d.

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

Data Communications & Computer Networks

COMP211 Physical Layer

Chapter 2: Fundamentals of Data and Signals

CS307 Data Communication

EE 304 TELECOMMUNICATIONs ESSENTIALS HOMEWORK QUESTIONS AND ANSWERS

ITM 1010 Computer and Communication Technologies

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

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

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

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

Basic Concepts in Data Transmission

E-716-A Mobile Communications Systems. Lecture #2 Basic Concepts of Wireless Transmission (p1) Instructor: Dr. Ahmad El-Banna

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

Class 4 ((Communication and Computer Networks))

Physical Layer. Networks: Physical Layer 1

ETSF15 Physical layer communication. Stefan Höst

a. Find the minimum number of samples per second needed to recover the signal without loosing information.

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

You may use a calculator, but you may not use a computer during the test or have any wireless device with you.

Chapter 4: Transmission Media

Fundamentals of Digital Communication

Fundamentals of Data and Signals

Course 2: Channels 1 1

Chapter 4 Digital Transmission 4.1

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

Data and Computer Communications Chapter 3 Data Transmission

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

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

Transcription:

Lecture 5 Transmission Peter Steenkiste School of Computer Science Department of Electrical and Computer Engineering Carnegie Mellon University 15-441 Networking, Spring 2004 http://www.cs.cmu.edu/~prs/15-441 Peter A. Steenkiste, SCS, CMU 1 Physical and Datalink Layers: 3 Lectures 1. Physical layer. 2. Datalink layer introduction, framing, error coding, switched networks. 3. Broadcast-networks, home networking. Application Presentation Session Transport Network Datalink Physical Peter A. Steenkiste, SCS, CMU 2 Page 1

From Signals to Packets Analog Signal Digital Signal Bit Stream 0 0 1 0 1 1 1 0 0 0 1 Packets 0100010101011100101010101011101110000001111010101110101010101101011010111001 Header/Body Header/Body Header/Body Packet Transmission Sender Receiver Peter A. Steenkiste, SCS, CMU 3 Today s Lecture Modulation. Bandwidth limitations. Frequency spectrum and its use. Multiplexing. Media: Copper, Fiber, Optical, Wireless. Coding. Framing. Peter A. Steenkiste, SCS, CMU 4 Page 2

Modulation Sender changes the nature of the signal in a way that the receiver can recognize.» Similar to radio: AM or FM Digital transmission: encodes the values 0 or 1 in the signal.» It is also possible to encode multi-valued symbols 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. Can also combine method modulation types. Peter A. Steenkiste, SCS, CMU 5 Amplitude and Frequency Modulation 0 0 1 1 0 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 0 1 1 0 0 0 1 Peter A. Steenkiste, SCS, CMU 6 Page 3

The Frequency Domain A (periodic) 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.» What frequencies are present and what is their strength (energy) Again: Similar to radio and TV signals. Amplitude Time Frequency Peter A. Steenkiste, SCS, CMU 7 Signal = Sum of Waves = + 1.3 X + 0.56 X + 1.15 X Peter A. Steenkiste, SCS, CMU 8 Page 4

Why Do We Care? How much bandwidth can I get out of a specific wire (transmission medium)? What limits the physical size of the network? How can multiple hosts communicate over the same wire at the same time? How can I manage bandwidth on a transmission medium? How do the properties of copper, fiber, and wireless compare? Peter A. Steenkiste, SCS, CMU 9 Transmission Channel Considerations Every medium supports transmission in a certain frequency range.» Outside this range, effects such as attenuation,.. degrade the signal too much Transmission and receive 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 Peter A. Steenkiste, SCS, CMU 10 Page 5

The 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» Shannon extended this result by accounting for the effects of noise. More aggressive encoding can increase the channel bandwidth.» Example: modems 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 Peter A. Steenkiste, SCS, CMU 11 Capacity of a Noisy Channel 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 on capacity? Peter A. Steenkiste, SCS, CMU 12 Page 6

Example: Modem Rates 100000 Modem rate 10000 1000 100 1975 1980 1985 1990 1995 2000 Year Peter A. Steenkiste, SCS, CMU 13 Limits to Speed and Distance 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 Effects limit the data rate that a channel can sustain.» But affects different technologies in different ways Effects become worse with distance.» Tradeoff between data rate and distance Peter A. Steenkiste, SCS, CMU 14 Page 7

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 102.5 station Controlling time is a datalink protocol issue.» Media Access Control (MAC): who gets to send when? Peter A. Steenkiste, SCS, CMU 15 Time Division Multiplexing Different users use the wire at different points in time. Aggregate bandwidth also requires more spectrum. Frequency Frequency Peter A. Steenkiste, SCS, CMU 16 Page 8

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 Some idea applies to frequency and phase modulation.» E.g. change frequency of the carrier instead of its amplitude Peter A. Steenkiste, SCS, CMU 17 Amplitude Carrier Modulation Amplitude Amplitude Signal Carrier Frequency Modulated Carrier Peter A. Steenkiste, SCS, CMU 18 Page 9

Frequency Division Multiplexing: Multiple Channels Determines Bandwidth of Link Amplitude Determines Bandwidth of Channel Different Carrier Frequencies Peter A. Steenkiste, SCS, CMU 19 Frequency versus Time-division Multiplexing With frequency-division multiplexing different users use different parts of the frequency spectrum.» I.e. each user can send all the time at reduced rate» Example: roommates With time-division multiplexing different users send at different times.» I.e. each user can sent at full speed some of the time» Example: a time-share condo The two solutions can be combined. Frequency Slot Frame Frequency Bands Time Peter A. Steenkiste, SCS, CMU 20 Page 10

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» Cost: ~ 10cents/foot 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 Peter A. Steenkiste, SCS, CMU 21 Light Transmission in Fiber 1.0 loss (db/km) 0.5 tens of THz 0.0 1000 1.3µ 1.55µ 1500 wavelength (nm) Peter A. Steenkiste, SCS, CMU 22 Page 11

Ray Propagation cladding core lower index of refraction (note: minimum bend radius of a few cm) Peter A. Steenkiste, SCS, CMU 23 Fiber Types Multimode fiber.» 62.5 or 50 micron core carries multiple modes» used at 1.3 microns, 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: 1 Gbps at 10 km or more» still subject to chromatic dispersion Peter A. Steenkiste, SCS, CMU 24 Page 12

Gigabit Ethernet: Physical Layer Comparison Medium Transmit/receive Distance Comment Copper 1000BASE-CX 25 m machine room use Twisted pair 1000BASE-T 100 m not yet defined; cost? Goal:4 pairs of UTP5 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 Peter A. Steenkiste, SCS, CMU 25 Regeneration and 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 Peter A. Steenkiste, SCS, CMU 26 Page 13

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.» E.g., 16 colors of 2.4 Gbit/second Like radio, but optical and much faster Frequency Optical Splitter Peter A. Steenkiste, SCS, CMU 27 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 Peter A. Steenkiste, SCS, CMU 28 Page 14

Things to Remember Bandwidth and distance of networks is limited by physical properties of media.» Attenuation, noise, Network 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 Multiple users can be supported using space, time, or frequency division multiplexing. Properties of different transmission media. Peter A. Steenkiste, SCS, CMU 29 From Signals to Packets Analog Signal Digital Signal Bit Stream 0 0 1 0 1 1 1 0 0 0 1 Packets 0100010101011100101010101011101110000001111010101110101010101101011010111001 Header/Body Header/Body Header/Body Packet Transmission Sender Receiver Peter A. Steenkiste, SCS, CMU 30 Page 15

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? Peter A. Steenkiste, SCS, CMU 31 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. Peter A. Steenkiste, SCS, CMU 32 Page 16

Encoding Use two discrete signals, high and low, to encode 0 and 1. Transmission is synchronous, i.e., a clock is used to sample the signal.» In general, the duration of one bit is equal to one or two clock ticks» Receiver s clock must be synchronized with the sender s clock Encoding can be done one bit at a time or in blocks of, e.g., 4 or 8 bits. Peter A. Steenkiste, SCS, CMU 33 Non-Return to Zero (NRZ).85 V 0 -.85 0 1 0 0 0 1 1 0 1 1 -> high signal; 0 -> low signal Long sequences of 1 s or 0 s can cause problems:» Sensitive to clock skew, i.e. hard to recover clock» Difficult to interpret 0 s and 1 s Peter A. Steenkiste, SCS, CMU 34 Page 17

Non-Return to Zero Inverted (NRZI).85 V 0 -.85 0 1 0 0 0 1 1 0 1 1 -> make transition; 0 -> signal stays the same Solves the problem for long sequences of 1 s, but not for 0 s. Peter A. Steenkiste, SCS, CMU 35 Ethernet Manchester Encoding 0 1 1 0.85 V 0 -.85.1µs Positive transition for 0, negative for 1 Transition every cycle communicates clock (but need 2 transition times per bit) DC balance has good electrical properties Peter A. Steenkiste, SCS, CMU 36 Page 18

4B/5B Encoding Data coded as symbols of 5 line bits => 4 data bits, so 100 Mbps uses 125 MHz.» Uses less frequency space than Manchester encoding Uses NRI to encode the 5 code bits Each valid symbol has at least two 1s: get dense transitions. 16 data symbols, 8 control symbols» Data symbols: 4 data bits» Control symbols: idle, begin frame, etc. Example: FDDI. Peter A. Steenkiste, SCS, CMU 37 4B/5B Encoding Data Code Data Code 0000 0001 0010 0011 0100 0101 0110 0111 11110 01001 10100 10101 01010 01011 01110 01111 1000 1001 1010 1011 1100 1101 1110 1111 10010 10011 10110 10111 11010 11011 11100 11101 Peter A. Steenkiste, SCS, CMU 38 Page 19

Other Encodings 8B/10B: Fiber Channel and Gigabit Ethernet» DC balance 64B/66B: 10 Gbit Ethernet Peter A. Steenkiste, SCS, CMU 39 Page 20