文件名称:令牌桶算法c实现
文件大小:13KB
文件格式:ZIP
更新时间:2020-12-19 17:09:44
令牌桶
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
【文件预览】:
token-bucket-master
----mylist.h(2KB)
----token-monitor.c(2KB)
----token-statistics.c(3KB)
----token-token-arrival.c(5KB)
----Makefile(905B)
----mylist.c(5KB)
----tsfile.txt(60B)
----token.h(2KB)
----token-core.c(4KB)
----README.md(198B)
----cs.h(554B)
----token-helper.c(2KB)
----token.c(3KB)
----token-server.c(5KB)
----token-init.c(1KB)
----token-packet-arrival.c(7KB)