Question:
Computer A has 145 MB data to send on a network and transmits the data in a burst @ 20 Mbps. The maximum transmission rate across routers in the network is 10 Mbps. If Computer A's transmission is shaped using a leaky bucket then what will be the bucket size to make sure that no data is discarded?
Answer:
20 Mb → 1 sec
(145MB *8) Mb → ( time for computer to transmit data)??
time for computer to transmit data = total bits / max trans rate
= (145 MB * 8 bits/byte) / 20 Mbps
= 1160Mb / 20 Mb/s
= 58 s
10 Mb → 1 sec
actual data sent on network ?? → 58 sec
actual data sent on network in 58 s = network rate * 58 s
= 10 Mb/s * 58s
= 580 Mbits = 72.5 Mbytes
bucket size = 145 MB - 72.5 MB = 72.5MB(or 580Mb)