The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x

GateBook [closed]

+1 vote
67 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 by (239 points)
closed by | 67 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

+2 votes
1 answer
4
asked Oct 31, 2017 in Computer Networks by rohit vishkarma Active (1.1k points) | 154 views
+9 votes
2 answers
5
asked Sep 20, 2017 in Computer Networks by junaid ahmad Loyal (8.4k points) | 375 views
+1 vote
1 answer
6
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,845 questions
54,783 answers
189,425 comments
80,434 users