当前位置:网站首页>Network protocol details: IP
Network protocol details: IP
2022-07-27 04:58:00 【Gold content of Xiaobai】
Catalog
Find the host number and network number
4. Intranet address / Public address
Address specially used for intranet
Of the same network IP Address cannot be repeated
IP The core function of address
You have to ask me what is the most important thing about the network layer , I'll tell you , yes IP.
IP What is the most important thing in ?IP Address
Two kinds of IP Address
IP Address is divided into IPV4 and IPV6, Now the former is used most , So we only talk about the former .
IPV4 It's a 32 Bit unsigned integer , Expressed in decimal dot distribution , such as 192.184.145.56
Take apart IP Address
IP Address is divided into Network number and host number .
We can imagine the network number as the first few digits of our ID card , The network number in the same network is the same
The host number is behind the ID card , Each host is unique
Let's talk about the disassembly method .
1. Static mode
Is not commonly used , Just know there is .
2. Dynamic mode
Dynamic mode will first lead to a concept : Network mask
Network mask (mask)
32 An integer , The front is full of 1, Behind all 0
for example 11111111 11111110 00000000 00000000
It can also be directly expressed in numbers , for example :/21 Express 21 individual 1 , The rest is 0
Find the host number and network number
use IP Address & mask = network number
use IP Address & (~mask) = Host number
for example IP Address :192.168.13.255/24
We can calculate the network number is :
192.168.13.0
The host number is :
0.0.0.255
special IP Address
1. network number
All host numbers are 0 Of IP Will not be assigned to the host , This is called network number
for example IP The address is :192.168.13.193/24 , Its network number is :192.168.13.0
2. Radio number
All host numbers are 1 Of IP Will not be assigned to the host , This is called the broadcast number
for example IP The address is :192.168.13.193/24 , Its network number is :192.168.13.255
3. Loopback address
127 start Of IP Are loopback addresses
The most common ones are :127.0.0.1
4. Intranet address / Public address
Relationship
The intranet address can be accessed internally , You can also visit the public address .
You can't access the intranet address from the external address . You can't just take my money from Alipay with a big Taobao .
Concept map
That's probably what it means

Because of this , The intranet address cannot be used as a server , Because you can't access outside the network
Address specially used for intranet
Look at the picture
Of the same network IP Address cannot be repeated
To put it bluntly , Different Intranet ,IP The address can be repeated , It is not allowed in the same intranet .
IP The core function of address
This has already been said in the chapter of understanding the network , We send UDP/TCP When the agreement , Put the machine IP( Carry in advance ) And the target IP(Socket Write well ) send out , these two items. IP Direct connection is a long-term goal , Then we began to look for short-term goals ( Through the routing table maintained inside the host )
ps: Devices working above the network layer have routing tables , The switch did not

边栏推荐
猜你喜欢

冒泡排序(详细)

Idea 如何新建一个groovy的项目(图文详细解释)

Yolov4网络详解

「Photoshop2021入门教程」调整图片到不同的长宽比

The digital China Construction Summit ended with a list of massive pictures on site!

Plato Farm有望通过Elephant Swap,进一步向外拓展生态

R-score reproduction R-Precision evaluation index quantitative text generation image r-score quantitative experiment whole process reproduction (R-Precision) quantitative evaluation experiment step on

Structural mode - facade mode

Photoshop裁剪工具隐藏技巧

Approval of meeting OA
随机推荐
Idea 如何新建一个groovy的项目(图文详细解释)
STM32_ HAL_ SUMMARY_ NOTE
博云容器云、DevOps 平台斩获可信云“技术最佳实践奖”
2019强网杯upload
Dynamic routing configuration
IP 14th day notes
【搜索】Flood Fill 和 最短路模型
HCIA dynamic routing rip basic experiment
Grid layout
数组中的最大值,最小值,冒泡排序
Use unity to build a WordArt system
负数的右移
使用Photoshop出现提示“脚本错误-50出现一般Photoshop错误“
利用Power Automate,轻松下载Power BI报告中的数据
How can I index the Oracle database field date?
strlen和sizeof的区别
【搜索】DFS之连通性模型 + 搜索顺序
双向重发布实验
【Acwing】第61场周赛 题解
【搜索】—— 多源BFS + 最小步数模型