Dr. ClincyLecture 2 Slide 1 Chapter 4 Handout #3 Dr. Clincy Professor of CS 6 of 10.

Slides:



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

4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 26 Physical Layer Ch 4: Digital Transmission
Chapter 4 Digital Transmission
1 Computer Communication & Networks Lecture 6 Physical Layer: Digital Transmission Waleed Ejaz
1 Data Encoding – Chapter 5 (part 1) CSE 3213 Fall /2/2015 9:13 AM.
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
Chapter 4 Digital Transmission
CSCD 218 : DATA COMMUNICATIONS AND NETWORKING 1
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Transmitting digital signals How do we encode digital signals for transmission? How can we interpret those signals?
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 Digital Transmission Stephen Kim 4.1.
Chapter 3 Data and Signals
Data Communication Networks Lec 8 and 9. Physical Layer and Media Bottom-most layer. Interacts with transmission media. Physical part of the network.
Data Communication and Networking Physical Layer and Media.
1 Computer Communication & Networks Lecture 5 Physical Layer: Data & Signals Waleed Ejaz
DIGITAL-TO-DIGITAL CONVERSION
Base-Band Digital Data Transmission Prepared By: Amit Degada. Electronics Engineering Department, Sardar Vallabhbhai National Institute of Technology,
3.1 Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels.
Part 2 Physical Layer and Media
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Digital Encoding.
Chapter 4 Digital Transmission.
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
1 Kyung Hee University Digital Transmission. 2 Kyung Hee University 4 장 Digital Transmission 4.1 Line Coding 4.2 Block Coding 4.3 Sampling 4.4 Transmission.
BZUPAGES.COM 4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4 Digital Transmission.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
: Data Communication and Computer Networks
British Computer Society (BCS)
Chapter 4 Digital Transmission.
DIGITAL-TO-DIGITAL CONVERSION In this section, we see how we can represent digital data by using digital signals. The conversion involves three.
Kashif BashirWWW.Taleem.greatnow.com Chapter 4 Digital Transmission.
A digital signal is a sequence of discrete discontinuous voltage pulses. Each pulse is a signal element (symbol). Binary data are transmitted by encoding.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Digital Transmission & Analog Transmission. 4.#2 1. DIGITAL-TO-DIGITAL CONVERSION Digital Data -> Digital Signal Three techniques: 1.line coding (always.
Physical Layer PART II. Position of the physical layer.
Chapter 4 Digital Transmission. 4.#2 4-1 DIGITAL-TO-DIGITAL CONVERSION line coding, block coding, and scrambling. Line coding is always needed; block.
Chapter 4 Digital Transmission.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Spring 2007Data Communications, Kwangwoon University4-1 Chapter 4. Digital Transmission 1.Digital-to-Digital Conversion 2.Analog-to-Digital Conversion.
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.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4 Digital Transmission
Topics discussed in this section:
Lecture Focus: Data Communications and Networking  Transmission Impairment Lecture 14 CSCS 311.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
1 Chapter 5 Encoding. 2 Figure 4-1 Transformation of Information to Signals.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
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.
Introduction to Communication Lecture (11) 1. Digital Transmission A computer network is designed to send information from one point to another. This.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSE 320 Data Communications
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
Data Communication and Networking Digital Transmission Chapter 4.
Data Communications and Networking
Dr. Clincy Professor of CS
Chapter 4. Digital Transmission
Computer Communication & Networks
DIGITAL MODULATION AND MULTIPLEXING
Chapter 4 Digital Transmission
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Floating Point Numbers - continuing
Chapter 4 Digital Transmission 4.# 1
Presentation transcript:

Dr. ClincyLecture 2 Slide 1 Chapter 4 Handout #3 Dr. Clincy Professor of CS 6 of 10

Dr. ClincyLecture 2 Slide 2 Channel Capacity As we know, impairments limits the actual data rate realized The actual rate realized at which data can be transmitted over a given path, under given conditions is called Channel Capacity Four concepts –Data rate – the rate, in bps, the data can be communicated –Bandwidth – constrained by the Tx and transport medium – expressed in cycles per second or Hertz –Noise – average level of noise over the communication path –Error rate – the rate in which erroneous bits are received

Dr. ClincyLecture 2 Slide 3 Impairments

Dr. ClincyLecture 2 Slide 4 Attenuation Loss of energy – the signal can lose energy as it travels and try to overcome the resistance of the medium Decibel (dB) is a unit of measure that measures a signal’s lost or gain of strength – can be expressed in power or voltage dB = 10 log 10 [P 2 /P 1 ] = 20 log 10 [V 2 /V 1 ] Samples of the power or voltage taken at times 1 and 2.

Dr. ClincyLecture 2 Slide 5 Distortion Distortion is when the signal changes its form. The each signal that makes up a composite signal could have different propagation speeds across the SAME medium – because of this, the different signals could have different delays (arriving at the receiver) – this causes a distortion.

Dr. ClincyLecture 2 Slide 6 Noise Thermal Noise - the uncontrollable or random motion of electrons in the transport medium which creates an extra signal (not sent by the transmitter) Induced Noise – undesired devices acting as a transmitting antenna and those signals being picked up Cross Talk Noise – effect of one wire crossing another wire Impulse Noise – spikes in energy (ie lightning)

Dr. ClincyLecture 2 Slide 7 Signal to Noise Ratio SNR = avg-signal-power/avg-noise-power High SNR – good (less corruption) Low SNR – bad (more noise than good power) SNR is described in Decibels (dB) SNR dB = 10 log 10 SNR

Dr. ClincyLecture 2 Slide 8 Shannon Equation Shannon’s equation is used to determine the actual capacity of a channel given noise exist C = B log 2 (1 + SNR) –B = Bandwidth –C= Channel Capacity –SNR = Signal-to-noise ratio Actual ratio

Dr. ClincyLecture 2 Slide 9 Nyquist Equation Given no noise, determine the maximum bit rate BitRate = 2 x B x log 2 L B is the bandwidth of the channel L is the # signal levels used BitRate unit is bps (bits per second) Having 2 levels is reliable because a Rx can interpret 2 levels – suppose you had 64 levels – less reliable or more complex to interpret

Dr. ClincyLecture 2 Slide 10 Bandwidth Bandwidth is a measure of performance Bandwidth in hertz – range of frequencies Bandwidth in bps – bps a channel can handle (D/A case here (ie. Modem))

Dr. ClincyLecture 2 Slide 11 Throughput Throughput is a measure of performance – how fast data can flow through a network Bandwidth could be what the channel could handle however, Throughput would be the amount that actually flowed through Bandwidth – potential Throughput – actual

Dr. ClincyLecture 2 Slide 12 Latency Latency is a performance measure – how long it takes an message to completely arrive to the receiver Latency consist of propagation time (time for a bit to travel from Tx to the Rx) Propagation time = distance/propagation-speed transmission time (time for a message to be sent) Transmission time = message-size/bandwidth queuing time (time each intermediate node holds the message) processing time (time each node spends processing the message) Note: if message is small, more bandwidth exists and therefore, the latency is more of propagation time versus transmission time

Dr. ClincyLecture 2 Slide 13 The bandwidth-delay product defines the number of bits that can fill the link. This important when dealing with “full duplex” and being concerned about sending data to the Rx and receiving acknowledgments back from the Rx at the same time – before sending the next set of data

Dr. ClincyLecture 2 Slide 14 Filling the link with bits for case 1 In other words, there can be no more than 5 bits at any time on the link.

Dr. ClincyLecture 2 Slide 15 Filling the link with bits in case 2 5 bps 25 bps In other words, there can be no more than 25 bits at any time on the link.

Chapter 4: Digital Transmission Physical Layer Issues

Dr. ClincyLecture 2 Slide 17 Data Vs Signal Fully explain the difference between signal and data before getting into the details Today’s Lecture (Digital Transmission) DATASIGNALD A Next Lecture (Analog Transmission) DATASIGNAL AD A

Lecture18 DIGITAL-TO-DIGITAL CONVERSION Can represent digital data by using digital signals. The conversion involves three techniques: line coding – converting bit sequences to signals block coding – adding redundancy for error detection scrambling – deals with the long zero-level pulse issue Line coding is always needed; Block coding and scrambling may or may not be needed.

Line coding and decoding At Tx - Digital data represented as codes is converted to a digital signal via an encoder At Rx – Digital signal is converted back to digital codes via a decoder

Signal element versus data element Data element - smallest entity representing info Signal element – shortest unit of a digital signal (carriers) r – is the ratio of # of data elements carried per signal element Example of adding extra signal elements for synchronization Example of increasing data rate

Data Rate Versus Signal Rate Data rate (or bit rate) - # of data elements (or bits) transmitted in 1 second – bits- per-second is the unit Signal rate (pulse rate or baud rate) - # of signal elements transmitted in 1 second – baud is the unit OBJECTIVE ALWAYS: increase data rate while decreasing signal rate – more “bang” for the “buck” Is it intuitive that if you had a data pattern of all 0s or 1s, it would effect the signal rate ? Therefore to relate data-rate with signal-rate, the pattern matters. Worst Case Scenario – we need the maximum signaling rate (alternating 1/0s) Best Case Scenario – we need the minimum signaling rate (all 1/0s) Focus on average case S = c x N x 1/r N – data rate (bps) c – case factor S - # of signal elements r – ratio of data to signal

A signal is carrying data in which one data element is encoded as one signal element ( r = 1). If the bit rate is 100 kbps, what is the average value of the baud rate if c is between 0 and 1? Solution We assume that the average value of c is 1/2. The baud rate is then Example

Bandwidth Now we understand what baud rate is And we understand what bit rate (or data rate) is Baud rate - # of carriers on the transport Data rate - # of passengers (or bits) in the carriers With this, we clearly see that baud rate effects bandwidth usage Signaling changes relate to frequency changes – therefore the bandwidth is proportionate with the baud rate: B min = c x N x 1/r or N max = 1/c x B x r minimum bandwidthmaximum data rate (given the bandwidth) N – data rate C – case factorThis formula is consistent with Nyquist formula r – data to signal ratio

The maximum data rate of a channel (see Chapter 3) is N max = 2 × B × log 2 L (defined by the Nyquist formula). Does this agree with the previous formula for N max ? Solution A signal with L levels actually can carry log 2 L bits per level. If each level corresponds to one signal element and we assume the average case (c = 1/2), then we have Example

Decoding Issue 1 Keep in mind the Rx decodes the digital signal – how is it done ? Rx determines a “moving average” of the signal’s power or voltage levels This average is called the baseline Then the Rx compares incoming signal power to this average (or baseline) If higher than the baseline, could be a 1 If lower than the baseline, could be a 0 In using such a technique, is it intuitive that long runs of 0s or 1s could skew the average (baseline) ?? – this is called baseline wandering (effects Rx’s ability to decode correctly)

Effect of lack of synchronization Decoding Issue 2 For the Rx, to correctly read the signal, both the Tx and Rx “bit intervals” must be EXACT Example of Rx timing off – therefore decoding the wrong data from the signal To fix this, the Tx could insert timing info into the data that synchs the Rx to the start, middle and end of a pulse – these points could reset an out-of-synch Rx

In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 kbps? How many if the data rate is 1 Mbps? Solution At 1 kbps, the receiver receives 1001 bps instead of 1000 bps. Example At 1 Mbps, the receiver receives 1,001,000 bps instead of 1,000,000 bps. NOTE: Keep in mind that a FASTER clock means SHORTER intervals

Line coding scheme categories

Unipolar NRZ scheme Voltages on one side of the axis Positive voltage signifies 1 Almost zero voltage signifies 0 Power needed to send 1 bit unit of resistance DataSignal

Polar NRZ-L and NRZ-I schemes (non-return-to-zero) Voltages on both sides of the axis NRZ-L (level) version – voltage level determines the bit value NRZ-I (invert) version – voltage change or no-change determines the bit value (no change = 0, change = 1) change no change

Polar RZ scheme Uses 3 values: positive, negative and zero Signal changes Not between bits BUT during the bit H-to-L in middle for 1 L-to-H in middle for 0 Positioning occurs at the beginning of the period

Polar biphase: Manchester and Differential Manchester Schemes Manchester: H-to-L=0, L-to-H=1 Differential Manchester: H-to-L or L-to-H at begin=0, No change at begin=1

Bipolar schemes: AMI and pseudoternary Bipolar encoding uses 3 voltage levels: positive, negative and zero. One data element is at ZERO, while the others alternates between negative and positive Alternate Mark Inversion (AMI) scheme – neutral zero voltage is 0 and alternating positive and negative voltage represents 1 Pseudoternary scheme – vice versa from the AMI scheme

Multilevel Schemes These schemes attempt to increase the number of bits per baud Given m data elements, could produce 2 m data patterns Given L levels, could produce L n combinations of signal patterns (where n is the length of the signal patterns) If 2 m = L n, each data pattern is encoded into one signal pattern (1-to-1) If 2 m < L n, data patterns use a subset of signal patterns – could use the extra signal patterns for fixing baseline wandering and error detection Classify these codes as mBnL where: m – length of the binary pattern B – means Binary data n – length of the signal pattern L - # signaling levels (letters in place of L: B=2, T=3 and Q=4)

Multilevel: 2B1Q scheme 2B1Q Data patterns of size 2 bits Encodes 2-bit patterns in one signal element 4 levels of signals If previous level was positive and the next level becomes -3, represents 11 If previous level was positive and the next level becomes +3, represents 01

Multilevel: 8B6T scheme Data patterns of size 8 bits Encodes 8-bit patterns in six signal elements Using 3 levels of signal

Multilevel: 4D-PAM5 scheme 4-dimensional five-level pulse amplitude modulation scheme Instead of transmitting in serial form – parts of the code are in sent in parallel over 4 wires (versus 1 wire) In this particular case, it would take ¼ less time to transmit

Multitransition: MLT-3 scheme Multi-line transmission, three-level scheme Uses three levels and three transition rules to jump between levels: - if the next bit is 0, there is no transition - if the next bit is 1 and the current level is not 0, the next level is 0 - if the next bit is 1 and the current level is 0, the next level is the opposite of the last nonzero level