Framing

Framing is a way of

Framing Error You specify a beginning sequence and a ending sequence.

But what if in the data you actually want to send, there is a sequence of bits that look like the beginning / ending sequence?

The solution is to try bit stuffying.