当前位置:网站首页>Key points of data link layer and network layer protocol
Key points of data link layer and network layer protocol
2022-07-08 02:03:00 【Westbrook chimpanzee】
Catalog
Network layer and IP agreement
The network layer provides datagram Services
Address resolution protocol ARP
IP Layer forwarding packet flow
Forwarding packets when using subnets
Data link layer
Point to point protocol PPP
Network layer and IP agreement
The network layer provides datagram Services
A Class address :1.0.0.0-127.0.0.0
B Class address :128.0.0.0-191.255.255.255
C Class address :192.0.0.0-223.255.255.255
D Class address :224.0.0.0-239.255.255.255
E Class address :240.0.0.0-255.255.255.254
0.0.0.0 All zero address is : Current host255.255.255.255 whole 1 The address is : The broadcast address of the current subnet
Address resolution protocol ARP
IP Layer forwarding packet flow
Divide subnets
Subnetting adds flexibility , But it reduces the total number of hosts that can connect to the network .
Calculate the number of hosts in the subnet through the subnet mask 、 Number of subnets 、 Total number of hosts
Prophet condition : The subnet mask is also a 32 Digit number , Its corresponding IP All the bits in the network identification part of the address are "1", Corresponding IP The part of the address host ID is "0".
eg: Subnet mask :255.255.224.0
——— Binary representation :11111111.11111111.11100000.00000000
share 13 individual "0"
The number of hosts in the subnet :2^13 - 2 = 8190
subtract 2 The reason is that : All zero address is : Current host
whole 1 The address is : The broadcast address of the current subnetNumber of subnets :
Abandon 8 individual "0", more than 5 individual "0"(B Class address , So we need to give up 8 individual "0")
256 / (2^5) = 8 perhaps B Class address removes the network flag 16 individual "1", Remnant 3 individual "1",2^3 = 8
Total number of hosts :( The number of hosts in the subnet * Number of subnets ) 8190 * 8 = 65024
eg1: It is known that IP The address is 141.14.72.24, The subnet mask is 255.255.192.0, Try to find the network address .
eg2: In the above example , If the subnet mask is changed to 255.255.224.0, Try to find the network address , The results of the discussion .
Different masks have different effects , The top two B Class address gets the same network address due to different subnet masks , But the maximum number of hosts in the subnet is different .
Be careful : Any number and 255& The latter is itself , because 255 It's all. 1
Forwarding packets when using subnets
Private address :
Private address (private address) It's also called a private address , They will not be used around the world , Local significance only ( In LAN ).A Class private address :10.0.0.0/8, The scope is :10.0.0.0~10.255.255.255B Class private address :172.16.0.0/12, The scope is :172.16.0.0~172.31.255.255C Class private address :192.168.0.0/16, The scope is :192.168.0.0~192.168.255.255contrast :A Class address :1.0.0.0-127.0.0.0B Class address :128.0.0.0-191.255.255.255C Class address :192.0.0.0-223.255.255.255D Class address :224.0.0.0-239.255.255.255E Class address :240.0.0.0-255.255.255.254
边栏推荐
- 保姆级教程:Azkaban执行jar包(带测试样例及结果)
- Keras' deep learning practice -- gender classification based on inception V3
- Codeforces Round #643 (Div. 2)——B. Young Explorers
- 科普 | 什么是灵魂绑定代币SBT?有何价值?
- 日志特征选择汇总(基于天池比赛)
- Usage of hydraulic rotary joint
- Can you write the software test questions?
- How to realize batch control? MES system gives you the answer
- Flutter 3.0框架下的小程序运行
- Cross modal semantic association alignment retrieval - image text matching
猜你喜欢
很多小伙伴不太了解ORM框架的底层原理,这不,冰河带你10分钟手撸一个极简版ORM框架(赶快收藏吧)
咋吃都不胖的朋友,Nature告诉你原因:是基因突变了
牛熊周期与加密的未来如何演变?看看红杉资本怎么说
Nacos microservice gateway component +swagger2 interface generation
OpenGL/WebGL着色器开发入门指南
Ml backward propagation
Partage d'expériences de contribution à distance
Apache多个组件漏洞公开(CVE-2022-32533/CVE-2022-33980/CVE-2021-37839)
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)
Usage of hydraulic rotary joint
随机推荐
力扣4_412. Fizz Buzz
静态路由配置全面详解,静态路由快速入门指南
Nanny level tutorial: Azkaban executes jar package (with test samples and results)
Redismission source code analysis
VIM use
微软 AD 超基础入门
喜欢测特曼的阿洛
鱼和虾走的路
C语言-模块化-Clion(静态库,动态库)使用
cv2读取视频-并保存图像或视频
谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
PHP calculates personal income tax
leetcode 869. Reordered Power of 2 | 869. 重新排序得到 2 的幂(状态压缩)
快手小程序担保支付php源码封装
日志特征选择汇总(基于天池比赛)
很多小夥伴不太了解ORM框架的底層原理,這不,冰河帶你10分鐘手擼一個極簡版ORM框架(趕快收藏吧)
Version 2.0 of tapdata, the open source live data platform, has been released
JVM memory and garbage collection -4-string
常见的磁盘格式以及它们之间的区别
If time is a river