当前位置:网站首页>Network model -- OSI model and tcp/ip model
Network model -- OSI model and tcp/ip model
2022-06-25 08:07:00 【Shrek】
List of articles
OSI Model and TCP/IP Model The comparison is as follows :
One 、OSI Seven layer model
Functions of each layer :
application layer :
The application layer is located in OSI The seventh layer of the model , The function is to provide... For computer users Application interface , It also provides users with various Network services . This layer protocol defines Application process Between Interaction rules , Through different application layer protocols for different applications Web applications provide services . For example, web enabled HTTP agreement , The e-mail system uses SMTP agreement .
The presentation layer :
The role of the presentation layer is It is used for the encoding and conversion of application layer data , Provide services for the application layer up , Accept services from the session layer down . The services provided by this layer mainly include data compression 、 Data encryption as well as Data description , And make various data formats inside the computer convert into standard forms used in communication .
The session layer : The conversation layer is responsible for establish 、 Management and termination Communication sessions between presentation layer entities . Communication in this layer consists of service requests and responses between applications in different devices .
Transport layer : The main task of the transport layer is to Communication between two host processes Provide services , Handle Packet error , Packet order , And some other key transmission problems .
The network layer : This layer establishes the connection between two nodes through addressing , Packets sent to the transport layer at the source end , Choose the right routing and switching nodes , It is correctly transmitted to the transport layer of the destination according to the address .IP Agreement is Intetent. It can be understood in this way , The network layer specifies the transmission route of data packets , The transport layer specifies the transmission mode of data packets .
Data link layer : The data link layer is usually also called the link layer . Data transmission between two hosts , It's always transmitted over a link , This requires the use of special link layer protocols . When transferring data between two adjacent nodes , Data link layer take The network layer Handed over IP Datagram assembly into frame , The link between two adjacent nodes transmits frames .
The data of each frame can be divided into : Headlines head And data data Two parts ;
- head Indicate the data sender 、 The recipient 、 data type 、 Such as MAC Address
- data It stores the data of the interaction between computers
Through the control information, we can know the start and end bit position of a frame , Besides , It can also enable the receiving end to detect the received frame Is there any error , If mistakes are found , The data link layer can simply discard this frame , To avoid continuing to occupy network resources
The physical layer : As OSI The lowest layer in the reference model , The function of physical layer is to realize the transparent transmission of computing and bit stream between nodes . The main task of this layer is to determine some characteristics of the interface with the transmission media ,( mechanical 、 electrical 、 Functional and process features ), This layer is mainly related to hardware , It has little to do with software .
Two 、TCP/IP agreement
TCP( Transmission control protocol ): A connection oriented 、 reliable 、 Transport layer communication protocol based on byte stream .
IP( Internet protocol ): Protocols for packet switched data networks .
Divide
TCP/IP The protocol family is divided into five layer system or four layer system , The architecture of five layer protocol Just for the introduction network
Designed according to the principle of network , The practical application is still TCP/IP Four tier architecture , Including application layer 、 Transport layer 、 The network layer ( The Internet layer )、 Network interface layer
Five tier system
application layer : TCP/IP The model will OSI Session layer in reference model 、 The presentation layer 、 And the functions of the application layer are combined into one application layer to realize , Provide services for different applications through different application layer protocols . Such as FTP、Telnet、DNS、SMTP etc. .
Transport layer : This layer corresponds to OSI The transport layer of the reference model , It provides the communication function from the source end to the end-to-end host for the upper layer entity .
The transport layer defines two main protocols : Transmission control protocol (TCP) And user datagram protocol (UDP), The connection oriented TCP The protocol ensures the reliability of data transmission , Facing connectionless UDP The protocol can make the data package simple 、 Fast transmission .
The network layer : Responsible for providing communication services for hosts in packet networks , And pass Choose the right route Transfer data to target host , When sending data , The network layer encapsulates the message segments or user data generated by the transport layer into groups or packets for transmission
Data link layer : The data link layer is used when two adjacent nodes transmit data , The network layer is handed over IP Datagram assembly into frame , The frame is transmitted over a link between two adjacent nodes .
The physical layer : Ensure that data can be transmitted on various physical media , Provide a reliable environment for data .
3、 ... and 、 OSI Reference model and TCP/IP The difference between reference models
The same thing :
● OSI Reference model and TCP/IP The reference models are hierarchical
● Both can provide connection oriented and connectionless communication service mechanisms
Difference :
● OSI The seven layer model used ; TCP/IP It's a four or five story structure
● TCP/IP The reference model does not subdivide the network interface layer , Just some conceptual description ; OSI The reference model makes a clear distinction between services and protocols
● OSI The reference model is divided into seven layers , But it's more difficult to achieve .TCP/IP The reference model can be used as a simplified hierarchical structure
● TCP/IP The reason why the protocol removes the presentation layer and the session layer is that the session layer 、 The presentation layer 、 The application layer is implemented inside the application , The final output is an application data package , And it is almost impossible to realize abstract code sharing between applications , That's why OSI The layering of the application dimensions in mind is not possible .
Four 、TCP/IP Five layer protocol communication mode

边栏推荐
- Force deduction 76 questions, minimum covering string
- Electronics: Lesson 009 - Experiment 7: study relays
- 黑点==白点(MST)
- 洛谷P2486 [SDOI2011]染色(树链+线段树 + 树上区间合并 )
- 基于Anaconda的模块安装与注意事项
- 【红旗杯?】补题
- Functions should not specify operation types through variables
- Linux上oracle和mysql的启动,关闭,重启
- 网络模型——OSI模型与TCP/IP模型
- FM信号、调制信号和载波
猜你喜欢

Sword finger offer II 027 Palindrome linked list

电子学:第012课——实验 11:光和声

CVPR 2022 Oral 2D图像秒变逼真3D物体

To understand the difference between Gram-positive and Gram-negative bacteria and the difference in pathogenicity

网络模型——OSI模型与TCP/IP模型

Ubuntu18下登录mysql 5.7设置root密码

Anaconda based module installation and precautions

FM信号、调制信号和载波

C # set up FTP server and realize file uploading and downloading

将数据导入到MATLAB
随机推荐
洛谷P3313 [SDOI2014]旅行(树链+边权转点权)
C # set up FTP server and realize file uploading and downloading
417-二叉树的层序遍历1(102. 二叉树的层序遍历、107.二叉树的层次遍历 II、199.二叉树的右视图、637.二叉树的层平均值)
Mr. Tang's lecture on operational amplifier (Lecture 7) -- Application of operational amplifier
Matlab code format one click beautification artifact
TCP与UDP
数论模板啊
Importer des données dans MATLAB
420-二叉树的层序遍历2(429. N 叉树的层序遍历、515.在每个树行中找最大值、116.填充每个节点的下一个右侧节点指针、104.二叉树的最大深度、111.二叉树的最小深度)
Application of can optical transceiver of ring network redundant can/ optical fiber converter in fire alarm system
1742. maximum number of small balls in the box
Ubuntu18下登录mysql 5.7设置root密码
Can bus working condition and signal quality "physical examination"
【莫比乌斯反演】
MySQL simple permission management
Number theory template
Modeling and fault simulation of aircraft bleed system
What are the problems with traditional IO? Why is zero copy introduced?
CAN透传云网关CANIOT,CANDTU记录CAN报文远程收发CAN数据
洛谷P2486 [SDOI2011]染色(树链+线段树 + 树上区间合并 )