|
|
Subscribe / Log in / New account

LEDE-17.01 is coming

By Jonathan Corbet
February 13, 2017
For some years, OpenWrt has arguably been the most active router-oriented distribution. Things changed in May of last year, though, when a group of OpenWrt developers split off to form the competing LEDE project. While the LEDE developers have been busy, the project has yet to make its first release. That situation is about to change, though, as evidenced by the LEDE v17.01.0-rc1 release candidate, which came out on February 1.

Many of the changes made in LEDE since the 2015 OpenWrt "Chaos Calmer" release will not be immediately visible to most users. The core software has been updated, of course, including a move to the 4.4.42 kernel. There are a number of security-oriented enhancements, including a switch to SHA256 for package verification, the disabling of support for several old and insecure protocols, compilation with stack-overwrite detection, and more. There is support for a number of new devices. Perhaps the most anticipated new feature, though, is the improved smart queue management and the WiFi fairness work that has been done as part of the bufferbloat project. It has been clear for some time that WiFi should work far better than it does; the work that has found its way into the LEDE release candidate should be a significant step in that direction.

Your editor decided that it was time to give LEDE a try, but there was some shopping to be done first. Getting the full benefit from the bufferbloat and airtime fairness work requires the right chipset; most of this work has been done on the Atheros ath9k driver. So the first step was to go out and pick up a new router with ath9k wireless. That is where the things turned out to be harder than one might expect.

The LEDE web site has a table of hardware that can be used to obtain information about specific routers. The table does not, however, make it easy to find out which routers have the best support. Router vendors, naturally, tend not to be forthcoming about which chipsets they have used in their devices, and the LEDE site does not offer a way to find devices with suitable chipsets. Much of the information that does exist is actually hosted on the OpenWrt site, with the LEDE site simply pointing to it. In this regard, at least, LEDE may have split from OpenWrt, but it's still somewhat dependent on it.

A fair amount of time spent between the LEDE site and online retail sites failed to yield any helpful answers on which router to buy. Fortunately, many years of experience and a graduate degree have left your editor with an important bit of wisdom: when all else fails, ask the net. A quick discussion on Google+ yielded the suggestion that the TP-Link Archer C7 would be a good option. Shortly thereafter, a new router was sitting on your editor's desk, waiting to have its factory firmware unceremoniously blown away.

As it turns out, a bit of ceremony was required after all. The stock firmware on the Archer C7 has the endearing feature that it will refuse to flash a firmware file if that file's name has more than one period in it. The LEDE firmware file, as found on the "tech data page" for the C7, is named:

    lede-17.01.0-rc2-r3131-42f3c1f-ar71xx-generic-archer-c7-v2-squashfs-factory.bin

The router will not even try to flash that file until it has been renamed to something without all those periods. The LEDE page helpfully neglects to point out this little detail, but it can be found on the OpenWrt page for this router.

After that change, the router would recognize the firmware file, but still refused to flash it, giving instead a helpful "Error 18005" message. More time spent on the OpenWrt page quickly turned up the fact that TP-Link routers sold in the US will only flash firmware with a special US header. Looking in the LEDE download directory turned up a variant on the above file:

    lede-17.01.0-rc2-r3131-42f3c1f-ar71xx-generic-archer-c7-v2-squashfs-factory-us.bin

The LEDE "tech data" page links directly to the international version of the file, without even mentioning that there is a US-specific version (and, seemingly, versions specific to the European Union and Israel as well) that some users may want to grab instead. Once that file was downloaded and suitably renamed, the factory firmware finally consented to overwrite itself with the LEDE release candidate.

From that point on, things went relatively smoothly. Initial configuration of the router must be done via a wired connection, since LEDE leaves the wireless interfaces disabled by default. Turning them on is easy enough, as is most of the rest of the router configuration, especially if one is already used to the LuCI web interface. Somebody has spent some time cleaning up the look of LuCI but, underneath, it has not changed much from the OpenWrt version. The expected features (DNS, DHCP) work without trouble. Your editor's network connection includes native IPv6 and, as with OpenWrt, the LEDE router propagates that through to the local network automatically.

When the first release candidate came out, the Quick Start Guide suggested setting up smart queue management (SQM), pointing to yet another OpenWrt page for the details. That involved installing the luci-app-sqm package, and that operation failed, complaining about a checksum failure on the downloaded package. It appears that the LEDE repository ran out of space and was corrupted as a result. Things were eventually rebuilt and, a day or two later, the package installed without trouble.

Setting up SQM with LuCI requires filling in a form with the maximum upload and download speeds of one's network link. Once that is done, traffic shaping will be configured to avoid overrunning the link and filling [SQM configuration] buffers on either side of it. It appears to work; the DSLReports speed test reports a bufferbloat grade of "F" without SQM, and "A+" with it enabled. The cost is a few percent of maximum throughput, almost always a worthwhile price to pay for significantly improved latency.

This configuration will, of course, do bad things should the speed of the connection to the network change — something that does happen at times. Hopefully, someday, we can have debloated links without the need for this kind of manual configuration.

About one week after the -rc1 release, a second release candidate was made available. One of the visible changes in -rc2 is an upgrade to the 4.4.47 kernel. The process of downloading the new release candidate and flashing it (without the need to worry about periods in the name and such this time around) went smoothly, and the router came back up with its settings intact. User-installed packages (luci-app-sqm, for example) must be reinstalled, but their configuration is generally in place afterward and does not need to be recreated.

As with OpenWrt, LEDE does not readily support upgrading individual components; the opkg package manager can do it for packages other than the kernel, but it's not a common mode of operation. LEDE, like OpenWrt, has no structure in place for the tracking of security issues, the releasing of security updates, or notifying users of security problems. Given that the router sits in a critical spot at the center of the network, and given that many users tend to forget about their router once it works properly, this is a somewhat discouraging state of affairs. Hopefully somebody will eventually find the resources needed to solve this problem for the wider community, but that has not happened yet.

Another thing that has not happened yet is a reunification of LEDE and OpenWrt, despite the conversations that were happening at the end of last year. The split may have allowed LEDE to move more quickly than before, but it appears to have slowed OpenWrt significantly and it's not clear that LEDE has, so far, built up a large enough community to sustain a project of this scale in the long term. We need an active and vital router-distribution project, so the possibility that these projects may not thrive is discouraging.

But, then, perhaps that is an overly pessimistic impression that results from the inevitable chaos of setting up a new distribution project. Despite issues with documentation, web sites, and repositories, the actual software from LEDE appears to be solid as a rock. The new router is happily doing its job, and there is no chance that it will see its factory firmware reinstalled. The LEDE 17.01 release is shaping up to be another solid router distribution from the OpenWrt/LEDE community.


to post comments

LEDE-17.01 is coming

Posted Feb 13, 2017 21:08 UTC (Mon) by simcop2387 (subscriber, #101710) [Link] (4 responses)

Definitely going to be checking this out on my "spare" C7. There's some oddities with OpenWRT CC 15.05 that don't affect all users. The 5Ghz network gets split off from the lan/2.4Ghz network but only for broadcast packets. It's like isolation gets flipped on and you can't see any other machines (and they can't see you). I'm hoping the kernel upgrade fixes it.

LEDE-17.01 is coming

Posted Feb 13, 2017 21:38 UTC (Mon) by rknight (subscriber, #26792) [Link] (3 responses)

Actually LEDE-17.01-rc2 is now available https://lede-project.org/releases/17.01/notes-17.01.0-rc2

Ray

LEDE-17.01 is coming

Posted Feb 13, 2017 21:43 UTC (Mon) by simcop2387 (subscriber, #101710) [Link] (2 responses)

Yea the article mentions that, and that it's got the 4.4.47 kernel (as opposed to OWRT 15.05's 3.8.18). I'm hoping the ath10k driver has fixes (I'd be surprised if it doesn't) for the issue I described. As near as I could figure out that's where the problem lied.

LEDE-17.01 is coming

Posted Feb 16, 2017 7:57 UTC (Thu) by arnd (subscriber, #8866) [Link] (1 responses)

The wireless drivers are apparently backported from the latest kernel and updated independently from the rest of the kernel.
Not sure which exact version is in the lede-17.01-rc2, my guess is that it matches linux-4.10-rc1 plus cherry-picked bugfixes.

LEDE-17.01 is coming

Posted Feb 16, 2017 15:46 UTC (Thu) by bcopeland (subscriber, #51750) [Link]

The mac80211 makefile is here: https://github.com/lede-project/source/blob/master/packag...

That points to (as of right now): http://mirror2.openwrt.org/sources/compat-wireless-2017-0...

If you unpack that, the "versions" file shows that compat-wireless was generated from wt-2017-01-31-0-ge882dff19e7f. Because I happen to maintain that (but am otherwise not very involved with openwrt/lede), I know that one might find this tag in the wireless-testing tree over at http://git.kernel.org/cgit/linux/kernel/git/wireless/wire....

Wireless-testing is built near-daily as simply a merge of the most recent rc or release from Linus' tree plus wireless-drivers (bugfixes in current release), wireless-drivers-next (driver changes heading to -next), mac80211 and mac80211-next (wireless subsystem updates). Gory details at https://github.com/bcopeland/wt-tools/blob/master/wt-update.

All that to say that the drivers themselves are essentially a snapshot of what's in -next for wireless at the time that compat-wireless was generated.

LEDE-17.01 is coming

Posted Feb 14, 2017 2:26 UTC (Tue) by flussence (guest, #85566) [Link] (1 responses)

I wish I could run this on an edge router, but LEDE/OpenWRT seems to be perpetually lacking in modem drivers. The last time I successfully ran OpenWRT was on a DG834, which was unable to connect at ADSL2+ speeds and eventually replaced.

If my experience with winmodems back in the day is any indication, I'm probably better off holding my breath for something fibre-based to roll out than for drivers to appear.

LEDE-17.01 is coming

Posted Feb 14, 2017 6:04 UTC (Tue) by pabs (subscriber, #43278) [Link]

The Turris Omnia runs an OpenWRT derivative by default and has an SFP port. You can also run other Linux distros in LXC containers on it, or once u-boot/Linux mainline support appears, other full distros. Debian already partially supports it:

http://omnia.turris.cz/
https://wiki.debian.org/InstallingDebianOn/TurrisOmnia

LEDE-17.01 is coming

Posted Feb 14, 2017 6:01 UTC (Tue) by literfizzer (subscriber, #31274) [Link]

Upgraded my Buffalo WZR-HP-G300NH from OpenWRT 15.05.1 to LEDE 17.01-rc2. Previously the WAN maxed out at 136 Mb/s down; that jumped to 197 Mb/s after the upgrade. It's rare that software gets faster over time on aging hardware. Great job!

LEDE-17.01 is coming

Posted Feb 14, 2017 6:21 UTC (Tue) by pabs (subscriber, #43278) [Link] (1 responses)

The Turris Omnia runs another OpenWrt derivative and has automatic security updates:

http://omnia.turris.cz/

LEDE-17.01 is coming

Posted Feb 14, 2017 14:32 UTC (Tue) by anarcat (subscriber, #66354) [Link]

can you install Omnia on random hardware like the TP-Link mentioned in the article though? I thought their distro was specifically crafted for the Omnia router...

LEDE-17.01 is coming

Posted Feb 14, 2017 7:47 UTC (Tue) by steffen (subscriber, #23586) [Link] (2 responses)

> Hopefully, someday, we can have debloated links without the need for this kind of manual configuration.

This should be possible with Linux 4.9 and BBR (https://lwn.net/Articles/701165/), right?

LEDE-17.01 is coming

Posted Feb 20, 2017 1:36 UTC (Mon) by gdamjan (subscriber, #33634) [Link] (1 responses)

BRR is a TCP congestion control, so it does nothing on routers.

It can help on your pc/laptops though

LEDE-17.01 is coming

Posted Feb 23, 2017 0:08 UTC (Thu) by flussence (guest, #85566) [Link]

I believe the best practice as of kernel 4.9 is BBR + fq on endpoints, anything (preferably CDG) + fq-codel on routers. Or at least, that's how I've set mine up.

LEDE-17.01 is coming

Posted Feb 15, 2017 18:43 UTC (Wed) by rknight (subscriber, #26792) [Link] (1 responses)

LEDE-17.01 is coming

Posted Feb 15, 2017 23:59 UTC (Wed) by mtaht (subscriber, #11087) [Link]

In my ath9k/ath10k testing I have been using the ubnt uap-lite, (it's more of an interior gw - with only 8MB of flash there's no room for a gui - but it smokes the archer on 802.11ac), pcengines apu2 (for gbit fiber), and the venerated netgear wndr3800, all with good success.

At the moment my primary test platform is the archer c7v2, which is quite solid and a reasonable upgrade over the wndr3800.

SF's sonic fiber, while otherwise excellent, still had 50ms inherent buffering on the uplink, cut to *less than zero* under load with sqm.

http://www.taht.net/~d/sonic_106_cake_vs_default.png

(gpon req/release interaction)

I note my uses have evolved to put the high end home gw with "stuff" - on the gbit link with no wifi, and to mount an AP like the ubnt-lite as a bridge somewhere more central in the house. Where I am presently I can "hear" over 50 APs by the window.

LEDE-17.01 is coming

Posted Feb 25, 2017 16:36 UTC (Sat) by jch (guest, #51929) [Link]

I think the article failed to stress how much functionality LEDE (or OpenWRT) adds to an off-the-shelf router. I'm using it to avoid having a managed switch at home (I've got a weird device with inflexible VLAN configurations), and to avoid the need for a dedicated box to speak RIPng at work. That's at least a square meter of office space saved.

The LEDE list of packages is enlightening:

https://lede-project.org/packages/start


Copyright © 2017, Eklektix, Inc.
This article may be redistributed under the terms of the Creative Commons CC BY-SA 4.0 license
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds