210 likes | 499 Views
Advanced Computer Networks. Multimedia and QoS Chapter 7(Kurose) Problem Solutions N.M.Balouchzahi Nik.Balouchzahi@gmail.com . Problem#1. Problem#1. 1, 4 , 5, 6. 7,8. 3,4,5. 3. Leaky Bucket.
E N D
Advanced Computer Networks Multimedia and QoS Chapter 7(Kurose) Problem Solutions N.M.Balouchzahi Nik.Balouchzahi@gmail.com
Problem#1 N.M.Balouchzahi, Advanced Computer Networks
Problem#1 1, 4 , 5, 6 N.M.Balouchzahi, Advanced Computer Networks
7,8 N.M.Balouchzahi, Advanced Computer Networks
3,4,5 N.M.Balouchzahi, Advanced Computer Networks
3 N.M.Balouchzahi, Advanced Computer Networks
Leaky Bucket Computer A has to ‘inject’ 21 MB of data into the network. The data is generated and transmitted in bursts of 6 Mbps. The minimum sustainable transmission rate across routers in the network is 5 Mbps. If computer A’s transmission is shaped using a leaky bucket (see figure next slide), what is the minimum size of the buffer to prevent any data loss? (Show your work!) N.M.Balouchzahi, Advanced Computer Networks
Overall amount of data : 21 MB = (21*8) Mbits = 168 [Mbits] • Time to ‘inject’ 168 Mbits of data in the buffer, at 6 Mbps: • 168 Mbits / 6Mbps = 28 [sec] • Rate at which data accumulates in the buffer (R): • 6 Mbps – 5 Mbps = 1 [Mbps] • data accumulated in the buffer at the end of 1st second: 1 [Mbits] • data accumulated in the buffer at the end of 2nd second: 2 [Mbits] • data accumulated in the buffer at the end of 3rd second: 3 [Mbits] • data accumulated in the buffer at the end of 28th second: 28 [Mbits] N.M.Balouchzahi, Advanced Computer Networks
Sample, Kurose Problem B=2 tocken R=1 tockens/sec Policy= FIFO Initially= Bucket Full
If r=2 tocken/sec ? N.M.Balouchzahi, Advanced Computer Networks