-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
As a minimally-intrusive measurement, It might be useful to calculate theoretical throughput based on MSS, RTT and loss per Mathis et al.
Steps would be:
- Open a socket to the far end
- Maybe send a small amount of data just to prime the pump
- Use
ss(8)to pull the MSS and maybe RTT from the socket data - Close the socket
- Test packet loss to the far end
- Put that into the Mathis equation: (MSS/RTT) * (1/sqrt(LOSS))
- Return the result as bandwidth
Useful ss command:
ss --tcp -i -O --no-header