当前位置:网站首页>IP protocol from 0 to 1
IP protocol from 0 to 1
2022-07-31 16:39:00 【Xiaopaicai learns java】
Network layer protocol: IP protocol Internet Protocol
Responsibilities of the network layer: realize the communication between the host and the host across the local area network, and complete the routing function
Routing problem: solve the problem of long-term goals and short-term goals, and solve the problem of short-term goals through long-term goals
IP address:
IPV4: 32-bit unsigned positive number (4 bytes), usually expressed in dotted decimal: 127.0.0.1
IPV6: 128-bit unsigned integer
——————————————————————————————————————————
IP address consists of routing number + host number.
Disassembly of the network number:
1, static mode: divided into 5 types of networks
Class A network IP: The network number occupies 8 bits, the first digit is 0, and the host number occupies 3 bytes (8 bits * 3)
For example: 10.192.93.2 into binary: 0b 0000 1010 . 192.93.2
The network number is 8 bytes of money: 0000 1010 -> 10.0.0.0 is the network number
Host ID: 0.192.93.2
2, dynamic, adds a netmask
Netmask: Unsigned 32-bit integer, characteristic, all 1s in front, all 0s in the back
For example: mask 224.0.0.0, written in binary: 1110 0000.0.0.0, the first three digits are all 1s, followed by all 0s, 1110 0000.0.0.0 and / 3 This way of writing expresses the same thing, both meannetmask: 224.0.0.0;
ip address = network number + host number
Calculation of network number and host number:
Special IP address
If the host number is all 0 (network number), it will not be allocated. If the host number is all 1 (broadcast number), it will not be allocated.
127.0.0.0/8 is reserved as the loopback address,
IP addresses are divided into intranet and public addresses.
Intranet IP range:
The IPs of the same intranet cannot be duplicated, and the host IPs of different intranets can be duplicated, but the external IPs cannot be duplicated.
——————————————————————————————————————————
IP routing and forwarding function
——————————————————————————————————————————
IP protocol header parsing
DNS Protocol: Domain Name Resolution Protocol
In order to solve the problem that IP addresses are difficult to remember, a protocol for resolving IP addresses using domain names is specified.
边栏推荐
- 牛客 HJ17 坐标移动
- 6-22 Vulnerability exploit - postgresql database password cracking
- 最新神作!阿里巴巴刚出炉的面试参考指南(泰山版),我直接狂刷29天
- 【luogu P8326】Fliper(图论)(构造)(欧拉回路)
- 研发过程中的文档管理与工具
- js的toString方法
- .NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
- Intelligent bin (9) - vibration sensor (raspberries pie pico implementation)
- Small program: Matlab solves differential equations "recommended collection"
- 多主复制的适用场景(1)-多IDC
猜你喜欢
LevelSequence源码分析
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
复杂高维医学数据挖掘与疾病风险分类研究
[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development
你辛辛苦苦写的文章可能不是你的原创
adb shell error error: device unauthorized
Unity 之 图集属性详解和代码示例 -- 拓展一键自动打包图集工具
Design and Implementation of Compiler Based on C Language
Premiere Pro 2022 for (pr 2022)v22.5.0
How to switch remote server in gerrit
随机推荐
LeetCode_733_图像渲染
Small program: Matlab solves differential equations "recommended collection"
智能垃圾桶(八)——红外对管传感器(树莓派pico)
After the form is submitted, the page does not jump [easy to understand]
Replication Latency Case (1) - Eventual Consistency
Graham's Scan method for solving convex hull problems
gerrit中如何切换远程服务器
The new BMW 3 Series is on the market, with safety and comfort
6. 使用 Postman 工具高效管理和测试 SAP ABAP OData 服务
Design and Implementation of Compiler Based on C Language
[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development
【TypeScript】深入学习TypeScript类型操作
网站漏洞修复服务商关于越权漏洞分析
2022年整理LeetCode最新刷题攻略分享(附中文详细题解)
2022年必读的12本机器学习书籍推荐
第05章 存储引擎【1.MySQL架构篇】【MySQL高级】
Anaconda如何顺利安装CV2
你辛辛苦苦写的文章可能不是你的原创
复制延迟案例(1)-最终一致性
6-22 Vulnerability exploit - postgresql database password cracking