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


边栏推荐
- Graham's Scan method for solving convex hull problems
- Flutter set the background color of the statusbar status bar and APP method (AppBar) internal consistent color.
- Oracle dynamically registers non-1521 ports
- 第05章 存储引擎【1.MySQL架构篇】【MySQL高级】
- 最后写入胜利(丢弃并发写入)
- form 表单提交后,使页面不跳转[通俗易懂]
- 软件实现AT命令操作过程
- tooltips使用教程(鼠标悬停时显示提示)
- GP 6 overall architecture study notes
- 仿生毛毛虫机器人源码
猜你喜欢

Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong

C language "the third is" upgrade (mode selection + AI chess)

6-22漏洞利用-postgresql数据库密码破解

LevelSequence源码分析

The new BMW 3 Series is on the market, with safety and comfort

仿生毛毛虫机器人源码

研发过程中的文档管理与工具

动态规划之线性dp(上)

Implementing distributed locks based on Redis (SETNX), case: Solving oversold orders under high concurrency

Design and Implementation of Compiler Based on C Language
随机推荐
.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的
单细胞测序流程(单细胞rna测序)
基于C语言的编译器设计与实现
多主复制下处理写冲突(4)-多主复制拓扑
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 失败
[pytorch] 1.7 pytorch and numpy, tensor and array conversion
After Effects 教程,如何在 After Effects 中调整过度曝光的快照?
EF Core 2.2中将ORM框架生成的SQL语句输出到控制台
在资源管理类中提供对原始资源的访问——条款15
JS基础小练习
基于Redis(SETNX)实现分布式锁,案例:解决高并发下的订单超卖,秒杀
无主复制系统(2)-读写quorum
Premiere Pro 2022 for (pr 2022)v22.5.0
多主复制的适用场景(2)-需离线操作的客户端和协作编辑
[pytorch] pytorch automatic derivation, Tensor and Autograd
牛客 HJ20 密码验证合格程序
ML.NET related resources
【C语言】LeetCode27.移除元素
.NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
字符指针赋值[通俗易懂]