CSCI-1680 Physical Layer Rodrigo Fonseca

Similar documents
Introduc)on to Computer Networks

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

Encoding and Framing

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

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

C06a: Digital Modulation

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

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

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

CSE 461: Bits and Bandwidth. Next Topic

Lecture 5 Transmission

Computer Networks

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

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

Physical Layer. Networked Systems (H) Lecture 3

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

SEN366 Computer Networks

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

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

Transmission Principles

Representation of Information. Transmission Principles. Agenda. Transmission of Information

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

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

CSE 461 Bits and Links. David Wetherall

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

Physical Layer. Networked Systems Architecture 3 Lecture 6

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Fundamentals of Data and Signals

Lecture 3 Concepts for the Data Communications and Computer Interconnection

CSEP 561 Bits and Links. David Wetherall

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

Digital to Digital Encoding

Physical Layer: Outline

Class 4 ((Communication and Computer Networks))

Lecture-8 Transmission of Signals

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

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

Sirindhorn International Institute of Technology Thammasat University

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

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

Chapter 4 Digital Transmission 4.1

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

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

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Data Communications and Networking (Module 2)

Basic Concepts in Data Transmission

Channel Concepts CS 571 Fall Kenneth L. Calvert

The Physical Layer Outline

Layering and Controlling Errors

Chapter 2. Physical Layer

ECE 435 Network Engineering Lecture 4

Physical Layer. Networked Systems 3 Lecture 5

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

CTD600 Communication Trainer kit

Signal Encoding Techniques

MULTIPLE CHOICE QUESTIONS

Single Error Correcting Codes (SECC) 6.02 Spring 2011 Lecture #9. Checking the parity. Using the Syndrome to Correct Errors

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

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

Lecture 2: Links and Signaling"

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

Physical Layer. Transfers bits through signals overs links Wires etc. carry analog signals We want to send digital bits. Signal

Wireless Communication in Embedded System. Prof. Prabhat Ranjan

Physical Layer. Networks: Physical Layer 1

Computer Facilities and Network Management BUS3150 Assignment 1

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

ITM 1010 Computer and Communication Technologies

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

Basic Communications Theory Chapter 2

Data Communication (CS601)

CS 438 Communication Networks Spring 2014 Homework 2 Due Date: February 19

COMP467. Local Asynchronous Communication. Goals. Data is usually sent over a single channel one bit at a time.

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

Computer Networks - Xarxes de Computadors

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

Datenkommunikation SS L01 - Communication Basics (v5.2)

Department of Computer Science and Engineering. CSE 3213: Computer Networks I (Fall 2009) Instructor: N. Vlajic Date: Dec 11, 2009.

CS601 Data Communication Solved Objective For Midterm Exam Preparation

EEE 309 Communication Theory

Chapter 2: Fundamentals of Data and Signals

CS601-Data Communication Latest Solved Mcqs from Midterm Papers

Summary of Basic Concepts

Digital Transmission

CSE 461 Section: The Last One (!!!!!!111)

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

Digital Transmission using SECC Spring 2010 Lecture #7. (n,k,d) Systematic Block Codes. How many parity bits to use?

Lecture (07) Digital Modulation Digital data transmission through analog signals

ECT-215 Homework #1 Solution Set Chapter 14 Problems 1-29

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

Digital Transmission

UNIT TEST I Digital Communication

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

RF Basics 15/11/2013

Downloaded from 1

Chapter 3 Digital Transmission Fundamentals

CS311: Data Communication Transmission Impairments and Channel Capacity. Assistant Professor Dept. of CSE IIT Jodhpur

Lecture 3: Error Handling

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

EC 554 Data Communications

Data and Computer Communications. Chapter 3 Data Transmission

Transcription:

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

Administrivia Signup for Snowcast milestone Make sure you signed up Make sure you are on the mailing list! Return signed policy sheet

Today Physical Layer Modulation Encoding Link Layer I Framing

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

Use Carriers Idea: only use frequencies that transmit well Modulate the signal to encode bits OOK: On-Off Keying ASK: Amplitude Shi Keying 1 0 1 1 0 1

Use Carriers Idea: only use frequencies that transmit well Modulate the signal to encode bits FSK: Frequency Shi Keying 1 0 1 PSK: Phase Shi Keying 1 0 1

How Fast Can You Send? Nyquist s theorem limits how fast we can send on a bandwidth-limited channel If a signal has been through a low-pass filter of bandwidth B, the signal can be reconstructed by making 2B samples per second. Maximum data rate: 2B

But wait 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 n bits: choose among 2 n frequencies! Sorry, channels are noisy

How Fast Can You Really Send? Depends on frequency and signal/noise ratio Shannon: C = B log 2 (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 Example: Telephone Line 3KHz b/w, 30dB S/N = 10ˆ(30/10) = 1000 C 30 Kbps

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: Non-return to Zero (NRZ) Transmit 0 as low, 1 as high! 0 0 1 0 1 0 1 1 0 NRZ (non- return to zero) Clock

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 dri 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 0 0 1 0 1 0 1 1 0 NRZI (non- return to zero intverted) Clock

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 0 0 1 0 1 0 1 1 0 Manchester Clock

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

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 Bits Chips Symbols 0000 0001 0010 0011 1111 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0

Photo: Lewis Hine Two-minutes for stretching

Framing Given a stream of bits, how can we represent boundaries? Break sequence of bits into a frame Typically done by network adaptor Bits Node A Adaptor Adaptor Node B Frames

Representing Boundaries Sentinels Length counts Clock-based Bits Node A Adaptor Adaptor Node B Frames

Sentinel-based Framing Byte-oriented protocols (e.g. BISYNC, PPP) Place special bytes (SOH, ETX, ) in the beginning, end of messages 8 8 8 8 8 16 SYN SYN SOH Header STX Body ETX CRC What if ETX appears in the body? Escape ETX byte by prefixing DEL byte Escape DEL byte by prefixing DEL byte Technique known as character stuffing

Bit-Oriented Protocols View message as a stream of bits, not bytes Can use sentinel approach as well (e.g., HDLC) 8 16 16 8 Beginning sequence Header Body HDLC begin/end sequence 01111110 CRC Use bit stuffing to escape 01111110 Ending sequence Always append 0 a er five consecutive 1s in data A er five 1s, receiver uses next two bits to decide if stuffed, end of frame, or error.

Length-based Framing Drawback of sentinel techniques Length of frame depends on data Alternative: put length in header (e.g., DDCMP) 8 8 8 14 42 16 SYN SYN Class Count Header Body CRC Danger: Framing Errors What if high bit of counter gets corrupted? Adds 8K to length of frame, may lose many frames CRC checksum helps detect error

Clock-based Framing E.g., SONET (Synchronous Optical Network) Each frame is 125μs long Look for header every 125μs Encode with NRZ, but XOR payload with 127-bit string to ensure lots of transitions Overhead Payload 9 rows 90 columns

Error Detection Basic idea: use a checksum Compute small checksum value, like a hash of packet Good checksum algorithms Want several properties, e.g., detect any single-bit error Details in a later lecture

Coming Up Next week: more link layer Flow Control and Reliability Ethernet Sharing access to a shared medium Switching Friday 11 th : Snowcast due