Here is an example of byte stuffing. the rules here every time you see a flag in the data, replace it with the sequence ESC FLAG, an ESC FLAG, and eve ry time we see escape, replace it with ESC, ESC. 