1
▼
Stuff bit pattern :01110 dataFrame :1011101111011111110 After stuffing 1011010110110110111110: 3Bit stuffing
After stuffing 101101011011 - here it forms 011 so why not adding a zero after this?
Flag : 01110
Data Frame: 1011101111011111110 Data after bit stuffing: 1011010110110011011011010
or your reference find the following screenshot from the book:
[Edit: I didn`t cover the edge case where stuffing 0 also ruining the pattern thus updated answer is correct i.e Data after bit stuffing: 1011010110110011011011010 Thanks @ manu00x for information ]
this answer is not correct, a 0 will be stuffed after each two 1's. for your reference find the following screenshot from the book:
@ manu00x is this excerpt from Forouzan ?
64.3k questions
77.9k answers
244k comments
80.0k users