search
Log In

GateBook [closed]

1 vote
158 views
In a DLL layer, bit stuffing is used in transferring data. If the sent data after bit stuffing is 001111101101011111001111 and the flag is 01111110, then what will be the data after de-stuffing.
closed with the note: Query yet to be resolved. Referring standard resources and will update the answer for the same.
in Computer Networks
closed by
158 views
0
0011111110101111101111 ?
0
Yes but how did you get that? Also if in case if flag itself is a data i.e 01111110, how would it look after bit stuffing?
0
in case flag is 01111110 we have to insert 1 after 5 consecutive 1's while sending data.

so remove 0's after 5 consecutive 1's.

bit stuffing is used to differentiate flag from data bits, so NEVER bit stuff flags bucause it beats the purpose of bit stuffing.
0
you insert 1 or 0?
0
We will insert 0 else it will become flag
0

@OneZero 

What would we do in case where flag doesn't have 5 consecutive `1` pattern?

0
is it a standard method of adding 0 after every occurrences of 1s?

Related questions

0 votes
2 answers
1
154 views
The following data fragment occurs in the middle of a data stream for which the bytestuffing algorithm described in the text is used: A B ESC C ESC FLAG FLAG D. What is the output after stuffing
asked Mar 16, 2019 in Computer Networks ajaysoni1924 154 views
0 votes
1 answer
2
1 vote
2 answers
3
348 views
End delimeter is → 0111 data to be sent 0111111111. What is the data we should send to the reciever?
asked May 8, 2019 in Computer Networks Hirak 348 views
2 votes
1 answer
4
858 views
In a data link protocol, the following character encoding is used: A → 01000111 B → 11100011 FLAG → 01111110 ESC → 11100000 Assuming that byte stuffing is employed for the four character frame A B ESC FLAG, transmitter sends it as: A. ... B. 01111110 01000111 11100011 11100000 11100000 01111110 01111110 C. 01111110 01000111 11100011 11100000 11100000 11100000 01111110 01111110 D. None of these
asked Dec 18, 2017 in Computer Networks Shubham Kumar Gupta 858 views
...