CS FundamentalsHardGATE CS · Product company CS fundamentals

A PPP-style link uses byte stuffing with a FLAG byte at each end of the frame and an ESC byte placed before any FLAG or ESC that occurs in the data. The payload is: A, FLAG, B, ESC, ESC, C. How many bytes are sent for the whole frame, including both flags?

  1. A. 9
  2. B. 10
  3. C. 11
  4. D. 8

Correct answer: C. 11

The data FLAG gets one ESC and each of the two ESC bytes gets one ESC: 6 + 3 = 9 payload bytes, plus 2 frame flags = 11. Escaping only the FLAG gives 7 + 2 = 9, escaping the ESC pair once gives 10, and no stuffing gives 8.

More Computer Networks questions

Exams that ask this topic