当前位置:网站首页>Network address translation nat
Network address translation nat
2022-06-22 14:37:00 【Swarford】
introduce :
IPv4 The address is in danger of running out
NAT Means to pass through Private network address Convert to Public network address , So as to hide IP Address .
Install on the router connecting the private network to the Internet NAT Software (NAT Router ), At least one global IP Address
All hosts using private addresses communicate with the outside world , Need to convert private addresses to global addresses IP Address
function :
①NAT Make a large number of internal private addresses share a small number of global addresses IP Come and connect with the Internet . Because the private network can be reused , So section Save a lot of address consumption
② foreign The network structure is hidden , Reduce the risk of internal network attack
principle :

Suppose a host using a private address communicates with a host using a global address :
- NAT Routers from all over the world IP Assign a temporary global address to the host in the address pool IP Address 172.38.1.5, And will IP The source address of the datagram modify For this global IP Address
- The correspondence between private address and global address ( mapping ) Recorded in the NAT Conversion table in
- after forward The packet , At this time, the source address and destination address of the datagram are all global IP
- When a host on the Internet sends a datagram back ,NAT The router received the message IP The datagram , stay NAT Conversion table To find , Change the destination address to the corresponding private address , And send it to the corresponding host ; At this time, the source address of the datagram is the global address of the Internet host , The destination address is a private address
Be careful :
Ordinary routers only work at the network layer , and NAT The router needs to check the port number of the transport layer 
ask : Can the communication between the intranet host and the extranet host be initiated by the extranet first ?
You can't ! If the external network host sends datagrams ,NAT After the router receives the datagram , stay NAT The corresponding record of global address and private address cannot be found in the translation table ! The datagram cannot be forwarded to the intranet host
边栏推荐
- C # paging calculation total pages, current page data set
- 一文彻底弄懂建造者模式(Builder)
- C# 分页计算 总页数、当前页数据集合
- Madcap flare 2022, documentation in language or format
- Is the encryption market a "natural disaster" or a "man-made disaster" in the cold winter?
- 看完這篇 教你玩轉滲透測試靶機Vulnhub——DriftingBlues-5
- Specific methods and steps of PROFINET communication between s7-200smart and Fanuc robot
- 【无标题】
- 线下实体店结合VR全景,让虚拟购物更加真实
- 3dMax建模笔记(一):介绍3dMax和创建第一个模型Hello world
猜你喜欢

Getting started with go web programming: validators

防火墙基础之策略部署

数据采集之:巧用布隆过滤器提取数据摘要
![Dessert mall management system based on SSH framework [source code + database]](/img/6d/6d8ad081de9b0c0ab8c2f8aba1dcf0.png)
Dessert mall management system based on SSH framework [source code + database]

Vcip2021: super resolution using decoded information

芯片硅片与流片技术

《Kubernetes监控篇:Grafana通过自动化方式添加datasource和dashboard》

技术实践 | 场景导向的音视频通话体验优化

作为程序员,职业规划需要注意的四个阶段

Common real machine debugging plug-ins for unity commercial games
随机推荐
【考研攻略】北京交通大学网络空间安全专业2018-2022年考研数据分析
Policy deployment of firewall Foundation
Chip silicon and streaming technology
C#泛型方法
Stm32f1 and stm32subeide programming example - Optical intermittent sensor drive
Understand the quality assurance of open source software (OSS)
Unity sub thread calls UI of main thread
Offline physical stores combined with VR panorama make virtual shopping more realistic
Basic usage and FAQs of jasperreport report report generation tool
2022oracle数据库安装及使用
能让Jellyfin直接挂载阿里云盘的aliyundrive-fuse
Messiari annual report-2021
Is polardbx PG or MySQL?
Unity's rich text color sets the color to be fully transparent
Is the encryption market a "natural disaster" or a "man-made disaster" in the cold winter?
Kukai TV ADB
Transformers vit image model vector acquisition
php两个时间戳相隔多少天
机器学习之感知机
uniapp app 端截屏且保存到本地