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


边栏推荐
- 多数据中心操作和检测并发写入
- gerrit中如何切换远程服务器
- 【愚公系列】2022年07月 Go教学课程 022-Go容器之字典
- 6. 使用 Postman 工具高效管理和测试 SAP ABAP OData 服务
- 多主复制下处理写冲突(4)-多主复制拓扑
- adb shell 报错error: device unauthorized
- The arm button controls the flashing of the led light (embedded button experiment report)
- After Effects 教程,如何在 After Effects 中调整过度曝光的快照?
- go图书管理系统
- .NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
猜你喜欢

C language - function

苹果官网样式调整 结账时产品图片“巨大化”

【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】

Premiere Pro 2022 for (pr 2022)v22.5.0
![[pytorch] pytorch automatic derivation, Tensor and Autograd](/img/99/c9632a7d3f70a13e1e26b9aa67b8b9.png)
[pytorch] pytorch automatic derivation, Tensor and Autograd

外媒所言非虚,苹果降价或许是真的在清库存

Graham‘s Scan法求解凸包问题

2022年整理LeetCode最新刷题攻略分享(附中文详细题解)

Smart Trash Can (8) - Infrared Tube Sensor (Raspberry Pi pico)

Design and Implementation of Compiler Based on C Language
随机推荐
并发性,时间和相对性
【愚公系列】2022年07月 Go教学课程 021-Go容器之切片操作
基于C语言的编译器设计与实现
[pytorch] pytorch automatic derivation, Tensor and Autograd
6-22漏洞利用-postgresql数据库密码破解
GP 6 overall architecture study notes
Character pointer assignment [easy to understand]
LeetCode_733_图像渲染
【pytorch】pytorch 自动求导、 Tensor 与 Autograd
字符指针赋值[通俗易懂]
你辛辛苦苦写的文章可能不是你的原创
Baidu cloud web speed playback (is there any website available)
牛客网刷题(一)
Implementing DDD based on ABP
ML.NET related resources
Mariabackup实现Mariadb 10.3的增量数据备份
[TypeScript] In-depth study of TypeScript type operations
第05章 存储引擎【1.MySQL架构篇】【MySQL高级】
牛客 HJ17 坐标移动
C程序是如何跑起来的01 —— 普通可执行文件的构成