TCP / IP protocol, three-way handshake and four wave

  • IP protocol is responsible for transmitting data from one computer to another computer via a network, transmission time, a feature of our data is divided into small, a small piece, and then sent through the IP packet, the IP packet is in blocks send, it does not guarantee arrival does not guarantee the order of arrival.
  • IP address (4 bytes, 32-bit) is actually a 32-bit integer (referred IPV4)
    IPV6 address is actually a 128-bit integer, which is an updated version of IPV4
  • TCP protocol is built on top of the IP protocol, TCP protocol is responsible for establishing a reliable connection between the two computers, ensure that data packets arrive in sequence, the TCP protocol connection is established through a handshake, then for each IP packet number to ensure that the order is received by the other party, if the package lost on automatic retransmission.
  • Port : When two computers communicate, send only IP is not enough, because it may execute multiple programs on a computer network, a TCP packet came, which program should be left to deal with, we need to use the port number to distinguish each network operating system, application programs to a unique port number. 1024

ip address (4 bytes, 32-bit) and port number (2 bytes 16-bit) can uniquely represent a network host process

**

- three-way handshake / four wave

**
Here Insert Picture Description
wave requires a client transmits a request for data transmission is disconnected, the request for more time
, but this is not a handshake request, a handshake but no data transmission, the server at the time when the handshake acknowledgment information, along with the request to transfer the passed.

Guess you like

Origin blog.csdn.net/hu827250322/article/details/93645850