8,209 views

Bit stuffing refers to

1. inserting a $0$ in user stream to differentiate it with a flag
2. inserting a $0$ in flag stream to avoid ambiguity
3. appending a nipple to the flag sequence
4. appending a nipple to the use data stream

Bit stuffing refers to inserting a 0 in user stream to differentiate it with a flag.

Each frame begins and ends with a special bit pattern called a flag byte ex. 01111110.

Whenever sender data link layer encounters five consecutive ones in the data stream, it
automatically stuffs a 0 bit into the outgoing stream.

When the receiver sees five consecutive incoming ones followed by a 0 bit, it automatically
destuffs the 0 bit before sending the data to the network layer.

Option A is correct.

by

@ManojK hey! in the stuffed stream, you have written '000000' (6 0's) in the end, but not marked that extra 0 as red, is that a stuffing or a typing error by you?
Hi i have a doubt, how does the receiver knows while un stuffing bits that the mentioned bits above are 1 or 0 in the original message.

Say sender sends a data, after five consecutive 1's a 1 is there and while stuffing it is changed to 0. But while un stuffing how does that receiver knows that it is 1 or 0 before stuffing it?
hi...is this mandetory that all time we use 0 for bit stuffing
Ya, that's also my doubt. If the flag stream contains 5 0's and then 1 how can we stuff an extra 0 in it. So, I think answer should be option d
Bit Stuffing refers to the insertion of non information bits into data.

Application:-

1.To Differentite the Frame delimator (Used for Synchronization purpose)From the original data.

2.For bringing bit streams that do not necessarily have the same or rationally related bit rates up to a common rate.

3.To fill buffers or frames.

https://en.m.wikipedia.org/wiki/Bit_stuffing