Network protocols
HDLC data bit stuffing
Insert or remove zero bits after runs of five data ones.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
After five consecutive data ones, insert one zero. Unstuff mode requires that zero and removes it before continuing.
11111 becomes 111110. Six data ones become 1111101.
Limits
Data bits only. Exclude flags and any already-framed abort sequences. FCS calculation, byte ordering and physical encoding are not included.