11种状态,其中常用的状态有4个:SYN_SENT、ESTABLISHED、TIME_WAIT、CLOSE_WAIT
tcp三次握手和四次挥手的全过程:
tcp的三次握手:
tcp的四次挥手:
参考资料:https://www.cnblogs.com/heroinss/p/10642529.html
https://blog.csdn.net/hkhl_235/article/details/79721645
https://blog.csdn.net/liwenxia626/article/details/80823291
tcp中的rst标志详解:https://blog.csdn.net/a_tu_/article/details/80389878