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

Similar documents
Encoding and Framing

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

CSCI-1680 Physical Layer Rodrigo Fonseca

Computer Networks

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

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

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

Lecture 5 Transmission

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

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

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

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Chapter 4 Digital Transmission 4.1

Point-to-Point Communications

Chapter 2. Physical Layer

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

Physical Layer: Outline

Transmission Principles

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

CSE 461 Bits and Links. David Wetherall

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

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

Channel Concepts CS 571 Fall Kenneth L. Calvert

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Chapter 2: Fundamentals of Data and Signals

C06a: Digital Modulation

Lecture 3 Concepts for the Data Communications and Computer Interconnection

CSEP 561 Bits and Links. David Wetherall

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

Data Communications & Computer Networks

Introduc)on to Computer Networks

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

Chapter 3 Data and Signals

Computer Networks - Xarxes de Computadors

Chapter 3 Data Transmission COSC 3213 Summer 2003

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

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

Fundamentals of Digital Communication

Fundamentals of Data and Signals

EC 554 Data Communications

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

Data Communication. Chapter 3 Data Transmission

SEN366 Computer Networks

ITM 1010 Computer and Communication Technologies

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

Basic Concepts in Data Transmission

Sirindhorn International Institute of Technology Thammasat University

The Physical Layer Outline

Chapter 3. Data Transmission

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

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

Lecture Fundamentals of Data and signals

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Chapter 3 Digital Transmission Fundamentals

Lecture 3: Data Transmission

Signal Encoding Techniques

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

COMP211 Physical Layer

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

The quality of the transmission signal The characteristics of the transmission medium. Some type of transmission medium is required for transmission:

Data and Computer Communications. Chapter 3 Data Transmission

Class 4 ((Communication and Computer Networks))

Data Transmission. ITS323: Introduction to Data Communications. Sirindhorn International Institute of Technology Thammasat University ITS323

Ș.l. dr. ing. Lucian-Florentin Bărbulescu

Physical Layer. Networked Systems Architecture 3 Lecture 6

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Simplex. Direct link.

Lecture-8 Transmission of Signals

Physical Layer. Networks: Physical Layer 1

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

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

Data Communications and Networking (Module 2)

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

Data Communications and Networks

Workspace for '6-pulse' Page 1 (row 1, column 1)

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

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

College of information Technology Department of Information Networks Telecommunication & Networking I Chapter DATA AND SIGNALS 1 من 42

Data and Computer Communications Chapter 3 Data Transmission

Downloaded from 1

Contents. Telecom Service Chae Y. Lee. Data Signal Transmission Transmission Impairments Channel Capacity

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

Chapter 2 Overview - 1 -

Summary of Basic Concepts

MULTIMEDIA SYSTEMS

Physical Layer. Networked Systems 3 Lecture 5

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

In this lecture. System Model Power Penalty Analog transmission Digital transmission

2. TELECOMMUNICATIONS BASICS

Chapter 2 Overview - 1 -

Signal Characteristics

Communication Channels

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

Data Communication (CS601)

Digital Transmission

Part II Data Communications

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

Bandwidth utilization is the wise use of available bandwidth to achieve specific goals.

Transcription:

Questions Encoding and Framing Why are some links faster than others? What limits the amount of information we can send on a link? How can we increase the capacity of a link? EECS 489 Computer Networks http://www.eecs.umich.edu/~zmao/eecs489 Z. Morley Mao Tuesday Nov 2, 2004 Acknowledgement: Some slides taken from Kurose&Ross and Katz& Stoica 2 Signals: vs. Signals: Periodic vs. Aperiodic Signal: a function s(t) that varies with time (t stands for time) : varies continuously - Example: voltage representing audio (analog phone call) Period: repeat over and over again, once per period - Period (T) is the time it takes to make one complete cycle - Frequency (f) is the inverse of period, f = /T;measured in hz Signal strength : discrete values; varies abruptly - Example: voltage representing 0s an s T = /f Aperiodic: don t repeat according to any particular pattern 3 4 Data vs. Signal Attenuation data signal communication medium data data signal Telephone Modem CODEC Transmitter 5 Links become slower with distance because of signal attenuation Amplifiers and repeaters can help 6

Noise A signal s(t) sent over a link is generally - Distorted by the physical nature of the medium This distortion may be known and reversible at the receiver - Affected by random physical effects n(t) - noise Fading s(t) S r(t) Multipath effects transmitted signal received signal - Also interference from other links Wireless Crosstalk link Dealing with noise is what communications engineers do Noise Limits the Link Rate Suppose there were no noise - Then, if send s(t) always receive s(t+?) - Take a message of N bits say b b 2.b N, and send a pulse of amplitude of size 0.b b 2.b N - Can send at an arbitrarily high rate - This is true even if the link distorts the signal but in a known way In practice the signal always gets distorted in an unpredictable (random) way - Receiver tries to estimate the effects but this lowers the effective rate 7 8 Physical Layer Functions Block Diagram Adaptor Signal Adaptor Adaptor: convert bits into physical signal and physical signal back into bits Functions. Encode bit sequence into analog signal 2. Transmit bit sequence on a physical medium (Modulation) 3. Receive analog signal 4. Convert Signal to Bit Sequence NRZI 9 0 Modulation The function of transmitting the encoded signal over a link, often by combining it with another (carrier signal) - E.g., Frequency Modulation (FM) Combine the signal with a carrier signal in such a way that the i frequency of the received signal contains the information of the carrier 0 0 0 0 0 0 0 0 Relation between bandwidth and link rate Fourier transform Bit sequence Modulated signal Received signal Received bit sequence - E.g. Frequency Hopping (OFDM) Signal transmitted over multiple frequencies Sequence of frequencies is pseudo random 2 2

Fourier Transform Any periodic signal g(t) with period T (=/f) can be constructed by summing a (possibly infinite) number of sines and cosines Fourier Transform: Example sin(2p f t) + g( t) = c+ 2 a sin n n= ( 2π nft) + b cos( 2πnft) n n= To construct signal g(t) we need to compute the values a 0, a,, b 0, b,, and c! - Compute coefficients using Euler s formulae But it s an infinite series... Often the magnitude of the a n s and b n s get smaller as the frequency (n times 2πf ) gets higher. Key point: a reasonable reconstruction can be often be made from just the first few terms (harmonics) - Though the more harmonics the better the reconstruction 3 /3 sin(6p f t) = g 3 (t) Note: f = /T 4 Bandwidth & Data Rate Physical media attenuate (reduce) different harmonics at different amounts After a certain point, no harmonics get through. Bandwidth: the range of frequencies that can get through the link Example: - Voice grade telephone line 300Hz 3300Hz - The bandwidth is 3000Hz Data rate: highest rate at which hardware change signal Signal study Nyquist s Theorem 5 6 Nyquist s Theorem (aka Nyquist s Limit) Establish the connection between data rate and bandwidth (actually the highest frequency) in the absenceof noise - Developed in the context of analog to digital conversion (ACDs) Say how often one needs to sample an analog signal to reproduce it faithfully Why Double the Frequency? Assume a sine signal, then - We need two samples in each period to identify sine function - More samples won t help Suppose signal s(t) has highest frequency f max - Assume B = f max, i.e., lowest frequency is 0 Then, if T= /(2B) then it is possible to reconstruct s(t) correctly Niquist s Theorem: Data rate (bits/sec) <= 2*B (hz) 7 8 3

Nyguist s Theorem Revisited If signal has V distinct levels, then Data rate <= 2*B*log 2 V - V distinct values can be used to encode log 2 (V) bits - Bi-level encoding V = 2 Data rate <= 2*B - Example of achieving 2*B with bi-level encoding 5 V 0 V /(2B) /B Can you do better than Nyquist s limit? - Yes, if clocks are synchronized sender and receiver, we only need one sample per period - This is because the synchronized starting sample counts as one of the two points Signal study Shannon s Theorem 9 20 Shannon Theorem Shannon Theorem (cont d) Establish the connection between bandwidth and data rate in the presence of noise Noisy channel - Consider ratio of signal power to noise power. - Consider noise to be super-imposed signal - Decibel (db) = 0 log 0 (S/N) - S/N of 0 = 0 db - S/N of 00 = 20 db - S/N of 000 = 30 db Data rate in the presence of S/N is bounded as follows Data rate <= B log 2 ( + S/N) Example: - Voice grade line: S/N = 000, B=3000, C=30Kbps - Technology has improved S/N and B to yield higher speeds such as 56Kb/s Higher bandwidth higher rate; Intuition: - Signal has more space to hide from noise - Noise gets diluted across frequency space 2 22 Encoding Signal study Encoding Specify how bits are represented in the analog signal - This service is provided by the physical layer Challenges: achieve: - Efficiency ideally, bit rate = clock rate - Robust avoid de-synchronization between sender and receiver when there is a large sequence of s or 0 s 23 24 4

Assumptions We use two discrete signals, high and low, to encode 0 and The transmission is synchronous, i.e., there is a clock used to sample the signal - In general, the duration of one bit is equal to one or two clock ticks If the amplitude and duration of the signals is large enough, the receiver can do a reasonable job of looking at the distorted signal and estimating what was sent. Non-Return to Zero (NRZ) high signal; 0 low signal Disadvantages: when there is a long sequence of s or 0 s Sensitive to clock skew, i.e., difficult to do clock recovery Difficult to interpret 0 s and s (baseline wander) NRZ (non -return to zero) 0 0 0 0 0 Clock 25 26 Non-Return to Zero Inverted (NRZI) Manchester make transition; 0 stay at the same level Solve previous problems for long sequences of s, but not for 0 s high-to -low transition; 0 low-to -high transition Addresses clock recovery and baseline wander problems Disadvantage: needs a clock that is twice as fast as the transmission rate - Efficiency of 50% 0 0 0 0 0 0 0 0 0 0 NRZI (non -return to zero intverted) Manchester Clock Clock 27 28 4-bit/5-bit (00Mb/s Ethernet) Goal: address inefficiency of Manchester encoding, while avoiding long periods of low signals Solution: - Use 5 bits to encode every sequence of four bits such that no 5 bit code has more than one leading 0 and two trailing 0 s - Use NRZI to encode the 5 bit codes - Efficiency is 80% 4-bit 5-bit 4-bit 5-bit 0000 0 000 000 000 000 00 00 000 000 00 00 00 00 0 0 000 000 00 00 00 00 0 0 00 00 0 0 0 00 0 Signal study Framing 29 30 5

Framing Specify how blocks of data are transmitted between two nodes connected on the same physical media - This service is provided by the data linklayer Challenges - Decide when a frame starts/ends - If use special delimiters, differentiate between the true frame delimiters and delimiters appearing in the payload data Byte-Oriented Protocols: Sentinel Approach 8 8 STX Text (Data) ETX STX start of text ETX end of text Problem: what if ETX appears in the data portion of the frame? Solution - If ETX appears in the data, introduce a special character DLE (Data Link Escape) before it - If DLE appears in the text, introduce another DLE character before it Protocol examples - BISYNC, PPP, DDCMP 3 32 Byte-Oriented Protocols: Byte Counting Approach Bit-Oriented Protocols Sender: insert the length of the data (in bytes) at the beginning of the frame, i.e., in the frame header Receiver: extract this length and decrement it every time a byte is read. When this counter becomes zero, we are done 8 8 Start End sequence Text (Data) sequence Both start and end sequence can be the same - E.g., 00 in HDLC (High-level Data Link Protocol) Sender: in data portion inserts a 0 after five consecutive s Receiver: when it sees five s makes decision on the next two bits - If next bit 0 (this is a stuffed bit), remove it - If next bit, look at the next bit If 0 this is end -of-frame (receiver has seen 00) If this is an error, discard the frame (receiver has seen 0) 33 34 Clock-Based Framing (SONET) SONET Multiplexing SONET (Synchronous Optical NETwork) Developed to transmit data over optical links - Example: SONET ST-: 5.84 Mbps - Many streams on one link SONET maintains clock synchronization across several adjacent links to form a path - This makes the format and scheme very complicated STS- STS- STS- STS-3c has the payloads of three STS- s byte-wise interleaved. STS-3 is a SONET link w/o multiplexing For STS-N, frame size is always 25 microseconds - STS- frame is 80 bytes - STS-3 frame is 80x3 =2430 bytes STS-3c 35 36 6

STS- Frame Clock-Based Framing (SONET) First two bytes of each frame contain a special bit pattern that allows to determine where the frame starts No bit-stuffing is used Receiver looks for the special bit pattern every 80 bytes - Size of frame = 9x90 = 80 bytes Details: - Overhead bytes are encoded using NRZ - To avoid long sequences of 0 s or s the payload is XOR-ed with a special 27-bit pattern with many transitions from to 0 overhead Data (payload) 9 rows SONET STS- Frame 90 columns 37 38 What do you need to know? Concept of bandwidth and data rate Nyquist s Theorem Shannon s Theorem - Understand (not memorize) NRZ, NRZI, Manchester, 4/5 bit - Understand framing for bit/byte oriented protocols and clock based framing 39 7