Please clarify. Are you losing your internet connection? wired or wireless? Are you losing the IP address on your computer causing your disconnection, which should not happen.
My guess, you are connected to a wireless router and the connection between you and the router is lost. Many possibilities for this to happen. And when you reconnect you could be getting a different IP address from the router.