免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: 我是笨笨
打印 上一主题 下一主题

【请教】NAT我知道,什么是PAT呢? [复制链接]

论坛徽章:
0
21 [报告]
发表于 2004-12-29 11:41 |只看该作者

【请教】NAT我知道,什么是PAT呢?

至于IPV6纯属替别人吹牛,

都不要相信太多。

八字还没一撇,冷眼旁观就行了

论坛徽章:
0
22 [报告]
发表于 2004-12-29 17:25 |只看该作者

【请教】NAT我知道,什么是PAT呢?

简单说 pat 就是 端口地址翻译
一般是说 外部 只有一个ip 用4层的 端口 做与内部的ip 端口对应地翻译
具体配置 就比nat多一个关键字

overload

论坛徽章:
0
23 [报告]
发表于 2004-12-30 13:10 |只看该作者

【请教】NAT我知道,什么是PAT呢?

根本不存在所谓PAT的概念,是商家纂出来骗人的。
NAT就够了。

论坛徽章:
0
24 [报告]
发表于 2004-12-30 14:06 |只看该作者

【请教】NAT我知道,什么是PAT呢?

PNAT针对端口port
NAT针对网络地址

论坛徽章:
0
25 [报告]
发表于 2004-12-31 16:39 |只看该作者

【请教】NAT我知道,什么是PAT呢?

PNAT 我没有见过那个企业在用!     好像用的比较少!    比较同意JOHNBULL 大侠说的!   其实现在的公网地址没有大家说的那么少吧!   不过NAT还是要用的!   

其实大家也清楚,技术不能决定一切!   技术一直在受商业动作的控制嘛!    

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
26 [报告]
发表于 2005-01-02 10:37 |只看该作者

【请教】NAT我知道,什么是PAT呢?

Q. What is PAT, or NAT overloading?
    A. PAT, or NAT overloading, is a feature of Cisco IOS NAT and can be used to translate internal (inside local) private addresses to one or more outside (inside global—usually registered) IP addresses. Unique source port numbers on each translation are used to distinguish between the conversations.

    With NAT overload, a translation table entry containing full address and source port information is created.

Q. When configuring for PAT (NAT overloading), what is the maximum number of translations that can be made for each inside global IP address?
    A. PAT (NAT overloading) divides the available ports per global IP address into three ranges of 0-511, 512-1023, and 1024-65535. PAT (NAT overloading), assigns a unique source port for each User Datagram Protocol (UDP) or Transmission Control Protocol (TCP) sessions. It will attempt to assign the same port value of the original request. However, if the original source port has already been used, it will start scanning from the beginning of the particular port range to find the first available port and assign it to the conversation.

Q. How does PAT work?
    A1. PAT with one IP address:

       1. NAT/PAT inspects traffic and matches to a translation rule.

       2. The rule matches to a PAT configuration.

       3. Does PAT know about the traffic type and does that traffic type have a specific set of ports, or ports it negotiates that it will use? If so, set them aside and do not allocate them as unique identifiers.

       4. Sessions with no special port requirements attempt to connect out. PAT translates the IP source address and checks the availability of the originated source port (for example, 433).

          Groups are 1-511, 512-1023, and 1024-65535.

          Note: For TCP and UDP, groups are 1-511, 512-1023, 1024-65535. For ICMP the first group starts at 0.

       5. If the requested source port is available, it assigns the source port and the session continues.

       6. If the requested source port is not available, NAT starts searching from the beginning of the relevant group. In this example starting at 1 for TCP or UDP applications and 0 for ICMP.

       7. If a port is available, it is assigned and the session continues.

       8. If no ports are available, the packet is dropped.

    A2. PAT with multiple IP addresses:

    Use the same logic as with a single IP address (Steps 1 - 8 above) and:

       9. If no ports are available in the relevant group on the first IP address, NAT flips to the next IP address in the pool and tries to allocate the original source port requested.

      10. If the requested source port is available, it assigns the source port and the session continues.

      11. If the requested source port is not available, NAT starts searching from the beginning of the relevant group. In this example starting at 1 for TCP or UDP applications and 0 for ICMP.

      12. If a port is available, it is assigned and the session continues.

      13. If no ports are available, the packet is dropped unless another IP address is available in the pool and until all IP addresses have been checked.

Q. What is the maximum number of configurable NAT IP pools (using the ip nat pool <name>; command)?
    A. There is no actual limit. In practical use, however, the maximum number of configurable IP pools is limited by the amount of available DRAM in the particular router being used.
原文来自http://www.cisco.com/en/US/tech/tk648/tk361/technologies_q_and_a_item09186a00800e523b.shtml#Q12

论坛徽章:
0
27 [报告]
发表于 2005-01-02 15:13 |只看该作者

【请教】NAT我知道,什么是PAT呢?

NAT是标准,是有RFC的(RFC1631). PAT则没有公共标准可循.

比如Linux就根本不提PAT这种莫须有的"标准",只有NAT,只是在实现的时候尽量在转发后保持源端口不变,实在不行的时候才予以映射.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP