HI Twist
Keep alive is basically just a mechanism used to verify and keep a connection open. All it does is send empty packets
and look for empty replies.
net.ipv4.tcp_keepalive_time:
The system will start to send keep alive packets after this many seconds of inactivity.
net.ipv4.tcp_keepalive_intvl:
After net.ipv4.tcp_keepalive_time times out, the number of seconds to wait between packets.
net.ipv4.tcp_keepalive_probes:
The connection gets closed after this number of sequential unanswered packets.
... This does not happen when I send a ping packet every 10 seconds.
You should get the same affect by doing this:
sudo sysctl -w net.ipv4.tcp_keepalive_intvl=10