Don't know what the hell is happening, but an easier way to fix it would be to restart (unplug and plug back in, don't press the reset button) you modem, router, etc. My internet goes out a LOT, because our phone adapter is a piece of stuff.
Unplug everything, plug in your modem, wait till the power light turns from red to green, and the Cable, Activity, and Ethernet lights turn green. Plug in anything between your router and modem (I have a phone adapter), wait for that to be ready, then plug in your router and wait for that.
Might be different depending on what you have.