train_wreck
New Around Here
Hello all.
So me and the guys I work with have been learning about IPsec VPNs, and in particular we have purchased a number of different VPN routers for testing. Models used include Cisco RV042G & RV320, Ubiquiti EdgeRouter Lite, TP-Link TL-R600VPN, and Netgear FVS336Gs. We have noticed one commonality among all of them; we can set up a site-to-site VPN between 2 of them plugged directly into the same switch, and using iperf or FTP transfers across the tunnel we can usually get close to the speed that each device is rated to. When we take the same routers with same configurations and put them over an ISP (we've tried Comcast, Mediacom and AT&T so far), we never get close to the speed the ISP provides. In other words, we can set up a VPN between 2 Cisco RV042Gs on 100/20 Comcast connections, and all non-VPN traffic can transfer at ~20mbps, but the VPN traffic never really gets above 8-10mbps. If we take those same routers and plug them directly together again, we again see full speed (in particular, we have measured IPsec traffic between the RV042Gs to be around ~70-80mbps.) We have noticed that if we force NAT-T on the IPsec tunnels, we see dramatically improved performance, but some routers don't allow that. We have tried gradually decreasing MTUs on the WAN interfaces down to 1000, and also have tried lower MSS clamping, but both of those only made performance worse.
So why is there such a performance hit when going over ISPs? It feels like they are almost de-prioritizing ESP packets or something.....
So me and the guys I work with have been learning about IPsec VPNs, and in particular we have purchased a number of different VPN routers for testing. Models used include Cisco RV042G & RV320, Ubiquiti EdgeRouter Lite, TP-Link TL-R600VPN, and Netgear FVS336Gs. We have noticed one commonality among all of them; we can set up a site-to-site VPN between 2 of them plugged directly into the same switch, and using iperf or FTP transfers across the tunnel we can usually get close to the speed that each device is rated to. When we take the same routers with same configurations and put them over an ISP (we've tried Comcast, Mediacom and AT&T so far), we never get close to the speed the ISP provides. In other words, we can set up a VPN between 2 Cisco RV042Gs on 100/20 Comcast connections, and all non-VPN traffic can transfer at ~20mbps, but the VPN traffic never really gets above 8-10mbps. If we take those same routers and plug them directly together again, we again see full speed (in particular, we have measured IPsec traffic between the RV042Gs to be around ~70-80mbps.) We have noticed that if we force NAT-T on the IPsec tunnels, we see dramatically improved performance, but some routers don't allow that. We have tried gradually decreasing MTUs on the WAN interfaces down to 1000, and also have tried lower MSS clamping, but both of those only made performance worse.
So why is there such a performance hit when going over ISPs? It feels like they are almost de-prioritizing ESP packets or something.....