Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Slightly on topic, I have been experiencing packet loss in a game that I'd not had for years. Seemingly at the same time my powerline adapters have been disconnecting.

It's extremely hard (I've found it) to identify if packet loss is a problem in your house, or with the service you're using. Also, if you don't have a baseline for how your network normally operates, everything looks like a nail when you go digging.

I was having packet loss problems every 5 seconds in a particular game where it would spike up to around 15% then recover. I ran a ping plot to the router at 0.1x per second and had absolutely no packet loss. So is it me or is it the game server.



I just wanted to say that I've been experiencing the same issue, I'm not sure if it's packet loss or just high latency spikes but I notice it while playing a game (in my case the game is Old School Runescape). I've tried switching ISP but that didn't really fix the problem, I get latency problems using both ethernet (via powerline adapter) and WiFi. I think the next thing to try would be to switch to a different router/modem (I'm currently using the ISP provided one). If you ever figure out your problem let me know what your solution was.

Others that play the same game don't seem to experience the lag spikes as badly as I do, but I'm not sure whether they just get routed differently or if the problem is in my house or close to my house :(


Is there, by any chance, a MacOS-based machine running in your network?



That's almost certainly it.

I was having exactly the problem GP described a few years ago, and this was the fix.

It just about drove me nuts. It got to the point where I replaced my AP, started dragging a 10 meter ethernet cable around my house for my laptop, and started to suspect esoteric things like the local airport weather radar triggering DFS[^1].

In the end, it just turned out to be the damn Location Services.

[1]: https://en.wikipedia.org/wiki/Dynamic_frequency_selection


If this is the case I could kiss all of you. I will try tonight!

I even went down the path of buying new powerline adapters only to have the same problem. I was unplugging things in the house and factory resetting everything. I've felt like I was going to crazy lengths to troubleshoot.

As a temporary measure, am I able to simply switch off the WiFi on those Mac devices before running those commands, to test?


You should only need to turn it off on the devices you're running the tests on.

I should have conditioned my previous comment with "if this is happening on an Apple device". In case it helps, I described what's happening under-the-hood in another comment: https://news.ycombinator.com/item?id=33451879


apple's location services have cost me MUCH grief in developing newer versions of fq_codel for wifi, until we figured it out.


That is an amazing rabbit hole and the linked fix for TeXstudio is awesome.

It's surprising to me how so many programs seem to check location on an interval timer, including programs that seem at a glance to have no reason to need to know the user's location. I wonder if there's some common SDK library that makes it easy to accidentally enable.



So should I assume this didn't get fixed in Ventura? I have a new MacBook and have been wondering if I should turn off location services or if Apple fixed this.


It's actually intended behavior:

Location Services works by asking Apple if it knows the location of any of WiFi access points near you.† Apple knows these locations by using services like Skyhook who wardrive around mapping locations of BSSIDs (AP mac addresses).

So, when Location Services is on (which it is by default), macOS will periodically switch your wireless card to monitor mode to find those nearby WiFi access points. Doing so stops normal network traffic for around a few 100 ms on the device.

† On devices with a GPS (i.e. iPhones and iPads) it will also sometimes use the GPS, but does so sparingly because the GPS uses much more power.


Nit: Apple hasn't used Skyhook or Google for positioning in over a decade [1].

> Apple ditched both Skyhook and Google location services and began relying on its own databases starting with the release of iOS 3.2 for the first-generation iPad in April of 2010

[1] https://appleinsider.com/articles/13/07/03/skyhook-accuses-g...


There are two!


Check out the link shared by @bobbylarrybobby.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: