TCP/IP is divided into four layers
They are:
The application layer corresponds to the application layer, presentation layer, and Session Layer of OSI.
The transport layer corresponds to the OSI transport layer
The Internet layer corresponds to the OSI network layer
The network interface layer corresponds to the OSI data link layer and physical layer.
The entire process of TCP/IP is translation Control Protocol/international protocol, which includes the transport control layer and network application layer. It is a protocol cluster.
The transport layer is divided into the following two types:
1 tcp: point-to-point, reliable transmission. A connection is established through three handshakes before data transmission.
2dup
The application layer includes many protocols, such as HTTP, FTP, and DNS.
The port number is the number of the program or service. No protocol on the application layer has its own port number. The port number range is 0-65535, where 0-254 is public application, 255-1023 is for commercial companies. 1024-65535 is unlimited and can be used by everyone.
IP address and subnet mask
The IP address is a 32-bit binary number, which is divided into four segments, which are 8-bit =
Network ID (network ID) + host ID (composed of host ID), divided into 5 categories