当前位置:网站首页>数据链路层及网络层协议要点
数据链路层及网络层协议要点
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
边栏推荐
- Version 2.0 of tapdata, the open source live data platform, has been released
- Introduction à l'outil nmap et aux commandes communes
- C language -cmake cmakelists Txt tutorial
- Remote sensing contribution experience sharing
- 为什么更新了 DNS 记录不生效?
- Voice of users | understanding of gbase 8A database learning
- The method of using thread in PowerBuilder
- Version 2.0 of tapdata, the open source live data platform, has been released
- ANSI / NEMA- MW- 1000-2020 磁铁线标准。. 最新原版
- QML fonts use pixelsize to adapt to the interface
猜你喜欢
图解网络:揭开TCP四次挥手背后的原理,结合男女朋友分手的例子,通俗易懂
【目标跟踪】|DiMP: Learning Discriminative Model Prediction for Tracking
#797div3 A---C
A comprehensive and detailed explanation of static routing configuration, a quick start guide to static routing
碳刷滑环在发电机中的作用
Optimization of ecological | Lake Warehouse Integration: gbase 8A MPP + xeos
Wechat applet uniapp page cannot jump: "navigateto:fail can not navigateto a tabbar page“
Redux使用
burpsuite
如何让导电滑环信号更好
随机推荐
Nmap tool introduction and common commands
剑指 Offer II 041. 滑动窗口的平均值
静态路由配置全面详解,静态路由快速入门指南
I don't know. The real interest rate of Huabai installment is so high
Redismission source code analysis
Redisson分布式锁解锁异常
云原生应用开发之 gRPC 入门
The circuit is shown in the figure, r1=2k Ω, r2=2k Ω, r3=4k Ω, rf=4k Ω. Find the expression of the relationship between output and input.
In depth analysis of ArrayList source code, from the most basic capacity expansion principle, to the magic iterator and fast fail mechanism, you have everything you want!!!
Sum of submatrix
A comprehensive and detailed explanation of static routing configuration, a quick start guide to static routing
Cross modal semantic association alignment retrieval - image text matching
List of top ten domestic industrial 3D visual guidance enterprises in 2022
《ClickHouse原理解析与应用实践》读书笔记(7)
批次管控如何实现?MES系统给您答案
电路如图,R1=2kΩ,R2=2kΩ,R3=4kΩ,Rf=4kΩ。求输出与输入关系表达式。
C语言-Cmake-CMakeLists.txt教程
GBASE观察 | 数据泄露频发 信息系统安全应如何守护
ANSI / NEMA- MW- 1000-2020 磁铁线标准。. 最新原版
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run