CS FundamentalsHardGATE CS
A token bucket has capacity 1 MB, fills at 2 MB/s, and is full at t = 0, when a host starts sending a long burst. The host's link runs at 10 MB/s. How much data leaves in the first 0.25 s?
- A. 2.5 MB
- B. 1.25 MB
- C. 1.5 MB
- D. 0.5 MB
Correct answer: C. 1.5 MB
At full rate the bucket empties after C/(M − ρ) = 1/(10 − 2) = 0.125 s, after which output is limited to 2 MB/s. Total = C + ρt = 1 + 2 × 0.25 = 1.5 MB. 2.5 MB assumes full rate throughout, and 1.25 MB counts only the burst phase.
More Computer Networks questions
- A 100 Mbps link is 3000 km long and signals travel at 2 × 10⁸ m/s. For what packet size does the transmission delay equal the propagation…
- A home router does port address translation using one public IPv4 address and source ports 1024–65535. Ten PCs behind it all open TCP…
- A form sends a POST to /old, and the server must redirect it to /new so that the browser repeats the POST with the same body, and the move…
- A TLS 1.3 client resumes a session and sends application data in 0-RTT (early data). Which statement is correct?
- A developer authenticates API messages as tag = SHA-256(secret ‖ message) instead of using HMAC. Why is this unsafe?
- Two sites connect through a router that performs NAT. An IPsec tunnel using AH fails, while one using ESP with NAT traversal works. Why?