- 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.
- UI圖標創意設計
- Android Wearable Programming
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- UML和模式應用(原書第3版)
- 自然語言處理實戰:預訓練模型應用及其產品化
- Learning Docker
- 造個小程序:與微信一起干件正經事兒
- Python神經網絡項目實戰
- 速學Python:程序設計從入門到進階
- Statistical Application Development with R and Python(Second Edition)
- Java EE企業級應用開發教程(Spring+Spring MVC+MyBatis)
- Python入門很輕松(微課超值版)
- Backbone.js Testing
- 深入分析GCC
- SQL Server 2014數據庫設計與開發教程(微課版)