iperf3 UDP ненадежно с iptables drop random

Я выполняю локальный тест в своей сети с iperf3, используя UDP-соединения между двумя хостами Ubuntu 18.04. Но кажется, что UDP iperf3-соединения не надежны для поддержки случайного сброса пакетов 0,1? When executing the iperf3 tests, the server hangs (i need to restart the server to allow connecting again) and I'm seeing this errors:

At the server:

iperf3: the client has unexpectedly closed the connection

At the client:

error - unable to write to stream socket: Operation not permitted

To simulate/test a bad hop on my network I'm using iptables to generate random packet drops with this command (executed at the host A):

sudo iptables -A OUTPUT -p udp -d HOSTB -m statistic --mode random --probability 0.01 -j DROP

And the iperf3 executed at the host A:

iperf3 --version4 --udp --client 10.0.3.10 --port 4000 --bind 10.0.1.10 --cport 12346 --json --zerocopy --verbose --bandwidth 300M --debug

At the host B i'm using:

iperf3 --verbose --server --port 4000 --version4 --debug

As far as documentation goes, iperf3 can work with very bad networks, what can be happening here?

0
задан 17 August 2018 в 21:07
1 ответ

По полезным комментариям от @Appleoddity я обнаружил, где , как мне кажется, была ошибка. Отбрасывание пакетов на выходе может вызвать ошибки на уровне приложения, а не только имитировать шумный канал.

Запустив iptables drop против входа на хосте B, проблема исчезла:

sudo iptables -A INPUT -p udp -s 10.0.1.10 -m statistic --mode random --probability 0.1 -j DROP

0
ответ дан 5 December 2019 в 05:24

Теги

Похожие вопросы