Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the Figure 1 below, which shows a token bucket policer being fed by a stream of packets. The token buffer can hold at most
Consider the Figure 1 below, which shows a token bucket policer being fed by a stream of packets. The token buffer can hold at most two tokens, and is initially ful at t0. New tokens arrive at a rate of one token per slot. The output link speed is such that if two packets obtain tokens at the beginning of a time slot, they can both go to the output link in the same slot. The timing details of the system are as follows: r1 token/slot b 2 tokens Arrivals Packet queue (wait for tokens) Figure 1: Arrivals of packets to a queue Packets (if any) arrive at the beginning of the slot. Thus in the figure, packets 1, 2, and 3 arrive in slot 0. If there are already packets in the queue, then the arriving packets join the end of the queue. Packets proceed towards the front of the queue in a FIFO manner After the arrivals have been added to the queue, if there are any queued packets, one or two of those packets (depending on the number of available tokens) will each remove a token from the token buffer and go to the output link during that slot. Thus, packets 1 and 2 each remove a token from the buffer (since there are initially two tokens) and go to the output link during slot 0 A new token is added to the token buffer if it is not full, since the token generation rate is r = 1 token/slot. . Time then advances to the next time slot, and these steps repeat Answer the following questions a) For each time slot, identify the packets that are in the queue and the number of tokens in the bucket immediately after the arrivals have been processed (step 1 above) but before any of the packets have passed through the queue and removed a token. Thus, for thet0 time slot in the example above packets 1, 2 and 3 are in the queue, and there are two tokens in the buffer b) For each time slot indicate which packets appear on the output after the token(s) have been removed from the queue. Thus, for the0 time slot in the example above, packets 1 and 2 appear on the output link from the leaky buffer during slot 0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started