How does TCP connection terminate if one of the machine dies?

后端 未结 5 1403
孤街浪徒
孤街浪徒 2021-02-14 04:46

If a TCP connection is established between two hosts (A & B), and lets say host A has sent 5 octets to host B, and then the host B crashes (due to unknown reason). The host

5条回答
  •  伪装坚强ぢ
    2021-02-14 05:13

    In normal cases, each side terminating its end of the connectivity by sending a special message with a FIN(finish) bit set. The device receiving this FIN responds with an acknowledgement to the FIN to indicate that it has been received. The connection as a whole is not considered terminated until both the devices complete the shut down procedure by sending an FIN and receiving an acknowledgement.

提交回复
热议问题