OSI seven-layer model and TCP/IP five-layer model

Source: Internet
Author: User

Bo is engaged in a FPGA, has not really studied Ethernet-related technology, and now finally can calm down the heart to learn, I hope that they can more in-depth grasp the most basic communication interface technology. Here's the start.
I. OSI Reference Model
Today we first learn about Ethernet is the most basic and important knowledge--osi Reference model. 1. Source of the OSI
OSI (Open System Interconnect), open systemsInterconnection. Generally called the OSI Reference Model, ISO (International Organization for Standardization) Organization of the network Interconnection studied in 1985model.    in order to make network application more popular, ISO has introduced the OSI Reference Model. The implication is that all companies are recommended to use this specification to control the network. So all companies have the same specifications, they can be connected. 2. Classification of OSI seven-layer model
Osidefines a seven-layer framework of network interconnection (physical layer, Data link layer, network layer, transport layer, Session layer, presentation layer, application layer), the ISO open Interconnect system Reference Model. Such as.         each layer implements its own functions and protocols, and communicates with the interfaces of the neighboring layers. The OSI service definition provides a detailed description of the services provided at each level. A layer of service is a capability of the layer and its lower layers, which are passed through an interfaceprovided to a higher level. The services provided by each tier are unrelated to how these services are implemented.

3, each layer function definition
Here we only have a general description of the functional aspects of the OSI layers, not in detail, because each layer is actually a complex layer. I will also follow the personal direction of the development of some layers of deep learning. Here we have a general look. Let's start with the top-level application layer. The entire process is explained by sending a commercial quote from company A and company B as an example.
<1>Application Layer    The first layer of the OSI Reference Model, which is closest to the user, is to provide application interfaces for computer users and to provide users with various network services directly. Our Common Application Layer Network service protocols are: HTTP,HTTPS,FTP,POP3, SMTP and so on.         The actual Company A's boss is the user we described, and he wants to send a business quotation, is the application layer to provide a network service, of course, the boss can also choose other services, for example, to send a business contract, send an inquiry form, and so on. <2>Presentation LayerPresentation Layerprovides various encoding and conversion functions for application layer data, ensuring that the data sent by the application layer of one system can be identified by the application layer of another system. if necessary, the layer provides a standard representation for using a variety of data inside the computerformat into communicationthe standard representation used in the Data compression and encryption are also one of the transformations that the presentation layer can provide.         since company A and Company B are companies of different countries, they agree to unify English as the language of communication, so at this point the presentation layer (company's secretary), is to translate the application layer transfer information into English. At the same time, in order to prevent other companies to see, company A's people will also do some encryption of this quotation processing. This is the function of representation, translating the data of the application layer into translation, etc. <3>Session Layer        The session layer isresponsible for establishing, managing, and terminating communication sessions between presentation-level entities. This layer of communication consists of service requests and responses between applications in different devices.               The conversation-level colleague gets the post-conversion data from the presentation layer (the conversation-level colleague resembles the company's outreach department), and the conversation-level colleague may have access to the company's contact with many other companies, where the company is the entity in the actual transfer process. They want to manage the contact conversation between the company and many other companies in the outside world. After receiving the data of the presentation layer, the session layer will establish and record this session, he first to find the address information of Company B, and then put the entire data into the envelope, and write the address and contact details. Ready to send out the information. After confirming that company B received the quotation, the session ended, and the colleague from the Outreach department terminated the session. <4>Transport Layer The transport layer establishes the host end-to-endThe link,the role of the transport layer is to provide end-to-end reliable and transparent data transfer services for the upper layer protocol, including handling error control and flow control issues. This layer shields the details of the lower data communication to the upper level, so that the high-level users can see only a host-to-host, user-controlled and reliable data path between the two transport entities .. As we usually say, TCP UDP is at this level. The port number is both "end" here.
    The transport layer is equivalent to the company in charge of Courier Mail Transceiver, the company's own couriers, they are responsible for the previous layer to send the information sent to The courier company or post office. <5>Network Layer
this layer is addressed by IPto establish a connection between two nodes for the transport layer at the source end .packets sent, select the appropriate routing and switching nodes, and correctly transmit to the destination transport layer in accordance with the address. is usually called the IP layer. This layer is what we often call the IP protocol layer. The IP protocol is the foundation of the Internet.
The network layer is equivalent to The courier company's huge express network, the country's different distribution centers, for example, from Shenzhen to Beijing, Shun Fung Express (for example, air transport seems to fly directly to Beijing), the first to shun Fung Shenzhen distribution Center, from the Shenzhen Distribution center and sent to the Wuhan distribution center, From Wuhan Distribution Center and then sent to Beijing Shunyi Distribution Center. This is the equivalent of an IP node in the network for each hub. <6>Data Link Layer      The bits are combined into bytes, the bytes are combined into frames, the media is accessed using the link-layer address (Ethernet uses the MAC address), and error detection occurs.

The Data link layer is divided into 2 sub-tiers: The Logical Link Control sublayer (LLC) and the media access control sublayer (MAC).

MAC sub-layer processing CSMA/CD algorithm, data error check, framing, etc. theLLC sublayer defines some fields that allow the last protocol to share the data link layer. In practical use, theLLC sublayer is not required.

I didn't find the right example.

<7> Physical Layer     

The transmission of the actual final signal is realized through the physical layer. Through physical mediaThe output bit stream.the level, speed, and cable pins are specified. Common equipment has (a variety of physical equipment) hub, repeater, modem, network cable, twisted pair, coaxial cable. These are the transport media of the physical layer. The means of transportation in the courier delivery process is the equivalent of our physical layer, such as cars, trains, airplanes, and ships.
4. Communication characteristics: Peer      Peer communication, in order to transfer data packets from the source to the destination, each layer of the source-side OSI model must communicate with the peer layer of the destination, which is known as peer-level communication. During each layer of communication, use this layer's own protocol for communication.

Second, TCP/IP five layer modelthe TCP/IP five layer protocol and the OSI seven-layer protocol correspond to the following relationships.

in each layer of the work of different devices, such as our common switches work in the data link layer, the general router is working in the network layer.





The protocols that are implemented at each level are also different, that is, the services at each level are different. Lists the main protocols for each layer. Each layer of the specific protocol, I will be in the back one by one to learn.


Ref: 1. Baidu Encyclopedia:OSI Reference Model    2.http://blog.csdn.net/wdkirchhoff/article/details/43915825


From for notes (Wiz)

OSI seven-layer model and TCP/IP five-layer model

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.