Slow vlan
-
hello all, maybe someone here can help me figure out this problem:
i have a linux server with one eth0 interface. on this interface i had the lan network 192.168.0.0/24 connected to pfsense and everything was fine.
then i decided i needed to put a virtualbox vm on this server. i want this vm on a separate network and vlan, so i configured the vlan 30 on pfsense with the lan interface as parent, configured dhcp for vlan 30, and created the vlan on the linux server:eth0.30 Link encap:Ethernet HWaddr 38:d5:47:b3:c5:70 inet addr:192.168.30.10 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::3ad5:47ff:feb3:c570/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1916131 errors:0 dropped:0 overruns:0 frame:0 TX packets:1905261 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:141859214 (141.8 MB) TX bytes:121939311 (121.9 MB)
then i configured the network interface of the vm to use eth0.30:
everything works as expected: the vm guest gets his ip from the dhcp:
enp0s3 Link encap:Ethernet HWaddr 08:00:27:a5:f5:4c inet addr:192.168.30.15 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fea5:f54c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:115981 errors:0 dropped:0 overruns:0 frame:0 TX packets:114507 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:12028501 (12.0 MB) TX bytes:8780030 (8.7 MB)
and everything seems to work, but it is sloooooooow: here is a iperf3 test done from the host to the guest:
$ iperf3 -s ----------------------------------------------------------- Server listening on 5201 ----------------------------------------------------------- Accepted connection from 192.168.30.10, port 56052 [ 5] local 192.168.30.15 port 5201 connected to 192.168.30.10 port 56054 [ ID] Interval Transfer Bandwidth [ 5] 0.00-1.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 1.00-2.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 2.00-3.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 3.00-4.00 sec 4.24 KBytes 34.8 Kbits/sec [ 5] 4.00-5.00 sec 4.24 KBytes 34.8 Kbits/sec [ 5] 5.00-6.00 sec 4.24 KBytes 34.8 Kbits/sec [ 5] 6.00-7.00 sec 2.83 KBytes 23.2 Kbits/sec [ 5] 7.00-8.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 8.00-9.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 9.00-10.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 10.00-11.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 11.00-12.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 12.00-13.00 sec 4.24 KBytes 34.8 Kbits/sec [ 5] 13.00-14.00 sec 5.66 KBytes 46.3 Kbits/sec [ 5] 14.00-15.00 sec 5.66 KBytes 46.3 Kbits/sec [ 5] 15.00-16.00 sec 5.66 KBytes 46.3 Kbits/sec [ 5] 16.00-17.00 sec 5.66 KBytes 46.3 Kbits/sec [ 5] 17.00-18.00 sec 2.83 KBytes 23.2 Kbits/sec [ 5] 18.00-19.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 19.00-20.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 20.00-21.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 21.00-22.00 sec 0.00 Bytes 0.00 bits/sec [ 5] 22.00-22.86 sec 0.00 Bytes 0.00 bits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth Retr [ 5] 0.00-22.86 sec 82.0 KBytes 29.4 Kbits/sec 3 sender [ 5] 0.00-22.86 sec 45.2 KBytes 16.2 Kbits/sec receiver
does someone have an idea of what could cause this slowness? can i do something to debug it?
thanks!
-
That looks like an issue entirely within VBox if it's between the host and the guest. That traffic never goes through pfSense.
Try an iperf test between pfSense and the host on VLAN30 to confirm that.
Steve
-
That looks like an issue entirely within VBox if it's between the host and the guest. That traffic never goes through pfSense.
Try an iperf test between pfSense and the host on VLAN30 to confirm that.
Steve
you are right. iperf from and to the router is "fast" (in quotes because it's a gigabit line, but it does only 596 Mbit/s):
[2.4.0-RC][admin@rutter.in.tern.al]/root: iperf -c 192.168.30.10 ------------------------------------------------------------ Client connecting to 192.168.30.10, TCP port 5001 TCP window size: 64.2 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.30.1 port 57809 connected with 192.168.30.10 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 711 MBytes 596 Mbits/sec [2.4.0-RC][admin@rutter.in.tern.al]/root:
So it's a VirtualBox problem. Thanks stephenw10!