BPI-R4 won't route more than 3Gbps

Hello,
I noticed that my bpi-R4 won’t route more than 3Gbps between the 2 SFP ports.
When wired together, my PC and my server can exchange at about 10Gbps but with the R4 in between it won’t exceed 3Gbps, with my PC plugged on the SFP Lan port and my server on the SFP Wan.
The R4 run the latest Openwrt Snapshot r29765-3d6e1a3c9d

Is it software fixable or if that a flaw of the BPI-R4 ?

Here are my measurements
With the R4 as iperf3 server:

With the R4 as iperf3 client:

Tests between my PC and my server:

Hi,

For best performance, you need to enable Hardware flow offloading in “Network → Firewall” and/or try differents settings for “Packets Steering” in “Network → Interfaces → Global network options”.

Thank you for your reply,

I’ve just tested every combinations and, the flow offloading doesn’t change anything but the when disabling packet steering i can reach 4Gbps which is better but still far from 10Gbps

If the two SFP ports are in the same bridge, you also need to install the “bridger” package.

1 Like

Perfect now i have my 10 gigs, thank you very much

For now they are on the same bridge but I’ll soon get fiber at home and will use sfp wan for internet connection so they won’t be on the same bridge anymore, will i be able to get the 10 gigs or can it only be achieved on the same bridge ?

With NAT and firewall rules, I don’t think it’s possible for now. But maybe I’m wrong…

For nat there is hw-nat via flow offloading. For routing there is ppe. I can’t test this due to less 10g devices/sfp,but basicly it can be possible with r4.

It basically does 10gbit ipv4 NAT in hardware (never bothered to test v6). ‘Basically’ because my local network taps out at about 7gbit (best I can do is 3 2.5gbit streams) but it is NOT limited by the R4 or my ISP. CPU load is also imperceptible, BTW.

turn on hw-offload. while traffic is running, check the CPU usage on the PI. You should not see any meaningful cpu usage, that means the offload is working and you should get 10G

Hello,

as I find this thread, I would like add notice to my results made on debian with rsslro enabled. As I am not able to test your configuration because of missing the second pc with sfp, it could be still interesting as there is also per core cpu usage with htop. Only performance to/from SFP port was tested, without routing and re-transmitting data to/from the other sfp port, and it looks like there are some performance limits anyway. Could you be able to do similar test with Openwrt? I never use it and do not know its capabilities…

[BPI-R4] SFP rss/lro performance

How to enable hw-offload? Does it work on openwrt 24.10.2?

RSS/LRO is only for ending traffic,routed traffic is handled by PPE if enabled and flow offload

Thanks a lot for clarification, now I understand, that the test results are not comparable.