Skip to content
A link simulator for the first networking project (LINGI1341)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
link_sim.c
min_queue.c
min_queue.h

README.md

LINGI1341-linksim

A link simulator for the first networking project (LINGI1341)

This program will proxy UDP traffic (datagrams of max 528 bytes), between two hosts, simulating the behavior of a lossy link.

Using it is a simple as choosing two UDP ports, one for the proxy, and one for the receiver of the protocol.

Client machine:

./sender server_address proxy_port

Server machine:

./link_sim -p proxy_port -P server_port &
./receiver :: server_port

You can control the direction (i.e. forward, reverse or both ways) of the traffic which is affected by the program.

Use this to test your programs in the events of losses, delays, truncation, ...

Feel free to hack it and submit pull request for bug fixes, ...

You can’t perform that action at this time.