I also thought the same but see this --> https://gateoverflow.in/146996/result-after-bit-stuffing
Since the end delimiter is 0111 we need to make sure that there isn't 0111 as a part of data.
To get rid of 0111 from the data we can add a 0 after 011 to make it 0110 1
And do this until there isn't 0111 as a subset.
You will get the data as:
Also read: https://gateoverflow.in/141461/computer-networks-bit-stuffing
Because the first time you stuff 0 you get:
As you can see now the new data (partially stuffed data) contains 0111 which can be mistaken as the end delimiter and it will consider the data as 011.
Can u mention exact line of forouzan , which tells that??
I never seen such a thing in any standard question.
Plz. mention specifically the line from forouzan which mention that.
It may be, but I am not getting where forouzan mentioned that.
Tell me the line. Quote it from book plz.
whenever the reciever sees 011 it removes the next 0..so 011 can never occur again..
I agree with your ans..I also have the same concept..but in other ans it is different
Check @Ayush ans again
see the red portion they havenot added 0.
That means which 0 , we are adding extra, that is not considered as flag bit
Check this: http://web.mit.edu/modiano/www/6.263/lec2.pdf (page 8) its done differently.
This is same as done in CN by Tanenbaum, Communicaition Networks by Garcia and Widjaja and also in Data and Computer Communications by Stallings .
Above image Src: Tanenbaum
Above image src: CN by Garcia and Widjaja
Above image src: William Stallings
If u get such a GATE/ISRO question, and answer like this, then plz inform me. I donot think such thing applied in any answer
Yes @srestha mam. In the Forouzan's exercise there is a question whose answer will vary depending on which procedure we follow. But I didn't find any official solution (from the publisher or author). following is the question:
Okay..there is lots ambiguity surrounding this.. Anything like this has not been asked in GATE till now, guess they have also found it ambiguous.. :)