Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A bit-stuffing based framing protocol uses an... Start Learning for Free
A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string is
  • a)
    0111110100
  • b)
    0111110101
  • c)
    0111111101
  • d)
    0111111111
Correct answer is option 'B'. Can you explain this answer?
Most Upvoted Answer
A bit-stuffing based framing protocol uses an 8-bit delimiter pattern ...
Bit Stuffing is used to create framing.
8-bit delimiter pattern is 01111110. 
The output bit-string after stuffing is 01111100101.
The above highlighted bit is stuffed bit.  
So input bit-string must be 0111110101.
Alternative approach –
The given delimiter pattern is 01111110. Delimiters are used to define the beginning and end of data.
Since delimiters are special bit-patterns used for special purposes, they must be avoided in the encoded form of the input data. To achieve this, Bit Stuffing is used.
On the sending side, any time five consecutive 1’s have been transmitted from the body of the message (i.e., excluding when the sender is trying to transmit the distinguished 01111110 delimiter sequence), the sender inserts a 0 before transmitting the next bit.
If the receiver gets five consecutive 1’s, it makes its decision based on the next bit it sees (i.e., the bit following the five 1s).
If the next bit is a 0, it must have been stuffed, and so the receiver removes it.
If the next bit is a 1, then one of two things is true: Either this is the end-of-frame marker or an error has been introduced into the bit stream.
Going further and reading the next bit distinguishes these two cases. If the next bit is 0, then it is the end of frame marker (delimiter 01111110), and if the next bit is a 1 then there is must be an error in the frame and it is discarded.
So, For the data sequence 0111111101
Encoding would be – 01111101101
Here the bold 0 is stuffed to distinguish it from the delimiter sequence.
Coming back to the question, the encoded string is – 01111100101 and when the receiver senses that it has received 5 consecutive 0’s then
If the next bit is 0, then it is stuffed
If the next bit is 1, then next to next bit would tell if the frame has ended or there is an error.
In this case, the next bit is 0 which means it was stuffed, so the corresponding input sequence is- 0111110101.
Therefore, option (B) is correct.
Free Test
Community Answer
A bit-stuffing based framing protocol uses an 8-bit delimiter pattern ...
Explanation:
To understand why the input bit-string is 0111110101, we need to understand the concept of bit stuffing and how it is applied in the given scenario.

Bit Stuffing:
Bit stuffing is a technique used in framing protocols to ensure data integrity and synchronization between the sender and receiver. It involves adding extra bits to the data stream to distinguish between data and control information.

In this scenario, the delimiter pattern used for bit stuffing is 01111110. Whenever this pattern is encountered in the data stream, an extra 0 bit is stuffed after it to differentiate it from the actual data.

The given output bit-string after stuffing is 01111100101. Let's break it down and understand the process step by step.

Step 1: Start with the output bit-string: 01111100101

Step 2: Look for the delimiter pattern (01111110) in the bit-string.

Step 3: Whenever the delimiter pattern is found, check the next bit.

- If the next bit is 0, it means it is the stuffed bit and should be discarded.
- If the next bit is 1, it means it is the end of the delimiter pattern and the stuffed bit should be preserved.

Step 4: Apply the above rule to the output bit-string.

- Start with the first bit: 0
- Move to the next bit: 1
- Move to the next bit: 1
- Move to the next bit: 1
- Move to the next bit: 1
- Move to the next bit: 1 (found the delimiter pattern)
- Move to the next bit: 0 (stuffed bit, discard)
- Move to the next bit: 0
- Move to the next bit: 1 (found the delimiter pattern)
- Move to the next bit: 0 (stuffed bit, discard)
- Move to the next bit: 1

Step 5: The resulting input bit-string after stuffing is 0111110101.

Conclusion:
Based on the above steps, we can conclude that the correct answer is option 'B' which is 0111110101.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer?
Question Description
A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer?.
Solutions for A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer?, a detailed solution for A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is01111100101, then the input bit-string isa)0111110100b)0111110101c)0111111101d)0111111111Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev