This repository contains an experiment I made when I realized that bandwidth had influence on latency. This isn't really accurate but it's funny!
If we model the time packet spend in cables as a fixed propagation time (due to length and speed in cable) ans a throughput time (due to size of packet and bandwidth), we realize that we can deduce a bandwidth from a few RTT measures using ping, that's really fun !
- Clone this repository
- go build in the root directory
./bandwidth-ping <target> <number of samples> <number of ping samples>