Forum Discussion

nicouy_153185's avatar
nicouy_153185
Icon for Nimbostratus rankNimbostratus
Apr 26, 2018

Limit a TCP connection in time

Hi, Is there any way to limit the duration of a TCP connection ?. Let's say it could not last more than 1 min. The problem comes because we have syslog clients that send messages to a pool of servers using TCP. The problem is that the clients saturate the server once their connection is established and they traffic for more than 2 minutes aprox. Then the idea is to force the client to re-negotiate the connection to force it to fall into another pool node and not saturate the first. Our idea was to make an iRule that can close the connection to the client after a certain time.

 

Any suggestion is welcome. Thank you very much

 

2 Replies

  • You can change in TCP Profile ( Local Traffic > Profile > Protocol > TCP ) As F5 is full proxy , F5 is holding the TCP connection between couple of Hosts and if TCP keepalive message is not arrive in certain period (default idle timeout 300 Seconds ) F5 release the TCP connection. After that connection was reset and need to re-established. I hope this may help. Thank You ZYW