- Mastering Python Networking
- Eric Chou
- 211字
- 2021-07-02 21:42:30
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.
- 解構(gòu)產(chǎn)品經(jīng)理:互聯(lián)網(wǎng)產(chǎn)品策劃入門(mén)寶典
- 騰訊iOS測(cè)試實(shí)踐
- 認(rèn)識(shí)編程:以Python語(yǔ)言講透編程的本質(zhì)
- Getting Started with PowerShell
- 營(yíng)銷(xiāo)數(shù)據(jù)科學(xué):用R和Python進(jìn)行預(yù)測(cè)分析的建模技術(shù)
- Internet of Things with the Arduino Yún
- C語(yǔ)言程序設(shè)計(jì)案例式教程
- Oracle Database 12c Security Cookbook
- 零基礎(chǔ)學(xué)Python數(shù)據(jù)分析(升級(jí)版)
- Scratch3.0趣味編程動(dòng)手玩:比賽訓(xùn)練營(yíng)
- OpenCV with Python By Example
- R語(yǔ)言:邁向大數(shù)據(jù)之路(加強(qiáng)版)
- QlikView Unlocked
- Modular Programming with JavaScript
- 像程序員一樣使用MySQL