JP2003085063A - Communication relay device and communication method - Google Patents
Communication relay device and communication methodInfo
- Publication number
- JP2003085063A JP2003085063A JP2001273398A JP2001273398A JP2003085063A JP 2003085063 A JP2003085063 A JP 2003085063A JP 2001273398 A JP2001273398 A JP 2001273398A JP 2001273398 A JP2001273398 A JP 2001273398A JP 2003085063 A JP2003085063 A JP 2003085063A
- Authority
- JP
- Japan
- Prior art keywords
- port number
- packet
- address
- communication
- communication terminal
- 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
Landscapes
- Small-Scale Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
(57)【要約】
【課題】 H.323プロトコルを用いた通信にお
いてIPマスカレードを用いた中継を可能とすること。
【解決手段】 モニタ部104は、パケット送受信部1
01から出力されたパケットのメッセージ内容をモニタ
する。そして、モニタ部104は、トランスポート層よ
り上位の層でセッションが設定され、ポート番号の設定
がある場合、当該ポート番号を更新部105に通知す
る。トランスポート層より上位の層でセッションが設定
され、ポート番号の設定があった場合、更新部105
は、当該パケットの自アドレスと当該ポート番号の組み
合わせと、宛先アドレスと当該ポート番号の組み合わせ
を対応づけてIPマスカレードテーブル106に記憶す
る。
(57) [Summary] [Problem] To enable relay using IP masquerade in communication using the H.323 protocol. A monitor unit (104) includes a packet transmitting / receiving unit (1).
Monitor the message content of the packet output from 01. Then, when a session is set in a layer higher than the transport layer and a port number is set, the monitor unit 104 notifies the updating unit 105 of the port number. When a session is set in a layer higher than the transport layer and a port number is set, the updating unit 105
In the IP masquerade table 106, the combination of the own address of the packet and the port number and the combination of the destination address and the port number are associated with each other.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、通信中継装置及び
通信方法に関し、特にストリーミングデータを扱うパケ
ット通信に用いて好適な通信中継装置及び通信方法に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication relay device and a communication method, and more particularly to a communication relay device and a communication method suitable for use in packet communication handling streaming data.
【0002】[0002]
【従来の技術】近年、ローカルエリアネットワーク(LA
N:Local Area Network)の広帯域化等をはじめとする
ネットワーク技術が進歩し、また、パーソナルコンピュ
ータ(PC)の多機能化及びPCに適用するCPU(Ce
ntral Processor Unit)の高速化等をはじめとするPC
技術が進歩するにともない、複数のLAN上のPC間で
音声情報を高速に通信することが実用的になっている。2. Description of the Related Art In recent years, local area networks (LA
N: Local Area Network) has advanced network technology such as wide band, and personal computer (PC) has multiple functions and CPU (Ce) applied to PC.
PC including speedup of ntral processor unit)
As the technology advances, it has become practical to transmit voice information at high speed between PCs on a plurality of LANs.
【0003】これらの技術進歩により、従来の電話によ
る音声の通信を、インターネットで接続されたPCの間
でIP(Internet Protocol)を用いて実行するアプリ
ケーションソフトウェアと、このソフトウェアを組み込
んだハードウェアシステムとが急速に市場に投入されて
いる。Due to these technological advances, application software for executing conventional voice communication by telephone between PCs connected to the Internet using IP (Internet Protocol), and a hardware system incorporating this software. Are rapidly entering the market.
【0004】IPを用いて音声通信を行う規格の一つと
してH.323プロトコルがある。H.323プロトコ
ルは、QOS(Quality of Service)非保証LAN上で
動作するオーディオビジュアル通信に用いるプロトコル
である。図10は、H.323プロトコルの構成を示す
模式図である。The H.264 standard is one of the standards for voice communication using IP. There are 323 protocols. H. The H.323 protocol is a protocol used for audiovisual communication operating on a QOS (Quality of Service) non-guaranteed LAN. FIG. It is a schematic diagram which shows the structure of 323 protocol.
【0005】H.323プロトコルでは、トランスポー
ト層以下の構成については規定せず、トランスポート層
の上にあるセッション層以上の構成について規定してい
る。H.323プロトコルは、マルチメディア情報のパ
ケット化、同期、RAS(Registration Admission Sta
tus)、呼制御を規定するH.225.0プロトコル、
端末間の制御を規定するH.245プロトコルから構成
される。H. In the H.323 protocol, the configuration below the transport layer is not specified, but the configuration above the session layer above the transport layer is specified. H. The H.323 protocol is used for packetizing multimedia information, synchronization, and RAS (Registration Admission Status).
tus), which defines call control. 225.0 protocol,
H.264 that defines control between terminals. 245 protocol.
【0006】以下、H.323プロトコルを用いた通信
手順について説明する。図11は、H.323プロトコ
ルを用いた通信手順の一例を示すシーケンス図である。
図11では、発信IP通信端末11が、着信IP通信端
末12に音声通信を要求してRTP(Real-time Transpo
rt Protocol)を用いた音声通信を確立する手順を示す。In the following, H. A communication procedure using the H.323 protocol will be described. FIG. It is a sequence diagram which shows an example of the communication procedure using the H.323 protocol.
In FIG. 11, the originating IP communication terminal 11 requests voice communication from the terminating IP communication terminal 12 and requests RTP (Real-time Transpo
The procedure for establishing voice communication using the rt Protocol is shown below.
【0007】最初に、発信IP通信端末11は、SETUP
メッセージを着信IP通信端末12に送信する。このSE
TUPメッセージを含むパケットには、発信元の自アドレ
ス、自ポート番号、着信先の宛先アドレス、宛先ポート
番号が含まれる。[0007] First, the originating IP communication terminal 11 uses the SETUP
The message is transmitted to the incoming IP communication terminal 12. This SE
The packet including the TUP message includes the sender's own address, own port number, destination address, and destination port number.
【0008】図11において、XIは、発信IP通信端
末11の自アドレスを示し、XPは、発信IP通信端末
11が当該音声通信の制御で使用するポート番号を示
す。また、YIは着信IP通信端末12のアドレスを示
し、YPは、着信IP通信端末12が当該音声通信の制
御で使用するポート番号を示す。In FIG. 11, XI indicates the own address of the originating IP communication terminal 11, and XP indicates a port number used by the originating IP communication terminal 11 for controlling the voice communication. Further, YI indicates the address of the incoming IP communication terminal 12, and YP indicates the port number used by the incoming IP communication terminal 12 in controlling the voice communication.
【0009】上記SETUPメッセージは、発信IP通信端
末11から着信IP通信端末12に送信されるメッセー
ジなので、パケットの自アドレスにXI、自ポート番号
にXP、宛先アドレスにYI、宛先ポート番号にYPが
設定されて送信される。以降同様に、発信IP通信端末
11から着信IP通信端末12に送信されるパケット
は、自アドレスにXI、自ポート番号にXP、宛先アド
レスにYI、宛先ポート番号にYPが設定されて送信さ
れる。Since the SETUP message is a message transmitted from the originating IP communication terminal 11 to the terminating IP communication terminal 12, the packet's own address is XI, its own port number is XP, the destination address is YI, and the destination port number is YP. It is set and sent. Similarly, a packet transmitted from the source IP communication terminal 11 to the destination IP communication terminal 12 is transmitted with its own address set to XI, its own port number set to XP, the destination address set to YI, and the destination port number set to YP. .
【0010】着信IP通信端末12は、SETUPメッセー
ジを受信すると、着信処理を行い、発信IP通信端末1
1にALERTメッセージを返信する。ALERTメッセージは、
着信IP通信端末12から発信IP通信端末11に送信
されるメッセージなので、自アドレスにYI、自ポート
番号にYP、宛先アドレスにXI、宛先ポート番号にX
Pが設定されたパケットで送信される。以降同様に、着
信IP通信端末12から発信IP通信端末11に送信さ
れるパケットは、自アドレスにYI、自ポート番号にY
P、宛先アドレスにXI、宛先ポート番号にXPが設定
されて送信される。When the terminating IP communication terminal 12 receives the SETUP message, the terminating IP communication terminal 12 performs an incoming call process, and the originating IP communication terminal 1
Reply ALERT message to 1. The ALERT message is
Since this is a message sent from the incoming IP communication terminal 12 to the outgoing IP communication terminal 11, its own address is YI, its own port number is YP, the destination address is XI, and the destination port number is X.
It is transmitted in a packet in which P is set. Similarly, the packet transmitted from the incoming IP communication terminal 12 to the outgoing IP communication terminal 11 is YI for its own address and Y for its own port number.
P, XI is set in the destination address, and XP is set in the destination port number, and the packet is transmitted.
【0011】そして、着信IP通信端末12は、応答の
準備が整った後に、CONNECTメッセージを発信IP通信
端末11に送信する。発信IP通信端末11は、CONNEC
Tメッセージを受信すると、着信IP通信端末12と通
信可能であると判断し、TerminalCapabilitySetメッセ
ージを着信IP通信端末12に送信し、端末の能力を伝
える。そして、着信IP通信端末12は、TerminalCapa
bilitySetAckメッセージを発信IP通信端末11送信
し、端末の能力を伝える。Then, the incoming IP communication terminal 12 sends a CONNECT message to the outgoing IP communication terminal 11 after preparation for response is completed. The originating IP communication terminal 11 is CONNEC
When the T message is received, it is determined that communication with the incoming IP communication terminal 12 is possible, and a TerminalCapabilitySet message is sent to the incoming IP communication terminal 12 to convey the capability of the terminal. Then, the incoming IP communication terminal 12 is the TerminalCapa
The bilitySetAck message is transmitted to the originating IP communication terminal 11 to convey the capability of the terminal.
【0012】お互いの端末の能力を伝えた後、音声信号
を送信する論理チャネルを設定して相手端末に伝える。
ここで、音声信号を送信する場合に、RTP(Real Tim
e Transport Protocol)が使用される。RTPは、マル
チメディアデータストリームのパケットフォーマットで
あり、H.323のプロトコルのデータ部分に使用され
る。After transmitting the capabilities of both terminals, a logical channel for transmitting a voice signal is set and transmitted to the other terminal.
Here, when transmitting an audio signal, RTP (Real Tim
e Transport Protocol) is used. RTP is a packet format for multimedia data streams, and is defined in H.264. Used for the data part of the H.323 protocol.
【0013】具体的には、発信IP通信端末11は、Op
enLogicalChannelメッセージを着信IP通信端末12に
送信し、発信IP通信端末11から着信IP通信端末1
2に音声信号を送信する場合に使用する論理チャネルの
設定を要求する。着信IP通信端末12は、OpenLogica
lChannelAckメッセージを発信IP通信端末11に返信
し、RTPパケットを送信する場合に使用するポート番
号を伝える。Specifically, the originating IP communication terminal 11 is
An enLogicalChannel message is sent to the incoming IP communication terminal 12, and the outgoing IP communication terminal 11 sends the incoming IP communication terminal 1
2 requests the setting of the logical channel used when transmitting a voice signal. The incoming IP communication terminal 12 is OpenLogica.
The lChannelAck message is returned to the originating IP communication terminal 11 and the port number used when transmitting the RTP packet is transmitted.
【0014】また、着信IP通信端末12は、OpenLogi
calChannelメッセージを発信IP通信端末11に送信
し、着信IP通信端末12から発信IP通信端末11に
音声信号を送信する場合に使用する論理チャネルの設定
を要求する。発信IP通信端末11は、OpenLogicalCha
nnelAckメッセージを着信IP通信端末12に返信し、
RTPパケットを送信する場合に使用するポート番号を
伝える。Further, the incoming IP communication terminal 12 is an OpenLogi
A calChannel message is sent to the originating IP communication terminal 11, and a request is made to set a logical channel used when a voice signal is transmitted from the terminating IP communication terminal 12 to the originating IP communication terminal 11. The originating IP communication terminal 11 is an OpenLogicalCha
The nnelAck message is returned to the incoming IP communication terminal 12,
Tells the port number to use when sending RTP packets.
【0015】RTPで使用するポート番号が設定された
後、音声通信が行われる。具体的には、発信IP通信端
末11は、宛先ポート番号をVYPに設定して音声信号
をRTPパケットとして着信IP通信端末12に送信す
る。また、着信IP通信端末12は、宛先ポート番号を
VXPに設定して音声信号をRTPパケットとして発信
IP通信端末11に送信する。After the port number used in RTP is set, voice communication is performed. Specifically, the originating IP communication terminal 11 sets the destination port number to VYP and transmits the voice signal as an RTP packet to the terminating IP communication terminal 12. Further, the incoming IP communication terminal 12 sets the destination port number to VXP and transmits the voice signal as an RTP packet to the outgoing IP communication terminal 11.
【0016】このように、H.323プロトコルに従っ
て音声通信を行う場合、音声通信を介するまでのやり取
りで使用するポート番号と、音声通信で使用するポート
番号が異なる。In this way, H.264 When voice communication is performed in accordance with the H.323 protocol, the port number used for communication until the voice communication is different from the port number used for voice communication.
【0017】ここで、異なるネットワーク間の端末が
H.323プロトコルに従って音声通信を行う場合、ポ
ート番号を変更することにより通信ができなくなること
がある。例えば、IPマスカレード(NAPT:Network Add
ress Port Translationともいう)を用いて、二つのネ
ットワーク間の通信を中継する場合、セッションごとに
TCP(Transmission Control Protocol)やUDP(U
ser Datagram Protocol)のポート番号を変換する。Here, the terminals between different networks are H.264. When performing voice communication according to the H.323 protocol, changing the port number may make communication impossible. For example, IP masquerade (NAPT: Network Add
When relaying communication between two networks using ress Port Translation), TCP (Transmission Control Protocol) or UDP (U
ser Datagram Protocol) port number is converted.
【0018】図12は、H.323プロトコルを用いた
通信手順の一例を示すシーケンス図である。図12にお
いて、発信IP通信端末21は、プライベートLANに
接続する端末であり、着信IP通信端末22は、インタ
ーネットに接続する端末である。ここで、プライベート
LANとインターネットは、通信中継装置23を中継装
置として接続されている。FIG. It is a sequence diagram which shows an example of the communication procedure using the H.323 protocol. In FIG. 12, an outgoing IP communication terminal 21 is a terminal connected to a private LAN, and an incoming IP communication terminal 22 is a terminal connected to the Internet. Here, the private LAN and the Internet are connected by using the communication relay device 23 as a relay device.
【0019】IPマスカレードは、プライベートLAN
内にある端末に割り振られたアドレスの数より少ない数
のインターネットのアドレス(グローバルアドレス)で
同時に通信を行いたい場合に用いられる。また、同時セ
ッション数がグローバルアドレスより多い場合、セッシ
ョン毎にポート番号を変更する。IP masquerade is a private LAN
It is used when you want to communicate at the same time with a smaller number of Internet addresses (global addresses) than the number of addresses assigned to the terminals inside. If the number of simultaneous sessions is larger than the global address, the port number is changed for each session.
【0020】以下、図12を用いて、発信IP通信端末
21が、通信中継装置23を介して着信IP通信端末2
2に音声通信を要求して音声通信を確立する手順につい
て説明する。図12では、発信IP通信端末21のアド
レスをXI、着信IP通信端末22のグローバルアドレ
スをYI、通信中継装置23のグローバルアドレスをX
I´とする。Hereinafter, with reference to FIG. 12, the originating IP communication terminal 21 receives the incoming IP communication terminal 2 via the communication relay device 23.
A procedure for requesting the voice communication from the user 2 and establishing the voice communication will be described. In FIG. 12, the address of the source IP communication terminal 21 is XI, the global address of the destination IP communication terminal 22 is YI, and the global address of the communication relay device 23 is X.
I '.
【0021】最初に、発信IP通信端末21は、SETUP
メッセージを着信IP通信端末22に送信する。このSE
TUPメッセージは、発信IP通信端末21から着信IP
通信端末22に送信されるメッセージなので、自アドレ
スにXI、自ポート番号にXP、宛先アドレスにYI、
宛先ポート番号にYPが設定されたパケットで送信され
る。以降同様に、発信IP通信端末21から着信IP通
信端末22に送信されるパケットは、自アドレスにX
I、自ポート番号にXP、宛先アドレスにYI、宛先ポ
ート番号にYPが設定される。First, the originating IP communication terminal 21 sets up SETUP
The message is transmitted to the incoming IP communication terminal 22. This SE
The TUP message is sent from the outgoing IP communication terminal 21 to the incoming IP.
Since the message is sent to the communication terminal 22, its own address is XI, its own port number is XP, and the destination address is YI.
It is transmitted in a packet in which YP is set in the destination port number. Similarly, a packet transmitted from the originating IP communication terminal 21 to the terminating IP communication terminal 22 will have X at its own address.
I, XP is set to the own port number, YI is set to the destination address, and YP is set to the destination port number.
【0022】通信中継装置23は、パケットの宛先アド
レスからこのSETUPメッセージのパケットが、プライベ
ートLAN内の端末向けのパケットではなく、インター
ネット向けのパケットと判断する。そして、通信中継装
置23は、SETUPメッセージのパケットの自アドレスを
XIから通信中継装置23のアドレスであるXI´に置
き換え、SETUPメッセージの自ポート番号を通信中継装
置23が使用していないポート番号XP´に置き換え
る。From the packet destination address, the communication relay device 23 determines that the packet of the SETUP message is not the packet for the terminal in the private LAN but the packet for the Internet. Then, the communication relay device 23 replaces the own address of the packet of the SETUP message with XI ', which is the address of the communication relay device 23, and replaces the own port number of the SETUP message with the port number XP not used by the communication relay device 23. Replace with ´.
【0023】そして、通信中継装置23は、自アドレス
と自ポート番号を置き換えたSETUPメッセージのパケッ
トを着信IP通信端末22に送信する。また、通信中継
装置23は、アドレスとポート番号の組み合わせ(X
I、XP)と、(XI´、XP´)とを対応づけてIP
マスカレードテーブルに記憶する。Then, the communication relay device 23 transmits to the destination IP communication terminal 22 a SETUP message packet in which its own address and its own port number are replaced. Also, the communication relay device 23 uses the combination of the address and the port number (X
I, XP) and (XI ′, XP ′) are associated with each other
Remember in the masquerade table.
【0024】着信IP通信端末22は、SETUPメッセー
ジを受信すると、着信処理を行う。SETUPメッセージの
パケットの自アドレスは、通信中継装置23のグローバ
ルアドレスXI´なので、着信IP通信端末22は、通
信中継装置23にALERTメッセージを返信する。When the incoming IP communication terminal 22 receives the SETUP message, it performs incoming call processing. Since the own address of the packet of the SETUP message is the global address XI 'of the communication relay device 23, the incoming IP communication terminal 22 returns the ALERT message to the communication relay device 23.
【0025】ここで、ALERTメッセージは、着信IP通
信端末22から通信中継装置23に送信されるメッセー
ジなので、パケットの自アドレスにYI、自ポート番号
にYP、宛先アドレスにXI´、宛先ポート番号にXP
´が設定されて送信される。以降同様に、着信IP通信
端末22から通信中継装置23に送信されるパケット
は、自アドレスにYI、自ポート番号にYP、宛先アド
レスにXI´、宛先ポート番号にXP´が設定されて送
信される。Since the ALERT message is a message transmitted from the incoming IP communication terminal 22 to the communication relay device 23, the packet's own address is YI, its own port number is YP, the destination address is XI ', and the destination port number is XP
'Is set and transmitted. Similarly thereafter, the packet transmitted from the incoming IP communication terminal 22 to the communication relay device 23 is transmitted with YI set to its own address, YP set to its own port number, XI ′ set to the destination address, and XP ′ set to the destination port number. It
【0026】通信中継装置23は、IPマスカレードテ
ーブルを参照して、受信したALERTメッセージのパケッ
トの宛先アドレスと宛先ポート番号に対応する組み合わ
せがあるか検索する。The communication relay device 23 refers to the IP masquerading table and searches for a combination corresponding to the destination address and the destination port number of the packet of the received ALERT message.
【0027】IPマスカレードテーブルにアドレスとポ
ート番号の組み合わせ(XI、XP)と、(XI´、X
P´)とを対応づけてられているので、通信中継装置2
3は、ALERTメッセージのパケットの宛先アドレスをX
I´からXIに置き換え、ALERTメッセージの宛先ポー
ト番号をXP´からXPに置き換える。In the IP masquerading table, combinations of addresses and port numbers (XI, XP) and (XI ', X
P ′) is associated with the communication relay device 2
3 is the destination address of the packet of the ALERT message is X
I'is replaced by XI, and the destination port number of the ALERT message is replaced by XP 'by XP.
【0028】そして、通信中継装置23は、宛先アドレ
スと宛先ポート番号を置き換えたALERTメッセージをプ
ライベートLAN内の発信IP通信端末21に送信す
る。ALERTメッセージと同様に、CONNECTメッセージも着
信IP通信端末22から通信中継装置23を中継して発
信IP通信端末21に送信される。Then, the communication relay device 23 transmits the ALERT message in which the destination address and the destination port number are replaced to the originating IP communication terminal 21 in the private LAN. Similar to the ALERT message, the CONNECT message is also transmitted from the incoming IP communication terminal 22 to the outgoing IP communication terminal 21 through the communication relay device 23.
【0029】以降、通信中継装置23は、発信IP通信
端末21から着信IP通信端末22に送信されるメッセ
ージのパケットの自アドレスと自ポート番号に対してI
Pマスカレードテーブルを参照して変換し、インターネ
ットを介して着信IP通信端末22に送信する。After that, the communication relay device 23 sets I to the own address and the own port number of the packet of the message transmitted from the originating IP communication terminal 21 to the terminating IP communication terminal 22.
The P masquerade table is referred to, converted, and transmitted to the incoming IP communication terminal 22 via the Internet.
【0030】また、通信中継装置23は、着信IP通信
端末22から通信中継装置23に送信されるメッセージ
のパケットの宛先アドレスと宛先ポート番号に対してI
Pマスカレードテーブルを参照して変換し、プライベー
トLAN内の発信IP通信端末21に送信する。Further, the communication relay device 23 sets I to the destination address and destination port number of the packet of the message transmitted from the incoming IP communication terminal 22 to the communication relay device 23.
The P masquerade table is referred to, converted, and transmitted to the originating IP communication terminal 21 in the private LAN.
【0031】上記処理により、TerminalCapabilitySet
メッセージ、TerminalCapabilitySetAckメッセージ、Op
enLogicalChannelメッセージ、及びOpenLogicalChannel
Ackメッセージは、発信IP通信端末21と着信IP通
信端末22の間でやり取りされるパケットのアドレスと
ポート番号の変換される。By the above processing, TerminalCapabilitySet
Message, TerminalCapabilitySetAck Message, Op
enLogicalChannel message and OpenLogicalChannel
The Ack message is converted from the address and port number of the packet exchanged between the originating IP communication terminal 21 and the terminating IP communication terminal 22.
【0032】ここで、発信IP通信端末21と着信IP
通信端末22は、OpenLogicalChannelメッセージ及びOp
enLogicalChannelAckメッセージのやり取りにより、R
TPパケットを送信する場合に使用するポート番号を相
手端末に伝える。Here, the source IP communication terminal 21 and the destination IP
The communication terminal 22 uses the OpenLogicalChannel message and the Op
By exchanging enLogicalChannelAck messages, R
The partner terminal is notified of the port number used when transmitting the TP packet.
【0033】発信IP通信端末21は、宛先ポート番号
をVYPに設定して音声信号をRTPパケットとして通
信中継装置23を介して着信IP通信端末22に送信す
る。通信中継装置23は、このRTPパケットの自アド
レスをXIからXI´に変換し、自ポート番号をXPか
らXP´に変換し、RTPパケットを着信IP通信端末
22に送信する。The originating IP communication terminal 21 sets the destination port number to VYP and transmits the voice signal as an RTP packet to the terminating IP communication terminal 22 via the communication relay device 23. The communication relay device 23 converts the own address of the RTP packet from XI to XI ′, the own port number from XP to XP ′, and transmits the RTP packet to the incoming IP communication terminal 22.
【0034】そして、着信IP通信端末22は、宛先ポ
ート番号をVXPに設定して音声信号をRTPパケット
で通信中継装置23に送信する。通信中継装置23は、
IPマスカレードテーブルを参照して、受信したRTP
パケットの宛先アドレスと宛先ポート番号に対応する組
み合わせがあるか検索する。Then, the incoming IP communication terminal 22 sets the destination port number to VXP and transmits the voice signal to the communication relay device 23 as an RTP packet. The communication relay device 23 is
Received RTP by referring to the IP masquerade table
Search for a combination that corresponds to the destination address and destination port number of the packet.
【0035】[0035]
【発明が解決しようとする課題】ところが、IPマスカ
レードテーブルには、アドレスとポート番号の組み合わ
せ(XI´、VXP)に対応するデータが登録されてい
ないので、通信中継装置23は、このRTPパケットの
送信先が決定できず破棄してしまう。However, since the data corresponding to the combination of the address and the port number (XI ', VXP) is not registered in the IP masquerading table, the communication relay device 23 determines that the RTP packet The destination cannot be determined and is discarded.
【0036】このように、従来の装置においては、H.
323プロトコルを用いた通信においてIPマスカレー
ドを用いた中継ができないという問題がある。As described above, in the conventional device, the
In communication using the H.323 protocol, there is a problem that relay using IP masquerade cannot be performed.
【0037】本発明はかかる点に鑑みてなされたもので
あり、H.323プロトコルを用いた通信においてIP
マスカレードを用いた中継を可能とする通信中継装置及
び通信方法を提供することを目的とする。The present invention has been made in view of the above point, and is described in H.264. IP in communication using the H.323 protocol
An object of the present invention is to provide a communication relay device and a communication method capable of relaying using masquerade.
【0038】[0038]
【課題を解決するための手段】本発明の通信中継装置
は、第1ネットワークで使用するセッションと第2ネッ
トワークで使用するセッションとを対応づけたセッショ
ンテーブルを記憶する記憶手段と、前記セッションテー
ブルに従って、第1及び第2のネットワークで使用する
セッションを相互に変換する変換手段と、トランスポー
ト層より上位の層で設定されるセッションの情報をモニ
タリングするモニタ手段と、トランスポート層より上位
の層で設定されたセッションがモニタされた場合、当該
セッションを第1及び第2ネットワーク共通のサービス
とするセッションとしてセッションテーブルを更新する
更新手段と、を具備する構成を採る。A communication relay apparatus of the present invention stores a session table in which a session used in a first network and a session used in a second network are associated with each other, and according to the session table. , Conversion means for converting sessions used in the first and second networks to each other, monitoring means for monitoring session information set in a layer above the transport layer, and a layer above the transport layer When the set session is monitored, the session table is updated as a session having the session as a service common to the first and second networks, and an updating unit that updates the session table.
【0039】この構成によれば、トランスポート層より
上位の層で設定されたセッションの情報を、トランスポ
ート層で行うセッションの変換に反映させることによ
り、H.323プロトコルを用いた通信においてIPマ
スカレードを用いた中継を行うことができる。According to this configuration, the information of the session set in the layer above the transport layer is reflected in the conversion of the session performed in the transport layer, so that the H.264 standard is reflected. In communication using the H.323 protocol, relay using IP masquerade can be performed.
【0040】本発明の通信中継装置は、モニタ手段は、
受信したパケットをモニタしてトランスポート層より上
位の層で設定されるセッションの情報を抽出する構成を
採る。In the communication relay device of the present invention, the monitor means is
A configuration is adopted in which the received packet is monitored and session information set in a layer above the transport layer is extracted.
【0041】この構成によれば、通信端末装置から通知
されたセッション設定の情報に基づいて、トランスポー
ト層で行うセッションの変換に反映させることにより、
H.323プロトコルを用いた通信においてIPマスカ
レードを用いた中継を可能とすることができる。According to this configuration, by reflecting on the session conversion performed in the transport layer, based on the session setting information notified from the communication terminal device,
H. In communication using the H.323 protocol, relay using IP masquerade can be enabled.
【0042】本発明の通信中継装置は、記憶手段は、セ
ッションテーブルに第1ネットワークで使用するアドレ
スとポート番号の組み合わせと第2ネットワークで使用
するアドレスとポート番号の組み合わせを記憶し、変換
手段は、前記セッションテーブルに従って、第1及び第
2のネットワークで使用するアドレスとポート番号を相
互に変換し、モニタ手段は、トランスポート層より上位
の層で設定されるセッションの情報をモニタリングし、
更新手段は、当該セッションについて第1ネットワーク
で使用するポート番号と第2ネットワークで使用するポ
ート番号とを同じ番号で対応づけて更新する構成を採
る。In the communication relay device of the present invention, the storage means stores the combination of the address and port number used in the first network and the combination of the address and port number used in the second network in the session table, and the conversion means is , The addresses and port numbers used in the first and second networks are mutually converted according to the session table, and the monitoring means monitors information of a session set in a layer higher than the transport layer,
The updating unit adopts a configuration in which the port number used in the first network and the port number used in the second network are associated with the same number for the session and updated.
【0043】この構成によれば、トランスポート層より
上位の層の情報をモニタし、パケットを送信する場合に
トランスポート層で使用する宛先ポート番号を検出し、
中継するパケットがこの宛先ポートを使用する場合、ポ
ート番号の変換を行わずにアドレス変換を行うことによ
り、H.323プロトコルを用いた通信においてIPマ
スカレードを用いた中継を可能とすることができる。According to this configuration, the information in the layers above the transport layer is monitored, and the destination port number used in the transport layer when transmitting a packet is detected,
When the packet to be relayed uses this destination port, the H.264 packet is converted by performing the address conversion without converting the port number. In communication using the H.323 protocol, relay using IP masquerade can be enabled.
【0044】本発明の通信端末装置は、受信したパケッ
トに対してトランスポート層より上位の層で設定される
セッションの情報をモニタリングする第2モニタ手段
と、トランスポート層より上位の層で設定されるセッシ
ョンの情報を通信中継装置に送信する送信手段と、を具
備する構成を採る。The communication terminal device of the present invention comprises second monitor means for monitoring session information set in a layer above the transport layer for received packets, and a layer set above the transport layer. And transmitting means for transmitting information of the session to the communication relay device.
【0045】この構成によれば、受信したパケットにト
ランスポート層で使用する宛先ポート番号を通知する情
報が含まれている場合、通信中継装置にこの宛先ポート
を使用する旨を通知することができる。According to this structure, when the received packet includes the information for notifying the destination port number used in the transport layer, it is possible to notify the communication relay device that the destination port is used. .
【0046】本発明の通信方法は、セッションを定義す
る情報を変換して二つのネットワーク間でやり取りされ
るパケットを中継する通信において、トランスポート層
より上位の層で設定されるセッションに対してサービス
を定義する情報を変換せず、アドレスを定義する情報を
変換してパケットを中継するようにした。According to the communication method of the present invention, in communication for converting information defining a session and relaying a packet exchanged between two networks, a service is provided to a session set in a layer higher than a transport layer. The information defining the address is not converted, but the information defining the address is converted and the packet is relayed.
【0047】この方法によれば、トランスポート層より
上位の層で設定されたセッションの情報を、トランスポ
ート層で行うセッションの変換に反映させることによ
り、H.323プロトコルを用いた通信においてIPマ
スカレードを用いた中継を行うことができる。According to this method, the information of the session set in the layer higher than the transport layer is reflected in the conversion of the session performed in the transport layer, so that the H.264 standard is reflected. In communication using the H.323 protocol, relay using IP masquerade can be performed.
【0048】[0048]
【発明の実施の形態】本発明者は、H.323プロトコ
ルを用いた通信においてRTP等のストリームデータを
パケットで送信する場合にトランスポート層より上位の
層でセッションが設定され、トランスポート層で使用す
るサービスを識別する宛先ポート番号が、トランスポー
ト層より上位の層にて通知されることに注目し、本発明
をするに至った。BEST MODE FOR CARRYING OUT THE INVENTION When transmitting stream data such as RTP in packets in communication using the H.323 protocol, a session is set in a layer higher than the transport layer, and a destination port number for identifying a service used in the transport layer is a transport layer. The present invention has been completed, paying attention to the fact that notification is made by higher layers.
【0049】すなわち、本発明の骨子は、トランスポー
ト層より上位の層で設定されたセッションの情報を、ト
ランスポート層で行うセッションの変換に反映させるこ
と、具体的には、IPマスカレードを用いてアドレスと
ポート番号を変換する場合に、トランスポート層より上
位の層で通知される宛先ポート番号をIPマスカレード
テーブルに登録してアドレス変換の対象に設定し、パケ
ットの宛先アドレスの変換を行うことである。That is, the essence of the present invention is to reflect the session information set in a layer higher than the transport layer in the session conversion performed in the transport layer, specifically, by using IP masquerade. When translating an address and a port number, by registering the destination port number notified by a layer higher than the transport layer in the IP masquerade table and setting it as the target of the address translation, the destination address of the packet is translated. is there.
【0050】(実施の形態1)本実施の形態の通信中継
装置は、トランスポート層より上位の層の情報をモニタ
し、パケットを送信する場合にトランスポート層で使用
する宛先ポート番号を検出する。そして、本実施の形態
の通信中継装置は、この宛先ポートを使用する場合、ポ
ート番号の変換を行わずにアドレス変換を行い、パケッ
トを中継する。(Embodiment 1) The communication relay apparatus according to the present embodiment monitors information in layers above the transport layer and detects a destination port number used in the transport layer when transmitting a packet. . Then, when using this destination port, the communication relay device of the present embodiment relays the packet by translating the address without translating the port number.
【0051】図1は、本発明の実施の形態1に係る通信
中継装置の構成を示すブロック図である。図1の通信中
継装置100は、二つのネットワークでやり取りするパ
ケットのアドレスとポート番号を変換するルータ、ゲー
トウェイ等の装置である。図1の通信中継装置100
は、パケット送受信部101と、アドレス変換部102
と、パケット送受信部103と、モニタ部104と、更
新部105と、IPマスカレードテーブル106とから
主に構成される。FIG. 1 is a block diagram showing the configuration of the communication relay apparatus according to the first embodiment of the present invention. The communication relay device 100 of FIG. 1 is a device such as a router or a gateway that converts an address and a port number of a packet exchanged between two networks. The communication relay device 100 of FIG.
Is a packet transmission / reception unit 101 and an address conversion unit 102.
The packet transmission / reception unit 103, the monitor unit 104, the update unit 105, and the IP masquerade table 106 are mainly included.
【0052】図1において、パケット送受信部101
は、発信IP通信端末から送信されたパケットを受信し
て制御データを含むヘッダーをアドレス変換部102に
出力し、実データを伝送するフィールドであるペイロー
ドをパケット送受信部103に出力する。また、パケッ
ト送受信部101は、発信IP通信端末から送信された
パケットをモニタ部104に出力する。In FIG. 1, the packet transmitting / receiving unit 101
Receives a packet transmitted from the source IP communication terminal, outputs a header including control data to the address conversion unit 102, and outputs a payload, which is a field for transmitting actual data, to the packet transmission / reception unit 103. The packet transmitting / receiving unit 101 also outputs the packet transmitted from the originating IP communication terminal to the monitor unit 104.
【0053】アドレス変換部102は、IPマスカレー
ドテーブル106を参照してパケット送受信部101か
ら出力されたヘッダーに含まれる自アドレスと自ポート
番号を変換し、変換したヘッダーをパケット送受信部1
03に出力する。また、アドレス変換部102は、IP
マスカレードテーブル106を参照してパケット送受信
部103から出力されたヘッダーに含まれる自アドレス
と自ポート番号を変換し、変換したヘッダーをパケット
送受信部101に出力する。The address conversion unit 102 refers to the IP masquerade table 106 to convert the own address and the own port number included in the header output from the packet transmission / reception unit 101, and converts the converted header into the packet transmission / reception unit 1
Output to 03. Further, the address translation unit 102 uses the IP
By referring to the masquerading table 106, the own address and the own port number included in the header output from the packet transmitting / receiving unit 103 are converted, and the converted header is output to the packet transmitting / receiving unit 101.
【0054】パケット送受信部103は、パケット送受
信部101から出力されたペイロードにアドレス変換部
102から出力されたヘッダーを付加してパケットを生
成し、着信IP通信端末に出力する。また、着信IP通
信端末から出力されたパケットを受信して制御データを
含むヘッダーをアドレス変換部102に出力し、実デー
タを伝送するフィールドであるペイロードをパケット送
受信部101に出力する。The packet transmitting / receiving unit 103 adds the header output from the address converting unit 102 to the payload output from the packet transmitting / receiving unit 101 to generate a packet, and outputs the packet to the incoming IP communication terminal. It also receives a packet output from the incoming IP communication terminal, outputs a header including control data to the address conversion unit 102, and outputs a payload, which is a field for transmitting actual data, to the packet transmission / reception unit 101.
【0055】モニタ部104は、パケット送受信部10
1から出力されたパケットのメッセージ内容をモニタす
る。そして、モニタ部104は、トランスポート層より
上位の層でセッションが設定され、ポート番号の設定が
ある場合、当該ポート番号を更新部105に通知する。The monitor unit 104 includes a packet transmitting / receiving unit 10
The message contents of the packet output from 1 are monitored. Then, when the session is set in a layer higher than the transport layer and the port number is set, the monitor unit 104 notifies the updating unit 105 of the port number.
【0056】例えば、メッセージがASN.1(Abstra
ct Syntax Notation One)記述されている場合、モニタ
部104は、ASN.1のエンコーディング規則に従っ
てメッセージを解析する。For example, if the message is ASN. 1 (Abstra
ct Syntax Notation One), the monitor unit 104 determines that the ASN. Parses the message according to the encoding rule of 1.
【0057】トランスポート層より上位の層でセッショ
ンが設定され、ポート番号の設定があった場合、更新部
105は、当該パケットの自アドレスと当該ポート番号
の組み合わせと、宛先アドレスと当該ポート番号の組み
合わせを対応づけてIPマスカレードテーブル106に
記憶する。When the session is set in a layer higher than the transport layer and the port number is set, the updating unit 105 determines the combination of the own address and the port number of the packet, the destination address and the port number. The combinations are associated and stored in the IP masquerade table 106.
【0058】IPマスカレードテーブル106は、発信
IP通信端末が属するネットワークのセッションと、着
信IP通信端末が属するネットワークのセッションとを
対応づけて記憶するセッションテーブルである。具体的
には、IPマスカレードテーブル106は、発信IP通
信端末が属するネットワークのアドレスとポート番号の
組み合わせと、着信IP通信端末が属するネットワーク
のアドレスとポート番号の組み合わせとを対応づけて記
憶する。The IP masquerade table 106 is a session table for storing the session of the network to which the originating IP communication terminal belongs and the session of the network to which the terminating IP communication terminal belongs in association with each other. Specifically, the IP masquerade table 106 stores the combination of the address and port number of the network to which the originating IP communication terminal belongs and the combination of the address and port number of the network to which the terminating IP communication terminal belongs.
【0059】図2は、本実施の形態に係る通信中継装置
が備える変換テーブルの一例を示す図である。図2の変
換テーブルは、通信中継装置100のIPマスカレード
テーブル106が用いる変換テーブルである。図2の変
換テーブルは、プライベートLANのネットワークのア
ドレス番号とポート番号の組み合わせと、インターネッ
トのアドレス番号とポート番号の組み合わせとが一対一
で対応づけられている。FIG. 2 is a diagram showing an example of the conversion table provided in the communication relay device according to the present embodiment. The conversion table of FIG. 2 is a conversion table used by the IP masquerade table 106 of the communication relay device 100. In the conversion table of FIG. 2, a combination of a private LAN network address number and a port number is associated with a one-to-one correspondence with a combination of the Internet address number and a port number.
【0060】図2では、プライベートLAN内でのアド
レス192.168.0.50、ポート番号49152の組み合わせと、
インターネットでのアドレス133.52.26.100、ポート番
号61952の組み合わせとを対応づけている。例えば、プ
ライベートLAN内からインターネットに送信するパケ
ットの自アドレスと自ポート番号の組み合わせが、変換
テーブル内に登録されたアドレス192.168.0.50、ポート
番号49152である場合、アドレス変換部102は、自ア
ドレスと自ポート番号をアドレス133.52.26.100、ポー
ト番号61952に置き換えてパケットをインターネットに
送信する。In FIG. 2, the combination of the address 192.168.0.50 and the port number 49152 in the private LAN,
Corresponds to the combination of the address 133.52.26.100 and the port number 61952 on the Internet. For example, when the combination of the own address and the own port number of the packet transmitted from the private LAN to the Internet is the address 192.168.0.50 and the port number 49152 registered in the conversion table, the address conversion unit 102 determines that It replaces its own port number with the address 133.52.226.100 and port number 61952 and sends the packet to the Internet.
【0061】また、インターネットから通信中継装置1
00に送信されたパケットの宛先アドレスと宛先ポート
番号の組み合わせが、変換テーブル内に登録された133.
52.26.100、ポート番号61952である場合、アドレス変換
部102は、宛先アドレスと宛先ポート番号をアドレス
192.168.0.50、ポート番号49152に置き換えてパケット
をプライベートLANに送信する。Further, from the Internet, the communication relay device 1
The combination of the destination address and the destination port number of the packet transmitted to 00 is registered in the conversion table.133.
When the port number is 52.26.100 and the port number is 61952, the address conversion unit 102 sets the destination address and the destination port number to the address.
Replace 192.168.0.50 with port number 49152 and send the packet to the private LAN.
【0062】そして、モニタ部104が、パケットのメ
ッセージ内容をモニタし、トランスポート層より上位の
層でセッションが設定され、ポート番号の設定があった
場合、当該パケットの自アドレスと当該ポート番号の組
み合わせと、宛先アドレスと当該ポート番号の組み合わ
せを対応づけて変換テーブルに記憶する。Then, the monitor unit 104 monitors the message content of the packet, and if the session is set in a layer higher than the transport layer and the port number is set, the own address of the packet and the port number of the packet are set. The combination and the combination of the destination address and the port number are associated and stored in the conversion table.
【0063】図2では、プライベートLAN内でのアド
レス192.168.0.50、ポート番号65535の組み合わせと、
インターネットでのアドレス133.52.26.100、ポート番
号65535の組み合わせとを対応づけている。In FIG. 2, a combination of the address 192.168.0.50 and the port number 65535 in the private LAN,
Corresponds to the combination of the address 133.52.26.100 and the port number 65535 on the Internet.
【0064】例えば、プライベートLAN内からインタ
ーネットに送信するパケットの自アドレスと自ポート番
号の組み合わせが、変換テーブル内に登録されたアドレ
ス192.168.0.50、ポート番号65535である場合、アドレ
ス変換部102は、自アドレスをアドレス133.52.26.10
0に置き換え、自ポート番号をポート番号65535のまま変
更せずパケットをインターネットに送信する。For example, when the combination of the own address and the own port number of the packet transmitted from the private LAN to the Internet is the address 192.168.0.50 and the port number 65535 registered in the conversion table, the address conversion unit 102 Own address is 133.52.26.210
Replace it with 0 and send the packet to the Internet without changing its own port number as 65535.
【0065】次に、通信中継装置100の動作について
説明する。図3は、本実施の形態に係る通信中継装置の
動作の一例を示すフロー図である。ここでは、プライベ
ートLAN内の発信IP通信端末から送信されたパケッ
トをインターネットに送信する例について説明する。Next, the operation of the communication relay device 100 will be described. FIG. 3 is a flowchart showing an example of the operation of the communication relay device according to the present embodiment. Here, an example will be described in which a packet transmitted from a source IP communication terminal in a private LAN is transmitted to the Internet.
【0066】図3において、ステップ(以下「ST」と
いう)301では、パケット送受信部101が、発信I
P通信端末から送信されたパケットがあるか判断する。
そして、発信IP通信端末から送信されたパケットがあ
る場合、ST302に進み、パケットの解析を行う。S
T302では、モニタ部104が受信したパケットのメ
ッセージ内容を解析する。In FIG. 3, in step (hereinafter referred to as “ST”) 301, the packet transmission / reception unit 101 causes the transmission I
It is determined whether there is a packet transmitted from the P communication terminal.
If there is a packet transmitted from the originating IP communication terminal, the process proceeds to ST302 and the packet is analyzed. S
At T302, the message content of the packet received by the monitor unit 104 is analyzed.
【0067】ST303では、パケットのメッセージ内
容に、音声信号のリアルタイム送信等に使用するポート
番号の通知があるか否か判断する。そして、パケットの
メッセージ内容に、ポート番号の通知がある場合、ST
304に進み、変換テーブルの更新を行う。また、パケ
ットのメッセージ内容に、ポート番号の通知がない場
合、ST305に進み、パケットのアドレスとポート番
号の変換を行う。In ST303, it is determined whether or not the message content of the packet includes a notification of a port number used for real-time transmission of a voice signal or the like. If the message contents of the packet include notification of the port number, ST
In step 304, the conversion table is updated. If the message content of the packet does not indicate the port number, the process proceeds to ST305 and the packet address and port number are converted.
【0068】ST304では、更新部105が、パケッ
トのメッセージに含まれるポート番号の情報に基づいて
IPマスカレードテーブル106を更新する。ST30
5では、アドレス変換部102が、IPマスカレードテ
ーブルを参照して、プライベートLANのアドレス、ポ
ート番号の組み合わせとインターネットのアドレス、ポ
ート番号の組み合わせの対応情報を得る。In ST304, updating section 105 updates IP masquerade table 106 based on the port number information included in the packet message. ST30
In 5, the address conversion unit 102 refers to the IP masquerade table and obtains correspondence information of the combination of the private LAN address and port number and the Internet address and port number.
【0069】ST306では、アドレス変換部102
が、パケット送受信部103が受信したパケットの宛先
アドレスと、宛先ポート番号の組み合わせが、IPマス
カレードテーブル106を参照内容と一致する組み合わ
せがあるか否か、すなわちパケットのアドレス、ポート
番号を変換するか否か判断する。パケットのアドレス、
ポート番号を変換する場合、ST307に進み、パケッ
トのアドレス、ポート番号を変換しない場合、ST30
9に進む。In ST306, the address conversion unit 102
However, whether the combination of the destination address of the packet received by the packet transmitting / receiving unit 103 and the destination port number matches the reference content of the IP masquerade table 106, that is, whether the packet address and port number are converted. Judge whether or not. Packet address,
If the port number is to be converted, proceed to ST307. If the packet address and port number are not to be converted, ST30
Proceed to 9.
【0070】ST307では、アドレス変換部102が
パケットのアドレス、ポート番号を変換する。ST30
8では、パケット送受信部101がアドレス、ポート番
号を変換したパケットをプライベートLANに送信して
処理を終了する。ST309では、パケット送受信部1
01がパケットを破棄し、送信しない。そして処理を終
了する。In ST307, address translation section 102 translates the packet address and port number. ST30
In 8, the packet transmission / reception unit 101 transmits the packet with the converted address and port number to the private LAN, and the processing ends. In ST309, the packet transmitting / receiving unit 1
01 discards the packet and does not send it. Then, the process ends.
【0071】次に、上記記述の通信中継装置100を介
して音声通信を確立する手順について説明する。図4
は、本実施の形態に係る通信中継装置の信号のやり取り
の一例を示すシーケンス図である。Next, a procedure for establishing voice communication via the communication relay device 100 described above will be described. Figure 4
FIG. 6 is a sequence diagram showing an example of signal exchange of the communication relay device according to the present embodiment.
【0072】図4では、発信IP通信端末401のアド
レスをXI、着信IP通信端末402のグローバルアド
レスをYI、通信中継装置100のグローバルアドレス
をXI´とする。In FIG. 4, the source IP communication terminal 401 has an address XI, the destination IP communication terminal 402 has a global address YI, and the communication relay device 100 has a global address XI '.
【0073】最初に、発信IP通信端末401は、SETU
Pメッセージを着信IP通信端末402に送信する。こ
のSETUPメッセージは、発信IP通信端末401から着
信IP通信端末402に送信されるメッセージなので、
送信するパケットの自アドレスにXI、自ポート番号に
XP、宛先アドレスにYI、宛先ポート番号にYPが設
定されて送信される。以降同様に、発信IP通信端末4
01から着信IP通信端末402に送信されるパケット
は、自アドレスにXI、自ポート番号にXP、宛先アド
レスにYI、宛先ポート番号にYPが設定される。First, the originating IP communication terminal 401 is set to SETU.
The P message is transmitted to the incoming IP communication terminal 402. Since this SETUP message is a message transmitted from the originating IP communication terminal 401 to the terminating IP communication terminal 402,
The packet to be transmitted is transmitted with its own address set to XI, its own port number set to XP, the destination address set to YI, and the destination port number set to YP. Similarly thereafter, the originating IP communication terminal 4
The packet transmitted from 01 to the incoming IP communication terminal 402 has its own address set to XI, its own port number set to XP, the destination address set to YI, and the destination port number set to YP.
【0074】通信中継装置100は、このSETUPメッセ
ージのパケットの宛先アドレスからパケットがプライベ
ートLAN内の端末向けのパケットではなく、インター
ネット向けのパケットと判断する。そして、通信中継装
置100は、SETUPメッセージのパケットの自アドレス
をXIから通信中継装置100のアドレスであるXI´
に置き換え、SETUPメッセージの自ポート番号を通信中
継装置100が使用していないポート番号XP´に置き
換える。The communication relay device 100 determines from the destination address of the packet of this SETUP message that the packet is not for the terminals in the private LAN but for the Internet. Then, the communication relay device 100 determines that the own address of the SETUP message packet is XI ', which is the address of the communication relay device 100.
, And replaces its own port number in the SETUP message with a port number XP ′ that is not used by the communication relay device 100.
【0075】そして、通信中継装置100は、自アドレ
スと自ポート番号を置き換えたSETUPメッセージのパケ
ットを着信IP通信端末402に送信する。また、通信
中継装置100は、アドレスとポート番号の組み合わせ
(XI、XP)と、(XI´、XP´)とを対応づけて
IPマスカレードテーブルに記憶する。Then, the communication relay device 100 transmits the packet of the SETUP message in which the own address and the own port number are replaced to the incoming IP communication terminal 402. Further, the communication relay device 100 stores the combination (XI, XP) of the address and the port number and (XI ′, XP ′) in association with each other in the IP masquerade table.
【0076】以降、通信中継装置100は、発信IP通
信端末401から着信IP通信端末402に送信するメ
ッセージの内容を解析し、メッセージにRTPパケット
を送信する場合に使用するポート番号を相手端末に伝え
る内容が含まれているか否か判断する。具体的には、通
信中継装置100は、発信IP通信端末401から着信
IP通信端末402に送信するパケットの内容が、Open
LogicalChannelAckメッセージであるかどうか判断す
る。After that, the communication relay device 100 analyzes the content of the message transmitted from the source IP communication terminal 401 to the destination IP communication terminal 402, and informs the partner terminal of the port number used when transmitting the RTP packet in the message. Determine whether the content is included. Specifically, in the communication relay device 100, the content of the packet transmitted from the originating IP communication terminal 401 to the terminating IP communication terminal 402 is Open.
Determine if it is a LogicalChannelAck message.
【0077】着信IP通信端末402は、SETUPメッセ
ージを受信すると、着信処理を行う。SETUPメッセージ
の自アドレスは、通信中継装置100のグローバルアド
レスXI´なので、着信IP通信端末402は、通信中
継装置100にALERTメッセージを返信する。When the incoming IP communication terminal 402 receives the SETUP message, it performs incoming call processing. Since the own address of the SETUP message is the global address XI ′ of the communication relay device 100, the incoming IP communication terminal 402 returns the ALERT message to the communication relay device 100.
【0078】ここで、ALERTメッセージは、着信IP通
信端末402から通信中継装置100に送信されるメッ
セージなので、送信するパケットの自アドレスにYI、
自ポート番号にYP、宛先アドレスにXI´、宛先ポー
ト番号にXP´が設定されて送信される。以降同様に、
着信IP通信端末402から通信中継装置100に送信
されるパケットは、自アドレスにYI、自ポート番号に
YP、宛先アドレスにXI´、宛先ポート番号にXP´
が設定されて送信される。Here, since the ALERT message is a message transmitted from the incoming IP communication terminal 402 to the communication relay device 100, the own address of the packet to be transmitted is YI,
The self port number is set to YP, the destination address is set to XI ', and the destination port number is set to XP', and then transmitted. Similarly after that,
The packet transmitted from the incoming IP communication terminal 402 to the communication relay device 100 is YI for its own address, YP for its own port number, XI 'for the destination address, and XP' for the destination port number.
Is set and sent.
【0079】通信中継装置100は、IPマスカレード
テーブルを参照して、受信したALERTメッセージのパケ
ットの宛先アドレスと宛先ポート番号に対応する組み合
わせがあるか検索する。IPマスカレードテーブルにア
ドレスとポート番号の組み合わせ(XI、XP)と、
(XI´、XP´)とを対応づけてられているので、通
信中継装置100は、ALERTメッセージのパケットの宛
先アドレスをXI´からXIに置き換え、ALERTメッセ
ージのパケットの宛先ポート番号をXP´からXPに置
き換える。The communication relay device 100 refers to the IP masquerade table and searches for a combination corresponding to the destination address and the destination port number of the packet of the received ALERT message. The combination of address and port number (XI, XP) in the IP masquerade table,
(XI ′, XP ′) are associated with each other, the communication relay device 100 replaces the destination address of the packet of the ALERT message from XI ′ to XI, and sets the destination port number of the packet of the ALERT message from XP ′. Replace with XP.
【0080】そして、通信中継装置100は、宛先アド
レスと宛先ポート番号を置き換えたALERTメッセージの
パケットをプライベートLAN内の発信IP通信端末4
01に送信する。ALERTメッセージと同様に、CONNECTメ
ッセージも着信IP通信端末402から通信中継装置1
00を中継して発信IP通信端末401に送信される。Then, the communication relay device 100 transmits the packet of the ALERT message in which the destination address and the destination port number are replaced, to the originating IP communication terminal 4 in the private LAN.
Send to 01. Similar to the ALERT message, the CONNECT message is also transmitted from the incoming IP communication terminal 402 to the communication relay device 1
00 is relayed and transmitted to the originating IP communication terminal 401.
【0081】以降、通信中継装置100は、発信IP通
信端末401から着信IP通信端末402に送信される
メッセージのパケットの自アドレスと自ポート番号に対
してIPマスカレードテーブルを参照して変換し、イン
ターネットを介して着信IP通信端末402に送信す
る。After that, the communication relay device 100 refers to the IP masquerade table for conversion of the own address and the own port number of the packet of the message transmitted from the originating IP communication terminal 401 to the terminating IP communication terminal 402, and converts it to the Internet. To the incoming IP communication terminal 402 via.
【0082】また、通信中継装置100は、着信IP通
信端末402から通信中継装置100に送信されるメッ
セージのパケットの宛先アドレスと宛先ポート番号に対
してIPマスカレードテーブルを参照して変換し、プラ
イベートLAN内の発信IP通信端末401に送信す
る。Further, the communication relay device 100 converts the destination address and the destination port number of the packet of the message transmitted from the incoming IP communication terminal 402 to the communication relay device 100 by referring to the IP masquerade table to convert the private LAN. To the originating IP communication terminal 401.
【0083】上記処理により、TerminalCapabilitySet
メッセージ、TerminalCapabilitySetAckメッセージ、Op
enLogicalChannelメッセージ、及びOpenLogicalChannel
Ackメッセージについて、発信IP通信端末401と着
信IP通信端末402の間でやり取りされるパケットの
アドレスとポート番号が変換される。By the above processing, TerminalCapabilitySet
Message, TerminalCapabilitySetAck Message, Op
enLogicalChannel message and OpenLogicalChannel
Regarding the Ack message, the address and port number of the packet exchanged between the originating IP communication terminal 401 and the terminating IP communication terminal 402 are converted.
【0084】ここで、発信IP通信端末401と着信I
P通信端末402は、OpenLogicalChannelメッセージ及
びOpenLogicalChannelAckメッセージのやり取りによ
り、RTPパケットを送信する場合に使用するポート番
号を相手端末に伝える。Here, the source IP communication terminal 401 and the destination I
The P communication terminal 402 notifies the partner terminal of the port number used when transmitting the RTP packet by exchanging the OpenLogicalChannel message and the OpenLogicalChannelAck message.
【0085】発信IP通信端末401は、宛先ポート番
号をVYPに設定して音声信号をRTPパケットとして
通信中継装置100を介して着信IP通信端末402に
送信する。通信中継装置100は、このRTPパケット
の自アドレスをXIからXI´に変換し、自ポート番号
をXPからXP´に変換し、RTPパケットを着信IP
通信端末402に送信する。The originating IP communication terminal 401 sets the destination port number to VYP and transmits the voice signal as an RTP packet to the terminating IP communication terminal 402 via the communication relay device 100. The communication relay device 100 converts the own address of the RTP packet from XI to XI ′, the own port number from XP to XP ′, and the RTP packet to the incoming IP.
It is transmitted to the communication terminal 402.
【0086】そして、着信IP通信端末402は、宛先
ポート番号をVXPに設定して音声信号をRTPパケッ
トとして通信中継装置100に送信する。通信中継装置
100は、IPマスカレードテーブルを参照して、受信
したRTPパケットの宛先アドレスと宛先ポート番号に
対応する組み合わせがあるか検索する。Then, the incoming IP communication terminal 402 sets the destination port number to VXP and transmits the voice signal to the communication relay device 100 as an RTP packet. The communication relay device 100 refers to the IP masquerading table and searches for a combination corresponding to the destination address and the destination port number of the received RTP packet.
【0087】通信中継装置100は、このRTPパケッ
トの宛先アドレスをXI´からXIに変換する。そし
て、通信中継装置100は、宛先ポート番号をVXPの
まま変更しない。通信中継装置100は、宛先アドレス
を変更したRTPパケットをプライベートLAN内にあ
る発信IP通信端末401に送信する。The communication relay device 100 converts the destination address of this RTP packet from XI 'to XI. Then, the communication relay device 100 does not change the destination port number as VXP. The communication relay device 100 transmits the RTP packet whose destination address has been changed to the originating IP communication terminal 401 in the private LAN.
【0088】このように、本実施の形態の通信中継装置
によれば、トランスポート層より上位の層の情報をモニ
タし、パケットを送信する場合にトランスポート層で使
用する宛先ポート番号を検出し、中継するパケットがこ
の宛先ポートを使用する場合、ポート番号の変換を行わ
ずにアドレス変換を行うことにより、H.323プロト
コルを用いた通信においてIPマスカレードを用いた中
継を可能とすることができる。As described above, according to the communication relay device of the present embodiment, the information of the layers above the transport layer is monitored, and the destination port number used in the transport layer when transmitting a packet is detected. , When the packet to be relayed uses this destination port, the H.264 packet is converted by performing the address conversion without converting the port number. In communication using the H.323 protocol, relay using IP masquerade can be enabled.
【0089】なお、本実施の形態では、プライベートL
ANとインターネットの間を中継する例について説明し
ているがこれに限らず、二つのネットワーク間をやり取
りするパケットの中継であれば同様の効果が得られる。In this embodiment, the private L
Although an example of relaying between the AN and the Internet has been described, the present invention is not limited to this, and the same effect can be obtained as long as the packet is relayed between two networks.
【0090】(実施の形態2)本実施の形態の通信端末
装置は、受信したパケットにトランスポート層で使用す
る宛先ポート番号を通知する情報が含まれている場合、
本実施の形態の通信中継装置にこの宛先ポートを使用す
る旨を通知し、本実施の形態の通信中継装置は、この通
知を受信し、この宛先ポートを使用する場合、ポート番
号の変換を行わずにアドレス変換を行い、パケットを中
継する。(Embodiment 2) In the communication terminal apparatus of this embodiment, when the received packet includes information notifying the destination port number used in the transport layer,
The communication relay device of this embodiment is notified that this destination port will be used, and the communication relay device of this embodiment receives this notification, and when using this destination port, it converts the port number. Instead, it performs address translation and relays the packet.
【0091】図5は、本発明の実施の形態2に係る通信
端末装置の構成を示すブロック図である。但し、図1と
同一の構成となるものについては、図1と同一番号を付
し、詳しい説明を省略する。FIG. 5 is a block diagram showing the configuration of the communication terminal apparatus according to Embodiment 2 of the present invention. However, the same components as those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and detailed description thereof will be omitted.
【0092】最初に発信IP通信端末500について説
明する。図5においてネットワークインターフェース部
501は、通信中継装置から送信されたパケットを受信
して、パケットの内容を受信部502に出力する。受信
部502は、受信したパケットに含まれるメッセージを
解析して、解析結果を制御部503に出力する。First, the originating IP communication terminal 500 will be described. In FIG. 5, the network interface unit 501 receives the packet transmitted from the communication relay device and outputs the content of the packet to the receiving unit 502. The receiving unit 502 analyzes the message included in the received packet and outputs the analysis result to the control unit 503.
【0093】制御部503は、受信部502から出力さ
れたメッセージの解析結果に従って、RTPプロトコル
の通信開設手順を指示し、送信部504に送信するパケ
ットの内容を出力する。また、制御部503は、メッセ
ージの解析結果にRTPを用いたデータストリーミング
で使用する宛先ポートの番号の情報が含まれている場
合、宛先ポート番号の情報をポート番号情報送信部50
5に出力する。The control unit 503 instructs the communication opening procedure of the RTP protocol according to the analysis result of the message output from the receiving unit 502, and outputs the content of the packet to be transmitted to the transmitting unit 504. Further, when the analysis result of the message includes the information of the destination port number used in the data streaming using RTP, the control unit 503 outputs the information of the destination port number to the port number information transmitting unit 50.
Output to 5.
【0094】送信部504は、制御部503の指示に従
って送信するパケットの内容をネットワークインターフ
ェース部501に出力する。The transmission unit 504 outputs the contents of the packet to be transmitted according to the instruction of the control unit 503 to the network interface unit 501.
【0095】ポート番号情報送信部505は、制御部5
03から宛先ポート番号の情報を送信された場合、この
宛先ポート番号を、RTPを用いたデータストリーミン
グで使用する旨を情報としてネットワークインターフェ
ース部501を介して通信中継装置700に出力する。The port number information transmitting unit 505 is the control unit 5
When the information about the destination port number is transmitted from 03, the destination port number is output to the communication relay device 700 via the network interface unit 501 as information indicating that the destination port number is used in data streaming using RTP.
【0096】上記発信IP通信端末500の動作につい
てフロー図を用いて説明する。図6は、本実施の形態に
係る通信端末装置の動作を示すフロー図である。ここで
は、プライベートLAN内の発信IP通信端末から送信
されたパケットをインターネットに送信する例について
説明する。The operation of the originating IP communication terminal 500 will be described using a flow chart. FIG. 6 is a flowchart showing the operation of the communication terminal apparatus according to this embodiment. Here, an example will be described in which a packet transmitted from a source IP communication terminal in a private LAN is transmitted to the Internet.
【0097】図6において、ST601では、ネットワ
ークインターフェース部501が、通信中継装置から送
信されたパケットがあるか判断する。そして、通信中継
装置から送信されたパケットがある場合、ST302に
進み、パケットの解析を行う。ST602では、受信部
502が受信したパケットのメッセージ内容を解析す
る。In FIG. 6, in ST601, network interface section 501 determines whether there is a packet transmitted from the communication relay device. Then, if there is a packet transmitted from the communication relay device, the process proceeds to ST302 and the packet is analyzed. In ST602, the message content of the packet received by receiving section 502 is analyzed.
【0098】ST603では、制御部503がパケット
のメッセージ内容に、音声信号のリアルタイム送信等に
使用するポート番号の通知があるか否か判断する。そし
て、パケットのメッセージ内容に、ポート番号の通知が
ある場合、ST604に進み、通信中継装置にポート番
号の通知を行う。また、パケットのメッセージ内容に、
ポート番号の通知がない場合、ST605に進み、パケ
ット送信を行う。In ST603, control section 503 determines whether or not the message contents of the packet include notification of a port number used for real-time transmission of a voice signal or the like. If the message content of the packet includes the notification of the port number, the process proceeds to ST604, and the communication relay device is notified of the port number. Also, in the message content of the packet,
If there is no notification of the port number, the process proceeds to ST605 and packet transmission is performed.
【0099】ST604では、ポート番号情報送信部5
05が、音声信号のリアルタイム送信等に使用する宛先
ポート番号の情報を、ネットワークインターフェース部
501を介して通信中継装置に出力する。ST605で
は、送信部504が、パケットを送信する。In ST604, port number information transmitting section 5
05 outputs the information of the destination port number used for the real-time transmission of the audio signal to the communication relay device via the network interface unit 501. In ST605, transmitting section 504 transmits the packet.
【0100】このように、本実施の形態の通信端末装置
は、受信したパケットにトランスポート層で使用する宛
先ポート番号を通知する情報が含まれている場合、本実
施の形態の通信中継装置にこの宛先ポートを使用する旨
を通知することができる。As described above, when the received packet includes the information notifying the destination port number used in the transport layer, the communication terminal apparatus of the present embodiment is It is possible to notify that this destination port will be used.
【0101】次に、本実施の形態の通信中継装置につい
て説明する。図7は、本実施の形態に係る通信中継装置
の構成を示すブロック図である。但し、図1と同一の構
成となるものについては、図1と同一番号を付し、詳し
い説明を省略する。Next, the communication relay device of the present embodiment will be described. FIG. 7 is a block diagram showing the configuration of the communication relay device according to the present embodiment. However, the same components as those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and detailed description thereof will be omitted.
【0102】図7の通信中継装置700は、パケット送
受信部701と、ポート番号情報送信部702とを具備
し、発信IP通信端末500から通知された宛先ポート
を使用の情報に基づいて、この宛先ポートを使用する場
合、ポート番号の変換を行わずにアドレス変換を行い、
パケットを中継する点が図1の通信中継装置と異なる。The communication relay device 700 of FIG. 7 comprises a packet transmission / reception unit 701 and a port number information transmission unit 702, and based on the information of the use of the destination port notified from the originating IP communication terminal 500, this destination When using a port, perform address translation without performing port number translation,
The point that a packet is relayed is different from the communication relay device of FIG.
【0103】図7において、パケット送受信部701
は、発信IP通信端末500から送信されたパケットを
受信して制御データを含むヘッダーをアドレス変換部1
02に出力し、実データを伝送するフィールドであるペ
イロードをパケット送受信部103に出力する。また、
パケット送受信部701は、発信IP通信端末500か
ら送信されたパケットをポート番号情報送信部702に
出力する。In FIG. 7, a packet transmission / reception unit 701.
Receives the packet transmitted from the originating IP communication terminal 500, and converts the header including the control data into the address conversion unit 1
02, and the payload, which is a field for transmitting actual data, is output to the packet transmitting / receiving unit 103. Also,
The packet transmitting / receiving unit 701 outputs the packet transmitted from the originating IP communication terminal 500 to the port number information transmitting unit 702.
【0104】ポート番号情報送信部702は、パケット
から音声信号のリアルタイム送信等に使用する宛先ポー
ト番号の情報を取り出して更新部105に出力する。The port number information transmitting section 702 extracts the information of the destination port number used for real-time transmission of the voice signal from the packet and outputs it to the updating section 105.
【0105】更新部105は、ポート番号情報送信部7
02から音声信号のリアルタイム送信等に使用する宛先
ポート番号の情報が出力された場合、当該パケットの自
アドレスと当該ポート番号の組み合わせと、宛先アドレ
スと当該ポート番号の組み合わせを対応づけてIPマス
カレードテーブル106に記憶する。The updating unit 105 includes the port number information transmitting unit 7
When the information of the destination port number used for real-time transmission of the voice signal is output from 02, the IP masquerade table is created by associating the combination of the own address of the packet and the port number with the combination of the destination address and the port number. It is stored in 106.
【0106】アドレス変換部102は、IPマスカレー
ドテーブル106を参照し、パケット送受信部701か
ら出力されたヘッダーに含まれる自アドレスと自ポート
番号を変換してパケット送受信部103に出力する。ま
た、アドレス変換部102は、IPマスカレードテーブ
ル106を参照し、パケット送受信部103から出力さ
れたヘッダーに含まれる自アドレスと自ポート番号を変
換してパケット送受信部701に出力する。The address conversion unit 102 refers to the IP masquerade table 106, converts the own address and the own port number included in the header output from the packet transmission / reception unit 701, and outputs them to the packet transmission / reception unit 103. Further, the address conversion unit 102 refers to the IP masquerade table 106, converts the own address and the own port number included in the header output from the packet transmission / reception unit 103, and outputs them to the packet transmission / reception unit 701.
【0107】パケット送受信部103は、パケット送受
信部701から出力されたペイロードにアドレス変換部
102から出力されたヘッダーを付加してパケットを生
成し、着信IP通信端末に出力する。また、着信IP通
信端末から出力されたパケットを受信して制御データを
含むヘッダーをアドレス変換部102に出力し、実デー
タを伝送するフィールドであるペイロードをパケット送
受信部701に出力する。The packet transmission / reception unit 103 adds the header output from the address conversion unit 102 to the payload output from the packet transmission / reception unit 701 to generate a packet, and outputs the packet to the incoming IP communication terminal. It also receives a packet output from the incoming IP communication terminal, outputs a header containing control data to the address conversion unit 102, and outputs a payload, which is a field for transmitting actual data, to the packet transmission / reception unit 701.
【0108】IPマスカレードテーブル106は、発信
IP通信端末が属するネットワークのアドレスとポート
番号の組み合わせと、着信IP通信端末が属するネット
ワークのアドレスとポート番号の組み合わせとを対応づ
けて記憶する。The IP masquerading table 106 stores the combination of the address and port number of the network to which the originating IP communication terminal belongs and the combination of the address and port number of the network to which the terminating IP communication terminal belongs.
【0109】次に、通信中継装置700の動作について
説明する。図8は、本実施の形態に係る通信中継装置の
動作の一例を示すフロー図である。ここでは、プライベ
ートLAN内の発信IP通信端末から送信されたパケッ
トをインターネットに送信する例について説明する。Next, the operation of communication relay apparatus 700 will be described. FIG. 8 is a flow chart showing an example of the operation of the communication relay device according to the present embodiment. Here, an example will be described in which a packet transmitted from a source IP communication terminal in a private LAN is transmitted to the Internet.
【0110】図8において、ST801では、パケット
送受信部701が、発信IP通信端末500から送信さ
れたパケットがあるか判断する。そして、発信IP通信
端末500から送信されたパケットがある場合、ST8
02に進み、パケットの解析を行う。ST802では、
ポート番号情報送信部702が発信IP通信端末500
から送信されたパケットから音声信号のリアルタイム送
信等に使用する宛先ポート番号の情報を取り出してポー
ト番号情報送信部702に出力する。In ST801 in FIG. 8, packet transmitting / receiving section 701 determines whether there is a packet transmitted from originating IP communication terminal 500. If there is a packet transmitted from the originating IP communication terminal 500, ST8
In step 02, the packet is analyzed. In ST802,
The port number information transmitting unit 702 makes the originating IP communication terminal 500
Information of a destination port number used for real-time transmission of a voice signal or the like is taken out from the packet transmitted from and output to the port number information transmitting unit 702.
【0111】ST803では、パケットのメッセージ内
容に、音声信号のリアルタイム送信等に使用するポート
番号の通知があるか否か判断する。そして、パケットの
メッセージ内容に、ポート番号の通知がある場合、ST
804に進み、変換テーブルの更新を行う。また、パケ
ットのメッセージ内容に、ポート番号の通知がない場
合、ST805に進み、パケットのアドレスとポート番
号の変換を行う。In ST803, it is determined whether or not the message contents of the packet include notification of a port number used for real-time transmission of a voice signal. If the message contents of the packet include notification of the port number, ST
In step 804, the conversion table is updated. If the message content of the packet does not indicate the port number, the process proceeds to ST805 and the packet address and the port number are converted.
【0112】ST804では、更新部105が、パケッ
トのメッセージに含まれる使用するポート番号の情報に
基づいてIPマスカレードテーブル106を更新する。
ST805では、アドレス変換部102が、IPマスカ
レードテーブルを参照して、プライベートLANのアド
レス、ポート番号の組み合わせとインターネットのアド
レス、ポート番号の組み合わせの対応情報を得る。In ST804, updating section 105 updates IP masquerading table 106 based on the information of the port number used in the message of the packet.
In ST805, address conversion section 102 refers to the IP masquerade table and obtains correspondence information of the combination of the private LAN address and port number and the Internet address and port number.
【0113】ST806では、アドレス変換部102
が、パケット送受信部103が受信したパケットの宛先
アドレスと、宛先ポート番号の組み合わせが、IPマス
カレードテーブル106を参照内容と一致する組み合わ
せがあるか否か、すなわちパケットのアドレス、ポート
番号を変換するか否か判断する。パケットのアドレス、
ポート番号を変換する場合、ST807に進み、パケッ
トのアドレス、ポート番号を変換しない場合、ST80
9に進む。In ST806, the address conversion unit 102
However, whether the combination of the destination address of the packet received by the packet transmitting / receiving unit 103 and the destination port number matches the reference content of the IP masquerade table 106, that is, whether the packet address and port number are converted. Judge whether or not. Packet address,
If the port number is to be converted, proceed to ST807. If the packet address and port number are not to be converted, ST80.
Proceed to 9.
【0114】ST807では、アドレス変換部102が
パケットのアドレス、ポート番号を変換する。ST80
8では、パケット送受信部701がアドレス、ポート番
号を変換したパケットをプライベートLANに送信して
処理を終了する。ST809では、パケット送受信部7
01がパケットを破棄し、送信しない。そして処理を終
了する。In ST807, address conversion section 102 converts the address and port number of the packet. ST80
In 8, the packet transmitting / receiving unit 701 transmits the packet in which the address and the port number are converted to the private LAN and ends the processing. In ST809, the packet transmitting / receiving unit 7
01 discards the packet and does not send it. Then, the process ends.
【0115】次に、上記記述の通信中継装置700を介
して音声通信を確立する手順について説明する。図9
は、本実施の形態に係る通信中継装置の信号のやり取り
の一例を示すシーケンス図である。Next, a procedure for establishing voice communication via the communication relay device 700 described above will be described. Figure 9
FIG. 6 is a sequence diagram showing an example of signal exchange of the communication relay device according to the present embodiment.
【0116】図9では、発信IP通信端末500のアド
レスをXI、着信IP通信端末402のグローバルアド
レスをYI、通信中継装置700のグローバルアドレス
をXI´とする。In FIG. 9, the source IP communication terminal 500 has an address XI, the destination IP communication terminal 402 has a global address YI, and the communication relay device 700 has a global address XI '.
【0117】最初に、発信IP通信端末500は、SETU
Pメッセージを着信IP通信端末402に送信する。こ
のSETUPメッセージは、発信IP通信端末500から着
信IP通信端末402に送信されるメッセージなので、
パケットの自アドレスにXI、自ポート番号にXP、宛
先アドレスにYI、宛先ポート番号にYPが設定されて
送信される。以降同様に、発信IP通信端末500から
着信IP通信端末402に送信されるパケットは、自ア
ドレスにXI、自ポート番号にXP、宛先アドレスにY
I、宛先ポート番号にYPが設定される。First, the originating IP communication terminal 500 sets the SETU
The P message is transmitted to the incoming IP communication terminal 402. Since this SETUP message is a message transmitted from the originating IP communication terminal 500 to the terminating IP communication terminal 402,
The packet is transmitted with its own address set to XI, its own port number set to XP, the destination address set to YI, and the destination port number set to YP. Similarly, thereafter, the packet transmitted from the originating IP communication terminal 500 to the terminating IP communication terminal 402 is XI for its own address, XP for its own port number, and Y for its destination address.
I, YP is set to the destination port number.
【0118】通信中継装置700は、このSETUPメッセ
ージの宛先アドレスからメッセージがプライベートLA
N内の端末向けのメッセージではなく、インターネット
向けのメッセージと判断する。そして、通信中継装置7
00は、SETUPメッセージのパケットの自アドレスをX
Iから通信中継装置700のアドレスであるXI´に置
き換え、SETUPメッセージのパケットの自ポート番号を
通信中継装置700が使用していないポート番号XP´
に置き換える。The communication relay device 700 sends a message from the destination address of this SETUP message to the private LA.
It is determined that the message is not for the terminals in N but for the Internet. Then, the communication relay device 7
00 indicates the own address of the packet of the SETUP message as X
I is replaced with XI ′ which is the address of the communication relay device 700, and the own port number of the packet of the SETUP message is a port number XP ′ that is not used by the communication relay device 700.
Replace with.
【0119】そして、通信中継装置700は、自アドレ
スと自ポート番号を置き換えたSETUPメッセージを着信
IP通信端末402に送信する。また、通信中継装置7
00は、アドレスとポート番号の組み合わせ(XI、X
P)と、(XI´、XP´)とを対応づけてIPマスカ
レードテーブルに記憶する。Then, the communication relay device 700 transmits a SETUP message in which the own address and the own port number are replaced to the incoming IP communication terminal 402. In addition, the communication relay device 7
00 is a combination of address and port number (XI, X
P) and (XI ′, XP ′) are associated with each other and stored in the IP masquerade table.
【0120】着信IP通信端末402は、SETUPメッセ
ージを受信すると、着信処理を行う。SETUPメッセージ
の自アドレスは、通信中継装置700のグローバルアド
レスXI´なので、着信IP通信端末402は、通信中
継装置700にALERTメッセージを返信する。When the incoming IP communication terminal 402 receives the SETUP message, it performs incoming processing. Since the own address of the SETUP message is the global address XI ′ of the communication relay device 700, the incoming IP communication terminal 402 returns the ALERT message to the communication relay device 700.
【0121】ここで、ALERTメッセージは、着信IP通
信端末402から通信中継装置700に送信されるメッ
セージなので、自アドレスにYI、自ポート番号にY
P、宛先アドレスにXI´、宛先ポート番号にXP´が
設定されて送信される。以降同様に、着信IP通信端末
402から通信中継装置700に送信されるメッセージ
は、自アドレスにYI、自ポート番号にYP、宛先アド
レスにXI´、宛先ポート番号にXP´が設定されて送
信される。Since the ALERT message is a message transmitted from the incoming IP communication terminal 402 to the communication relay device 700, YI is used as its own address and Y is used as its own port number.
P, XI 'is set in the destination address, and XP' is set in the destination port number, and the packet is transmitted. Similarly, a message transmitted from the incoming IP communication terminal 402 to the communication relay device 700 is transmitted with the own address set to YI, the own port number set to YP, the destination address set to XI ', and the destination port number set to XP'. It
【0122】通信中継装置700は、IPマスカレード
テーブルを参照して、受信したALERTメッセージの宛先
アドレスと宛先ポート番号に対応する組み合わせがある
か検索する。The communication relay device 700 refers to the IP masquerading table and searches for a combination corresponding to the destination address and destination port number of the received ALERT message.
【0123】IPマスカレードテーブルにアドレスとポ
ート番号の組み合わせ(XI、XP)と、(XI´、X
P´)とを対応づけてられているので、通信中継装置7
00は、ALERTメッセージの宛先アドレスをXI´から
XIに置き換え、ALERTメッセージの宛先ポート番号を
XP´からXPに置き換える。In the IP masquerade table, the combination of address and port number (XI, XP) and (XI ', X
P ′) is associated with the communication relay device 7
00 replaces the destination address of the ALERT message from XI ′ to XI and replaces the destination port number of the ALERT message from XP ′ to XP.
【0124】そして、通信中継装置700は、宛先アド
レスと宛先ポート番号を置き換えたALERTメッセージを
プライベートLAN内の発信IP通信端末500に送信
する。ALERTメッセージと同様に、CONNECTメッセージも
着信IP通信端末402から通信中継装置700を中継
して発信IP通信端末500に送信される。Then, the communication relay device 700 transmits the ALERT message in which the destination address and the destination port number are replaced to the originating IP communication terminal 500 in the private LAN. Similar to the ALERT message, the CONNECT message is also transmitted from the incoming IP communication terminal 402 to the outgoing IP communication terminal 500 through the communication relay device 700.
【0125】以降、通信中継装置700は、発信IP通
信端末500から着信IP通信端末402に送信される
メッセージの自アドレスと自ポート番号に対してIPマ
スカレードテーブルを参照して変換し、インターネット
を介して着信IP通信端末402に送信する。Thereafter, the communication relay device 700 refers to the IP masquerade table to convert the own address and the own port number of the message transmitted from the originating IP communication terminal 500 to the terminating IP communication terminal 402, and converts the message via the Internet. To the incoming IP communication terminal 402.
【0126】また、通信中継装置700は、着信IP通
信端末402から通信中継装置700に送信されるメッ
セージの宛先アドレスと宛先ポート番号に対してIPマ
スカレードテーブルを参照して変換し、プライベートL
AN内の発信IP通信端末500に送信する。Further, the communication relay device 700 converts the destination address and the destination port number of the message transmitted from the incoming IP communication terminal 402 to the communication relay device 700 by referring to the IP masquerade table and converting the private L
It is transmitted to the originating IP communication terminal 500 in the AN.
【0127】上記処理により、TerminalCapabilitySet
メッセージ、TerminalCapabilitySetAckメッセージ、Op
enLogicalChannelメッセージ、及びOpenLogicalChannel
Ackメッセージに対して、発信IP通信端末500と着
信IP通信端末402の間でやり取りされるメッセージ
のパケットのアドレスとポート番号が変換される。By the above processing, TerminalCapabilitySet
Message, TerminalCapabilitySetAck Message, Op
enLogicalChannel message and OpenLogicalChannel
For the Ack message, the address and port number of the packet of the message exchanged between the originating IP communication terminal 500 and the terminating IP communication terminal 402 are converted.
【0128】ここで、発信IP通信端末500と着信I
P通信端末402は、OpenLogicalChannelメッセージ及
びOpenLogicalChannelAckメッセージのやり取りによ
り、RTPパケットを送信する場合に使用するポート番
号を相手端末に伝える。Here, the outgoing IP communication terminal 500 and the incoming call I
The P communication terminal 402 notifies the partner terminal of the port number used when transmitting the RTP packet by exchanging the OpenLogicalChannel message and the OpenLogicalChannelAck message.
【0129】そして、発信IP通信端末500は、通信
中継装置700にRTPで使用するポート番号の情報の
メッセージを送信する。通信中継装置700は、このメ
ッセージに従いIPマスカレードテーブルを更新する。Then, the originating IP communication terminal 500 transmits a message of information on the port number used in RTP to the communication relay device 700. The communication relay device 700 updates the IP masquerade table according to this message.
【0130】発信IP通信端末500は、宛先ポート番
号をVYPに設定して音声信号をRTPパケットとして
通信中継装置700を介して着信IP通信端末402に
送信する。通信中継装置700は、このRTPパケット
の自アドレスをXIからXI´に変換し、自ポート番号
をXPからXP´に変換し、RTPパケットを着信IP
通信端末402に送信する。The originating IP communication terminal 500 sets the destination port number to VYP and transmits the voice signal as an RTP packet to the terminating IP communication terminal 402 via the communication relay device 700. The communication relay device 700 converts the own address of the RTP packet from XI to XI ′, the own port number from XP to XP ′, and the RTP packet to the incoming IP.
It is transmitted to the communication terminal 402.
【0131】そして、着信IP通信端末402は、宛先
ポート番号をVXPに設定して音声信号をRTPパケッ
トとして通信中継装置700に送信する。通信中継装置
700は、IPマスカレードテーブルを参照して、受信
したRTPパケットの宛先アドレスと宛先ポート番号に
対応する組み合わせがあるか検索する。Then, the incoming IP communication terminal 402 sets the destination port number to VXP and transmits the voice signal as an RTP packet to the communication relay device 700. The communication relay device 700 refers to the IP masquerade table and searches for a combination corresponding to the destination address and the destination port number of the received RTP packet.
【0132】通信中継装置700は、このRTPパケッ
トの宛先アドレスをXI´からXIに変換する。そし
て、通信中継装置700は、宛先ポート番号をVXPの
まま変更しない。通信中継装置700は、宛先アドレス
を変更したRTPパケットをプライベートLAN内にあ
る発信IP通信端末500に送信する。The communication relay device 700 converts the destination address of this RTP packet from XI 'to XI. Then, the communication relay device 700 does not change the destination port number as VXP. The communication relay device 700 transmits the RTP packet with the destination address changed to the originating IP communication terminal 500 in the private LAN.
【0133】このように、本実施の形態の通信中継装置
によれば、通信端末装置から通知された宛先ポートを使
用の情報に基づいて、この宛先ポートを使用する場合、
ポート番号の変換を行わずにアドレス変換を行い、パケ
ットを中継することにより、H.323プロトコルを用
いた通信においてIPマスカレードを用いた中継を可能
とすることができる。As described above, according to the communication relay device of the present embodiment, when this destination port is used based on the use information of the destination port notified from the communication terminal device,
By translating the address without translating the port number and relaying the packet, H.264. In communication using the H.323 protocol, relay using IP masquerade can be enabled.
【0134】なお、本実施の形態では、プライベートL
ANとインターネットの間を中継する例について説明し
ているがこれに限らず、二つのネットワーク間をやり取
りするパケットの中継であれば同様の効果が得られる。In the present embodiment, private L
Although an example of relaying between the AN and the Internet has been described, the present invention is not limited to this, and the same effect can be obtained as long as the packet is relayed between two networks.
【0135】[0135]
【発明の効果】以上説明したように、本発明の通信中継
装置及び通信方法によれば、トランスポート層より上位
の層で設定されたセッションの情報を、トランスポート
層で行うセッションの変換に反映させることにより、
H.323プロトコルを用いた通信においてIPマスカ
レードを用いた中継を行うことができる。As described above, according to the communication relay device and the communication method of the present invention, the session information set in the layer higher than the transport layer is reflected in the session conversion performed in the transport layer. By letting
H. In communication using the H.323 protocol, relay using IP masquerade can be performed.
【図1】本発明の実施の形態1に係る通信中継装置の構
成を示すブロック図FIG. 1 is a block diagram showing a configuration of a communication relay device according to a first embodiment of the present invention.
【図2】上記実施の形態に係る通信中継装置が備える変
換テーブルの一例FIG. 2 is an example of a conversion table provided in the communication relay device according to the above embodiment.
【図3】上記実施の形態に係る通信中継装置の動作の一
例を示すフロー図FIG. 3 is a flowchart showing an example of the operation of the communication relay device according to the above embodiment.
【図4】上記実施の形態に係る通信中継装置の信号のや
り取りの一例を示すシーケンス図FIG. 4 is a sequence diagram showing an example of exchange of signals of the communication relay device according to the above embodiment.
【図5】本発明の実施の形態2に係る通信端末装置の構
成を示すブロック図FIG. 5 is a block diagram showing a configuration of a communication terminal apparatus according to Embodiment 2 of the present invention.
【図6】上記実施の形態に係る通信端末装置の動作を示
すフロー図FIG. 6 is a flowchart showing the operation of the communication terminal apparatus according to the above embodiment.
【図7】上記実施の形態に係る通信中継装置の構成を示
すブロック図FIG. 7 is a block diagram showing a configuration of a communication relay device according to the above embodiment.
【図8】上記実施の形態に係る通信中継装置の動作の一
例を示すフロー図FIG. 8 is a flowchart showing an example of the operation of the communication relay device according to the above embodiment.
【図9】上記実施の形態に係る通信中継装置の信号のや
り取りの一例を示すシーケンス図FIG. 9 is a sequence diagram showing an example of exchange of signals of the communication relay device according to the above embodiment.
【図10】H.323プロトコルの構成を示す模式図FIG. Schematic diagram showing the configuration of the H.323 protocol
【図11】H.323プロトコルを用いた通信手順の一
例を示すシーケンス図11: H. Sequence diagram showing an example of a communication procedure using the H.323 protocol
【図12】H.323プロトコルを用いた通信手順の一
例を示すシーケンス図FIG. 12: H. Sequence diagram showing an example of a communication procedure using the H.323 protocol
101、103、701 パケット送受信部 102 アドレス変換部 104 モニタ部 105 更新部 106 IPマスカレードテーブル 501 ネットワークインターフェース部 502 受信部 503 制御部 504 送信部 505、702 ポート番号情報送信部 101, 103, 701 Packet transmitter / receiver 102 address converter 104 monitor 105 Update Department 106 IP Masquerade Table 501 network interface section 502 Receiver 503 control unit 504 transmitter 505 and 702 Port number information transmitter
───────────────────────────────────────────────────── フロントページの続き (72)発明者 小林 和真 岡山県倉敷市連島町西之浦2640 倉敷芸術 科学大学産業科学技術学部内 Fターム(参考) 5B085 AC11 BC00 5B089 GA31 GB01 HB10 KB06 KC15 KC53 KG03 KG05 5K033 AA05 BA14 CB09 DB18 EA02 EC04 ─────────────────────────────────────────────────── ─── Continued front page (72) Inventor Kazuma Kobayashi 2640 Nishinoura, Renjima-cho, Kurashiki City, Okayama Prefecture Kurashiki Arts Faculty of Industrial Science and Technology, University of Science F-term (reference) 5B085 AC11 BC00 5B089 GA31 GB01 HB10 KB06 KC15 KC53 KG03 KG05 5K033 AA05 BA14 CB09 DB18 EA02 EC04
Claims (5)
と第2ネットワークで使用するセッションとを対応づけ
たセッションテーブルを記憶する記憶手段と、前記セッ
ションテーブルに従って、第1及び第2のネットワーク
で使用するセッションを相互に変換する変換手段と、ト
ランスポート層より上位の層で設定されるセッションの
情報をモニタリングするモニタ手段と、トランスポート
層より上位の層で設定されたセッションがモニタされた
場合、当該セッションを第1及び第2ネットワーク共通
のサービスとするセッションとしてセッションテーブル
を更新する更新手段と、を具備することを特徴とする通
信中継装置。1. Storage means for storing a session table in which a session used in the first network and a session used in the second network are associated with each other, and sessions used in the first and second networks according to the session table. Conversion means for converting between each other, a monitoring means for monitoring information of a session set in a layer higher than the transport layer, and a session set in a layer higher than the transport layer, if the session concerned is monitored. And a means for updating the session table as a session having the service as a service common to the first and second networks.
タしてトランスポート層より上位の層で設定されるセッ
ションの情報を抽出することを特徴とする請求項1に記
載の通信中継装置。2. The communication relay device according to claim 1, wherein the monitoring unit monitors the received packet and extracts information on a session set in a layer above the transport layer.
ネットワークで使用するアドレスとポート番号の組み合
わせと第2ネットワークで使用するアドレスとポート番
号の組み合わせを記憶し、変換手段は、前記セッション
テーブルに従って、第1及び第2のネットワークで使用
するアドレスとポート番号を相互に変換し、モニタ手段
は、トランスポート層より上位の層で設定されるセッシ
ョンの情報をモニタリングし、更新手段は、当該セッシ
ョンについて第1ネットワークで使用するポート番号と
第2ネットワークで使用するポート番号とを同じ番号で
対応づけて更新することを特徴とする請求項1または請
求項2に記載の通信中継装置。3. The first storage means is provided in the session table.
The combination of the address and the port number used in the network and the combination of the address and the port number used in the second network are stored, and the conversion means stores the address and the port number used in the first and second networks according to the session table. And the monitoring unit monitors information of a session set in a layer higher than the transport layer, and the updating unit uses the port number used in the first network and the second network for the session. The communication relay device according to claim 1 or 2, wherein the port number and the port number are associated with each other and updated.
ト層より上位の層で設定されるセッションの情報をモニ
タリングする第2モニタ手段と、トランスポート層より
上位の層で設定されるセッションの情報を通信中継装置
に送信する送信手段と、を具備することを特徴とする通
信端末装置。4. The second monitoring means for monitoring the information of the session set in the layer above the transport layer for the received packet, and the information of the session set in the layer above the transport layer are communicated. A communication terminal device, comprising: a transmission unit that transmits to a relay device.
つのネットワーク間でやり取りされるパケットを中継す
る通信において、トランスポート層より上位の層で設定
されるセッションに対してサービスを定義する情報を変
換せず、アドレスを定義する情報を変換してパケットを
中継することを特徴とする通信方法。5. In communication for converting information defining a session and relaying packets exchanged between two networks, information defining a service is provided for a session set in a layer higher than a transport layer. A communication method characterized in that the information defining an address is converted and the packet is relayed without being converted.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001273398A JP2003085063A (en) | 2001-09-10 | 2001-09-10 | Communication relay device and communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001273398A JP2003085063A (en) | 2001-09-10 | 2001-09-10 | Communication relay device and communication method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2003085063A true JP2003085063A (en) | 2003-03-20 |
Family
ID=19098620
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001273398A Pending JP2003085063A (en) | 2001-09-10 | 2001-09-10 | Communication relay device and communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2003085063A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005111826A1 (en) * | 2004-05-19 | 2005-11-24 | Matsushita Electric Industrial Co., Ltd. | Communication system |
| JP2007329951A (en) * | 2007-07-17 | 2007-12-20 | Matsushita Electric Ind Co Ltd | Authentication server, network use terminal, secondary terminal, and communication method |
| US7643479B2 (en) | 2003-12-17 | 2010-01-05 | Nec Infrontia Corporation | Communication transfer apparatus and communication transfer method |
| KR101491692B1 (en) | 2013-12-23 | 2015-02-11 | 주식회사 시큐아이 | Security device managing multi session and operating method thereof |
-
2001
- 2001-09-10 JP JP2001273398A patent/JP2003085063A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7643479B2 (en) | 2003-12-17 | 2010-01-05 | Nec Infrontia Corporation | Communication transfer apparatus and communication transfer method |
| US8644307B2 (en) | 2003-12-17 | 2014-02-04 | Nec Infrontia Corporation | Communication transfer apparatus and communication transfer method |
| WO2005111826A1 (en) * | 2004-05-19 | 2005-11-24 | Matsushita Electric Industrial Co., Ltd. | Communication system |
| JP2007329951A (en) * | 2007-07-17 | 2007-12-20 | Matsushita Electric Ind Co Ltd | Authentication server, network use terminal, secondary terminal, and communication method |
| KR101491692B1 (en) | 2013-12-23 | 2015-02-11 | 주식회사 시큐아이 | Security device managing multi session and operating method thereof |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7764633B2 (en) | Method and apparatuses for managing two-way alternate communication in semi-duplex mode through a packet switching transport network | |
| US7913293B2 (en) | Method and communication unit for communicating between communication apparatuses | |
| CN100588170C (en) | Device and method for providing VoIP service | |
| US7539759B2 (en) | Session endpoint management protocol | |
| CN100512522C (en) | Mobile terminal equipment and packet communication method between terminals | |
| KR100498932B1 (en) | Apparatus and method for session establishment in radio network organized mobile nodes | |
| US20050066038A1 (en) | Session control system, communication terminal and servers | |
| JP3690316B2 (en) | Data transmission system, header information addition device, data format conversion device, and data transmission method | |
| JP4304018B2 (en) | Communication control method and communication control apparatus | |
| JP4491521B2 (en) | DTMF transfer method by RTP | |
| WO2009000181A1 (en) | Method for acquiring traversal resource, peer to peer node and peer to peer system | |
| US8005086B2 (en) | Providing an independent compression server within a network, as well as a method, network station and DHCP server | |
| TWI240516B (en) | System for automatically selecting voice data transmission and reception system for IP network, method thereof, and IP terminal | |
| JP2003085063A (en) | Communication relay device and communication method | |
| JP4617474B2 (en) | Data relay device and data relay system | |
| CN116233091B (en) | Distributed streaming media cross-segment access method based on SIP protocol for video surveillance system | |
| WO2011044810A1 (en) | Method, device and system for implementing multiparty communication | |
| CN113162952B (en) | Internet of things terminal equipment networking and communication method based on mobile edge node | |
| CN113794715B (en) | Virtual point-to-point network data transmitting method and system | |
| JP4070655B2 (en) | Media communication method and media communication system | |
| Bernardo et al. | A Telephony Application for Manets: Voice over a MANET-Extended JXTA Virtual Overlay Network | |
| JP2006094105A (en) | Tunneling method and apparatus, and program and recording medium thereof | |
| JP2007104676A (en) | VoIP terminal and communication method of the terminal | |
| CN119211188A (en) | A method and system for sharing video based on NAT traversal | |
| WO2015109575A1 (en) | Method, device and system for local switching of voices over ip |