CSCI-1680 Physical Layer Link Layer I

Slides:



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

CSCI-1680 Physical Layer Link Layer I Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
1 Chapter 2 Agenda Announcements / updates Gayle Laakman McDowell, 10/11, 4:30pm, UW2-005 GUIs / IDEs for remotely accessing uw1-320-lab Other references.
Chapter 2 Fundamentals of Data and Signals
Digital to Analog Many carrier facilities are analog Many transmission media are also analog (microwave, radio) We can carry digital values over analog.
Fundamentals of Computer Networks ECE 478/578 Lecture #3: Encoding and Framing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Physical Layer: Data Encoding & Transmission. 2 Network Interface Card (NIC) LL in part, PL in total are implemented in NIC –Ethernet card, card,
1 Chapter 2 The Physical Layer The lowest layer of reference model. It defines the mechanical, electrical, and timing interfaces to the network.
Lecture 3 Data Encoding and Signal Modulation
Analog and Digital Transmission Interfaces and Multiplexing (Physical Layer) Lita Lidyawati 2012.
Data Communication Networks Lec 8 and 9. Physical Layer and Media Bottom-most layer. Interacts with transmission media. Physical part of the network.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
1 Physical Layer. 2 Analog vs. Digital  Analog: continuous values over time  Digital: discrete values with sharp change over time.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
Winter 2008CS244a Handout 121 CS244a: An Introduction to Computer Networks Handout 12: Physical Layer Sending 1’s and 0’s, Capacity and Clocking Nick McKeown.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
CSCI-1680 Physical Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Data Communications Chapter 5 Data Encoding.
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
3-2008UP-Copyrights reserved1 ITGD4103 Data Communications and Networks Lecture-11:Data encoding techniques week 12- q-2/ 2008 Dr. Anwar Mousa University.
British Computer Society (BCS)
Physical and Link Layers Brad Karp UCL Computer Science CS 6007/GC15/GA07 23 rd February, 2009.
CS 4700 / CS 5700 Network Fundamentals
CSCI-1680 Physical Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Prof. Hosny Ibrahim Lecture 5. Data Communication IT 221 By: Prof. Hosny M. Ibrahim 2.
Postacademic Interuniversity Course in Information Technology – Module C1p1 Chapter 4 Communications, Theory and Media.
9-Jan-164/598N: Computer Networks Overview Performance metrics - Section 1.5 Direct link networks –Hardware building blocks - Section 2.1 –Encoding - Section.
Physical Layer Issues and Methods Outline Physical Layer Overview Non-Return to Zero Manchester 4B/5B.
Shannon’s Theorem Nyquist Theorem Modulations Multiplexing
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
Physical Layer Issues and Methods Outline Physical Layer Ethernet Technology Physical Layer Encoding Final Exam Review - ??
1 Point-to-Point Links: Encoding Encoding: Section 2.2 (Section 2.1 read on your own)
Building A Network: Cost Effective Resource Sharing
Data Link Layer Part I: Encoding. Network Architecture application transport network link physical message segment packet frame signal.
CSE331: Introduction to Networks and Security Lecture 2 Fall 2002.
Signal Encoding Techniques. Digital Data, Digital Signal  Digital signal discrete, discontinuous voltage pulses discrete, discontinuous voltage pulses.
Lect-10-2: Physical Layer Computer Networks : An Introduction to Computer Networks Handout #12: Physical Layer Signaling, Coding and Clocking.
1587: COMMUNICATION SYSTEMS 1 Digital Signals, modulation and noise Dr. George Loukas University of Greenwich,
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
CHAPTER 4. OUTLINES 1. Digital Modulation Introduction Information capacity, Bits, Bit Rate, Baud, M- ary encoding ASK, FSK, PSK, QPSK, QAM 2. Digital.
Data Communications and Networking
Data Encoding Data Encoding refers the various techniques of impressing data (0,1) or information on an electrical, electromagnetic or optical signal that.
Getting Connected (Chapter 2 Part 1)
Chapter 2: Physical Layer
Chapter 4. Digital Transmission
Dr. Clincy Professor of CS
Signal Encoding Techniques
4.2 Digital Transmission Pulse Modulation (Part 2.1)
CS 3700 Networks and Distributed Systems
DIGITAL MODULATION AND MULTIPLEXING
KOMUNIKASI DATA Materi Pertemuan 10.
CSCI-1680 Physical Layer Link Layer I
Dr. Clincy Professor of CS
Bit rate Baud rate Goal in data communication is to increase the bit rate while decreasing the baud rate. Increasing the data rate increases the speed.
Physical Layer (Part 2) Data Encoding Techniques
Data Encoding Data Encoding refers the various techniques of impressing data (0,1) or information on an electrical, electromagnetic or optical signal that.
תקשורת מחשבים ואלגוריתמים מבוזרים
Physical Layer – Part 2 Data Encoding Techniques
CS 3700 Networks and Distributed Systems
Important Concepts at the Physical Layer
Fundamentals of Data & Signals (Part II)
CSCD 433 Network Programming
Chapter 5. Data Encoding Digital Data, Digital Signals
CS 4700 / CS 5700 Network Fundamentals
Sampling Theorems- Nyquist Theorem and Shannon-Hartley Theorem
Building A Network: Cost Effective Resource Sharing
Fundamentals of Computer Networks
Physical Layer – Part 2 Data Encoding Techniques
Analog Transmission Example 1
Home work project #1 Develop and fully debug your program on the Cushing 208 lab. Machines - planet lab machines may not have good development environment.
Presentation transcript:

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti

Administrivia Snowcast milestone today “Last commit before midnight” Schedule your milestone meeting

Today Physical Layer Link Layer I Modulation and Channel Capacity Encoding Link Layer I Framing

Layers, Services, Protocols Service: user-facing application. Application-defined messages Application Service: multiplexing applications Reliable byte stream to other node (TCP), Unreliable datagram (UDP) Transport Service: move packets to any other node in the network IP: Unreliable, best-effort service model Network Service: move frames to other node across link. May add reliability, medium access control Link Physical Service: move bits to other node across link

Physical Layer (Layer 1) Responsible for specifying the physical medium Type of cable, fiber, wireless frequency Responsible for specifying the signal (modulation) Transmitter varies something (amplitude, frequency, phase) Receiver samples, recovers signal Responsible for specifying the bits (encoding) Bits above physical layer -> chips

Modulation Specifies mapping between digital signal and some variation in analog signal Why not just a square wave (1v=1; 0v=0)? Not square when bandwidth limited Bandwidth – frequencies that a channel propagates well Signals consist of many frequency components Attenuation and delay frequency-dependent

Components of a Square Wave Graphs from Dr. David Alciatore, Colorado State University

Approximation of a Square Wave Graphs from Dr. David Alciatore, Colorado State University

ASK: Amplitude Shift Keying Idea: Use Carriers Only use frequencies that transmit well Modulate the signal to encode bits OOK: On-Off Keying ASK: Amplitude Shift Keying

FSK: Frequency Shift Keying PSK: Phase Shift Keying Idea: Use Carriers Only use frequencies that transmit well Modulate the signal to encode bits FSK: Frequency Shift Keying PSK: Phase Shift Keying

How Fast Can You Send? Encode information in some varying characteristic of the signal. If B is the maximum frequency of the signal C = 2B bits/s (Nyquist, 1928) Intuition: 2B comes from Nyquist’s

Can we do better? So we can only change 2B/second, what if we encode more bits per sample? Baud is the frequency of changes to the physical channel Not the same thing as bits! Suppose channel passes 1KHz to 2KHz 1 bit per sample: alternate between 1KHz and 2KHz 2 bits per sample: send one of 1, 1.33, 1.66, or 2KHz Or send at different amplitudes: A/4, A/2, 3A/4, A n bits: choose among 2n frequencies! What is the capacity if you can distinguish M levels?

Example Amplitude Phase Used for some forms of digital TV

Hartley’s Law C = 2B log2(M) bits/s Great. By increasing M, we can have as large a capacity as we want! Or can we?

The channel is noisy!

The channel is noisy! Noise prevents you from increasing M arbitrarily! This depends on the signal/noise ratio (S/N) Shannon: C = B log2(1 + S/N) C is the channel capacity in bits/second B is the bandwidth of the channel in Hz S and N are average signal and noise power Signal-to-noise ratio is measured in dB = 10log10(S/N)

Putting it all together Noise limits M! 2B log2(M) ≤ B log2(1 + S/N) M ≤ √1+S/N Example: Telephone Line 3KHz b/w, 30dB S/N = 10ˆ(30/10) = 1000 C = 3KHz log2(1001) ≈ 30Kbps

Encoding Now assume that we can somehow modulate a signal: receiver can decode our binary stream How do we encode binary data onto signals? One approach: 1 as high, 0 as low! Called Non-return to Zero (NRZ) 1 NRZ (non-return to zero) Clock Low is not necessarily 0V, (or rest), could be -1, for example; hence the name. Assume we can change the value once per clock cycle.

Drawbacks of NRZ No signal could be interpreted as 0 (or vice-versa) Consecutive 1s or 0s are problematic Baseline wander problem How do you set the threshold? Could compare to average, but average may drift Clock recovery problem For long runs of no change, could miscount periods

Alternative Encodings Non-return to Zero Inverted (NRZI) Encode 1 with transition from current signal Encode 0 by staying at the same level At least solve problem of consecutive 1s 1 Clock NRZI (non-return to zero intverted)

Manchester Map 0  chips 01; 1  chips 10 Transmission rate now 1 bit per two clock cycles Solves clock recovery, baseline wander But cuts transmission rate in half 1 Clock Manchester 50% efficiency

4B/5B Can we have a more efficient encoding? Every 4 bits encoded as 5 chips Need 16 5-bit codes: selected to have no more than one leading 0 and no more than two trailing 0s Never get more than 3 consecutive 0s Transmit chips using NRZI Other codes used for other purposes E.g., 11111: line idle; 00100: halt Achieves 80% efficiency

4B/5B Table

Encoding Goals DC Balancing (same number of 0 and 1 chips) Clock synchronization Can recover some chip errors Constrain analog signal patterns to make signal more robust Want near channel capacity with negligible errors Shannon says it’s possible, doesn’t tell us how Codes can get computationally expensive In practice More complex encoding: fewer bps, more robust Less complex encoding: more bps, less robust

Last Example: 802.15.4 Standard for low-power, low-rate wireless PANs Must tolerate high chip error rates Uses a 4B/32B bit-to-chip encoding

Questions? Photo: Lewis Hine

Next Week Next week: more link layer Next Thursday: HW1 out Flow Control and Reliability Ethernet Sharing access to a shared medium Switching Next Thursday: HW1 out