Just switch off your router or modem at the plug, unplug your ethernet or usb cable from your modem/router, and from your computer.Leave for a couple of minutes, then switch on and plug everything back in, you may need to restart your computer.
This should work ok, unless it`s a problem with your internet provider.