Computer Network2.3
Computer Network2.3
Framing
Error
control
Flow control
Framing
Data
Character count
Header
value
of characters in that frame .so Rx knows by
reading count value how many characters
follow
before
frame
ends.
4
5
7
4
IET 5
DAVV
7 INDORE
If count is garbled in transmission Rx will get
out
of synchronization and unable to locate the
start of next frame.
Character stuffing
Each
Bit stuffing
data transmission :
In simplex channel no retransmission canbe
requested hence error detect-correcting
codes
are used otherwise error detection followed
by retransmission is preferred since
overhead in earlier is more.
error detection and correction- Hamming
code
Hamming code
Hamming code
When code word arrives,receiver initializes a
counter to 0.Examines each check bit x(1,2,4..)
for correct parity.if not ,it adds x to the counter.
If counter is 0 after all check bits have been
examined,code word is accepted as valid. if
counter is nonzero,it contains the number of bit
position in error so corrected by complement.
Hamming code can detect and correct single bit but
By arranging k code words in matrix form and
transmitting columnwise, burst error of length k
can be detected and corrected.
EXAMPLE
For
bits
D15 D14 D13 D12 D11 D10 D9 P8 D7 D6 D5 P4 D3 P2 P1
P1 is set so that it establishes even parity
over bits(D3,D5,D7,D9,P1).P2 is set for
(2,3,6,7,10,11).P4 set for even parity over
bits(D5,D6,D7,P4)P8 (8,9,10,11)
At receiver each group is checked for even
parity
Bit position in error is find out and corrected
by inverting bit.
Data 1101 transmitted as
1100110
If Rx receives 1110110
apply error check
Example-CRC
example
limitations :
Checksum detects all errors involving odd num of
bits as well as most of even number bits .but if
one or more segments are damaged and
corresponding bits of opposite value in second
segment are also damaged, error cannot be
detected.