A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110
. If the output bit-string after stuffing is 01111100101
, then the input bit-string is
(A) 0111110100
(B) 0111110101
(C) 0111111101
(D) 0111111111
Correct answer given is B
.
My question is why 1
is added after five 1's from left even when delimiter has six continuous 1's.
I think we will add 1
only when we get six continuous 1's, to avoid a 0.
Correct me if I am wrong.