Network interface limit
- 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
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?
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
Deus ex Machina
- 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
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.
Look into the dmesg output when you connect 19th device to find possible root causes.
- 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
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?
But I'm curious - what are you doing with so many modems?
- 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
Thank you, will try to dig up that thread!
I create mobile 4g/5g proxies.

--
Deus ex Machina
Deus ex Machina
- 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
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.
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
Deus ex Machina
- 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
It may be worth it to try older images with older kernels (especially 3.x), since it comes directly from Samsung.
- 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
I will document my progress here.
I've managed to bypass this error
By simply using USB2 instead of USB3 port on XU4.
It seems that another limit can be hit:
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:
in /etc/sysctl.conf
I've managed to bypass this error
Code: Select all
Not enough host controller resources for new device state.
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
so to do so, I've updated:
Code: Select all
net.ipv4.igmp_max_memberships = 50
--
Deus ex Machina
Deus ex Machina
- 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
But usb2 limits your throughput severely. With 40 modems you'd get 12Mbps max per modem.
- 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
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
Deus ex Machina
Who is online
Users browsing this forum: No registered users and 3 guests