JP2006005754A - Sip signal conversion method, sip-alg device, sip signal conversion program, and recording medium - Google Patents

Sip signal conversion method, sip-alg device, sip signal conversion program, and recording medium Download PDF

Info

Publication number
JP2006005754A
JP2006005754A JP2004181340A JP2004181340A JP2006005754A JP 2006005754 A JP2006005754 A JP 2006005754A JP 2004181340 A JP2004181340 A JP 2004181340A JP 2004181340 A JP2004181340 A JP 2004181340A JP 2006005754 A JP2006005754 A JP 2006005754A
Authority
JP
Japan
Prior art keywords
sip
address
signal
port number
sdp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2004181340A
Other languages
Japanese (ja)
Other versions
JP4191099B2 (en
Inventor
Kazuhito Hayashi
和仁 林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2004181340A priority Critical patent/JP4191099B2/en
Publication of JP2006005754A publication Critical patent/JP2006005754A/en
Application granted granted Critical
Publication of JP4191099B2 publication Critical patent/JP4191099B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a SIP signal conversion method in which each SIP-ALG independently determine whether the SIP transmission between terminals is the one in an identical private network or not when a SIP signal is relayed by a plurality of SIP-ALGs in the SIP transmission between terminals. <P>SOLUTION: As for a SIP signal transmitted from a private network to a global network, a network identification information of a NAT device and an IP address and a port number before and after conversion of an SDP are set up as an original SIP header, when the IP address and the port number of the SIP signal are converted at a SIP-ALG. In addition, as for a SIP signal transmitted from the global network to the private network, the original SIP header is compared with the network identification information of the NAT device and the SDP to determine whether they are terminals of an identical private network. Moreover, the IP address and the port number of the SDP are converted into the IP address and the port number before conversion included at the original SIP header, in the case of the SIP communication between terminals in the identical private network. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、SIP信号変換方法、SIP-ALG装置、SIP信号変換プログラム、および記録媒体に関し、特に、プライベート網とグローバル網を接続するNAT装置が複数個のSIP-ALGのいずれかと接続されており、かつ、前記同一プライベート網の端末間でSIP通信を行うときに、2つの異なるSIP-ALGを経由するときのSIP信号のIPアドレスおよびポート番号を変換する場合に適用して有効な技術に関するものである。   The present invention relates to a SIP signal conversion method, a SIP-ALG device, a SIP signal conversion program, and a recording medium, and in particular, a NAT device that connects a private network and a global network is connected to one of a plurality of SIP-ALGs. In addition, when performing SIP communication between terminals of the same private network, the present invention relates to a technique that is effective when applied to the case of converting the IP address and port number of a SIP signal when passing through two different SIP-ALGs. It is.

従来、あるプライベート網の端末が、同じプライベート網の端末、またはグローバル網あるいは他のプライベート網の端末と、音声や映像等のメディア信号の送受信を行うときには、たとえば、まず、前記端末間でSIP通信を行い、セッションを確立する。このとき、前記端末間で送受信されるSIP信号は、たとえば、前記グローバル網に収容されたSIPサーバを経由する。前記プライベート網とグローバル網、あるいはIPv4網とIPv6網のようにアドレス体系の異なる網は、NAT装置を用いて接続されているので、前記プライベート網の端末から前記SIPサーバに送信されるSIP信号および前記SIPサーバから前記プライベート網の端末に送信されるSIP信号は、必ず前記NAT装置を経由する。このとき、前記NAT装置は、SIP-ALGに前記SIP信号のIPアドレスおよびポート番号を変換させる。   Conventionally, when a terminal of a certain private network performs transmission / reception of media signals such as voice and video with a terminal of the same private network, or a terminal of the global network or another private network, first, for example, SIP communication between the terminals To establish a session. At this time, the SIP signal transmitted / received between the terminals passes through a SIP server accommodated in the global network, for example. Since networks having different address systems such as the private network and the global network, or the IPv4 network and the IPv6 network are connected using a NAT device, the SIP signal transmitted from the terminal of the private network to the SIP server and A SIP signal transmitted from the SIP server to the terminal of the private network always passes through the NAT device. At this time, the NAT device causes SIP-ALG to convert the IP address and port number of the SIP signal.

前記SIP-ALGは、前記NAT装置と連携して、たとえば、SIPレイヤにおいてViaやContactヘッダ等のSIPヘッダのIPアドレスおよびSIP信号受信用ポート番号の変換と、SIPボディのSDPによるセッション記述内のIPアドレスおよびメディア受信用ポート番号の変換を行う。このように、前記SIP-ALGにおいてメディア受信用のIPアドレスおよびポート番号を変換することで、前記SIP信号の送受信を行った端末間での前記メディア信号の送受信を可能とすることができる(たとえば、非特許文献1を参照。)。   The SIP-ALG, in cooperation with the NAT device, for example, converts the IP address of the SIP header such as Via or Contact header and the SIP signal reception port number in the SIP layer, and in the session description by SDP of the SIP body. Converts IP address and media reception port number. Thus, by converting the IP address and port number for media reception in the SIP-ALG, it is possible to transmit and receive the media signal between terminals that have transmitted and received the SIP signal (for example, , See Non-Patent Document 1.)

また、あるプライベート網の端末(第1端末)が、グローバル網に設置されたSIPサーバを経由して他の端末とSIP通信を行う場合、前記SIP通信を行う他の端末が同じプライベート網の端末(第2端末)であっても、前記第1端末からグローバル網のSIPサーバにSIP信号を送信し、その後前記グローバル網のSIPサーバから前記第2端末にSIP信号を送信することとなる。したがって、一方の端末から他方の端末に対して送信されたSIP信号は、プライベート網からグローバル網(SIPサーバ)へ送信されるときと、グローバル網(SIPサーバ)からプライベート網へ送信されるときの2回、SIP-ALGを経由することとなる。このように2回SIP-ALGを経由する特徴を利用し、1回目のSIP-ALG経由時に送信元プライベート網の網識別情報とプライベート網側のSDP情報を取得してSIP-ALG上に保持しておき、2回目のSIP-ALG経由時に送信先プライベート網の網識別情報を取得し、1回目に収集し保持していた網識別情報と比較して送信元プライベート網と送信先プライベート網が同一か否かを判定し、前記SIP通信が同一プライベート網の端末間での通信か否かの判定する技術が近年、提案されている。この方法では、前記グローバル網(SIPサーバ)からプライベート網の端末に送信されるSIP信号が経由するSIP-ALGにおいて、前記SIP信号を最初に送信した端末が同一プライベート網の端末か、またはグローバル網あるいは他のプライベート網の端末であるかの判定をし、同一プライベート網の端末である場合、たとえば、前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換前、すなわち各端末が収容されているプライベート網のアドレス体系に沿ったIPアドレスおよびメディア受信用ポート番号に再変換する。その結果、前記各端末は、メディア信号の送受信を行うためのIPアドレスおよびメディア受信用ポート番号を、前記プライベート網のアドレス体系に沿ったIPアドレスおよびメディア受信用ポート番号として取得するので、前記プライベート網内に通信経路を設定し、前記NAT装置(グローバル網)を介さずにメディア信号の送受信を行うことができる。   In addition, when a terminal in a private network (first terminal) performs SIP communication with another terminal via a SIP server installed in the global network, the other terminal that performs the SIP communication is a terminal in the same private network. Even in the case of (second terminal), a SIP signal is transmitted from the first terminal to the SIP server of the global network, and thereafter, the SIP signal is transmitted from the SIP server of the global network to the second terminal. Therefore, the SIP signal transmitted from one terminal to the other terminal is transmitted from the private network to the global network (SIP server) and from the global network (SIP server) to the private network. It will go through SIP-ALG twice. In this way, using the feature that goes through the SIP-ALG twice, the network identification information of the source private network and the SDP information on the private network side are acquired and stored on the SIP-ALG during the first time through the SIP-ALG. In addition, the network identification information of the destination private network is acquired during the second SIP-ALG, and the source private network and the destination private network are the same compared with the network identification information collected and held the first time. In recent years, a technique for determining whether or not the SIP communication is communication between terminals of the same private network has been proposed. In this method, in SIP-ALG through which a SIP signal transmitted from the global network (SIP server) to a private network terminal passes, the terminal that first transmitted the SIP signal is the same private network terminal or the global network. Alternatively, if it is a terminal of the other private network, and if it is a terminal of the same private network, for example, the IP address and media reception port number of the session description by the SDP are converted, that is, each terminal is accommodated. It is re-converted to an IP address and media reception port number that conforms to the private network address system. As a result, each terminal obtains an IP address and a media reception port number for transmitting and receiving a media signal as an IP address and a media reception port number according to the address system of the private network. Communication paths can be set in the network, and media signals can be transmitted and received without going through the NAT device (global network).

しかしながら、前記プライベート網が、複数の拠点を持つVPN(Virtual Private Network)のように大規模なプライベート網の場合、負荷の分散などを目的として、複数のSIP-ALG装置を設けている場合も十分に考えられる。その場合、同一プライベート網の端末間でのSIP通信であっても、一方の端末からSIPサーバに送信されたSIP信号が経由するSIP-ALGと、前記SIPサーバから他方の端末へ送信されたSIP信号が経由するSIP-ALGが異なる可能性がある。このとき、前記グローバル網(SIPサーバ)からプライベート網の端末に送信されるSIP信号が経由するSIP-ALGにおいて、前述のようにプライベート網の識別情報を比較して前記SIP信号を最初に送信した端末が同一プライベート網の端末であるか、またはグローバル網あるいは他のプライベート網の端末であるかを判定しようとすると、前記SIPサーバから他方の端末へ送信されたSIP信号が経由するSIP-ALGは、他のSIP-ALGが収集し保持している網識別情報やSDP情報を参照するなどの施策が必要となる。そのため、複数のSIP-ALG間で、前記網識別情報やSDP情報の通信を行うことになり、処理遅延が大きくなるという問題があった。
林 和仁,柴田高穂,諏訪裕一,小幡洋昭,黒木純一郎 著、「SIPアプリケーションレベルゲートウェイ(SIP-ALG)におけるアドレス変換エントリの管理方法に関する一考察」、信学技報 NS2002-188、PS2002-62(2002-12)、p25-28
However, if the private network is a large-scale private network such as a VPN (Virtual Private Network) having a plurality of bases, a plurality of SIP-ALG devices may be provided for the purpose of load distribution. Can be considered. In that case, even in SIP communication between terminals of the same private network, SIP-ALG through which a SIP signal transmitted from one terminal to the SIP server passes, and SIP transmitted from the SIP server to the other terminal The SIP-ALG through which the signal passes may be different. At this time, in SIP-ALG through which the SIP signal transmitted from the global network (SIP server) to the terminal of the private network passes, the SIP signal is transmitted first by comparing the identification information of the private network as described above. When trying to determine whether a terminal is a terminal of the same private network or a terminal of a global network or another private network, the SIP-ALG through which the SIP signal transmitted from the SIP server to the other terminal passes is It is necessary to take measures such as referring to network identification information and SDP information collected and held by other SIP-ALGs. For this reason, the network identification information and SDP information are communicated between a plurality of SIP-ALGs, resulting in a problem that processing delay increases.
Kazuhito Hayashi, Takaho Shibata, Yuichi Suwa, Hiroaki Kosuge, Junichiro Kuroki, “A Study on the Management Method of Address Translation Entries in SIP Application Level Gateway (SIP-ALG)”, IEICE Technical Report NS2002-188, PS2002-62 ( 2002-12), p25-28

本発明が解決しようとする問題点は、前記背景技術で説明したように、端末間でのSIP通信においてSIP信号が複数のSIP-ALGを経由する場合に、前記SIP-ALGにおいて前記SIP通信が同一プライベート網の端末間での通信か、またはプライベート網の端末とグローバル網の端末での通信あるいは異なるプライベート網の端末間での通信であるかの判定をするときに、処理遅延が大きくなるという点である。   As described in the background art, the problem to be solved by the present invention is that the SIP communication is performed in the SIP-ALG when the SIP signal passes through a plurality of SIP-ALGs in the SIP communication between terminals. Processing delay increases when determining whether the communication is between terminals on the same private network, communication between a private network terminal and a global network terminal, or communication between terminals on different private networks. Is a point.

本発明の目的は、プライベート網とグローバル網を接続するNAT装置が複数個のSIP-ALGのいずれかと接続されており、かつ、前記同一プライベート網の端末間でのSIP通信において2つの異なるSIP-ALGを経由するときに、前記SIP-ALGが単独で、同一プライベート網の端末間でのSIP通信であるか否かの判定をすることが可能な技術を提供することにある。   An object of the present invention is that a NAT device that connects a private network and a global network is connected to one of a plurality of SIP-ALGs, and two different SIP-s in SIP communication between terminals of the same private network. It is an object of the present invention to provide a technology capable of determining whether or not the SIP-ALG is SIP communication between terminals in the same private network when going through the ALG.

本発明の前記ならびにその他の目的と新規な特徴は、本明細書の記述および添付図面によって明らかになるであろう。   The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願において開示される発明の概略を説明すれば、以下の通りである。   The outline of the invention disclosed in the present application will be described as follows.

(1) 2つ以上の端末および2つ以上のNAT(Network Address Translation)装置が収容された1つ以上のプライベート網が前記NAT装置によりグローバル網と接続されているネットワークで、前記プライベート網に収容されたSIP(Session Initiation Protocol)対応端末が前記グローバル網に収容されたSIPサーバを介して同一プライベート網のSIP対応端末、または前記グローバル網あるいは他のプライベート網に収容されたSIP対応端末との間でSIP通信を行うときに、前記NAT装置と連携してSIP信号のIPアドレスおよびポート番号を変換するSIP-ALG(SIP-Application Level Gateway)のSIP信号変換方法であって、前記各NAT装置と前記NAT装置が収容されたプライベート網の対応関係を管理するステップ1と、前記NAT装置から転送されたSIP信号がプライベート網からグローバル網に送信される信号であり、かつ、SDPによるセッション記述がある場合に、前記NAT装置と連携してSIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換するステップ2と、前記SIP信号を転送したNAT装置が収容されたプライベート網の識別情報と、前記ステップ2で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして前記SIP信号に設定するステップ3と、前記NAT装置と連携して前記SIP信号のSIPヘッダのIPアドレスおよびポート番号を変換するステップ4と、前記NAT装置から転送されたSIP信号がグローバル網からプライベート網に送信される信号であり、かつ、前記SDPによるセッション記述がある場合に、前記独自SIPヘッダが設定されているか否か判定するステップ5と、前記ステップ5で独自SIPヘッダが設定されていると判定された場合に、前記SIP信号を転送したNAT装置が収容されたプライベート網を特定し、前記独自SIPヘッダに記述されている前記プライベート網の識別情報と一致するか判定するステップ6と、前記ステップ6で一致すると判定された場合に、前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を、前記独自SIPヘッダに記述されているIPアドレスおよびメディア受信用ポート番号に変換するステップ7とを有するSIP信号変換方法である。   (1) A network in which one or more private networks accommodating two or more terminals and two or more NAT (Network Address Translation) devices are connected to the global network by the NAT devices and accommodated in the private network. SIP (Session Initiation Protocol) compatible terminals are connected to SIP private terminals in the same private network or SIP compatible terminals accommodated in the global network or other private networks via a SIP server accommodated in the global network. SIP-ALG (SIP-Application Level Gateway) SIP signal conversion method for converting an IP address and a port number of a SIP signal in cooperation with the NAT device when performing SIP communication with the NAT device, Step 1 for managing the correspondence of the private network in which the NAT device is accommodated, and a SIP signal transferred from the NAT device is transmitted from the private network to the global network. 2 and converting the IP address and media receiving port number of the session description by SDP of the SIP signal in cooperation with the NAT device, and the SIP signal Step 3 of setting the identification information of the private network in which the transferred NAT device is accommodated, the IP address of the session description by the SDP before conversion in Step 2 and the port number for receiving media as the unique SIP header in the SIP signal Step 4 for converting the IP address and port number of the SIP header of the SIP signal in cooperation with the NAT device, and the SIP signal transferred from the NAT device is a signal transmitted from the global network to the private network. And if there is a session description by the SDP, a step 5 for determining whether or not the unique SIP header is set If it is determined in step 5 that a unique SIP header is set, the private network in which the NAT device that transferred the SIP signal is accommodated is specified, and the private network described in the unique SIP header is specified. Step 6 for determining whether or not the ID information matches, and if it is determined to match in Step 6, describe the IP address and media reception port number of the session description by SDP of the SIP signal in the unique SIP header. And a step 7 for converting into a received IP address and a media receiving port number.

(2) 前記(1)のSIP信号変換方法において、前記ステップ3は、前記NAT装置が収容されたプライベート網の識別情報と、前記ステップ3で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号に加え、前記ステップ3で変換した後の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして設定し、前記ステップ7は、前記ステップ6で一致すると判定され、かつ、前記SIP信号の独自SIPヘッダに記述された変換後のIPアドレスおよびメディア受信用ポート番号が前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号と一致する場合にのみ、前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換する。   (2) In the SIP signal conversion method of (1), the step 3 includes the identification information of the private network in which the NAT device is accommodated, the IP address of the session description by the SDP before the conversion in the step 3, and In addition to the media reception port number, the IP address and the media reception port number of the session description by the SDP converted in the step 3 are set as unique SIP headers, and the step 7 is determined to match in the step 6 Only when the converted IP address and media reception port number described in the unique SIP header of the SIP signal match the IP address and media reception port number of the session description by SDP of the SIP signal. The IP address and media reception port number of the session description by the SDP are converted.

本発明のSIP信号変換方法は、前記(1)の手段のように、前記プライベート網の端末から前記グローバル網のSIPサーバにSIP信号を送信する際に経由するSIP-ALGにおいて、前記SIP-ALGが連携するNAT装置、言い換えると前記端末が収容されたプライベート網の識別情報と、前記SIP-ALGにおいて変換される前のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして前記SIP信号に設定する。そのため、前記グローバル網のSIPサーバからプライベート網の端末にSIP信号を送信する際に経由するSIP-ALGは、前記独自SIPヘッダを参照することで、他のSIP-ALGに問い合わせることなく、同一プライベート網の端末間でのSIP通信であるか否かを判定することができる。そして、同一プライベート網の端末間でのSIP通信であると判定された場合、前記独自SIPヘッダを参照して、前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を元の値、すなわち前記プライベート網のアドレス体系に沿ったIPアドレスおよびメディア受信用ポート番号に変換することができる。その結果、同一プライベート網の端末間で前記SIP通信によるセッションを確立した後、音声や映像等のメディア信号を送受信するときには、前記プライベート網内に経路を設定し、前記NAT装置(グローバル網)を介さずに前記メディア信号を送受信することができる。   The SIP signal conversion method according to the present invention is the SIP-ALG in the SIP-ALG that is used when the SIP signal is transmitted from the terminal of the private network to the SIP server of the global network, as in the means (1). The NAT device with which the terminal is linked, in other words, the identification information of the private network in which the terminal is accommodated, the IP address of the session description by SDP before being converted in the SIP-ALG, and the port number for media reception as the unique SIP header Set to SIP signal. For this reason, the SIP-ALG that is used when sending a SIP signal from the SIP server of the global network to the terminal of the private network refers to the original SIP header, and does not inquire other SIP-ALGs. It is possible to determine whether or not the SIP communication is between terminals of the network. Then, when it is determined that the SIP communication is between the terminals of the same private network, referring to the unique SIP header, the IP address and media reception port number of the session description by the SDP are the original values, that is, the It can be converted into an IP address and a media reception port number in accordance with the private network address system. As a result, after establishing a session by SIP communication between terminals in the same private network, when transmitting and receiving media signals such as voice and video, a route is set in the private network, and the NAT device (global network) is The media signal can be transmitted and received without intervention.

しかしながら、前記(1)の手段の場合、たとえば、前記プライベート網の端末からグローバル網の端末に送信したSIP信号の返信SIP信号に前記独自SIPヘッダが引き継がれていると、前記返信SIP信号を受信したSIP-ALGは、前記返信SIP信号を送信した端末が同一プライベート網の端末であると判定してしまう。そこで、前記(2)の手段のように、前記独自SIPヘッダに、前記プライベート網の識別情報、変換前のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号に加え、変換後のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号も設定することが好ましい。前記独自SIPヘッダに設定された前記変換後のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号は、前記SIP信号を送信した端末に対して割り当てられたIPアドレスおよびメディア受信用ポート番号であるので、前記グローバル網の端末からの返信SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号とは値が異なる。そのため、前記(2)の手段に示したように、前記プライベート網の識別情報が一致し、かつ、前記独自SIPヘッダの変換後のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号と、受信したSIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号が一致した場合にのみ、同一プライベート網の端末間でのSIP通信であると判定することで、前記グローバル網の端末からの前記返信SIP信号を受信したSIP-ALGにおいても、単独で同一プライベート網の端末間でのSIP通信であるか否かを性格に判定することができる。   However, in the case of the means (1), for example, when the unique SIP header is taken over by the SIP signal reply SIP signal transmitted from the private network terminal to the global network terminal, the reply SIP signal is received. The SIP-ALG determines that the terminal that transmitted the reply SIP signal is a terminal of the same private network. Therefore, as in the means of (2) above, in addition to the identification information of the private network, the IP address of the session description by SDP before conversion and the port number for media reception in the unique SIP header, the session by SDP after conversion It is also preferable to set the IP address and media reception port number of the description. The IP address and media reception port number of the session description by the converted SDP set in the unique SIP header are the IP address and media reception port number assigned to the terminal that transmitted the SIP signal. Therefore, the value is different from the IP address and media reception port number of the session description by SDP of the reply SIP signal from the terminal of the global network. Therefore, as shown in the means of (2) above, the identification information of the private network matches, and the IP address and media reception port number of the session description by SDP after the conversion of the unique SIP header, and reception By determining that the SIP communication between the terminals of the same private network is SIP communication only when the IP address of the session description by the SDP of the SIP signal and the port number for media reception match, the terminal from the terminal of the global network Even in the SIP-ALG that has received the reply SIP signal, it is possible to determine whether or not it is SIP communication between terminals in the same private network.

また、前記(1)の手段のようなSIP信号変換方法を実現するSIP-ALG装置は、たとえば、前記各NAT装置が管理するプライベート網側のIPアドレスとグローバル網側のIPアドレスの対応関係をNAT装置毎にまとめて管理するネットワークアドレス管理手段と、前記各NAT装置と前記NAT装置が収容されたプライベート網の対応関係を管理するNAT対応網識別情報管理手段と、前記NAT装置から転送されたSIP信号がプライベート網からグローバル網に送信される信号であり、かつ、前記SDPによるセッション記述がある場合に、NAT対応網識別情報管理手段で管理する対応関係に基づいて前記NAT装置が収容されたプライベート網を特定する手段と、前記NAT装置と連携してSIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換するSDPフィールド変換手段と、前記特定したプライベート網の識別情報と、前記SDPフィールド変換手段で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして前記SIP信号に設定する独自SIPヘッダ設定手段と、前記NAT装置と連携して前記SIP信号のSIPヘッダのIPアドレスおよびポート番号を変換するSIPヘッダ変換手段と、前記NAT装置から転送されたSIP信号がグローバル網からプライベート網に送信される信号であり、かつ、前記SDPによるセッション記述があり、さらに、前記独自SIPヘッダが設定されており、かつ、前記NAT装置が収容されたプライベート網の識別情報が、前記独自SIPヘッダに記述されている前記プライベート網の識別情報と一致する場合に、前記SDPフィールド変換手段に前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を、前記独自SIPヘッダに記述されているIPアドレスおよびメディア受信用ポート番号に変換させる変換判定手段とを備えていればよい。   The SIP-ALG device that implements the SIP signal conversion method as described in (1) above, for example, shows the correspondence between the IP address on the private network side managed by each NAT device and the IP address on the global network side. Network address management means for collectively managing each NAT device, NAT-compatible network identification information management means for managing the correspondence between each NAT device and the private network in which the NAT device is accommodated, and transferred from the NAT device When the SIP signal is a signal transmitted from the private network to the global network and there is a session description by the SDP, the NAT device is accommodated based on the correspondence managed by the NAT-compatible network identification information management means. A means for identifying a private network and an SDP field that converts the IP address and media reception port number of the session description by SDP of the SIP signal in cooperation with the NAT device. The IP address and the media reception port number of the session description by the SDP before conversion by the field conversion means, the identified private network identification information, and the SDP field conversion means are set as the unique SIP header in the SIP signal. Unique SIP header setting means, SIP header conversion means for converting the IP address and port number of the SIP header of the SIP signal in cooperation with the NAT apparatus, and the SIP signal transferred from the NAT apparatus is transferred from the global network to the private network And a description of the session in the SDP, the unique SIP header is set, and the identification information of the private network in which the NAT device is accommodated is the unique SIP header. The SDP of the SIP signal is sent to the SDP field conversion means when it matches the identification information of the private network described in Conversion determination means for converting the IP address and media reception port number in the session description into the IP address and media reception port number described in the unique SIP header.

またこのとき、前記独自SIPヘッダ設定手段が、プライベート網の識別情報と、前記ステップ3で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号に加え、前記ステップ3で変換した後の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして設定し、前記変換判定手段が、前記各判定条件を満たすとともに、前記SIP信号の独自SIPヘッダに記述された変換後のIPアドレスおよびメディア受信用ポート番号が前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号と一致する場合にのみ、前記SDPフィールド変換手段に前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換させるようにすれば、前記(2)の手段のようなSIP信号変換方法を実現することができる。   At this time, the unique SIP header setting means converts the private network identification information in step 3 in addition to the private network identification information and the IP address and media reception port number of the session description in SDP before the conversion in step 3. The IP address and media reception port number of the session description in the later SDP are set as a unique SIP header, and the conversion determination means satisfies each determination condition, and the conversion described in the unique SIP header of the SIP signal. Only when the later IP address and the media receiving port number match the IP address and the media receiving port number of the session description by the SDP of the SIP signal, the SDP field conversion means is provided with the IP address of the session description by the SDP and If the media reception port number is converted, the means (2) The SIP signal conversion method as described above can be realized.

また、前記(1)または(2)の手段のようなSIP信号変換方法は、たとえば、前述のような各手段を備えるSIP-ALG装置の代わりに、コンピュータと、前記コンピュータに前記(1)または(2)の手段の各ステップの処理を行わせるプログラムを用いても実現することができる。このとき、前記プログラムは、磁気的または電気的、あるいは光学的な記録媒体に記録して提供することもできるし、インターネット等のネットワークを通して提供することもできる。   In addition, the SIP signal conversion method such as the means (1) or (2) described above, for example, instead of the SIP-ALG device including each means as described above, the computer and the computer (1) or It can also be realized by using a program that performs the processing of each step of the means (2). At this time, the program can be provided by being recorded on a magnetic, electrical, or optical recording medium, or can be provided through a network such as the Internet.

以下、本発明について、図面を参照して実施の形態(実施例)とともに詳細に説明する。
なお、実施例を説明するための全図において、同一機能を有するものは、同一符号を付け、その繰り返しの説明は省略する。
Hereinafter, the present invention will be described in detail together with embodiments (examples) with reference to the drawings.
In all the drawings for explaining the embodiments, parts having the same function are given the same reference numerals and their repeated explanation is omitted.

本発明のSIP信号変換方法は、たとえば、プライベート網とグローバル網のようにアドレス体系が異なる2つの網を接続するNAT装置と連携してSIP信号のSIPレイヤのIPアドレスおよびポート番号を変換するSIP-ALGにおけるSIP信号の変換方法である。このとき、前記SIP-ALGは、前記プライベート網からグローバル網に送信されるSIP信号に対しては、前記SIP信号を送信した端末(NAT装置)が収容されたプライベート網の識別情報、SDPによるセッション記述(以下、単にSDPという)の変換前のIPアドレスおよびポート番号、変換後のIPアドレスおよびポート番号を関連づけた独自SIPヘッダを設定する。また、前記グローバル網からプライベート網に送信されるSIP信号に対しては、前記独自SIPヘッダを参照して前記SIP信号を最初に送信した端末(NAT装置)が収容されているプライベート網を特定し、SIP信号を最初に送信した端末と最終的に受信する端末が同一のプライベート網に収容されていると判定した場合は、前記SDPのIPアドレスおよびポート番号と変換前の値に戻す。このようにすることで、送信元の端末からSIPサーバにSIP信号を送信する際に経由したNAT装置に接続されたSIP-ALGと、前記SIPサーバから送信先の端末にSIP信号を送信する際に経由するNAT装置に接続されたSIP-ALGが異なる場合でも、SIP通信における処理遅延を少なくすることができる。   The SIP signal conversion method of the present invention is a SIP that converts the SIP layer IP address and port number of a SIP signal in cooperation with a NAT device that connects two networks having different address systems such as a private network and a global network. -This is a SIP signal conversion method in ALG. At this time, for the SIP signal transmitted from the private network to the global network, the SIP-ALG uses the identification information of the private network in which the terminal (NAT device) that transmitted the SIP signal is accommodated, the session by SDP. Set the original SIP header that correlates the IP address and port number before conversion of the description (hereinafter simply referred to as SDP) and the IP address and port number after conversion. For SIP signals transmitted from the global network to the private network, refer to the unique SIP header to identify the private network in which the terminal (NAT device) that transmitted the SIP signal first is accommodated. When it is determined that the terminal that first transmitted the SIP signal and the terminal that finally receives the SIP signal are accommodated in the same private network, the IP address and port number of the SDP and the value before conversion are restored. By doing so, when transmitting a SIP signal from the source terminal to the SIP server to the SIP server and the SIP-ALG connected to the NAT device via which the SIP signal is transmitted from the SIP server to the destination terminal Even when the SIP-ALG connected to the NAT device passing through is different, the processing delay in SIP communication can be reduced.

図1乃至図6は、本発明による一実施例のSIP信号変換方法を説明するための模式図であり、図1は本実施例のSIP信号変換方法が適用されるネットワークの構成例を示す図、図2は図1のSIP-ALGの構成例を示す図、図3はネットワークアドレス管理テーブルの一例を示す図、図4はNAT対応網識別情報管理テーブルの一例を示す図、図5はSIP-ALGにおける処理手順の一例を説明するためのフロー図、図6は図5のステップ508の具体的な処理手順の一例を説明するためのフロー図である。
図1において、1は第1プライベート網、101は第1NAT装置、102は第2NAT装置、103は第1端末、104は第2端末、2は第2プライベート網、201は第3NAT装置、202は第4端末、3はグローバル網、301は第3端末、302はSIPサーバ、401は第1SIP-ALG装置、402は第2SIP-ALG装置、403は第3SIP-ALG装置である。また、図2において、40101はSIP信号送受信手段、40102は送信方向判定手段、40103はSDP変換手段、40103aはSDPフィールド変換手段、40103bは独自SIPヘッダ設定手段、40103cはSDP変換判定手段、40104はSIPヘッダ変換手段、40105はネットワークアドレス管理手段、40106はNAT対応網識別情報管理手段である。
1 to 6 are schematic diagrams for explaining a SIP signal conversion method according to an embodiment of the present invention. FIG. 1 is a diagram showing a configuration example of a network to which the SIP signal conversion method according to the embodiment is applied. 2 is a diagram showing a configuration example of the SIP-ALG of FIG. 1, FIG. 3 is a diagram showing an example of a network address management table, FIG. 4 is a diagram showing an example of a NAT-compatible network identification information management table, and FIG. FIG. 6 is a flowchart for explaining an example of a specific processing procedure of step 508 in FIG. 5.
In FIG. 1, 1 is a first private network, 101 is a first NAT device, 102 is a second NAT device, 103 is a first terminal, 104 is a second terminal, 2 is a second private network, 201 is a third NAT device, and 202 is The fourth terminal, 3 is a global network, 301 is a third terminal, 302 is a SIP server, 401 is a first SIP-ALG device, 402 is a second SIP-ALG device, and 403 is a third SIP-ALG device. In FIG. 2, 40101 is a SIP signal transmission / reception unit, 40102 is a transmission direction determination unit, 40103 is an SDP conversion unit, 40103a is an SDP field conversion unit, 40103b is a unique SIP header setting unit, 40103c is an SDP conversion determination unit, and 40104 is SIP header conversion means, 40105 is network address management means, and 40106 is NAT-compatible network identification information management means.

本実施例のSIP信号変換方法は、たとえば、図1に示すように、VPN等の第1プライベート網1および第2プライベート網2と、グローバル網3の3つの網で構成されたネットワークに適用される。このとき、前記第1プライベート網1と前記グローバル網3は、図1に示したように、第1NAT装置101および第2NAT装置102により接続されているとする。また、前記第2プライベート網2と前記グローバル網3は、図1に示したように、第3NAT装置201により接続されているとする。またこのとき、前記第1NAT装置101および第2NAT装置102、ならびに第3NAT装置201はそれぞれ、第1SIP-ALG装置401および第2SIP-ALG装置402、ならびに第3SIP-ALG装置403が接続されている。   The SIP signal conversion method of this embodiment is applied to a network composed of three networks, such as a first private network 1 and a second private network 2 such as a VPN, and a global network 3, as shown in FIG. The At this time, it is assumed that the first private network 1 and the global network 3 are connected by the first NAT device 101 and the second NAT device 102 as shown in FIG. Further, it is assumed that the second private network 2 and the global network 3 are connected by a third NAT device 201 as shown in FIG. At this time, the first NAT device 101, the second NAT device 102, and the third NAT device 201 are connected to the first SIP-ALG device 401, the second SIP-ALG device 402, and the third SIP-ALG device 403, respectively.

また、前記第1プライベート網1に収容された第1端末103および第2端末104、前記グローバル網3に収容された第3端末301、前記第2プライベート網2に収容された第4端末202は、それぞれSIPに対応しており、各端末間で前記グローバル網3に収容されたSIPサーバ302を介してSIP通信を行いセッションを確立することで、音声や映像等のメディアの送受信を行うことができるとする。またこのとき、前記第1端末103は、前記第1プライベート網1のアドレス体系に沿ったIPアドレスが割り当てられている。本実施例では、前記第1プライベート網1のアドレス体系を192.168.0.0/24とし、前記第1端末103に割り当てられたIPアドレスは192.168.0.1とする。また、前記第1端末103のSIP信号受信用のポート番号は5060番、メディア受信用のポート番号は10001番であるとする。同様に、前記第2端末104には、前記第1プライベート網1のアドレス体系に沿ったIPアドレス192.168.0.2が割り当てられており、SIP信号受信用のポート番号は5060番、メディア受信用のポート番号は10002番であるとする。   The first terminal 103 and the second terminal 104 accommodated in the first private network 1, the third terminal 301 accommodated in the global network 3, and the fourth terminal 202 accommodated in the second private network 2 are In addition, each of the terminals is compatible with SIP, and by performing SIP communication between the terminals via the SIP server 302 accommodated in the global network 3, it is possible to transmit and receive media such as audio and video. Suppose you can. At this time, the first terminal 103 is assigned an IP address according to the address system of the first private network 1. In this embodiment, the address system of the first private network 1 is 192.168.0.0/24, and the IP address assigned to the first terminal 103 is 192.168.0.1. Further, it is assumed that the port number for SIP signal reception of the first terminal 103 is 5060 and the port number for media reception is 10001. Similarly, the second terminal 104 is assigned an IP address 192.168.0.2 in accordance with the address system of the first private network 1, the SIP signal reception port number is 5060, and the media reception port. It is assumed that the number is 10002.

また、前記第3端末301は、前記グローバル網3のアドレス体系に沿ったIPアドレスが割り当てられている。本実施例では、前記第3端末301に割り当てられたIPアドレスは128.0.0.3とする。また、前記第3端末301のSIP信号受信用のポート番号は5060番、メディア受信用のポート番号は10003番であるとする。   The third terminal 301 is assigned an IP address according to the address system of the global network 3. In this embodiment, the IP address assigned to the third terminal 301 is 128.0.0.3. The port number for SIP signal reception of the third terminal 301 is 5060 and the port number for media reception is 10003.

また、前記第4端末202は、前記第2プライベート網2のアドレス体系に沿ったIPアドレスが割り当てられている。本実施例では、前記第2プライベート網2のアドレス体系を192.168.1.0/24とし、前記第4端末202に割り当てられたIPアドレスは192.168.1.4とする。また、前記第4端末202のSIP信号受信用のポート番号は5060番、メディア受信用のポート番号は10004番であるとする。   The fourth terminal 202 is assigned an IP address in accordance with the address system of the second private network 2. In this embodiment, the address system of the second private network 2 is 192.168.1.0/24, and the IP address assigned to the fourth terminal 202 is 192.168.1.4. Further, it is assumed that the port number for SIP signal reception of the fourth terminal 202 is 5060 and the port number for media reception is 10004.

また、前記第1SIP-ALG装置401は、前記第1NAT装置101と連携して、前記第1NAT装置101が受信したSIP信号(メッセージ)のSIPレイヤのアドレス情報を変換する装置である。本実施例において、前記第1SIP-ALG装置401は、たとえば、図2に示すように、前記第1NAT装置101から転送されたSIP信号の受信、およびアドレス情報を変換したSIP信号の前記第1NAT装置101への返送をするSIP信号送受信手段40101と、前記第1NAT装置101から転送されたSIP信号の送信方向を判定する送信方向判定手段40102と、前記SIP信号のSDPを変換するSDP変換手段40103と、前記SIP信号の前記SDP以外のSIPレイヤ(SIPヘッダ)を書き換えるSIPヘッダ変換手段40104と、前記各NAT装置が収容されているプライベート網側のアドレス体系とグローバル網の側アドレス体系の対応関係をNAT装置ごとにまとめて管理するネットワークアドレス管理手段40105と、前記各NAT装置が収容されている網を識別するための網識別情報を管理するNAT対応網識別情報管理手段40106とを備える。   The first SIP-ALG device 401 is a device that cooperates with the first NAT device 101 to convert the SIP layer address information of the SIP signal (message) received by the first NAT device 101. In this embodiment, the first SIP-ALG device 401 receives the SIP signal transferred from the first NAT device 101 and converts the address information into the first NAT device as shown in FIG. SIP signal transmission / reception means 40101 for returning to 101, transmission direction determination means 40102 for determining the transmission direction of the SIP signal transferred from the first NAT device 101, SDP conversion means 40103 for converting the SDP of the SIP signal, The SIP header conversion means 40104 for rewriting a SIP layer (SIP header) other than the SDP of the SIP signal, and the correspondence between the address system on the private network side in which each NAT device is accommodated and the side address system on the global network Network address management means 40105 for collectively managing each NAT device, and network identification for identifying the network in which each NAT device is accommodated And NAT-compatible network identification information management means 40106 for managing information.

また、前記SDP変換手段40103は、たとえば、図2に示したように、前記SIP信号のSDPのうち、cフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号を変換するSDPフィールド変換手段40103aと、プライベート網からグローバル網へ送信されるSIP信号に独自SIPヘッダを設定する独自SIPヘッダ設定手段40103bと、グローバル網からプライベート網へ送信されるSIP信号のSDPの変換を行うか否かの判定をするSDP変換判定手段40103cとを備える。   Also, the SDP conversion means 40103 includes, for example, an SDP field conversion means 40103a for converting the IP address of the c field and the media reception port number of the m field in the SDP of the SIP signal, as shown in FIG. A unique SIP header setting means 40103b for setting a unique SIP header in a SIP signal transmitted from the private network to the global network, and a determination as to whether or not to perform SDP conversion of the SIP signal transmitted from the global network to the private network SDP conversion determination means 40103c to perform.

また、前記ネットワークアドレス管理手段40105は、たとえば、図3に示すように、前記NAT装置毎に、収容されているプライベート網側アドレス体系とプライベートアドレスの変換後のアドレス体系となるグローバル網側アドレス体系をまとめたネットワークアドレス管理テーブルを保持している。本実施例では、図3に示したように、前記第1NAT装置101ではプライベート網側アドレス体系として192.168.0.0/24、グローバル網側アドレス体系として130.0.0.0/24を管理しているとする。同様に、前記第2NAT装置101ではプライベート網側アドレス体系として192.168.0.0/24、グローバル網側アドレス体系として131.0.0.0/24を管理し、前記第3NAT装置201ではプライベート網側アドレス体系として192.168.1.0/24、グローバル網側アドレス体系として132.0.0.0/24を管理しているとする。   Further, as shown in FIG. 3, for example, the network address management means 40105 has a global network side address system which is a private network side address system accommodated for each NAT device and an address system after conversion of private addresses. Holds a network address management table. In the present embodiment, as shown in FIG. 3, it is assumed that the first NAT device 101 manages 192.168.0.0/24 as the private network side address system and 130.0.0.0/24 as the global network side address system. Similarly, the second NAT device 101 manages 192.168.0.0/24 as the private network side address system and 131.0.0.0/24 as the global network side address system, and the third NAT apparatus 201 uses 192.168. As the private network side address system. Assume that 1.0 / 24 is managed as the global network side address system, 132.0.0.0/24.

一方、前記NAT対応網識別情報管理手段40106は、たとえば、図4に示すように、SIP通信を行う際に経由する各NAT装置が、どのプライベート網に収容されている(属している)かを表す網識別情報をまとめたNAT対応網識別情報管理テーブルを保持している。本実施例では、図1に示したように、前記第1NAT装置101と第2NAT装置102は第1プライベート網1に収容されており、第3NAT装置201は第2プライベート網2に収容されている。そのため、前記第1プライベート網1を表す網識別情報をPN1、第2プライベート網2を表す網識別情報をPN2とすると、前記NAT対応網識別情報管理テーブルは、図4に示すようなテーブルになる。   On the other hand, as shown in FIG. 4, for example, the NAT-compatible network identification information management means 40106 determines in which private network each NAT device through which SIP communication is performed is accommodated (belongs). It holds a NAT-compatible network identification information management table that summarizes network identification information to be expressed. In the present embodiment, as shown in FIG. 1, the first NAT device 101 and the second NAT device 102 are accommodated in the first private network 1, and the third NAT device 201 is accommodated in the second private network 2. . Therefore, if the network identification information representing the first private network 1 is PN1, and the network identification information representing the second private network 2 is PN2, the NAT-compatible network identification information management table is a table as shown in FIG. .

また、図示および詳細な説明は省略するが、前記第2SIP-ALG装置402および前記第3SIP-ALG装置403も、前記第1SIP-ALG装置401と同様の構成である。   Although illustration and detailed description are omitted, the second SIP-ALG device 402 and the third SIP-ALG device 403 have the same configuration as the first SIP-ALG device 401.

図1に示したようなネットワークにおいて、前記第1端末103または第2端末104、あるいは第4端末202からSIPサーバ302に送信されるSIP信号や、前記SIPサーバ302から前記第1端末103または第2端末104、あるいは第4端末202に送信されるSIP信号は、第1NAT装置101、第2NAT装置102、第3NAT装置201のいずれかを経由する。このとき、前記各NAT装置は、前記SIP信号を受信すると、受信した前記SIP信号を前記SIP-ALG装置に転送し、前記SIP-ALG装置に前記SDPのIPアドレスやメディア受信用のポート番号や、前記SIPヘッダのIPアドレスやSIP信号受信用のポート番号等を変換させる。以下、図2に示した前記第1SIP-ALG装置401におけるIPアドレスおよびポート番号等の変換手順の一例について、図5および図6に沿って簡単に説明する。   In the network as shown in FIG. 1, the SIP signal transmitted from the first terminal 103 or the second terminal 104 or the fourth terminal 202 to the SIP server 302, or the first terminal 103 or the second terminal from the SIP server 302. The SIP signal transmitted to the second terminal 104 or the fourth terminal 202 passes through one of the first NAT device 101, the second NAT device 102, and the third NAT device 201. At this time, when each of the NAT devices receives the SIP signal, the NAT device transfers the received SIP signal to the SIP-ALG device, and the SIP-ALG device transmits the IP address of the SDP, a port number for receiving media, The IP address of the SIP header, the port number for receiving the SIP signal, and the like are converted. Hereinafter, an example of a conversion procedure such as an IP address and a port number in the first SIP-ALG device 401 shown in FIG. 2 will be briefly described with reference to FIGS.

前記第1SIP-ALG装置401は、前記SIP信号送受信手段40101で前記第1NAT装置101から転送されたSIP信号を受信すると、図5に示すように、まず、前記SIP信号の送信方向と、前記SIP信号にSDPが設定されていることを確認する(ステップ501)。前記ステップ501は、前記送信方向判定手段40102で行う。前記送信方向判定手段40102は、前記ステップ501の処理が終了すると、前記SIP信号および確認した送信方向を前記SDP変換手段40103に渡す。   When the first SIP-ALG device 401 receives the SIP signal transferred from the first NAT device 101 by the SIP signal transmission / reception means 40101, first, as shown in FIG. It is confirmed that SDP is set for the signal (step 501). Step 501 is performed by the transmission direction determination means 40102. When the processing in step 501 is completed, the transmission direction determination unit 40102 passes the SIP signal and the confirmed transmission direction to the SDP conversion unit 40103.

前記SDP変換手段40103は、前記送信方向判定手段40102から前記SIP信号および送信方向の情報を受け取ると、前記送信方向がプライベート網からグローバル網であるか否かの判定をする(ステップ502)。このとき、前記SIP信号の送信方向が前記プライベート網からグローバル網であると判定すると、前記SDP変換手段40103は、前記SDPフィールド変換手段40103aに前記SIP信号の前記SDPのcフィールドおよびmフィールドを変換させる。   When the SDP conversion unit 40103 receives the SIP signal and transmission direction information from the transmission direction determination unit 40102, the SDP conversion unit 40103 determines whether or not the transmission direction is a private network to a global network (step 502). At this time, if it is determined that the transmission direction of the SIP signal is from the private network to the global network, the SDP conversion unit 40103 converts the c field and m field of the SDP of the SIP signal to the SDP field conversion unit 40103a. Let

このとき、前記SDPフィールド変換手段40103aでは、まず、受信した前記SIP信号を転送したNAT装置が第1NAT装置101であることを認識する。そして、前記NAT対応網識別管理テーブルを参照して前記第1NAT装置101の網識別情報を取得する(ステップ503)。前記SDPフィールド変換手段40103aは、前記ステップ503の後、前記受信したSIP信号のSDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号を取得する。そして、前記ネットワークアドレス管理テーブルを参照し、前記取得したcフィールドのIPアドレスが、前記ステップ503で網識別情報を取得した第1NAT装置101が管理しているアドレスであることを確認する。前記SDPフィールド変換手段40103aは、前記IPアドレスの確認が済むと、前記第1NAT装置101にグローバル網3のアドレス体系に沿ったIPアドレスおよびメディア受信用ポート番号を払い出しを要求する。そして、前記cフィールドのIPアドレスおよび前記mフィールドのメディア受信用ポート番号を、前記第1NAT装置から払い出されたIPアドレスおよびメディア受信用ポート番号に変換する(ステップ504)。   At this time, the SDP field conversion unit 40103a first recognizes that the NAT device that has transferred the received SIP signal is the first NAT device 101. Then, the network identification information of the first NAT device 101 is obtained by referring to the NAT-compatible network identification management table (step 503). After the step 503, the SDP field conversion means 40103a obtains the IP address of the c field of the SDP and the media reception port number of the m field of the received SIP signal. Then, referring to the network address management table, it is confirmed that the acquired IP address in the c field is an address managed by the first NAT device 101 that acquired the network identification information in the step 503. When the IP address is confirmed, the SDP field conversion unit 40103a requests the first NAT device 101 to issue an IP address and a media reception port number in accordance with the address system of the global network 3. Then, the IP address in the c field and the media reception port number in the m field are converted into the IP address and media reception port number issued from the first NAT device (step 504).

前記SDP変換手段40103は、前記ステップ504の前記cフィールドのIPアドレスおよび前記mフィールドのメディア送受信用ポート番号の変換が済むと、次に、前記独自SIPヘッダ設定手段40103bに独自SIPヘッダの設定を行わせる(ステップ505)。このとき、前記独自SIPヘッダ設定手段40103bは、前記SIP信号のSIPヘッダに、たとえば、前記ステップ503で取得した第1NAT装置101の網識別情報、前記SDPの変換前の前記cフィールドのIPアドレスおよび前記mフィールドのメディア送受信用ポート番号、変換後の前記cフィールドのIPアドレスおよび前記mフィールドのメディア送受信用ポート番号の5つの情報を持つ独自SIPヘッダを設定する。またこのとき、前記独自SIPヘッダは、従来から前記SIP信号に含まれるヘッダ名とは異なるヘッダ名で前記SIP信号のSIPヘッダに追加する。   After the conversion of the IP address of the c field and the media transmission / reception port number of the m field in the step 504, the SDP conversion unit 40103 then sets the unique SIP header in the unique SIP header setting unit 40103b. (Step 505). At this time, the unique SIP header setting means 40103b adds, for example, the network identification information of the first NAT device 101 acquired in step 503, the IP address of the c field before the conversion of the SDP, and the SIP header of the SIP signal. A unique SIP header having five pieces of information including the media transmission / reception port number in the m field, the IP address of the c field after conversion, and the media transmission / reception port number in the m field is set. At this time, the unique SIP header is conventionally added to the SIP header of the SIP signal with a header name different from the header name included in the SIP signal.

前記SDP変換手段40103は、前記ステップ505の独自SIPヘッダの設定が済むと、前記cフィールドのIPアドレスおよびmフィールドメディア受信用ポート番号が変換され、前記独自SIPヘッダが設定されたSIP信号を前記SIPヘッダ変換手段40104に渡す。前記SIPヘッダ変換手段40104は、前記SIP信号のSDPおよび独自SIPヘッダ以外のSIPレイヤ(SIPヘッダ)のIPアドレスやSIP信号受信用ポート番号の変換を行う(ステップ506)。このとき、前記SIPヘッダ変換手段40104は、たとえば、前記ネットワークアドレス管理テーブルを参照し、前記SIPヘッダのSIP信号受信用のIPアドレスが、前記ステップ503で網識別情報を取得した第1NAT装置101が管理しているアドレスであることを確認した後、前記第1NAT装置101にグローバル網3のアドレス体系に沿ったSIP信号受信用ポート番号の払い出しを要求する。そして、前記SIPヘッダのIPアドレスを前記ステップ504で変換した前記cフィールドのIPアドレスに変換し、SIP信号受信用ポート番号を、前記第1NAT装置101から払い出されたメディア受信用ポート番号に変換する。   After completing the setting of the unique SIP header in the step 505, the SDP converting means 40103 converts the IP address of the c field and the m field media reception port number, and converts the SIP signal in which the unique SIP header is set to the SIP signal. It is passed to the SIP header conversion means 40104. The SIP header conversion means 40104 converts the IP address of the SIP layer (SIP header) other than the SDP of the SIP signal and the unique SIP header and the port number for receiving the SIP signal (step 506). At this time, the SIP header conversion means 40104 refers to, for example, the network address management table, and the first NAT device 101 having acquired the network identification information in the step 503 has received the SIP signal reception IP address of the SIP header. After confirming that the address is managed, the first NAT apparatus 101 is requested to issue a SIP signal reception port number in accordance with the address system of the global network 3. Then, the IP address of the SIP header is converted to the IP address of the c field converted in the step 504, and the SIP signal reception port number is converted to the media reception port number issued from the first NAT device 101. To do.

前記SIPヘッダ変換手段40104は、前記ステップ506の前記SIPヘッダのIPアドレスおよびSIP信号受信用ポート番号の変換が済むと、そのSIP信号を前記SIP信号送受信手段40101に渡す。前記SIP信号送受信手段40101は、前記SIPヘッダ変換手段40104から前記SIP信号を受け取ると、そのSIP信号を前記第1NAT装置101に返送する(ステップ507)。そして、前記第1NAT装置101は、前記第1SIP-ALG装置401から返送されたSIP信号を、本来の送信先である前記グローバル網3のSIPサーバ302に送信する。   The SIP header conversion means 40104 passes the SIP signal to the SIP signal transmission / reception means 40101 after the conversion of the IP address of the SIP header and the SIP signal reception port number in the step 506. When the SIP signal transmission / reception means 40101 receives the SIP signal from the SIP header conversion means 40104, it returns the SIP signal to the first NAT device 101 (step 507). Then, the first NAT device 101 transmits the SIP signal returned from the first SIP-ALG device 401 to the SIP server 302 of the global network 3 that is the original transmission destination.

また、前記SDP変換手段40103では、前記ステップ502において、前記SIP信号の送信方向が前記プライベート網からグローバル網ではない、すなわち送信方向が前記グローバル網からプライベート網であると判定すると、図5に示したように、ステップ508の処理を行う。   If the SDP conversion means 40103 determines in step 502 that the transmission direction of the SIP signal is not from the private network to the global network, that is, the transmission direction is from the global network to the private network, it is shown in FIG. As described above, the process of step 508 is performed.

前記ステップ508の処理を行う場合、前記SDP変換手段40103では、まず、前記SDP変換判定手段40103cに、前記受信したSIP信号のSDPの変換が必要か否かを判定させる。このとき、前記SDP変換判定手段40103cでは、まず、図6に示すように、前記受信したSIP信号に前記独自SIPヘッダが設定されているか否かの判定をする(ステップ508a)。このとき、前記独自SIPヘッダが設定されていると判定すると、前記SDP変換判定手段40103cは、前記SIP信号を転送したNAT装置が第1NAT装置101であることを認識する。そして、前記NAT対応網識別情報管理テーブルを参照して、前記第1NAT装置101の網識別情報を取得する(ステップ508b)。前記SDP変換判定手段40103cは、前記ステップ508bの後、前記SIP信号の独自SIPヘッダに含まれる変換後のcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号と、前記受信したSIP信号のSDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号とを比較し、一致するか否かの判定をする(ステップ508c、ステップ508d)。このとき、一致すると判定すると、前記SDP変換判定手段40103cは、続けて、前記受信したSIP信号の独自SIPヘッダに含まれる網識別情報を確認し、前記独自SIPヘッダに含まれる網識別情報と前記ステップ508bで取得した網識別情報が一致するか否かの判定をする(ステップ508e、508f)。このとき、一致すると判定されれば、前記SIP信号を最初に送信した端末と前記SIP信号を最終的に受信する端末は同じプライベート網に収容されていることになる。そのため、前記SDP変換判定手段40103cは、前記SDPフィールド変換手段40103aに前記SIP信号のSDPを変換させる。   When performing the processing of step 508, the SDP conversion means 40103 first causes the SDP conversion determination means 40103c to determine whether or not the SDP conversion of the received SIP signal is necessary. At this time, as shown in FIG. 6, the SDP conversion determination means 40103c first determines whether or not the unique SIP header is set in the received SIP signal (step 508a). At this time, if it is determined that the unique SIP header is set, the SDP conversion determination unit 40103c recognizes that the NAT device that has transferred the SIP signal is the first NAT device 101. Then, the network identification information of the first NAT device 101 is acquired with reference to the NAT-compatible network identification information management table (step 508b). After the step 508b, the SDP conversion determination unit 40103c converts the IP address of the c field and the media reception port number of the m field included in the original SIP header of the SIP signal, and the SDP of the received SIP signal. The IP address in the c field and the media reception port number in the m field are compared to determine whether or not they match (step 508c and step 508d). At this time, if it is determined that they match, the SDP conversion determination means 40103c continues to check the network identification information included in the unique SIP header of the received SIP signal, and the network identification information included in the unique SIP header and the network identification information It is determined whether or not the network identification information acquired in step 508b matches (steps 508e and 508f). At this time, if it is determined that they match, the terminal that first transmitted the SIP signal and the terminal that finally receives the SIP signal are accommodated in the same private network. Therefore, the SDP conversion determination unit 40103c causes the SDP field conversion unit 40103a to convert the SDP of the SIP signal.

このとき、前記SDPフィールド変換手段40103aは、前記受信したSIP信号の独自SIPヘッダを参照して、前記SIP信号のSDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号を、前記独自SIPヘッダにある変換前のIPアドレスおよびポート番号に書き換える(ステップ508g)。その後、たとえば、前記独自SIPヘッダを削除し、前記SDPのcフィールドおよびmフィールドを書き換えたSIP信号を前記SIPヘッダ変換手段40104に渡して前記ステップ506の処理を行わせ、前記ステップ507で第1NAT装置101にSIP信号を返送する。このようにして前記cフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号を変換前の値に戻した前記SIP信号を前記第1NAT装置101に返送すると、前記第1NAT装置101はそのSIP信号を最終的に受信する端末に転送する。この結果、前記SIP信号を受信した端末は、前記SIP信号が同じプライベート網に収容された端末から送信された信号であることがわかる。またこのとき、前記SDPのcフィールドのIPアドレスは前記プライベート網のアドレス体系でのアドレスであり、mフィールドのメディア受信用ポート番号は前記SIP信号を送信した端末で設定したポート番号である。そのため、前記端末間でSIPによるセッションを確立した後、音声や映像等のメディアの送受信を行うときには、前記グローバル網を介さずに、前記プライベート網内で経路を設定することができる。   At this time, the SDP field conversion means 40103a refers to the unique SIP header of the received SIP signal, converts the IP address of the c field of the SDP of the SIP signal and the media reception port number of the m field to the unique SIP header. The IP address and port number before conversion in the header are rewritten (step 508g). Thereafter, for example, the original SIP header is deleted, and the SIP signal in which the c field and m field of the SDP are rewritten is passed to the SIP header converting means 40104 to perform the processing of step 506, and the first NAT is performed in step 507. A SIP signal is returned to the apparatus 101. In this way, when the SIP signal in which the IP address in the c field and the media reception port number in the m field are returned to the values before conversion is returned to the first NAT device 101, the first NAT device 101 transmits the SIP signal. It is forwarded to the terminal that finally receives it. As a result, the terminal that has received the SIP signal knows that the SIP signal is a signal transmitted from a terminal accommodated in the same private network. At this time, the IP address in the c field of the SDP is an address in the address system of the private network, and the media reception port number in the m field is a port number set by the terminal that transmitted the SIP signal. Therefore, when media such as voice and video are transmitted / received after establishing a SIP session between the terminals, a route can be set in the private network without going through the global network.

また、前記ステップ508fにおいて、前記独自SIPヘッダに含まれる網識別情報と前記ステップ508bで取得した網識別情報が一致しないと判定した場合、前記SIP信号を最初に送信した端末と前記SIP信号を最終的に受信する端末は異なるプライベート網に収容されていることになる。そのため、前記SDP変換判定手段40103cは、前記SDPフィールド変換手段40103aにcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号の変換をさせず、前記受信したSIP信号をそのまま前記SIPヘッダ変換手段40104に渡し、前記ステップ506およびステップ507の処理を行わせる。また、本実施例のSIP信号変換方法では、前記NAT装置およびSIP-ALG装置を介して前記プライベート網からグローバル網にSIP信号を送信した場合、必ず前記独自SIPヘッダが設定される。そのため、前記ステップ508aにおいて、前記独自SIPヘッダが設定されていないと判定すると、前記SIP信号を最初に送信した端末は前記SIPサーバが収容されている網と同じ網、すなわちグローバル網に収容されていることになる。この場合も前記SDP変換判定手段40103は、前記SDPフィールド変換手段40103aにcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号の変換をさせず、前記受信したSIP信号をそのまま前記SIPヘッダ変換手段40104に渡し、前記ステップ506およびステップ507の処理を行わせる。   If it is determined in step 508f that the network identification information included in the unique SIP header and the network identification information acquired in step 508b do not match, the terminal that first transmitted the SIP signal and the SIP signal are finalized. Thus, the terminal that receives the message is accommodated in a different private network. Therefore, the SDP conversion determination unit 40103c does not cause the SDP field conversion unit 40103a to convert the IP address of the c field and the media reception port number of the m field, and the received SIP signal is directly used as the SIP header conversion unit 40104. And the processing of step 506 and step 507 is performed. Also, in the SIP signal conversion method of this embodiment, the unique SIP header is always set when a SIP signal is transmitted from the private network to the global network via the NAT device and SIP-ALG device. Therefore, if it is determined in step 508a that the unique SIP header is not set, the terminal that first transmitted the SIP signal is accommodated in the same network as the network in which the SIP server is accommodated, that is, in the global network. Will be. Also in this case, the SDP conversion determination unit 40103 does not cause the SDP field conversion unit 40103a to convert the IP address of the c field and the media reception port number of the m field, and the received SIP signal is directly used as the SIP header conversion unit. 40104 to cause the processing of step 506 and step 507 to be performed.

また、前記グローバル網3の端末から送信されたSIP信号が、前記プライベート網の端末が送信したSIP信号の返信SIP信号である場合、前記返信SIP信号に前記プライベート網の端末が送信したSIP信号に設定された独自SIPヘッダが引き継がれていることがある。しかしながら、その場合、前記返信SIP信号のSDPのIPアドレスおよびメディア受信用ポート番号は前記グローバル網の端末に対する値であり、前記独自SIPヘッダにある変換後のIPアドレスおよびメディア受信用ポート番号は前記プライベート網の端末に対する値である。そのため、前記ステップ508c、ステップ508dにおいて一致しないと判定される。そのため、前記SDPフィールド変換手段40103aによるcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号の変換は行われず、前記受信したSIP信号がそのまま前記SIPヘッダ変換手段40104に渡され、前記ステップ506およびステップ507の処理が行われる。   Further, when the SIP signal transmitted from the terminal of the global network 3 is a reply SIP signal of the SIP signal transmitted from the terminal of the private network, the SIP signal transmitted from the terminal of the private network to the reply SIP signal. The set unique SIP header may be carried over. However, in that case, the IP address and media reception port number of the SDP of the reply SIP signal are values for the terminals of the global network, and the converted IP address and media reception port number in the unique SIP header are This value is for a private network terminal. For this reason, it is determined in step 508c and step 508d that they do not match. Therefore, the IP address of the c field and the media reception port number of the m field are not converted by the SDP field conversion unit 40103a, and the received SIP signal is directly passed to the SIP header conversion unit 40104, and the steps 506 and The process of step 507 is performed.

このように、本実施例のSIP信号変換方法では、プライベート網の端末(送信端末)からNAT装置およびSIP-ALG装置を経由してグローバル網のSIPサーバにSIP信号が送信されるときに、前記NAT装置(送信端末)の網識別情報、前記SIP信号のSDPの変換前のcフィールドのIPアドレスおよびmフィールドのポート番号、変換後のcフィールドのIPアドレスおよびmフィールドのポート番号の5つの情報を持つ独自SIPヘッダが設定される。そのため、前記SIPサーバからNAT装置およびSIP-ALG装置を経由してプライベート網の端末(受信端末)にSIP信号が送信されるとき、前記SIP-ALG装置は、単独で、前記SIP信号を最初に送信した端末(送信端末)が、前記受信端末と同じプライベート網に収容されているか、または前記受信端末と異なるプライベート網あるいはグローバル網に収容されているかを識別することができる。そのため、図1に示したように複数のSIP-ALG装置が設けられたネットワークにおいて、従来のように他のSIP-ALG装置に通信経路を問い合わせる必要が無く、SIP通信における処理遅延を少なくすることができる。   As described above, in the SIP signal conversion method of the present embodiment, when a SIP signal is transmitted from a private network terminal (transmission terminal) to a global network SIP server via a NAT device and a SIP-ALG device, Five pieces of information: network identification information of NAT device (transmission terminal), IP address of c field before conversion of SDP of the SIP signal and port number of m field, IP address of c field after conversion and port number of m field A unique SIP header with is set. Therefore, when a SIP signal is transmitted from the SIP server to a private network terminal (receiving terminal) via a NAT device and a SIP-ALG device, the SIP-ALG device independently transmits the SIP signal first. It is possible to identify whether the transmitting terminal (transmitting terminal) is accommodated in the same private network as the receiving terminal, or is accommodated in a private network or a global network different from the receiving terminal. Therefore, in a network provided with a plurality of SIP-ALG devices as shown in FIG. 1, there is no need to inquire communication routes to other SIP-ALG devices as in the prior art, and processing delay in SIP communication is reduced. Can do.

以下、図1に示したネットワークにおいて、同一プライベート網の端末間でSIP通信を行う場合、異なるプライベート網の端末間でSIP通信を行う場合、プライベート網の端末とグローバル網の端末の間でSIP通信を行う場合について、SIP信号の変換例等を含めた具体的な通信手順の説明をする。   Hereinafter, in the network shown in FIG. 1, when performing SIP communication between terminals of the same private network, when performing SIP communication between terminals of different private networks, SIP communication between the terminals of the private network and the terminals of the global network. A specific communication procedure including a SIP signal conversion example and the like will be described.

図7乃至図17は、本実施例のSIP信号変換方法を具体的に説明するための模式図であり、図7は同一プライベート網の端末間でのSIP通信の経路を示す図、図8は第1端末から第2端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図、図9は第1端末が送信するSIP信号の一例を示す図、図10は第1SIP-ALG装置で変換されたSIP信号の一例を示す図、図11はSIPサーバで編集されたSIP信号の一例を示す図、図12は第2SIP-ALG装置で変換されたSIP信号の一例を示す図である。また、図13は第2端末から第1端末にSIP信号(200 OKレスポンス)を送信する際のシーケンス図、図14は第2端末が送信するSIP信号の一例を示す図、図15は第2SIP-ALG装置で変換されたSIP信号の一例を示す図、図16はSIPサーバで編集されたSIP信号の一例を示す図、図17は第1SIP-ALG装置で変換されたSIP信号の一例を示す図である。   7 to 17 are schematic diagrams for specifically explaining the SIP signal conversion method according to the present embodiment. FIG. 7 is a diagram showing a route of SIP communication between terminals in the same private network. FIG. FIG. 9 is a sequence diagram when a SIP signal (INVITE request) is transmitted from the first terminal to the second terminal, FIG. 9 is a diagram illustrating an example of the SIP signal transmitted from the first terminal, and FIG. 10 is converted by the first SIP-ALG device. FIG. 11 is a diagram showing an example of a SIP signal edited by a SIP server, and FIG. 12 is a diagram showing an example of a SIP signal converted by the second SIP-ALG device. FIG. 13 is a sequence diagram when a SIP signal (200 OK response) is transmitted from the second terminal to the first terminal, FIG. 14 is a diagram illustrating an example of the SIP signal transmitted from the second terminal, and FIG. 15 is a diagram illustrating the second SIP. FIG. 16 shows an example of a SIP signal edited by the SIP server, and FIG. 17 shows an example of the SIP signal converted by the first SIP-ALG device. FIG.

本実施例のSIP信号変換方法の具体例として、まず、図7に示すように、同じ第1プライベート網1に収容されている第1端末103と第2端末104の間でSIP通信を行い、セッションを確立する場合の変換方法について説明する。このとき、前記第1端末103と第2端末104の間で送受信するSIP信号は、図7に示したように、前記第1NAT装置101および前記第1SIP-ALG装置401、前記SIPサーバ302、前記第2NAT装置102および前記第2SIP-ALG装置402を経由する。   As a specific example of the SIP signal conversion method of the present embodiment, first, as shown in FIG. 7, SIP communication is performed between the first terminal 103 and the second terminal 104 accommodated in the same first private network 1, A conversion method for establishing a session will be described. At this time, the SIP signals transmitted and received between the first terminal 103 and the second terminal 104 are, as shown in FIG. 7, the first NAT device 101, the first SIP-ALG device 401, the SIP server 302, the Via the second NAT device 102 and the second SIP-ALG device 402.

このとき、前記第1端末103から第2端末104に対してセッションの確立を要求するSIP信号(INVITEリクエスト)を送信したとすると、前記SIP信号は、図8に示すように、まず、前記第1NAT装置101で受信される(S601)。このとき、前記第1端末103から送信されるSIP信号(INVITE)は、たとえば、図9に示すようになっており、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記第1プライベート網1のアドレス体系で割り当てられたIPアドレス192.168.0.1になっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号も前記第1端末で設定した番号5060番および10001番になっている。   At this time, if a SIP signal (INVITE request) requesting establishment of a session is transmitted from the first terminal 103 to the second terminal 104, the SIP signal is first transmitted as shown in FIG. Received by the 1 NAT device 101 (S601). At this time, the SIP signal (INVITE) transmitted from the first terminal 103 is, for example, as shown in FIG. 9, and the IP address of the SIP header and the IP address of the c field of the SDP are respectively The IP address assigned by the address system of 1 private network 1 is 192.168.0.1. Further, the port number for receiving the SIP signal and the port number for receiving the media are also the numbers 5060 and 10001 set in the first terminal.

前記第1NAT装置101は、前記第1端末103からのSIP信号を受信すると、前記SIP信号を前記第1SIP-ALG装置401に転送し、前記SIP信号のSDPおよびSIPヘッダを変換させる(S602)。   When receiving the SIP signal from the first terminal 103, the first NAT device 101 transfers the SIP signal to the first SIP-ALG device 401 and converts the SDP and SIP header of the SIP signal (S602).

前記第1SIP-ALG装置401は、前記第1NAT装置101から転送された前記SIP信号を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がプライベート網からグローバル網であると判定する。そのため、前記第1SIP-ALG装置401では、前記ステップ503、ステップ504、ステップ505、ステップ506、ステップ507の順に変換処理が行われる(S603)。このとき、前記第1SIP-ALG装置401では、前記第1NAT装置101が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号のSDPのcフィールドおよびmフィールドから、前記第1プライベート網側のIPアドレス192.168.0.1、およびメディア受信用ポート番号10001を取得する。また、前記第1NAT装置と連携してグローバル網用のIPアドレス130.0.0.1およびメディア受信用ポート番号20001、ならびにSIP信号受信用ポート番号15060を取得する。その結果、前記第1SIP-ALG装置401は、図10に示すように変換されたSIP信号を前記第1NAT装置101に返送する(S604)。なお、図10に示した例では、ヘッダ名をP-ALG-INFとし、前記網識別情報(PN1)、変換前のcフィールドのIPアドレス(192.168.0.1)およびmフィールドのポート番号(10001)、変換後のcフィールドのIPアドレス(130.0.0.1)およびmフィールドのポート番号(20001)の5つの情報をハイフン(-)でつないだ文字列をヘッダ値とした独自SIPヘッダ(P-ALG-INF:PN1-192.168.0.1-10001-130.0.0.1-20001)を設定している。   When the first SIP-ALG device 401 receives the SIP signal transferred from the first NAT device 101, in step 502 shown in FIG. 5, the transmission direction of the SIP signal is from the private network to the global network. judge. Therefore, the first SIP-ALG device 401 performs the conversion process in the order of step 503, step 504, step 505, step 506, and step 507 (S603). At this time, the first SIP-ALG device 401 acquires PN1 as network identification information of the private network (first private network) in which the first NAT device 101 is accommodated. Further, the IP address 192.168.0.1 and the media reception port number 10001 on the first private network side are acquired from the c field and m field of the SDP of the received SIP signal. In addition, the global network IP address 130.0.0.1, media reception port number 20001, and SIP signal reception port number 15060 are obtained in cooperation with the first NAT device. As a result, the first SIP-ALG device 401 returns the converted SIP signal to the first NAT device 101 as shown in FIG. 10 (S604). In the example shown in FIG. 10, the header name is P-ALG-INF, the network identification information (PN1), the IP address of the c field before conversion (192.168.0.1), and the port number of the m field (10001). , The original SIP header (P-ALG-) with the header value as a character string in which the five information of the converted c field IP address (130.0.0.1) and m field port number (20001) are connected with a hyphen (-) INF: PN1-192.168.0.1-10001-130.0.0.1-20001) is set.

前記第1NAT装置101は、前記第1SIP-ALG装置401から返送された、図10に示したようなSIP信号を受信すると、本来のSIP信号(INVITE)の送信先であるSIPサーバ302に前記SIP信号を送信する(S605)。   When the first NAT device 101 receives the SIP signal returned from the first SIP-ALG device 401 as shown in FIG. 10, the first NAT device 101 transmits the SIP signal to the SIP server 302 that is the transmission destination of the original SIP signal (INVITE). A signal is transmitted (S605).

前記SIPサーバ302は、前記第1NAT装置101から送信された、図10に示したようなSIP信号を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)を返信する一方で、前記受信したSIP信号(INVITE)の送信先の特定、前記Viaヘッダの設定などを行い、図11に示したような編集をしたSIP信号(INVITE)を前記第2端末104に向けて送信する。このとき、前記SIPサーバ302から送信されたSIP信号(INVITE)は、前記第2NAT装置102で受信され、前記第2SIP-ALG装置402に転送される(S606、S607)。   When the SIP server 302 receives the SIP signal as shown in FIG. 10 transmitted from the first NAT device 101, for example, it returns a SIP signal (100 Trying) indicating that signal processing is in progress. The destination of the received SIP signal (INVITE) is specified, the Via header is set, etc., and the edited SIP signal (INVITE) as shown in FIG. 11 is transmitted to the second terminal 104. . At this time, the SIP signal (INVITE) transmitted from the SIP server 302 is received by the second NAT device 102 and transferred to the second SIP-ALG device 402 (S606, S607).

前記第2SIP-ALG装置402は、前記SIPサーバ302から送信された前記SIP信号を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がグローバル網からプライベート網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ508、ステップ506、ステップ507の順に変換処理が行われる(S608)。このとき、前記第2SIP-ALG装置402では、前記SIP信号に独自SIPヘッダが設定されているので、前記第2NAT装置102が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号の独自SIPヘッダの変換後のcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号と、前記SDPのcフィールドおよびmフィールドは一致する。また、前記独自SIPヘッダの網識別情報(PN1)と取得した第2NAT装置102の網識別情報(PN1)も一致する。そのため、前記第2SIP-ALG装置402のSDP変換判定手段40103cは、同一プライベート網の端末間でのSIP通信と判断し、前記SDPフィールド変換手段40103aに前記cフィールドおよびmフィールドを変換させる。このとき、前記SDPフィールド変換手段40103aは、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号を、前記独自SIPヘッダにある変換前のIPアドレス(192.168.0.1)およびポート番号(10001)に変換する。そしてその後、前記SIPヘッダ変換手段40104において前記ステップ507の処理を行う。その結果、前記第2SIP-ALG装置402は、図12に示すように変換されたSIP信号(INVITE)を前記第2NAT装置に返送する(S609)。   When the second SIP-ALG device 402 receives the SIP signal transmitted from the SIP server 302, it determines that the transmission direction of the SIP signal is from the global network to the private network in the step 502 shown in FIG. To do. Therefore, the second SIP-ALG device 402 performs conversion processing in the order of step 508, step 506, and step 507 (S608). At this time, since the unique SIP header is set in the SIP signal in the second SIP-ALG device 402, PN1 is used as network identification information of the private network (first private network) in which the second NAT device 102 is accommodated. To get. Further, the IP address of the c field and the media reception port number of the m field after conversion of the unique SIP header of the received SIP signal match the c field and the m field of the SDP. Further, the network identification information (PN1) of the unique SIP header matches the acquired network identification information (PN1) of the second NAT device 102. Therefore, the SDP conversion determination means 40103c of the second SIP-ALG device 402 determines that the SIP communication is between terminals in the same private network, and causes the SDP field conversion means 40103a to convert the c field and m field. At this time, the SDP field conversion means 40103a uses the IP address of the SDP c field and the media reception port number of the m field as the IP address (192.168.0.1) before conversion and the port number ( 10001). Thereafter, the SIP header converting means 40104 performs the processing of step 507. As a result, the second SIP-ALG device 402 returns the SIP signal (INVITE) converted as shown in FIG. 12 to the second NAT device (S609).

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図12に示したようなSIP信号を受信すると、本来のSIP信号(INVITE)の送信先である第2端末104に前記SIP信号を送信する(S610)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. A SIP signal is transmitted (S610).

この結果、前記第2端末104では、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号が、前記第1端末103のプライベート網側のIPアドレスおよびポート番号に設定されたSIP信号を受信することができる。またこのとき、前記第2端末104は、図12に示したようなSIP信号を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)や、呼出中であることを示すSIP信号(180 Ringing)を返信する。   As a result, in the second terminal 104, the SIP signal in which the IP address in the c field of the SDP and the media reception port number in the m field are set to the IP address and port number on the private network side of the first terminal 103 is obtained. Can be received. At this time, when the second terminal 104 receives the SIP signal as shown in FIG. 12, for example, a SIP signal (100 Trying) indicating that signal processing is being performed or a SIP signal indicating that calling is in progress. Returns a signal (180 Ringing).

その後、前記第2端末104側で、図12に示したようなSIP信号(INVITE)に対して応答すると、前記第2端末104からSIPサーバ302に対して応答を示すSIP信号(200 OKレスポンス)が送信される。このとき、前記SIP信号(200 OK)は、図13に示すように、まず、前記第2NAT装置102で受信される(S612)。このとき、前記第2端末104から送信されるSIP信号(200 OK)は、たとえば、図14に示すようになっており、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記第1プライベート網1のアドレス体系で割り当てられたIPアドレス192.168.0.2になっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号も前記第2端末104で設定した番号5060番および10002番になっている。   Thereafter, when the second terminal 104 responds to the SIP signal (INVITE) as shown in FIG. 12, the SIP signal (200 OK response) indicating the response from the second terminal 104 to the SIP server 302. Is sent. At this time, the SIP signal (200 OK) is first received by the second NAT device 102 as shown in FIG. 13 (S612). At this time, the SIP signal (200 OK) transmitted from the second terminal 104 is, for example, as shown in FIG. 14, and the IP address of the SIP header and the IP address of the c field of the SDP are respectively The IP address assigned by the address system of the first private network 1 is 192.168.0.2. Also, the port number for receiving the SIP signal and the port number for receiving the media are the numbers 5060 and 10002 set in the second terminal 104, respectively.

前記第2NAT装置102は、前記第2端末104からのSIP信号(200 OK)を受信すると、前記SIP信号を前記第2SIP-ALG装置402に転送し、前記SIP信号のSDPおよびSIPヘッダを変換させる(S613)。   When receiving the SIP signal (200 OK) from the second terminal 104, the second NAT device 102 transfers the SIP signal to the second SIP-ALG device 402, and converts the SDP and SIP header of the SIP signal. (S613).

前記第2SIP-ALG装置402は、前記第2NAT装置102から転送された前記SIP信号を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がプライベート網からグローバル網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ503、ステップ504、ステップ505、ステップ506、ステップ507の順に変換処理が行われる(S614)。このとき、前記第2SIP-ALG装置402では、前記第2NAT装置102が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号のSDPによるセッション記述のcフィールドおよびmフィールドから、前記第1プライベート網側のIPアドレス192.168.0.2、およびメディア受信用ポート番号10002を取得する。また、前記第2NAT装置と連携してグローバル網用のIPアドレス131.0.0.2およびメディア受信用ポート番号20002、ならびにSIP信号受信用ポート番号15060を取得する。その結果、前記第2SIP-ALG装置402は、図15に示すように変換されたSIP信号を前記第2NAT装置102に返送する(S615)。なお、図15に示した例では、ヘッダ名をP-ALG-INFとし、前記網識別情報(PN1)、変換前のcフィールドのIPアドレス(192.168.0.2)およびmフィールドのポート番号(10002)、変換後のcフィールドのIPアドレス(131.0.0.2)およびmフィールドのポート番号(20002)の5つの情報をハイフン(-)でつないだ文字列をヘッダ値とした独自SIPヘッダ(P-ALG-INF:PN1-192.168.0.2-10002-131.0.0.2-20002)を設定している。   When the second SIP-ALG device 402 receives the SIP signal transferred from the second NAT device 102, in step 502 shown in FIG. 5, the transmission direction of the SIP signal is from the private network to the global network. judge. Therefore, in the second SIP-ALG device 402, the conversion process is performed in the order of step 503, step 504, step 505, step 506, and step 507 (S614). At this time, the second SIP-ALG device 402 acquires PN1 as network identification information of the private network (first private network) in which the second NAT device 102 is accommodated. Further, the IP address 192.168.0.2 and the media reception port number 10002 on the first private network side are acquired from the c field and m field of the session description by SDP of the received SIP signal. In addition, the global network IP address 131.0.0.2, media reception port number 20002, and SIP signal reception port number 15060 are acquired in cooperation with the second NAT device. As a result, the second SIP-ALG device 402 returns the SIP signal converted as shown in FIG. 15 to the second NAT device 102 (S615). In the example shown in FIG. 15, the header name is P-ALG-INF, the network identification information (PN1), the IP address of the c field before conversion (192.168.0.2), and the port number of the m field (10002). A unique SIP header (P-ALG-) with a header value consisting of a string consisting of five pieces of information: the IP address (131.0.0.2) in the c field after conversion and the port number (20002) in the m field connected with a hyphen (-) INF: PN1-192.168.0.2-10002-131.0.0.2-20002) is set.

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図15に示したようなSIP信号を受信すると、本来のSIP信号(200 OK)の送信先であるSIPサーバ302に前記SIP信号を送信する(S616)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. 15, the second NAT device 102 sends the original SIP signal (200 OK) to the SIP server 302 as the transmission destination. A SIP signal is transmitted (S616).

前記SIPサーバ302は、前記第2NAT装置102から送信された、図15に示したようなSIP信号(200 OK)を受信すると、前記Viaヘッダから前記SIP信号の送信先を特定し、図16に示したような編集をしたSIP信号(200 OK)を前記第1端末103に向けて送信する。このとき、前記SIPサーバ302から送信されたSIP信号は、前記第1NAT装置101で受信され、前記第1SIP-ALG装置401に転送される(S617、S618)。   When the SIP server 302 receives the SIP signal (200 OK) transmitted from the second NAT device 102 as shown in FIG. 15, the SIP server 302 identifies the transmission destination of the SIP signal from the Via header, and FIG. The SIP signal (200 OK) edited as shown is transmitted to the first terminal 103. At this time, the SIP signal transmitted from the SIP server 302 is received by the first NAT device 101 and transferred to the first SIP-ALG device 401 (S617, S618).

前記第1SIP-ALG装置401は、前記SIPサーバ302から送信された前記SIP信号を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がグローバル網からプライベート網であると判定する。そのため、前記第1SIP-ALG装置401では、前記ステップ508、ステップ506、ステップ507の順に変換処理が行われる(S619)。このとき、前記第1SIP-ALG装置401では、前記SIP信号に独自SIPヘッダが設定されているので、前記第1NAT装置101が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号の独自SIPヘッダの変換後のcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号と、前記SDPのcフィールドおよびmフィールドは一致する。また、前記独自SIPヘッダの網識別情報(PN1)と取得した第1NAT装置101の網識別情報(PN1)も一致する。そのため、前記第1SIP-ALG装置401のSDP変換判定手段40103cは、同一プライベート網の端末間でのSIP通信と判断し、前記SDPフィールド変換手段40103aに前記cフィールドおよびmフィールドを変換させる。このとき、前記SDPフィールド変換手段40103aは、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号を、前記独自SIPヘッダにある変換前のIPアドレス(192.168.0.2)およびポート番号(10002)に変換する。そしてその後、前記SIPヘッダ変換手段40104において前記ステップ507の処理を行う。その結果、前記第1SIP-ALG装置401は、図17に示すように変換されたSIP信号(200 OK)を前記第1NAT装置101に返送する(S620)。   When receiving the SIP signal transmitted from the SIP server 302, the first SIP-ALG device 401 determines in step 502 shown in FIG. 5 that the transmission direction of the SIP signal is from the global network to the private network. To do. Therefore, the first SIP-ALG device 401 performs the conversion process in the order of step 508, step 506, and step 507 (S619). At this time, since the original SIP header is set in the SIP signal in the first SIP-ALG device 401, PN1 is used as the network identification information of the private network (first private network) in which the first NAT device 101 is accommodated. To get. Further, the IP address of the c field and the media reception port number of the m field after conversion of the unique SIP header of the received SIP signal match the c field and the m field of the SDP. Further, the network identification information (PN1) of the unique SIP header and the acquired network identification information (PN1) of the first NAT device 101 also coincide. Therefore, the SDP conversion determination unit 40103c of the first SIP-ALG device 401 determines that the SIP communication is performed between terminals in the same private network, and causes the SDP field conversion unit 40103a to convert the c field and the m field. At this time, the SDP field conversion means 40103a uses the IP address in the c field of the SDP and the media reception port number in the m field as the IP address (192.168.0.2) before conversion and the port number (in the unique SIP header). 10002). Thereafter, the SIP header converting means 40104 performs the processing of step 507. As a result, the first SIP-ALG device 401 returns the SIP signal (200 OK) converted as shown in FIG. 17 to the first NAT device 101 (S620).

前記第1NAT装置101は、前記第1SIP-ALG装置401から返送された、図17に示したようなSIP信号を受信すると、本来のSIP信号(200 OK)の送信先である第1端末103に前記SIP信号を送信する(S621)。   When the first NAT device 101 receives the SIP signal returned from the first SIP-ALG device 401 as shown in FIG. 17, the first NAT device 101 sends it to the first terminal 103 which is the transmission destination of the original SIP signal (200 OK). The SIP signal is transmitted (S621).

この結果、前記第1端末103では、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号が、前記第2端末104のプライベート網側のIPアドレスおよびポート番号に設定されたSIP信号を受信することができる。またこのとき、前記第1端末103は、図17に示したようなSIP信号を受信すると、たとえば、最終レスポンスを受信したことを知らせるSIP信号(ACK)を返信する。そして、図示は省略するが、前記第2端末104が前記SIP信号(ACK)を受信すると、前記第1端末103と第2端末104の間のセッションが確立し、音声や映像等のメディア信号の送受信をすることができる。   As a result, in the first terminal 103, the SIP signal in which the IP address in the c field of the SDP and the port number for media reception in the m field are set to the IP address and port number on the private network side of the second terminal 104. Can be received. At this time, when the first terminal 103 receives the SIP signal as shown in FIG. 17, for example, it returns a SIP signal (ACK) notifying that the final response has been received. Although illustration is omitted, when the second terminal 104 receives the SIP signal (ACK), a session between the first terminal 103 and the second terminal 104 is established, and a media signal such as audio or video is transmitted. You can send and receive.

このように、前記INVITEリクエストおよび前記200 OKレスポンスについて、前記第1SIP-ALG装置401および第2SIP-ALG装置402で、前記SDPのIPアドレスおよびポート番号を変換、制御することで、前記第1端末103と第2端末104は、お互いに第1プライベート網1側のIPアドレスを前記SDPで交換することができる。そのため、前記第1端末103と第2端末104の間で音声や映像等のメディア信号を送受信するときには、前記第1プライベート網1内で前記各NAT装置401,402を介さない径路を設定し、送受信することが可能となる。   As described above, the first terminal is configured to convert and control the IP address and port number of the SDP in the first SIP-ALG device 401 and the second SIP-ALG device 402 for the INVITE request and the 200 OK response. 103 and the second terminal 104 can exchange the IP address on the first private network 1 side with each other by the SDP. Therefore, when transmitting and receiving media signals such as audio and video between the first terminal 103 and the second terminal 104, a path that does not pass through the NAT devices 401 and 402 is set in the first private network 1, It is possible to send and receive.

また、本実施例では、前記第1端末103から第2端末104に対して前記INVITEリクエストを送信する場合について説明したが、前記第2端末104から第1端末103に対して前記INVITEリクエストを送信する場合も同様の手順でセッションを確立することができることは言うまでもない。   In this embodiment, the case where the INVITE request is transmitted from the first terminal 103 to the second terminal 104 has been described. However, the INVITE request is transmitted from the second terminal 104 to the first terminal 103. Needless to say, the session can be established in the same procedure.

図18乃至図28は、本実施例のSIP信号変換方法を具体的に説明するための模式図であり、図18は異なるプライベート網の端末間でのSIP通信の経路を示す図、図19は第4端末から第2端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図、図20は第4端末が送信するSIP信号の一例を示す図、図21は第3SIP-ALG装置で変換されたSIP信号の一例を示す図、図22はSIPサーバで編集されたSIP信号の一例を示す図、図23は第2SIP-ALG装置で変換されたSIP信号の一例を示す図である。また、図24は第2端末から第4端末にSIP信号(200 OKレスポンス)を送信する際のシーケンス図、図25は第2端末が送信するSIP信号の一例を示す図、図26は第2SIP-ALG装置で変換されたSIP信号の一例を示す図、図27はSIPサーバで編集されたSIP信号の一例を示す図、図28は第3SIP-ALG装置で変換されたSIP信号の一例を示す図である。   FIGS. 18 to 28 are schematic diagrams for specifically explaining the SIP signal conversion method of the present embodiment. FIG. 18 is a diagram showing a route of SIP communication between terminals of different private networks. FIG. 20 is a sequence diagram when a SIP signal (INVITE request) is transmitted from the fourth terminal to the second terminal, FIG. 20 is a diagram illustrating an example of a SIP signal transmitted by the fourth terminal, and FIG. 21 is converted by the third SIP-ALG device. FIG. 22 is a diagram illustrating an example of a SIP signal edited by a SIP server, and FIG. 23 is a diagram illustrating an example of a SIP signal converted by a second SIP-ALG device. FIG. 24 is a sequence diagram when a SIP signal (200 OK response) is transmitted from the second terminal to the fourth terminal, FIG. 25 is a diagram illustrating an example of a SIP signal transmitted from the second terminal, and FIG. FIG. 27 shows an example of a SIP signal edited by a SIP server, and FIG. 28 shows an example of a SIP signal converted by a third SIP-ALG device. FIG.

本実施例のSIP信号変換方法の具体例として、次に、図18に示すように、第1プライベート網1に収容されている第2端末104と第2プライベート網2に収容されている第4端末202の間でSIP通信を行い、セッションを確立する手順について説明する。このとき、前記第2端末104と第4端末202の間で送受信するSIP信号は、図18に示したように、前記第2NAT装置102および前記第2SIP-ALG装置402、前記SIPサーバ302、前記第3NAT装置201および前記第3SIP-ALG装置403を経由する。   As a specific example of the SIP signal conversion method of the present embodiment, next, as shown in FIG. 18, the second terminal 104 accommodated in the first private network 1 and the fourth terminal accommodated in the second private network 2. A procedure for establishing a session by performing SIP communication between the terminals 202 will be described. At this time, as shown in FIG. 18, the SIP signals transmitted and received between the second terminal 104 and the fourth terminal 202 are the second NAT device 102, the second SIP-ALG device 402, the SIP server 302, the It goes through the third NAT device 201 and the third SIP-ALG device 403.

このとき、前記第4端末202から第2端末104に対してセッションの確立を要求するSIP信号(INVITEリクエスト)を送信したとすると、前記SIP信号は、図19に示すように、まず、前記第3NAT装置201で受信される(S701)。このとき、前記第4端末202から送信されるSIP信号(INVITE)は、たとえば、図20に示すようになっており、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記第2プライベート網2のアドレス体系で割り当てられたIPアドレス192.168.1.4になっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号も前記第4端末202で設定した番号5060番および10004番になっている。   At this time, if a SIP signal (INVITE request) requesting establishment of a session is transmitted from the fourth terminal 202 to the second terminal 104, the SIP signal is first transmitted as shown in FIG. The data is received by the 3NAT device 201 (S701). At this time, the SIP signal (INVITE) transmitted from the fourth terminal 202 is, for example, as shown in FIG. 20, and the IP address of the SIP header and the IP address of the c field of the SDP are 2 The IP address assigned by the private network 2 address system is 192.168.1.4. Further, the port number for receiving the SIP signal and the port number for receiving the media are the numbers 5060 and 10004 set in the fourth terminal 202, respectively.

前記第3NAT装置201は、前記第4端末202からのSIP信号を受信すると、前記SIP信号を前記第3SIP-ALG装置403に転送し、前記SIP信号のSDPおよびSIPヘッダを変換させる(S702)。   When receiving the SIP signal from the fourth terminal 202, the third NAT device 201 transfers the SIP signal to the third SIP-ALG device 403 and converts the SDP and SIP header of the SIP signal (S702).

前記第3SIP-ALG装置403は、前記第3NAT装置201から転送された前記SIP信号(INVITE)を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がプライベート網からグローバル網であると判定する。そのため、前記第3SIP-ALG装置403では、前記ステップ503、ステップ504、ステップ505、ステップ506、ステップ507の順に変換処理が行われる(S703)。このとき、前記第3SIP-ALG装置403では、前記第3NAT装置201が収容されているプライベート網(第2プライベート網)の網識別情報としてPN2を取得する。また、前記受信したSIP信号のSDPのcフィールドおよびmフィールドから、前記第2プライベート網側のIPアドレス192.168.1.4、およびメディア受信用ポート番号10004を取得する。また、前記第3NAT装置201と連携してグローバル網用のIPアドレス132.0.1.4およびメディア受信用ポート番号20004、ならびにSIP信号受信用ポート番号15060を取得する。その結果、前記第3SIP-ALG装置403は、図21に示すように変換されたSIP信号(INVITE)を前記第3NAT装置201に返送する(S704)。なお、図21に示した例では、ヘッダ名をP-ALG-INFとし、前記網識別情報(PN2)、変換前のcフィールドのIPアドレス(192.168.1.4)およびmフィールドのポート番号(10004)、変換後のcフィールドのIPアドレス(132.0.1.4)およびmフィールドのポート番号(20004)の5つの情報をハイフン(-)でつないだ文字列をヘッダ値とした独自SIPヘッダ(P-ALG-INF:PN2-192.168.1.4-10004-132.0.1.4- 20004)を設定している。   When the third SIP-ALG device 403 receives the SIP signal (INVITE) transferred from the third NAT device 201, in step 502 shown in FIG. 5, the transmission direction of the SIP signal is changed from a private network to a global network. It is determined that Therefore, the third SIP-ALG device 403 performs conversion processing in the order of step 503, step 504, step 505, step 506, and step 507 (S703). At this time, the third SIP-ALG device 403 acquires PN2 as network identification information of the private network (second private network) in which the third NAT device 201 is accommodated. Further, the IP address 192.168.1.4 and the media reception port number 10004 on the second private network side are acquired from the c field and m field of the SDP of the received SIP signal. Further, in cooperation with the third NAT device 201, the global network IP address 132.0.1.4, the media reception port number 20004, and the SIP signal reception port number 15060 are obtained. As a result, the third SIP-ALG device 403 returns the SIP signal (INVITE) converted as shown in FIG. 21 to the third NAT device 201 (S704). In the example shown in FIG. 21, the header name is P-ALG-INF, the network identification information (PN2), the IP address of the c field before conversion (192.168.1.4), and the port number of the m field (10004). , The original SIP header (P-ALG-) with the header value as a character string in which the five information of the converted c field IP address (132.0.1.4) and m field port number (20004) are connected with a hyphen (-) INF: PN2-192.168.1.4-10004-132.0.1.4-20004) is set.

前記第3NAT装置201は、前記第3SIP-ALG装置403から返送された、図21に示したようなSIP信号を受信すると、本来のSIP信号(INVITE)の送信先であるSIPサーバ302に前記SIP信号を送信する(S705)。   When the third NAT device 201 receives the SIP signal as shown in FIG. 21 returned from the third SIP-ALG device 403, the third NAT device 201 sends the SIP server 302, which is the transmission destination of the original SIP signal (INVITE), to the SIP server 302. A signal is transmitted (S705).

前記SIPサーバ302は、前記第3NAT装置201から送信された、図21に示したようなSIP信号(INVITE)を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)を返信する一方で、前記受信したSIP信号(INVITE)の送信先の特定、前記Viaヘッダの設定などを行い、図22に示したような編集をしたSIP信号(INVITE)を前記第2端末104に向けて送信する。このとき、前記SIPサーバ302から送信されたSIP信号(INVITE)は、前記第2NAT装置102で受信され、前記第2SIP-ALG装置402に転送される(S706、S707)。   When the SIP server 302 receives the SIP signal (INVITE) transmitted from the third NAT device 201 as shown in FIG. 21, for example, it returns a SIP signal (100 Trying) indicating that signal processing is in progress. On the other hand, the destination of the received SIP signal (INVITE) is specified, the Via header is set, and the edited SIP signal (INVITE) as shown in FIG. 22 is directed to the second terminal 104. To send. At this time, the SIP signal (INVITE) transmitted from the SIP server 302 is received by the second NAT device 102 and transferred to the second SIP-ALG device 402 (S706, S707).

前記第2SIP-ALG装置402は、前記SIPサーバ302から送信された前記SIP信号(INVITE)を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がグローバル網からプライベート網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ508、ステップ506、ステップ507の順に変換処理が行われる(S708)。このとき、前記第2SIP-ALG装置402では、前記SIP信号に独自SIPヘッダが設定されているので、前記第2NAT装置102が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号の独自SIPヘッダの変換後のcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号と、前記SDPのcフィールドおよびmフィールドは一致する。しかしながら、前記独自SIPヘッダの網識別情報(PN2)と取得した第2NAT装置102の網識別情報(PN1)は一致しない。そのため、前記第2SIP-ALG装置402のSDP変換判定手段40103cは、異なるプライベート網の端末間でのSIP通信と判断し、前記SDPフィールド変換手段40103aに前記cフィールドおよびmフィールドを変換させない。そしてその後、前記SIPヘッダ変換手段40104において前記ステップ507の処理を行う。その結果、前記第2SIP-ALG装置402は、図23に示すように変換されたSIP信号(INVITE)を前記第2NAT装置102に返送する(S709)。   When the second SIP-ALG device 402 receives the SIP signal (INVITE) transmitted from the SIP server 302, the transmission direction of the SIP signal is changed from the global network to the private network in the step 502 shown in FIG. Judge that there is. Therefore, the second SIP-ALG device 402 performs the conversion process in the order of step 508, step 506, and step 507 (S708). At this time, since the unique SIP header is set in the SIP signal in the second SIP-ALG device 402, PN1 is used as network identification information of the private network (first private network) in which the second NAT device 102 is accommodated. To get. Further, the IP address of the c field and the media reception port number of the m field after conversion of the unique SIP header of the received SIP signal match the c field and the m field of the SDP. However, the network identification information (PN2) of the unique SIP header and the acquired network identification information (PN1) of the second NAT device 102 do not match. Therefore, the SDP conversion determination unit 40103c of the second SIP-ALG device 402 determines that the SIP communication is between terminals of different private networks, and does not cause the c field and m field to be converted by the SDP field conversion unit 40103a. Thereafter, the SIP header converting means 40104 performs the processing of step 507. As a result, the second SIP-ALG device 402 returns the SIP signal (INVITE) converted as shown in FIG. 23 to the second NAT device 102 (S709).

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図23に示したようなSIP信号を受信すると、本来のSIP信号(INVITE)の送信先である第2端末104に前記SIP信号を送信する(S710)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. 23, the second NAT device 102 sends the original SIP signal (INVITE) to the second terminal 104 as the transmission destination. A SIP signal is transmitted (S710).

この結果、前記第2端末104では、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号が、グローバル網のアドレス体系に沿ったIPアドレスおよびポート番号に設定されたSIP信号(INVITE)を受信する。またこのとき、前記第2端末104は、図23に示したようなSIP信号を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)や、呼出中であることを示すSIP信号(180 Ringing)を返信する。   As a result, in the second terminal 104, the SIP signal (INVITE) in which the IP address in the c field of the SDP and the media reception port number in the m field are set to the IP address and port number in accordance with the global network address system. ). At this time, when the second terminal 104 receives the SIP signal as shown in FIG. 23, for example, a SIP signal (100 Trying) indicating that signal processing is being performed or a SIP signal indicating that calling is in progress. Returns a signal (180 Ringing).

その後、前記第2端末104側で、図23に示したようなSIP信号(INVITE)に対して応答すると、前記第2端末104からSIPサーバ302に対して応答を示すSIP信号(200 OKレスポンス)が送信される。このとき、前記SIP信号(200 OK)は、図24に示すように、まず、前記第2NAT装置102で受信される(S712)。このとき、前記第2端末104から送信されるSIP信号(200 OK)は、たとえば、図25に示すようになっており、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記第1プライベート網1のアドレス体系で割り当てられたIPアドレス192.168.0.2になっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号も前記第2端末104で設定した番号5060番および10002番になっている。   Thereafter, when the second terminal 104 responds to the SIP signal (INVITE) as shown in FIG. 23, the SIP signal (200 OK response) indicating the response from the second terminal 104 to the SIP server 302. Is sent. At this time, the SIP signal (200 OK) is first received by the second NAT device 102 as shown in FIG. 24 (S712). At this time, the SIP signal (200 OK) transmitted from the second terminal 104 is, for example, as shown in FIG. 25, and the IP address of the SIP header and the IP address of the c field of the SDP are respectively The IP address assigned by the address system of the first private network 1 is 192.168.0.2. Also, the port number for receiving the SIP signal and the port number for receiving the media are the numbers 5060 and 10002 set in the second terminal 104, respectively.

前記第2NAT装置102は、前記第2端末104からのSIP信号(200 OK)を受信すると、前記SIP信号を前記第2SIP-ALG装置402に転送し、前記受信したSIP信号のSDPおよびSIPヘッダを変換させる(S713)。   Upon receiving the SIP signal (200 OK) from the second terminal 104, the second NAT device 102 transfers the SIP signal to the second SIP-ALG device 402, and receives the SDP and SIP header of the received SIP signal. Conversion is performed (S713).

前記第2SIP-ALG装置402は、前記第2NAT装置102から転送された前記SIP信号(200 OK)を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がプライベート網からグローバル網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ503、ステップ504、ステップ505、ステップ506、ステップ507の順に変換処理が行われる(S714)。このとき、前記第2SIP-ALG装置402では、前記第2NAT装置102が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号のcフィールドおよびmフィールドから、前記第1プライベート網側のIPアドレス192.168.0.2、およびメディア受信用ポート番号10002を取得する。また、前記第2NAT装置102と連携してグローバル網用のIPアドレス131.0.0.2およびメディア受信用ポート番号20002、ならびにSIP信号受信用ポート番号15060を取得する。その結果、前記第2SIP-ALG装置402は、図26に示すように変換されたSIP信号(200 OK)を前記第2NAT装置102に返送する(S615)。なお、図26に示した例では、ヘッダ名をP-ALG-INFとし、前記網識別情報(PN1)、変換前のcフィールドのIPアドレス(192.168.0.2)およびmフィールドのポート番号(10002)、変換後のcフィールドのIPアドレス(131.0.0.2)およびmフィールドのポート番号(20002)の5つの情報をハイフン(-)でつないだ文字列をヘッダ値とした独自SIPヘッダ(P-ALG-INF:PN1-192.168.0.2-10002-131.0.0.2-20002)を設定している。   When the second SIP-ALG device 402 receives the SIP signal (200 OK) transferred from the second NAT device 102, the transmission direction of the SIP signal is changed from the private network to the global in step 502 shown in FIG. It is determined to be a net. Therefore, in the second SIP-ALG device 402, conversion processing is performed in the order of step 503, step 504, step 505, step 506, and step 507 (S714). At this time, the second SIP-ALG device 402 acquires PN1 as network identification information of the private network (first private network) in which the second NAT device 102 is accommodated. Also, the IP address 192.168.0.2 and the media reception port number 10002 on the first private network side are obtained from the c field and m field of the received SIP signal. Further, in cooperation with the second NAT device 102, an IP address 131.0.0.2 for global network, a port number for media reception 20002, and a port number for SIP signal reception 15060 are acquired. As a result, the second SIP-ALG device 402 returns the converted SIP signal (200 OK) as shown in FIG. 26 to the second NAT device 102 (S615). In the example shown in FIG. 26, the header name is P-ALG-INF, the network identification information (PN1), the IP address of the c field before conversion (192.168.0.2), and the port number of the m field (10002). A unique SIP header (P-ALG-) with a header value consisting of a string consisting of five pieces of information: the IP address (131.0.0.2) in the c field after conversion and the port number (20002) in the m field connected with a hyphen (-) INF: PN1-192.168.0.2-10002-131.0.0.2-20002) is set.

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図26に示したようなSIP信号を受信すると、本来のSIP信号(200 OK)の送信先であるSIPサーバ302に前記SIP信号を送信する(S716)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. 26, the second NAT device 102 sends the original SIP signal (200 OK) to the SIP server 302 as the transmission destination. A SIP signal is transmitted (S716).

前記SIPサーバ302は、前記第2NAT装置102から送信された、図26に示したようなSIP信号を受信すると、前記Viaヘッダから前記SIP信号の送信先を特定し、図27に示したような編集をしたSIP信号(200 OK)を前記第4端末202に向けて送信する。このとき、前記SIPサーバ302から送信されたSIP信号は、前記第3NAT装置201で受信され、前記第3SIP-ALG装置403に転送される(S717、S718)。   When the SIP server 302 receives the SIP signal as shown in FIG. 26 transmitted from the second NAT device 102, the SIP server 302 identifies the destination of the SIP signal from the Via header, and as shown in FIG. The edited SIP signal (200 OK) is transmitted to the fourth terminal 202. At this time, the SIP signal transmitted from the SIP server 302 is received by the third NAT device 201 and transferred to the third SIP-ALG device 403 (S717, S718).

前記第3SIP-ALG装置403は、前記SIPサーバ302から送信された前記SIP信号(200 OK)を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がグローバル網からプライベート網であると判定する。そのため、前記第3SIP-ALG装置403では、前記ステップ508、ステップ506、ステップ507の順に変換処理が行われる(S719)。このとき、前記第3SIP-ALG装置403では、前記SIP信号に独自SIPヘッダが設定されているので、前記第3NAT装置201が収容されているプライベート網(第2プライベート網)の網識別情報としてPN2を取得する。また、前記受信したSIP信号の独自SIPヘッダの変換後のcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号と、前記SDPのcフィールドおよびmフィールドは一致する。しかしながら、前記独自SIPヘッダの網識別情報(PN1)と取得した第3NAT装置201の網識別情報(PN2)は一致しない。そのため、前記第3SIP-ALG装置403のSDP変換判定手段40103cは、異なるプライベート網の端末間でのSIP通信と判断し、前記SDPフィールド変換手段40103aに前記cフィールドおよびmフィールドを変換させない。そしてその後、前記SIPヘッダ変換手段40104において前記ステップ507の処理を行う。その結果、前記第3SIP-ALG装置403は、図28に示すように変換されたSIP信号(200 OK)を前記第3NAT装置201に返送する(S720)。   When the third SIP-ALG device 403 receives the SIP signal (200 OK) transmitted from the SIP server 302, the SIP signal transmission direction is changed from the global network to the private network in the step 502 shown in FIG. It is determined that Therefore, the third SIP-ALG device 403 performs conversion processing in the order of step 508, step 506, and step 507 (S719). At this time, since the unique SIP header is set in the SIP signal in the third SIP-ALG device 403, PN2 is used as network identification information of the private network (second private network) in which the third NAT device 201 is accommodated. To get. Further, the IP address of the c field and the media reception port number of the m field after conversion of the unique SIP header of the received SIP signal match the c field and the m field of the SDP. However, the network identification information (PN1) of the unique SIP header and the acquired network identification information (PN2) of the third NAT device 201 do not match. Therefore, the SDP conversion determination means 40103c of the third SIP-ALG device 403 determines that the SIP communication is between terminals of different private networks, and does not cause the SDP field conversion means 40103a to convert the c field and m field. Thereafter, the SIP header converting means 40104 performs the processing of step 507. As a result, the third SIP-ALG device 403 returns the SIP signal (200 OK) converted as shown in FIG. 28 to the third NAT device 201 (S720).

前記第3NAT装置201は、前記第3SIP-ALG装置403から返送された、図28に示したようなSIP信号を受信すると、本来のSIP信号(200 OK)の送信先である第4端末202に前記SIP信号を送信する(S721)。   When the third NAT device 201 receives the SIP signal returned from the third SIP-ALG device 403 as shown in FIG. 28, the third NAT device 201 sends the original SIP signal (200 OK) to the fourth terminal 202 as the transmission destination. The SIP signal is transmitted (S721).

この結果、前記第4端末202では、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号が、グローバル網のアドレス体系に沿ったIPアドレスおよびポート番号に設定されたSIP信号を受信する。またこのとき、前記第4端末202は、図28に示したようなSIP信号を受信すると、たとえば、最終レスポンスを受信したことを知らせるSIP信号(ACK)を返信する。そして、図示は省略するが、前記第2端末104が前記SIP信号(ACK)を受信すると、前記第4端末202と第2端末104の間のセッションが確立し、音声や映像等のメディア信号の送受信をすることができる。   As a result, the fourth terminal 202 receives the SIP signal in which the IP address in the c field of the SDP and the port number for media reception in the m field are set to the IP address and the port number according to the global address system. To do. At this time, when receiving the SIP signal as shown in FIG. 28, the fourth terminal 202 returns, for example, a SIP signal (ACK) notifying that the final response has been received. Although illustration is omitted, when the second terminal 104 receives the SIP signal (ACK), a session between the fourth terminal 202 and the second terminal 104 is established, and a media signal such as audio or video is transmitted. You can send and receive.

このように、前記INVITEリクエストおよび前記200 OKレスポンスについて、前記第3SIP-ALG装置403および第2SIP-ALG装置402で、前記SDPのIPアドレスおよびポート番号を変換し制御することで、前記第4端末202と前記第2端末104は、お互いに変換後のグローバル網側のIPアドレスおよびポート番号の設定されたSDPを交換できる。そのため、前記第4端末202と前記第2端末104の間で音声や映像等のメディア信号を送受信するときには、前記第3NAT装置201と第2NAT装置102を介して送受信することが可能となる。   As described above, the fourth terminal is obtained by converting and controlling the IP address and port number of the SDP in the third SIP-ALG device 403 and the second SIP-ALG device 402 for the INVITE request and the 200 OK response. 202 and the second terminal 104 can exchange SDPs set with IP addresses and port numbers on the global network side after conversion. Therefore, when a media signal such as audio or video is transmitted / received between the fourth terminal 202 and the second terminal 104, it can be transmitted / received via the third NAT device 201 and the second NAT device 102.

また、本実施例では、前記第4端末202から第2端末104に対して前記INVITEリクエストを送信する場合について説明したが、前記第2端末104から第4端末202に対して前記INVITEリクエストを送信する場合も同様の手順でセッションを確立することができることは言うまでもない。また、前記第4端末202から第1端末103に対して前記INVITEリクエストを送信する場合、前記第1端末103から第4端末202に対して前記INVITEリクエストを送信した場合も、同様の手順でセッションを確立することができることも言うまでもない。   In the present embodiment, the case where the fourth terminal 202 transmits the INVITE request to the second terminal 104 has been described. However, the second terminal 104 transmits the INVITE request to the fourth terminal 202. Needless to say, a session can be established in the same procedure. Also, when the INVITE request is transmitted from the fourth terminal 202 to the first terminal 103, and the INVITE request is transmitted from the first terminal 103 to the fourth terminal 202, the session is performed in the same procedure. Needless to say, it can be established.

図29乃至図39は、本実施例のSIP信号変換方法を具体的に説明するための模式図であり、図29はグローバル網の端末とプライベート網の端末間でのSIP通信の経路を示す図、図30は第3端末から第2端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図、図31はSIPサーバで編集されたSIP信号の一例を示す図、図32は第2SIP-ALGで変換されたSIP信号の一例を示す図、図33は第2端末が送信するSIP信号(200 OKレスポンス)の一例を示す図、図34は第2SIP-ALGで変換されたSIP信号の一例を示す図である。また、図35は第2端末から第3端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図、図36は第2端末が送信するSIP信号の一例を示す図、図37は第2SIP-ALGで変換されたSIP信号の一例を示す図、図38は第3端末が送信するSIP信号(200 OK)の一例を示す図、図39は第2SIP-ALGで変換されたSIP信号の一例を示す図である。   FIG. 29 to FIG. 39 are schematic diagrams for specifically explaining the SIP signal conversion method of the present embodiment, and FIG. 29 is a diagram showing a route of SIP communication between the terminal of the global network and the terminal of the private network. FIG. 30 is a sequence diagram when a SIP signal (INVITE request) is transmitted from the third terminal to the second terminal, FIG. 31 is a diagram showing an example of the SIP signal edited by the SIP server, and FIG. 32 is the second SIP-ALG. FIG. 33 shows an example of a SIP signal (200 OK response) transmitted by the second terminal, and FIG. 34 shows an example of a SIP signal converted by the second SIP-ALG. FIG. FIG. 35 is a sequence diagram when a SIP signal (INVITE request) is transmitted from the second terminal to the third terminal, FIG. 36 is a diagram illustrating an example of a SIP signal transmitted from the second terminal, and FIG. FIG. 38 is a diagram showing an example of a SIP signal converted by ALG, FIG. 38 is a diagram showing an example of a SIP signal (200 OK) transmitted by the third terminal, and FIG. 39 is an example of a SIP signal converted by the second SIP-ALG. FIG.

本実施例のSIP信号変換方法の具体例として、最後に、図29に示すように、第1プライベート網1に収容されている第2端末104とグローバル網3に収容されている第3端末301の間でSIP通信を行い、セッションを確立する手順について説明する。このとき、前記第2端末104と第3端末301の間で送受信するSIP信号は、図29に示したように、前記第2NAT装置102および前記第2SIP-ALG装置402、前記SIPサーバ302を経由する。またこのとき、前記SIP通信によるセッションの確立を要求するINVITEリクエストを送信する端末が第2端末104の場合と第3端末301の場合で、変換方法が異なるため、まず、前記第3端末301から前記SIP信号(INVITEリクエスト)を送信した場合について説明する。   As a specific example of the SIP signal conversion method of the present embodiment, finally, as shown in FIG. 29, the second terminal 104 accommodated in the first private network 1 and the third terminal 301 accommodated in the global network 3 are used. Of establishing a session by performing SIP communication between the two. At this time, the SIP signal transmitted and received between the second terminal 104 and the third terminal 301 passes through the second NAT device 102, the second SIP-ALG device 402, and the SIP server 302 as shown in FIG. To do. At this time, since the conversion method differs between the second terminal 104 and the third terminal 301 that transmit an INVITE request for requesting establishment of a session by SIP communication, first, from the third terminal 301 A case where the SIP signal (INVITE request) is transmitted will be described.

前記第3端末301から第2端末104に対してセッションの確立を要求するSIP信号(INVITEリクエスト)を送信した場合、前記SIP信号は、図30に示すように、まず、前記SIPサーバ302で受信される(S801)。このとき、前記第3端末301から送信されるSIP信号(INVITE)は、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記グローバル網のアドレス体系で割り当てられたIPアドレスになっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号は前記第3端末301で設定した番号になっている。   When the SIP signal (INVITE request) requesting establishment of a session is transmitted from the third terminal 301 to the second terminal 104, the SIP signal is first received by the SIP server 302 as shown in FIG. (S801). At this time, in the SIP signal (INVITE) transmitted from the third terminal 301, the IP address of the SIP header and the IP address of the c field of the SDP are the IP addresses assigned by the global network address system. ing. Further, the port number for receiving the SIP signal and the port number for receiving the media are the numbers set in the third terminal 301.

前記SIPサーバ302は、前記第3端末301から送信されたSIP信号(INVITE)を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)を返信する一方で、前記受信したSIP信号(INVITE)の送信先の特定、前記Viaヘッダの設定などを行い、図31に示したような編集をしたSIP信号(INVITE)を前記第2端末104に向けて送信する。このとき、前記SIPサーバ302から送信されたSIP信号は、前記第2NAT装置102で受信され、前記第2SIP-ALG装置402に転送される(S802、S803)。   When the SIP server 302 receives the SIP signal (INVITE) transmitted from the third terminal 301, the SIP server 302 returns, for example, a SIP signal (100 Trying) indicating that signal processing is being performed, while the received SIP signal The transmission destination of the signal (INVITE) is specified, the Via header is set, and the SIP signal (INVITE) edited as shown in FIG. 31 is transmitted to the second terminal 104. At this time, the SIP signal transmitted from the SIP server 302 is received by the second NAT device 102 and transferred to the second SIP-ALG device 402 (S802, S803).

前記第2SIP-ALG装置402は、前記SIPサーバ302から送信された前記SIP信号(INVITE)を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がグローバル網からプライベート網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ508、ステップ506、ステップ507の順に変換処理が行われる(S804)。このとき、前記第2SIP-ALG装置402では、前記SIP信号に独自SIPヘッダが設定されていないので、グローバル網の端末とプライベート網の端末間でのSIP通信と判断し、前記SDPフィールド変換手段40103aに前記cフィールドおよびmフィールドを変換させない。そしてその後、前記SIPヘッダ変換手段40104において前記ステップ507の処理を行う。その結果、前記第2SIP-ALG装置402は、図32に示すように変換されたSIP信号(INVITE)を前記第2NAT装置102に返送する(S805)。   When the second SIP-ALG device 402 receives the SIP signal (INVITE) transmitted from the SIP server 302, the transmission direction of the SIP signal is changed from the global network to the private network in the step 502 shown in FIG. Judge that there is. Therefore, the second SIP-ALG device 402 performs conversion processing in the order of step 508, step 506, and step 507 (S804). At this time, since the unique SIP header is not set in the SIP signal, the second SIP-ALG device 402 determines that the SIP communication is performed between the terminal of the global network and the terminal of the private network, and the SDP field conversion unit 40103a. Does not convert the c field and m field. Thereafter, the SIP header converting means 40104 performs the processing of step 507. As a result, the second SIP-ALG device 402 returns the SIP signal (INVITE) converted as shown in FIG. 32 to the second NAT device 102 (S805).

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図32に示したようなSIP信号を受信すると、本来のSIP信号(INVITEリクエスト)の送信先である第2端末104に前記SIP信号を送信する(S806)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. 32, the second NAT device 102 sends it to the second terminal 104 which is the transmission destination of the original SIP signal (INVITE request). The SIP signal is transmitted (S806).

この結果、前記第2端末104では、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号が、グローバル網のアドレス体系に沿ったIPアドレスおよびポート番号に設定されたSIP信号を受信する。またこのとき、前記第2端末104は、図32に示したようなSIP信号を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)や、呼出中であることを示すSIP信号(180 Ringing)を返信する。   As a result, the second terminal 104 receives the SIP signal in which the IP address in the c field of the SDP and the media reception port number in the m field are set to the IP address and port number in accordance with the global network address system. To do. At this time, when the second terminal 104 receives the SIP signal as shown in FIG. 32, for example, the SIP signal (100 Trying) indicating that the signal processing is being performed or the SIP signal indicating that the calling is being performed. Returns a signal (180 Ringing).

その後、前記第2端末104側で、図32に示したようなSIP信号(INVITE)に対して応答すると、前記第2端末104からSIPサーバに対して応答を示すSIP信号(200 OKレスポンス)が送信される。このとき、前記SIP信号(200 OK)は、図30に示すように、まず、前記第2NAT装置102で受信される(S807)。このとき、前記第2端末104から送信されるSIP信号(200 OK)は、たとえば、図33に示すようになっており、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記第1プライベート網1のアドレス体系で割り当てられたIPアドレスになっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号も前記第2端末104で設定した番号になっている。   Thereafter, when the second terminal 104 responds to the SIP signal (INVITE) as shown in FIG. 32, a SIP signal (200 OK response) indicating a response from the second terminal 104 to the SIP server is received. Sent. At this time, the SIP signal (200 OK) is first received by the second NAT device 102 as shown in FIG. 30 (S807). At this time, the SIP signal (200 OK) transmitted from the second terminal 104 is, for example, as shown in FIG. 33. The IP address of the SIP header and the IP address of the c field of the SDP are respectively The IP address is assigned by the address system of the first private network 1. Further, the port number for receiving the SIP signal and the port number for receiving the media are also numbers set by the second terminal 104.

前記第2NAT装置102は、前記第2端末104からのSIP信号(200 OK)を受信すると、前記SIP信号を前記第2SIP-ALG装置402に転送し、前記受信したSIP信号のSDPおよびSIPヘッダを変換させる(S808)。   Upon receiving the SIP signal (200 OK) from the second terminal 104, the second NAT device 102 transfers the SIP signal to the second SIP-ALG device 402, and receives the SDP and SIP header of the received SIP signal. Conversion is performed (S808).

前記第2SIP-ALG装置402は、前記第2NAT装置102から転送された前記SIP信号(200 OK)を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がプライベート網からグローバル網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ503、ステップ504、ステップ505、ステップ506、ステップ507の順に変換処理が行われる(S809)。このとき、前記第2SIP-ALG装置402では、前記第2NAT装置102が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号のSDPのcフィールドおよびmフィールドから、前記第1プライベート網側のIPアドレス192.168.0.2、およびメディア受信用ポート番号10002を取得する。また、前記第2NAT装置と連携してグローバル網用のIPアドレス131.0.0.2およびメディア受信用ポート番号20002、ならびにSIP信号受信用ポート番号15060を取得する。その結果、前記第2SIP-ALG装置402は、図34に示すように変換されたSIP信号(200 OK)を前記第2NAT装置102に返送する(S810)。なお、図34に示した例では、ヘッダ名をP-ALG-INFとし、前記網識別情報(PN1)、変換前のcフィールドのIPアドレス(192.168.0.2)およびmフィールドのポート番号(10002)、変換後のcフィールドのIPアドレス(131.0.0.2)およびmフィールドのポート番号(20002)の5つの情報をハイフン(-)でつないだ文字列をヘッダ値とした独自SIPヘッダ(P-ALG-INF:PN1-192.168.0.2-10002-131.0.0.2-20002)を設定している。   When the second SIP-ALG device 402 receives the SIP signal (200 OK) transferred from the second NAT device 102, the transmission direction of the SIP signal is changed from the private network to the global in step 502 shown in FIG. It is determined to be a net. Therefore, in the second SIP-ALG device 402, conversion processing is performed in the order of step 503, step 504, step 505, step 506, and step 507 (S809). At this time, the second SIP-ALG device 402 acquires PN1 as network identification information of the private network (first private network) in which the second NAT device 102 is accommodated. Also, the IP address 192.168.0.2 and the media reception port number 10002 on the first private network side are obtained from the c field and m field of the SDP of the received SIP signal. In addition, the global network IP address 131.0.0.2, media reception port number 20002, and SIP signal reception port number 15060 are acquired in cooperation with the second NAT device. As a result, the second SIP-ALG device 402 returns the converted SIP signal (200 OK) as shown in FIG. 34 to the second NAT device 102 (S810). In the example shown in FIG. 34, the header name is P-ALG-INF, the network identification information (PN1), the IP address of the c field before conversion (192.168.0.2), and the port number of the m field (10002). , The original SIP header (P-ALG-) with the header value as a character string in which the five information of the converted c field IP address (131.0.0.2) and m field port number (20002) are connected with a hyphen (-) INF: PN1-192.168.0.2-10002-131.0.0.2-20002) is set.

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図34に示したようなSIP信号を受信すると、本来のSIP信号(200 OK)の送信先であるSIPサーバ302に前記SIP信号を送信する(S811)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. 34, the second NAT device 102 sends the original SIP signal (200 OK) to the SIP server 302 as the transmission destination. A SIP signal is transmitted (S811).

前記SIPサーバ302は、前記第2NAT装置102から送信された、図34に示したようなSIP信号を受信すると、前記Viaヘッダから前記SIP信号の送信先を特定し、編集をしたSIP信号(200 OK)を前記第3端末301に向けて送信する(S812)。   When the SIP server 302 receives the SIP signal transmitted from the second NAT device 102 as shown in FIG. 34, the SIP server 302 specifies the destination of the SIP signal from the Via header, and edits the SIP signal (200 OK) is transmitted to the third terminal 301 (S812).

この結果、前記第3端末301では、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号が、グローバル網のアドレス体系に沿ったIPアドレスおよびポート番号に設定されたSIP信号を受信する。またこのとき、前記第3端末301は、前記SIP信号(200 OK)を受信すると、たとえば、最終レスポンスを受信したことを知らせるSIP信号(ACK)を返信する。そして、図示は省略するが、前記第2端末104が前記SIP信号(ACK)を受信すると、前記第3端末301と第2端末104の間のセッションが確立し、音声や映像等のメディア信号の送受信をすることができる。   As a result, the third terminal 301 receives the SIP signal in which the IP address in the c field of the SDP and the port number for media reception in the m field are set to the IP address and port number in accordance with the global network address system. To do. At this time, when the third terminal 301 receives the SIP signal (200 OK), for example, it returns a SIP signal (ACK) notifying that the final response has been received. Although illustration is omitted, when the second terminal 104 receives the SIP signal (ACK), a session between the third terminal 301 and the second terminal 104 is established, and a media signal such as audio or video is transmitted. You can send and receive.

このように、前記INVITEリクエストおよび前記200 OKレスポンスについて、前記第2SIP-ALG装置402で、前記SDPのIPアドレスおよびポート番号を変換し制御することで、前記第3端末301は前記第2端末104の変換後のグローバル網側のIPアドレスおよびポート番号の設定されたSDPを取得し、前記第2端末104は前記第3端末301の実際のグローバル網側のIPアドレスおよびポート番号の設定されたSDPを取得できる。そのため、前記第3端末301と前記第2端末104の間で音声や映像等のメディア信号を送受信するときには、前記第2NAT装置102を介して送受信することが可能となる。   As described above, the second terminal 104 converts the IP address and port number of the SDP in the second SIP-ALG device 402 and controls the second terminal 104 for the INVITE request and the 200 OK response. The SDP in which the IP address and port number on the global network side after the conversion is set is acquired, and the second terminal 104 sets the SDP in which the actual global network IP address and port number of the third terminal 301 are set. Can be obtained. Therefore, when a media signal such as audio or video is transmitted / received between the third terminal 301 and the second terminal 104, it can be transmitted / received via the second NAT device 102.

次に、前記第2端末104から第3端末301に対してセッションの確立を要求するSIP信号(INVITEリクエスト)を送信した場合について説明する。このとき、前記SIP信号は、図35に示すように、まず、前記第2NAT装置102で受信される(S813)。このとき、前記第2端末104から送信されるSIP信号(INVITE)は、たとえば、図36に示すようになっており、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記第1プライベート網1のアドレス体系で割り当てられたIPアドレスになっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号も前記第2端末104で設定した番号になっている。   Next, a case where a SIP signal (INVITE request) requesting establishment of a session is transmitted from the second terminal 104 to the third terminal 301 will be described. At this time, as shown in FIG. 35, the SIP signal is first received by the second NAT device 102 (S813). At this time, the SIP signal (INVITE) transmitted from the second terminal 104 is, for example, as shown in FIG. 36. The IP address of the SIP header and the IP address of the c field of the SDP are respectively It is an IP address assigned by the address system of 1 private network 1. Further, the port number for receiving the SIP signal and the port number for receiving the media are also numbers set by the second terminal 104.

前記第2NAT装置102は、前記第2端末104からのSIP信号(INVITE)を受信すると、前記SIP信号を前記第2SIP-ALG装置402に転送し、前記受信したSIP信号のSDPおよびSIPヘッダを変換させる(S814)。   Upon receiving the SIP signal (INVITE) from the second terminal 104, the second NAT device 102 transfers the SIP signal to the second SIP-ALG device 402, and converts the SDP and SIP header of the received SIP signal. (S814).

前記第2SIP-ALG装置402は、前記第2NAT装置102から転送された前記SIP信号を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がプライベート網からグローバル網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ503、ステップ504、ステップ505、ステップ506、ステップ507の順に変換処理が行われる(S815)。このとき、前記第2SIP-ALG装置402では、前記第2NAT装置102が収容されているプライベート網(第1プライベート網)の網識別情報としてPN1を取得する。また、前記受信したSIP信号のSDPのcフィールドおよびmフィールドから、前記第1プライベート網側のIPアドレス192.168.0.2、およびメディア受信用ポート番号10002を取得する。また、前記第2NAT装置102と連携してグローバル網用のIPアドレス131.0.0.2およびメディア受信用ポート番号20002、ならびにSIP信号受信用ポート番号15060を取得する。その結果、前記第2SIP-ALG装置402は、図37に示すように変換されたSIP信号(INVITE)を前記第2NAT装置102に返送する(S816)。なお、図37に示した例では、ヘッダ名をP-ALG-INFとし、前記網識別情報(PN1)、変換前のcフィールドのIPアドレス(192.168.0.2)およびmフィールドのポート番号(10002)、変換後のcフィールドのIPアドレス(131.0.0.2)およびmフィールドのポート番号(20002)の5つの情報をハイフン(-)でつないだ文字列をヘッダ値とした独自SIPヘッダ(P-ALG-INF:PN1-192.168.0.2-10002-131.0.0.2-20002)を設定している。   When the second SIP-ALG device 402 receives the SIP signal transferred from the second NAT device 102, in step 502 shown in FIG. 5, the transmission direction of the SIP signal is from the private network to the global network. judge. Therefore, in the second SIP-ALG device 402, conversion processing is performed in the order of step 503, step 504, step 505, step 506, and step 507 (S815). At this time, the second SIP-ALG device 402 acquires PN1 as network identification information of the private network (first private network) in which the second NAT device 102 is accommodated. Also, the IP address 192.168.0.2 and the media reception port number 10002 on the first private network side are obtained from the c field and m field of the SDP of the received SIP signal. Further, in cooperation with the second NAT device 102, an IP address 131.0.0.2 for global network, a port number for media reception 20002, and a port number for SIP signal reception 15060 are acquired. As a result, the second SIP-ALG device 402 returns the SIP signal (INVITE) converted as shown in FIG. 37 to the second NAT device 102 (S816). In the example shown in FIG. 37, the header name is P-ALG-INF, the network identification information (PN1), the IP address of the c field before conversion (192.168.0.2), and the port number of the m field (10002). A unique SIP header (P-ALG-) with a header value consisting of a string consisting of five pieces of information: the IP address (131.0.0.2) in the c field after conversion and the port number (20002) in the m field connected with a hyphen (-) INF: PN1-192.168.0.2-10002-131.0.0.2-20002) is set.

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図37に示したようなSIP信号を受信すると、本来のSIP信号(INVITE)の送信先であるSIPサーバ302に前記SIP信号を送信する(S817)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. 37, the second NAT device 102 transmits the SIP signal to the SIP server 302 that is the transmission destination of the original SIP signal (INVITE). A signal is transmitted (S817).

前記SIPサーバ302は、前記第2NAT装置102から送信された、図37に示したようなSIP信号を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)を返信する一方で、前記Viaヘッダから前記SIP信号の送信先を特定し、編集をしたSIP信号(INVITE)を前記第3端末301に向けて送信する(S818)。その結果、前記第3端末301では、前記第2端末104の変換後のグローバル網のアドレス体系に沿ったIPアドレスおよびメディア受信用ポート番号が設定されたSIP信号を受信する。またこのとき、前記第3端末301は、前記SIP信号(INVITE)を受信すると、たとえば、信号処理中であることを示すSIP信号(100 Trying)や、呼出中であることを示すSIP信号(180 Ringing)を返信する。   When the SIP server 302 receives the SIP signal transmitted from the second NAT device 102 as shown in FIG. 37, for example, it returns a SIP signal (100 Trying) indicating that signal processing is in progress. The destination of the SIP signal is specified from the Via header, and the edited SIP signal (INVITE) is transmitted to the third terminal 301 (S818). As a result, the third terminal 301 receives the SIP signal in which the IP address and the media reception port number are set in accordance with the global network address system after the conversion of the second terminal 104. At this time, when the third terminal 301 receives the SIP signal (INVITE), for example, a SIP signal (100 Trying) indicating that signal processing is being performed or a SIP signal (180 Trying) indicating that calling is in progress. Reply “Ringing”.

その後、前記第3端末301側で、前記SIP信号(INVITE)に対して応答すると、前記第3端末301からSIPサーバ302に対して応答を示すSIP信号(200 OKレスポンス)が送信される(S819)。このとき、前記第3端末301から送信されるSIP信号(200 OK)は、たとえば、図38に示すようになっており、前記SIPヘッダのIPアドレスおよびSDPのcフィールドのIPアドレスはそれぞれ、前記グローバル網3のアドレス体系で割り当てられたIPアドレスになっている。また、前記SIP信号受信用のポート番号および前記メディア受信用のポート番号も前記第3端末301で設定した番号になっている。また、本実施例では、前記SIP信号(200 OK)は、図38に示したように、前記第3端末301が受信したSIP信号(INVITE)に設定されていた独自SIPヘッダを引き継いでいるとする。   Thereafter, when the third terminal 301 responds to the SIP signal (INVITE), the third terminal 301 transmits a SIP signal (200 OK response) indicating the response to the SIP server 302 (S819). ). At this time, the SIP signal (200 OK) transmitted from the third terminal 301 is, for example, as shown in FIG. 38, and the IP address of the SIP header and the IP address of the c field of the SDP are respectively The IP address is assigned by the address system of the global network 3. Further, the port number for receiving the SIP signal and the port number for receiving the media are also the numbers set by the third terminal 301. In the present embodiment, the SIP signal (200 OK), as shown in FIG. 38, takes over the unique SIP header set in the SIP signal (INVITE) received by the third terminal 301. To do.

前記SIPサーバ302は、前記第3端末301から送信された、図38に示したようなSIP信号を受信すると、前記Viaヘッダから前記SIP信号の送信先を特定し、編集をしたSIP信号(200 OK)を前記第2端末104に向けて送信する。このとき、前記SIPサーバから送信されたSIP信号(200 OK)は、前記第2NAT装置102で受信され、前記第2SIP-ALG装置402に転送される(S820、S821)。   When the SIP server 302 receives the SIP signal as shown in FIG. 38 transmitted from the third terminal 301, the SIP server 302 specifies the destination of the SIP signal from the Via header and edits the SIP signal (200 OK) is transmitted to the second terminal 104. At this time, the SIP signal (200 OK) transmitted from the SIP server is received by the second NAT device 102 and transferred to the second SIP-ALG device 402 (S820, S821).

前記第2SIP-ALG装置402は、前記SIPサーバ302から送信された前記SIP信号(200 OK)を受信すると、図5に示した前記ステップ502において、前記SIP信号の送信方向がグローバル網からプライベート網であると判定する。そのため、前記第2SIP-ALG装置402では、前記ステップ508、ステップ506、ステップ507の順に変換処理が行われる(S822)。このとき、前記第2SIP-ALG装置402では、前記SIP信号に独自SIPヘッダが設定されているが、図6に示した前記ステップ508cおよびステップ508dの処理を行うと、前記独自SIPヘッダにある変換後のIPアドレスおよびメディア受信用ポート番号と、前記SDPのcフィールドのIPアドレスおよびmフィールドのポート番号は一致しない。そのため、前記第2SIP-ALG装置402は、グローバル網の端末とプライベート網の端末間でのSIP通信と判断し、前記SDPフィールド変換手段40103aに前記cフィールドおよびmフィールドを変換させない。そしてその後、前記SIPヘッダ変換手段40104において前記ステップ507の処理を行う。その結果、前記第2SIP-ALG装置402は、図39に示すように変換されたSIP信号(200 OK)を前記第2NAT装置102に返送する(S823)。   When the second SIP-ALG device 402 receives the SIP signal (200 OK) transmitted from the SIP server 302, the transmission direction of the SIP signal is changed from the global network to the private network in the step 502 shown in FIG. It is determined that Therefore, the second SIP-ALG device 402 performs the conversion process in the order of step 508, step 506, and step 507 (S822). At this time, in the second SIP-ALG device 402, a unique SIP header is set in the SIP signal. However, if the processing in step 508c and step 508d shown in FIG. 6 is performed, the conversion in the unique SIP header is performed. The later IP address and media reception port number do not match the IP address in the c field of the SDP and the port number in the m field. Therefore, the second SIP-ALG device 402 determines that the SIP communication is between a global network terminal and a private network terminal, and does not cause the SDP field conversion means 40103a to convert the c field and m field. Thereafter, the SIP header converting means 40104 performs the processing of step 507. As a result, the second SIP-ALG device 402 returns the converted SIP signal (200 OK) as shown in FIG. 39 to the second NAT device 102 (S823).

前記第2NAT装置102は、前記第2SIP-ALG装置402から返送された、図39に示したようなSIP信号を受信すると、本来のSIP信号(200 OK)の送信先である第2端末104に前記SIP信号を送信する(S824)。   When the second NAT device 102 receives the SIP signal returned from the second SIP-ALG device 402 as shown in FIG. 39, the second NAT device 102 sends it to the second terminal 104 which is the transmission destination of the original SIP signal (200 OK). The SIP signal is transmitted (S824).

この結果、前記第2端末104では、前記SDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号が、グローバル網のアドレス体系に沿ったIPアドレスおよびポート番号に設定されたSIP信号を受信する。またこのとき、前記第2端末104は、図39に示したようなSIP信号を受信すると、たとえば、最終レスポンスを受信したことを知らせるSIP信号(ACK)を返信する。そして、図示は省略するが、前記第3端末301が前記SIP信号(ACK)を受信すると、前記第3端末301と第2端末104の間のセッションが確立し、音声や映像等のメディア信号の送受信をすることができる。   As a result, the second terminal 104 receives the SIP signal in which the IP address in the c field of the SDP and the media reception port number in the m field are set to the IP address and port number in accordance with the global network address system. To do. At this time, when the second terminal 104 receives the SIP signal as shown in FIG. 39, for example, it returns a SIP signal (ACK) notifying that the final response has been received. Although illustration is omitted, when the third terminal 301 receives the SIP signal (ACK), a session between the third terminal 301 and the second terminal 104 is established, and a media signal such as audio or video is transmitted. You can send and receive.

このように、前記INVITEリクエストおよび前記200 OKレスポンスについて、前記第2SIP-ALG装置402で、前記SDPのIPアドレスおよびポート番号を変換し制御することで、前記第3端末301は前記第2端末104の変換後のグローバル網側のIPアドレスおよびポート番号の設定されたSDPを取得し、前記第2端末104は前記第3端末301の実際のグローバル網側のIPアドレスおよびポート番号の設定されたSDPを取得できる。そのため、前記第3端末301と前記第2端末104の間で音声や映像等のメディア信号を送受信するときには、前記第2NAT装置102を介して送受信することが可能となる。   As described above, the second terminal 104 converts the IP address and port number of the SDP in the second SIP-ALG device 402 and controls the second terminal 104 for the INVITE request and the 200 OK response. The SDP in which the IP address and port number on the global network side after the conversion is set is acquired, and the second terminal 104 sets the SDP in which the actual global network IP address and port number of the third terminal 301 are set. Can be obtained. Therefore, when a media signal such as audio or video is transmitted / received between the third terminal 301 and the second terminal 104, it can be transmitted / received via the second NAT device 102.

また、本実施例では、前記第3端末301と第2端末104の間でSIP通信を行う場合について説明したが、前記第3端末301と第1端末103の間、前記第3端末301と第4端末202の間でSIP通信を行う場合も、同様の手順でセッションを確立することができることも言うまでもない。   In the present embodiment, the case where SIP communication is performed between the third terminal 301 and the second terminal 104 has been described. However, the third terminal 301 and the second terminal 104 are connected between the third terminal 301 and the first terminal 103. Needless to say, when SIP communication is performed between the four terminals 202, a session can be established in the same procedure.

以上説明したように、本実施例のSIP信号変換方法によれば、端末間でSIP信号の送受信を行う際に、プライベート網からグローバル網に送信されるSIP信号が経由するSIP-ALG装置と、前記グローバル網から前記プライベート網に送信されるSIP信号が経由するSIP-ALG装置が異なる場合でも、前記グローバル網から前記プライベート網に送信されるSIP信号が経由するSIP-ALG装置が単独で、前記SIP信号を送信した端末と受信する端末が同じプライベート網に収容されているか否かを判別することができる。そのため、従来のように他のSIP-ALGに問い合わせる必要が無く、SIP通信における処理遅延を少なくすることができる。   As described above, according to the SIP signal conversion method of the present embodiment, when a SIP signal is transmitted and received between terminals, a SIP-ALG device through which a SIP signal transmitted from the private network to the global network passes, Even if SIP-ALG devices through which SIP signals transmitted from the global network to the private network pass are different, the SIP-ALG devices through which SIP signals transmitted from the global network to the private network are independent, It is possible to determine whether the terminal that transmitted the SIP signal and the terminal that receives the SIP signal are accommodated in the same private network. Therefore, there is no need to make an inquiry to another SIP-ALG as in the prior art, and the processing delay in SIP communication can be reduced.

また、本実施例のSIP信号変換方法では、前記独自SIPヘッダを設定することで、前記グローバル網から前記プライベート網に送信されるSIP信号が経由するSIP-ALG装置は、前記SIP信号を送信した端末が、前記SIP信号を受信する端末と同じプライベート網に収容されている場合、前記独自SIPヘッダを参照してSDPのcフィールドのIPアドレスおよびmフィールドのメディア受信用ポート番号を変換前、すなわちプライベート網のアドレス体系に沿ったIPアドレスおよびポート番号に変換することができる。そのため、同じプライベート網に収容されている端末間でSIP通信を行い、セッションを確立した場合、セッション確立後の音声や映像等のメディア信号の送受信は、前記プライベート網内でNAT装置を介さない径路を設定し、送受信することが可能となる。   Further, in the SIP signal conversion method of the present embodiment, by setting the unique SIP header, the SIP-ALG device through which the SIP signal transmitted from the global network to the private network passes has transmitted the SIP signal. When the terminal is accommodated in the same private network as the terminal that receives the SIP signal, the IP address in the c field of the SDP and the media reception port number in the m field are converted before referring to the unique SIP header, that is, It can be converted into IP address and port number according to the private network address system. Therefore, when SIP communication is performed between terminals accommodated in the same private network and a session is established, transmission / reception of media signals such as voice and video after the session is established does not pass through a NAT device in the private network. Can be set and transmitted / received.

以上、本発明を、前記実施例に基づき具体的に説明したが、本発明は、前記実施例に限定されるものではなく、その要旨を逸脱しない範囲において、種々変更可能であることはもちろんである。   The present invention has been specifically described above based on the above-described embodiments. However, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the present invention. is there.

たとえば、前記実施例では、前記SIP-ALG装置で、図5および図6に示したような手順の処理を行い、前記SIP信号のSIPレイヤのIPアドレスおよびポート番号を変換する例を説明したが、変換した結果が最終的に前記実施例で説明したような変換方法であれば、たとえば、図5および図6に示した各ステップの順番が入れ替わっていてもよい。   For example, in the above-described embodiment, the example has been described in which the SIP-ALG device performs the process as shown in FIGS. 5 and 6 to convert the SIP layer IP address and port number of the SIP signal. If the conversion result is the conversion method finally described in the above embodiment, for example, the order of the steps shown in FIGS. 5 and 6 may be changed.

また、前記実施例では、図2に示したような構成の前記SIP-ALG装置を例に挙げたが、これに限らず、図2に示した各手段のうちのいくつかの機能がまとめられた手段で構成されていてもよい。   In the above embodiment, the SIP-ALG apparatus having the configuration as shown in FIG. 2 is taken as an example. However, the present invention is not limited to this, and some functions of each means shown in FIG. It may be configured by the above means.

また、前記実施例では、図10、図15、図21、図26、図34、および図37に示したように、ヘッダ名をP-ALG-INFとし、前記網識別情報、変換前のcフィールドのIPアドレスおよびmフィールドのポート番号、変換後のcフィールドのIPアドレスおよびmフィールドのポート番号の5つの情報をハイフン(-)でつないだ文字列をヘッダ値とした独自SIPヘッダを設定したが、前記5つの情報が識別できる設定であれば、たとえば、前記網識別情報を設定するヘッダ、変換前のIPアドレスおよびメディア受信用ポート番号を設定するヘッダ、変換後のIPアドレスおよびメディア受信用ポート番号を設定するヘッダのように複数個のヘッダを設定してもよい。   In the embodiment, as shown in FIGS. 10, 15, 21, 26, 34, and 37, the header name is P-ALG-INF, the network identification information, and the c before conversion. A unique SIP header was set with a header value consisting of a string consisting of five pieces of information: the IP address of the field, the port number of the m field, the IP address of the converted c field, and the port number of the m field. However, if the settings are such that the five pieces of information can be identified, for example, a header for setting the network identification information, a header for setting an IP address before conversion and a port number for media reception, an IP address after conversion and for media reception A plurality of headers such as a header for setting a port number may be set.

また、前記実施例ではプライベート網とグローバル網が接続されたネットワーク構成を例に挙げて説明したが、これに限らず、たとえば、IPv4網とIPv6網のように、アドレス体系が異なる網がNAT装置で接続されており、SIP通信の際に前記SIP-ALG装置でSIP信号のSIPレイヤのIPアドレスおよびポート番号を書き換えるようなネットワーク構成の場合にも、本発明のSIP信号変換方法を適用できる。   In the above-described embodiment, the network configuration in which the private network and the global network are connected has been described as an example. However, the present invention is not limited to this. The SIP signal conversion method of the present invention can also be applied to a network configuration in which the SIP-ALG device rewrites the SIP layer IP address and port number of the SIP signal during SIP communication.

また、前記実施例では、図2に示したような構成の前記SIP-ALG装置において、各手段が連携して変換処理を行う場合を例に挙げて説明したが、これに限らず、たとえば、図5および図6に示したような処理をコンピュータに実行させてもよい。この場合、図5および図6に示したような各ステップの処理を前記コンピュータに実行させるプログラムを用意し、前記コンピュータに実行させればよい。このとき、前記プログラムは、磁気的または電気的、あるいは光学的な記録媒体に記録して提供してもよいし、インターネット等のネットワークを通して提供してもよい。   Further, in the above-described embodiment, the case where the respective units perform the conversion processing in cooperation with each other in the SIP-ALG apparatus having the configuration as illustrated in FIG. 2 is described as an example. You may make a computer perform the process as shown to FIG. 5 and FIG. In this case, a program for causing the computer to execute the process of each step as shown in FIGS. 5 and 6 may be prepared and executed by the computer. At this time, the program may be provided by being recorded on a magnetic, electrical, or optical recording medium, or may be provided through a network such as the Internet.

本発明による一実施例のSIP信号変換方法を説明するための模式図であり、本実施例のSIP信号変換方法が適用されるネットワークの構成例を示す図である。It is a schematic diagram for demonstrating the SIP signal conversion method of one Example by this invention, and is a figure which shows the structural example of the network to which the SIP signal conversion method of this Example is applied. 本発明による一実施例のSIP信号変換方法を説明するための模式図であり、図1のSIP-ALGの構成例を示す図である。It is a schematic diagram for demonstrating the SIP signal conversion method of one Example by this invention, and is a figure which shows the structural example of SIP-ALG of FIG. 本発明による一実施例のSIP信号変換方法を説明するための模式図であり、ネットワークアドレス管理テーブルの一例を示す図である。It is a schematic diagram for demonstrating the SIP signal conversion method of one Example by this invention, and is a figure which shows an example of a network address management table. 本発明による一実施例のSIP信号変換方法を説明するための模式図であり、NAT対応網識別情報管理テーブルの一例を示す図である。It is a schematic diagram for demonstrating the SIP signal conversion method of one Example by this invention, and is a figure which shows an example of a NAT corresponding network identification information management table. 本発明による一実施例のSIP信号変換方法を説明するための模式図であり、SIP-ALGにおける処理手順の一例を説明するためのフロー図である。It is a schematic diagram for demonstrating the SIP signal conversion method of one Example by this invention, and is a flowchart for demonstrating an example of the process sequence in SIP-ALG. 本発明による一実施例のSIP信号変換方法を説明するための模式図であり、図5のステップ508の具体的な処理手順の一例を説明するためのフロー図である。It is a schematic diagram for demonstrating the SIP signal conversion method of one Example by this invention, and is a flowchart for demonstrating an example of the specific process sequence of step 508 of FIG. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、同一プライベート網の端末間でのSIP通信の経路を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows the path | route of SIP communication between the terminals of the same private network. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第1端末から第2端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図である。It is a schematic diagram for demonstrating the SIP signal conversion method of a present Example concretely, and is a sequence diagram at the time of transmitting a SIP signal (INVITE request) from the 1st terminal to the 2nd terminal. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第1端末が送信するSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal which a 1st terminal transmits. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第1SIP-ALG装置で変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted with the 1st SIP-ALG apparatus. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、SIPサーバで編集されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal edited with the SIP server. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALG装置で変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted with the 2nd SIP-ALG apparatus. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2端末から第1端末にSIP信号(200 OKレスポンス)を送信する際のシーケンス図である。It is a schematic diagram for demonstrating the SIP signal conversion method of a present Example concretely, and is a sequence diagram at the time of transmitting a SIP signal (200 OK response) from a 2nd terminal to a 1st terminal. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2端末が送信するSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal which a 2nd terminal transmits. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALG装置で変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted with the 2nd SIP-ALG apparatus. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、SIPサーバで編集されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal edited with the SIP server. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第1SIP-ALGで変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted by 1st SIP-ALG. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、異なるプライベート網の端末間でのSIP通信の経路を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows the path | route of SIP communication between the terminals of a different private network. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第4端末から第2端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図である。It is a schematic diagram for demonstrating the SIP signal conversion method of a present Example concretely, and is a sequence diagram at the time of transmitting a SIP signal (INVITE request) from the 4th terminal to the 2nd terminal. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第4端末が送信するSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal which a 4th terminal transmits. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第3SIP-ALG装置で変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted with the 3rd SIP-ALG apparatus. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、SIPサーバで編集されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal edited with the SIP server. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALG装置で変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted with the 2nd SIP-ALG apparatus. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、図24は第2端末から第4端末にSIP信号(200 OKレスポンス)を送信する際のシーケンス図である。FIG. 24 is a schematic diagram for specifically explaining the SIP signal conversion method of the present embodiment, and FIG. 24 is a sequence diagram when a SIP signal (200 OK response) is transmitted from the second terminal to the fourth terminal. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2端末が送信するSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal which a 2nd terminal transmits. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALG装置で変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted with the 2nd SIP-ALG apparatus. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、SIPサーバで編集されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal edited with the SIP server. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第3SIP-ALG装置で変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted with the 3rd SIP-ALG apparatus. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、グローバル網の端末とプライベート網の端末間でのSIP通信の経路を示す図である。It is a schematic diagram for demonstrating concretely the SIP signal conversion method of a present Example, and is a figure which shows the path | route of SIP communication between the terminal of a global network and the terminal of a private network. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第3端末から第2端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a sequence diagram at the time of transmitting a SIP signal (INVITE request) from the 3rd terminal to the 2nd terminal. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、SIPサーバで編集されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal edited with the SIP server. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALGで変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted by 2nd SIP-ALG. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2端末が送信するSIP信号(200 OKレスポンス)の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal (200 OK response) which a 2nd terminal transmits. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALGで変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted by 2nd SIP-ALG. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2端末から第3端末にSIP信号(INVITEリクエスト)を送信する際のシーケンス図である。It is a schematic diagram for demonstrating concretely the SIP signal conversion method of a present Example, and is a sequence diagram at the time of transmitting a SIP signal (INVITE request) from the 2nd terminal to the 3rd terminal. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2端末が送信するSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal which a 2nd terminal transmits. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALGで変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted by 2nd SIP-ALG. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第3端末が送信するSIP信号(200 OK)の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal (200 OK) which a 3rd terminal transmits. 本実施例のSIP信号変換方法を具体的に説明するための模式図であり、第2SIP-ALGで変換されたSIP信号の一例を示す図である。It is a schematic diagram for demonstrating specifically the SIP signal conversion method of a present Example, and is a figure which shows an example of the SIP signal converted by 2nd SIP-ALG.

符号の説明Explanation of symbols

1…第1プライベート網
101…第1NAT装置
102…第2NAT装置
103…第1端末
104…第2端末
2…第2プライベート網
201…第3NAT装置
202…第4端末
3…グローバル網
301…第3端末
302…SIPサーバ
401…第1SIP-ALG装置
402…第2SIP-ALG装置
403…第3SIP-ALG装置
40101…SIP信号送受信手段
40102…送信方向判定手段
40103…SDP変換手段
40103a…SDPフィールド変換手段
40103b…独自SIPヘッダ設定手段
40103c…SDP変換判定手段
40104…SIPヘッダ変換手段
40105…ネットワークアドレス管理手段
40106…NAT対応網識別情報管理手段

DESCRIPTION OF SYMBOLS 1 ... 1st private network 101 ... 1st NAT apparatus 102 ... 2nd NAT apparatus 103 ... 1st terminal 104 ... 2nd terminal 2 ... 2nd private network 201 ... 3rd NAT apparatus 202 ... 4th terminal 3 ... Global network 301 ... 3rd Terminal 302 ... SIP server 401 ... First SIP-ALG device 402 ... Second SIP-ALG device 403 ... Third SIP-ALG device 40101 ... SIP signal transmission / reception means 40102 ... Transmission direction determination means 40103 ... SDP conversion means 40103a ... SDP field conversion means 40103b ... Original SIP header setting means 40103c ... SDP conversion determination means 40104 ... SIP header conversion means 40105 ... Network address management means 40106 ... NAT-compatible network identification information management means

Claims (6)

2つ以上の端末および2つ以上のNAT(Network Address Translation)装置が収容された1つ以上のプライベート網が前記NAT装置によりグローバル網と接続されているネットワークで、前記プライベート網に収容されたSIP(Session Initiation Protocol)対応端末が前記グローバル網に収容されたSIPサーバを介して同一プライベート網のSIP対応端末、または前記グローバル網あるいは他のプライベート網に収容されたSIP対応端末との間でSIP通信を行うときに、前記NAT装置と連携してSIP信号のIPアドレスおよびポート番号を変換するSIP-ALG(SIP-Application Level Gateway)のSIP信号変換方法であって、
前記各NAT装置と前記NAT装置が収容されたプライベート網の対応関係を管理するステップ1と、
前記NAT装置から転送されたSIP信号がプライベート網からグローバル網に送信される信号であり、かつ、SDPによるセッション記述がある場合に、前記NAT装置と連携してSIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換するステップ2と、
前記SIP信号を転送したNAT装置が収容されたプライベート網の識別情報と、前記ステップ2で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして前記SIP信号に設定するステップ3と、
前記NAT装置と連携して前記SIP信号のSIPヘッダのIPアドレスおよびポート番号を変換するステップ4と、
前記NAT装置から転送されたSIP信号がグローバル網からプライベート網に送信される信号であり、かつ、前記SDPによるセッション記述がある場合に、前記独自SIPヘッダが設定されているか否か判定するステップ5と、
前記ステップ5で独自SIPヘッダが設定されていると判定された場合に、前記SIP信号を転送したNAT装置が収容されたプライベート網を特定し、前記独自SIPヘッダに記述されている前記プライベート網の識別情報と一致するか判定するステップ6と、
前記ステップ6で一致すると判定された場合に、前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を、前記独自SIPヘッダに記述されているIPアドレスおよびメディア受信用ポート番号に変換するステップ7とを有することを特徴とするSIP信号変換方法。
A SIP network accommodated in the private network, in which one or more private networks accommodating two or more terminals and two or more NAT (Network Address Translation) devices are connected to the global network by the NAT devices. (Session Initiation Protocol) SIP communication between a SIP compatible terminal in the same private network or a SIP compatible terminal accommodated in the global network or another private network via a SIP server accommodated in the global network SIP-ALG (SIP-Application Level Gateway) SIP signal conversion method for converting the IP address and port number of a SIP signal in cooperation with the NAT device,
Managing a correspondence relationship between each NAT device and a private network in which the NAT device is accommodated; and
When the SIP signal transferred from the NAT device is a signal transmitted from the private network to the global network and there is a session description by SDP, the IP of the session description by SDP of the SIP signal in cooperation with the NAT device Step 2 for converting the address and the media reception port number;
The identification information of the private network in which the NAT device that transferred the SIP signal is accommodated, and the IP address and media reception port number of the session description by the SDP before conversion in the step 2 are used as the unique SIP header in the SIP signal. Step 3 to set,
Step 4 of converting the IP address and port number of the SIP header of the SIP signal in cooperation with the NAT device;
Step 5 for determining whether or not the unique SIP header is set when the SIP signal transferred from the NAT device is a signal transmitted from the global network to the private network and there is a session description by the SDP. When,
If it is determined in step 5 that a unique SIP header has been set, the private network in which the NAT device that transferred the SIP signal is accommodated is identified, and the private network described in the unique SIP header is identified. Step 6 for determining whether it matches the identification information;
If it is determined in step 6 that they match, the IP address and media reception port number in the session description by SDP of the SIP signal are converted into the IP address and media reception port number described in the unique SIP header. And a SIP signal conversion method comprising:
前記ステップ3は、前記NAT装置が収容されたプライベート網の識別情報と、前記ステップ3で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号に加え、前記ステップ3で変換した後の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして設定し、
前記ステップ7は、前記ステップ6で一致すると判定され、かつ、前記SIP信号の独自SIPヘッダに記述された変換後のIPアドレスおよびメディア受信用ポート番号が前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号と一致する場合にのみ、前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換することを特徴とする請求項1に記載のSIP信号変換方法。
The step 3 is converted in the step 3 in addition to the identification information of the private network in which the NAT device is accommodated, the IP address and the media reception port number of the session description by the SDP before the conversion in the step 3. Set the IP address and media reception port number of the session description by SDP later as a unique SIP header,
Step 7 is determined to match in Step 6, and the IP address after conversion described in the unique SIP header of the SIP signal and the port number for media reception are the IP address of the session description by SDP of the SIP signal. 2. The SIP signal conversion method according to claim 1, wherein the IP address and the media reception port number of the session description by the SDP are converted only when they coincide with the media reception port number.
2つ以上の端末および2つ以上のNAT(Network Address Translation)装置が収容された1つ以上のプライベート網が前記NAT装置によりグローバル網と接続されているネットワークで、前記プライベート網に収容されたSIP(Session Initiation Protocol)対応端末が前記グローバル網に収容されたSIPサーバを介して同一プライベート網のSIP対応端末、または前記グローバル網あるいは他のプライベート網に収容されたSIP対応端末との間でSIP通信を行うときに、前記NAT装置と連携してSIP信号のIPアドレスおよびポート番号を変換するSIP-ALG(SIP-Application Level Gateway)装置であって、
前記各NAT装置が管理するプライベート網側のIPアドレスとグローバル網側のIPアドレスの対応関係をNAT装置毎にまとめて管理するネットワークアドレス管理手段と、
前記各NAT装置と前記NAT装置が収容されたプライベート網の対応関係を管理するNAT対応網識別情報管理手段と、
前記NAT装置から転送されたSIP信号がプライベート網からグローバル網に送信される信号であり、かつ、SDPによるセッション記述がある場合に、NAT対応網識別情報管理手段で管理する対応関係に基づいて前記NAT装置が収容されたプライベート網を特定する手段と、
前記NAT装置と連携してSIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換するSDPフィールド変換手段と、
前記特定したプライベート網の識別情報と、前記SDPフィールド変換手段で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして前記SIP信号に設定する独自SIPヘッダ設定手段と、
前記NAT装置と連携して前記SIP信号のSIPヘッダのIPアドレスおよびポート番号を変換するSIPヘッダ変換手段と、
前記NAT装置から転送されたSIP信号がグローバル網からプライベート網に送信される信号であり、かつ、前記SDPによるセッション記述があり、さらに、前記独自SIPヘッダが設定されており、かつ、前記NAT装置が収容されたプライベート網の識別情報が、前記独自SIPヘッダに記述されている前記プライベート網の識別情報と一致する場合に、前記SDPフィールド変換手段に前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を、前記独自SIPヘッダに記述されているIPアドレスおよびメディア受信用ポート番号に変換させる変換判定手段とを備えることを特徴とするSIP-ALG装置。
A SIP network accommodated in the private network, in which one or more private networks accommodating two or more terminals and two or more NAT (Network Address Translation) devices are connected to the global network by the NAT devices. SIP communication between a (Session Initiation Protocol) compatible terminal and a SIP compatible terminal in the same private network or a SIP compatible terminal accommodated in the global network or another private network via a SIP server accommodated in the global network A SIP-ALG (SIP-Application Level Gateway) device that converts the IP address and port number of a SIP signal in cooperation with the NAT device,
Network address management means for managing the correspondence between the IP address on the private network side and the IP address on the global network side managed by each NAT device collectively for each NAT device;
NAT-compatible network identification information management means for managing the correspondence between each NAT device and the private network in which the NAT device is accommodated;
When the SIP signal transferred from the NAT device is a signal transmitted from the private network to the global network, and there is a session description by SDP, based on the correspondence managed by the NAT-compatible network identification information management means, Means for identifying the private network in which the NAT device is accommodated;
SDP field conversion means for converting the IP address and media reception port number of the session description by SDP of the SIP signal in cooperation with the NAT device;
Unique SIP header setting means for setting the identification information of the specified private network and the IP address and media reception port number of the session description by the SDP before conversion by the SDP field conversion means as the unique SIP header in the SIP signal When,
SIP header conversion means for converting the IP address and port number of the SIP header of the SIP signal in cooperation with the NAT device;
The SIP signal transferred from the NAT device is a signal transmitted from a global network to a private network, and there is a session description by the SDP, the unique SIP header is set, and the NAT device When the identification information of the private network in which the private network is stored matches the identification information of the private network described in the unique SIP header, the SDP field conversion means sends the IP address of the session description by SDP of the SIP signal and A SIP-ALG apparatus comprising: a conversion determination means for converting a media reception port number into an IP address and a media reception port number described in the unique SIP header.
前記独自SIPヘッダ設定手段は、プライベート網の識別情報と、前記ステップ3で変換する前の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号に加え、前記ステップ3で変換した後の前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を独自SIPヘッダとして設定し、
前記変換判定手段は、前記各判定条件を満たすとともに、前記SIP信号の独自SIPヘッダに記述された変換後のIPアドレスおよびメディア受信用ポート番号が前記SIP信号のSDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号と一致する場合にのみ、前記SDPフィールド変換手段に前記SDPによるセッション記述のIPアドレスおよびメディア受信用ポート番号を変換させることを特徴とする請求項3に記載のSIP-ALG装置。
The unique SIP header setting means adds the private network identification information, the IP address and the media reception port number of the session description by the SDP before the conversion at the step 3, and the SDP after the conversion at the step 3. Set the session description IP address and media reception port number as a unique SIP header,
The conversion determination means satisfies the determination conditions, and the IP address and media reception port number after conversion described in the unique SIP header of the SIP signal are the IP address and medium of the session description by SDP of the SIP signal. 4. The SIP-ALG device according to claim 3, wherein the SIP-ALG device converts the IP address and media reception port number of the session description by the SDP only when the reception port number matches.
前記請求項1または請求項2に記載の各ステップの処理を、コンピュータに実行させるSIP信号変換プログラム。   A SIP signal conversion program for causing a computer to execute the processing of each step according to claim 1 or 2. 前記請求項5に記載のSIP信号変換プログラムが、前記コンピュータによる読み取りが可能な状態で記録された記録媒体。

6. A recording medium on which the SIP signal conversion program according to claim 5 is recorded in a state that can be read by the computer.

JP2004181340A 2004-06-18 2004-06-18 SIP signal conversion method, SIP-ALG device, SIP signal conversion program, and recording medium Expired - Lifetime JP4191099B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004181340A JP4191099B2 (en) 2004-06-18 2004-06-18 SIP signal conversion method, SIP-ALG device, SIP signal conversion program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004181340A JP4191099B2 (en) 2004-06-18 2004-06-18 SIP signal conversion method, SIP-ALG device, SIP signal conversion program, and recording medium

Publications (2)

Publication Number Publication Date
JP2006005754A true JP2006005754A (en) 2006-01-05
JP4191099B2 JP4191099B2 (en) 2008-12-03

Family

ID=35773745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004181340A Expired - Lifetime JP4191099B2 (en) 2004-06-18 2004-06-18 SIP signal conversion method, SIP-ALG device, SIP signal conversion program, and recording medium

Country Status (1)

Country Link
JP (1) JP4191099B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007318707A (en) * 2006-04-26 2007-12-06 Nippon Telegr & Teleph Corp <Ntt> Interconnection technique of ip communication
JP2009239677A (en) * 2008-03-27 2009-10-15 Nippon Telegr & Teleph Corp <Ntt> Sip communication system including multiple alg devices, sip communication method, and program for sip communication
JP2012511846A (en) * 2008-12-10 2012-05-24 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Token-based correlation of control sessions for data session policy and charging control via NAT
US8422503B2 (en) 2008-08-19 2013-04-16 Oki Electric Industry Co., Ltd. Address translator using address translation information in header area on network layer level and a method therefor
JP2014039135A (en) * 2012-08-15 2014-02-27 Nec Corp Napt device, communication system, and port number granting method used for the same, and program for the same
US8711877B2 (en) 2008-11-17 2014-04-29 Oki Electric Industry Co., Ltd. Apparatus and method for connection control with media negotiation successful on different media formats
JP2016086232A (en) * 2014-10-23 2016-05-19 西日本電信電話株式会社 Cloud switching system, gateway device and gateway program
CN109688124A (en) * 2018-12-20 2019-04-26 高新兴国迈科技有限公司 A kind of method for interchanging data based on video boundaries
CN115002081A (en) * 2022-05-30 2022-09-02 重庆紫光华山智安科技有限公司 Media stream transmission method and related device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4621183B2 (en) * 2006-04-26 2011-01-26 日本電信電話株式会社 IP communication network interconnection system and IP communication network interconnection method
JP2007318707A (en) * 2006-04-26 2007-12-06 Nippon Telegr & Teleph Corp <Ntt> Interconnection technique of ip communication
JP2009239677A (en) * 2008-03-27 2009-10-15 Nippon Telegr & Teleph Corp <Ntt> Sip communication system including multiple alg devices, sip communication method, and program for sip communication
US8422503B2 (en) 2008-08-19 2013-04-16 Oki Electric Industry Co., Ltd. Address translator using address translation information in header area on network layer level and a method therefor
US8711877B2 (en) 2008-11-17 2014-04-29 Oki Electric Industry Co., Ltd. Apparatus and method for connection control with media negotiation successful on different media formats
JP2012511846A (en) * 2008-12-10 2012-05-24 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Token-based correlation of control sessions for data session policy and charging control via NAT
US9106541B2 (en) 2008-12-10 2015-08-11 Telefonaktiebolaget L M Ericsson (Publ) Token-based correlation of control sessions for policy and charging control of a data session through a NAT
US9661082B2 (en) 2008-12-10 2017-05-23 Telefonaktiebolaget L M Ericsson (Publ) Token related apparatuses for deep packet inspection and policy handling
JP2014039135A (en) * 2012-08-15 2014-02-27 Nec Corp Napt device, communication system, and port number granting method used for the same, and program for the same
JP2016086232A (en) * 2014-10-23 2016-05-19 西日本電信電話株式会社 Cloud switching system, gateway device and gateway program
CN109688124A (en) * 2018-12-20 2019-04-26 高新兴国迈科技有限公司 A kind of method for interchanging data based on video boundaries
CN109688124B (en) * 2018-12-20 2021-08-24 高新兴国迈科技有限公司 Data exchange method based on video boundary
CN115002081A (en) * 2022-05-30 2022-09-02 重庆紫光华山智安科技有限公司 Media stream transmission method and related device
CN115002081B (en) * 2022-05-30 2023-12-26 重庆紫光华山智安科技有限公司 Media stream transmission method and related device

Also Published As

Publication number Publication date
JP4191099B2 (en) 2008-12-03

Similar Documents

Publication Publication Date Title
JP4450712B2 (en) Network system and gateway
JP4818428B2 (en) COMMUNICATION SYSTEM, TELEPHONE EXCHANGE DEVICE, AND CONTROL METHOD
JP5848478B2 (en) Split network address translation
JP4961368B2 (en) Terminal device, NAT traversal method, and program
JP5101621B2 (en) Mobile terminal device, relay device, and mobile communication system
JP2007049415A (en) Voice data conversion apparatus, network system, and control method and program
TW201415936A (en) End-to-end communication in sensor network
JP4191099B2 (en) SIP signal conversion method, SIP-ALG device, SIP signal conversion program, and recording medium
CN104125145A (en) Web browser based communication method, web browser based communication equipment and web browser based communication system
WO2010060304A1 (en) Data communication system, router, data transmission and mobility management method
CN110460641A (en) Data transmission method, apparatus and system
JP6386166B2 (en) Translation method and apparatus between IPv4 and IPv6
JP3830037B2 (en) Session transfer system and method
JP2008258917A (en) Identical nat subordinate communication control system, nat device, identical nat subordinate communication control method, and program
CN104518959B (en) A kind of method and device of communication between devices
CN102104634A (en) Method for communicating between LISP site and non-LISP site and apparatus and system thereof
CN101572729B (en) Processing method of node information of virtual private network, interrelated equipment and system
JP2008205676A (en) Information processing system, information processor, information processing method and information processing program
JP2024517716A (en) Improved use of IP networks for routing cellular data packets - Patents.com
JP3980562B2 (en) SIP communication control device
CN102811263A (en) Internet protocol version 6 (IPv6)-based communication method and system for mobile terminal and mobile terminal
JP2017098738A (en) Control device, communication system, control method, and program
JP3920791B2 (en) Call connection relay system, call connection relay device and program thereof, call connection request information conversion device and program thereof
JP5135257B2 (en) Method and system for establishing a plurality of sessions of different routes by home gateway and session control server
JP4307980B2 (en) Data transfer method, communication system and node in distributed environment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060713

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080908

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080916

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080917

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110926

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4191099

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120926

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130926

Year of fee payment: 5

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term