Token Bucket Emulation in C using Multithreading
This project involved emulation of the Token Bucket algorithm using POSIX threads in C. The aim was to simulate a traffic shaper that receives and transmits packets to a server, while being controlled by a token bucket filter. There were three major components of the system :
1. The input queue that received the packets
2. The token bucket that received the tokens
3. The output queue that send the packets to the server
2019-12-21 21:29:09
13KB
令牌桶
1