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

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.
主站蜘蛛池模板: 临海市| 射洪县| 合山市| 汪清县| 观塘区| 略阳县| 通海县| 乳山市| 哈巴河县| 眉山市| 博兴县| 霍林郭勒市| 沙湾县| 临沧市| 拜泉县| 腾冲县| 余干县| 仪陇县| 股票| 凤阳县| 陕西省| 阿城市| 年辖:市辖区| 科技| 合肥市| 财经| 安新县| 万载县| 霍山县| 东光县| 长白| 西盟| 武定县| 五指山市| 璧山县| 会昌县| 石门县| 徐闻县| 南涧| 若尔盖县| 麦盖提县|