A testbed for the practicals of the Redes de Ordenadores subject
This is a simple echo server that redirects received UDP packets after a random amount of time —so packets can get reordered or even dropped—.
Received packets must carry the destination address in the first four bytes of the payload and the destination port as the fifth and sixth byte. All of them in network byte order. Packets are forwarded with the first six bytes replaced by the sender's IP address and port.
shufflerouter [FLAGS] [OPTIONS]
-h, --help Prints help information
-j, --parallel EXPERIMENTAL: Multithreaded version
-V, --version Prints version information
-v, --verbose Verbose level
-d, --drop <drop> Packet drop probability [default: 0.0]
-m, --min_delay <min_delay> Minimum packet delay, in milliseconds [default: 0]
-p, --port <port> Listening port [default: 2019]
-r, --rand_delay <rand_delay> Packet delay randomness, in milliseconds [default: 0]
-t, --timestamp <ts> Show log timestamp (sec, ms, ns, none)
Copyright ⓒ 2019–2021 Miguel Rodríguez Pérez miguel@det.uvigo.gal.
This simulator is licensed under the GNU General Public License, version 3 (GPL-3.0). For information see LICENSE