Network interface limit

Post Reply
User avatar
luckyjay
Posts: 5
Joined: Fri Dec 30, 2022 7:52 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Network interface limit

Post by luckyjay »

Hi guys, just joined the forums. Absolutely love your products, already have many XU4 and NL2 devices, wonderful hardware!

I have an issue with XU4, when connecting more than 20 external internet modems using an externally powered USB hub(Orico, 30 slots), the system allows only 18 devices to be connected. The output of lsusb shows that all hub ports are recognized but the system itself seems to limit allowing more network interfaces to be created.

The same hardware connected to Debian laptop works just fine and all modems are recognized as internet modems and connect fine so I only assume that XU4 has some sort of limitation per how many devices can be connected as external modems?

How could I avoid this limit or what information I should provide to help debug this issue?
--
Deus ex Machina

User avatar
odroid
Site Admin
Posts: 40517
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2998 times
Been thanked: 1662 times
Contact:

Re: Network interface limit

Post by odroid »

It seems to be a limitation of the number of USB endpoints in the SoC root hub.
Look into the dmesg output when you connect 19th device to find possible root causes.
These users thanked the author odroid for the post:
luckyjay (Tue Jan 03, 2023 10:45 am)

User avatar
mad_ady
Posts: 11188
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1053 times
Contact:

Re: Network interface limit

Post by mad_ady »

A few years ago there was a thread about working with 128 usb-uart adapters, on xu4, if I recall correctly. Not sure if a mainline kernel would help...

But I'm curious - what are you doing with so many modems?
These users thanked the author mad_ady for the post:
luckyjay (Wed Jan 04, 2023 9:29 am)

User avatar
luckyjay
Posts: 5
Joined: Fri Dec 30, 2022 7:52 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Network interface limit

Post by luckyjay »

mad_ady wrote:
Tue Jan 03, 2023 9:10 pm
A few years ago there was a thread about working with 128 usb-uart adapters, on xu4, if I recall correctly. Not sure if a mainline kernel would help...

But I'm curious - what are you doing with so many modems?
Thank you, will try to dig up that thread!

I create mobile 4g/5g proxies. :)
--
Deus ex Machina

User avatar
luckyjay
Posts: 5
Joined: Fri Dec 30, 2022 7:52 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Network interface limit

Post by luckyjay »

I get this error message:

usb 3-1.2.3.2.2: Not enough host controller resources for new device state.
usb 3-1.2.3.2.2: can't set config #1, error -12

Does this mean that XU4 cannot support more than 20 USB devices?

A quick search around here told me to check if something changes when using USB 2 instead of USB 3 ports. Will try that.
--
Deus ex Machina

User avatar
mad_ady
Posts: 11188
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1053 times
Contact:

Re: Network interface limit

Post by mad_ady »

It may be worth it to try older images with older kernels (especially 3.x), since it comes directly from Samsung.
These users thanked the author mad_ady for the post:
luckyjay (Thu Jan 19, 2023 10:17 pm)

User avatar
luckyjay
Posts: 5
Joined: Fri Dec 30, 2022 7:52 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Network interface limit

Post by luckyjay »

I will document my progress here.

I've managed to bypass this error

Code: Select all

Not enough host controller resources for new device state.
By simply using USB2 instead of USB3 port on XU4.

It seems that another limit can be hit:

Code: Select all

avahi-daemon[487]: IP_ADD_MEMBERSHIP failed: No buffer space available

Code: Select all

cat /proc/sys/net/ipv4/igmp_max_memberships
Gives me 20, which is too low as I would like to be able to support at least 40 USB modems per box.

so to do so, I've updated:

Code: Select all

net.ipv4.igmp_max_memberships = 50
in /etc/sysctl.conf
These users thanked the author luckyjay for the post:
odroid (Fri Jan 20, 2023 9:23 am)
--
Deus ex Machina

User avatar
mad_ady
Posts: 11188
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1053 times
Contact:

Re: Network interface limit

Post by mad_ady »

But usb2 limits your throughput severely. With 40 modems you'd get 12Mbps max per modem.

User avatar
luckyjay
Posts: 5
Joined: Fri Dec 30, 2022 7:52 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Network interface limit

Post by luckyjay »

mad_ady wrote:
Fri Jan 20, 2023 2:04 pm
But usb2 limits your throughput severely. With 40 modems you'd get 12Mbps max per modem.
True, but only if all modems are used on max at the same time which very rarely is the case.

Of course, I would be happy to use USB3, can you suggest a solution for this? I seem to be failing to find one.
--
Deus ex Machina

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 3 guests