TCP Handshake - Difference between FIN and RST flag

Client-server TCP handshake diagram
  • Send FIN flag
  • Send RST flag

Major Difference

Major difference:
RST causes immediate/abrupt connection termination.
In FIN you get a confirmation.

  • FIN says: “I finished talking to you, but I’ll still listen to everything you have to say until you say that you’re done.
  • RST says: “There is no conversation. I won’t say anything and I won’t listen to anything you say.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store