当前位置:网站首页>五层网络体系结构
五层网络体系结构
2022-07-06 08:59:00 【~庞贝】
五层网络体系结构
五层网络体系结构分分别为:应用层、运输层、网络层、数据链路层、物理层。各层功能分别如下:
第五层——应用层(application layer)
(1) 应用层(application layer):是体系结构中的最高。直接为用户的应用进程提供服务。
(2) 在因特网中的应用层协议很多,如支持万维网应用的HTTP协议,支持电子邮件的SMTP协议,支持文件传送的FTP协议等等。
第四层——运输层(transport layer)
(1) 运输层(transport layer):负责向两个主机中进程之间的通信提供服务。由于一个主机可同时运行多个进程,因此运输层有复用和分用的功能。
a. 复用,就是多个应用层进程可同时使用下面运输层的服务。
b. 分用,就是把收到的信息分别交付给上面应用层中相应的进程。
(2) 运输层主要使用以下两种协议: **(1) 传输控制协议TCP(Transmission Control Protocol):**面向连接的,数据传输的单位是报文段,能够提供可靠的交付。 **(2) 用户数据包协议UDP(User Datagram Protocol):**无连接的,数据传输的单位是用户数据报,不保证提供可靠的交付,只能提供“尽最大努力交付”。
第三层——网络层(network layer)
网络层(network layer)主要包括以下两个任务:
(1) 负责为分组交换网上的不同主机提供通信服务。在发送数据时,网络层把运输层残生的报文段或用户数据报封装成分组或包进行传送。在TCP/IP体系中,由于网络层使用IP协议,因此分组也叫做IP数据报,或简称为数据报。
(2) 选中合适的路由,使源主机运输层所传下来的分组,能够通过网络中的路由器找到目的主机。
第二层——数据链路层(data link layer)
**数据链路层(data link layer):**常简称为链路层,我们知道,两个主机之间的数据传输,总是在一段一段的链路上传送的,也就是说,在两个相邻结点之间传送数据是直接传送的(点对点),这时就需要使用专门的链路层的协议。
在两个相邻结点之间传送数据时,数据链路层将网络层交下来的IP数据报组装成帧(framing),在两个相邻结点之间的链路上“透明”地传送帧中的数据。
每一帧包括数据和必要的控制信息(如同步信息、地址信息、差错控制等)。典型的帧长是几百字节到一千多字节。
注意:”透明”是一个很重要的术语。它表示,某一个实际存在的事物看起来却好像不存在一样。”在数据链路层透明传送数据”表示无力什么样的比特组合的数据都能够通过这个数据链路层。因此,对所传送的数据来说,这些数据就“看不见”数据链路层。或者说,数据链路层对这些数据来说是透明的。 (1) 在接收数据时,控制信息使接收端能知道一个帧从哪个比特开始和到哪个比特结束。这样,数据链路层在收到一个帧后,就可从中提取出数据部分,上交给网络层。 (2) 控制信息还使接收端能检测到所收到的帧中有无差错。如发现有差错,数据链路层就简单地丢弃这个出了差错的帧,以免继续传送下去白白浪费网络资源。如需改正错误,就由运输层的TCP协议来完成。
第一层——物理层(physical layer)
**物理层(physical layer):**在物理层上所传数据的单位是比特。物理层的任务就是透明地传送比特流。
边栏推荐
- Navicat Premium 创建MySql 创建存储过程
- Mongodb installation and basic operation
- Revit secondary development Hof method calls transaction
- Pytorch view tensor memory size
- Problems encountered in connecting the database of the project and their solutions
- LeetCode:498. Diagonal traversal
- 一篇文章带你了解-selenium工作原理详解
- LeetCode:394. String decoding
- KDD 2022论文合集(持续更新中)
- Export IEEE document format using latex
猜你喜欢

LeetCode:221. 最大正方形

Guangzhou will promote the construction of a child friendly city, and will explore the establishment of a safe area 200 meters around the school

Ijcai2022 collection of papers (continuously updated)

Pytest's collection use case rules and running specified use cases

LeetCode:498. 对角线遍历
![[oc]- < getting started with UI> -- common controls uibutton](/img/4d/f5a62671068b26ef43f1101981c7bb.png)
[oc]- < getting started with UI> -- common controls uibutton

项目连接数据库遇到的问题及解决

UML圖記憶技巧
![[oc foundation framework] - < copy object copy >](/img/62/c04eb2736c2184d8826271781ac7e3.png)
[oc foundation framework] - < copy object copy >

UML diagram memory skills
随机推荐
Implement window blocking on QWidget
LeetCode:673. 最长递增子序列的个数
CUDA implementation of self defined convolution attention operator
LeetCode:221. Largest Square
力扣每日一题(二)
数学建模2004B题(输电问题)
[oc]- < getting started with UI> -- common controls - prompt dialog box and wait for the prompt (circle)
Esp8266-rtos IOT development
LeetCode:387. The first unique character in the string
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
LeetCode:34. Find the first and last positions of elements in a sorted array
ESP8266-RTOS物联网开发
[OC-Foundation框架]--<Copy对象复制>
[MySQL] limit implements paging
An article takes you to understand the working principle of selenium in detail
What are the common processes of software stress testing? Professional software test reports issued by companies to share
Mise en œuvre de la quantification post - formation du bminf
BMINF的後訓練量化實現
Show slave status \ read in G_ Master_ Log_ POS and relay_ Log_ The (size) relationship of POS
BN folding and its quantification