当前位置:网站首页>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.


边栏推荐
- TypeError: unhashable type: ‘list‘
- 动态规划(一)
- C language "the third is" upgrade (mode selection + AI chess)
- 关于柱状图的经典画法总结
- Masterless replication system (1) - write DB when node fails
- Applicable scenario of multi-master replication (2) - client and collaborative editing that require offline operation
- 【pytorch】pytorch 自动求导、 Tensor 与 Autograd
- Applicable Scenarios of Multi-Master Replication (1) - Multi-IDC
- The 2nd China PWA Developer Day
- jeecg主从数据库读写分离配置「建议收藏」
猜你喜欢

联邦学习:联邦场景下的多源知识图谱嵌入

使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版

【网络通信三】研华网关Modbus服务设置

AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)

对话庄表伟:开源第一课

.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的
![[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development](/img/f6/311d5a4c70993df6291250d2025d3f.jpg)
[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development

Intelligent bin (9) - vibration sensor (raspberries pie pico implementation)

复杂高维医学数据挖掘与疾病风险分类研究

仿生毛毛虫机器人源码
随机推荐
最新神作!阿里巴巴刚出炉的面试参考指南(泰山版),我直接狂刷29天
.NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
最后写入胜利(丢弃并发写入)
Replication Latency Case (1) - Eventual Consistency
C语言-函数
Character pointer assignment [easy to understand]
IP协议从0到1
arm按键控制led灯闪烁(嵌入式按键实验报告)
Applicable Scenarios of Multi-Master Replication (1) - Multi-IDC
Dialogue with Zhuang Biaowei: The first lesson of open source
[Source code analysis] BeanFactory and FactoryBean
tensorflow2.0 cnn(layerwise)
[pytorch] pytorch automatic derivation, Tensor and Autograd
牛客 HJ3 明明的随机数
关于柱状图的经典画法总结
Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong
华为顶级工程师历时9年总结的“趣谈网络协议”PDF文档,太强了
牛客 HJ20 密码验证合格程序
基于ABP实现DDD
The 2nd China PWA Developer Day