iperf3: Slower transfer speeds between VLANs vs same VLAN
-
Now try with them on different interfaces.
-
@JKnott Yes now it's closer to Gb speed being on the same VLAN.
-
That is what I suspected. When you're using VLANs, the same wire is used twice, which limits throughput.
While you were doing that, I did an experiment of my own. I ran speedtest, as I frequently do. Here are my results. This is on a 75 Mb down/10 up connection. As you can see, pfSense isn't causing much of a slow down.
-
@JKnott Well it l sounds like I'll have to look into setting up inter-vlan routing on my switch. I've never set it up this device before so that will be a project I can look into doing. Wonder how this will effect vlan routing with my VMs that are using OVS....woohoo, new things to test out!
-
@simon_lefisch said in iperf3: Slower transfer speeds between VLANs vs same VLAN:
ell it l sounds like I'll have to look into setting up inter-vlan routing on my switch
You will have the same issue. It's not pfSense causing this, it's using VLANs to connect VMs on the same computer. When you do that, all the traffic has to go out to the router or L3 switch and then back again over the same wire. This was demonstrated when you got better performance with a different interface.
-
@JKnott so what about using dedicated interfaces for each LAN? I would still have to segment on the switch using VLANS, but if I ran each LAN on it's own interface and enabled inter-vlan routing on the switch, would that yield better transfer speeds between VLANs? I would think not since it won't be traveling down the same wire.
-
You have to decide what it is you're trying to do. Are you really worried about the performance between VMs in the same computer? That's not the way multiple VMs are normally used, but as long as you do that, you will not get best performance and it doesn't make much difference whether pfsense or a L3 switch is used to route between the VLANs.
-
@JKnott I'm not worried about speed between the VMs. It's the speed between the VMs and the other physical devices on the LAN/WLAN.
-
Then you should be OK.
-
@JKnott cool, thanks for your insight. I'll experiment when I have some time to bring my network down and set everything up.