TCP keep-alive packet is a method of pinging the server ensuring the connection does not close unexpectedly when required.