Traversal of a network Address Translator (NAT) can be facilitated for a mobile device configured to communicate with one or more other devices over a network via one or more wireless access points. A direction of travel can be estimated for the mobile device. One or more wireless access points the mobile device is likely to encounter can be predicted using the an estimated direction of travel for the mobile device. information regarding behavior of one or more NATs associated with the predicted wireless access point(s) can be predicted. Such information can be stored in such a way that the information is retrievable by one or more other devices or using the information to traverse one or more of the NATs. Alternatively, information can be retrieved regarding behavior of one or more NATs associated with the predicted wireless access points. This information can be used to traverse one or more of the NATs.
|
0. 25. A method comprising:
using an estimated direction of travel to predict one or more wireless access points that a mobile device is likely to encounter; and
retrieving information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter and using the information to traverse one or more of the NATs.
1. In a mobile device configured to communicate with one or more other devices over a network via one or more wireless access points, a method for facilitating traversal of a network address translator (NAT), the A method comprising:
estimating a direction of travel for the mobile device;
using the an estimated direction of travel for a mobile device to predict one or more wireless access points that the mobile device is likely to encounter; and
a) determining information regarding behavior of one or more NATs network address translators (NATs) associated with the predicted one or more wireless access points that the mobile device is likely to encounter with the mobile device; and storing the information in such a way that the information is retrievable by one or more other devices or using the information to traverse one or more of the NATs; or
b) retrieving information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter and using the information to traverse one or more of the NATs; or
c) both a) and b).
0. 28. A mobile device, comprising:
a processor;
a network interface coupled to the processor; and
one or more processor executable instructions that when executed by the processor cause the mobile device to:
use an estimated direction of travel for a mobile device to predict one or more wireless access points that the mobile device is likely to encounter; and
retrieve information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter and using the information to traverse one or more of the NATs.
18. A mobile device, comprising:
a processor;
a network interface coupled to the processor, the network interface being configured to allow the mobile device to communicate wirelessly with one or more other devices over a network via one or more wireless access points; and
one or more processor executable instructions that when executed by the processor cause the mobile device to:
estimate a direction of travel for the mobile device;
use the an estimated direction of travel for the mobile device to predict one or more wireless access points that the mobile device is likely to encounter; and
a) determine information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter with the mobile device and store the information in such a way that the information is retrievable by one or more other devices or use the information to traverse one or more of the NATs; or
b) retrieve information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter and using the information to traverse one or more of the NATs; or
c) both a) and b).
0. 27. A method comprising:
using an estimated direction of travel for a mobile device to predict one or more wireless access points that the mobile device is likely to encounter;
determining information regarding behavior of one or more network address translators (NATs) associated with the predicted one or more wireless access points that the mobile device is likely to encounter with the mobile device; and storing the information in such a way that the information is retrievable by one or more other devices or using the information to traverse one or more of the NATs; and
retrieving the information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter and using the information to traverse one or more of the NATs.
0. 29. A mobile device, comprising:
a processor;
a network interface coupled to the processor; and
one or more processor executable instructions that when executed by the processor cause the mobile device to:
use an estimated direction of travel for the mobile device to predict one or more wireless access points that the mobile device is likely to encounter; and
a) determine information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter with the mobile device and store the information in such a way that the information is retrievable by one or more other devices or use the information to traverse one or more of the NATs; and
b) retrieve the information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter and using the information to traverse one or more of the NATs.
2. The method of
3. The method of
4. The method of
5. The method of
6. The method of
7. The method of
8. The method of
9. The method of
10. The method of
0. 11. The method of
0. 12. The method of
13. The method of
14. The method of
15. The method of
16. The method of
0. 17. The method of
19. The device of
20. The device of
21. The device of
23. The device of
24. The device of
0. 26. The method of claim 25, wherein retrieving information regarding behavior of one or more NATs associated with the predicted one or more wireless access points that the mobile device is likely to encounter and using the information to traverse one or more of the NATs includes retrieving information regarding behavior of one or more NATs from a central location that is accessible by the mobile device and the one or more other devices.
|
This application is a continuation reissue of and U.S. Pat. No. 8,565,190, which claims priority to U.S. patent application Ser. No. 11/829,831 filed Jul. 27, 2007, now U.S. Pat. No. 7,933,273, the entire contents of which are incorporated herein by reference.
The present invention relates to computer network communication, and more specifically to prioritizing network traffic among distinct channels of communication within a single application.
Computing systems are becoming increasing interconnected through network environments. Such network environments may be centralized or decentralized. A decentralized computing environment may be defined by a number of computing systems interconnected to communicate with one another, wherein each computing system can perform both client and server functions. A peer-to-peer (P2P) network represents an example of a decentralized computing environment in which each computing system within the P2P network is defined as a peer of every other computing system within the network. For discussion purposes, each peer computing system within the P2P network is referred to as a node. Additionally, each node within the P2P network may be configured to execute software having substantially equivalent functionality. Therefore, each node may act as both a provider and a user of data and services across the P2P network. Peer to peer networks are distributed data networks without any centralized hierarchy or organization. Peer to peer data networks provide a robust and flexible means of communicating information between large numbers of computers or other information devices, referred to in general as nodes.
A P2P network relies primarily on the computing power and bandwidth of the participants in the network rather than concentrating it in a relatively low number of servers. P2P networks are typically used for connecting nodes via largely ad hoc connections. Such networks are useful for many purposes. P2P networks may be used, e.g., for sharing content files containing audio, video, data or anything in digital format is very common, and real-time data, such as telephony traffic, may also be transmitted using P2P technology. P2P applications often involve the use of a network address translator (NAT) to facilitate direct communication between peers. The NAT allows a user typically to have multiple networked computers share a single (global or routable) IP address for to access the Internet. The NAT intervenes in direct communication, so in many cases, P2P applications have to deal with the connectivity issues due to the NAT. Techniques used to overcome the connectivity issues are often called “NAT Traversal”. The process of Network Address Translation (NAT, also known as Network Masquerading, Native Address Translation or IP Masquerading) generally involves re-writing the source and/or destination addresses of Internet Protocol (IP) packets as they pass through a Router or firewall. Most systems using a NAT do so in order to enable multiple hosts on a private network to access a wide area network, such as the Internet using a single public IP address.
In addition to the convenience and low cost of NAT, the lack of full bidirectional connectivity can be regarded in some situations as a feature rather than a limitation. To the extent that NAT depends on a machine on the local network to initiate any connection to hosts on the other side of the router, it prevents malicious activity initiated by outside hosts from reaching those local hosts. This can enhance the reliability of local systems by stopping worms and enhance privacy by discouraging scans. Many NAT-enabled firewalls use this as the core of the protection they provide. Many network administrators find NAT a convenient technique and use it widely. Nonetheless, NAT can introduce complications in communication between hosts and may have a performance impact.
In a typical configuration, a local network may use one of the designated “private” IP address subnets and a router on that network has a private address in that address space. The router may be connected to the Internet with a single “public” address (known as “overloaded” NAT) or multiple “public” addresses assigned by an Internet Service Provider (ISP). As traffic passes from the local network to the Internet, the source address in each packet is translated on the fly from the private addresses to the public address(es). The router tracks basic data about each active connection (particularly the destination address and port). This internal “tracking” data is sometimes referred to as “NAT binding”. When a reply returns to the router, it uses the connection tracking data it stored during the outbound phase to determine where on the internal network to forward the reply; the TCP or UDP client port numbers are used to demultiplex the packets in the case of overloaded NAT, or IP address and port number when multiple public addresses are available, on packet return. To a system on the Internet, the router itself appears to be the source/destination for this traffic. Nodes behind NAT-enabled routers do not have true end-to-end connectivity (i.e., cannot send packets to all other nodes of the network, without requiring intermediate network elements to further interpret them) and cannot participate in some Internet protocols. Services that require the initiation of TCP connections from the outside network, or stateless protocols such as those using UDP, may be disrupted for such nodes unless the NAT router makes a specific effort to support such protocols, incoming packets cannot reach their destination. Some protocols can accommodate one instance of NAT between participating hosts (“passive mode” FTP, for example), sometimes with the assistance of an Application Layer Gateway, but fail when both systems are separated from the Internet by NAT. Use of a NAT may also complicate tunneling protocols such as Ipsec, e.g., if the NAT modifies values in the headers in a way that interferes with the integrity checks done such tunneling protocols.
Any IP enabled application that wants to connect to a network potentially faces problems associated with NAT. Most network applications and devices running dedicated network application software, especially peer-to-peer style applications, may be configured to independently determine the physical network topology they are on in order to best establish direct communications with other applications. This is commonly known as “NAT behavior discovery” or “NAT behavior determination”. This operation is well known in the industry, although some varying approaches exist. Existing approaches may often take a significant amount of time to determine NAT behavior. Existing NAT discovery techniques may also be problematic if multiple applications must do NAT discovery.
It is within this context that embodiments of the present invention arise.
Embodiments of the present invention may be readily understood by considering the following detailed description in conjunction with the accompanying drawings, in which
Although the following detailed description contains many specific details for the purposes of illustration, anyone of ordinary skill in the art will appreciate that many variations and alterations to the following details are within the scope of the invention. Accordingly, the exemplary embodiments of the invention described below are set forth without any loss of generality to, and without imposing limitations upon, the claimed invention.
In applications that deal with NAT it is sometimes useful to characterize the NAT by the type of behavior that it exhibits. The STUN protocol may be used to characterize Network address translation as Full cone NAT, restricted cone NAT, port restricted cone NAT or symmetric NAT. With a full cone NAT, also known as one-to-one NAT, all requests from the same internal IP address and port are mapped to the same external IP address and port. An external host can send a packet to the internal host, by sending a packet to the mapped external address. With a restricted cone NAT, all requests from the same internal IP address and port are mapped to the same external IP address and port. Unlike a full cone NAT, an external host can send a packet to the internal host only if the internal host had previously sent a packet to it. A port restricted cone NAT or symmetric NAT is like a restricted cone NAT, but the restriction includes port numbers. Specifically, an external host may send a packet to a particular port on the internal host only if the internal host had previously sent a packet from that port to the external host. With a symmetric NAT all requests from the same internal IP address and port to a specific destination IP address and port are mapped to a unique external source IP address and port. If the same internal host sends a packet with the same source address and port to a different destination, a different mapping is used. Only an external host that receives a packet can send a Universal Datagram Protocol (UDP) packet back to the internal host.
The above-described classifications have become somewhat less useful, because in many NAT implementations the behavior of the NAT may oscillate between the various types. For example, many NAT implementations may follow a port preservation design. For most communications, such a NAT implementation uses the same values as internal and external port numbers. However, if two internal hosts attempt to communicate with the same external host using the same port number, the external port number used by the second host may be chosen at random. Such a NAT may be sometimes perceived as a restricted cone NAT and may be perceived at other times as a symmetric NAT.
NAT discovery and NAT behavior determination are sometimes referred to as NAT traversal. Examples of NAT traversal are described e.g., in U.S. Published Patent Application 20070076729, which is incorporated herein by reference. NAT behavior discovery may be a time-consuming operation. For example, NAT discovery may be implemented using a protocol referred to as STUN. Details of the STUN protocol are described, e.g., in IETF RFC 3489, which is incorporated herein by reference. In the STUN protocol, multiple messages are sent are sent to a central NAT discovery server (referred to as a STUN server) and received to establish NAT behavior type. Some message transactions may have to wait for timeout (typically about 10 seconds for each transaction) due to filtering behavior of NAT. Messages are also possibly resent in the presence of unreliable communication channels. Applications that can avoid all or some of this operation may start faster.
Cooperative NAT Behavior Discovery
In embodiments of the present invention nodes on a local network may share information about discovered NAT behavior and other aspects of the local physical network topology. Additionally, these nodes may actively cooperate to further determine NAT behavior rather than passively sharing NAT behavior discovered independently. This is important since NAT discovery can be time-consuming, as discussed above. Furthermore, there are non-trivial issues that occur when trying to use NAT devices that have varying behavior when used by more than one application. This may occur, for example, when static port mapping is configured for a particular local port.
According to embodiments of the present invention, multiple nodes may be behind the same NAT. One of the nodes may discover the properties of the NAT through conventional NAT discovery and/or NAT traversal. This node may share the NAT traversal information with the others that are behind the same NAT. This may allow the other nodes behind the NAT to avoid having to spend time performing NAT discovery. The NAT information may be stored in a central location that all the nodes behind the NAT may access before they would normally attempt NAT discovery.
By way of example,
It is noted that embodiments of the invention may incorporate any number of nodes. By way of example, Node A 102 and Node B 104 may be any network capable device or network capable applications running on such devices. Such nodes include, but are not limited to computers, hand held internet browsers and/or email devices, Voice over Internet Protocol (VoIP) phones, video game consoles, hand held video game devices, and the like. Messages may travel from one node to another over via the router 108. The NAT may be implemented on the router 108 in hardware, software, firmware or some combination of two or more of these.
Node A 102, Node B 104 and the router 108 may be configured to communicate with each other according to a network protocol. By way of example, Node A 102, and Node B 104 may be configured (either in software or hardware or some combination of both) with a network protocol stack 103 having five layers: an Application layer APP, a Transport layer TRANS, a Network layer NET (sometimes referred to as the IP layer), a Data Link Layer DLL and a Physical layer PHYS. These layers are well-known to those of skill in the art. The nodes 102, 104 typically implement all five layers. The router 108 may include a protocol stack 105 that implements only the Network layer NET, Data Link layer DLL and Physical layer PHYS. In some embodiments, one or more routers may include all five protocol stack layers. One example of such routers is firewalls that support “application layer gateway” which inspects application layer data. The illustrated configuration of the protocol stack 105 in the router 108 is relatively more common, however.
The Application layer APP represents the level at which applications access network services. This layer represents the services that directly support applications such as software for file transfers, database access, and electronic mail. Examples of application layer software include HL7, Mod-bus, Session Initiation Protocol (SIP), and Simple Sensor Interface Protocol (SSI). In the particular case of the TCP/IP suite, the Application layer APP may be implemented with software protocols such as Hypertext Transfer Protocol (HTTP), Session Initiation Protocol (SIP), Simple Mail Transfer Protocol (SMTP), Short Message Peer-to-Peer Protocol (SMPP), Simple Network Management Protocol (SNMP), File Transfer Protocol (FTP), Teletype Network (TELNET), Network File System (NFS), Network Time Protocol (NTP), Real-time Transport Protocol (RTP), Dynamic Host Configuration Protocol (DHCP), and Domain Name System (DNS). The Application layer APP may sometimes be divided further into a Presentation layer and a Session layer, e.g., in the Open Systems Interface (OSI) protocol. The Presentation layer translates data from the Application layer into an intermediary format. The Presentation layer may also manages security issues by providing services such as data encryption, and compresses data so that fewer bits need to be transferred on the network. The Session layer allows two applications on different computers to establish, use, and end a session. The Session layer may establish dialog control between the two computers in a session, regulating which side transmits, plus when and how long it transmits.
The transport layer TRANS services requests from the Application layer APP and issues service requests to the Network layer NET. In some protocols the Transport layer TRANS may also handle error recognition and recovery. For a transmitting host, the Transport layer may also repackage long messages when necessary into small packets for transmission. For a receiving host the Transport layer rebuilds packets into the original message. The Transport layer for a receiving host may also send receipt acknowledgments. Examples of particular Transport layer protocols include Transmission Control Protocol (TCP), User Datagram Protocol (UDP) and Stream Control Transmission Protocol (SCTP), all of which, and equivalents thereof, are well-known to those of skill in the art. The Transport layer TRANS is the layer that typically supports packet fragmentation. It is noted that fragmentation may take place in the Transport layer of the host originating a message or at the Transport layer of any of the routers along the path between that host and the message's intended recipient. Not all transport layer implementations necessarily handle error recognition and recovery. TCP, for example, does handle error recognition and recovery, but UDP does not.
The Network layer NET addresses messages and translates logical addresses and names into physical addresses. It also determines the route from the source to the destination computer. The Network layer may also manages traffic problems, such as switching, routing, and controlling the congestion of data packets. Examples of particular Network layer protocols include, but are not limited to, Internet Protocol (IP), Internet Control Message Protocol (ICMP), IP Security (Ipsec), Address Resolution Protocol (ARP), Routing Information Protocol (RIP) and Open Shortest Path First (OSPF) all of which, and equivalents thereof, are well-known to those of skill in the art
The Data Link layer DLL packages raw bits from the Physical layer PHYS into frames (logical, structured packets for data). The Data Link layer may also be responsible for transferring frames from one computer to another, without errors. After sending a frame, the Data Link layer DLL waits for an acknowledgment from the receiving computer. Examples of particular Data Link layer protocols include, but are not limited to, Point-to-Point Protocol (PPP), Serial Line Internet Protocol (SLIP) and Media Access Control (MAC) all of which, and equivalents thereof, are well-known to those of skill in the art. The Data Link layer DLL typically limits the MTU size.
The Physical layer PHYS transmits bits from one computer to another and regulates the transmission of a stream of bits over a physical medium. This layer defines how the cable is attached to the network adapter and what transmission technique is used to send data over the cable. Examples of particular Physical layer protocols and standards include, but are not limited to, RS-232, V.35, V.34, I.430, I.431, T1, E1, 10BASE-T, 100BASE-TX, POTS, SONET, DSL, 802.11a, 802.11b, 802.11g, 802.11n all of which, and equivalents thereof, are well-known to those of skill in the art
A message originating at Node A 102 starts at the Application layer APP and works its way down the protocol stack to the Physical layer PHYS. When the message arrives at Node B 104, it is received at the Physical layer PHYS and works its way up the stack to the Application layer APP. In the path between the two nodes 102, 104, the message may be received at the Physical layer PHYS of router 108 and work its way up to the Transport layer TRANS and then back down the stack to the Physical layer PHYS for transmission to router 108. The process may be repeated for any additional routers (not shown) along the path between Node A 102 and Node B 104. In peer-to-peer situations, once a connection has been established between the Node A 102 and Node B 104 they may communicate directly by peer-to-peer connections, e.g., at the Application layer APP or at the Transport layer TRANS.
As discussed above, the router 108 may include a network address translator. However, this is not necessary for all embodiments of the invention. If the router 108 includes a NAT, Node A 102 and Node B 104 may have to traverse the NAT in order to establish peer-to-peer connections with each other, with other node connected in the LAN 101 or with other nodes connected to the WAN 106. To facilitate NAT traversal, Node A 102 and Node B 104 may obtain and share information 110 regarding the NAT. There are a number of ways in which the information 110 may be obtained and shared. By way of example, and without loss of generality, Node A 102 and Node B 104 may obtain the information 110 through individual attempts at NAT traversal. Such attempts at NAT traversal may involve the use of a STUN server 112. Alternatively, Node A 102 and Node B 104 may obtain the information 110 from other Nodes connected to the LAN 101.
The information 110 may be shared in any of a number of different ways. For example, Node A 102 and Node B 104 may store the information locally, e.g., in a cache or other memory location. Where Node A 102 and Node 104 are separate devices or applications on separate devices, storing information locally may include, among other things, storing the information in particular memory locations at each corresponding device. If Node A and Node B are different applications on the same device, storing the information locally may include, among other things, storing the information in particular memory locations associated with the device. If the information 110 is stored locally, Node A and Node B may query each other directly prior to their respective attempts at NAT traversal to obtain the information 110. In alternative embodiments, the information 110 may be stored in a memory location that is commonly accessible to both Node A 102 and Node B 104. Such a commonly accessible memory location may be on another node or device connected to the LAN 101 or the WAN 106. By way of example, the commonly accessible memory location may be a common database server 114 connected to the WAN 106. In some embodiments, the information 110 may be obtained by and stored at the router 108. This may require special implementation at the router 108.
By way of example, the information 110 may include a unique address for the router, e.g., a globally unique address such as a Media Access Control (MAC) address or internal IP address. As used herein, a MAC address, also known as a hardware address or adapter address is a quasi-unique identifier attached to most network adapters. A MAC address is typically a number that acts like a name for a particular network adapter. Thus, for example, network cards (or built-in network adapters) in two different computers could have different names, or MAC addresses, as could an Ethernet adapter and a wireless adapter in the same computer, and as could multiple network cards in a router. The MAC address may be assigned according to a suitable protocol such as MAC-48, EUI-48, and EUI-64, which are designed to be globally unique.
In addition, the information 110 may include information regarding the type of NAT behavior, if any, exhibited by the router 108, and/or whether any ports on the router are being used by devices connected to the LAN 101.
Examples of other NAT behavior information that may be shared includes, but is not limited to (i) the number of active sessions via the NAT; or (ii) the collective traffic load on the NAT. Furthermore the information 110 may include a value of a flag realizing atomicity of port prediction against symmetric NAT. The flag may indicate whether a particular atomic for port prediction is locked or unlocked. An atomic lock is sometimes used for port prediction in symmetric NAT traversal. The locking is useful since port prediction may fail if other nodes under the same NAT create another NAT binding during the prediction phase.
According to embodiments of the invention Node A 102 and Node B 104 may implement NAT discovery by any conventional technique, which may be implemented in hardware, software, firmware or some combination of two or more of these. By way of example,
By way of example, as shown in
It is further noted that two or more nodes may cooperate to determine behavior of the router 108. For example, as shown in
Note that in the example depicted in
The effect of sharing the information 110 on improving NAT behavior determination is not insignificant. Typically, requests to and responses from the STUN server 112 may be subject to latencies associated with both the LAN 101 and the WAN 106. Requests from one node to another on the LAN 101 are typically subject only to latencies associated with the LAN 101. WAN latencies are generally much larger than LAN latencies. For example, with a theoretical WAN latencies of about 100 milliseconds and LAN latencies of less than about 1 millisecond, sharing NAT behavior information 110 among the nodes on the LAN 101 could improve the NAT behavior determination phase by a factor of over 100.
In addition the nodes on the LAN 101 may cooperatively share NAT information after each node has independently determined NAT behavior type on its own. In this case, gossip between nodes about determined behavior could identify a router that has bad local port preservation behavior, which could effectively turn the router 108 from port-restricted to symmetric behavior. Sharing of the information 110 may be used to diagnose changes to the behavior of the router 108. Sharing of the information 110 may also be used to a priori workaround NAT issues associated with bad local port preservation. For instance, multiple nodes behind the router 108 could broadcast to each other which local ports on the router 108 they want to use. A given node (e.g., Node A 102) could change the selected port if another node (e.g., Node B 104) is already using the selected port. Additionally, nodes may gossip about other unanticipated behavior changes of the local network environment of the LAN 101. For example, a residential NAT typically has one global IP address that is dynamically assigned by ISP (Internet Service Provider such as Comcast) using a protocol called DHCP. The assigned dynamic IP for NAT may expire and the ISP could assign another IP address. If that happens, it may take some time for a local node to detect such event. If one node detects the event, it may notify other nodes, using broadcast, of the event.
In the embodiments depicted in
Alternatively, the common location may be a node that is part of the LAN 101. For example, as shown in
In the example depicted in
The approach described above may appear more than superficially similar to Universal Plug and Play (UPnP) Gateway protocols. Embodiments of the present invention are different from UPnP in a number of ways. Most significantly, when a UPnP device is added to a LAN the UPnP device advertises its services to control points on the LAN. In embodiments of the present invention, by contrast, nodes on the LAN find out information about the control points (NATs on Routers) and make that information available to other devices.
Furthermore, the lack of true standardization of NAT behavior makes the existing UPnP mechanism less-than completely viable. In particular, UPnP is mainly supported only by residential routers, but not by other larger scale routers. For example, the routers in a hotel that provides Internet access services from rooms typically do not support UPnP. Another case in which UPnP does not work is that some ISP may provide private addresses for routers that provide certain services, e.g., HOT SPOT service. In such cases, the external address a node obtains is a private address of the nearest UPnP NAT. The node still needs to use a STUN server to obtain an actual global address that is routable over the Internet. In addition, there many existing routers do not support UPnP, or UPnP may not be turned on for many routers that do support UPnP.
In alternative embodiments of the invention, a single application running on a device on the local network 101 could perform many, but not all of these operations on behalf of other applications. The device running this application is referred to herein as a NAT proxy. If a NAT proxy is only running on one device, it may not be able to determine certain NAT issues associated with bindings to different internal IP addresses. This may be overcome by running at least two instances of this application on two devices, although much of the ease of use may be lost by doing this.
Embodiments that utilize NAT proxies may be understood with respect to
A NAT proxy application may be co-located on the same physical device node as the requesting application. A node only needs to receive one response from any NAT proxy. It is possible that the NAT proxies could run in a hierarchical fashion where only one proxy has the responsibility for sending responses in the local network. This has the unfortunate side-effect of creating a single point of failure within an otherwise redundant network configuration. In addition, The NAT proxy technique described with respect to
In the foregoing discussion, it has been assumed that each node is behind a single NAT. It is possible, in some network configurations for a node to be located behind more than one NAT. Embodiments of the present invention may be modified to address situations where a given Node lies behind more than one NAT. For example, as shown in
By way of example, the nodes 102, 104, 120 may determine how many NATs they are behind though the use of a field within the header of a datagram having a value that is reduced at each NAT device encountered en route to the datagram's destination. By way of example, field may be a time to live (TTL) field. Within the context of Ipv4 TTL refers to an 8-bit field in the Internet Protocol (IP) header. It is the 9th octet of 20. The time to live value may be thought of as an upper bound on the time that an IP datagram can exist in an internet system. The TTL field may be set by the sender of the datagram, and reduced by every host on the route to its destination. If the TTL field reaches zero before the datagram arrives at its destination, then the datagram is discarded and an Internet Control Message Protocol (ICMP) error datagram (11—Time Exceeded) is sent back to the sender. The TTL field is conventionally used to avoid a situation in which an undeliverable datagram keeps circulating on an internet system, and such a system eventually becoming overwhelmed by large numbers of such “immortal” datagrams. In theory, time to live may be measured in seconds, although every host that passes the datagram must reduce the TTL by at least one unit. In practice, the TTL field is reduced by one on every hop. To reflect this practice, the field is named hop limit in IPv6. The ICMP error datagram identifies the last host the datagram arrived at before timing out. A tool called traceroute uses ICMP error messages to detect a path to a remote end node. TTL or hop limit fields may be used to determine the addresses of the NATs between Node A 102 and Node B 104 in a manner similar to that used in a traceroute command.
In embodiments of the invention, Node A 102 and Node B 104 and other nodes 120 may share information 110 relating to the behavior of NAT 1 and NAT 2 through NAT N. The nodes 102, 104, 120 may obtain the NAT information 110, e.g., as discussed above with respect to
Embodiments of the invention may be used to implement NAT behavior discovery with wireless nodes. For example, as shown in
The wireless access points WAP1, WAP2, WAP3 may be connected to a wide area network 506 via a router 508. In addition there may be other nodes A, B, C connected between the router 508 and the wireless access points WAP1, WAP2 and WAP3 respectively. Information 510 regarding the network address translators NAT1, NAT2, NAT3 may be stored at a centrally accessible cache 512 that is coupled to the router 508. There are a number of different ways of obtaining and caching the information 510. For example, the wireless node 507 may gather part of the information 510 through conventional NAT traversal and share it with other nodes as shown in
Through sharing of the information 510 the quality of service over the wireless network 501 may be enhanced. For example, the wireless node 507 may move from one coverage area to another, e.g., from the coverage area 502 for the first wireless access point WAP1 to the coverage area 504 for the second wireless access point WAP2. The information 510 may be organized such that the wireless device 507 can request NAT information for a neighboring wireless access point, such as the second wireless access point WAP2. In some embodiments, the device 507 may be programmed to determine, e.g., from GPS data or wireless signal strength a general direction of travel of the wireless device and use this direction to estimate which wireless access points the device is likely to encounter.
Embodiments of the present invention may also apply to situations in which a NAT moves. For example, the wireless access points WAP1, WAP2, WAP3 may be mounted on vehicles. The wireless node 507 may determine whether a NAT is mobile e.g., from geographical information. For example, the wireless node 507 may include a geographical location system, such as a global positioning satellite system (GPSS) receiver. Using such a system, the node 507 may its own location when it encounters the NAT. If the node 507 encounters the same NAT when the node is in two different locations that are sufficiently far apart the node may infer that the NAT has moved.
As mentioned above, there are a number of different configurations for a node that may be used in conjunction with embodiments of the present invention. By way of example, and without loss of generality,
In the node 600 a memory 602 may be coupled to the CPU 601. The memory 602 may store applications and data for use by the CPU 601. The memory 602 may be in the form of an integrated circuit, e.g., RAM, DRAM, ROM, and the like). A computer program 603 may be stored in the memory 602 in the form of instructions that can be executed on the processor 601. The instructions of the program 603 may be configured to implement, amongst other things, NAT behavior discovery, e.g., as described above. In particular, the program 603 may be instructions that, when executed, cause the node 600 to determine information regarding the behavior of one or more NATs and store the information in such a way that the information is retrievable by node 600 or one or more other nodes. Furthermore, the program 603 may be configured to retrieve information regarding behavior of one or more NATs obtained by one or more other nodes and use the information to traverse one or more of the NATs.
The memory 602 may contain data that is generated by or usable by the program 603. In particular the memory 602 may contain information 610 relating to one or more NATs. Specifically, the information 610 may include, but is not limited to (i) NAT behavior information (e.g., whether the NAT is full cone, restricted cone, port restricted, symmetric) including whether the NAT behavior includes port preservation or not; (ii) available STUN server addresses; and (iii) common database addresses. The information 610 may be stored in a section of the memory 602 that can be accessed by other nodes.
The node 600 may further include a storage device 615 that provides non-volatile storage for applications and data. By way of example, the storage device 615 may be a fixed disk drive, removable disk drive, flash memory device, tape drive, CD-ROM, DVD-ROM, Blu-ray, HD-DVD, UMD, or other optical storage devices. The node 600 may also include well-known support functions 620 commonly used in computing systems. Such support functions may include such features as input/output (I/O) elements 621, power supplies (P/S) 622, a clock (CLK) 623 and cache 624.
One or more user input devices 625 may be used to communicate user inputs from one or more users to the node 600. By way of example, one or more of the user input devices 625 may be coupled to the node 600 via the I/O elements 621. Examples of suitable input devices 625 include keyboards, mice, joysticks, touch pads, touch screens, light pens, still or video cameras, and/or microphones. In the particular case of A/V chat, it is desirable for the user input devices 625 to include both a camera and a microphone.
A network interface 626 allows the node 600 to communicate with other computer systems via an electronic communications network 627. By way of example, the network 627 may be a wide area network and the node 600 may be on a local area network. The node may interface with the network 627 via a router 608, which may include a network address translator NAT. In some embodiments the node 600 itself may be a router, e.g., as described above with respect to
The node 600 may further comprise a graphics subsystem 630, which may include a graphics processing unit (GPU) 635 and graphics memory 640. The graphics memory 640 may include a display memory (e.g., a frame buffer) used for storing pixel data for each pixel of an output image. The graphics memory 640 may be integrated in the same device as the GPU 635, connected as a separate device with GPU 635, and/or implemented within the memory 602. Pixel data may be provided to the graphics memory 640 directly from the CPU 601. Alternatively, the CPU 601 may provide the GPU 635 with data and/or instructions defining the desired output images, from which the GPU 635 may generate the pixel data of one or more output images. The data and/or instructions defining the desired output images may be stored in memory 602 and/or graphics memory 640. In an embodiment, the GPU 635 may be configured (e.g., by suitable programming or hardware configuration) with 3D rendering capabilities for generating pixel data for output images from instructions and data defining the geometry, lighting, shading, texturing, motion, and/or camera parameters for a scene. The GPU 635 may further include one or more programmable execution units capable of executing shader programs.
The graphics subsystem 630 may periodically output pixel data for an image from graphics memory 640 to be displayed on a display device 650. The display device 650 may be any device capable of displaying visual information in response to a signal from the computer system 600, including CRT, LCD, plasma, and OLED displays. The node 600 may provide the display device 650 with an analog or digital signal. By way of example, the display 650 may include a cathode ray tube (CRT) or flat panel screen that displays text, numerals, graphical symbols, or images. In addition, the node 600 may include one or more audio speakers 652 that produce audible or otherwise detectable sounds. To facilitate generation of such sounds, the node 600 may further include an audio processor 655 adapted to generate analog or digital audio output from instructions and/or data provided by the CPU 601, memory 602, and/or storage 615. In the particular case of applications such as A/V chat or Voice over Internet Protocol (VoIP), it is sometimes desirable for the node 600 to include a graphical display device 650 and an audio speaker 652.
The components of the node 600, including the CPU 601, memory 602, support functions 620, data storage 615, user input devices 625, network interface 626, graphics subsystem 630 speaker 652 and audio processor 655 may be operably connected to each other via one or more data buses 660. These components may be implemented in hardware, software, firmware or some combination of two or more of these.
Embodiments of the present invention may solve a key issue in networking deployments related to NAT devices [routers that perform network address translation]. It is possible that a router with a fully specified behavior may be used to implement NAT behavior information discovery and distribution in a centralized way. It is possible that some of the functionality may be lost if the state of individual applications cannot be fully gleaned at such a router. However, additions to this mechanism may account for this deficiency, though perhaps with some associated overhead.
In embodiments of the present invention otherwise distinct, peer network nodes that are behind a common NAT may cooperate to cooperate to better solve the NAT traversal problem in a decentralized way. There are no existing solutions to the full range of issues that can occur with varying NAT device behavior that involve cooperation of multiple nodes on a local network.
While the above is a complete description of the preferred embodiment of the present invention, it is possible to use various alternatives, modifications, and equivalents. Therefore, the scope of the present invention should be determined not with reference to the above description but should, instead, be determined with reference to the appended claims, along with their full scope of equivalents. Any feature described herein, whether preferred or not, may be combined with any other feature described herein, whether preferred or not. In the claims that follow, the indefinite article “A”, or “An” refers to a quantity of one or more of the item following the article, except where expressly stated otherwise. In the claims that follow, the expressions first and second are used to distinguish between different elements and do not imply any particular order or sequence. The appended claims are not to be interpreted as including means-plus-function limitations, unless such a limitation is explicitly recited in a given claim using the phrase “means for.”
White, Payton R., Marr, James E., Takeda, Yutaka, Detwiler, Stephen C.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5488608, | Apr 14 1994 | Google Inc | Method and system for routing packets in a packet communication network using locally constructed routing tables |
5636216, | Apr 08 1994 | Google Inc | Method for translating internet protocol addresses to other distributed network addressing schemes |
5793763, | Nov 03 1995 | Cisco Technology, Inc | Security system for network address translation systems |
5956485, | May 05 1994 | Microsoft Technology Licensing, LLC | Network architecture to support real-time video games |
6058431, | Apr 23 1998 | ASCEND COMMUNICATIONS, INC | System and method for network address translation as an external service in the access server of a service provider |
6128623, | Apr 15 1998 | GOOGLE LLC | High performance object cache |
6128624, | Nov 12 1997 | NCR Voyix Corporation | Collection and integration of internet and electronic commerce data in a database during web browsing |
6128627, | Apr 15 1998 | R2 SOLUTIONS LLC | Consistent data storage in an object cache |
6128664, | Oct 20 1997 | Fujitsu Limited | Address-translating connection device |
6138156, | Oct 05 1998 | International Business Machines Corporation; IBM Corporation | Selecting and applying content-reducing filters based on dynamic environmental factors |
6151584, | Nov 20 1997 | NCR Voyix Corporation | Computer architecture and method for validating and collecting and metadata and data about the internet and electronic commerce environments (data discoverer) |
6151601, | Nov 12 1997 | NCR Voyix Corporation | Computer architecture and method for collecting, analyzing and/or transforming internet and/or electronic commerce data for storage into a data storage area |
6208649, | Mar 11 1998 | Cisco Technology, Inc. | Derived VLAN mapping technique |
6209003, | Jul 17 1998 | R2 SOLUTIONS LLC | Garbage collection in an object cache |
6212565, | Aug 26 1998 | Oracle America, Inc | Apparatus and method for improving performance of proxy server arrays that use persistent connections |
6289358, | Apr 15 1998 | R2 SOLUTIONS LLC | Delivering alternate versions of objects from an object cache |
6292880, | Apr 15 1998 | GOOGLE LLC | Alias-free content-indexed object cache |
6333931, | Dec 28 1998 | Cisco Technology, Inc | Method and apparatus for interconnecting a circuit-switched telephony network and a packet-switched data network, and applications thereof |
6353891, | Mar 20 2000 | Hewlett Packard Enterprise Development LP | Control channel security for realm specific internet protocol |
6389462, | Dec 16 1998 | Alcatel Lucent | Method and apparatus for transparently directing requests for web objects to proxy caches |
6393488, | May 27 1999 | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | System and method for supporting internet protocol subnets with network address translators |
6535511, | Jan 07 1999 | Cisco Technology, Inc. | Method and system for identifying embedded addressing information in a packet for translation between disparate addressing systems |
6581108, | Nov 30 1999 | Lucent Technologies Inc | Managing multiple private data networks using network and payload address translation |
6618757, | May 17 2000 | AVAYA Inc | System and method for dynamic IP address management |
6636898, | Jan 29 1999 | TREND MICRO INCORPORATED | System and method for central management of connections in a virtual private network |
6661799, | Sep 13 2000 | Alcatel USA Sourcing, Inc | Method and apparatus for facilitating peer-to-peer application communication |
6779035, | Mar 06 2000 | Microsoft Technology Licensing, LLC | Application programming interface and generalized network address translator for translation of transport-layer sessions |
6789126, | May 09 2000 | Oracle America, Inc | Addressing message gates in a distributed computing environment |
6799255, | Jun 29 1998 | EMC IP HOLDING COMPANY LLC | Storage mapping and partitioning among multiple host processors |
6993012, | Feb 20 2001 | PALO ALTO NETWORKS, INC | Method for communicating audio data in a packet switched network |
7016942, | Aug 05 2002 | REMOTE CONCEPTS LLC | Dynamic hosting |
7107348, | Mar 27 2001 | Fujitsu Limited | Packet relay processing apparatus |
7133368, | Feb 01 2002 | Microsoft Technology Licensing, LLC | Peer-to-peer method of quality of service (QoS) probing and analysis and infrastructure employing same |
7155518, | Jan 08 2001 | NYTELL SOFTWARE LLC | Extranet workgroup formation across multiple mobile virtual private networks |
7216359, | Dec 19 2002 | TREND MICRO INCORPORATED | Secure communication overlay using IP address hopping |
7254709, | Oct 23 2001 | UNWIRED BROADBAND, INC | Managed information transmission of electronic items in a network environment |
7302496, | Nov 12 2002 | Cisco Technology, Inc. | Arrangement for discovering a localized IP address realm between two endpoints |
7328280, | Jan 15 2003 | Panasonic Corporation | Peer-to-peer (P2P) connection despite network address translators (NATs) at both ends |
7536467, | Apr 20 2004 | Microsoft Technology Licensing, LLC | Peer-to-peer (P2P) mobility system, and method |
7543064, | Sep 30 2004 | Logitech Europe S.A. | Multiplayer peer-to-peer connection across firewalls and network address translators using a single local port on the local host |
7546125, | Oct 03 2005 | DIVITAS NETWORKS, INC ; DIVITAS NETWORKS | Enhancing user experience during handoffs in wireless communication |
7590758, | Jan 15 2003 | Panasonic Corporation | Peer-to-peer (P2P) connection despite network address translators (NATs) at both ends |
7620033, | May 21 2004 | Alcatel-Lucent USA Inc | Method for optimal path selection in traversal of packets through network address translators |
7840227, | Apr 06 2004 | Koninklijke Philips Electronics N.V. | Location based handoff for mobile devices |
7933273, | Jul 27 2007 | SONY INTERACTIVE ENTERTAINMENT INC | Cooperative NAT behavior discovery |
8060626, | Sep 22 2008 | Sony Interactive Entertainment LLC | Method for host selection based on discovered NAT type |
8224985, | Oct 04 2005 | SONY INTERACTIVE ENTERTAINMENT INC | Peer-to-peer communication traversing symmetric network address translators |
8565190, | Jul 27 2007 | SONY INTERACTIVE ENTERTAINMENT INC | NAT traversal for mobile network devices |
20020016826, | |||
20020075844, | |||
20020143855, | |||
20030009561, | |||
20030051052, | |||
20030055978, | |||
20030135625, | |||
20040024879, | |||
20040139228, | |||
20040249891, | |||
20050044247, | |||
20050105526, | |||
20050114728, | |||
20050149481, | |||
20050201391, | |||
20050251577, | |||
20050259637, | |||
20060075127, | |||
20060120293, | |||
20060209822, | |||
20060288103, | |||
20070014301, | |||
20070036143, | |||
20070058792, | |||
20070061460, | |||
20070076094, | |||
20070076099, | |||
20070076729, | |||
20070110054, | |||
20070150552, | |||
20070165629, | |||
20070191109, | |||
20070208748, | |||
20070217436, | |||
20080120404, | |||
20080165802, | |||
20080198850, | |||
20090077245, | |||
20090138610, | |||
20090180476, | |||
20090240821, | |||
CN1152383, | |||
CN1825828, | |||
CN1938996, | |||
JP2006295909, | |||
JP2007060281, | |||
JP200760281, | |||
WO197485, | |||
WO203217, | |||
WO223822, | |||
WO2004063843, | |||
WO2005088466, | |||
WO2005099173, | |||
WO9935799, | |||
WO197485, | |||
WO203217, | |||
WO223822, | |||
WO2004063843, | |||
WO2005088466, | |||
WO9935799, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jul 26 2007 | TAKEDA, YUTAKA | Sony Computer Entertainment Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 049398 | /0502 | |
Jul 26 2007 | WHITE, PAYTON E | Sony Computer Entertainment Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 049398 | /0502 | |
Jul 26 2007 | MARR, JAMES E | Sony Computer Entertainment Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 049398 | /0502 | |
Jul 26 2007 | DETWILEER, STEHPEN C | Sony Computer Entertainment Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 049398 | /0502 | |
Oct 21 2015 | SONY INTERACTIVE ENTERTAINMENT INC. | (assignment on the face of the patent) | / | |||
Apr 01 2016 | Sony Computer Entertainment Inc | SONY INTERACTIVE ENTERTAINMENT INC | CHANGE OF NAME SEE DOCUMENT FOR DETAILS | 039276 | /0023 |
Date | Maintenance Fee Events |
Apr 22 2021 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Aug 06 2022 | 4 years fee payment window open |
Feb 06 2023 | 6 months grace period start (w surcharge) |
Aug 06 2023 | patent expiry (for year 4) |
Aug 06 2025 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 06 2026 | 8 years fee payment window open |
Feb 06 2027 | 6 months grace period start (w surcharge) |
Aug 06 2027 | patent expiry (for year 8) |
Aug 06 2029 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 06 2030 | 12 years fee payment window open |
Feb 06 2031 | 6 months grace period start (w surcharge) |
Aug 06 2031 | patent expiry (for year 12) |
Aug 06 2033 | 2 years to revive unintentionally abandoned end. (for year 12) |