René's URL Explorer Experiment


Title: net: intelligent backhaul selection, then optional selective sharing · Issue #360 · jangala-dev/devicecode-lua · GitHub

Open Graph Title: net: intelligent backhaul selection, then optional selective sharing · Issue #360 · jangala-dev/devicecode-lua

X Title: net: intelligent backhaul selection, then optional selective sharing · Issue #360 · jangala-dev/devicecode-lua

Description: Why v0.11.3 shares backhaul probabilistically: new connections are split across all uplinks using speed-test results. This has proved unreliable: Small tests: the tests have to be small to limit mobile data use, especially for internatio...

Open Graph Description: Why v0.11.3 shares backhaul probabilistically: new connections are split across all uplinks using speed-test results. This has proved unreliable: Small tests: the tests have to be small to limit mo...

X Description: Why v0.11.3 shares backhaul probabilistically: new connections are split across all uplinks using speed-test results. This has proved unreliable: Small tests: the tests have to be small to limit mo...

Opengraph URL: https://github.com/jangala-dev/devicecode-lua/issues/360

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"net: intelligent backhaul selection, then optional selective sharing","articleBody":"## Why\n\nv0.11.3 shares backhaul probabilistically: new connections are split across all uplinks using speed-test results. This has proved unreliable:\n- **Small tests:** the tests have to be small to limit mobile data use, especially for international partners.\n- **Bad startup results:** tests run while interfaces are still coming up can be badly wrong, and the resulting weights can persist for hours.\n\n#357 replaces this with fixed-priority failover (wired WAN, then modem 1, then modem 2), which a custom build has already shown to be more stable. But a fixed order ignores quality. For example, it will prefer an Ethernet uplink from a slow LTE router over a much faster internal 5G modem.\n\nThis issue tracks replacing fixed priorities with informed selection, and later reintroducing sharing only where it helps.\n\n## Stages\n\n### 1. Validate failure recovery on v0.12\nWith backhaul sharing, connections assigned to a modem could stay stuck after that modem reset, even with another working backhaul available. A possibly related fix is in v0.12 (#350, the cellular interface restart on reconnect).\n- Run sustained multi-connection downloads across the available backhauls.\n- Reset or disconnect a modem mid-transfer.\n- Record whether existing connections recover, reconnect or stay stuck, and how long new connections take to use a healthy backhaul.\n- Compare v0.11.3 and v0.12.\n- If connections still stick, look at conntrack/routing state for failed interfaces (selective cleanup). Sessions can't migrate between public IPs, so the aim is fast, reliable reconnection.\n\n### 2. Backhaul assessment\n- **Cellular** (no data cost):\n  - modem capability (LTE category, 5G, carrier aggregation);\n  - radio technology, band, bandwidth, CA;\n  - SNR / RSRQ / RSRP;\n  - latency and packet loss.\n\n  First check which of these are consistently available across the EG25-G, EM12-G and RM520N-GL.\n- **Ethernet:**\n  - lightweight connectivity/latency/loss monitoring;\n  - passive observation of real throughput;\n  - small threshold tests against self-hosted endpoints (controlled size and frequency, for Ethernet that is itself on metered cellular);\n  - public IP / ASN / gateway identification as context.\n- Each backhaul gets a health status, an estimated capacity or suitability score, and a **confidence**. A short Ethernet test can under-read, and a radio-based cellular estimate can over-read under congestion.\n- Validate the estimates against measured throughput.\n\n### 3. Intelligent failover\n- Select the most suitable available backhaul from estimated capacity, connectivity, latency/loss, confidence, data cost and configured preferences.\n- Never delay basic connectivity. At startup, or while estimates are unreliable, use the conservative default order from #357.\n- Filter radio measurements (median, then EWMA). Reassess on cell change. One poor startup measurement must not mark a link slow for long.\n- Switching:\n  - fast failover on failure;\n  - switch on significant, sustained degradation;\n  - stay put on a marginal improvement elsewhere;\n  - consider switching only on a substantial, sustained improvement (switching breaks existing TCP sessions).\n\n### 4. Validate\nCompare against the fixed-priority build and v0.11.3 sharing. Cover different radio conditions, Ethernet backhaul types, congestion and moving-vehicle installs. Measure reliability, user experience, selection choices and recovery time.\n\n### 5. Optional selective sharing\n- Share only between Ethernet and the best modem; the second modem stays on standby.\n- Share only when both links are capable enough and the extra capacity is worth it. Starting point to validate: both ≥ 10 Mbps, and the slower ≥ 25% of the faster. Also consider latency/loss, confidence, current demand and data cost.\n- Allocate new connections in proportion to estimated capacity from radio estimates, limited Ethernet tests and passive observation, not from small cellular speed tests.\n- A backhaul that falls below the threshold stops getting new connections; existing ones finish where they are.\n\n## Related\n- #357: strict failover, the baseline for this work.\n- #302: choppy connectivity mixing a fast WAN with a weak SIM.\n- #348: speed-test accuracy.\n- #356: mwan3 restarting uplinks offline.\n- #350: cellular interface restart on reconnect.\n","author":{"url":"https://github.com/cpunt","@type":"Person","name":"cpunt"},"datePublished":"2026-11-02T16:36:03Z","url":"https://github.com/jangala-dev/devicecode-lua/issues/360"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1eb5f294-bd1a-2076-0b90-43cd7c530378
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8826:2314F3:59E11:7C643:6AF8995F
html-safe-nonceef9803b1ae725b70b3ebb0fb7f2df01a7a249ab4ae4b9b21fd3f1438d5d278a1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODI2OjIzMTRGMzo1OUUxMTo3QzY0Mzo2QUY4OTk1RiIsInZpc2l0b3JfaWQiOiI1ODE4ODA5NTgyNjA3NzAyMzY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd92ddf29c33e79407bbc6025819f32e152d33bf671c077df6bce69578a3b1e81
hovercard-subject-tagissue:6166715797
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jangala-dev/devicecode-lua/360/issue_layout
twitter:imagehttps://opengraph.githubassets.com/25ca2af270f447fd05eff78a41f25d86f7e96dc502d89f13b7f1aefa687c0f43/jangala-dev/devicecode-lua/issues/360
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/25ca2af270f447fd05eff78a41f25d86f7e96dc502d89f13b7f1aefa687c0f43/jangala-dev/devicecode-lua/issues/360
og:image:altWhy v0.11.3 shares backhaul probabilistically: new connections are split across all uplinks using speed-test results. This has proved unreliable: Small tests: the tests have to be small to limit mo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecpunt
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/jangala-dev/devicecode-lua git https://github.com/jangala-dev/devicecode-lua.git
octolytics-dimension-user_id44901909
octolytics-dimension-user_loginjangala-dev
octolytics-dimension-repository_id814022112
octolytics-dimension-repository_nwojangala-dev/devicecode-lua
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id814022112
octolytics-dimension-repository_network_root_nwojangala-dev/devicecode-lua
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/jangala-dev/devicecode-lua/issues/360#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjangala-dev%2Fdevicecode-lua%2Fissues%2F360
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjangala-dev%2Fdevicecode-lua%2Fissues%2F360
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=jangala-dev%2Fdevicecode-lua
Reloadhttps://github.com/jangala-dev/devicecode-lua/issues/360
Reloadhttps://github.com/jangala-dev/devicecode-lua/issues/360
Reloadhttps://github.com/jangala-dev/devicecode-lua/issues/360
jangala-devhttps://github.com/jangala-dev
devicecode-luahttps://github.com/jangala-dev/devicecode-lua
Codehttps://github.com/jangala-dev/devicecode-lua
Issues23 (23)https://github.com/jangala-dev/devicecode-lua/issues
Pull requests2 (2)https://github.com/jangala-dev/devicecode-lua/pulls
Discussionshttps://github.com/jangala-dev/devicecode-lua/discussions
Actionshttps://github.com/jangala-dev/devicecode-lua/actions
Projectshttps://github.com/jangala-dev/devicecode-lua/projects
Security and qualityhttps://github.com/jangala-dev/devicecode-lua/security
Insightshttps://github.com/jangala-dev/devicecode-lua/pulse
https://github.com/jangala-dev/devicecode-lua
New issuehttps://github.com/login?return_to=https://github.com/jangala-dev/devicecode-lua/issues/360
New issuehttps://github.com/login?return_to=https://github.com/jangala-dev/devicecode-lua/issues/360
net: intelligent backhaul selection, then optional selective sharinghttps://github.com/jangala-dev/devicecode-lua/issues/360#top
0.13Targets the 0.13 releasehttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%220.13%22
enhancementNew feature or requesthttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22enhancement%22
priority: mediumMedium priorityhttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22priority%3A%20medium%22
https://github.com/cpunt
cpunthttps://github.com/cpunt
on Nov 2, 2026https://github.com/jangala-dev/devicecode-lua/issues/360#issue-6166715797
#357https://github.com/jangala-dev/devicecode-lua/issues/357
#350https://github.com/jangala-dev/devicecode-lua/pull/350
net: make SIM uplinks failover-only behind wired WAN (respect metric in live weights) #357https://github.com/jangala-dev/devicecode-lua/issues/357
net: make SIM uplinks failover-only behind wired WAN (respect metric in live weights) #357https://github.com/jangala-dev/devicecode-lua/issues/357
Connectivity is choppy when connected over a fast ETH WAN and a weak signal modem #302https://github.com/jangala-dev/devicecode-lua/issues/302
Fix low and duplicate startup speed tests #348https://github.com/jangala-dev/devicecode-lua/pull/348
net: mwan3 starts every uplink offline after each restart #356https://github.com/jangala-dev/devicecode-lua/issues/356
net: restart cellular interface when the modem reconnects #350https://github.com/jangala-dev/devicecode-lua/pull/350
cpunthttps://github.com/cpunt
enhancementNew feature or requesthttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Nov 2, 2026https://github.com/jangala-dev/devicecode-lua/issues/360#event-34931911812
https://github.com/cpunt
cpunthttps://github.com/cpunt
on Nov 9, 2026https://github.com/jangala-dev/devicecode-lua/issues/360#issuecomment-6747139979
net: keep clients online when every uplink looks dead #379https://github.com/jangala-dev/devicecode-lua/pull/379
cpunthttps://github.com/cpunt
0.13Targets the 0.13 releasehttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%220.13%22
priority: mediumMedium priorityhttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22priority%3A%20medium%22
on Nov 10, 2026https://github.com/jangala-dev/devicecode-lua/issues/360#event-35677868315
Sign up for freehttps://github.com/signup?return_to=https://github.com/jangala-dev/devicecode-lua/issues/360
Sign in to commenthttps://github.com/login?return_to=https://github.com/jangala-dev/devicecode-lua/issues/360
0.13Targets the 0.13 releasehttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%220.13%22
enhancementNew feature or requesthttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22enhancement%22
priority: mediumMedium priorityhttps://github.com/jangala-dev/devicecode-lua/issues?q=state%3Aopen%20label%3A%22priority%3A%20medium%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.