官术网_书友最值得收藏!

TCP messages and data transfer

The biggest difference between TCP and User Datagram Protocol (UDP), which is its close cousin at the same layer, is that it transmits data in an ordered and reliable fashion. The fact that the operation guarantees delivery often referred to TCP as a connection-oriented protocol. It does this by first establishing a three-way handshake to synchronize the sequence number between the transmitter and the receiver, SYN, SYN-ACK, and ACK.

The acknowledgement is used to keep track of subsequent segments in the conversation. Finally at the end of the conversation, one side will send a FIN message, the other side will ACK the FIN message as well as send a FIN message of its own. The FIN initiator will then ACK the FIN message that it received.

As many of us who have troubleshot a TCP connection can tell you, the operation can get quite complex. One can certainly appreciate that most of the time, the operation just happens silently in the background.

A whole book can be written about the TCP protocol; in fact, many excellent books have been written on the protocol.

As this section is a quick overview, if interested, The TCP/IP Guide is an excellent free source to dig deeper into the subject.
主站蜘蛛池模板: 富锦市| 盖州市| 凤翔县| 武鸣县| 繁峙县| 临海市| 罗定市| 鄯善县| 襄汾县| 岢岚县| 宝坻区| 赤城县| 台安县| 霍邱县| 上饶县| 江永县| 莱阳市| 文昌市| 海城市| 大厂| 丽江市| 凤台县| 措美县| 湖南省| 乌拉特中旗| 钟祥市| 荥经县| 土默特右旗| 津南区| 南靖县| 台东市| 宝清县| 荔浦县| 巴林右旗| 加查县| 敖汉旗| 天峨县| 大港区| 灵寿县| 新巴尔虎右旗| 老河口市|