There is the high latency wiht s2n_quic to send the data, the code is reproducer demo.
-
Make sure we have ssl dependency
sudo apt-get install openssl libssl-dev
-
Computer A run the demo server, listen the port 51111.
cd server && cargo run --release
-
Computer B run the demo client, connect the server IP, please modify the
SERVER_IP
field inclient/main.rs
.cd client && cargo run --release
When the latency > 40ms from computer A to B with ping.
we send the image data with 25 fps. and output letancy about every 2 seconds. The latency(millisecond) is very high.
All works well when the latency < 10ms from A to B.
However, When I specify the latency I want with tc
command on computer B.
for example, I set up 40ms latency on network card eth0
sudo tc qdisc add dev eth0 root netem delay 50ms
We found the rapidly increasing network latency.
We can get stable and as low as possible latency, even if there is some latency between A and B.