projectbuendia / buendia

Main project repository (see the Wiki for details)
Apache License 2.0
117 stars 36 forks source link

Refactor networking configuration and disable Wi-Fi power management #218

Closed schuyler closed 5 years ago

schuyler commented 5 years ago

This PR refactors config.d/10-networking to remove some cruft and improve flexibility.

In particular, don't just assume that we always have a Wi-Fi interface. If we do, then treat it as the main interface for talking to clients, and treat the ethernet as a possible backhaul connection. If we don't, then treat the ethernet connection as the main interface for talking to clients.

This changes makes it easier to disable Wi-Fi power management, which has been causing local network ping times to the wireless interface on the NUC to go up to 100-500ms. With this change, ping times to the NUC tend to be under 10ms, and rarely go higher than 50ms.

schuyler commented 5 years ago

Note: the network ping times are still somewhat flaky with this change... I would expect that ping times on a local network would never get above 10ms, ever. So there may still be some tuning that we want to do even after this.