Why tcp connect termination need 4-way-handshake?

后端 未结 5 1309
感动是毒
感动是毒 2021-02-03 23:30

When connection sets up, there is:

Client ------SYN-----> Server

Client <---ACK/SYN---- Server ----①

Client ------ACK-----> Ser

5条回答
  •  轮回少年
    2021-02-04 00:19

    From Wikipedia - "It is also possible to terminate the connection by a 3-way handshake, when host A sends a FIN and host B replies with a FIN & ACK (merely combines 2 steps into one) and host A replies with an ACK.[14]"

    Source:

    Wikipedia - https://en.wikipedia.org/wiki/Transmission_Control_Protocol

    [14] - Tanenbaum, Andrew S. (2003-03-17). Computer Networks (Fourth ed.). Prentice Hall. ISBN 0-13-066102-3.

提交回复
热议问题