Drivers and Firmware:
Another reason you may be getting disconnected is the firmware and drivers for your modem are outdated. Firmware and drivers are the software or programming that tells your modem how to communicate.
Modem manufacturers often release new drivers to correct bugs that can cause connection problems. Even if you just bought your computer, there is no guarantee that the installed drivers are current. That modem may have been sitting on a shelf for months before it was put into your computer and while it sat, the manufacturer may have released many updates.
To obtain the latest drivers and firmware, contact your modem and/or computer manufacturer. You can often get the updates for free on the Internet.