If none of the other suggestions work, you might want to try this:
When you lose internet connection, check your modem and see if your "cable" light is lit up. Might be your modem is dying. How old is it?