Hi,
I did some performance test with ipv6 using an old router. Here's some result from iperf:
ipv6 over bridged wan - lan (bridged, full sirq)
Accepted connection from fe80::4d5:5a31:4769:eb39, port 49843
[ 5] local fe80::3d70:2aa5:2ab7:3a92 port 5201 connected to fe80::4d5:5a31:4769:eb39 port 49844
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 104 MBytes 873 Mbits/sec
[ 5] 1.00-2.00 sec 111 MBytes 928 Mbits/sec
[ 5] 2.00-3.00 sec 110 MBytes 920 Mbits/sec
[ 5] 3.00-4.00 sec 111 MBytes 928 Mbits/sec
[ 5] 4.00-5.00 sec 110 MBytes 922 Mbits/sec
[ 5] 5.00-6.00 sec 110 MBytes 924 Mbits/sec
[ 5] 6.00-7.00 sec 110 MBytes 921 Mbits/sec
[ 5] 7.00-8.00 sec 111 MBytes 928 Mbits/sec
[ 5] 8.00-9.00 sec 110 MBytes 921 Mbits/sec
[ 5] 9.00-10.00 sec 109 MBytes 918 Mbits/sec
[ 5] 10.00-10.05 sec 5.49 MBytes 924 Mbits/sec
ipv6 over wan - lan (not bridged, full sirq). This is roughly the same as ipv4 over wan-lan with NAT.
Accepted connection from 2001:db80::1, port 49928
[ 5] local 2001:db80:1::3a92 port 5201 connected to 2001:db80::1 port 49929
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 26.0 MBytes 218 Mbits/sec
[ 5] 1.00-2.00 sec 27.5 MBytes 230 Mbits/sec
[ 5] 2.00-3.00 sec 27.6 MBytes 232 Mbits/sec
[ 5] 3.00-4.00 sec 27.4 MBytes 230 Mbits/sec
[ 5] 4.00-5.00 sec 27.6 MBytes 231 Mbits/sec
[ 5] 5.00-6.00 sec 27.4 MBytes 230 Mbits/sec
[ 5] 6.00-7.00 sec 27.6 MBytes 231 Mbits/sec
[ 5] 7.00-8.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 8.00-9.00 sec 27.5 MBytes 231 Mbits/sec
[ 5] 9.00-10.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 10.00-10.06 sec 1.78 MBytes 232 Mbits/sec
There is no NAT at play here - I've also tried disabling firewall which made little difference to the iperf result.
Question: What linux stack is involved in a non-bridged wan-lan interface over bridged wan-lan interface? Given that there's no work needed for NAT (among other things that ipv6 stops doing compared to ipv4, which in principal should be less demanding of the hardware processing power), why is it still as slow as the ipv4 + nat performance? Is there a way enable bridged wan-lan performance over ipv6?
side note: I am pretty sure in the bridged wan-lan configuration, data were still flowing through the cpu as can be seen in the full sirq. When both iperf server and client are connected to lan, the cpu has no usage indicating everything were offloaded to hardware switch chip before the traffic even hits the cpu.
(Last edited by kyzhk on 6 Sep 2017, 04:06)