JP2006211601A - Address translation device - Google Patents
Address translation device Download PDFInfo
- Publication number
- JP2006211601A JP2006211601A JP2005024451A JP2005024451A JP2006211601A JP 2006211601 A JP2006211601 A JP 2006211601A JP 2005024451 A JP2005024451 A JP 2005024451A JP 2005024451 A JP2005024451 A JP 2005024451A JP 2006211601 A JP2006211601 A JP 2006211601A
- Authority
- JP
- Japan
- Prior art keywords
- sip
- packet
- address
- unit
- header field
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
本発明は、LANとの通信及びWANとの通信を行う通信装置に関し、特にLAN側とWAN側の通信を中継するためのアドレス変換装置に関するものである。 The present invention relates to a communication device that performs communication with a LAN and communication with a WAN, and particularly relates to an address translation device for relaying communication between a LAN side and a WAN side.
従来より存在するNAT(RFC2663)は、一つのグローバルアドレスと高々一つのローカルIPアドレスとの変換を行うための技術である。一方、NAPT(RFC2663)はアドレス変換時の識別にポート番号を使用することで、一つのグローバルIPアドレスに対して複数のローカルIPアドレスとの対応付けを可能とした技術である。つまり、WAN側の一つのポート番号に対して一つのローカルIPアドレスとポート番号が対応する。 Conventional NAT (RFC2663) is a technique for performing conversion between one global address and at most one local IP address. On the other hand, NAPT (RFC2663) is a technology that enables a single global IP address to be associated with a plurality of local IP addresses by using a port number for identification at the time of address translation. That is, one local IP address and port number correspond to one port number on the WAN side.
VoIPのような、WAN側からLAN側へセッションを開始することが可能なアプリケーションにおいて従来のNATを使用すると、WAN側から同時にセッションを確立することができるLAN側装置の台数は1台のみである。 When conventional NAT is used in an application such as VoIP that can start a session from the WAN side to the LAN side, the number of LAN side devices that can simultaneously establish a session from the WAN side is only one. .
一方NAPTを使用した場合、予めWAN側ポート番号とLAN側のローカルIPアドレスおよびポート番号との関係を登録しておくことで、複数のWAN側ポートを使用すれば、WAN側から同時に複数台のLAN側装置とセッションを確立することができる。
しかしWAN側の装置は、LAN側装置へのセッションを開始するにあたり、LAN側装置へ接続するためのWAN側ポート番号を予め知っておく必要がある。また、通信を行う予定がある全てのWAN側ポートをあけておく必要があるため、セキュリティーの上で問題がある。 However, when starting a session to the LAN side device, the WAN side device needs to know in advance the WAN side port number for connection to the LAN side device. In addition, since it is necessary to open all WAN ports scheduled for communication, there is a problem in terms of security.
そこで、本発明は上述した課題を解決するため、外部機器が一つの外部ポートを使用して同時に複数台のLAN側装置とセッションを確立ことができるアドレス変換装置を提供することを目的とする。 SUMMARY OF THE INVENTION In order to solve the above-described problems, an object of the present invention is to provide an address translation device that allows an external device to simultaneously establish a session with a plurality of LAN-side devices using a single external port.
本発明は上述した課題を解決するため、第1のネットワークとの通信を行う第1の通信部と、第2のネットワークとの通信を行う第2の通信部と、受信したパケットが前記第2の通信部から送信されたSIPのリクエストパケットであるかあるいはそれ以外のSIPパケットであるかあるいはSIPパケットではないかを判定するSIP判定部と、指定したSIPのmessage-headerをパケットから取得するヘッダフィールド取得部と、URIとIPアドレスとを組として持つアドレス変換テーブルと、前記第2の通信部から受信したSIPのリクエストパケットのペイロードに含まれるToヘッダフィールドのURIに従いIPヘッダのdestination IPアドレスを書き換えるIPアドレス変換部とを具備したものである。 In order to solve the above-described problems, the present invention provides a first communication unit that performs communication with a first network, a second communication unit that performs communication with a second network, and the received packet is the second communication unit. A SIP determination unit for determining whether the packet is a SIP request packet transmitted from the communication unit of the other, a SIP packet other than that, or a SIP packet, and a header for acquiring the designated SIP message-header from the packet The destination IP address of the IP header is determined according to the URI of the To header field included in the payload of the SIP request packet received from the second communication unit, the address conversion table having the field acquisition unit, the URI and the IP address as a pair. And an IP address conversion unit to be rewritten.
また本発明は上述したような課題を解決するため、前記受信パケットからsource IPアドレスを取得するIPアドレス取得部と、前記SIPパケットのメソッドを抜き出すメソッド取得部と、前記メソッドがregisterであった場合に、IPアドレスとしてSIPパケットのsource IPアドレスあるいはSIPパケットのContactヘッダフィールドのIPアドレスと、前記SIPパケットのToヘッダフィールドのURIとの組をアドレス変換テーブルへ追加する変換テーブル登録部と、1のアドレス変換装置のIPアドレス変換部の代わりに前記第1の通信部からSIPパケットを受信した場合に変換テーブル登録部へパケット転送するIPアドレス変換部とを具備したものである。 In order to solve the above-described problem, the present invention provides an IP address acquisition unit that acquires a source IP address from the received packet, a method acquisition unit that extracts a method of the SIP packet, and the method is register A translation table registration unit for adding a pair of the source IP address of the SIP packet or the IP address of the Contact header field of the SIP packet and the URI of the To header field of the SIP packet as an IP address to the address translation table; Instead of the IP address conversion unit of the address conversion device, an IP address conversion unit that transfers a packet to the conversion table registration unit when an SIP packet is received from the first communication unit is provided.
外部機器が一つの外部ポートを使用して同時に複数台のLAN側装置とセッションを確立ことができる。 An external device can establish a session with a plurality of LAN side devices simultaneously using one external port.
以下に本発明の一実施形態について図面を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.
図1は、本発明の一実施形態を示すアドレス変換装置100のシステム構成を示すブロック図である。
FIG. 1 is a block diagram showing a system configuration of an
図1に示すLAN側通信部101はプライベートネットワーク102との接続口であり、プライベートネットワーク102上の機器からパケットを受信し、アドレス変換装置100のIPアドレス変換部103へ出力する動作と、本アドレス変換装置100のIPアドレス変換部103から入力されたパケットをプライベートネットワーク102上の機器へ送信する動作を実行する。
The LAN
なお本実施形態では、LAN側のプライベートネットワーク102上で使用されるIPアドレスをローカルIPアドレスと呼ぶ。
In the present embodiment, an IP address used on the
WAN側通信部104はインターネットとの接続口であり、インターネットからパケットを受信し、本アドレス変換装置100のIPアドレス変換部103へ出力する動作と、IPアドレス変換部103から入力されたパケットをインターネット上の機器へ送信する動作を実施する。
The WAN-
なお実施形態では、インターネット上で使用されるIPアドレスをグローバルIPアドレスと呼ぶ。 In the embodiment, an IP address used on the Internet is referred to as a global IP address.
SIP判定部105は入力されたパケットのペイロードを確認し、パケットがWAN側からのSIPリクエストパケットであるか、他のSIPパケットであるかを判定する。どちらでもない場合はSIPパケットではないと判定する。
The
判定後、判定結果をIPアドレス変換部103出力する。SIPパケットの判定は、パケットのペイロードに含まれるstart-lineに"SIP"の文字を含むか否かで判断する。SIPリクエストパケットであるかの判定は、SIPパケットのIPヘッダのdestinationポート番号が5060であるかどうかで判断する。SIPリクエストパケットを5060番ポートで判断するのは、5060番がSIPのwell knownポート番号であり、通常SIPのパケットの宛先ポート番号は5060番になることと、LAN側からの送信の結果得られたSIPの応答パケットであれば、宛先ポート番号はNAPTにより5060番ポート以外になると考えられるためである。
After the determination, the determination result is output to the IP
ヘッダフィールド取得部106は、パケットとSIPのmessage-headerの種類とを入力として受付け、指定されたmessage-headerをパケットから取得し、取得したmessage-headerを出力する。
The header
ここで、上述したSIPパケットとは、SIPメッセージを含むIPパケットを指す。SIPメッセージは、start-lineとmessage-headerとmessage-bodyとから成る。start-lineはStatus-lineまたはRequest-lineから成る。Request-lineはリクエストの種類を表すメソッドを含む。 Here, the above-described SIP packet refers to an IP packet including a SIP message. The SIP message consists of a start-line, a message-header, and a message-body. start-line consists of Status-line or Request-line. Request-line includes a method that represents the type of request.
メソッドの種類には、セッションをセットアップするためのinviteや、コンタクトインフォメーションを登録するためのregister等がある。message-headerの種類には、SIPメッセージの論理的な宛先を含むToヘッダフィールドや、SIPのリクエストを開始した論理的なアイデンティティーを含むFromヘッダフィールドや、SIPのダイアログを識別するためのCall-IDや、SIPメッセージを送信した機器のコンタクト先を示すContactヘッダフィールド等がある。Fromヘッダフィールド、Toヘッダフィールド、Contactヘッダフィールドは、URIを含む。 Method types include invite for setting up a session, register for registering contact information, and the like. The message-header type includes a To header field containing the logical destination of the SIP message, a From header field containing the logical identity that initiated the SIP request, and a Call- for identifying the SIP dialog. There are an ID, a Contact header field indicating a contact destination of a device that has transmitted the SIP message, and the like. The From header field, To header field, and Contact header field include a URI.
SIPリクエストパケットとは、SIPメッセージを含むIPパケットの中で、WAN側の機器からLAN側の機器へのリクエストを行うパケットを指す。 The SIP request packet refers to a packet for making a request from a WAN side device to a LAN side device among IP packets including a SIP message.
アドレス変換テーブル107は、URIとIPアドレスとを組として持つテーブルである。図2はこのアドレス変換テーブルの一例を示したものである。図から明らかなような各URIについてそれぞれIPアドレスが対応しており、複数の組を記憶しているテーブルである。 The address conversion table 107 is a table having a URI and an IP address as a set. FIG. 2 shows an example of this address conversion table. As is apparent from the figure, each URI corresponds to an IP address, and is a table storing a plurality of sets.
IPアドレス変換部103は、NAPT(RFC2663)の機能と、先行技術(特開2003−174466号)等で実現されているパケットのペイロードに含まれるSIPメッセージ中のIPアドレスを変換する機能とに加え、SIPリクエストパケットをグローバルIPアドレスからローカルIPアドレスへ変換する際に、SIPリクエストパケットのペイロードに含まれるSIPのmessage-headerを参照して変換後のローカルIPアドレスを決める機能を有する。
In addition to the NAPT (RFC2663) function and the function of converting the IP address in the SIP message included in the packet payload implemented by the prior art (Japanese Patent Laid-Open No. 2003-174466), the IP
次に、このIPアドレス変換部103の詳細な構成について図3を用いて説明する。図3に示すようにIPアドレス変換部103は、NAPT108とNAPT変換テーブル109とメッセージ書換え部110とアドレス変換コントロール部111とIPヘッダ書換え部112とを構成要素として含む。
Next, a detailed configuration of the IP
NAPT108は、アドレスとポート番号を変換する機能を有する。NAPTの機能の詳細は、RFC2663等の文献で具体的に示されている。NAPT108は、入力されたパケットがLAN側からのパケットであれば、パケットのIPヘッダに含まれるsourceアドレスをローカルIPアドレスからグローバルIPアドレスに変換し、sourceポート番号を使用されていないポート番号に変換する。
The NAPT 108 has a function of converting an address and a port number. Details of the function of NAPT are specifically shown in documents such as RFC2663. If the input packet is a packet from the LAN side, the
変換後、変換した情報をNAPT変換テーブル109に登録する。NAPT変換テーブル109には、変換後のポート番号と変換前のローカルIPアドレスおよびポート番号との対の情報が記憶されている。NAPT変換テーブル109への情報登録後、アドレス変換コントロール部111へ変換後のパケットを出力する。
After the conversion, the converted information is registered in the NAPT conversion table 109. The NAPT conversion table 109 stores information on a pair of a port number after conversion and a local IP address and port number before conversion. After registering information in the NAPT conversion table 109, the converted packet is output to the address
一方で、入力されたパケットがWAN側からのパケットであれば、パケットのIPヘッダに含まれるdestinationポート番号でNAPT変換テーブルを検索し、検索の結果得たIPアドレスとポート番号とによりIPヘッダのdestinationアドレスとdestinationポート番号を変換する。変換後のパケットをアドレス変換コントロール部111へパケットを出力する。NAPT変換テーブル109に変換情報がない場合は、アドレス変換コントロール部111へエラーを出力する。
On the other hand, if the input packet is a packet from the WAN side, the NAPT conversion table is searched with the destination port number included in the IP header of the packet, and the IP header of the IP header is obtained from the IP address and port number obtained as a result of the search. Convert destination address and destination port number. The converted packet is output to the address
メッセージ書換え部110は、先行技術の特開2003-174466号等に開示されているようなSIPパケットのmessage-headerとmessage-bodyを書換える機能を持つ。メッセージ書換え部110は、SIPパケットとIPアドレスを入力として受付け、入力されたSIPパケットのmessage-headerとmessage-bodyの中のIPアドレスを入力されたIPアドレスで書換える。そして書換え後のSIPパケットをアドレス変換コントロール部111へ出力する。
The
IPヘッダ書換え部112は、IPアドレスとSIPリクエストパケットを入力として受付け、SIPリクエストパケットのIPヘッダに含まれるdestinationアドレスを入力されたIPアドレスに変換する。変換後のSIPリクエストパケットをアドレス変換コントロール部111へ出力する。
The IP
アドレス変換コントロール部111は、WAN側通信部104からパケットが入力された場合、入力されたパケットをSIP判定部105へ出力する。出力した結果、パケットがSIPリクエストパケットでない場合は、NAPT108へパケットを出力することによりIPヘッダの変換を行う。NAPT108からエラーが帰ってきた場合は、WAN側通信部104へエラーを出力する。
When a packet is input from the WAN
SIPパケットでない場合は、変換後のパケットをLAN側通信部101へ出力する。SIPパケットであれば、変換後のパケットとNAPT108により変換された後のdestination IPアドレスとをメッセージ書換え部110へ出力することにより、SIPパケットのペイロードを書換え、書換え後のパケットをLAN側通信部101へ出力する。
If the packet is not an SIP packet, the converted packet is output to the LAN
SIP判定部の結果、SIPリクエストパケットであった場合は、SIPリクエストパケットとToをヘッダフィールド取得部106へ送信することによりSIPリクエストパケットに含まれるToヘッダフィールドを得る。アドレス変換コントロール部111は、取得したToヘッダフィールドのURIをキーとしてアドレス変換テーブルを検索し、組となるIPアドレスを得る。
If the result of the SIP determination unit is a SIP request packet, the To request field included in the SIP request packet is obtained by transmitting the SIP request packet and To to the header
IPアドレス取得後、IPヘッダ書換え部112により、SIPリクエストパケットのIPヘッダに含まれるdestinationアドレスを取得したIPアドレスで書換える。書換え後、書換えたSIPリクエストパケットをメッセージ書換え部110へ送信することにより、SIPリクエストパケットのペイロードに含まれるローカルIPアドレスをアドレス変換テーブル107から取得したIPアドレスで書換える。書換えたSIPリクエストパケットをLAN側通信部101へ出力する。
After acquiring the IP address, the IP
LAN側からアドレス変換コントロール部111へパケットが入力された場合は、アドレス変換コントロール部11は、入力されたパケットをNAPT108に出力することによりIPヘッダの変換を行う。変換後、SIP判定部105へパケットを送信し、SIPパケットであればメッセージ書換え部110によりSIPパケットのペイロードに含まれるローカルIPアドレスをグローバルIPアドレスに変換する。アドレス変換コントロール部111は、変換後のパケットをLAN側通信部101へ出力する。
When a packet is input from the LAN side to the address
次に上述したIPアドレス変換部103の構成に基づいた処理動作について説明する。
Next, a processing operation based on the configuration of the IP
IPアドレス変換部103は、パケットがWAN側通信部104から入力された場合、入力されたパケットをSIP判定部105へ送信し、判定の結果SIPパケットでない場合は、NAPT108の機能により、IPヘッダのdestinationアドレスとdestinationポート番号を書換える。書換えに失敗した場合はWAN側通信部104へエラーを送信する。成功した場合は、LAN側通信部101へ書換え後のSIPパケットを送信する。
When the packet is input from the WAN
判定の結果SIPパケットではあるがSIPリクエストパケットではない場合は、NAPT108の機能により、IPヘッダのdestinationアドレスとdestinationポート番号を書換え、SIPパケット中のSIPのmessage-headerに含まれるIPアドレスとmessage-bodyに含まれるIPアドレスとを書換える。書換え後LAN側通信部101へ変換後のSIPパケットを送信する。
If it is determined that the packet is a SIP packet but not a SIP request packet, the destination address and destination port number of the IP header are rewritten by the function of the
判定の結果、SIPリクエストパケットである場合は、SIPリクエストパケットとmessage-headerの種類であるToとをヘッダフィールド取得部106へ送信することにより、入力パケットに含まれるToヘッダフィールドを取得する。SIPのToヘッダフィールドには、SIPメッセージの論理的な宛先としてURIを含む。ここでいうURI(Uniform Resource Identifier)はSIP URIやSIPS URIやtel URL等、SIPで宛先を表すために使用されるURI全般を指す。
As a result of the determination, if it is a SIP request packet, the To header field included in the input packet is acquired by transmitting the SIP request packet and the message-header type To to the header
IPアドレス変換部103は、Toヘッダフィールド取得後、Toヘッダフィールドに含まれるURIをキーとして、アドレス変換テーブル107からIPアドレスを取得する。取得したIPアドレスにより、SIPリクエストパケットのIPヘッダのdestinationアドレスを変換する。destinationポート番号は変更しない。書換え後、先行技術に従いSIPリクエストパケット中のSIPのmessage-headerに含まれるIPアドレスとmessage-bodyに含まれるIPアドレスとをアドレス変換テーブル107から取得したIPアドレスで書換える。書換え後LAN側通信部101へ変換後のSIPリクエストパケットを送信する。
After acquiring the To header field, the IP
パケットがLAN側から入力された場合、通常のNAPT108の動作に従いパケットのIPヘッダに含まれるsourceアドレスとsourceポート番号を書換える。書換え後IPアドレス変換部103はSIP判定部105によりパケットを判定し、判定の結果SIPパケットでなければSIPパケットをWAN側通信部104へ送信する。SIPパケットであれば、SIPパケット中のSIPのmessage-headerとmessage-bodyとを書換えWAN側通信部104へ送信する。
When a packet is input from the LAN side, the source address and source port number included in the IP header of the packet are rewritten according to the normal operation of the
次に、図4を用いて上述した構成に基づく本発明の実施形態についてさらに具体的に説明する。 Next, the embodiment of the present invention based on the above-described configuration will be described more specifically with reference to FIG.
図4は、本実施形態のアドレス変換装置100がLAN側通信部およびWAN側通信部を介して、ネットワークに接続された状態を示しており、SIP UA t1114はプライベートネットワークに接続されている機器であり、SIP UA xyz115はインターネットに接続されている機器である。
FIG. 4 shows a state in which the
まずSIP UA xyz115がSIP UA t1114にSIP inviteメッセージを送信したとする(図4の (1))。この送信するSIPリクエストパケットのdestination IPアドレスは200.100.0.1であり、ポート番号はSIPのwell knownポート番号である5060である。また、SIPパケットのペイロードに含まれるSIPのmessage-headerのToヘッダフィールドにはSIP UA t1のURI(SIP:t1@in.com)を含む。 First, it is assumed that the SIP UA xyz 115 transmits a SIP invite message to the SIP UA t1114 ((1) in FIG. 4). The destination IP address of the SIP request packet to be transmitted is 200.100.0.1, and the port number is 5060, which is a well known port number of SIP. The SIP message-header To header field included in the payload of the SIP packet includes the URI of SIP UA t1 (SIP: t1@in.com).
本アドレス変換装置100は、WAN側からのパケットをWAN側通信部104で受付ける。WAN側通信部104にSIPリクエストパケットが入力されると、WAN側通信部104は入力されたSIPリクエストパケットをIPアドレス変換部103へ出力する。
In the
IPアドレス変換部103は、SIP判定部105によりSIPリクエストパケットであると判定すると、SIPリクエストパケットと取得したいmessage-headerの種類Toとをヘッダフィールド取得部106へ送信し、結果としてSIPリクエストパケットのペイロードに含まれるSIPのToヘッダフィールドを取得する。取得後、取得したToヘッダフィールドに含まれるURI(SIP:t1@in.com )をキーとしてアドレス変換テーブル107を検索し、組となるIPアドレス(192.168.0.1)を取得する。
When the
ここで、アドレス変換テーブル107には予めURIとIPアドレスの組が書かれているものとする。アドレス変換テーブル107への追加は、本発明装置がユーザ入力部を持つことで、ユーザが行っても良い。取得後、SIPリクエストパケットのIPヘッダのdestinationアドレスをグローバルIPアドレス(200.100.0.1)から取得したIPアドレス(192.168.0.1)へ変換する。 Here, it is assumed that a set of URI and IP address is written in the address conversion table 107 in advance. The addition to the address conversion table 107 may be performed by the user by having the user input unit of the device of the present invention. After acquisition, the destination address in the IP header of the SIP request packet is converted from the global IP address (200.100.0.1) to the acquired IP address (192.168.0.1).
変換後、SIPリクエストパケットのペイロードに含まれるIPアドレスをテーブルから取得したIPアドレスで置換え、置換え後のSIPリクエストパケットをLAN側通信部101へ出力する。LAN側通信部101は受信したSIPリクエストパケットをプライベートネットワークへ送信する。送信するSIPリクエストパケットのdestination IPアドレスは192.168.0.1"であり、destinationポート番号は"5060"である(図4の (2))。
After the conversion, the IP address included in the payload of the SIP request packet is replaced with the IP address obtained from the table, and the replaced SIP request packet is output to the LAN
SIP UA t1114がSIP UA xyz115へSIP OKメッセージを返信する場合(図4の(3))は、LAN側通信部101がSIPパケットを受付ける。LAN側通信部101は、SIPパケットをIPアドレス変換部103へ送信する。IPアドレス変換部103は、NAPT108の機能によりSIPパケットのIPヘッダのsourceアドレスとsourceポート番号を書換えるとともに、先行技術の方法でSIPパケットのペイロードを書換える。書換え後、ISPパケットをWAN側通信部104へ出力する。WAN側通信部は受信したSIPパケットをインターネットへ送信する(図4の (4))。
When the SIP UA t1114 returns a SIP OK message to the SIP UA xyz 115 ((3) in FIG. 4), the LAN
次に、図5を用いて、SIP UA xyzがSIP UA t1とSIP UA t2へ同時にSIP inviteメッセージを送信した例について説明する。 Next, an example in which SIP UA xyz transmits a SIP invite message to SIP UA t1 and SIP UA t2 at the same time will be described with reference to FIG.
図4で説明したとおり、SIP UA t1114が送信するSIPリクエストパケットは、destinationアドレスが200.100.0.1でありdestinationポート番号が5060であり、ペイロードに含まれるSIPのToヘッダフィールドは、SIP:t1@in.comである。 As described with reference to FIG. 4, the SIP request packet transmitted by the SIP UA t1114 has a destination address of 200.100.0.1 and a destination port number of 5060, and the SIP To header field included in the payload is SIP: t1 @ in .com.
一方、SIP UA t2116が送信するSIPリクエストパケットのdestination IPアドレスとポート番号は、SIP UA t1114と同じであり、ペイロードに含まれるSIPのToヘッダフィールドは、SIP:t2@in.comである。 On the other hand, the destination IP address and the port number of the SIP request packet transmitted by the SIP UA t2116 are the same as those of the SIP UA t1114, and the SIP To header field included in the payload is SIP: t2@in.com.
本実施形態のアドレス変換装置100は、SIPリクエストパケットを受信すると、SIPのToヘッダフィールドによりアドレス変換テーブル107を参照し、該当する機器へSIPリクエストパケットを振り分ける。そのため、本アドレス変換装置100から送信されるSIP UA t1114へのSIPリクエストパケットのdestination IPアドレスは192.168.0.1であり、SIP UA t2へのSIPリクエストパケットのdestination IPアドレスは192.168.0.2となる。
When receiving the SIP request packet, the
このように上述した実施形態のアドレス変換装置100は、SIPリクエストパケットのペイロードに含まれるToヘッダフィールドのURIを使用してSIPリクエストパケットのdestination IPアドレスを書き換える。
As described above, the
そして、SIPリクエストパケットのペイロードを参照することにより、本実施形態のアドレス変換装置に複数台の機器が接続されている場合でも、同一のWAN側ポートに受信したSIPパケットを該当機器へ転送することができる。WAN側機器は、発明装置に接続されている複数台の機器とセッションを確立することができる。 Then, by referring to the payload of the SIP request packet, even when a plurality of devices are connected to the address translation device of this embodiment, the received SIP packet is transferred to the corresponding device on the same WAN side port. Can do. The WAN side device can establish a session with a plurality of devices connected to the invention apparatus.
次に、本発明の第2の実施形態についての図6および図7を用いて説明する。 Next, a second embodiment of the present invention will be described with reference to FIGS.
尚、第2の実施形態では、上述の第1の実施形態と同様の構成については説明を省略する。 In the second embodiment, the description of the same configuration as that of the first embodiment is omitted.
図6に示すように、第2の実施形態に示す機器構成は、図1に示した第1の実施形態の機器構成に追加してIPアドレス取得部117を有している。IPアドレス取得部117は、入力されたパケットのIPヘッダからsource IPアドレスを取得し、取得したsource IPアドレスを出力する。
As shown in FIG. 6, the device configuration shown in the second embodiment includes an IP
さらに、第2の実施形態の機器構成は第1の実施形態の機器構成に追加してメソッド取得部118を有す。メソッド取得部118は、SIPパケットが入力されると、SIPパケットのRequest-lineからメソッドを取得し、取得したメソッドを出力する。
Furthermore, the device configuration of the second embodiment has a
さらに第2の実施形態の機器構成は第1の実施形態の機器構成に追加して変換テーブル登録部119を有す。変換テーブル登録部119は、メソッド取得部117よりSIPパケットのメソッドを取得し、メソッドがRegisterである場合は、ヘッダフィールド取得部106から取得したFromヘッダフィールドとToヘッダフィールドのURIを比較する。
Furthermore, the device configuration of the second embodiment has a conversion
同じであれば、registerパケットを出力したSIP UAがUA自身の登録を行うことを意味するため、IPアドレス取得部117から取得したIPアドレスとヘッダフィールド取得部106から取得したToヘッダフィールドのURIとからなる組をアドレス変換テーブル107へ登録する。
If they are the same, it means that the SIP UA that has output the register packet registers itself, so that the IP address acquired from the IP
FromヘッダフィールドとToヘッダフィールドのURIが異なる場合は、registerパケットを出力したSIP UAが他のSIP UAの登録を行うことを意味するため、ヘッダフィールド取得部106から取得したContactヘッダフィールドのローカルIPアドレスとヘッダフィールド取得部106から取得したToヘッダフィールドのURIとからなる組をアドレス変換テーブル107へ登録する。
If the From header field and the To header field have different URIs, it means that the SIP UA that has output the register packet registers other SIP UAs. Therefore, the local IP of the Contact header field acquired from the header
さらに、第2の実施形態のIPアドレス変換部120は、受信したパケットがSIPであり、かつLAN側からのパケットであれば、変換テーブル登録部119へパケットを送信する。その他の処理は第1の実施形態のIPアドレス変換部103と同じである。
Furthermore, the IP address conversion unit 120 according to the second embodiment transmits a packet to the conversion
次に本発明の第2の実施形態の具体的な動作について図7を用いて説明するにより説明する。尚、題意の実施例と同一の構成については同一の付番号を用いて説明する。 Next, a specific operation of the second exemplary embodiment of the present invention will be described with reference to FIG. Note that the same components as those in the subject embodiment will be described using the same reference numerals.
プライベートネットワーク上の機器であるSIP UA t2116はregister server121へSIPのregisterパケットを出力する。出力するSIPパケットのmessage-headerは、Fromヘッダフィールドが"t2 <SIP:T2@IN.COM>;tag=1"であり、Toヘッダフィールドが"t1 <SIP:T1@IN.COM>"であり、Contactヘッダフィールドが"t1@192.168.0.1"である。本アドレス変換装置100のIPアドレス変換部119は、LAN側通信部101から出力されたSIP UA t2116のパケットを受信すると、パケットがSIPでありかつLAN側からの受信であるため、パケットを変換テーブル登録部119へ送信する。
The SIP UA t2116, which is a device on the private network, outputs a SIP register packet to the
変換テーブル登録部119は、SIPパケットのメソッドがregisterであるため、ヘッダフィールド取得部117よりパケットのペイロードに含まれるSIPのFromヘッダフィールドとToヘッダフィールドとContactヘッダフィールドとを取得する。取得後、変換テーブル登録部119は、ヘッダフィールド取得部から取得したFromヘッダフィールドのURI(SIP:t2@in.com)とToヘッダフィールドのURI(SIP:t1@in.com)を比較する。
Since the SIP packet method is register, the conversion
この第2の実施形態では、FromヘッダフィールドのURIとToヘッダフィールドのURIが異なるため、パケットを出力したUAが他のUA(SIP UA t1)の登録を行っていることがわかる。そのため、変換テーブル登録部119はヘッダフィールド取得部106より取得したContactヘッダフィールドからローカルIPアドレス(192.168.0.1)を取出し、取出したアドレスをアドレス変換テーブル107への登録アドレスとする。
In the second embodiment, since the URI of the From header field is different from the URI of the To header field, it can be seen that the UA that has output the packet registers another UA (SIP UA t1). Therefore, the conversion
第2の実施形態のアドレス変換テーブル107へ追加登録されるのは、ヘッダフィールド取得部117から取得したToヘッダフィールド(SIP:t1@in.com)とContactヘッダフィールドから取得したIPアドレス(192.168.0.1)との組である。
What is additionally registered in the address conversion table 107 of the second embodiment is that the To header field (SIP: t1@in.com) acquired from the header
またSIPのRegister serverへの登録時に登録されるSIP UAの情報を自動的にアドレス変換テーブル107へ登録する。それにより、ユーザのアドレス変換テーブル登録の負荷が軽減される。 Also, SIP UA information registered at the time of registration in the SIP Register server is automatically registered in the address conversion table 107. Thereby, the load of registering the address translation table of the user is reduced.
以上説明したように第2の実施形態によれば、SIPリクエストパケットのペイロードに含まれるToヘッダフィールドのURIを使用してSIPリクエストパケットのdestination IPアドレスを書き換える。またSIPリクエストパケットのペイロードを参照することにより、本アドレス変換装置100に複数台の機器が接続されている場合でも、同一のWAN側ポートに受信したSIPパケットを該当機器へ転送することができる。WAN側機器は、発明装置に接続されている複数台の機器とセッションを確立することができる。
As described above, according to the second embodiment, the destination IP address of the SIP request packet is rewritten using the URI of the To header field included in the payload of the SIP request packet. Further, by referring to the payload of the SIP request packet, even when a plurality of devices are connected to the
またSIPのRegister serverへの登録時に登録されるSIP UAの情報を自動的にアドレス変換テーブルへ登録する。それにより、ユーザのアドレス変換テーブル登録の負荷が軽減される。 In addition, SIP UA information registered at the time of registration with the SIP Register server is automatically registered in the address conversion table. Thereby, the load of registering the address translation table of the user is reduced.
100…アドレス変換装置、101…LAN側通信部、103…IPアドレス変換部、104…WAN側通信部、105…SIP判定部、106…ヘッダフィールド取得部、107…アドレス変換テーブル。
DESCRIPTION OF
Claims (4)
第2のネットワークとの通信を行う第2の通信部と、
受信したパケットが前記第2の通信部から送信されたSIPのリクエストパケットであるかあるいはそれ以外のSIPパケットであるかあるいはSIPパケットではないかを判定するSIP判定部と、
指定したSIPのmessage-headerをパケットから取得するヘッダフィールド取得部と、
URIとIPアドレスとを組として持つアドレス変換テーブルと、
前記第2の通信部から受信したSIPのリクエストパケットのペイロードに含まれるToヘッダフィールドのURIに従いIPヘッダのdestination IPアドレスを書き換えるIPアドレス変換部と、
を具備したことを特徴とするアドレス変換装置。 A first communication unit that communicates with the first network;
A second communication unit for communicating with the second network;
A SIP determination unit for determining whether the received packet is a SIP request packet transmitted from the second communication unit, a SIP packet other than that, or a SIP packet;
A header field acquisition unit for acquiring a specified SIP message-header from a packet;
An address translation table having a URI and an IP address as a set;
An IP address conversion unit for rewriting the destination IP address of the IP header according to the URI of the To header field included in the payload of the SIP request packet received from the second communication unit;
An address translation device comprising:
前記SIPパケットのメソッドを抜き出すメソッド取得部と、
前記メソッドがregisterであった場合に、IPアドレスとしてSIPパケットのsource IPアドレスあるいはSIPパケットのContactヘッダフィールドのIPアドレスと、
前記SIPパケットのToヘッダフィールドのURIとの組をアドレス変換テーブルへ追加する変換テーブル登録部と、
前記第1の通信部からSIPパケットを受信した場合に変換テーブル登録部へパケット転送するIPアドレス変換部と、
を具備したことを特徴とする請求項1記載のアドレス変換装置。 An IP address acquisition unit for acquiring a source IP address from the received packet;
A method acquisition unit for extracting a method of the SIP packet;
When the method is register, the source IP address of the SIP packet as the IP address or the IP address of the Contact header field of the SIP packet;
A translation table registration unit for adding a pair with the URI of the To header field of the SIP packet to the address translation table;
An IP address conversion unit that transfers a packet to the conversion table registration unit when a SIP packet is received from the first communication unit;
The address translation apparatus according to claim 1, further comprising:
WAN側との通信を行うWAN側通信部と、
受信したパケットが前記WAN側から送信されたSIPのリクエストパケットであるかあるいはそれ以外のSIPパケットであるかあるいはSIPパケットではないかを判定するSIP判定部と、
指定したSIPのmessage-headerをパケットから取得するヘッダフィールド取得部と、
URIとIPアドレスとを組として持つアドレス変換テーブルと、
前記WAN側通信部から受信したSIPのリクエストパケットのペイロードに含まれるToヘッダフィールドのURIに従いIPヘッダのdestination IPアドレスを書き換えるIPアドレス変換部と、
を具備したことを特徴とするアドレス変換装置。 A LAN side communication unit for performing communication with the LAN side;
A WAN side communication unit that performs communication with the WAN side;
A SIP determination unit for determining whether the received packet is a SIP request packet transmitted from the WAN side, a SIP packet other than that, or a SIP packet;
A header field acquisition unit for acquiring a specified SIP message-header from a packet;
An address translation table having a URI and an IP address as a set;
An IP address conversion unit for rewriting the destination IP address of the IP header according to the URI of the To header field included in the payload of the SIP request packet received from the WAN side communication unit;
An address translation device comprising:
前記SIPパケットのメソッドを抜き出すメソッド取得部と、
前記メソッドがregisterであった場合に、IPアドレスとしてSIPパケットのsource IPアドレスあるいはSIPパケットのContactヘッダフィールドのIPアドレスと、
前記SIPパケットのToヘッダフィールドのURIとの組をアドレス変換テーブルへ追加する変換テーブル登録部と、
前記LAN側からSIPパケットを受信した場合に変換テーブル登録部へパケット転送するIPアドレス変換部と、
を具備したことを特徴とする請求項3記載のアドレス変換装置。 An IP address acquisition unit for acquiring a source IP address from the received packet;
A method acquisition unit for extracting a method of the SIP packet;
When the method is register, the source IP address of the SIP packet as the IP address or the IP address of the Contact header field of the SIP packet;
A translation table registration unit for adding a pair with the URI of the To header field of the SIP packet to the address translation table;
An IP address conversion unit that transfers a packet to a conversion table registration unit when a SIP packet is received from the LAN side;
4. The address translation apparatus according to claim 3, further comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005024451A JP2006211601A (en) | 2005-01-31 | 2005-01-31 | Address translation device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005024451A JP2006211601A (en) | 2005-01-31 | 2005-01-31 | Address translation device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2006211601A true JP2006211601A (en) | 2006-08-10 |
Family
ID=36967902
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005024451A Pending JP2006211601A (en) | 2005-01-31 | 2005-01-31 | Address translation device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2006211601A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007006217A (en) * | 2005-06-24 | 2007-01-11 | Hitachi Communication Technologies Ltd | Relay device and relay method |
| WO2008083631A1 (en) * | 2007-01-10 | 2008-07-17 | Huawei Technologies Co., Ltd. | User identity conversion apparatus, ims and methods of registration, calling and called |
| JP2010219580A (en) * | 2009-03-13 | 2010-09-30 | Hitachi Ltd | Communication repeater, communication terminal and communication method |
| JP2011182470A (en) * | 2011-06-09 | 2011-09-15 | Toshiba Corp | Communication apparatus, and terminal registration method for use in communication system |
-
2005
- 2005-01-31 JP JP2005024451A patent/JP2006211601A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007006217A (en) * | 2005-06-24 | 2007-01-11 | Hitachi Communication Technologies Ltd | Relay device and relay method |
| WO2008083631A1 (en) * | 2007-01-10 | 2008-07-17 | Huawei Technologies Co., Ltd. | User identity conversion apparatus, ims and methods of registration, calling and called |
| JP2010219580A (en) * | 2009-03-13 | 2010-09-30 | Hitachi Ltd | Communication repeater, communication terminal and communication method |
| JP2011182470A (en) * | 2011-06-09 | 2011-09-15 | Toshiba Corp | Communication apparatus, and terminal registration method for use in communication system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1327355C (en) | Address conversion device, message processing method and server | |
| US20090313386A1 (en) | Communication apparatus, communication method and communication system | |
| US20040139228A1 (en) | Peer-to-peer (P2P) connection despite network address translators (NATs) at both ends | |
| US8611354B2 (en) | Method and apparatus for relaying packets | |
| JP2004364141A (en) | IP address translator and packet transfer device | |
| JP2011077804A (en) | Communication device and communication method of the same | |
| TWI523471B (en) | Method of transmitting by relay server for advanced domain name system | |
| JP2006211601A (en) | Address translation device | |
| JP2008258917A (en) | Identical nat subordinate communication control system, nat device, identical nat subordinate communication control method, and program | |
| KR101666594B1 (en) | System and method for providing sip service | |
| JP2010011120A (en) | Nat conversion apparatus and nat conversion program in uni connection | |
| US8223762B2 (en) | Method and device for translating internet protocol addresses inside a communications network | |
| JP3928664B2 (en) | Address translation apparatus, message processing method and apparatus | |
| JP4648436B2 (en) | Packet distribution device, communication system, packet processing method, and program | |
| JP4889617B2 (en) | Gateway apparatus and communication control method | |
| JP4350030B2 (en) | Address translation method | |
| JP4350029B2 (en) | Address translation system | |
| JP4793477B2 (en) | Address translation apparatus, message processing method and apparatus | |
| JP3928662B2 (en) | Address translation apparatus, message processing method and apparatus | |
| JP3928663B2 (en) | Address translation apparatus, message processing method and apparatus | |
| JP5084716B2 (en) | VPN connection apparatus, DNS packet control method, and program | |
| EP1916816A1 (en) | Method and devices to establish a public communication session | |
| JP4793476B2 (en) | Address translation apparatus, message processing method and apparatus | |
| US20080031237A1 (en) | Internet media server finding and playing methodologies | |
| JP2004260314A (en) | Call connection relay system, call connection relay device and program thereof, call connection request information conversion device and program thereof |