13,516 views
5 5 votes
Flag: 01111110
Data: 1000111111100111110100011111111111000011111
bit stuff the given data?

1 Answer

6 6 votes

Flag: 01111110
Data: 1000111111100111110100011111111111000011111

whenever we encounter 11111(5 ones) after a 0 we would insert 0 in the data after 011111 0

Note that the last zero above(bold one) is not a part of original data stream.

Positions where 0 will be stuffed are indicated by P highlighted in yellow.

Ref : Forouzan

Note : 0 will be stuffed after every stream of 11111 which follows a 0 in the data stream.

100011111P110011111P0100011111P111111000011111P

Data Stream after Bit Stuffing

10001111101100111110010001111101111110000111110 (P are replaced by 0)

• edited by
Position:
Show:

Related questions

2 2 votes
3 answers 3 answers
2.1k
2.1k views
3 3 votes
2 2 answers
3.6k
3.6k views
Hirak asked May 8, 2019
3,571 views
End delimeter is → 0111data to be sent 0111111111.What is the data we should send to the reciever?
3 3 votes
1 1 answer
3.9k
3.9k views
Shubham Kumar Gupta asked Dec 17, 2017
3,949 views
In a data link protocol, the following character encoding is used:A → 01000111 B → 11100011 FLAG → 01111110 ESC → 11100000Assuming that byte stuffing is employed for the ...
8 8 votes
2 answers 2 answers
5.2k
5.2k views
junaid ahmad asked Sep 20, 2017
5,151 views
In bit stuffing protocol for frame synchronization, if stuff bit pattern is $01110$ then how many zero bits stuffed by transmitter white transmitting given frame (except ...