Indicating the end of a data stream

to overcome the problem of frame flags in a data stream you can use bit or byte stuffing