English 中文(简体)
我如何确定一个组织是否正在使用NAT?
原标题:How can I determine if an organization is using NAT?
  • 时间:2011-10-10 07:58:52
  •  标签:
  • networking

据我所知,如果一个组织使用私人IP地址空间,我可以告诉它们是否正在使用NAT。

可以确定,如果一个组织的地址属于以下范围,则该组织正在使用私人IP地址空间,而该地址由互联网标准组保留供私人使用:

  • 10.0.0.0 through 10.255.255.255
  • 169.254.0.0 through 169.254.255.255 (APIPA only)
  • 172.16.0.0 through 172.31.255.255
  • 192.168.0.0 through 192.168.255.255

页: 1 如果逻辑不正确,请予以纠正。

问题回答

While you are basically correct about which space is considered "private" (see RFC 1918 section 3), I do not think you can make this assumption in your program, for the following reasons:

  • An organization might be using private addresses, but not be using NAT at all (for example, a completely private intranet)
  • An organization might be using NAT, but with a reserved public subnet. (Yes, I have seen organizations with IP address space to burn do this.)

你的问题实际上难以理解,但从标题来看:

如何了解组织是否正在使用NAT?

你们能够这样做。





相关问题
C# Networking API s [closed]

Lately I ve been looking for a good networking API i could possibly use and/or reference some of the code within, but i have mere luck searching for some on Google/Bing. Hopefully somebody here has ...

Listen to a port that is in use [duplicate]

Possible Duplicate: Get connecting IP from specified ports that using by other program. If a port is used by a program, is there any way I can listen that port and get the connected IP on that ...

Twisted Spread suitable for multiplayer racing sim?

Do you think that Twisted Spread may be suitable (in terms of performance) for a multiplayer racing simulator? The rest of the application is based on Python-Ogre. Can Perspective Broker run upon (...

Optimizing a LAN server for a game

I m the network programmer on a school game project. We want to have up to 16 players at once on a LAN. I am using the Server-Client model and am creating a new thread per client that joins. ...

multicast ip address - blocked in call to recvfrom

i am writing a simple multicast application. i intend to run it on localhost. i have done the following: char *maddr; . . . sendfd = socket(...); struct sockaddr_in sasend; sasend.sin_family = ...

Java HTTPAUTH

我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。

热门标签