A bizarre problem on a production setup.
Scenario
1) A server listens on a particular port.
2) There are potentially thousands of TCP connection requests.
3) About 200-300 TCP connections reach ESTABLISHED state (netstat output).
4) After this, the connections begin to drop off (and sometimes stay in CLOSE_WAIT state indefinitely and clear off only at system reboot).
5) The new connection requests (SYN) gets no response back (SYN ACK).
6) After the initial build up and drop off, the system shows zero ESTABLISHED state connections and stays there up until a reboot after which the cycle repeats.
Does not look like a DDoS attack (ip addresses all good. TCP port correct as well). Has someone experienced such a scenario?
Note:
1) Even after several reboots, the issue persists. The setup worked perfectly fine before.
2) The firewall setting looks good.
3) The devices reach the server through a security gateway.
4) The workaround for this issue is to control the number of TCP connection requests per minute (throttling set on the OS - redhat)