Byte Stuffing
“data transparency” requirement: data field must be allowed to include flag pattern >
- Q: is received > data or flag?
Sender: adds (“stuffs”) extra < 01111110> byte after each < 01111110> data byte
Receiver:
- two 01111110 bytes in a row: discard first byte, continue data reception
- single 01111110: flag byte