opnsense-update -kr 20.7.3-netmapreboot
pfSense 2.5.0Build_10-16-20 1500MTU receiving from WAN, vmx3 NICs, all hardware offloading disabled, default ruleset[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-60.00 sec 14.8 GBytes 2.12 Gbits/sec 550 sender[ 5] 0.00-60.00 sec 14.8 GBytes 2.12 Gbits/sec receiver
pfSense 2.4.5p1 1500MTU receiving from WAN, vmx3 NICs, all hardware offloading disabled, default ruleset[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-60.00 sec 29.4 GBytes 4.21 Gbits/sec 12054 sender[ 5] 0.00-60.00 sec 29.4 GBytes 4.21 Gbits/sec receiver
OpenWRT 19.07.3 1500MTU receiving from WAN, vmx3 NICs, default ruleset[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-60.00 sec 44.1 GBytes 6.31 Gbits/sec 40490 sender[ 5] 0.00-60.00 sec 44.1 GBytes 6.31 Gbits/sec receiver
OPNsense 20.7.3 1500MTU receiving from WAN, vmx3 NICs, all hardware offloading disabled, default ruleset[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-60.00 sec 5.39 GBytes 771 Mbits/sec 362 sender[ 5] 0.00-60.00 sec 5.39 GBytes 771 Mbits/sec receiver
OPNsense 20.7.3(netflow disabled) 1500MTU receiving from WAN, vmx3 NICs, all hardware offloading disabled, default ruleset[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-60.00 sec 6.66 GBytes 953 Mbits/sec 561 sender[ 5] 0.00-60.00 sec 6.66 GBytes 953 Mbits/sec receiver
OPNsense 20.7.3(netmap kernel) 1500MTU receiving from WAN, vmx3 NICs, all hardware offloading disabled, default ruleset[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-60.00 sec 5.35 GBytes 766 Mbits/sec 434 sender[ 5] 0.00-60.00 sec 5.35 GBytes 766 Mbits/sec receiver
OPNsense 20.7.3(netmap kernel, netflow disabled) 1500MTU receiving from WAN, vmx3 NICs, all hardware offloading disabled, default ruleset[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-60.00 sec 6.55 GBytes 937 Mbits/sec 399 sender[ 5] 0.00-60.00 sec 6.55 GBytes 937 Mbits/sec receiver
Lenovo 10T700AHMH desktop6 CPUs x Intel(R) Core(TM) i5-9500T CPU @ 2.20GHz8GB Memory|- OPNsense vm, 2 vcores|- kali1, 1 vcore|- kali2, 1 vcore
ethernetX.virtualDev = "vmxnet3"
[kali1, client] --- vswitch1 --- [OPNsense] --- vswitch2 --- [kali2, server]192.168.1.100/24 - 192.168.1.1/24,192.168.2.1/24 - 192.168.2.100/24
# iperf3 -c 192.168.2.100 -t 10000Connecting to host 192.168.2.100, port 5201[ 5] local 192.168.2.101 port 55240 connected to 192.168.2.100 port 5201[ ID] Interval Transfer Bitrate Retr Cwnd[ 5] 0.00-1.00 sec 3.34 GBytes 28.7 Gbits/sec 0 1.91 MBytes [ 5] 1.00-2.00 sec 5.03 GBytes 43.2 Gbits/sec 0 2.93 MBytes [ 5] 2.00-3.00 sec 5.24 GBytes 45.0 Gbits/sec 0 3.08 MBytes [ 5] 3.00-4.00 sec 5.18 GBytes 44.5 Gbits/sec 0 3.08 MBytes [ 5] 4.00-5.00 sec 5.23 GBytes 45.0 Gbits/sec 0 3.08 MBytes
# ethtool -K eth0 lro off# ethtool -K eth0 tso off# ethtool -K eth0 rx off# ethtool -K eth0 tx off# ethtool -K eth0 sg off
# iperf3 -c 192.168.2.100 -t 10000Connecting to host 192.168.2.100, port 5201[ 5] local 192.168.2.101 port 55274 connected to 192.168.2.100 port 5201[ ID] Interval Transfer Bitrate Retr Cwnd[ 5] 0.00-1.00 sec 1.20 GBytes 10.3 Gbits/sec 0 458 KBytes [ 5] 1.00-2.00 sec 1.30 GBytes 11.2 Gbits/sec 0 1007 KBytes [ 5] 2.00-3.00 sec 1.30 GBytes 11.1 Gbits/sec 0 1.18 MBytes [ 5] 3.00-4.00 sec 1.29 GBytes 11.1 Gbits/sec 0 1.24 MBytes [ 5] 4.00-5.00 sec 1.30 GBytes 11.2 Gbits/sec 0 1.37 MBytes [ 5] 5.00-6.00 sec 1.31 GBytes 11.2 Gbits/sec 0 1.43 MBytes [ 5] 6.00-7.00 sec 1.30 GBytes 11.2 Gbits/sec 0 1.51 MBytes
# iperf3 -c 192.168.2.100 -t 10000Connecting to host 192.168.2.100, port 5201[ 5] local 192.168.1.100 port 54870 connected to 192.168.2.100 port 5201[ ID] Interval Transfer Bitrate Retr Cwnd[ 5] 0.00-1.00 sec 280 MBytes 2.35 Gbits/sec 59 393 KBytes [ 5] 1.00-2.00 sec 281 MBytes 2.35 Gbits/sec 33 383 KBytes [ 5] 2.00-3.00 sec 279 MBytes 2.34 Gbits/sec 60 379 KBytes [ 5] 3.00-4.00 sec 275 MBytes 2.31 Gbits/sec 46 380 KBytes [ 5] 4.00-5.00 sec 276 MBytes 2.32 Gbits/sec 31 387 KBytes
The vmx driver supports multiple transmit and receive queues. Multiplequeues are only supported by certain VMware products, such as ESXi. Thenumber of queues allocated depends on the presence of MSI-X, the numberof configured CPUs, and the tunables listed below. FreeBSD does notenable MSI-X support on VMware by default. Thehw.pci.honor_msi_blacklist tunable must be disabled to enable MSI-Xsupport.
# iperf3 -c 192.168.2.100 Connecting to host 192.168.2.100, port 5201[ 5] local 192.168.1.100 port 54878 connected to 192.168.2.100 port 5201[ ID] Interval Transfer Bitrate Retr Cwnd[ 5] 0.00-1.00 sec 350 MBytes 2.93 Gbits/sec 589 304 KBytes [ 5] 1.00-2.00 sec 342 MBytes 2.87 Gbits/sec 378 337 KBytes [ 5] 2.00-3.00 sec 342 MBytes 2.87 Gbits/sec 324 298 KBytes [ 5] 3.00-4.00 sec 343 MBytes 2.88 Gbits/sec 292 301 KBytes [ 5] 4.00-5.00 sec 345 MBytes 2.89 Gbits/sec 337 307 KBytes [ 5] 5.00-6.00 sec 341 MBytes 2.86 Gbits/sec 266 301 KBytes [ 5] 6.00-7.00 sec 341 MBytes 2.86 Gbits/sec 301 311 KBytes
# iperf3 -c 192.168.2.100 -P 2 -t 10000Connecting to host 192.168.2.100, port 5201[ 5] local 192.168.1.100 port 54952 connected to 192.168.2.100 port 5201[ 7] local 192.168.1.100 port 54954 connected to 192.168.2.100 port 5201[ ID] Interval Transfer Bitrate Retr Cwnd[ 5] 0.00-1.00 sec 261 MBytes 2.19 Gbits/sec 176 281 KBytes [ 7] 0.00-1.00 sec 245 MBytes 2.05 Gbits/sec 136 342 KBytes [SUM] 0.00-1.00 sec 506 MBytes 4.24 Gbits/sec 312 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 1.00-2.00 sec 302 MBytes 2.54 Gbits/sec 57 281 KBytes [ 7] 1.00-2.00 sec 208 MBytes 1.74 Gbits/sec 25 375 KBytes [SUM] 1.00-2.00 sec 510 MBytes 4.28 Gbits/sec 82 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 2.00-3.00 sec 304 MBytes 2.55 Gbits/sec 45 284 KBytes [ 7] 2.00-3.00 sec 210 MBytes 1.76 Gbits/sec 9 392 KBytes [SUM] 2.00-3.00 sec 514 MBytes 4.31 Gbits/sec 54 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 3.00-4.00 sec 304 MBytes 2.55 Gbits/sec 39 386 KBytes [ 7] 3.00-4.00 sec 209 MBytes 1.75 Gbits/sec 15 331 KBytes [SUM] 3.00-4.00 sec 512 MBytes 4.30 Gbits/sec 54 ^C- - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 4.00-4.95 sec 288 MBytes 2.54 Gbits/sec 39 287 KBytes [ 7] 4.00-4.95 sec 198 MBytes 1.74 Gbits/sec 23 325 KBytes [SUM] 4.00-4.95 sec 485 MBytes 4.28 Gbits/sec 62 Which is already way better, more sessions don't seem to impact my setup as far as I could see, but that could also be caused by the number of queues confiure (2, see dmesg | grep vmx). In the new iflib world I wasn't able to increase that number, so I'll leave it at that.Just for fun, I disabled pf (pfctl -d) to get a bit of insights about how the firewall impacts our performance, the details of that test are shown below (just for reference)[code]# iperf3 -c 192.168.2.100 -P 2 -t 10000Connecting to host 192.168.2.100, port 5201[ 5] local 192.168.1.100 port 55038 connected to 192.168.2.100 port 5201[ 7] local 192.168.1.100 port 55040 connected to 192.168.2.100 port 5201[ ID] Interval Transfer Bitrate Retr Cwnd[ 5] 0.00-1.00 sec 300 MBytes 2.51 Gbits/sec 0 888 KBytes [ 7] 0.00-1.00 sec 302 MBytes 2.53 Gbits/sec 69 2.18 MBytes [SUM] 0.00-1.00 sec 601 MBytes 5.04 Gbits/sec 69 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 1.00-2.00 sec 335 MBytes 2.81 Gbits/sec 167 904 KBytes [ 7] 1.00-2.00 sec 342 MBytes 2.87 Gbits/sec 536 1.67 MBytes [SUM] 1.00-2.00 sec 678 MBytes 5.68 Gbits/sec 703 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 2.00-3.00 sec 335 MBytes 2.81 Gbits/sec 0 1.12 MBytes [ 7] 2.00-3.00 sec 342 MBytes 2.87 Gbits/sec 0 1.81 MBytes [SUM] 2.00-3.00 sec 678 MBytes 5.68 Gbits/sec 0 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 3.00-4.00 sec 332 MBytes 2.79 Gbits/sec 280 1.04 MBytes [ 7] 3.00-4.00 sec 344 MBytes 2.88 Gbits/sec 482 1.44 MBytes [SUM] 3.00-4.00 sec 676 MBytes 5.67 Gbits/sec 762 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 4.00-5.00 sec 332 MBytes 2.79 Gbits/sec 206 1017 KBytes [ 7] 4.00-5.00 sec 338 MBytes 2.83 Gbits/sec 292 1.22 MBytes [SUM] 4.00-5.00 sec 670 MBytes 5.62 Gbits/sec 498 - - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 5.00-6.00 sec 331 MBytes 2.78 Gbits/sec 0 1.21 MBytes [ 7] 5.00-6.00 sec 339 MBytes 2.84 Gbits/sec 0 1.40 MBytes [SUM] 5.00-6.00 sec 670 MBytes 5.62 Gbits/sec 0 ^C- - - - - - - - - - - - - - - - - - - - - - - - -[ 5] 6.00-6.60 sec 199 MBytes 2.78 Gbits/sec 0 1.32 MBytes [ 7] 6.00-6.60 sec 202 MBytes 2.83 Gbits/sec 0 1.50 MBytes [SUM] 6.00-6.60 sec 401 MBytes 5.61 Gbits/sec 0 - - - - - - - - - - - - - - - - - - - - - - - - -
But 45 gbit/s???
The clients atached are simple kali linux installs, both using their own vSwitch, so traffic is measured from kali 1 to kali 2
Quote from: Supermule on October 18, 2020, 04:36:04 pmBut 45 gbit/s???Quote from: AdSchellevis on October 17, 2020, 04:17:10 pmThe clients atached are simple kali linux installs, both using their own vSwitch, so traffic is measured from kali 1 to kali 2