ch6_digitaldatacomm
ch6_digitaldatacomm
Chapter 6
Digital Data Communications
Techniques
1
Digital Data Communications
Techniques
Synchronization
Asynchronous transmission
Synchronous transmission
Bipolar
Bit-Oriented Character-Oriented Encoding Printable- Character
Frame
Manchester
Printable- Character Encoding
Binary Data Frame
Frame
Differential
Manchester
Binary Data Frame Encoding
0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0
1 1 1 1 1 0 0 0 1 1 1 1 1 0 0 1
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
(NRZ-L)
(NRZ-L)
Dr. Mohammed Arafah William Stallings “Data and Computer Communications” 14
Asynchronous Transmission
Example
Advantage
simple and cheap
Disadvantage
requires overhead 2 to 4 bits / character
for 8 bit char, no parity, 1 stop bit, 20% overhead
STX P G P O P ETX P
1 1 1 0 0 0 1 1 0 1 1 0 1 0 1 1
STX Y E S ETX
1 0 0 1 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 1
The local receiver clock is N times the transmitted bit rate (N=16
is common).
N=4
N = 16
2. Binary Data
End of frame
sequence
1. Printable characters:
2. Binary data:
Burst errors
contiguous sequence of B bits in which first and last and
any number of intermediate bits in error
caused by impulse noise or by fading in wireless
effect greater at higher data rates
Error Detection
0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 0
1 1 1 1 1 0 0 0 1 1 1 1 1 0 0 1
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
1 0 0 1 0 1 0 1
An 8-bit message 1 1 0 1 0 1 1 0 is to
be transmitted across a data link 1 1 0 0 1 1 1 0 1 0 1 1 0 0 0 0 0
1 1 0 0 1
using CRC for error detection.
- 0 0 1 1 1
0 0 0 0 0
A generator polynomial x4 + x3 + 1 is - 0 1 1 1 1
0 0 0 0 0
to be used. Find the contents of the
- 1 1 1 1 0
transmitted frame T(x). 1 1 0 0 1
- 0 1 1 1 0
0 0 0 0 0
- 1 1 1 0 0
1 1 0 0 1
- 0 1 0 1 0
0 0 0 0 0
- 1 0 1 0 0
1 1 0 0 1
- 1 1 0 1 R(x)
T(x) = 1 1 0 1 0 1 1 0 1 1 0 1
M(x) R(x)
An 8-bit message 1 0 0 1 0 0 1 1 is to 1 0 1 0 1 1 1 0 0 1 0 0 1 1 0 0 0 0 0
1 0 1 0 1 1
be transmitted across a data link using
- 0 1 1 1 1 1
CRC for error detection. 0 0 0 0 0 0
- 1 1 1 1 1 1
1 0 1 0 1 1
A generator polynomial x5 + x3 +x+ 1
- 1 0 1 0 0 0
is to be used. Find the contents of the 1 0 1 0 1 1
transmitted frame T(x). - 0 0 0 1 1 0
0 0 0 0 0 0
- 0 0 1 1 0 0
0 0 0 0 0 0
- 0 1 1 0 0 0
0 0 0 0 0 0
- 1 1 0 0 0 0
1 0 1 0 1 1
- 1 1 0 1 1 R(x)
T(x) = 1 0 0 1 0 0 1 1 1 1 0 1 1
M(x) R(x)
Dr. Mohammed Arafah William Stallings “Data and Computer Communications” 46
Cyclic Redundancy Check
Example 2 – Circuit Implementation
Generator Polynomial x5 + x3 +x+ 1
n bits
T(x) = 1 0 1 0 0 0 1 1 0 1 0 1 1 1 0
M(x) R(x)
Error Correction
Error-correcting codes
add redundant bits to transmitted message
also known as forward error correction (FEC)
d =1
d =2
d =4
d =3
Example
v1 = 011011, v2 = 110001
v1 v2 = 101010, d(v1, v2) = 3
Minimum distance
for code consisting of w1, w2, …, ws, s = 2n
dmin = min i≠j [d(wi, wj)]
d 1
Maximum number of guaranteed correctable errors per codeword satisfies: t min
2
dmin = 7
Valid 1 2 3 4 5 6 7
Valid
Code Code
t= 1 t= 2
t= 3
t ≤ 3 Assume codeword sent was closest to that received
d 1
Maximum number of guaranteed correctable errors per codeword satisfies: t min
2
dmin = 8
1 2 3 4 5 6 7 8
Valid Valid
Code Code
t= 1 t= 2 t= 3
Clearly, the last two objectives are in conflict, and tradeoffs must be
made.
Dr. Mohammed Arafah William Stallings “Data and Computer Communications” 73
Hamming Distance - Example 1
Valid codewords:
000000, 000111, 111000, 111111
Hamming distance = 3
t d min 1
Hamming distance = 5
d 1
t min
2
Can correct up to 2 errors