Exploring TCP details: establishing TCP connections

Source: Internet
Author: User

Exploring TCP details: establishing TCP connections
Currently, most C/S architecture systems use the TCP protocol for communication between components, mainly because the TCP protocol is a stable and reliable transmission protocol, however, most people are not familiar with the details of the TCP protocol. This article introduces some details about TCP for your discussion.
Www.2cto.com 1: The biggest reason for TCP connection establishment is to encode each transmitted byte. If the sequence of byte numbers received by the receiver is lost, the sender resends the lost byte number to ensure reliable transmission. To support the above mechanism, the sender and receiver must notify the initial serial number when establishing a TCP connection. The specific notification step is: 1: the client sends a SYN segment to the server, the SYN segment contains the initial number 2 of the request end: the server confirms the SYN segment of the client, and in order to reduce network traffic, in the ACK validation packet segment, with the initial serial number of the server www.2cto.com 3: the client confirms the SYN segment of the server. The above is the three-way handshake protocol. It is worth noting that in the TCP Message format, the serial number is a 32-bit unsigned integer. Generally, the initial serial number is 0. When the value increases to 2 ^ 32-1, it is reset to 0, and an ack message does not consume one serial number. Now let's take a look at the three-way handshake protocol observed through the capture tool, as shown in figure 1 No. 9284 is the SYN packet segment sent from the client to the server. The initial serial number is 0, the window size is 8912, the message length is Len = 0, and the maximum MSS packet size is 1460. no. 8912 is the SYN packet segment sent from the server to the client. The initial serial number is 0, the window size is 1460, the message length is Len = 0, and the maximum MSS packet size is.
The window size reports the size of the local receiving cache, which is used to control the local data receiving size. The other is the congestion window size, which is a table to control the data sending speed of the sender. The ack packet sent from the client to the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.