Answer the question
In order to leave comments, you need to log in
Is it possible to reduce the time to establish / disconnect a connection using the tcp / ip protocol?
The situation is this: there is a pair of servers 1A-1B in which redundancy and server 2A are implemented. Servers 1A and 2A are actively exchanging, I emergency pull out 2 links from server 1A, server 1B immediately picks up activity, but there is a delay of 5-6 seconds in switching server 2A (at this time, for some reason, 2A still keeps in touch with 1A, as a result of which the data do not arrive in this period of time.The question arises, is it possible to somehow reduce this delay?
Answer the question
In order to leave comments, you need to log in
When establishing a TCP connection, set the keep-alive option with small delays. But this is at the programmer level, if keep-alive is not used in the program you are using, then most likely you will not be able to influence this.
By default, keep-alive is not used at all when establishing a connection - the flag for its use must be set explicitly, and if used, then the delays are quite large.
If keep-alive is used in the program, but delays are not set (they are used by default), then the default delays can be adjusted by the OS settings.
You can check whether the program uses keep-alive by intercepting and analyzing TCP connection setup packets - the corresponding flag must be set.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question