Unidirectional TCP keep-alive for Classic Load Balancer and Network Load Balancer

0

I own a fleet of IoT devices. The devices send data to the cloud on varying frequencies (it can be 1 minute or 30 minutes). The devices are old and can't be modified to send keep-alives. I'm currently using Classic Load Balancer and considering Network Load Balancer. I'm trying to mimic Classic Load Balancer's behavior for TCP flows, and prevent Network Load Balancer from closing the connection after an idle timeout of 350 seconds. Will a unidirectional keep-alive that is sent from the server be enough to keep the Network Load Balancer connection open?

Nir_Sh
preguntada hace 3 años1053 visualizaciones
1 Respuesta
0
Respuesta aceptada

For Classic Load Balancer, TCP keep-alives will not keep the connection alive. HTTP payload is required for the connection to be alive for Classic Load Balancers.

With Network Load Balancer, the TCP keep-alives can prevent the connection from reaching the idle timeout. However, the keep-alives must be enabled in both directions. If the server sends a keep-alive message, the client has to respond with a keep-alive acknowledgment. If the clients are unresponsive to keep-alives from the server, the idle timeout of 350 seconds will be reached. If either endpoint (client or server) sends traffic to the idle connection, Network load Balancer will generate a reset.

The HTTP payload will also keep the connection alive in case of NLB however you will have to make sure that it is being sent before hitting the 350sec timeout.

AWS
respondido hace 3 años
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas