Beruflich Dokumente
Kultur Dokumente
Data Communication
Data
Analog: Continuous value data (sound, light, temperature)
Digital: Discrete value (text, integers, symbols)
Signal
Analog: Continuously varying electromagnetic wave
Digital: Series of voltage pulses (square wave)
Transmission
Wired
Wireless
Simplified Communications
Model - Diagram
Data Flow (Transmission)
29
Voice Grade Modems
:
Digital Signals Carrying Analog
and Digital Data
Codec (Coder-Decoder)
Converts analog signals into a digital form
and converts it back to analog signals
Where do we find codecs?
Sound cards
Scanners
Voice mail
Video capture/conferencing
The codecs used by the phone system use
Pulse Amplitude Modulation (PAM)
Pulse Amplitude Modulation
M
Measuring signal
Taking samples
Taking
38
V.90 and V.92 Modems
Combines analog and digital transmission
Uses a technique based on PCM concept
Recognizes PCMs 8-bit digital symbols (one of 256 possible
symbols) 8,000 per second
Results in a max of 56 Kbps data rate (1 bit used for control)
V.90 Standard
Based on V.34+ for Upstream transmissions (PC to Switch)
Max. upstream rate is 33.4 Kbps
V.92 Standard (most recent)
Uses PCM symbol recognition technique for both ways
Max. upstream rate is 48 kbps
Very sensitive to noise lower rates
40
Transmission Impairments
Signal received may differ from signal
transmitted
Analog - degradation of signal quality
Digital - bit errors
Caused by
Attenuation
Delay
Noise
Attenuation
Signal strength falls off with distance
Depends on medium
Received signal strength:
must be enough to be detected
must be sufficiently higher than noise to be received
without error
Attenuation is an increasing function of
frequency
Delay
Due to the velocity of signal propagation varies
with frequency
Only in guided media
Particularly important for digital data
ISI
Noise (1)
Additional signals inserted between transmitter
and receiver
Noise (2)
Thermal
Due to thermal agitation of electrons
Uniformly distributed
White noise
Intermodulation
Signals that are the sum and difference of original
frequencies sharing a medium
Noise (3)
Crosstalk
A signal from one line is picked up by another
Impulse
Irregular pulses or spikes
e.g. External electromagnetic interference
Short duration
High amplitude
Channel Capacity
Data rate
In bits per second
Rate at which data can be communicated
Bandwidth
In cycles per second of Hertz
Constrained by transmitter and medium
Noise
Average level of noise over the communication path
Error rate
The rate at which errors occur
Nyquist Formula
If rate of signal transmission is 2B then signal
with frequencies no greater than B is sufficient
to carry signal rate
Given bandwidth B, highest signal rate is 2B
Given binary signal, data rate supported by B Hz
is 2B bps
Can be increased by using M signal levels
C= 2B log2M
Example
Consider a noiseless channel with a bandwidth
of 3000 Hz transmitting a signal with two signal
levels. What is the maximum bit rate?
6 kbps
Shannon Formula
Consider data rate, noise and error rate
Faster data rate shortens each bit so burst of
noise affects more bits
At given noise level, high data rate means higher
error rate
Signal to noise ration (in decibels)
SNRdB=10 log10 (signal/noise)
Capacity C=B log2(1+SNR)
This is error free capacity
Example
A telephone line normally has a bandwidth of
3000Hz assigned for data communications. The
signal-to-noise ratio is usually 3162. What is the
channel capacity?
34.86 kbps
Data Transmission Techniques
Asynchronous and synchronous transmission
Error code formulation, detection and correction
Line configuration
Asynchronous and
Synchronous Transmission
Timing problems require a mechanism to
synchronize the transmitter and receiver
Two solutions
Asynchronous
Synchronous
Asynchronous
Data transmitted on character at a time
5 to 8 bits
Timing only needs maintaining within each
character
Resynchronize with each character
Asynchronous
Asynchronous
Asynchronous - Behavior
In a steady stream, interval between characters
is uniform (length of stop element)
In idle state, receiver looks for transition 1 to 0
Then samples next seven intervals (char length)
Then looks for next 1 to 0 for next char
Asynchronous - Behavior
Simple
Cheap
Overhead of 2 or 3 bits per char (~20%)
Good for data with large gaps (keyboard)
Synchronous Bit Level
Block of data transmitted without start or stop
bits
Clocks must be synchronized
use separate clock line
Good over short distances
Subject to impairments over longer distance
Embed clock signal in data
Manchester encoding
Carrier frequency (analog)
Synchronous - Block Level
Need to indicate start and end of block
Use preamble and postamble
e.g. series of SYN (hex 16) characters
e.g. block of 11111111 patterns ending in 11111110
Burst errors
Length B
Contiguous sequence of B bits in which first, last and
any number of intermediate bits in error
Effect greater at higher data rates
Error Detection Concept
To be able to detect and then correct errors, we
need to send some extra bits
Redundancy
These redundant bits are added by sender and
removed by receiver
Error Detection Process
Error detection
Additional bits added by transmitter for error
detection code
Data FCS
D.2r
R = remainder[ ]
G
A sequence of 101100011000 is received at the
receiver. The generator used is 1001. Is the
transmission contains any error?
Polynomials
Cyclic codes can be represented as polynomials
A patterns of 0s and 1s can be represented as a
polynomial with coefficients of 0 and 1
The power of each term shows the position of
the bit
The coefficient shows the value of the bit
Criteria for a good polynomial
generator
It should have at least two terms
The coefficient of the term x0 should be 1
It should not divide xt + 1 between 2 and n-1
It should have the factor of x + 1
Standard polynomials
Name Polynomial Application
Data
Synchronous Protocols
94
DTE and DCE
modem modem
96
*EIA-232-D
new version of RS-232-C adopted in 1987
improvements in grounding shield, test and
loop-back signals
the prevalence of RS-232-C in use made it
difficult for EIA-232-D to enter into the
marketplace
97
*RS-449
EIA standard improving on capabilities of RS-
232-C
provides for 37-pin connection, cable lengths up
to 200 feet, and data rates up to 2 million bps
covers functional/procedural portions of R-232-C
electrical/mechanical specs covered by RS-422 & RS-
423
98
*Functional Specifications
Specifies the role of the individual circuits
Data circuits in both directions allow full-duplex
communication
Timing signals allow for synchronous
transmission (although asynchronous
transmission is more common)
99
*Procedural Specifications
Multiple procedures are specified
Simple example: exchange of asynchronous
data on private line
Provides means of attachment between computer
and modem
Specifies method of transmitting asynchronous data
between devices
Specifies method of cooperation for exchange of data
between devices
100
*Mechanical Specifications
25-pin connector with a specific arrangement of
leads
DTE devices usually have male DB25 connectors
while DCE devices have female
In practice, fewer than 25 wires are generally
used in applications
101
*RS-232 DB-25 Connectors
DB-25 Female
DB-25 Male
102
*RS-232 DB-25 Pinouts
103
*RS-232 DB-9 Connectors
Limited RS-232
104
*RS-422 DIN-8
Found on Macs
105
*Electrical Specifications
Specifies signaling between DTE and DCE
Uses NRZ-L encoding
Voltage < -3V = binary 1
Voltage > +3V = binary 0
Rated for <20Kbps and <15M
greater distances and rates are theoretically possible,
but not necessarily wise
106
*RS-232 Signals (Asynch)
Odd Parity
Even Parity
No Parity
107
Most slides are adapted from:
Behrouz A. Forouzan, Data communications and
networking, 4th Ed., McGraw-Hill, 2007.
William Stallings, Data and Computer
Communication, 9th Ed., Prentice Hall, 2011.