Well, the direct connection to the modem probably failed because you didn't power cycle the modem when changing the connected device.
The other description sounds like either you're experiencing dropped packets or have malware/spyware. You can visit
www.dslreports.com and run their PING tests to see if you have dropped packets, and spyware/malware scans should identify any potential issues there.