The invention relates generally to providing telephony services to terminals behind a firewall and/or a network address translator.
Various forms of communications can be performed in packet-based networks, such as electronic mail, web browsing, file transfer, and so forth. With the increased capacity and reliability of packet-based networks, voice communications (along with other forms of real-time, interactive communications) have also become feasible. In such communications, voice and other real-time data are carried in packets that are sent across the network.
Standards have been proposed for voice and multimedia communications over packet-based networks. One such standard is the H.323 Recommendation from the International Telecommunication Union (ITU). Another standard for voice and multimedia communications is the Session Initiation Protocol (SIP), as developed by the Internet Engineering Task Force (IETF). Generally, H.323, SIP, and other control protocols are used for negotiating session information to coordinate the establishment of a call session. Once negotiation setup has been completed, packetized media (including voice or other forms of real-time data) can flow between endpoints. A media transport protocol, such as the Real-Time Protocol (RTP), is used for conveying packetized media between the endpoints.
Various issues are associated with communications over packet-based networks. One is the dwindling supply of network addresses, such as Internet Protocol (IP) addresses. To address this problem, network address translation (NAT) is provided to enable address translations between public and private networks. By reusing a pool of private addresses in different private networks, the virtual supply of network addresses is extended. Another concern of packet-based communications is security. Once a network address of a specific node is known, this network address can be used as routing information to gain illegal access to the node and all of its resources. Network address translation can be used to hide network addresses of nodes to protect such nodes.
Also, to prevent unauthorized access of a private network, a firewall is placed between the private network and a public network. Thus, in a typical arrangement, nodes and terminals on a private network are connected behind a node that includes both a firewall and a network address translator (NAT). Collectively, such a node can be referred to as a “firewall and NAT module” or “firewall and NAT device.”
Generally, to offer telephony services to terminals or clients that reside behind a firewall and NAT module, some modification typically is needed of the firewall software. One issue is that a firewall does not allow unsolicited connections from a system or device outside a private network to nodes or devices on the private network. Another issue is that, because of the presence of a NAT, a network address allocated to a terminal (for communicating bearer traffic packets) by the NAT is not known until the network address translation actually occurs. Note that the address used by the terminal for call session setup signaling (control signaling) may be different for the address used for communication of bearer traffic packets (carrying telephony media such as voice). This is because a NAT typically dynamically assigns addresses on an as-needed basis after a call session has been established and bearer traffic packets are actually communicated. A need thus exists for an improved method and apparatus of providing telephony services to terminals or systems behind a firewall and NAT.
In general, according to one embodiment, a device capable of being used in communications through a firewall and network address translator includes an interface adapted to exchange messages with a node on another side of the firewall and network address translator. The exchange of messages is initiated by the device, which is behind the firewall and network address translator. The exchange of messages between the device and the node results in creation of a path through the firewall and network address translator. A controller is adapted to repeatedly send keep-alive messages to maintain the path through the firewall and network address translator.
In general, according to another embodiment, a system for use in communications between a first terminal and a second terminal, with the first terminal coupled to a remote network address translator, includes an interface adapted to communicate with the remote network address translator. The system further includes a storage module to store network address translation information for the first terminal. A controller is adapted to partially create the network address translation information during setup of a communications session between the first and second terminals and to wait for a media packet originated by the first terminal after the communications session has been set up to complete the network address translation information.
Some embodiments of the invention may have one or more of the following advantages. By maintaining a path through a firewall and network address translator, the path can be used for control signaling communicated from outside a private network to a terminal behind the firewall and network address translator to establish communications sessions (e.g., call sessions). Using techniques according to some embodiments, substantial modification of the firewall and network address translator can be avoided. As a result, the firewall does not need to be aware of the underlying protocol used for the communications session.
Other features and advantages will become apparent from the following description, from the drawings, and from the claims.
In the following description, numerous details are set forth to provide an understanding of the present invention. However, it will be understood by those skilled in the art that the present invention may be practiced without these details and that numerous variations or modifications from the described embodiments may be possible.
Referring to
The service provider 12 includes a private network 50 coupled to various internal nodes, and the enterprise 16 includes a private network 26 coupled to various internal nodes and terminals. The service provider 12 enables access by subscribers of various resources in the communications system 10, including the public network 14 and the PSTN 20. Thus, a user station coupled to the public network 14, such as one of user stations 22 or one of user stations 24 in the enterprise 16, can perform various forms of communications through the service provider 12. Examples of possible communications include real-time, interactive communications (e.g., voice, video conferencing, interactive electronic gaming, file transfer, whiteboarding, and so forth). Interactive electronic gaming refers to a session in which data associated with an electronic game (e.g., chess) is exchanged between two or more players over a network. Whiteboarding refers to a session in which notes can be written by participants of the session over a network to a virtual whiteboard.
The user stations 24, which are connected to the enterprise private network 26, communicate with the public network 14 through a border system 28. In one example, the border system 28 includes a firewall and network address and port translation (NAPT) capabilities, which are provided by a firewall device and an NAPT device. The firewall device and NAPT device can be implemented as separate components on separate platforms, or they can be integrated on the same platform. In the ensuing discussion, a firewall device and NAPT device are referred to collectively as a “firewall and NAPT module.” However, although referred to in the singular, the firewall and NAPT module can be made up of plural modules (implemented as software, hardware, or a combination thereof) in the border system 28 or in multiple systems. Also, although the discussion refers to features of the firewall and NAPT module, it should be understood that certain features are provided by the firewall portion while other features are provided by the NAPT module. As will be described further below, various issues are associated with provision of telephony services by the service provider 12 to devices behind the firewall and NAPT module.
The user stations 22 and 24 shown in
The service provider 12 includes various components that are visible on the public network 14, including a web server 38, a network telephone manager 40, application servers 42 and 43, and media portals 44 and 45. The service provider 12 includes internal nodes that are not visible to the public network 14, including a gateway 36 to the PSTN 20, a database server 48, an announcement server 49, and other nodes (not shown). The gateway 36 translates between call control signaling and media according to a first format (e.g., packet-based format) used on the public network 14 and another format (e.g., circuit-switched format) used on the PSTN 20. The database server 48 stores information of registered devices, including information relating to which domain the devices are in, and other information.
The web server 38 presents web pages that can be browsed by users on the public network 14. The network telephone manager 40 is used for managing network telephones. The network telephone manager 40 generates and receives call control signaling on behalf of the network telephones. Once a call is established, media is communicated directly between two endpoints (e.g., two network telephones). In other embodiments, the network telephones may be capable of exchanging and processing call control signaling without the assistance of the network telephone manager 40.
The application server 42 or 43 communicates call control signaling with stations or nodes on the public network 14 or on the private network 50 for establishing a call. Once the call is established, media and/or bearer traffic is communicated through the media portal 44 or 45 between endpoints. In one embodiment, the media packets can contain Real-Time Protocol (RTP) data that are carried within a User Datagram Protocol (UDP)/Internet Protocol (IP) packet.
In one example, call control signaling for establishing a call session is according to a Session Initiation Protocol (SIP). SIP is part of the multimedia data and control architecture from the IETF, and one version of SIP is described in Request for Comments (RFC) 2543, entitled “SIP: Session Initiation Protocol,” dated 1999. SIP can be used to initiate call sessions as well as to invite members to a session that may have been advertised by some other mechanism, such as electronic mail, web pages, and so forth. RTP, which defines a protocol for transporting real-time data, is described in RFC 1889 entitled “RTP: A Transport Protocol for Real-Time Applications,” dated January 1996. UDP defines a transport layer that is described in RFC 768, entitled “User Datagram Protocol,” dated August 1980. One version of IP is described in RFC 791, entitled “Internet Protocol,” dated September 1981, while another version of IP is described in RFC 2460, entitled “Internet Protocol, Version 6 (IPv6) Specification,” dated December 1998. Other standards can also be employed to provide call control signaling, such as the H.323 Recommendation from the International Telecommunication Union (ITU).
As used here, a “call session” refers generally to a real-time, interactive communications session that involves the exchange of real-time data between multiple parties. An interactive communications session refers to a session in which two or more parties are involved in an exchange of data. A real-time, interactive communication session refers to an exchange of data, such as audio and/or video data, on a substantially real-time basis between two endpoints. A session is substantially real-time if interaction is occurring between two endpoints with communication from one endpoint followed relatively quickly by a response or another communication from the other endpoint. A “call request” is a message for establishing a call session. A “media packet” or “media data unit” refers to a packet or data unit carrying bearer traffic (e.g., voice data, video data, interactive electronic gaming data, file transfer data, whiteboarding data, etc.) in a call session.
In accordance with some embodiments of the invention, telephony services are provided by the service provider 12 to devices on the enterprise private network 26 without substantial modification of the firewall and NAPT module (referred to as the “enterprise firewall and NAPT module”) in the border system 28. An issue associated with providing telephony services to a device behind an enterprise firewall and NAPT module is that the firewall and NAPT module prevents unsolicited access by an external device. Unless a path through the enterprise firewall and NAPT module is opened, the firewall and NAPT module hides the identity (address and port) of the device behind the firewall and NAPT module. Thus, any incoming calls to such a device would be unable to reach the device. To address this issue in accordance with one embodiment of the invention, a path or connection is created and maintained between a device behind the firewall and NAPT module and the application server 42 or 43 (which includes a SIP proxy or other like device). Maintenance of the path is accomplished by using a “keep-alive” signaling mechanism that issues periodic messages between the device and application server 42 or 43, which allows the firewall and NAPT module to maintain allocation of resources (e.g., network address and port) for the call session.
The use of keep-alive messages to maintain the path is needed in some embodiments for two reasons. One is that UDP provides for connectionless communications between two endpoints. Another is that once a message is sent by a device behind an enterprise firewall and NAPT module is sent, the path through the enterprise firewall and NAPT module through which responses can be sent to the device is maintained open for only some preset amount of time. After the preset amount of time, the path is closed.
Another issue associated with creating call sessions with a device behind an enterprise firewall and NAPT module is that the external address and port of the device behind the enterprise firewall and NAPT module allocated for media communications (communications of media packets carrying bearer traffic such as voice) is unknown until the device actually starts sending media packets. This is due to the fact that the enterprise firewall and NAPT module does not allocate an external address and port to the device for media communications until media communications actually start. Note that during call session setup, the enterprise firewall and NAPT module allocates an external address and port to the device for communication of call control signaling—-however, the control address and port is different from the media address and port for communication of media packets.
One of the tasks performed by the media portal 44 or 45 is network address and port translation (NAPT) of media packets exchanged during a call session. Note that an NAPT module in the media portal 44 or 45 is separate and distinct from the enterprise firewall and NAPT module. Whereas the enterprise firewall and NAPT module is provided to protect devices on the enterprise private network 26, the NAPT module in the media portal 44 or 45 is provided to hide identities of devices on the service provider private network 50 and to shield identities of endpoints that communicate media packets through the media portal 44 or 45 during a call session. The NAPT module in the media portal 44 or 45 translates both the source and destination addresses (e.g., IP addresses) and ports (e.g., UDP ports) of each received packet. This is a departure from standard network address and port translators, which typically translate only one of the source and destination addresses for a given direction of the media packet.
To perform NAPT, the media portal 44 or 45 maintains an NAPT table that contains information for mapping addresses and ports in media packets. The media portal 44 or 45 is able to partially create NAPT mappings during a call establishment flow, but the media portal 44 or 45 waits until the first media packet arrives from device(s) behind respective firewall and NAPT module(s) before the NAPT mappings can be completed.
Although reference is made to NAPT modules that translate both network addresses and ports, other embodiments may involve translation modules that translate only the network address or only the port. Calls handled through the service provider 12 can involve endpoints that are both located outside the private network 50, such as user stations 22 and/or user stations 24. Alternatively, a call can involve an endpoint outside the service provider private network 50 and a node on the service provider private network 50, such as the gateway 36 or the announcement server 49. Also, although only one enterprise 16 is illustrated in
The various arrangements described herein are provided as examples only, as other embodiments may utilize other arrangements.
Referring to
The call processing module 102 also includes a second network interface 110 coupled to the private network 50, and one or more protocol layers 112 above the network interface 110.
The control logic 100 of the application server 42 or 43 communicates with host logic 114 in the media portal 44. The control logic 100 and host logic 114, which can be implemented in software or a combination of software and hardware, employ a predefined messaging scheme to exchange messages with each other. In one example, the messaging scheme is according to an enhanced version of the Media Gateway Control Protocol (MGCP), as described in RFC 2705, entitled “Media Gateway Control Protocol (MGCP), Version 1.0,” dated October 1999. Enhancements to the MGCP messages are added to support transport of certain types of data between the media portal 44 or 45 and the application server 42 or 43. The enhancements include the introduction of a new format of a parameter EndpointId used to identify endpoints and a parameter (referred to as X+NAPTAddressType) to specify the type of network mapping. Such enhancements are explained below.
The media portal 44 or 45 also includes a media packet engine 116. In one embodiment, the media packet engine 116 can be implemented on multiple circuit boards or blades (each with two interfaces to the public and private networks 14 and 50) to enhance concurrent communication of messages. The media packet engine 116 includes a first network interface 118 coupled to the public network 14, and one or more protocol layers 120 above the network interface 118. Similarly, a second network interface 122 is coupled to the private network 50, and one or more protocol layers 124 are provided above the network interface 122. An RTP/RTCP module 126 is also part of the media packet engine 116. RTP, which provides a mechanism for transporting real-time data across a packet-based network, is an application sublayer that typically runs on top of the UDP layer (which is part of the protocol layers 120 or 124). Specified along RTP is the Real-Time Control Protocol (RTCP), which provides a mechanism for sharing various session data between endpoints. In accordance with one embodiment, voice and other forms of real-time data are carried in RTP packets communicated across the public network 14 and the private network 50.
Also included in the media packet engine 116 is an NAPT module 127 and an NAPT table 128 that contains plural entries 130. Each entry of the NAPT table 128 contains mapping information for source and destination addresses and ports of media packets received from the networks 14 and 50. For a given call session involving a first device and a second device, each NAPT table entry includes a first address and port of the first device, a second address and port of the second device, a first alias address and port mapped to the first device address and port, and a second alias address and port mapped to the second device address and port. The contents of each NAPT table entry are discussed further below. The NAPT table entry is dynamically updated as a call session is being established. Once the call session is terminated, the allocated resources in the NAPT table entry are deleted and made available to other call sessions.
The NAPT table 128 is stored in a storage module 132. The NAPT module 127 uses information in the NAPT table 128 to perform network address and port translations.
Referring to
Thus, from the perspective of each endpoint, the media portal 44 or 45 is the node that each endpoint is communicating with. In effect, the media portal 44 or 45 masquerades as the endpoint in a call session that each of the two “real” endpoints is communicating with. As noted above, the media portal 44 or 45 resides in the media path of a call session for communicating media packets containing bearer traffic. Note that if one of the endpoints is behind an enterprise firewall and NAPT module, then the NAPT mapping in the media portal 44 or 45 is not completed until the endpoint behind the enterprise firewall and NAPT module sends its first media packet.
In the control path, the application server 42 or 43 serves as the SIP proxy for one or more of the user stations 22 or 24 and other devices (e.g., the gateway 36) that are capable of participating in call sessions. Thus, as each user station 22 or 24 or other device is started, the user station 22 or 24 or other device performs SIP registration with the application server 42 or 43.
The SIP REGISTER packet includes an IP header containing source and destination IP addresses, a UDP header containing source and destination UDP ports, and a payload. The source network address and port (e.g., 10.1.1.1:5060), which is a private address that has meaning only on the enterprise private network 26, identifies device A, while the destination network address and port (e.g., 147.3.3.3:5060), which is a public address, identifies the first application server 42. The payload of the SIP REGISTER message indicates that the registration is being attempted from device A (having identifier A@xxx.com). In addition, the payload has an NAPT Active flag, which indicates that the message is from a device that is subject to enterprise NAPT (which allocates a public address for device A). In one embodiment, the NAPT Active flag is inserted into the SIP REGISTER message payload by the device A. This flag is used to indicate special handling at the application server.
The SIP REGISTER message is routed through the firewall and NAPT module FNA, which creates a mapping (at 304) between the source address and port Ainternal (of the device A) and an available external address and port Apublic (allocated by the firewall and NAPT module FNA). This mapping is maintained by the firewall and NAPT module FNA to provide a path for responses to flow back to device A. Conventionally, the mapping is removed after a configured time interval passes. However, as explained below, the mapping is maintained by a keep-alive signaling mechanism to allow a signaling path between device A and the application server 42 through the firewall and NAPT module FNA.
The firewall and NAPT module FNA forwards (at 306) the SIP REGISTER message to the first application server 42. The SIP REGISTER message remains the same, except the source network address and port Ainternal in the IP and UDP headers in the REGISTER message has been replaced with Apublic. Upon receipt of the SIP REGISTER message, the first application server 42 determines that the NAPT Active flag has been set and creates (at 308) an association between A@xxx.com and the From: address (Apublic) in the packet. This is contrasted to the standard process of mapping A@xxx.com to the SIP REGISTER Contact: Address. If needed, the application server 42 creates or updates a profile associated with the registering device in the database server 48.
The first application server 42 then responds (at 310) with a SIP 200 OK message. This message is sent to the enterprise NAPT address (Apublic), not the “real” address (Ainternal) of device A, since the “real” address is a private address and cannot be properly routed on the public network. The SIP 200 OK message has the following content according to one example:
The SIP 200 OK message routes to the enterprise firewall and NAPT module FNA for xxx.com, where the public destination address (Apublic or 47.2.2.2:6000) is mapped to the internal address and port (Ainternal) of the originating terminal. The IP/UDP headers of the packet containing the SIP 200 OK message are modified, and the modified packet is sent by the enterprise firewall and NAPT module FNA (at 312) to device A. The modified SIP 200 OK message is the same as the original SIP 200 OK message except the destination network address and port in the IP and UDP headers of the OK message has been changed from Apublic to Ainternal. The device A receives the SIP 200 OK message as confirmation that the registration was successful.
At this point, a two-way signaling path exists between device A and the application server 42 through the firewall and NAPT module FNA. The firewall and NAPT module FNA includes a timer that when expired causes the signaling path between the device A and application server 42 to be closed (which results from the NAPT mapping in the application server 42 being removed).
To maintain the signaling path active, device A periodically transmits (at 314) a “keep-alive” message through the enterprise firewall and NAPT module FNA to maintain the mapping of the SIP signaling addresses for the duration of the registration. In one example, the keep-alive message is a SIP PING message. In other embodiments, other types of keep-alive messages can be used. The SIP PING message, which contains the source address and port of device A and the destination address and port of the application server 42, causes the timer in the firewall and NAPT module FNA to reset and start a new count-down, thereby enabling the allocation of mapping resources and thus the signaling path through the firewall and NAPT module FNA. In another embodiment, the keep-alive messages are initiated by a network server (e.g., the application server 42 or some other network node) rather than device A.
The timing of the keep-alive messages is controlled by a timer 350 in device A. The timer 350 can be configured to count a predetermined time period after which the keep-alive message is transmitted. Enterprise device A also includes a control module 354 (implemented in software and/or hardware) that provides control tasks (e.g., exchanging call control signaling and communicating media traffic) for the enterprise device A. The enterprise device A also includes an interface 358 that enables communications over data networks.
Device B, which is in a separate enterprise private network associated with firewall and NAPT module FNB, performs a similar registration process (at 316) with the second application server 43. A mapping is created (at 318) by the enterprise firewall and NAPT module FNB between the internal network address and port (Binternal) and an external or public network address and port (Bpublic). The second application server 43 also creates (at 320) an association between B@yyy.com and the external network address and port Bpublic that the message came from. To maintain the SIP signaling path open, enterprise terminal B also periodically sends (at 322) keep-alive messages.
Enterprise B includes a timer 352, control module 356, and an interface 360 that are similar to respective components in enterprise A. In the above example, the enterprise devices A and B contain timers to enable them to send keep-alive messages. However, in an alternative embodiment, the application server 42 or 43 can include the timer and logic to send keep-alive messages to the enterprise devices A and B.
Thus, a SIP registration process is provided that enables a signaling path to be maintained between an enterprise device and a SIP proxy (the application server 42 or 43) through an enterprise firewall and NAPT module (FNA or FNB) for the duration of a given SIP registration, without requiring that the enterprise firewall and NAPT module be aware of SIP. This is referred to as a “transparent firewall” functionality. However, although a constant signaling is established for the enterprise device in the registration process, the same is not true of the media path. The media path actually changes on a per-session basis. This is due to the fact that the enterprise firewall and NAPT module dynamically assigns mappings as required from its currently available pool of resources. An implication of this is that the enterprise firewall and NAPT module only sets up the mapping upon receipt of a media packet, which happens to occur after call setup has been completed and media packets are actually communicated.
The above example assumes that the enterprise devices A and B are SIP-enabled (that is, they are capable of exchanging SIP messages). However, in some cases, the enterprise device A or B may not be SIP-enabled. An example of such a device is the i2004 network telephone, which cooperates with a network telephone manager (e.g., the network telephone manager 40 in
Maintenance of the signaling path in this alternative embodiment between the enterprise device and the network telephone manager 40 is similarly accomplished by using a timer in the network telephone manager 40, which periodically sends a message (based on the timer) to the enterprise device A or B. The enterprise device A or B acknowledges the message, thereby keeping the signaling path open. Again, the enterprise firewall and NAPT module need not be aware of the telephony protocol used between the network telephone manager 40 and the enterprise device A or B.
Referring to
An example SIP INVITE message is shown below:
The source address and port Ainternal (10.1.1.1:5060) specifies enterprise device A, while the destination network address and port (147.3.3.3:5060) specifies an address and port of the first application server 42. The payload section of the IP packet contains a SIP INVITE message, which contains a From: address, e.g., A@xxx.com (identifying enterprise device A), and a To: address, e.g., B@yyy.com (identifying enterprise device B). The SDP portion of the SIP INVITE message specifies the media network address and port (Amedia
The firewall and NAPT module FNA substitutes Aprivate (the source address and port in the IP and UDP headers of the packet containing the INVITE message) with Apublic, and forwards the modified packet containing the SIP INVITE message (at 404) to the first application server 42.
Upon receiving the SIP INVITE message, the first application server 42 locates the application server for the yyy.com domain (of enterprise device B), and engages the first media portal 44 to prepare NAPT mappings for the call session that is to be established. The application server 42 sends (at 406) a message to the media portal 44 to create the NAPT mapping information (in the form of an entry in the mapping table 128). In one embodiment, the request includes an MGCP CreateConnection message, with one example provided below:
One pertinent field of the CreateConnection message is the parameter EndpointId, which is equated to A:0000@0.0.0.0 (a dummy address), where A represents audio. For video or other media, other indicators are used. The dummy address is used as an indicator that the address should be filled in later. The EndpointId parameter, which is a parameter whose format has been altered from the standard MGCP-defined EndpointId as an enhancement, identifies the address and port that the media portal 44 is to allocate resources for. The example provided above (and elsewhere in this description) is a relatively simple implementation of EndpointId. Other fuller implementations include providing a larger part of the media description that is in the SDP portion of the INVITE or other SIP message). Also, a CallId parameter is supplied in the MGCP CreateConnection message. The CallId parameter is used as a key to point to an entry in the NAPT mapping table 128.
Another parameter in the MGCP CreateConnection message is a parameter X+NAPTAddressType to identify the different types (internal or external) of endpoints. The X+NAPTAddressType parameter is also added to the MGCP CreateConnection request as an enhancement. From the perspective of the media portal 44 in the example above, the address and port of the media portal 44 interfacing the originating endpoint, which is the enterprise device A (through the enterprise firewall and NAPT module FNA), is a public address and port (referred to as Bmedia″). The address and port of the media portal 44 interfacing the terminating endpoint, which is the second media portal 45, is a private address and port (referred to as Amedia′) on the service provider private network 50. Thus, the X+NAPTAddressType parameter is used to assign the appropriate public and private NAPT addresses and ports in the media portal 44.
The first application server 42 uses the X+NAPTAddressType parameter to inform the first media portal 44 to allocate a public NAPT address and port (Bmedia″ or TN) to interface the originating endpoint (enterprise device A through the enterprise firewall and NAPT module FNA), and to allocate a private NAPT address and port (Amedia′ or ON) to interface the terminating endpoint (media portal 45). TN is the address and port at the media portal 44 or 45 that represents the terminating endpoint to the originating endpoint, while ON is the address and port at the media portal 44 or 45 that represents the originating endpoint to the terminating endpoint. In this example, media packets are exchanged between Amedia (at the enterprise firewall and NAPT module FNA) and Bmedia″ (at the media portal 44); and media packets are exchanged between Bmedia′ (at the second media portal 45) and Amedia′ (at the first media portal 44). When a media packet is received by the media portal 44, Amedia is mapped to Amedia′ while Bmedia′ is mapped to Bmedia″.
In response to the MGCP CreateConnection request above, the media portal 44 reserves NAPT resources (at 408) for communications of media packets in the call session. However, at this point, the first media portal 44 is unable to build a complete mapping of the address and port space. The reason for this is that the address and port supplied in the SDP of the SIP INVITE is enterprise device A's private address (Amedia
The first media portal 44 reserves two available NAPT network addresses and ports: the originating NAPT address and port (Amedia′) and the terminating NAPT address and port (Bmedia″). However, the originating endpoint network address and port (Amedia) is not known at this point, nor is the terminating endpoint network address and port (Bmedia′). The mapping table entry at this point is shown below:
The mapping table entry is pointed to by the CallId parameter, which is used as a key.
Next, the first media portal 44 returns (at 410) the originating NAPT address and port (Amedia′) to the first application server 42. The first application server 42 also responds (at 412) to enterprise device A with a SIP 100 TRYING. Note that the TRYING message is likely to have been communicated earlier (for example, right after the application server 42 receives the SIP INVITE message at 404).
Next, the first application server 42 performs a substitution of Amedia
When the modified SIP INVITE message arrives at the second application server 43, the second application server 43 locates B @yyy.com and engages the second media portal 45 to reserve NAPT resources. This is accomplished by sending (at 416) an MGCP CreateConnection message to the second media portal 45. From the perspective of the second media portal 45, the originating endpoint (Amedia′) is the first media portal 44, which is on the service provider private network 50. The terminating endpoint (Bmedia
The network connection between the second media portal 45 and Amedia′ is a private network connection (on private network 50), while the network connection between the media portal 45 and Bmedia is a public network connection. The second application server 43 uses the X+NAPTAddressType parameter in the CreateConnection message to inform the second media portal 45 to allocate respective NAPT (external and internal) addresses and ports to each endpoint. In this example, the originating endpoint (Amedia′) is an internal network address, so the NAPT address Bmedia′ or TN of the second media portal 45 that communicates with Amedia′ is assigned as an internal address. The terminating endpoint Bmedia is an external public network address, so the NAPT address Amedia− or ON of the second media portal 45 that communicates with Bmedia is assigned as an external address.
The MGCP CreateConnection message sent at 416 according to one example is as follows:
The second media portal 45 reserves (at 418) two available addresses and ports: originating NAPT network address and port (Amedia″) and terminating NAPT address and port (Bmedia′). The created partial table entry is as follows:
The table above specifies a mapping between Amedia′ and Amedia″, and a mapping between Bmedia′ and Bmedia. The second media portal 45 returns (at 420) the originating NAPT address and port (Amedia″) to the second application server 43. The second application server 43 then responds (at 422) to the first application server 42 with a SIP 100 TRYING message.
The second application server 43 modifies the SIP INVITE message and forwards it (at 424) to enterprise device B through the firewall and NAPT module FNB. The second application server 43 modifies the SIP INVITE message by changing the SDP portion to substitute Amedia′ with Amedia″.
The firewall and NAPT module FNB performs another address and port translation, in which the destination address and port Bpublic in the IP and UDP headers of the SIP INVITE message is changed to Binternal. The modified packet containing the SIP INVITE message is then forwarded (at 426) to enterprise device B.
Enterprise device B then signals the originating terminal with a SIP 180 RINGING message. This is propagated (at 428) all the way back to enterprise device A through various intermediaries. When enterprise device B answers, it sends a SIP 200 OK message (at 430) to the second application server 43.
The SIP 200 OK message according to one example includes the following:
The SDP portion of the SIP 200 OK message contains the source network address and port (Bmedia
Upon receiving the SIP 200 OK message, the firewall and NAPT module FNB locates the associated mapping between the source address and port Binternal for device B and the assigned external address and port Bpublic. This mapping was established as part of the registration procedure described above, and maintained through the use of the keep-alive messages. The firewall and NAPT module FNB substitutes the source address and port in the IP and UDP headers of the SIP 200 OK message (replacing Binternal with Bpublic), and forwards (at 432) the message to the second application server 43. When the second application server 43 receives the SIP 200 OK message, it sends a ModifyConnection request (at 434) to the second media portal 45.
Since enterprise device B is configured behind the enterprise firewall and NAPT module FNB, the actual media address and port for enterprise device B will not be known until the enterprise device B transmits its first media packet through the enterprise firewall and NAPT module FNB. Thus, the address and port Bmedia
Using the CallId parameter as a key, a mapping table entry is identified (at 436), and the TermEndpoint parameter is filled with 0000@0.0.0.0. At this point, the second media portal 45 is not able to perform the NAPT function yet since it does not have the complete mapping information.
The second media portal 45 then returns (at 438) the terminating NAPT address and port (Bmedia′) in an MGCP response to the second application server 43. The second application server 43 substitutes (in the SDP portion of the SIP 200 OK message) address Bmedia
In response to the SIP 200 OK message, the first application server 42 sends a ModifyConnection request (at 442) to the first media portal 44 to allocate the necessary NAPT address and port resources. The contents of the MGCP ModifyConnection request is as follows:
The first media portal 44 uses the CallId parameter as a key to find the mapping resources and fills (at 444) in the TermEndpoint field with address Bmedia′. The updated mapping table entry is as follows:
However, the first media portal 44 is still not yet able to perform NAPT translations since the OrigEndpoint address and port are still not known at this point (filled with the dummy address).
The first media portal 44 then returns (at 446) the terminating NAPT address and port in an MGCP response. The first application server 42 substitutes (in the SDP portion of the SIP 200 OK message) the address Bmedia′ with Bmedia″. The first application server 42 sends (at 448) the modified SIP 200 OK message to enterprise device A through the firewall and NAPT module FNA. The firewall and NAPT module FNA locates the associated mapping between the assigned external address and port of the enterprise terminal A (Apublic) and the internal address and port (Ainternal) for enterprise device A and substitutes the information in the destination address and port fields in the IP and UDP headers of the SIP 200 OK message (replacing Apublic with Ainternal). The modified SIP 200 OK message is sent (at 450) from the firewall and NAPT module FNA to the enterprise device A.
Enterprise device A responds (at 452) with a SIP ACK message, which is propagated through the various devices back to enterprise device B. At this point, a media session is established (at 454) between enterprise device A and enterprise device B through the first and second firewall and NAPT modules FNA and the first and second media portal 44 and 45. Note that the NAPT mappings in the first and second media portals at this point are still not fully established. The media portals 44 and 45 await transmission of media packets from respective enterprise devices A and B to complete the NAPT mappings.
Referring to
The firewall and NAPT module FNB does not have a mapping for the communication of media packets, so FNB creates a mapping between the private media source address and port Bmedia
The modified media packet is sent (at 460) to the second media portal 45. When the second media portal 45 receives the packet, the second media portal 45 fills (at 461) the TermEndpoint field with the source address and port information Bmedia from the media packet. The mapping table entry now looks as follows:
The second media portal 45 consults the mapping table entry and performs a substitution of both the source and destination network addresses and ports, and sends the modified media packet (at 462) to the first media portal 44.
However, the NAPT mapping information is not fully established in the first media portal 44 for the media session between enterprise devices A and B, assuming that a media packet has not been received yet from enterprise device A. Thus, the first media portal 44 is locked (at 464) in this waiting state (discarding packets) until a media packet arrives from enterprise device A.
At some point, enterprise device A sends (at 466) a media packet to the first media portal 44 (through the firewall and NAPT module FNA). The media packet is as follows:
Since the firewall and NAPT module FNA does not have mappings for the session yet, it creates a mapping between the private media source address and port Amedia
When the first media portal 44 receives the media packet from enterprise device A (really from the firewall and NAPT module FNA), the media portal 44 now has enough information to complete the mapping table entry for the media session. As a result, it accesses the OrigEndpoint information and replaces the dummy address 0.0.0.0:0000 with the source address and port Amedia of the media packet received from the firewall and NAPT module FNA. The mapped table entry in the first media portal 44 now looks as follows:
The first media portal 44 then modifies the source and destination network addresses and ports of the media packet and sends (at 470) the media packet through the second media portal 45 to enterprise device B.
Once the mapping table entry in the first media portal is completed, any packets originated by enterprise device B can be forwarded (at 472 and 474) through the firewall and NAPT module FNA to enterprise device A. At this point, bidirectional media flows can be performed (at 476) between enterprise devices A and B.
The various nodes and systems discussed each includes various software routines or modules. Such software routines or modules are executable on corresponding control units. Each control unit includes a microprocessor, a microcontroller, a processor card (including one or more microprocessors or microcontrollers), or other control or computing devices. As used here, a “controller” refers to a hardware component, software component, or a combination of the two. Although used in the singular sense, a “controller” can also refer to plural hardware components, plural software components, or a combination thereof.
The storage devices referred to in this discussion include one or more machine-readable storage media for storing data and instructions. The storage media include different forms of memory including semiconductor memory devices such as dynamic or static random access memories (DRAMs or SRAMs), erasable and programmable read-only memories (EPROMs), electrically erasable and programmable read-only memories (EEPROMs) and flash memories; magnetic disks such as fixed, floppy and removable disks; other magnetic media including tape; and optical media such as compact disks (CDs) or digital video disks (DVDs). Instructions that make up the various software routines or modules in the various devices or systems are stored in respective storage devices. The instructions when executed by a respective control unit cause the corresponding node or system to perform programmed acts.
The instructions of the software routines or modules are loaded or transported to each node or system in one of many different ways. For example, code segments including instructions stored on floppy disks, CD or DVD media, a hard disk, or transported through a network interface card, modem, or other interface device are loaded into the device or system and executed as corresponding software routines or modules. In the loading or transport process, data signals that are embodied in carrier waves (transmitted over telephone lines, network lines, wireless links, cables, and the like) communicate the code segments, including instructions, to the device or system. Such carrier waves are in the form of electrical, optical, acoustical, electromagnetic, or other types of signals.
While the invention has been disclosed with respect to a limited number of embodiments, those skilled in the art will appreciate numerous modifications and variations therefrom. It is intended that the appended claims cover such modifications and variations as fall within the true spirit and scope of the invention.
This is a continuation of U.S. Ser. No. 09/881,594, filed Jun. 14, 2001, which is hereby incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
5727146 | Savoldi | Mar 1998 | A |
5826016 | Ito | Oct 1998 | A |
6058431 | Srisuresh | May 2000 | A |
6128298 | Wootton et al. | Oct 2000 | A |
6219706 | Fan | Apr 2001 | B1 |
6233245 | Chapman | May 2001 | B1 |
6307845 | Hummelgren | Oct 2001 | B1 |
6331984 | Luciani | Dec 2001 | B1 |
6381646 | Zhang et al. | Apr 2002 | B2 |
6389462 | Cohen | May 2002 | B1 |
6396833 | Zhang | May 2002 | B1 |
6427174 | Sitaraman | Jul 2002 | B1 |
6510154 | Mayes | Jan 2003 | B1 |
6608830 | Hirano et al. | Aug 2003 | B1 |
6636898 | Ludovici | Oct 2003 | B1 |
6650641 | Albert | Nov 2003 | B1 |
6654882 | Froutan | Nov 2003 | B1 |
6697354 | Borella et al. | Feb 2004 | B1 |
6697377 | Ju | Feb 2004 | B1 |
6731642 | Borella | May 2004 | B1 |
6744767 | Chiu | Jun 2004 | B1 |
6771674 | Schuster | Aug 2004 | B1 |
6822957 | Schuster | Nov 2004 | B1 |
6829239 | Bhatia | Dec 2004 | B1 |
6880089 | Bommareddy et al. | Apr 2005 | B1 |
6892245 | Crump | May 2005 | B1 |
6928082 | Liu et al. | Aug 2005 | B2 |
6944673 | Malan | Sep 2005 | B2 |
6957346 | Kivinen et al. | Oct 2005 | B1 |
7042876 | Jayasenan et al. | May 2006 | B1 |
7068655 | March | Jun 2006 | B2 |
7146410 | Akman | Dec 2006 | B1 |
7272650 | Elgebaly et al. | Sep 2007 | B2 |
7406713 | Sheymov | Jul 2008 | B2 |
7797433 | Kennedy et al. | Sep 2010 | B2 |
7814208 | Stephenson et al. | Oct 2010 | B2 |
7830870 | Kuo et al. | Nov 2010 | B2 |
20020023143 | Stephenson et al. | Feb 2002 | A1 |
20020037723 | Roach | Mar 2002 | A1 |
20020042832 | Fallentine et al. | Apr 2002 | A1 |
20020078198 | Buchbinder et al. | Jun 2002 | A1 |
20020114319 | Liu | Aug 2002 | A1 |
20020120760 | Kimchi et al. | Aug 2002 | A1 |
20020122416 | Xu et al. | Sep 2002 | A1 |
20020159447 | Carey et al. | Oct 2002 | A1 |
20020169842 | Christensen et al. | Nov 2002 | A1 |
20020184316 | Thomas et al. | Dec 2002 | A1 |
20030009534 | Yamagishi | Jan 2003 | A1 |
20030043740 | March | Mar 2003 | A1 |
20030145093 | Oren et al. | Jul 2003 | A1 |
20040024879 | Dingman et al. | Feb 2004 | A1 |
20040037268 | Read | Feb 2004 | A1 |
20040095937 | Piche et al. | May 2004 | A1 |
20040100976 | Chang | May 2004 | A1 |
20040153549 | Naito et al. | Aug 2004 | A1 |
20040230688 | Gbadegesin | Nov 2004 | A1 |
20050135359 | Chang | Jun 2005 | A1 |
20050254482 | Yeom | Nov 2005 | A1 |
20060120366 | Jayasenan et al. | Jun 2006 | A1 |
20060288411 | Garg | Dec 2006 | A1 |
20070136480 | Stephenson et al. | Jun 2007 | A1 |
20070192508 | Sollee | Aug 2007 | A1 |
20080075097 | Kitada | Mar 2008 | A1 |
20080168181 | Berkvens | Jul 2008 | A1 |
20080256624 | Sheymov | Oct 2008 | A1 |
Number | Date | Country |
---|---|---|
1130846 | Sep 2001 | EP |
WO 9740610 | Oct 1997 | WO |
WO 9959071 | Nov 1999 | WO |
WO 0060826 | Oct 2000 | WO |
WO 0078008 | Dec 2000 | WO |
WO 0137510 | May 2001 | WO |
WO 0203217 | Jan 2002 | WO |
WO 0211400 | Feb 2002 | WO |
WO 02084974 | Oct 2002 | WO |
Number | Date | Country | |
---|---|---|---|
20070094412 A1 | Apr 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09881594 | Jun 2001 | US |
Child | 11601394 | US |