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?
- A. 9
- B. 10
- C. 11
- 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
- Link-state routing runs Dijkstra from S on an undirected network with link costs S–A 3, S–B 1, B–A 1, A–C 2, B–C 5, C–D 1, B–D 7, A–D 6…
- Which statement about split horizon with poisoned reverse in distance-vector routing is correct?
- A host that has just booted broadcasts an ARP request asking for its OWN IP address. Why?
- A DHCP server sits on 10.0.0.0/24 and serves clients on 10.5.7.0/24 through a relay agent on that client router interface (10.5.7.1). How…
- Classic UNIX traceroute sends UDP probes with increasing TTL. How does it know that a probe has reached the destination host itself?
- A browser re-requests a cached image with the header If-Modified-Since. The image has not changed on the server. What does the server send?