Periodic WiFi connection issues that resolve after reconnecting

So, something interesting I just figured out. If I keep ping running in the background my connection stays up. That’s not an ideal workaround, but perhaps a clue as to what’s wrong?