当前位置:网站首页>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.
边栏推荐
- 【愚公系列】2022年07月 Go教学课程 020-Go容器之数组
- 牛客 HJ18 识别有效的IP地址和掩码并进行分类统计
- After the form is submitted, the page does not jump [easy to understand]
- Summary of the implementation method of string inversion "recommended collection"
- SringMVC中个常见的几个问题
- 6-22漏洞利用-postgresql数据库密码破解
- 牛客网刷题(三)
- jeecg master-slave database read-write separation configuration "recommended collection"
- jeecg主从数据库读写分离配置「建议收藏」
- Design and Implementation of Compiler Based on C Language
猜你喜欢
外媒所言非虚,苹果降价或许是真的在清库存
Intelligent bin (9) - vibration sensor (raspberries pie pico implementation)
i.MX6ULL驱动开发 | 33 - NXP原厂网络设备驱动浅读(LAN8720 PHY)
Dialogue with Zhuang Biaowei: The first lesson of open source
How Redis handles concurrent access
GP 6总体架构学习笔记
Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong
复杂高维医学数据挖掘与疾病风险分类研究
AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)
t-sne 数据可视化网络中的部分参数+
随机推荐
LeetCode_733_图像渲染
ML.NET related resources
【7.28】代码源 - 【Fence Painting】【合适数对(数据加强版)】
华为顶级工程师历时9年总结的“趣谈网络协议”PDF文档,太强了
无主复制系统(3)-Quorum一致性的局限性
无主复制系统(1)-节点故障时写DB
阿里三面:MQ 消息丢失、重复、积压问题,如何解决?
Masterless Replication System (3)-Limitations of Quorum Consistency
【C语言】LeetCode27.移除元素
Intelligent bin (9) - vibration sensor (raspberries pie pico implementation)
Implementing distributed locks based on Redis (SETNX), case: Solving oversold orders under high concurrency
【Yugong Series】July 2022 Go Teaching Course 021-Slicing Operation of Go Containers
AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)
研发过程中的文档管理与工具
Flutter gets the height of the status bar statusbar
上传图片-微信小程序(那些年的坑记录2022.4)
Replication Latency Case (3) - Monotonic Read
JS基础小练习
第05章 存储引擎【1.MySQL架构篇】【MySQL高级】
Unity 之 图集属性详解和代码示例 -- 拓展一键自动打包图集工具