A bit-stuffing based framing protocol uses an delimiter pattern of If the output bit-string after stuffing is then the input bit-string is:
View worked solution
Answer: B
In a bit-stuffing protocol with the delimiter pattern (which contains six consecutive s), the transmitter inserts (stuffs) a 0 after every five consecutive 1s in the input data stream to prevent the delimiter from appearing in the payload.
To recover the original input bit-string from the stuffed output, we perform the reverse process (destuffing):
- Scan the stuffed bit-string from left to right.
- Whenever we encounter five consecutive
1s, the immediately following0is identified as the stuffed bit and is removed.
Let's apply this to the given stuffed output:
- We scan the bits: , followed by five consecutive s: .
Current sequence: - The next bit in the stream is a . Since it immediately follows five consecutive s, this is the stuffed bit and must be removed:
Stuffed stream: - Removing the stuffed yields the original input stream:
Input stream:
Thus, the correct input bit-string is , which corresponds to Option B.
Free practice · Your answers on this page are not saved.
