Data Communication - Digital Data Communication
Data Communication - Digital Data Communication
Asynchronous
Data transmitted on character at a time
5 to 8 bits
Timing only needs to be maintained within each character Resynchronize with each character
Asynchronous Transmission
Asynchronous - Behavior
Example: Timing error
R=10kbps (T=100 micro) Rx is fast by 6% The 8th bit in error If bit 7 is 1 and bit 8 is 0, bit 8 is start bit error
framing
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 Simple Cheap Overhead of 2 or 3 bits per char (~20%) Good for data with large gaps (keyboard)
7
10
Types of Error
An error occurs when a bit is altered between transmission and reception Single bit errors
One bit altered Adjacent bits not affected White noise
Burst errors
Length B Contiguous sequence of B bits in which first and last bits and any number of intermediate bits are in error. Impulse noise Fading in wireless Effect greater at higher data rates.
11
Error Detection
Always there will be errors Detect errors using error-detecting code added by transmitter error-detecting code Recalculated and checked by receiver still chance of undetected error despite using error-detecting code. parity
parity bit set so character has even (even parity) or odd (odd parity) number of ones even number of bit errors goes undetected
12
13
14
2n k D !Q R p
T ! 2n k D R
Receive divides the received frame T r by P If no remainder, assume no error. i.e
E ! T T r or equivalently Tr !T E
15
Error Correction
correction of detected errors usually requires data block to be retransmitted not appropriate for wireless applications
bit error rate is high causing lots of retransmissions when propagation delay long (satellite) compared with frame transmission time, resulting in retransmission of frame in error plus many subsequent frames
instead need to correct errors on basis of bits received error correction provides this
16
Example
17
T (x ) ! x x x x P (x ) ! 1 x R (x ) ! 1 x
3
18
19
If p (x ) does not divide x k +1 up to max frame length, CRCs will catch all double errors For example: p (x ) ! x 15 x 14 1 will not divide xk+1 up to k=32,768, thus CRCs based on this polynomial can detect all double errors for frames up to 32,768 bits long
20
= = =
x 12 x 11 x 3 x 2 x 1
16
x x
16
x x
15
12
x x
1 1
21
22
Hamming distance
The number of bit positions at which two codewords differ Can be obtained by XOR ing two codewords Example: 0110000 and 0010111 (4)
23
24
Codewords with Hamming distance 2d+1 can correct d single-bit errors bit errors Not used much in data transmission due to rather large overhead
Used only when transmission costs are expensive
25
26
Line Configuration
Topology
Physical arrangement of stations on transmission medium Point to point Multi point
Computer and terminals, local area network
Half duplex
Only one station may transmit at a time Requires one data path
Full duplex
Simultaneous transmission and reception between two stations Requires two data paths (or echo canceling)
27
Traditional Configurations
28
Interfacing
Data processing devices (or data terminal equipment, DTE) do not (usually) include data transmission facilities Need an interface called data circuit terminating equipment (DCE)
e.g. modem, NIC
DCE transmits bits on medium DCE communicates data and control info with DTE
Done over interchange circuits Clear interface standards required
29
30
Characteristics of Interface
Mechanical
Connection plugs
Electrical
Voltage, timing, encoding
Functional
Data, control, timing, grounding
Procedural
Sequence of events
31
V.24/EIA-232-F
ITU-T v.24 Only specifies functional and procedural
References other standards for electrical and mechanical
EIA-232-F (USA)
RS-232 Mechanical ISO 2110 Electrical v.28 Functional v.24 Procedural v.24
32
Mechanical Specification
33
Electrical Specification
Digital signals Values interpreted as data or control, depending on circuit More than -3v is binary 1, more than +3v is binary 0 (NRZ-L) Signal rate < 20kbps Distance <15m For control, more than-3v is off, +3v is on
34
Functional Specification
Circuits grouped in categories
Data Control Timing Ground
36
Procedural Specification
E.g. Asynchronous private line modem When turned on and ready, modem (DCE) asserts DCE ready When DTE ready to send data, it asserts Request to Send
Also inhibits receive mode in half duplex
Modem responds when ready by asserting Clear to send DTE sends data When data arrives, local modem asserts Receive Line Signal Detector and delivers data
37
38
39
40
Null Modem
41
42
43
44