Ch02-Data Communication
Ch02-Data Communication
Networking
Data characters
Control characters
Star Multipoint
Ring Mesh
System A System B
……101101
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
Telecomm. Dept. DCN-2013
15
Faculty of EEE HCMUT
Asynchronous Transmission
Diagram
Advantages:
Simple
Cheap
Overhead of 2 or 3
bits per character
(~20%)
Good for data with
large gaps (e.g.
keyboard)
Usually, N=16
T = (9 x 11)/1200 = 82.5 ms
Telecomm. Dept. DCN-2013
23
Faculty of EEE HCMUT
Synchronous Transmission
Disadvantages of Asynchronous transmission
Bit synchronization is too difficult when increasing bit
rate
High overhead
Synchronous transmission
Data has been transmitted in blocks
Two approaches
• Character-oriented
• Bit-oriented
Both use the same bit synchronization methods
Major difference is in how they achieve character &
frame synchronization
Telecomm. Dept. DCN-2013
24
Faculty of EEE HCMUT
Synchronous Transmission
Bit level: Block of data transmitted without start or
stop bits
Tx and Rx clocks must be synchronized!!!
Option 1 -- Can use separate clock line
Good over short distances
Subject to impairments
Option 2 -- Embed clock signal in data
Manchester encoding
Carrier frequency (analog)
Burst Errors
• two or more bits in the data unit have been corrupted errors do not have to
occur in consecutive bits
• burst errors are typically caused by external noise (environmental noise)
• burst errors are more difficult to detect / correct
n=3
d1
d2 d3 … d15 d16
Typing error 3
Telecomm. Dept. DCN-2013
40
Faculty of EEE HCMUT
Example: Detect Error On Credit Card
The test performed on the credit card number is called a
parity check equation. The last digit is a function of the other
digits in the credit card. This is how credit card numbers are
generated by Visa and Mastercard. They start with an account
number that is 15 digits long and use the parity check
equation to find the value of the 16th digit.
“This method allows computers to detect 100% of single-
position errors and about 98% of other common errors”
Other examples:
ISBN (international standard book number)
• 0 – 20 – 1 – 36186 – 8
UPC (universal product codes): 12-digit sequence
• 0 16000 66610 8
Telecomm. Dept. DCN-2013
41
Faculty of EEE HCMUT
Parity Check
Value of parity bit is such that
character has even (even
parity) or odd (odd parity)
number of ones
Even parity: number of bits 1
(including parity bit, excluding
Start and Stop bits) is even
Odd parity: number of bits 1
(including parity bit, excluding
Start and Stop bits) is odd
Requires retransmission if an
error is detected
Simple implementation in
hardware
A A B A
A A B A
Example 2: