CS FundamentalsVery hardProduct company interview · GATE level
A host is shaped by a token bucket of capacity 6 Mb that fills at 4 Mbps; the bucket is full at t = 0. The output link can carry at most 10 Mbps. A burst of 20 Mb of data becomes ready at t = 0. How long does it take to send the whole burst?
- A. 3.5 s
- B. 5 s
- C. 2 s
- D. 2.5 s
Correct answer: A. 3.5 s
While tokens remain, the host sends at the 10 Mbps peak while tokens arrive at 4 Mbps, so the bucket drains at 6 Mbps and lasts S = 6/(10 - 4) = 1 s, in which 10 Mb are sent. The remaining 10 Mb can go only at the token rate of 4 Mbps, taking 2.5 s. Total 3.5 s. 5 s ignores the stored tokens (20/4), 2 s ignores the shaper altogether (20/10), and 2.5 s is only the second phase.
More Computer Networks questions
- Stations sharing a 56 kbps pure ALOHA channel send 1000-bit frames. Together (new frames plus retransmissions) they attempt 28 frames per…
- An HDLC-style link uses the flag 01111110 and bit stuffing: the sender inserts a 0 after every run of five consecutive 1s in the data. The…
- Hosts A, B, C, D and E are each attached to their own port of one Ethernet switch whose MAC table is empty. These frames are then sent in…
- A leaky bucket holds at most 5 packets. In each clock tick, newly arrived packets are first placed in the bucket (those that do not fit…
- A browser with nothing cached fetches a page made of a base HTML file and 9 small images, all on one server. Resolving the server's name…
- For the host 172.29.115.201/21, what is the directed broadcast address of its subnet and how many usable host addresses does the subnet…