Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens to TCP connection when a computer switches to sleep mode? [closed]

I want to know what happens to a TCP connection when a computer goes to sleep.

Is there any differences between Linux and Windows in aspect of realization of TCP and handling the sleep mode?

So, the question is: is the connection terminating on sleep mode? If not - what happens?

like image 714
Don Angelo Annoni Avatar asked Nov 09 '12 11:11

Don Angelo Annoni


People also ask

Does sleep mode disconnects network connection?

Related. To save energy, Windows automatically disables the Internet connection when the computer goes into sleep mode. This setting logs off the computer user and severs the computer's connection to the local area network, disrupting office network applications and periodic computer updates and messages.

How is a TCP connection closed?

The client or the remote application server half-closes the TCP connection by sending a FIN/ACK packet. In doing this, the client or the remote application server expects the other half of the TCP connection to stay active.

Do TCP connections stay open?

Description. Once a TCP connection has been established, that connection is defined to be valid until one side closes it. Once the connection has entered the connected state, it will remain connected indefinitely.

How do I stop my internet from disconnecting when my computer sleeps?

Right-click on your network driver, and select Properties from the context menu. Under the Power Management tab, uncheck the option next to Allow the computer to turn off this device to save power. Click on OK and restart your device.


1 Answers

The networking session terminates when computer goes into sleep mode, due to the fact the networking interface(s) will also shut down, hence no transmission to transmit or receive. TCP is reliable connection and expects other party to respond to handshake process, ACK and other request and sleeping node won't be able to do that.

like image 195
3ntr0py Avatar answered Oct 28 '22 02:10

3ntr0py