当前位置:网站首页>Network - network layer
Network - network layer
2022-07-28 06:54:00 【Xiao Qiao】
One 、 Network layer functions
Address management and routing .
Two 、 Knowledge involved in the network layer
host : Equipped with IP Address , But devices that do not perform routing control ;
Router : Both equipped with IP Address , And routing control ;
route : It belongs to the technology used in routers , It mainly plans the route of network data transmission ( Which direction is closer )
node : Host and router ;
Segment division :
IP The address is divided into two parts , Network number and host number
network number : Ensure that the two network segments connected with each other have different identifications
Host number : Within the same network segment , Hosts have the same network number , But there are different host numbers
IP Format of address :4 Parts of , Every part is 0~255( Decimal system )
classification :A~E, There are five types of addresses, each of which has a range
| Category name | network number | Host number |
|---|---|---|
| A | The first 1 Parts of | after 3 Parts of |
| B | front 2 Parts of | after 2 Parts of |
| C | front 3 Parts of | Last 1 Parts of |
The host number range indicates the network , How many hosts can be put ;
DHCP technology :
The new host nodes in the subnet can be automatically assigned IP Address , Avoid manual management IP, Generally, the router comes with DHCP, It can be seen as DHCP The server ;
Subnet mask :
Format and IP The address is the same (32 Binary number )
effect : distinguish IP How to distinguish the network number and host number of the address ?IP Address and subnet mask are calculated by bit and , Get the network number , Negative network number , It's the host number ;
Application scenarios : Distinguish whether it is the same network segment IP, A host sends a datagram to the destination host , Use the subnet mask to separate the hosts IP And purpose IP Get the network number , contrast , The same is the same network segment ;
special IP: The host addresses are all 1, Show broadcast ( Purpose IP It is no longer locating a host , Instead, all hosts in the network segment , Will send this datagram ) This machine ip:127.0.0.1
IP The number of addresses is limited :
CIDR To some extent, it alleviates IP The address is insufficient ( Improved utilization , Reduce waste , however IP The absolute upper limit of address has not increased )
Solution :
① Dynamically assign addresses : Only devices connected to the network are assigned IP Address , So the same MAC Address devices , Every time you access the Internet , Got IP The address is not necessarily the same ;
②NAT technology : Be able to put private IP When communicating with the outside world, it turns to the overall situation IP, private IP And the big picture IP Mutual transformation technology
(NAPT technology : Provide LAN host IP+ process port and Router public network IP+port Means of mutual transformation )
③IPv6: Not at all IPv4 Simple upgrade of , These are two unrelated agreements , Not compatible with each other ,IPv6 use 16 byte 128 To represent a IP Address , But at the moment IPv6 It's not universal yet ;
边栏推荐
- Test interview questions collection (V) | automated testing and performance testing (with answers)
- 测试面试题集锦(三)| 计算机网络和数据库篇(附答案)
- FTP service
- Personal understanding of Chinese remainder theorem
- Brief analysis of order transaction
- How to simulate the implementation of strcpy library functions
- 技术分享 | 如何模拟真实使用场景?mock 技术来帮你
- Technology sharing | do you know the functions of the server interface automated testing and requests library?
- 单元测试框架Jest搭配TypeScript的安装与配置
- HDU-5783 Divide the Sequence(贪心水题)
猜你喜欢

SSAO by computer shader (III)

Using C language to realize three piece chess games

JS reverse question 100 - question 1

Which is the best and most cost-effective air conduction headset recommended

archery数据库审核平台部署

Technology sharing | send requests using postman

Build php7 private warehouse

cocos2d-x 学习笔记——瓦片地图TiledMap

Source code analysis of countdownlatch of AQS

Yapi vulnerability hanging horse program chongfu.sh processing
随机推荐
技术分享 | 如何模拟真实使用场景?mock 技术来帮你
How to calculate the size of structure, segment and Consortium (common body)
MySQL主主
Analysis of the semaphore source code of AQS
NFS shared storage service
网络——传输层(详细版)
HDU-5806-NanoApeLovesSequenceⅡ(尺取法)
Pku-2739-sum of constructive prime numbers
如何描述一个BUG以及BUG级别的定义、生命周期
Using C language to realize three piece chess games
Hdu-5806-nanoapelovesequence Ⅱ (ruler method)
Test interview questions collection (I) | common required questions and procedures of software testing (with answers)
FTP service
NAT和PAT的原理及配置
JS四则运算重新封装,解决精度丢失问题
How about air conduction Bluetooth headset? It's the most worthwhile air conduction headset to start with
File operation in C language
archery数据库审核平台部署
KVM hot migration
软件开发中常见模型