I am having trouble implementing inbound bandwidth limitation. Here is the relevant config:
vyos@vyos# sh traffic-policy
limiter Cust-IN {
default {
bandwidth 20mbit
burst 1mb
}
}
[edit]
vyos@vyos# sh interfaces
ethernet eth5 {
hw-id 00:1b:21:2b:be:49
traffic-policy {
in Cust-IN
}
vif 100 {
address 192.168.100.1/24
description “VLAN 100”
traffic-policy {
}
}
}
Testing with iperf, it limits at precisely 20mbit as expected, but only when sending udp. When I test with tcp, bandwidth measurement look like this:
iperf -c 192.168.100.1 -i 1 -t 10
Client connecting to 192.168.100.1, TCP port 5001
TCP window size: 85.0 KByte (default)
[ 3] local 192.168.100.100 port 36938 connected with 192.168.100.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 128 KBytes 1.05 Mbits/sec
[ 3] 1.0- 2.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 2.0- 3.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 3.0- 4.0 sec 128 KBytes 1.05 Mbits/sec
[ 3] 4.0- 5.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 5.0- 6.0 sec 128 KBytes 1.05 Mbits/sec
[ 3] 6.0- 7.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 7.0- 8.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 8.0- 9.0 sec 128 KBytes 1.05 Mbits/sec
[ 3] 9.0-10.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 0.0-13.5 sec 640 KBytes 389 Kbits/sec
I get similar throughput regardless of the bandwidth I set, (eg 500mbit). Throughput is terrible when I send a file vie scp as well, so its not just iperf having trouble.
Any thoughts? Any I missing something in the config?
Thanks.
Ted