An article to help you understand the concept of TCP/IP

An article to help you understand the concept of TCP/IP

1. What is TCP/IP?

Transmission Control Protocol/Internet Protocol refers to a suite of protocols that enables information transmission between multiple different networks.

TCP/IP is a general term for communication protocols. TCP/IP is a collection of protocols such as IP, TCP, UDP, HTTP, and SMTP.

TCP has two major characteristics: openness and practicality

First of all, openness is due to the fact that the TCP/IP protocol is discussed and developed by IETF, and IETF itself is an organization that allows anyone to join and discuss.

Secondly, in the process of TCP/IP standardization, the specification of a protocol is no longer important, but the primary task is to implement the technology that can actually achieve communication. So some people joked that "TCP/IP is simply" developing the program first and then writing the specification.

2. What is a protocol?

When we visit a web page to obtain information, we are unaware of the existence of the protocol. The protocol is only involved when we reconfigure the computer's network connection or modify network settings.

Simply put, a protocol is a "protocol" that is reached in advance when computers communicate over a network. This "protocol" enables computers made up of different manufacturers' equipment, different CPUs, and different operating systems to communicate as long as they follow the same protocol. Otherwise, if different protocols are used, communication will not be possible.

This is like two people speaking different languages ​​and not being able to understand each other. There are many types of protocols, each of which clearly defines its behavior. Two computers must be able to support the same protocol and follow the same protocol to communicate with each other.

In computer communication, it is particularly important to reach a detailed agreement in advance and follow this agreement. This agreement is actually a protocol.

Note: Protocol address

https://www.rfc-editor.org/rfc/

3. Packet switching protocol

Packet switching refers to the method of dividing large data into smaller units called packets for transmission.

Computer communication will attach the source host address and the destination host address to each packet and send it to the communication line. The part where the sender address, the receiver address and the packet sequence number are written is called the "message header". The communication protocol usually stipulates what information should be written in the message header and how to process this information.

4. The relationship between the Internet and TCP/IP

When the Internet communicates, the corresponding network protocol is required. TCP/IP is a protocol family originally developed for the use of the Internet. Because the Internet protocol is TCP/IP, TCP/IP is the Internet protocol.

5. Relationship between TCP/IP and OSI


OSI concept: Open System Interconnect Open System Interconnection Reference Model is defined by ISO (International Organization for Standardization). It is a flexible, robust and interoperable model, not a protocol, and is often used to analyze and design network architecture.

The OSI model is divided into seven layers: OSI divides the network into seven layers, from bottom to top: physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer.

The TCP/IP model is divided into four layers: data link layer, network layer, transport layer, and application layer

In the TCP/IP reference model, the session layer and presentation layer in the OSI reference model (the functions of these two layers are merged into the application layer), and the data link layer and physical layer are merged into the physical link layer.

Application layer:

Application-specific protocols

Presentation layer:

Conversion between device-specific data format and network standard data format

Session layer:

Communication management, responsible for establishing and disconnecting communication connections

Transport layer:

Manages data transfer between two nodes.

TCP is a link-oriented transport layer protocol that ensures that communication between two hosts is reachable. TCP can correctly handle abnormal situations such as packet loss and disordered transmission order during transmission. In addition, TCP can effectively utilize bandwidth and alleviate network congestion.

However, in order to establish and disconnect the connection, it sometimes needs to send and receive packets at least 7 times, resulting in a waste of network traffic. In addition, in order to improve the utilization of the network, the TCP protocol defines a variety of complex specifications, which is not conducive to use in video conferencing and other occasions.

UDP is different from TCP. It is a connectionless transport layer protocol. UDP does not care whether the other end actually receives the transmitted data. If you need to check whether the other end has received the packet data or whether the other end is connected to the network, you need to implement it in the application.

UDP is often used in multimedia fields such as small packet data or multicast, broadcast communication, and video communication.

Network layer:

Address management and routing

Data Link Layer

Transmit and identify data frames between interconnected devices

Physical Layer

0 and 1 represent the voltage level and the flashing of the light.

<<:  Dubbo 3.0? No! RSocket is the eternal god

>>:  In 2020, my country's total base stations reached 9.31 million, and the interconnection bandwidth of the three major operators surged

Recommend

A brief discussion on the development history and future trends of routers

Labs Guide As a common network device, routers ca...

China Mobile completes R16 version 2.6G+700M SUL uplink enhancement test

Recently, China Mobile and MediaTek completed the...

Compared with IPv4, IPv6 is more than just an increase in address length

As we all know, the length of IPv6 IP address is ...

How will 5G mainstreaming affect the Internet of Things in 2023?

The number of Internet of Things (IoT) endpoints ...

A practical guide to running databases across regions and Kubernetes clusters

Translator | Kang Shaojing Planning | Yun Zhao Am...

10 SD-WAN projects to watch

[[323303]] GlobalConnect | Versa Networks GlobalC...