The TCP/IP model is the foundation of the Internet. If you want to understand the Internet, you have to understand this model. But it is not easy to understand, and I have never understood it. A few days ago, there was an article on BetterExplained that explained this model in a very popular way. After reading it, I felt like I had suddenly realized something, and for the first time, I felt that I understood the overall architecture of the Internet. Next, I will write about how the Internet is built according to my own understanding. If I am wrong, please correct me.
What is the TCP/IP model? The TCP/IP model is a general term for a series of network protocols. The purpose of these protocols is to enable information exchange between computers. The so-called "protocol" can be understood as the language used by machines to talk to each other, and each protocol has its own purpose. The TCP/IP model includes hundreds of protocols in total, which regulate all aspects of information exchange on the Internet. The four-layer structure of the TCP/IP model These protocols can be roughly divided into four levels, and the protocols in the upper level are based on the protocols in the lower level. As shown in the following figure: The four layers from bottom to top are the link layer, the internet layer, the transport layer, and the application layer. Their functions can be understood as follows: 1) The connection layer is responsible for establishing circuit connections and is the physical basis of the entire network. Typical protocols include Ethernet, ADSL, etc. 2) The network layer is responsible for allocating addresses and transmitting binary data. The main protocol is the IP protocol; 3) The transport layer is responsible for transmitting text data, and the main protocol is TCP; 4) The application layer is responsible for transmitting data in various final forms and is the layer that deals directly with users. Typical protocols are HTTP, FTP, etc. The key to understanding this structure is to understand that the original purpose of scientists designing the Internet in the 1970s was to transmit text. All protocols were originally designed for this goal, and the core of the Internet architecture is text conversation. Example: Establishing an HTTP session using Telnet To observe how text is transmitted on the Internet, we do a small experiment. Step 1: In the "Start" menu, click the "Run" command and enter "telnet google.com 80". The telnet command itself is an application layer protocol. Its function is to establish a TCP connection between two hosts, that is, to open a channel for text transmission between the two hosts. "telnet google.com 80" means to establish a text transmission channel between the local machine and google.com at port 80. The so-called "port" is actually a parameter of the TCP protocol, which is used to help the TCP protocol determine which application layer protocol is used for the text sent by the other host. Port 80 is the port of the HTTP protocol, which is the port we usually use to browse the web. You can refer to the list of common ports here. In addition, unlike Windows 2000 and Windows XP, Vista does not have a Telnet client installed by default. You can refer to Microsoft's installation instructions to install it yourself. If you are using a Linux system, you can directly enter the above command in the command line window. Step 2: Open the local display. (Skip this step for non-Windows systems.) Please follow the steps below: Press "Ctrl+]" in the Telnet window; then, enter the "set localecho" command and press the Enter key twice in succession. OK, now you can talk directly to the google.com host. Step 3: You can try to say something to Google and see what reaction it gets. I typed "Hello World!". As a result, Google's answer is this: "400 Bad Request" means that Google cannot understand your speech. This is not surprising, because you are conducting HTTP dialogue in the TCP text channel. Therefore, your speech must comply with the HTTP protocol so that Google can understand it. Step 4: Enter "GET / HTTP/1.1" to request the root file of the homepage from Google. The protocol used is HTTP version 1.1. Google’s response: "200 OK" means the requested data is successful. Below the header information is the source code of the homepage file displayed by Google in the browser. Summarize The example above uses the HTTP protocol. If you want to use other "application layer protocols" to communicate with the host, you only need to change the port. For example, "telnet ftp.website.com 21" means to use the FTP protocol for communication. The underlying protocol of all these conversations is the TCP protocol, because it is the protocol responsible for text transmission; and the TCP protocol must rely on the IP protocol to transmit binary data; and the transmission of binary data is inseparable from the underlying physical protocol responsible for network connection. Therefore, through this four-layer network architecture, communication across the entire Internet is achieved. |
<<: Will 5G kill Wi-Fi? The father of wireless data calls it a joke
In order to further regulate domestic online publ...
In the past two years, SDN technology has continu...
SoftShellWeb is a foreign hosting company establi...
[[266702]] Interviewer: What are the ways for par...
Today's organizations are not only actively m...
CloudCone's Easter promotion started on the m...
On January 20, the State Council Information Offi...
As today's corporate organizations are active...
With the acceleration of digital transformation o...
What is Communication? Simply put, communication ...
Aruba, a Hewlett Packard Enterprise (NYSE: HPE) c...
2021 is the year when 5G will be popularized at a...
HostYun (Host Cloud) was formerly known as hostsh...
Time is like quicksand, and the 2010s are about t...
This year marks the 20th anniversary of Z-Wave be...