The TCP three-way handshake is a classic interview question. It means that before TCP transmits data, it needs to interact three times to formally establish a connection and transmit data. The reason why TCP needs three handshakes is that both sides of TCP are full-duplex. The so-called full-duplex means that either end of TCP is both the sender and the receiver of data. Therefore, this requires both sides of TCP communication to ensure their own sending capabilities and receiving capabilities. This is like when making a phone call, both parties must ensure that their microphones (transmitting sound) and headphones (receiving sound) are normal, so that effective communication can be carried out. Usually, when making a phone call, it starts like this:
The same is true for TCP three-way handshake. The capabilities of the three-way handshake are as follows: TCP three-way handshake processThe TCP three-way handshake process is as follows:
The specific execution process is shown in the following figure: SummarizeThe reason why TCP needs three handshakes is that both parties of TCP communication are full-duplex, so three interactions are required to confirm the sending and receiving capabilities of both parties, and the TCP handshake must be three times. If it is a two-way handshake, it cannot prove the sending capability of the server and the receiving capability of the client; it cannot be a four-way handshake either, because if three handshakes can already prove something, there is no need for another interactive handshake. References & Acknowledgements"Code Efficiently: Java Development Manual" 《Offer is coming》 |
<<: AI identification and root cause location of 5G wireless problems help improve network quality
>>: 5G and its impact on the Internet of Things
F5 (NASDAQ: FFIV) recently announced the launch o...
At the end of last month, I just shared the news ...
definition The purpose of streams is to use a uni...
At the 5G Message High-level Forum of the China I...
From 0 to 10W+ Ruijie Ethernet Color Light Every ...
Since most 5G networks are deployed using the 3.5...
In the wave of modern industrial automation, real...
As the new coronavirus spreads widely, many compa...
On June 6, 2019, China officially issued 5G licen...
When we are doing network development, we often h...
After the 5G trial commercialization in 2018 and ...
Bitcoin was launched in 2009. As the price of Bit...
Welcome to Cisco Global Gold! For the first time ...
On May 20, Borei Data officially launched the int...
Today, topics about 5G and Wi-Fi are endless, and...