Sie sind auf Seite 1von 1

CS309-Network Programming Laboratory

Exercise 6 (Batch B)
Implement a traffic shaper in JAVA that regulates the traffic towards a server using token bucket
algorithm. Use threads for packet arrival, token depositing, server and monitor (the role of the
monitor is stop the whole operation). Assume the bucket capacity, burst rate of data, network
bandwidth, token arrival rate and number of tokens in the bucket. Demonstrate the working of
the algorithm by considering all possible test cases.

Das könnte Ihnen auch gefallen