当前位置:网站首页>数据链路层及网络层协议要点
数据链路层及网络层协议要点
2022-07-08 00:36:00 【威斯布鲁克.猩猩】
目录
数据链路层
点对点协议PPP
网络层及IP协议
网络层提供数据报服务
A类地址:1.0.0.0-127.0.0.0
B类地址:128.0.0.0-191.255.255.255
C类地址:192.0.0.0-223.255.255.255
D类地址:224.0.0.0-239.255.255.255
E类地址:240.0.0.0-255.255.255.254
0.0.0.0 全零地址为:当前主机255.255.255.255 全1地址为:当前子网的广播地址
地址解析协议ARP
IP层转发分组的流程
划分子网
划分子网增加了灵活性,但却减少了能够连接在网络上的主机总数。
通过子网掩码计算子网内主机数、子网数、主机总数
先知条件:子网掩码也是一个32位的数字,它对应的IP地址网络标识部分的位全部为"1",对应IP地址主机标识的部分则全部为"0".
eg:子网掩码:255.255.224.0
———二进制表示:11111111.11111111.11100000.00000000
共有13个"0"
子网内主机数:2^13 - 2 = 8190
减去2的原因是:全零地址为:当前主机
全1地址为:当前子网的广播地址子网数:
舍弃8个"0",余5个"0"(B类地址,所以需要舍弃8个"0")
256 / (2^5) = 8 或者 B类地址除去网络标志的16个"1",剩3个"1",2^3 = 8
主机总数:(子网内主机数 * 子网数) 8190 * 8 = 65024
eg1:已知IP地址是141.14.72.24,子网掩码是255.255.192.0,试求网络地址。
eg2:上例中,若子网掩码改为255.255.224.0,试求网络地址,讨论所得结果。
不同的掩码的效果是不同的,上面两个B类地址由于不同的子网掩码得出了相同的网络地址,但是所在子网的最大主机数是不同的。
注意:任何数和255&后都是其本身,因为255是全1
使用子网时分组的转发
私有地址:
私有地址(private address)也叫专用地址,它们不会在全球使用,只具有本地意义(局域网内)。A类私有地址:10.0.0.0/8,范围是:10.0.0.0~10.255.255.255B类私有地址:172.16.0.0/12,范围是:172.16.0.0~172.31.255.255C类私有地址:192.168.0.0/16,范围是:192.168.0.0~192.168.255.255对比:A类地址:1.0.0.0-127.0.0.0B类地址:128.0.0.0-191.255.255.255C类地址:192.0.0.0-223.255.255.255D类地址:224.0.0.0-239.255.255.255E类地址:240.0.0.0-255.255.255.254
边栏推荐
- How mysql/mariadb generates core files
- Beaucoup d'enfants ne savent pas grand - chose sur le principe sous - jacent du cadre orm, non, ice River vous emmène 10 minutes à la main "un cadre orm minimaliste" (collectionnez - le maintenant)
- MySQL数据库(2)
- I don't know. The real interest rate of Huabai installment is so high
- MySQL查询为什么没走索引?这篇文章带你全面解析
- ANSI / nema- mw- 1000-2020 magnetic iron wire standard Latest original
- Why does the updated DNS record not take effect?
- 2022国内十大工业级三维视觉引导企业一览
- Sum of submatrix
- Version 2.0 of tapdata, the open source live data platform, has been released
猜你喜欢

【目标跟踪】|DiMP: Learning Discriminative Model Prediction for Tracking

Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布

Many friends don't know the underlying principle of ORM framework very well. No, glacier will take you 10 minutes to hand roll a minimalist ORM framework (collect it quickly)
![[SolidWorks] modify the drawing format](/img/3c/b00e4510b1e129069140c2666c0727.png)
[SolidWorks] modify the drawing format

A comprehensive and detailed explanation of static routing configuration, a quick start guide to static routing

pb9.0 insert ole control 错误的修复工具

How to make enterprise recruitment QR code?
![[target tracking] |atom](/img/33/529b483a0a848e0e4263ba24462d5c.png)
[target tracking] |atom

咋吃都不胖的朋友,Nature告诉你原因:是基因突变了

Introduction to ADB tools
随机推荐
QML fonts use pixelsize to adapt to the interface
The numerical value of the number of figures thought of by the real-time update of the ranking list
【SolidWorks】修改工程图格式
微信小程序uniapp页面无法跳转:“navigateTo:fail can not navigateTo a tabbar page“
分布式定时任务之XXL-JOB
批次管控如何实现?MES系统给您答案
If time is a river
鼠标事件-事件对象
C语言-模块化-Clion(静态库,动态库)使用
Why did MySQL query not go to the index? This article will give you a comprehensive analysis
Vim 字符串替换
adb工具介绍
Usage of hydraulic rotary joint
How to make the conductive slip ring signal better
如何用Diffusion models做interpolation插值任务?——原理解析和代码实战
C语言-Cmake-CMakeLists.txt教程
Is it necessary for project managers to take NPDP? I'll tell you the answer
碳刷滑环在发电机中的作用
Introduction to ADB tools
液压旋转接头的使用事项

























































