当前位置:网站首页>【TCP/IP】Network Model
【TCP/IP】Network Model
2022-07-31 09:02:00 【Poyun V】
【TCP/IP】网络模型
目录
1.作用
实现网络通信
2.总体概览
3.Introduction to each layer
1.应用层
最上层的,dealing with users(That is, the application software we can touch is implemented in the application layer)
应用层为
用户
提供的功能:Eg:
HTTP
,FTP
,TELNET
,DNS
,SMTP
注意
:The application layer does not care how the data is transmitted,就像你想寄快递
,Just give your express package to the courier,这个包裹
就相当于数据
,怎么送,你不关心,That's a courier thing
2.传输层
This transport layer is equivalent
快递员
,Transport application layer data packets,对应用层
Provides network support
应用层>>>传输层>>>应用层
传输层的两个协议:TCP和UDP
TCP
: 传输控制协议最大的特点:保证
可靠传输
UDP
:It is a name
佛系
,Just simple send数据报
,There is no guarantee that the datagram will arrive,但是效率很高(Like you call a courier:The courier delivered quickly,But it does not guarantee that the package you give will work100%
送到目的地.)
The origin of the port:
当
设备
作为接收方
时,system to transmit数据包
sent to the application,But a device may have很多应用
receiving or transmitting data,需要一个编号
Separate applications,这个编号
就是端口
For Example
:1.
web端口
通常是80
端口2.
22
端口通常是远程登录服务器
用的3.Our usual browser,We open a new one every time
标签栏
,The system will create a temporary for them端口号
(Because each process is one独立
的进程)
3.网络层
举个例子:
包裹
交给快递员
,快递员how to deliver
目的地,这个过程,采用飞机?大炮,车车?等等,This process is done by the network layer(Not too strict!!), 嗯…你想想
快递系统
,快递系统决定
Where does the courier go,perform the tasks of that stage,这个快递系统
就是相当于网络层
===哼哼哈嘿!!!
IP
协议:
这是网络层
最重要
的协议(相当于The courier company's shipping express运输工具
)
IP报文
:将传输层的报文
作为数据部分
,再加上IP包
组成IP报文
IP分片
:一般是IP报文
超过MTU
(The specified bytes of general Ethernet are 1500字节),就会将IP报文
Perform sharding operations.
IP
地址
就是相当于我们的
快递单号
组成:网络号+主机号
1.
网络号
:负责标识该IP地址
属于那个子网
的2.
主机号
:Responsible for uniformity of identification子网
下面的不同主机
网络号&How to calculate host number?
IP地址与子网掩码
按位与
运算:比如 10.100.122.0/24,后面的
/24
表示就是255.255.255.0
子网掩码,进行按位与
的运算得到网络号
The same operation is performed to invert the subnet mask,然后与IP地址进行
按位与
的运算,可以得到主机号
IP路由
:
就是相当于
快递中转站
IP寻址
Tell us where to go next,Like the equivalent of a navigation system.
4.网络接口层
This can be understood as the courier who really rides your courier on the road
小摩托
in transport
最重要的MAC
帧
边栏推荐
- 服务器上解压文件时提示“gzip: stdin: not in gzip format,tar: Child returned status 1,tar: Error is not recovera“
- 【MySQL功法】第3话 · MySQL中常见的数据类型
- 二叉树的搜索与回溯问题(leetcode)
- Flutter Paystack implements all options
- 科目三:左转弯
- MySQL 数据库基础知识(系统化一篇入门)
- MySQL 的几种碎片整理方案总结(解决delete大量数据后空间不释放的问题)
- [MySQL exercises] Chapter 5 · SQL single table query
- 第八章 、接口
- SSM integration case study (detailed)
猜你喜欢
随机推荐
六、MFC文档类(单文档和多文档)
【插值与拟合】
我的创作纪念日
【Redis高手修炼之路】Jedis——Jedis的基本使用
来n遍剑指--07. 重建二叉树
如何使用mysql binlog 恢复数据
JSP config对象的简介说明
手写promise
JSP application对象简介说明
文件的逻辑结构与物理结构的对比与区别
利用frp服务器进行内网穿透ssh访问
JSP response,request操作中(中文乱码)-如何解决呢?
SQL join table (inner join, left join, right join, cross join, full outer join)
JSP page对象简介说明
SSM整合案例分析(详解)
spark过滤器
35-Jenkins-共享库应用
(C语言基础)原样输入输出
基于学生成绩管理系统(附源代码及数据库)
MySQL 高级(进阶) SQL 语句 (一)