Adds sysctl-based configuration for TCP keepalive probes, retransmission timeouts, and window scaling to improve connection stability over unreliable or high-latency network paths. The changes include setting net.ipv4.tcp_keepalive_time to 300 seconds, tcp_retries2 to 5, and enabling tcp_window_scaling in the network initialization script.