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


边栏推荐
猜你喜欢

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

EF Core 2.2中将ORM框架生成的SQL语句输出到控制台

tooltips使用教程(鼠标悬停时显示提示)

6-22 Vulnerability exploit - postgresql database password cracking

Premiere Pro 2022 for (pr 2022)v22.5.0

华为顶级工程师历时9年总结的“趣谈网络协议”PDF文档,太强了

对话庄表伟:开源第一课

T - sne + data visualization parts of the network parameters

Foreign media right, apple on May be true in inventory

使用互相关进行音频对齐
随机推荐
动态规划之线性dp(上)
ansible study notes 02
Qt practical cases (54) - using transparency QPixmap design pictures
在资源管理类中提供对原始资源的访问——条款15
复杂高维医学数据挖掘与疾病风险分类研究
【Yugong Series】July 2022 Go Teaching Course 021-Slicing Operation of Go Containers
After the form is submitted, the page does not jump [easy to understand]
动态规划(一)
jeecg master-slave database read-write separation configuration "recommended collection"
【7.28】代码源 - 【Fence Painting】【合适数对(数据加强版)】
LeetCode_733_Image rendering
小程序:matlab解微分方程「建议收藏」
牛客 HJ17 坐标移动
Applicable Scenarios of Multi-Master Replication (1) - Multi-IDC
Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong
【7.29】代码源 - 【排列】【石子游戏 II】【Cow and Snacks】【最小生成数】【数列】
2022年整理LeetCode最新刷题攻略分享(附中文详细题解)
6-22 Vulnerability exploit - postgresql database password cracking
ansible学习笔记02
Foreign media right, apple on May be true in inventory