News for hackers. Stuff that matters.
Re:$55 board turns a Raspberry Pi CM4 into a router by no_time on Friday August 05, 2022 @06:53AM (#32354287)
>I wouldn’t recommend using USB.

I've heard this from networking wizards all the time during my internship but nobody actually explained whats wrong with usb to ethernet NICs

As the unfortunate owner of an intel NIC, USB ones where actually way more reliable.

Re:$55 board turns a Raspberry Pi CM4 into a router by locutous on Friday August 05, 2022 @08:34AM (#32355179)
USB NIC consumes more CPU. Also if you are trying to use pfSense or another *BSD based router, they don't support the USB NICs very well. I ran that setup for a bit and it was dropping packets left and right. After I switched to a Linux kernel all the issues disappeared. The problems are mostly software, not hardware.

Also, if you use a hypervisor and your router in a VM with USB pass through. The overhead on the CPU for USB pass through is significant. Better to PCI pass through the entire USB controller.

So, there are gotchas and pit falls but they are mostly manageable and avoidable with a bit of understanding.

I ran a pi4 + USB NIC as a router for years before switching to proxmox VM based router (still USB NICs). It was fine, the switch was rough until I figured out the issues.

Re:$55 board turns a Raspberry Pi CM4 into a router by infinet on Friday August 05, 2022 @08:49AM (#32355330)
I had similar experience. Passing a USB2 NIC to pfSense in VM. The performance was horrible.
Re:$55 board turns a Raspberry Pi CM4 into a router by evgen on Friday August 05, 2022 @07:08AM (#32354425)
What gave USB NICs a bad reputation in the SBC community is that before the RPi4 the USB bus was USB 2.0 (the RPi4 has a USB 3.0 bus) and this meant that the max speed was 480 MBps if the NIC consumed the entirety of the bus. A USB NIC would never be able to get to 1 Gbps speed no matter what might have been claimed.

With the RPi4 you have USB 3.0 on the main USB bus so the max bandwidth there is now 5 Gbps, but the next bottleneck to be faced is the PCIe x1 bus that is used to connect these CM4 modules to the third-party carrier boards. Now you are hitting a 4 Gbps limit.

Re:$55 board turns a Raspberry Pi CM4 into a router by suprjami on Friday August 05, 2022 @04:27PM (#32361592)
> As the unfortunate owner of an intel NIC

Odd comment. Intel are one of the best NIC vendors out there.

What was your specific device and problem?

Re:$55 board turns a Raspberry Pi CM4 into a router by no_time on Sunday August 07, 2022 @04:29AM (#32374880)
https://wccftech.com/intel-foxville-i225-v-2-5gbe-networking...

Hosting specific things (minecraft and smb in my case) has a chance of crashing it so hard only a power cycle fixes it.

It's hard to reproduce with smb but with MC I can reliably make it crash by spawning a couple hundred mobs in quick succession.

Re:$55 board turns a Raspberry Pi CM4 into a router by suprjami on Tuesday August 09, 2022 @05:07PM (#32404309)
At least there's an easy workaround - just use 1Gbps mode.