Raspberry Pi 4 Official - Slow WAN

Hey Guys.

Finally took the plunge and converted one of my Pis to a OpenWRT Router.

I’ve got an USB3 - USB to Ethernet based on a Realtek Chipset for WAN. And Built in Ethernet for LAN.

It’s all working well but the performance of the WAN is around 220-240 Mb/s vs 940+- Mb/s if I hit the ISP ONT directly and bypass the Pi

I know the pi4 is more than capable of gigabit Ethernet. Can one one provide some guidance. I suspect the old driver that ships for the Realtek chipset is to blame since it only seems to connect at 480mbs(USB2.0) but the actual device is on the USB 3.0 hub. And is a USB 3.0 device. Was tested prior on other OSs.

Here's some output from OpenWRT


[ 1090.370910] usb 1-1.2: USB disconnect, device number 5

[ 1106.510098] usb 1-1.1: new high-speed USB device number 6 using xhci_hcd

[ 1106.615182] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00

[ 1106.623560] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6

[ 1106.630892] usb 1-1.1: Product: USB 10/100/1000 LAN

[ 1106.635785] usb 1-1.1: Manufacturer: Realtek

[ 1106.640068] usb 1-1.1: SerialNumber: 000001

[ 1106.726407] usb 1-1.1: reset high-speed USB device number 6 using xhci_hcd

[ 1106.867092] r8152 1-1.1:1.0 eth1: v1.10.11

[ 1110.833472] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

[ 1110.840210] r8152 1-1.1:1.0 eth1: carrier on

[ 1214.300303] bcmgenet fd580000.ethernet eth0: Link is Down

[ 1214.306086] br-lan: port 1(eth0) entered disabled state

[ 1243.996965] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

[ 1244.005214] br-lan: port 1(eth0) entered blocking state

[ 1244.010457] br-lan: port 1(eth0) entered forwarding state

root@OpenWrt:~# cat /sys/kernel/debug/usb/devices | grep -C13 r8152
P:  Vendor=2109 ProdID=3431 Rev= 4.21
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  6 Spd=480  MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  2
P:  Vendor=0bda ProdID=8153 Rev=30.00
S:  Manufacturer=Realtek
S:  Product=USB 10/100/1000 LAN
S:  SerialNumber=000001
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=350mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=r8152
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=16ms
C:  #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=350mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=
E:  Ad=83(I) Atr=03(Int.) MxPS=  16 Ivl=16ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=
I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
```Preformatted text

Bus 002 Device 001: ID 1d6b:0003 Linux 5.4.143 xhci-hcd xHCI Host Controller

Bus 001 Device 006: ID 0bda:8153 Realtek USB 10/100/1000 LAN

Bus 001 Device 002: ID 2109:3431 USB2.0 Hub

Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.143 xhci-hcd xHCI Host Controller

What bugs me, is the USB 2.0 Hub connection, even though its on a USB 3 Port on the Pi, and the Device itself is definitely a USB 3.0 Device,

I see there is a far more recent driver available for the chipset, but I'm not too sure how to go about patching or compiling it for the Pi

What is the output of:

ubus call system board
root@OpenWrt:~# ubus call system board
{
	"kernel": "5.4.143",
	"hostname": "OpenWrt",
	"system": "ARMv8 Processor rev 3",
	"model": "Raspberry Pi 4 Model B Rev 1.1",
	"board_name": "raspberrypi,4-model-b",
	"release": {
		"distribution": "OpenWrt",
		"version": "21.02.0",
		"revision": "r16279-5cc0535800",
		"target": "bcm27xx/bcm2711",
		"description": "OpenWrt 21.02.0 r16279-5cc0535800"
	}
}

You have newer version than I have. Could you give it a try and test with wulfy's image?

1 Like

looks like a faulty or poorly detected hub/cable or something... ( brand? model? )

lsusb -t
dmesg | grep -C3 usb

IMG-0629

Some pics of the device

IMG-0630

Hi Wulfy

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M
        |__ Port 2: Dev 9, If 0, Class=, Driver=r8152, 480M

[43084.135834] usb 1-1.2: new high-speed USB device number 9 using xhci_hcd
[43084.241061] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[43084.249443] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[43084.256782] usb 1-1.2: Product: USB 10/100/1000 LAN
[43084.261667] usb 1-1.2: Manufacturer: Realtek
[43084.265935] usb 1-1.2: SerialNumber: 000001
[43084.352169] usb 1-1.2: reset high-speed USB device number 9 using xhci_hcd
[43084.492800] r8152 1-1.2:1.0 eth1: v1.10.11
[43091.947878] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[43091.954874] r8152 1-1.2:1.0 eth1: carrier on
1 Like

Already tried his awesome image, but still the same, could the chipset be 1gbps capable, and the branding and everything say USB3, but the Hub is actually 2.0? Aka Chinese knockoff?

try without the hub... ( nic direct to the blue usb3.0 ports or an alternative hub )

Hi Wulfy

The device doesn't have a hub? it just plugs straight into the Blue PI ports?

As an alternative, we have the following available in my country that I can potentially get

The TP-Link U300 and the ORICO UTJ-U3 - just not sure what is supported nicely by OpenWRT and also what would handle GB wan.

??? you've mentioned a hub 2 or 3 times...

Sorry - I meant to say - based on the stats from Linux, its connecting on the USB 2.0 Controller, not HUB :frowning: My bad.

1 Like

but you say it works as usb 3.0 in a normal PC right? (are you 100% sure?)

tag cloud (shame dude deleted half his posts)

Thats the thing, I'm pretty sure when I bought this, which was about a year ago, it was working - But to be honest I don't recall checking that it connects over the USB 3.0 controllers,

What I see now - plugging it into my Mac - the System Report shows Max Speed - 480mb... So I'm guessing I was taken for a ride and bought a USB2.0 device even though the colours and the branding and product page said 3.0?

Hence me now asking about the TP-Link U300 and the ORICO UTJ-U3 - just not sure what is supported nicely by OpenWRT and also what would handle GB wan.

1 Like

Our local provider has the Orico in stock, - the TP link would have to be ordered, so I'm not sure which one will work properly, can you @anon50098793 - Maybe advise?

appears to be asix... go with the tp-link it's a known entity... (or wait to see if anyone here is running the orico)

there is nothing 'wrong' with asix (actually for non-openwrt use it has some advantages)... but over 600mb/s many users have reported better performance with rtl8153 chips... and they generally run cooler
2 Likes

Appreciate your time - Thank you. Will do so.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.