Skip to content

RedesdeOrdenadores/ShuffleRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShuffleRouter

Build status shufflerouter

A testbed for the practicals of the Redes de Ordenadores subject

Overview

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.

USAGE:

shufflerouter [FLAGS] [OPTIONS]

FLAGS:

-h, --help       Prints help information
-j, --parallel    EXPERIMENTAL: Multithreaded version
-V, --version    Prints version information
-v, --verbose    Verbose level

OPTIONS:

-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)

Legal

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