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

Similar documents
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

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

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

The Physical Layer Outline

CSE 461 Bits and Links. David Wetherall

CSEP 561 Bits and Links. David Wetherall

CSE 561 Bits and Links. David Wetherall

Chapter 2. Physical Layer

CSE 461: Bits and Bandwidth. Next Topic

The Physical Layer Chapter 2. The Physical Layer

Lecture 2: Links and Signaling"

Physical Layer. Networked Systems (H) Lecture 3

Computer Networks

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

Computer Communication Networks Physical

Point-to-Point Communications

Lecture 5 Transmission

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

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 3

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

CPSC Network Programming. How do computers really communicate?

Physical Layer. Networked Systems 3 Lecture 5

Lecture 3: Transmission Media

C05a: Transmission Media

Physical Layer. Networked Systems Architecture 3 Lecture 6

Channel Concepts CS 571 Fall Kenneth L. Calvert

Introduction to LAN/WAN. Physical Layer

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

DATA TRANSMISSION. ermtiong. ermtiong

C06a: Digital Modulation

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

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

1. What is the bandwidth of a signal that ranges from 40 KHz to 4 MHz? a MHz (4M -40K) b. 36 MHz c. 360 KHz d. 396 KHz

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

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

Encoding and Framing

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

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

Lecture 3: Data Transmission

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

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

The Physical Layer Chapter 2

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

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

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

EE 304 TELECOMMUNICATIONs ESSENTIALS HOMEWORK QUESTIONS AND ANSWERS

CS307 Data Communication

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

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

CSCI-1680 Physical Layer Rodrigo Fonseca

ECE 435 Network Engineering Lecture 16

Books: 1. Data communications by William L Schweber 2. Data communication and Networking by Behrouz A F0rouzan

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

Fundamentals of Data and Signals

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

Physical Layer: Outline

ECE 435 Network Engineering Lecture 20

Jaringan Komputer. Outline. The Physical Layer

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

IST 220 Exam 1 Notes Prepared by Dan Veltri

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

CS441 Mobile & Wireless Computing Communication Basics

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

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

Chapter 3 Data and Signals

Chapter 4 Digital Transmission 4.1

Cable Testing TELECOMMUNICATIONS AND NETWORKING

Physical Layer. Networks: Physical Layer 1

Chapter 3 Digital Transmission Fundamentals

Chapter 2. Bandwidth-Limited Signals (2) The Theoretical Basis for Data Communication

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

ETSF15 Physical layer communication. Stefan Höst

Lecture-8 Transmission of Signals

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

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

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

Data and Computer Communications Chapter 3 Data Transmission

Data and Computer Communications Chapter 8 Multiplexing

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

Data com ch#3 (part 2)

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

Wireless Intro : Computer Networking. Wireless Challenges. Overview

CARLETON UNIVERSITY Department of Systems and Computer Engineering

Department of Computer Science and Engineering. CSE 3213: Communication Networks (Fall 2015) Instructor: N. Vlajic Date: Dec 13, 2015

EC 554 Data Communications

Introduc)on to Computer Networks

ECE 271 INTRODUCTION TO TELECOMMUNICATION NETWORKS HOMEWORK QUESTIONS ECE 271 HOMEWORK-1

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

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

Data and Computer Communications. Tenth Edition by William Stallings

Communication Limits. Goals. Parity. RS-232 Format

Adoption of this document as basis for broadband wireless access PHY

Data Communications and Networking (Module 2)

Lecture 2 Physical Layer - Data Transmission

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

EE4601 Communication Systems

Sirindhorn International Institute of Technology Thammasat University

Transcription:

Physical Layer

Lecture Progression Bottom-up through the layers: Application - HTTP, DNS, CDNs Transport - TCP, UDP Network - IP, NAT, BGP Link - Ethernet, 802.11 Physical - wires, fiber, wireless Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

Where we are in the Course Beginning to work our way up starting with the Physical layer Application Transport Network Link Physical CSE 461 University of Washington 3

Scope of the Physical Layer Concerns how signals are used to transfer message bits over a link Wires etc. carry analog signals We want to send digital bits 10110 10110 Signal CSE 461 University of Washington 4

Topics 1. Coding and Modulation schemes Representing bits, noise 2. Properties of media Wires, fiber optics, wireless, propagation Bandwidth, attenuation, noise 3. Fundamental limits Nyquist, Shannon CSE 461 University of Washington 5

Coding and Modulation

Topic How can we send information across a link? This is the topic of coding and modulation Modem (from modulator demodulator) Signal 10110 10110 CSE 461 University of Washington 7

A Simple Coding Let a high voltage (+V) represent a 1, and low voltage (-V) represent a 0 This is called NRZ (Non-Return to Zero) Return to zero has a zero voltage as the clocking Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ +V -V CSE 461 University of Washington 8

A Simple Modulation (2) Let a high voltage (+V) represent a 1, and low voltage (-V) represent a 0 This is called NRZ (Non-Return to Zero) Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ +V -V CSE 461 University of Washington 9

A Simple Modulation (3) Problems?

Many Other Schemes Can use more signal levels E.g., 4 levels is 2 bits per symbol Practical schemes are driven by engineering considerations E.g., clock recovery CSE 461 University of Washington 11

Clock Recovery Um, how many zeros was that? Receiver needs frequent signal transitions to decode bits 1 0 0 0 0 0 0 0 0 0 0 Several possible designs E.g., Manchester coding and scrambling ( 2.5.1) CSE 461 University of Washington 12

Clock Recovery 4B/5B Map every 4 data bits into 5 code bits without long runs of zeros 0000 11110, 0001 01001, 1110 11100, 1111 11101 Has at most 3 zeros in a row Also invert signal level on a 1 to break up long runs of 1s (called NRZI, 2.5.1) CSE 461 University of Washington 13

Clock Recovery 4B/5B (2) 4B/5B code for reference: 0000 11110, 0001 01001, 1110 11100, 1111 11101 Message bits: 1 1 1 1 0 0 0 0 0 0 0 1 Coded Bits: Signal: CSE 461 University of Washington 14

Clock Recovery 4B/5B (3) 4B/5B code for reference: 0000 11110, 0001 01001, 1110 11100, 1111 11101 Message bits: 1 1 1 1 0 0 0 0 0 0 0 1 Coded Bits: Signal: 1 1 1 0 1 1 1 1 1 0 0 1 0 0 1 CSE 461 University of Washington 15

Modulation vs Coding What we have seen so far is called coding Signal is sent directly on a wire These signals do not propagate well as RF Need to send at higher frequencies Modulation carries a signal by modulating a carrier instead Baseband is extremely low frequency Passband is a specific frequency CSE 461 University of Washington 16

Passband Modulation (2) Carrier is simply a signal oscillating at a desired frequency: We can modulate it by changing: Amplitude, frequency, or phase CSE 461 University of Washington 17

Comparisons NRZ signal of bits Amplitude shift keying Frequency shift keying Phase shift keying CSE 461 University of Washington 18

Simple Link Model We ll end with an abstraction of a physical channel Rate (or bandwidth, capacity, speed) in bits/second Delay in seconds, related to length Message Delay D, Rate R Other important properties: Whether the channel is broadcast, and its error rate CSE 461 University of Washington 19

Message Latency Latency is the delay to send a message over a link Transmission delay: time to put M-bit message on the wire Propagation delay: time for bits to propagate across the wire Combining the two terms we have: CSE 461 University of Washington 20

Message Latency (2) Latency is the delay to send a message over a link Transmission delay: time to put M-bit message on the wire T-delay = M (bits) / Rate (bits/sec) = M/R seconds Propagation delay: time for bits to propagate across the wire P-delay = Length / speed of signals = Length / ⅔c = D seconds Combining the two terms we have: L = M/R + D CSE 461 University of Washington 21

Latency Examples Dialup with a telephone modem: D = 5 ms, R = 56 kbps, M = 1250 bytes Broadband cross-country link: D = 50 ms, R = 10 Mbps, M = 1250 bytes CSE 461 University of Washington 22

Latency Examples (2) Dialup with a telephone modem: D = 5 ms, R = 56 kbps, M = 1250 bytes L = (1250x8)/(56 x 10 3 ) sec + 5ms = 184 ms! Broadband cross-country link: D = 50 ms, R = 10 Mbps, M = 1250 bytes L = (1250x8) / (10 x 10 6 ) sec + 50ms = 51 ms A long link or a slow rate means high latency: One component dominates CSE 461 University of Washington 23

Bandwidth-Delay Product Messages take space on the wire! The amount of data in flight is the bandwidth-delay (BD) product BD = R x D Measure in bits, or in messages Small for LANs, big for long fat pipes CSE 461 University of Washington 24

Bandwidth-Delay Example Fiber at home, cross-country R=40 Mbps, D=50 ms 110101000010111010101001011 CSE 461 University of Washington 25

Bandwidth-Delay Example (2) Fiber at home, cross-country R=40 Mbps, D=50 ms BD = 40 x 10 6 x 50 x 10-3 bits = 2000 Kbit = 250 KB That s quite a lot of data in the network! 110101000010111010101001011 CSE 461 University of Washington 26

Media

Types of Media Media propagate signals that carry bits of information We ll look at some common types: Wires Fiber (fiber optic cables) Wireless CSE 461 University of Washington 28

Wires Twisted Pair Very common; used in LANs and telephone lines Twists reduce radiated signal Category 5 UTP cable with four twisted pairs CSE 461 University of Washington 29

Wires Coaxial Cable Also common. Better shielding for better performance Other kinds of wires too: e.g., electrical power ( 2.2.4) CSE 461 University of Washington 30

Fiber Long, thin, pure strands of glass Enormous bandwidth (high speed) over long distances Optical fiber Light source (LED, laser) Light trapped by total internal reflection Photodetector CSE 461 University of Washington 31

Fiber (2) Two varieties: multi-mode (shorter links, cheaper) and single-mode (up to ~100 km) One fiber Fiber bundle in a cable CSE 461 University of Washington 32

Signals over Fiber Light propagates with very low loss in three very wide frequency bands Use a carrier to send information Attenuation (db/km) By SVG: Sassospicco Raster: Alexwind, CC-BY-SA-3.0, via Wikimedia Commons Wavelength (μm) CSE 461 University of Washington 33

Wireless Sender radiates signal over a region In many directions, unlike a wire, to potentially many receivers Nearby signals (same freq.) interfere at a receiver; need to coordinate use CSE 461 University of Washington 34

Wireless Interference

WiFi WiFi CSE 461 University of Washington 36

Wireless (2) Unlicensed (ISM) frequencies, e.g., WiFi, are widely used for computer networking 802.11 b/g/n 802.11a/g/n

Multipath (3) Signals bounce off objects and take multiple paths Some frequencies attenuated at receiver, varies with location CSE 461 University of Washington 38

Wireless (4) Various other effects too! Wireless propagation is complex, depends on environment Some key effects are highly frequency dependent, E.g., multipath at microwave frequencies CSE 461 University of Washington 39

Limits

Topic How rapidly can we send information over a link? Nyquist limit (~1924) Shannon capacity (1948) Practical systems are devised to approach these limits CSE 461 University of Washington 41

Key Channel Properties The bandwidth (B), signal strength (S), and noise (N) B (in hertz) limits the rate of transitions S and N limit how many signal levels we can distinguish Bandwidth B Signal S, Noise N CSE 461 University of Washington 42

Nyquist Limit The maximum symbol rate is 2B 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Thus if there are V signal levels, ignoring noise, the maximum bit rate is: R = 2B log 2 V bits/sec CSE 461 University of Washington 43

Claude Shannon (1916-2001) Father of information theory A Mathematical Theory of Communication, 1948 Fundamental contributions to digital computers, security, and communications Electromechanical mouse that solves mazes! Credit: Courtesy MIT Museum CSE 461 University of Washington 44

Shannon Capacity How many levels we can distinguish depends on S/N Or SNR, the Signal-to-Noise Ratio Note noise is random, hence some errors SNR given on a log-scale in decibels: SNR db = 10log 10 (S/N) 0 1 2 3 S+N N CSE 461 University of Washington 45

Shannon Capacity (2) Shannon limit is for capacity (C), the maximum information carrying rate of the channel: C = B log 2 (1 + S/N) bits/sec CSE 461 University of Washington 46

Wired/Wireless Perspective Wires, and Fiber Engineer link to have requisite SNR and B Can fix data rate Wireless Given B, but SNR varies greatly, e.g., up to 60 db! Can t design for worst case, must adapt data rate CSE 461 University of Washington 47

Wired/Wireless Perspective (2) Wires, and Fiber Engineer link to have requisite SNR and B Can fix data rate Wireless Given B, but SNR varies greatly, e.g., up to 60 db! Can t design for worst case, must adapt data rate Engineer SNR for data rate Adapt data rate to SNR CSE 461 University of Washington 48

Putting it all together DSL DSL (Digital Subscriber Line, see 2.6.3) is widely used for broadband; many variants offer 10s of Mbps Reuses twisted pair telephone line to the home; it has up to ~2 MHz of bandwidth but uses only the lowest ~4 khz CSE 461 University of Washington 49

DSL (2) DSL uses passband modulation (called OFDM) Separate bands for upstream and downstream (larger) Modulation varies both amplitude and phase (QAM) High SNR, up to 15 bits/symbol, low SNR only 1 bit/symbol ADSL2: Voice Up to 1 Mbps Up to 12 Mbps 0-4 khz Telephone Freq. 26 138 khz Upstream 143 khz to 1.1 MHz Downstream CSE 461 University of Washington 50