CS FundamentalsHardGATE CS
An HDLC receiver removes the 0 that the sender stuffed after every five consecutive 1s. What data does it recover from the bit string 0111110111110011111010 (flags already removed)?
- A. 0111111111101111110
- B. 011111111110011111010
- C. 01111111111011111100
- D. 0111111111110111110
Correct answer: A. 0111111111101111110
Scan for 11111 followed by 0 and drop that 0: there are three such places, so 22 bits shrink to 19: 0111111111101111110. Removing only the first stuffed 0 leaves the others in the data.
More Computer Networks questions
- A receiver has these fragments of one IPv4 datagram (all with 20-byte headers): offset 0, total length 1420, MF = 1; offset 175, total…
- A TCP receiver has a 64 KB buffer with LastByteRcvd − LastByteRead = 20 KB. The sender has LastByteSent − LastByteAcked = 30 KB, and its…
- After a timeout a TCP sender restarts with cwnd = 1 MSS and ssthresh = 32 MSS (slow start doubles cwnd per RTT, capped at ssthresh…
- Host A pings host B through one store-and-forward router: A–router is 10 Mbps, router–B is 100 Mbps, each with 5 ms propagation delay. The…
- Host X on LAN1 sends an IP packet to host Y on LAN3. The path is X → router R1 → LAN2 → router R2 → Y. All ARP caches are empty, and…
- Stop-and-wait runs over a geostationary satellite hop with one-way propagation 270 ms at 1 Mbps (ACKs negligible). What is the smallest…