Stuart Cheshire’s #dissertation #paper in #PS on #consistent-overhead-byte-stuffing. I can’t believe he wrote a 152-page book on this algorithm. (It turns out that most of the book is actually a remarkably comprehensive overview of some 25 existing framing protocols; his own algorithm and analysis thereof is on pp.77–122.)