Redirected
edited by
2,206 views
1 votes
1 votes
A token bucket scheme is used for traffic shaping. a new token is put into the bucket at every 10 micro second. assume each token pick one packet which contain 2B of data. it is observed that initial capacity of bucket is 10 Mb. the computer can transmit at full speed of 8 Mbps for _____

 

my question is in (C+RT) = MT

what is R? is it token arriving rate (0.1M/s) or data transmitted equivalent to token (16bits * 0.1M/s) ?
edited by

1 Answer

3 votes
3 votes

initial capacity of token bucket is given as =$10^{7}$ bits

in every 10 $\mu$ sec => 1 token is added

in 10*$10^{-6}$ sec => 1 token is added

in 1 sec =>$10^{5}$ token added

token rate=$10^{5}$ tokens/sec.

1 token is equivalent to 16 (2*8) bits of data

due to token rate  we are able to send 16*$10^{5}$ bits/sec from the host.

suppose the host transmit at maximum rate (i.e. 8mbps) for t secs

total data sent by host in t secs= 8*$10^{6}$*t

this data must be equal to the original capacity of token bucket + data transferred in 't' time due to token rate

8*$10^{6}$*t = $10^{7}$ bits + 16*$10^{5}$*t

t=1.5625s

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
2 answers
2
2 votes
2 votes
1 answer
4
abheet asked Jul 31, 2022
1,216 views
Imagine a flow specification that has the maximum packet size 800 bytes, token bucket rate of $5 \times 10^{6}$ bytes/sec. Token bucket size is 1 million byte and the max...