博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
什么是NAT?
阅读量:4140 次
发布时间:2019-05-25

本文共 1414 字,大约阅读时间需要 4 分钟。

       看看维基百科的解释, 太棒了:

       Network address translation (NAT) is a methodology of modifying  information in  (IP)  packet headers while they are in transit across a traffic  for the purpose of remapping one IP  into another.

   意思是说:nat会改变IP数据包。

   Most often today, NAT is used in conjunction with IP masquerading which is a technique that hides an entire IP address space, usually consisting of  IP addresses (), behind a single IP address in another, usually public address space. This mechanism is implemented in a routing device that uses  translation tables to map the "hidden" addresses into a single IP address and readdresses the outgoing Internet Protocol packets on exit so they appear to originate from the routing device. In the reverse communications path, responses are mapped back to the originating IP addresses using the rules ("state") stored in the translation tables. The translation table rules established in this fashion are flushed after a short period unless new traffic refreshes their state.

   意思是说:局部pc一直对外。 外部无法获知具体的局部信息。

    The method enables communication through the router only when the conversation originates in the masqueraded network, since this establishes the translation tables. For example, a  in the masqueraded network can browse a website outside, but a web browser outside could not browse a web site hosted within the masqueraded network. 

    意思是说: 外部无法首先与内部沟通, 因为没有转换表, 无法沟通。 必须是内部先与外部沟通。

    欣赏一个图, 结束本文:

    

你可能感兴趣的文章
【Python】学习笔记——-7.0、面向对象编程
查看>>
【Python】学习笔记——-7.2、访问限制
查看>>
【Python】学习笔记——-7.3、继承和多态
查看>>
【Python】学习笔记——-7.5、实例属性和类属性
查看>>
git中文安装教程
查看>>
虚拟机 CentOS7/RedHat7/OracleLinux7 配置静态IP地址 Ping 物理机和互联网
查看>>
Jackson Tree Model Example
查看>>
常用js收集
查看>>
如何防止sql注入
查看>>
springmvc传值
查看>>
在Eclipse中查看Android源码
查看>>
Android使用webservice客户端实例
查看>>
[转]C语言printf
查看>>
C 语言 学习---获取文本框内容及字符串拼接
查看>>
C 语言学习 --设置文本框内容及进制转换
查看>>
C 语言 学习---判断文本框取得的数是否是整数
查看>>
C 语言 学习---ComboBox相关、简单计算器
查看>>
C 语言 学习---ComboBox相关、简易“假”管理系统
查看>>
C 语言 学习---回调、时间定时更新程序
查看>>
C 语言 学习---复选框及列表框的使用
查看>>