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

Slides:



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

Network Technologies essentials Week 2: Physical layer & direct links Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall,
Chapter 2 Fundamentals of Data and Signals
Wireless Transmission Fundamentals (Physical Layer) Professor Honggang Wang
Chapter 3 Data and Signals.
1 Transmission Fundamentals Chapter 2 (Stallings Book)
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
ECE 4321: Computer Networks Chapter 3 Data Transmission.
Computer Science & Engineering Introduction to Computer Networks Overview of the Physical Layer.
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 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
Module 3.0: Data Transmission
Chapter 2: Fundamentals of Data and Signals. 2 Objectives After reading this chapter, you should be able to: Distinguish between data and signals, and.
Reliability and Channel Coding
Chapter 3 Data and Signals
The Physical Layer: Data Transmission Basics
Computer Networks Shyam Gollakota. Administrative TA: Rajalakshmi Nandakumar Course website: cs.washington.edu/561.
1 Computer Communication & Networks Lecture 5 Physical Layer: Data & Signals Waleed Ejaz
1 Physical Layer. 2 Analog vs. Digital  Analog: continuous values over time  Digital: discrete values with sharp change over time.
Digital to analogue conversion. 1 DIGITAL-TO-ANALOG CONVERSION Digital-to-analog conversion is the process of changing one of the characteristics (A,
Air Interface. 2 Analog Transmission n In analog transmission, the state of line can vary continuously and smoothly among an infinite number of states.
Chapter 2 Basic Communication Theory Basic Communications Theory w Understand the basic transmission theory, and figure out the maximum data rate. w.
1 Long-Distance Communication. 2 Illustration of a Carrier Carrier –Usually a sine wave –Oscillates continuously –Frequency of carrier fixed.
3.1 Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
Data Communications & Computer Networks, Second Edition1 Chapter 2 Fundamentals of Data and Signals.
Part 2 Physical Layer and Media
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 2 Computer Communications and Networks Boriana Koleva Room: C54 Phone:
2-1 Physical Layer l Theoretical basis for data communications n Fourier analysis n distortion –by different attenuation rates of different frequency components.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 8.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Modulation, Multiplexing, & Public Switched Telephone.
Computer Communication & Networks
Data Communications Chapter 16, Exploring the Digital Domain.
Computer Communication and Distributed Algorithms Second presentation – The physical layer ©Computer Communication and Distributed Algorithms.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
02 – Performance Basics 1CS Computer Networks.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
ECE 4710: Lecture #27 1 QPSK & MPSK  QPSK and MPSK  if baseband m(t) is rectangular pulse then envelope of RF signal is  constant (excluding bit transitions)
Physical Layer (Data and Signals)
Physical Layer: Data and Signals
Physical Layer PART II. Position of the physical layer.
Data Comm. & Networks Lecture 6 Instructor: Ibrahim Tariq.
Electromagnetic Spectrum
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.
Lecture Focus: Data Communications and Networking  Transmission Impairment Lecture 14 CSCS 311.
1 st semester 1436/  When a signal is transmitted over a communication channel, it is subjected to different types of impairments because of imperfect.
Signals. Signals can be analog or digital. Analog signals can have an infinite number of values in a range; digital signals can have only a limited number.
Module 4 Cable Testing.
Physical Layer Rudra Dutta ECE/CSC Fall 2007, Section 001.
Transmission Media. Quiz: ANGEL->Lessons->Quiz 2 Figure 1Figure 2 Figure 3Figure 4.
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
Advanced Computer Networks
Chapter 2 : Data Communications BENG 4522 Data Communications & Computer Networks Transmission Impairment Signals travel through the transmission.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
1587: COMMUNICATION SYSTEMS 1 Digital Signals, modulation and noise Dr. George Loukas University of Greenwich,
Computer Networks Shyam Gollakota. Computer Networks2 Protocols and Layers Protocols and layering is the main structuring method used to divide up network.
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
Physical Layer. Data Communications - Physical Layer2 Physical Layer Essence: Provide the means to transmit bits from sender to receiver involves a lot.
Dr. Clincy Professor of CS
תקשורת מחשבים ואלגוריתמים מבוזרים
CSCD 433 Network Programming
Presentation transcript:

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

CSE 461 University of Washington2 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 … … Signal

CSE 461 University of Washington3 Topics 1.Properties of media – Wires, fiber optics, wireless 2.Simple signal propagation – Bandwidth, attenuation, noise 3.Modulation schemes – Representing bits, noise 4.Fundamental limits – Nyquist, Shannon

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 Other important properties: – Whether the channel is broadcast, and its error rate CSE 461 University of Washington4 Delay D, Rate R Message

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 Washington5

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 Washington6

7 Metric Units The main prefixes we use: Use powers of 10 for rates, 2 for storage – 1 Mbps = 1,000,000 bps, 1 KB = 2 10 bytes “B” is for bytes, “b” is for bits PrefixExp.prefixexp. K(ilo)10 3 m(illi)10 -3 M(ega)10 6 μ(micro)10 -6 G(iga)10 9 n(ano)10 -9

CSE 461 University of Washington8 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 Washington9 Latency Examples (2) “Dialup” with a telephone modem: D = 5 ms, R = 56 kbps, M = 1250 bytes L = 5 ms + (1250x8)/(56 x 10 3 ) sec = 184 ms! Broadband cross-country link: D = 50 ms, R = 10 Mbps, M = 1250 bytes L = 50 ms + (1250x8) / (10 x 10 6 ) sec = 51 ms A long link or a slow rate means high latency – Often, one delay component dominates

CSE 461 University of Washington10 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 Washington11 Bandwidth-Delay Example Fiber at home, cross-country R=40 Mbps, D=50 ms

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

weights of harmonic frequencies Signal over time = Frequency Representation A signal over time can be represented by its frequency components (called Fourier analysis) CSE 461 University of Washington13 amplitude

Lost! Effect of Less Bandwidth Fewer frequencies (=less bandwidth) degrades signal CSE 461 University of Washington14 Lost! 14 Lost! Bandwidth

Signals over a Wire What happens to a signal as it passes over a wire? 1.The signal is delayed (propagates at ⅔c) 2.The signal is attenuated (goes for m to km) 3.Frequencies above a cutoff are highly attenuated 4.Noise is added to the signal (later, causes errors) CSE 461 University of Washington15 EE: Bandwidth = width of frequency band, measured in Hz CS: Bandwidth = information carrying capacity, in bits/sec

Signals over a Wire (2) Example: CSE 461 University of Washington16 2: Attenuation: 3: Bandwidth: 4: Noise: Sent signal

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

CSE 461 University of Washington18 Signals over Wireless Signals transmitted on a carrier frequency, like fiber (more later)

CSE 461 University of Washington19 Signals over Wireless (2) Travel at speed of light, spread out and attenuate faster than 1/dist 2 Signal strength Distance AB

CSE 461 University of Washington20 Signals over Wireless (3) Multiple signals on the same frequency interfere at a receiver Signal strength Distance AB C

CSE 461 University of Washington21 Signals over Wireless (4) Interference leads to notion of spatial reuse (of same freq.) Signal strength Distance AB C

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

Wireless Multipath Signals bounce off objects and take multiple paths – Some frequencies attenuated at receiver, varies with location – Messes up signal; handled with sophisticated methods (§2.5.3) CSE 461 University of Washington23

CSE 461 University of Washington24 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 Washington25 WiFi

Wireless (2) Microwave, e.g., 3G, and unlicensed (ISM) frequencies, e.g., WiFi, are widely used for computer networking CSE 461 University of Washington b/g/n a/g/n

CSE 461 University of Washington27 Topic We’ve talked about signals representing bits. How, exactly? – This is the topic of modulation … … Signal

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

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) CSE 461 University of Washington29 Bits NRZ V -V

CSE 461 University of Washington30 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 Washington31 Clock Recovery Um, how many zeros was that? – Receiver needs frequent signal transitions to decode bits Several possible designs – E.g., Manchester coding and scrambling (§2.5.1) … 0

CSE 461 University of Washington32 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  – 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)

Clock Recovery – 4B/5B (2) 4B/5B code for reference: – 0000  11110, 0001  01001, 1110  11100, … 1111  Message bits: CSE 461 University of Washington33 Coded Bits: Signal:

Clock Recovery – 4B/5B (3) 4B/5B code for reference: – 0000  11110, 0001  01001, 1110  11100, … 1111  Message bits: CSE 461 University of Washington34 Coded Bits: Signal:

CSE 461 University of Washington35 Passband Modulation What we have seen so far is baseband modulation for wires – Signal is sent directly on a wire These signals do not propagate well on fiber / wireless – Need to send at higher frequencies Passband modulation carries a signal by modulating a carrier

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

Passband Modulation (3) CSE 461 University of Washington37 NRZ signal of bits Amplitude shift keying Frequency shift keying Phase shift keying

CSE 461 University of Washington38 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 Washington39 Key Channel Properties The bandwidth (B), signal strength (S), and noise strength (N) – B 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 Washington40 Nyquist Limit The maximum symbol rate is 2B 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 Washington41 Claude Shannon ( ) Father of information theory – “A Mathematical Theory of Communication”, 1948 Fundamental contributions to digital computers, security, and communications Credit: Courtesy MIT Museum Electromechanical mouse that “solves” mazes!

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) CSE 461 University of Washington N S+N

CSE 461 University of Washington43 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

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 Washington44

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 CSE 461 University of Washington45 Engineer SNR for data rate Adapt data rate to SNR

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 Washington46

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