- 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.
- Dependency Injection in .NET Core 2.0
- Raspberry Pi for Secret Agents(Third Edition)
- Banana Pi Cookbook
- Apache Mahout Clustering Designs
- C++寶典
- 后臺(tái)開發(fā):核心技術(shù)與應(yīng)用實(shí)踐
- Building Dynamics CRM 2015 Dashboards with Power BI
- 零基礎(chǔ)學(xué)Scratch 3.0編程
- Photoshop智能手機(jī)APP界面設(shè)計(jì)
- Hack與HHVM權(quán)威指南
- SQL Server實(shí)例教程(2008版)
- Kotlin語言實(shí)例精解
- AI輔助編程Python實(shí)戰(zhàn):基于GitHub Copilot和ChatGPT
- Visual Basic程序設(shè)計(jì)
- Puppet Essentials