Understanding Network Protocol continuation

Source: Internet
Author: User

Network Layer)

The above Protocol can only implement communication in the same LAN, so how can one computer on WiFi communicate with another computer on Ethernet? In this case, we need to use an intermediate media. It must have the following functions: 1. It can receive and send 0/1 sequences from two networks on the physical layer; 2. It can understand the frame formats of the two networks at the same time. At this time, the vro is applied. A vro has multiple NICs (NIC, Network
Interface controller), each Nic can access multiple networks and understand the corresponding connection layer protocol. When a frame passes through a route to another network, the route reads the frame information and changes it to another network. Therefore, a route is like a post office in a postmaster. There are Postmasters in different areas in the post office. After a postmaster delivers the mail to the post office, another Postmaster can send this email to another different community.

According to the figure, we can clearly see that the whole process requires at least four addresses (desktop 1, Wi-Fi interface, Ethernet interface, and desktop 3) to bring desktop 1 Information to desktop 3 ). At this time, only the connection layer protocol (SRC and DST) cannot meet our needs, but the connection Layer Protocol already exists and we cannot change it at will, so we can only work on the data (payload), and the IP protocol will be used in this case. Computer 1, router, and computer 3 must understand the IP protocol. When computer 1 writes a letter, the departure address and the final address of the letter will be written at the beginning of the letter (note that it is not written on the envelope), while the envelope will be written to the Post Office (router ). In the post office, the mail was opened, and the Post Office staff saw the final address, so they packed the mail in a new envelope and wrote the departure address as the post office address and the arrival address as computer 3, and sent to the Ethernet postman, sent by the Ethernet postman to the computer 3 (this process is slightly different from the mail distribution at the Post Office ). The IP address is similar to the zip code on the envelope. This address is unique and can be used to uniquely identify the destination of the email.

Each post office is usually connected to multiple regions, and one region can also have multiple post offices, respectively, to different regions. Sometimes a letter may have to be sent to the destination through multiple post offices in the middle. The post office connects the separated LAN to the Internet and eventually forms the Internet covering the world.

Transport Layer)

With the above three layers, communication between different computers can be realized, but there are actually many processes in the computer, each process can have the need to communicate. This is like a house where there are several people (processes). How can I send emails to someone exactly? According to the Post Office's sending logic, we will write the recipient's personal information on the envelope, so as to ensure smooth delivery. Therefore, we need a new protocol to solve this problem. For example, the two transport layer protocols TCP and UDP use port
Number) to identify the recipient (a computer process ). As long as we write the destination port, the sender will identify the port number based on the transport layer protocol and send the mail to a specified person (process ).

TCP and UDP are two different transport layer protocols. TCP (Transport Control Protocol) is a link-based protocol, that is, before sending and receiving data, A reliable connection must be established with the other party. Just like two people who are close to each other can chat through Weibo private messages, they must first check each other's identity and determine whether they are the people they are looking. A TCP connection can be established only after three "conversations". The simple process is similar: host a sends a connection request packet to host B: "Can I send data to you? ", This is the first conversation; host B sends a data packet to host a that agrees to the connection and requires synchronization (synchronization means that one of the two hosts sends, one is receiving, and the other is coordinating): "Yes, when will it be sent? ", This is the second conversation. host a sends another packet to confirm that host B's request is synchronized: "Send now, let's proceed !", The third dialog is also called the three-way handshake protocol. These three "dialogs" aim to synchronize the transmission and receipt of data packets, and ensure that the data reaches the destination accurately and securely.

User Data Protocol (UDP) is a protocol that corresponds to TCP, rather than a non-connection-oriented protocol. Instead of establishing a connection with the other Party, UDP directly sends data packets! Like a QQ message, you can send a message to a user no matter who the user is or whether the user is waiting to receive the message.

UDP is applicable to applications that transmit only a small amount of data at a time and do not require high reliability. TCP is more reliable than UDP, and the transmission length is greater than UDP.

Application Layer)

The functions of the Session Layer are actually reflected in the application layer. Different application implementation methods are different. The idea of the presentation layer is mainly reflected in encrypted network transmission. So let's talk about it together.

Through the above several layers of protocols, we can already communicate between any two people (processes. However, everyone is actually engaged in different industries. Some are lawyers and some are diplomats. For example, communications between lawyers use strict legal terms to avoid disputes. For example, communications between diplomats must comply with certain diplomatic formats to avoid diplomatic misunderstanding. For example, a spy transmits encrypted information through an encrypted number. The application layer protocol further applies to the letter content.Terms and regulations. The application layer protocol includes the HTTP protocol for Web browsing, the FTP protocol for file transmission, and the IMAP protocol for email.

 

Summary:

From the terms and definitions above and the process of sending mail from the post office, we can clearly see that each layer of the network has its own unique functions, encapsulate the readable information into a letter (0/1 series) according to the desired protocol, and then translate the information to the destination through the corresponding protocol, finally, we can see the same information in different places. The entire process is: readable information → binary → readable information. The computer can only understand and transmit the 0/1 series, while the user inputs and reads all the readable information. In the middle, the Network Protocol is working, it ensures the integrity of readable information throughout the conversion and transmission process.

 

 Http://blog.csdn.net/smszhuang168/article/details/8619530

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.