Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7409153B2 - Gateway device, terminal management method, and program - Google Patents
[go: Go Back, main page]

JP7409153B2 - Gateway device, terminal management method, and program - Google Patents

Gateway device, terminal management method, and program Download PDF

Info

Publication number
JP7409153B2
JP7409153B2 JP2020032022A JP2020032022A JP7409153B2 JP 7409153 B2 JP7409153 B2 JP 7409153B2 JP 2020032022 A JP2020032022 A JP 2020032022A JP 2020032022 A JP2020032022 A JP 2020032022A JP 7409153 B2 JP7409153 B2 JP 7409153B2
Authority
JP
Japan
Prior art keywords
communication terminal
priority
communication
response
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.)
Active
Application number
JP2020032022A
Other languages
Japanese (ja)
Other versions
JP2021136595A (en
Inventor
雅士 櫻井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2020032022A priority Critical patent/JP7409153B2/en
Publication of JP2021136595A publication Critical patent/JP2021136595A/en
Application granted granted Critical
Publication of JP7409153B2 publication Critical patent/JP7409153B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Description

本発明は、複数の互いに異なるプロトコルの通信回線間を指令に応じて通信可能に接続する端末管理部を有するゲートウェイ装置、端末管理部の端末管理方法、及び端末管理部のコンピュータプログラムに関する。 The present invention relates to a gateway device having a terminal management unit that communicably connects a plurality of communication lines of different protocols in accordance with a command, a terminal management method of the terminal management unit, and a computer program for the terminal management unit.

BRI(ISDN Basic Rate Interface)を具備するVoIP(Voice over Internet Protocol)ゲートウェイ装置には、一般的に、Q.921プロトコルを用いて、BRIポートに通信回線を介して接続されたことが確認されたディジタル電話機、ターミナルアダプタ等の通信端末に対してはその端末管理や呼制御等を行う端末管理部が備えられている。通常、端末管理部は、接続が確認された通信端末に対してキープアライブを行い、その際には、例えば、RR(Receive Ready)の送信が用いられる。端末管理部は、キープアライブのRRに対して通信端末からの応答があれば、通信端末との接続は有効であると判断し、通信端末からの応答がなければ、通信端末との接続は無効であると判断する。更に、無効であると判断した通信端末に対しては、IDチェック要求等の復旧処理を含む復旧動作が行われ、通信端末との接続を有効にする試みが行われる。 It has been confirmed that a VoIP (Voice over Internet Protocol) gateway device equipped with BRI (ISDN Basic Rate Interface) is generally connected to a BRI port via a communication line using the Q.921 protocol. Communication terminals such as digital telephones and terminal adapters are equipped with terminal management units that manage the terminals, control calls, and the like. Normally, the terminal management unit performs keep-alive for the communication terminal whose connection has been confirmed, and at this time, for example, transmits RR (Receive Ready). The terminal management unit determines that the connection with the communication terminal is valid if there is a response from the communication terminal to the keep-alive RR, and if there is no response from the communication terminal, the connection with the communication terminal is invalid. It is determined that Further, for the communication terminal determined to be invalid, a recovery operation including recovery processing such as an ID check request is performed, and an attempt is made to enable the connection with the communication terminal.

特許文献1には、ISDNインタフェース部から、接続が確認された通信端末であるISDN端末に対する定期的なIDチェック要求メッセージの送信によりキープアライブを行い、ISDN端末の台数を認識、管理する電子交換機が開示されている。 Patent Document 1 discloses an electronic exchange that recognizes and manages the number of ISDN terminals by performing keep-alive by periodically transmitting an ID check request message from an ISDN interface unit to an ISDN terminal that is a communication terminal whose connection has been confirmed. Disclosed.

特開平5-176359号公報Japanese Patent Application Publication No. 5-176359

しかしながら、キープアライブでの接続無効という判断後の復旧動作は、VoIPゲートウェイ装置に予め定められた復旧処理の内容となっている一方、通信回線には様々な種類の通信端末が接続され得るので、通信端末毎にその通信端末の特性に適合した復旧処理ではなく、それ故に復旧しない場合や復旧したとしても、通信端末との接続が無効であるサービス停止期間が長くなってしまう場合があるという課題があった。 However, while the recovery operation after determining that the connection is invalid in keep-alive is the recovery process predetermined by the VoIP gateway device, since various types of communication terminals can be connected to the communication line, The problem is that the recovery process is not adapted to the characteristics of each communication terminal, and as a result, the service may not be restored, or even if it is restored, the service outage period during which the connection with the communication terminal is disabled may be extended. was there.

そこで、本発明の目的は、キープアライブで通信端末との接続が無効と判断された後の当該通信端末に対する復旧動作の短時間化を図ることができるゲートウェイ装置、端末管理方法、及びプログラムを提供することである。 SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a gateway device, a terminal management method, and a program that can shorten the recovery time for a communication terminal after the connection with the communication terminal is determined to be invalid by keep-alive. It is to be.

本発明のゲートウェイ装置は、通信端末が接続される第1の通信回線と、前記第1の通信回線とは異なるプロトコルの第2の通信回線と、を指令に応じて通信可能に接続する端末管理部を有するゲートウェイ装置であって、前記端末管理部は、前記第1の通信回線を介して前記通信端末とのレイヤ1のリンクが確立をしたか否かを判断する第1の判断手段と、前記レイヤ1のリンク確立を判断した後、前記通信端末からのレイヤ2のメッセージ受信を完了したか否かを判断する第2の判断手段と、前記レイヤ2のメッセージ受信の完了を判断した後、前記第2の通信回線の通信管理装置への前記通信端末の登録要求を行う登録要求手段と、前記通信端末の登録要求後、前記通信端末に対するキープアライブ処理を実行する処理手段と、前記キープアライブ処理により前記通信端末からの応答があったか否かを判断する第3の判断手段と、前記キープアライブ処理により前記通信端末からの応答がない場合に前記通信端末との通信を復旧させるための少なくとも2つの復旧処理の優先順位データを記憶した記憶手段と、前記キープアライブ処理により前記通信端末からの応答がない場合に、前記優先順位データに示された第1の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断する第1の復旧手段と、前記第1の優先順位の復旧処理により前記通信端末からの応答がなかった場合に、前記優先順位データに示された第2の優先順位以下の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断する第2の復旧手段と、前記第2の優先順位以下の優先順位の復旧処理により前記通信端末からの応答があった場合に、当該第2の優先順位以下の優先順位の復旧処理が前記第1の優先順位の復旧処理に代わって新たな第1の優先順位の復旧処理となるように前記記憶手段の前記優先順位データを書き換える書換手段と、を含むことを特徴としている。 The gateway device of the present invention is a terminal management device that communicably connects a first communication line to which a communication terminal is connected and a second communication line having a different protocol from the first communication line in accordance with a command. a gateway device comprising: a first determining unit in which the terminal management unit determines whether a layer 1 link with the communication terminal has been established via the first communication line; a second determining means for determining whether or not reception of a layer 2 message from the communication terminal is completed after determining the establishment of the layer 1 link; and after determining completion of reception of the layer 2 message; registration requesting means for requesting registration of the communication terminal to a communication management device of the second communication line; processing means for executing keep-alive processing for the communication terminal after requesting registration of the communication terminal; a third determining means for determining whether or not there is a response from the communication terminal through the process; and at least two determining means for restoring communication with the communication terminal when there is no response from the communication terminal through the keep-alive process. a storage means storing priority data of two recovery processes; and a storage means that executes a recovery process of a first priority indicated in the priority data when there is no response from the communication terminal due to the keep-alive process; a first recovery means that determines whether or not there is a response from the communication terminal; and a first recovery means that determines whether or not there is a response from the communication terminal; a second recovery means that executes recovery processing for priorities lower than the second priority and determines whether or not there is a response from the communication terminal; and a recovery processing for priorities lower than the second priority; When there is a response from the communication terminal, the recovery process for a priority lower than the second priority becomes a new first priority recovery process instead of the first priority recovery process. The present invention is characterized in that it includes a rewriting means for rewriting the priority data in the storage means.

本発明の端末管理方法は、通信端末が接続される第1の通信回線と、前記第1の通信回線とは異なるプロトコルの第2の通信回線と、を指令に応じて通信可能に接続する端末管理部を有するゲートウェイ装置において前記端末管理部の端末管理方法であって、前記第1の通信回線を介して前記通信端末とのレイヤ1のリンクが確立をしたか否かを判断するステップと、前記レイヤ1のリンク確立を判断した後、前記通信端末からのレイヤ2のメッセージ受信を完了したか否かを判断するステップと、前記レイヤ2のメッセージ受信の完了を判断した後、前記第2の通信回線の通信管理装置への前記通信端末の登録要求を行うステップと、前記通信端末の登録要求後、前記通信端末に対するキープアライブ処理を実行するステップと、前記キープアライブ処理により前記通信端末からの応答があったか否かを判断するステップと、前記キープアライブ処理により前記通信端末からの応答がない場合に、記憶手段に記憶された優先順位データに示された第1の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、前記第1の優先順位の復旧処理により前記通信端末からの応答がなかった場合に、前記優先順位データに示された第2の優先順位以下の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、前記第2の優先順位以下の優先順位の復旧処理により前記通信端末からの応答があった場合に、当該第2の優先順位以下の優先順位の復旧処理が前記第1の優先順位の復旧処理に代わって新たな第1の優先順位の復旧処理となるように前記記憶手段の前記優先順位データを書き換えるステップと、を含むことを特徴としている。 The terminal management method of the present invention provides a terminal that communicably connects a first communication line to which a communication terminal is connected and a second communication line having a protocol different from that of the first communication line in accordance with a command. A terminal management method for the terminal management unit in a gateway device having a management unit, the step of determining whether a layer 1 link with the communication terminal has been established via the first communication line; After determining the layer 1 link establishment, determining whether or not the layer 2 message reception from the communication terminal is completed; and after determining the completion of the layer 2 message reception, the second step a step of requesting registration of the communication terminal to a communication management device of a communication line; a step of executing keep-alive processing for the communication terminal after the registration request of the communication terminal; a step of determining whether or not there is a response; and, if there is no response from the communication terminal due to the keep-alive processing, performing a recovery process of the first priority indicated in the priority data stored in the storage means. a step of determining whether or not there is a response from the communication terminal; and a step of determining whether or not there is a response from the communication terminal according to the first priority order recovery process; a step of determining whether or not there is a response from the communication terminal by executing a recovery process for a priority level lower than or equal to the second priority level; , the storage means is configured such that the recovery process for a priority level lower than the second priority level becomes a new recovery process for the first priority level instead of the recovery process for the first priority level. The method is characterized in that it includes the step of rewriting the priority data.

本発明のプログラムは、通信端末が接続される第1の通信回線と、前記第1の通信回線とは異なるプロトコルの第2の通信回線と、を指令に応じて通信可能に接続する端末管理部を有するゲートウェイ装置において前記通信端末を管理する方法のためのプログラムであって、前記端末管理部のコンピュータに、前記第1の通信回線を介して前記通信端末とのレイヤ1のリンクが確立をしたか否かを判断するステップと、前記レイヤ1のリンク確立を判断した後、前記通信端末からのレイヤ2のメッセージ受信を完了したか否かを判断するステップと、前記レイヤ2のメッセージ受信の完了を判断した後、前記第2の通信回線の通信管理装置への前記通信端末の登録要求を行うステップと、前記通信端末の登録要求後、前記通信端末に対するキープアライブ処理を実行するステップと、前記キープアライブ処理により前記通信端末からの応答があったか否かを判断するステップと、前記キープアライブ処理により前記通信端末からの応答がない場合に、記憶手段に記憶された優先順位データに示された第1の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、前記第1の優先順位の復旧処理により前記通信端末からの応答がなかった場合に、前記優先順位データに示された第2の優先順位以下の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、前記第2の優先順位以下の優先順位の復旧処理により前記通信端末からの応答があった場合に、当該第2の優先順位以下の優先順位の復旧処理が前記第1の優先順位の復旧処理に代わって新たな第1の優先順位の復旧処理となるように前記記憶手段の前記優先順位データを書き換えるステップと、を実行させることを特徴としている。 The program of the present invention includes a terminal management unit that communicably connects a first communication line to which a communication terminal is connected and a second communication line having a protocol different from that of the first communication line in accordance with a command. A program for a method for managing the communication terminal in a gateway device having a computer, wherein a layer 1 link with the communication terminal is established in a computer of the terminal management unit via the first communication line. a step of determining whether the layer 2 message reception from the communication terminal is completed after determining the layer 1 link establishment; and a step of determining whether the layer 2 message reception from the communication terminal is completed. after determining the communication terminal, making a request to register the communication terminal to a communication management device of the second communication line; after requesting the registration of the communication terminal, executing a keep-alive process for the communication terminal; a step of determining whether or not there is a response from the communication terminal through keep-alive processing; and a step of determining whether or not there is a response from the communication terminal through keep-alive processing; executing the first priority recovery process to determine whether there is a response from the communication terminal; and if there is no response from the communication terminal due to the first priority recovery process; a step of determining whether or not there is a response from the communication terminal by executing a recovery process for the priorities below the second priority indicated in the priority data; When a response is received from the communication terminal as a result of the recovery process, the recovery process for a priority level lower than the second priority level replaces the recovery process for the first priority level and restores a new first priority level. The method is characterized in that the step of rewriting the priority order data in the storage means so that the processing is executed is performed.

本発明のゲートウェイ装置、端末管理方法、及びプログラムによれば、キープアライブ処理で通信端末との接続が無効と判断された場合の復旧動作において、通信端末からの応答が受け取れた復旧処理が第1の優先順位の復旧処理となるように記憶手段の優先順位データが書き換えられるので、次回のキープアライブ処理で通信端末との接続が無効と判断された場合にその後の当該通信端末に対する復旧動作の短時間化を図ることができる。 According to the gateway device, terminal management method, and program of the present invention, in the recovery operation when the connection with the communication terminal is determined to be invalid in the keep-alive processing, the first recovery operation is performed when a response from the communication terminal is received. Since the priority data in the storage means is rewritten so that the priority recovery process is performed, if the connection with the communication terminal is determined to be invalid in the next keep-alive process, the subsequent recovery operation for the communication terminal will be shortened. It is possible to save time.

本発明の実施例のVoIPゲートウェイ装置を含む通信システムを示している。1 shows a communication system including a VoIP gateway device according to an embodiment of the present invention. 図1のVoIPゲートウェイ装置中の端末管理部の端末管理動作を示すフローチャートである。2 is a flowchart showing the terminal management operation of the terminal management section in the VoIP gateway device of FIG. 1. FIG. 図2の端末管理動作の続き部分を示すフローチャートである。3 is a flowchart showing a continuation of the terminal management operation shown in FIG. 2;

以下、本発明の実施例を、図面を参照しつつ詳細に説明する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

図1は本発明を適用した実施例のVoIPゲートウェイ装置10を含む通信システムを示している。VoIPゲートウェイ装置10は互いにプロトコルが異なるIP(Internet Protocol)ネットワークとISDN(Integrated Services Digital Network)回線とを、例えば、発呼等の指令に応じて通信可能に接続する装置である。 FIG. 1 shows a communication system including a VoIP gateway device 10 according to an embodiment of the present invention. The VoIP gateway device 10 is a device that communicably connects an IP (Internet Protocol) network and an ISDN (Integrated Services Digital Network) line, which have mutually different protocols, in response to a command such as making a call, for example.

図1に示すように、VoIPゲートウェイ装置10は、BRIインタフェース部11と、端末管理部12と、IPインタフェース部13とを含んでいる。第1のインタフェース部であるBRIインタフェース部11の通信ポート(BRIポート)には、ISDN回線である通信回線21(第1の通信回線)を介してディジタル電話機22が接続される。第2のインタフェース部であるIPインタフェース部13の通信ポートには、IPネットワーク31(第2の通信回線)が接続され、IPネットワーク31にはSIP(Session Initiation Protocol)サーバ32が接続される。SIPサーバ32は、IPネットワーク31においてSIPを利用したIP電話サービスの管理・制御を行なうサーバである。 As shown in FIG. 1, the VoIP gateway device 10 includes a BRI interface section 11, a terminal management section 12, and an IP interface section 13. A digital telephone 22 is connected to a communication port (BRI port) of the BRI interface section 11, which is a first interface section, via a communication line 21 (first communication line), which is an ISDN line. An IP network 31 (second communication line) is connected to a communication port of the IP interface unit 13, which is a second interface unit, and a SIP (Session Initiation Protocol) server 32 is connected to the IP network 31. The SIP server 32 is a server that manages and controls IP telephone services using SIP in the IP network 31.

BRIインタフェース部11は、L2メッセージ送受信機能、L1リンク状態監視機能、L1リンク状態変更機能を具備する。L1はレイヤ1を表し、L2はレイヤ2を表している。 The BRI interface unit 11 has an L2 message transmission/reception function, an L1 link status monitoring function, and an L1 link status changing function. L1 represents layer 1 and L2 represents layer 2.

L2メッセージ送信受信機能は、BRIインタフェース部11に接続されるディジタル電話機22等の通信端末とレイヤ2のメッセージの送受信を行う機能である。すなわち、端末管理部12から通知を受けたL2メッセージを通信端末に送信し、通信端末から受信したL2メッセージは端末管理部12に通知する。実際にはレイヤ1についても端末管理部12とやりとりを行うが、本実施例ではその詳細については省略する。 The L2 message transmission/reception function is a function for transmitting and receiving layer 2 messages with a communication terminal such as the digital telephone 22 connected to the BRI interface section 11. That is, the L2 message received from the terminal management section 12 is transmitted to the communication terminal, and the L2 message received from the communication terminal is notified to the terminal management section 12. In reality, communication with the terminal management unit 12 is also performed regarding layer 1, but the details thereof will be omitted in this embodiment.

L1リンク状態監視機能は、レイヤ1のリンク状態を監視し、そのリンク状態が変化した場合には、端末管理部12に通知する機能である。L1リンク状態変更機能は、端末管理部12からL1制御要求を受けると、レイヤ1のリンク状態を変更する機能である。 The L1 link status monitoring function is a function that monitors the layer 1 link status and notifies the terminal management unit 12 when the link status changes. The L1 link state change function is a function that changes the layer 1 link state upon receiving an L1 control request from the terminal management unit 12.

L1リンク状態としては表1に示すように、No.1のレイヤ1がリンク確立済みでレイヤ2での通信が可能な状態のACTIVATEDと、No.2のレイヤ1がリンク未確立でレイヤ2での通信が不可である状態のNOT ACTIVATEDとが含まれる。 As shown in Table 1, the L1 link status is No. ACTIVATED, in which the layer 1 link of No. 1 has been established and communication at layer 2 is possible; This includes NOT ACTIVATED, which is a state in which the layer 1 link of 2 is not established and communication in layer 2 is not possible.

また、L1リンク状態変更機能で用いる端末管理部12からのレイヤ1の制御要求の内容としては、表2に示すように、L1リンクダウンとチップリセットとが含まれる。L1リンクダウンはレイヤ1をリンクダウンし、レイヤ1の接続シーケンスを最初から実施する要求である。チップリセットはBRIインタフェース部11を構成するデバイスにリセット及び初期化を実施する要求である。 Further, as shown in Table 2, the contents of the layer 1 control request from the terminal management unit 12 used in the L1 link state change function include L1 link down and chip reset. L1 link down is a request to link down layer 1 and implement the layer 1 connection sequence from the beginning. The chip reset is a request to reset and initialize the devices constituting the BRI interface unit 11.

端末管理部12は、例えば、マイクロコンピュータからなり、内蔵のソフトウェアのプログラムを実行することにより、L2メッセージ機能と、端末管理機能とを具備している。L2メッセージ機能は、通信端末とL2メッセージのやり取りを行う機能である。実際の送受信はBRIインタフェース部11にL2メッセージの送受信を要求して、上記したL2メッセージ送信受信機能を利用して行う。端末管理機能は、通信端末の状態を管理する機能である。 The terminal management unit 12 is composed of, for example, a microcomputer, and has an L2 message function and a terminal management function by executing a built-in software program. The L2 message function is a function for exchanging L2 messages with a communication terminal. Actual transmission and reception is performed by requesting the BRI interface unit 11 to transmit and receive L2 messages, and using the above-described L2 message transmission and reception function. The terminal management function is a function to manage the status of a communication terminal.

端末管理機能によって管理される端末状態としては、表3に示すように、No.1~No.4の4つの端末状態がある。例えば、端末管理部12の内部メモリ(図示せず)に通信端末毎に端末状態がデータとして記憶される。内部メモリは記憶手段に相当する。No.1は、L1リンク未確立状態であり、具体的にはレイヤ1がNOT ACTIVATEDで非アクティブを示し、レイヤ2がTEI(Terminal Endpoint Identifier:端末終点識別子)の未割当を示し、SIPが登録解除を示す状態である。No.2は、L1リンク確立済み状態で、通信端末からID要求未受領の状態であり、具体的にはレイヤ1がACTIVATEDでアクティブを示し、レイヤ2がTEIの未割当を示し、SIPが登録解除を示す状態である。No.3は、L1リンク確立済み状態で、通信端末にID割当済みの状態であり、具体的にはレイヤ1がACTIVATEDでアクティブを示し、レイヤ2がTEIの割当済みを示し、SIPが登録済みを示す状態である。No.4は、L1リンク確立済み状態で、通信端末にID割当済みの後に、キープアライブに未応答の状態であり、具体的にはレイヤ1がACTIVATEDでアクティブを示し、レイヤ2がTEIの割当済みでかつ通信端末状況確認中を示し、SIPが登録解除を示す状態である。なお、TEIは通信相手の通信端末を識別する識別子、すなわちIDである。 As shown in Table 3, the terminal status managed by the terminal management function is No. 1~No. There are four terminal states: 4. For example, the terminal status of each communication terminal is stored as data in an internal memory (not shown) of the terminal management unit 12. Internal memory corresponds to storage means. No. 1 indicates that the L1 link is not established; specifically, layer 1 indicates inactivity with NOT ACTIVATED, layer 2 indicates that TEI (Terminal Endpoint Identifier) is not assigned, and SIP indicates that the This is the state shown. No. 2 is a state in which the L1 link has been established and an ID request has not been received from the communication terminal; specifically, layer 1 indicates ACTIVATED, indicating active, layer 2 indicates TEI is not allocated, and SIP indicates deregistration. This is the state shown. No. 3 is a state in which the L1 link has been established and an ID has been assigned to the communication terminal; specifically, layer 1 is ACTIVATED indicating active, layer 2 indicates TEI has been assigned, and SIP indicates registered. state. No. 4 is a state in which the L1 link has been established, an ID has been assigned to the communication terminal, and there is no response to keepalive; specifically, layer 1 indicates active with ACTIVATED, and layer 2 indicates that the TEI has been assigned. It also indicates that the communication terminal status is being checked, and the SIP indicates deregistration. Note that TEI is an identifier that identifies a communication terminal of a communication partner, that is, an ID.

No.3のL1リンク確立済み状態では、通信端末に対してキープアライブを行い、それに対して何らかの原因で通信端末からキープアライブに対する応答がなかった場合に、No.4の通信端末状況確認中の状態に移行することが行われる。No.4の通信端末状況確認中の状態になると、複数の復旧処理のうちから1つの処理が優先順位に従って実施される。その各復旧処理の優先順位は内部メモリに優先順位データとして記憶されている。 No. In the L1 link established state of No. 3, a keep-alive is performed for the communication terminal, and if there is no response to the keep-alive from the communication terminal for some reason, the L1 link is established. 4, a transition is made to the state in which the communication terminal status is being checked. No. When the status of the communication terminal is being checked in step 4, one of the plurality of recovery processes is executed in accordance with the priority order. The priority order of each restoration process is stored in the internal memory as priority order data.

復旧動作としては、表4に示すように、初期の優先順位の順番にNo.1~No.4の4つの復旧処理がある。優先順位1(第1の優先順位に相当する)のNo.1は、IDチェック要求の送信である。これはキープアライブの通信端末に対してIDチェック要求を送信する処理である。自身に割り当てられたIDのIDチェック要求を受けた通信端末はそれに対してID応答を送り返す。優先順位2(第2の優先順位に相当する)のNo.2は、SABME(非同期平衡モード設定)の送信である。これはSABMEのメッセージを通信端末に対して送信する処理である。優先順位3のNo.3は、L1リンクダウンである。これはレイヤ1を一度リンクダウンさせ、レイヤ1のリンク確立から実施する復旧処理である。優先順位4のNo.4は、BRIインタフェース部リセットである。これはBRIインタフェース部11を構成するデバイスをリセットし、初期化処理から実施する復旧処理である。 As for the recovery operation, as shown in Table 4, No. 1 is restored in the initial priority order. 1~No. There are four recovery processes. Priority 1 (corresponding to the first priority) No. 1 is the transmission of an ID check request. This is a process of transmitting an ID check request to a keep-alive communication terminal. A communication terminal that receives an ID check request for an ID assigned to itself sends back an ID response in response. No. 2 in priority order (corresponding to the second priority order). 2 is the transmission of SABME (asynchronous balanced mode setting). This is a process of transmitting a SABME message to a communication terminal. Priority 3 No. 3 is L1 link down. This is a recovery process that is performed by once linking down layer 1 and establishing the layer 1 link. Priority 4 No. 4 is a BRI interface section reset. This is a recovery process that resets the devices constituting the BRI interface section 11 and starts with the initialization process.

IPインタフェース部13は、通常のVoIPゲートウェイに搭載されるVoIP機能を有し、IPネットワーク31を介してSIPサーバ32を含む通信相手の装置とIPパケットの送受信を行う。また、IPインタフェース部13は、SIPサーバ32から来たSIPメッセージを解析し、着信内容を端末管理部12に通知する。また、端末管理部12の通知内容をSIPメッセージに変換し、SIPサーバ32へ送信する。本実施例では、IPネットワーク31からはメッセージは着信のみ、端末管理部12からの通知内容は、「登録要求」、「応答(着信に対する)」、「Busy(着信に対する)」の3つであるとしている。 The IP interface unit 13 has a VoIP function installed in a normal VoIP gateway, and sends and receives IP packets to and from communication partner devices including the SIP server 32 via the IP network 31. Furthermore, the IP interface section 13 analyzes the SIP message received from the SIP server 32 and notifies the terminal management section 12 of the contents of the incoming call. It also converts the notification content of the terminal management unit 12 into a SIP message and sends it to the SIP server 32. In this embodiment, only incoming messages are received from the IP network 31, and the notification contents from the terminal management unit 12 are three types: "registration request," "response (to incoming call)," and "Busy (in response to incoming call)." It is said that

このような構成のVoIPゲートウェイ装置10においては、BRIインタフェース部11の通信回線21にディジタル電話機22が接続されると、BRIインタフェース部11とディジタル電話機22との間で通信回線21を介してレイヤ1のやり取りが実施される。これによりレイヤ1のリンクが確立される。上記したL1リンク状態監視機能がレイヤ1のリンク確立を検知すると、BRIインタフェース部11は端末管理部12にアクティブ状態を示すACTIVATED(表1のNo.1)を通知する。 In the VoIP gateway device 10 having such a configuration, when the digital telephone 22 is connected to the communication line 21 of the BRI interface unit 11, the layer 1 Exchanges will be held. This establishes a layer 1 link. When the L1 link status monitoring function described above detects the establishment of a layer 1 link, the BRI interface unit 11 notifies the terminal management unit 12 of ACTIVATED (No. 1 in Table 1) indicating the active status.

端末管理部12は、BRIインタフェース部11とディジタル電話機22との間で通信回線21を介してレイヤ1のやり取りが開始されると、端末管理動作を実行する。 The terminal management unit 12 executes a terminal management operation when layer 1 exchange is started between the BRI interface unit 11 and the digital telephone 22 via the communication line 21.

図2及び図3に示すように、端末管理動作では、先ず、レイヤ1のリンクが確立したか否かを判断する(ステップS10)。BRIインタフェース部11からレイヤ1のリンク確立通知を受け取ると、ディジタル電話機22についての端末状態を表3のNo.2の状態に変更する(ステップS11)。端末管理部12では、上記した内部メモリのディジタル電話機22の端末状態はステップS11のACTIVATED通知を受けるまでは表3のNo.1の内容になっており、それが表3のNo.2の内容に書き換えられる。すなわち、端末管理部12において、ディジタル電話機22についてはレイヤ1のリンク確立済みである一方、ディジタル電話機22からID要求未受領の状態であると管理される。ID要求未受領の状態であるのでL2メッセージを待つことになる。 As shown in FIGS. 2 and 3, in the terminal management operation, first, it is determined whether a layer 1 link has been established (step S10). When receiving the Layer 1 link establishment notification from the BRI interface unit 11, the terminal status of the digital telephone 22 is changed to No. 1 in Table 3. 2 (step S11). In the terminal management unit 12, the terminal status of the digital telephone 22 in the internal memory is No. 3 in Table 3 until receiving the ACTIVATE notification in step S11. 1, which is No. 1 in Table 3. It can be rewritten to the contents of 2. That is, the terminal management unit 12 manages that the layer 1 link has been established for the digital telephone 22, but that no ID request has been received from the digital telephone 22. Since the ID request has not been received, the L2 message will be awaited.

BRIインタフェース部11は、L2メッセージ送信受信機能によりディジタル電話機22とのL2メッセージの通信を行い、ディジタル電話機22からID割当要求のL2メッセージの受信を完了すると、それを端末管理部12に通知する。端末管理部12はその通知からL2メッセージの受信が完了したか否かを判断する(ステップS12)。そして、端末管理部12は、L2メッセージの受信を完了したと判断すると、ディジタル電話機22についてTEI割当てを行う(ステップS13)。TEI割当てではTEIをBRIインタフェース部11を介してディジタル電話機22に通知する。端末管理部12はTEI割当て後、ディジタル電話機22についての端末状態を表3のNo.3の状態に変更する(ステップS14)。また、端末管理部12は、IPインタフェース部13に登録要求を通知する(ステップS15)。 The BRI interface section 11 communicates L2 messages with the digital telephone 22 using the L2 message transmission/reception function, and upon completion of receiving the L2 message requesting ID assignment from the digital telephone 22, notifies the terminal management section 12 of this. The terminal management unit 12 determines from the notification whether or not the reception of the L2 message is completed (step S12). When the terminal management unit 12 determines that the reception of the L2 message is completed, it allocates a TEI to the digital telephone 22 (step S13). In TEI assignment, the TEI is notified to the digital telephone 22 via the BRI interface section 11. After allocating the TEI, the terminal management unit 12 sets the terminal status of the digital telephone 22 to No. 3 in Table 3. 3 (step S14). Furthermore, the terminal management unit 12 notifies the IP interface unit 13 of the registration request (step S15).

IPインタフェース部13は端末管理部12からの登録要求を受けると、SIPサーバ32にディジタル電話機22のアドレス等の通話に必要な情報の登録を実行させる。 Upon receiving the registration request from the terminal management section 12, the IP interface section 13 causes the SIP server 32 to register information necessary for a telephone call, such as the address of the digital telephone 22.

このようにディジタル電話機22の端末状態が表3のNo.3の状態になると、キープアライブのために端末管理部12では、上記した端末管理機能により、ディジタル電話機22に向けてのRR(Receive Ready)の送信をBRIインタフェース部11に指令し(ステップS16)、それによりBRIインタフェース部11からディジタル電話機22に向けてRRが送信される。RRは送信信号として通信回線21を介してディジタル電話機22に向けて伝送される。端末管理部12はRRの送信毎にRRに対する応答信号の受信があるか否かを判断する(ステップS17)。ディジタル電話機22が通信回線21に接続され続けているならば、ディジタル電話機22はRRを受信すると、それに対して応答信号をVoIPゲートウェイ装置10に向けて送信する。BRIインタフェース部11は応答信号を受信すると、応答信号の受信を端末管理部12に通知する。 In this way, the terminal status of the digital telephone 22 is No. 1 in Table 3. When the state of 3 is reached, the terminal management section 12 instructs the BRI interface section 11 to transmit an RR (Receive Ready) to the digital telephone 22 using the terminal management function described above for keep-alive (step S16). , whereby the RR is transmitted from the BRI interface section 11 to the digital telephone 22. The RR is transmitted as a transmission signal to the digital telephone 22 via the communication line 21. The terminal management unit 12 determines whether a response signal to the RR is received each time the RR is transmitted (step S17). If the digital telephone 22 continues to be connected to the communication line 21, upon receiving the RR, the digital telephone 22 transmits a response signal to the VoIP gateway device 10 in response to the RR. Upon receiving the response signal, the BRI interface section 11 notifies the terminal management section 12 of the reception of the response signal.

ステップS17において、端末管理部12はRRの送信指令から所定期間内に応答信号の受信通知を受けると、No.3の端末状態を維持する(ステップS18)。その所定期間内に応答信号の受信通知を受けない場合には、RRの送信は4回行われたか否かを判断する(ステップS19)。所定期間は、例えば、RRの送信から応答信号を受信するまでに掛かる時間、又はそれに若干の遅れを考慮した時間である。RRの送信回数が4回に達していないならば、ディジタル電話機22に対してRRの再送信がBRIインタフェース部11に指令される(ステップS20)。RRの送信後、所定期間内に応答信号の受信がない場合にはRRの再送信が行われる。そして、RRの再送信が3回実行(RRの送信は合計4回)されたにも拘わらず、RRに対する応答信号の受信がない場合には、端末管理部12はディジタル電話機22についての端末状態を表3のNo.4の状態に変更する(ステップS21)。 In step S17, when the terminal management unit 12 receives a notification of receipt of a response signal within a predetermined period from the RR transmission command, the terminal management unit 12 receives a response signal from the RR transmission command. 3 is maintained (step S18). If the reception notification of the response signal is not received within the predetermined period, it is determined whether the RR has been transmitted four times (step S19). The predetermined period is, for example, the time it takes from transmitting the RR to receiving the response signal, or the time taking into account a slight delay. If the number of RR transmissions has not reached four, the BRI interface unit 11 is instructed to retransmit the RR to the digital telephone 22 (step S20). After transmitting the RR, if no response signal is received within a predetermined period, the RR is retransmitted. If a response signal to the RR is not received even though the RR has been retransmitted three times (a total of four RR transmissions), the terminal management unit 12 determines the terminal status of the digital telephone 22. is No. in Table 3. 4 (step S21).

ステップS21の実行後、端末管理部12は、優先順位データを内部メモリから読み出して優先順位1の復旧処理をBRIインタフェース部11に指令する(ステップS22)。初期の優先順位1の復旧処理はIDチェック要求であり、この場合には、IDチェック要求のディジタル電話機22への送信をBRIインタフェース部11に指令する。IDチェック要求がBRIインタフェース部11からディジタル電話機22に向けて送信される。端末管理部12は優先順位1の復旧処理の指令後、ディジタル電話機22から応答があったか否かを判断する(ステップS23)。例えば、IDチェック要求に対してディジタル電話機22からID応答があれば、端末管理部12はディジタル電話機22についての端末状態を表3のNo.3の状態に戻す(ステップS24)。ステップS24の実行後には、キープアライブのために端末管理部12は、ステップS16に戻ってRRの送信をBRIインタフェース部11に指令する。 After executing step S21, the terminal management unit 12 reads the priority data from the internal memory and instructs the BRI interface unit 11 to perform recovery processing for priority 1 (step S22). The initial priority level 1 recovery process is an ID check request, and in this case, the BRI interface section 11 is instructed to send the ID check request to the digital telephone 22. An ID check request is transmitted from the BRI interface section 11 to the digital telephone 22. After instructing the restoration process of priority 1, the terminal management unit 12 determines whether there is a response from the digital telephone 22 (step S23). For example, if there is an ID response from the digital telephone 22 in response to an ID check request, the terminal management unit 12 will check the terminal status of the digital telephone 22 according to No. 3 in Table 3. The state is returned to No. 3 (step S24). After executing step S24, the terminal management unit 12 returns to step S16 and instructs the BRI interface unit 11 to transmit an RR for keep-alive.

ステップS23で応答がないならば、端末管理部12は、優先順位データに示された優先順位2の復旧処理をBRIインタフェース部11に指令する(ステップS25)。初期の優先順位2の復旧処理はSABMEの送信であり、この場合にはSABMEのディジタル電話機22への送信をBRIインタフェース部11に指令する。SABME送信指令に応じてBRIインタフェース部11はSABMEのメッセージをディジタル電話機22に対して送信する。端末管理部12は優先順位2の復旧処理の指令後、ディジタル電話機22から応答があったか否かを判断する(ステップS26)。例えば、SABMEのメッセージ送信の場合には、端末管理部12では、非同期平衡モードでディジタル電話機22から応答があるか否かが判別される。ステップS26でディジタル電話機22から応答がBRIインタフェース部11により受信されたと判別されたならば、端末管理部12はディジタル電話機22についての端末状態を表3のNo.3の状態に戻す(ステップS27)。また、端末管理部12は復旧処理の優先順位を変更するために内部メモリの優先順位データを書き換える(ステップS28)。すなわち、表5に示すように、優先順位データの優先順位2の復旧処理(初期の優先順位ではSABMEの送信)を新たな優先順位1とし、それまで優先順位1の復旧処理(初期の優先順位ではIDチェック要求の送信)を優先順位2とする。 If there is no response in step S23, the terminal management unit 12 instructs the BRI interface unit 11 to perform recovery processing for priority 2 indicated in the priority data (step S25). The initial priority level 2 recovery process is the transmission of SABME, and in this case, the BRI interface unit 11 is instructed to transmit SABME to the digital telephone 22 . In response to the SABME transmission command, the BRI interface section 11 transmits an SABME message to the digital telephone 22. After instructing the recovery process of priority 2, the terminal management unit 12 determines whether there is a response from the digital telephone 22 (step S26). For example, in the case of SABME message transmission, the terminal management unit 12 determines whether there is a response from the digital telephone 22 in the asynchronous balanced mode. If it is determined in step S26 that the BRI interface section 11 has received a response from the digital telephone 22, the terminal management section 12 records the terminal status of the digital telephone 22 as No. 3 in Table 3. 3 (step S27). Furthermore, the terminal management unit 12 rewrites the priority data in the internal memory in order to change the priority of the recovery process (step S28). In other words, as shown in Table 5, the recovery process with priority 2 of the priority data (sending SABME in the initial priority) is set as the new priority 1, and the recovery process with priority 1 (initial priority) is set as the new priority 1. In this case, transmission of ID check request) is given priority 2.

ステップS28の実行後には、キープアライブのために端末管理部12は、ステップS16に戻ってRRの送信をBRIインタフェース部11に指令する。 After executing step S28, the terminal management unit 12 returns to step S16 and instructs the BRI interface unit 11 to transmit an RR for keep-alive.

ステップS26においてディジタル電話機22からの応答がないならば、端末管理部12は、優先順位データに示された優先順位3の復旧処理をBRIインタフェース部11に指令する(ステップS29)。初期の優先順位3の復旧処理はL1リンクダウンであり、この場合には端末管理部12は、L1リンクダウンをBRIインタフェース部11に指令するので、BRIインタフェース部11はレイヤ1を一度リンクダウンさせ、レイヤ1のリンク確立から実施する。端末管理部12は優先順位3の復旧処理の指令後、ディジタル電話機22から応答があったか否かを判断する(ステップS30)。ステップS30でディジタル電話機22から応答がBRIインタフェース部11により受信されたと判別されたならば、端末管理部12はディジタル電話機22についての端末状態を表3のNo.3の状態に戻す(ステップS31)。また、端末管理部12は復旧処理の優先順位を変更するために内部メモリの優先順位データを書き換える(ステップS32)。すなわち、優先順位データの優先順位3の復旧処理を優先順位1とし、それまで優先順位1、2の復旧処理をそれぞれ優先順位2、3とする。ステップS32の実行後には、キープアライブのために端末管理部12は、ステップS16に戻ってRRの送信をBRIインタフェース部11に指令する。 If there is no response from the digital telephone 22 in step S26, the terminal management unit 12 instructs the BRI interface unit 11 to perform recovery processing of priority 3 indicated in the priority data (step S29). The initial priority 3 recovery process is L1 link down, and in this case, the terminal management unit 12 instructs the BRI interface unit 11 to bring down the L1 link, so the BRI interface unit 11 brings down the layer 1 link once. , starting from layer 1 link establishment. After instructing the restoration process of priority 3, the terminal management unit 12 determines whether there is a response from the digital telephone 22 (step S30). If it is determined in step S30 that the response from the digital telephone 22 has been received by the BRI interface section 11, the terminal management section 12 records the terminal status of the digital telephone 22 as No. 3 in Table 3. 3 (step S31). Furthermore, the terminal management unit 12 rewrites the priority data in the internal memory in order to change the priority of recovery processing (step S32). That is, the restoration process of priority 3 of the priority data is set as priority 1, and the restoration processes of priority 1 and 2 are set as priorities 2 and 3, respectively. After executing step S32, the terminal management unit 12 returns to step S16 and instructs the BRI interface unit 11 to transmit an RR for keep-alive.

ステップS30においてディジタル電話機22からの応答がないならば、端末管理部12は、優先順位データに示された優先順位4の復旧処理をBRIインタフェース部11に指令する(ステップS33)。初期の優先順位4の復旧処理はBRIインタフェース部リセットであり、この場合には端末管理部12は、このリセットをBRIインタフェース部11に指令するので、BRIインタフェース部11は自身を構成するデバイスをリセットし、初期化処理を行い、そして上記したレイヤ1のリンク確立から実施する。端末管理部12は優先順位4の復旧処理の指令後、ディジタル電話機22から応答があったか否かを判断する(ステップS34)。ステップS34でディジタル電話機22から応答がBRIインタフェース部11により受信されたと判別されたならば、端末管理部12はディジタル電話機22についての端末状態を表3のNo.3の状態に戻す(ステップS35)。また、端末管理部12は復旧処理の優先順位を変更するために内部メモリの優先順位データを書き換える(ステップS36)。すなわち、優先順位データの優先順位4の復旧処理を優先順位1とし、それまで優先順位1、2、3の復旧処理をそれぞれ優先順位2、3、4とする。 If there is no response from the digital telephone 22 in step S30, the terminal management unit 12 instructs the BRI interface unit 11 to perform recovery processing of priority 4 indicated in the priority data (step S33). The initial priority level 4 recovery process is to reset the BRI interface unit, and in this case, the terminal management unit 12 instructs the BRI interface unit 11 to reset, so the BRI interface unit 11 resets the devices that constitute itself. Then, initialization processing is performed, and the above-mentioned layer 1 link establishment is performed. After instructing the recovery process with priority level 4, the terminal management unit 12 determines whether there is a response from the digital telephone 22 (step S34). If it is determined in step S34 that the BRI interface section 11 has received a response from the digital telephone 22, the terminal management section 12 records the terminal status of the digital telephone 22 as No. 3 in Table 3. The state is returned to No. 3 (step S35). Furthermore, the terminal management unit 12 rewrites the priority data in the internal memory in order to change the priority of recovery processing (step S36). That is, the recovery process of priority level 4 of the priority data is set to priority level 1, and the recovery processes of priority level 1, 2, and 3 are set to priority levels 2, 3, and 4, respectively.

ステップS34においてディジタル電話機22からの応答がないならば、全ての復旧処理を試みてもディジタル電話機22とのキープアライブを復旧し得なかったので、その場合には端末管理部12はディジタル電話機22についての端末状態を表3のNo.2の状態に端末管理変更する(ステップS37)。ステップS37の実行後には、端末管理部12は、ステップS12に戻ってディジタル電話機22からID割当要求のL2メッセージを受信したか否かを判別する。 If there is no response from the digital telephone 22 in step S34, it means that keep-alive with the digital telephone 22 could not be restored even after all the recovery processes were tried, and in that case, the terminal management unit 12 The terminal status is shown in Table 3. The terminal management is changed to state 2 (step S37). After executing step S37, the terminal management unit 12 returns to step S12 and determines whether an L2 message requesting ID assignment has been received from the digital telephone 22.

上記した実施例においては、端末管理部12のステップS10の実行が第1の判断手段に相当し、ステップS12の実行が第2の判断手段に相当する。また、端末管理部12のステップS13の実行が割当手段に相当し、ステップS15の実行が登録要求手段に相当し、ステップS16の実行が処理手段に相当し、ステップS17の実行が第3の判断手段に相当する。更に、端末管理部12のステップS22及びS23の実行が第1の復旧手段に相当し、ステップS25及びS26の実行が第2の復旧手段に相当し、ステップS28の実行が書換手段に相当する。 In the embodiment described above, the execution of step S10 by the terminal management unit 12 corresponds to the first determination means, and the execution of step S12 corresponds to the second determination means. Further, the execution of step S13 of the terminal management unit 12 corresponds to an allocation means, the execution of step S15 corresponds to a registration request means, the execution of step S16 corresponds to a processing means, and the execution of step S17 corresponds to a third determination means. It corresponds to the means. Further, execution of steps S22 and S23 by the terminal management unit 12 corresponds to a first recovery means, execution of steps S25 and S26 corresponds to a second recovery means, and execution of step S28 corresponds to a rewriting means.

このように、端末管理部12は復旧動作では優先順位に従って復旧処理を指令する。例えば、優先順位2のSABME送信の指令を行ってそれに対してディジタル電話機22からの応答を受けると、ディジタル電話機22についての端末状態を表3のNo.3の状態に戻した後に、SABME送信が優先順位1となる。よって、そのNo.3の状態に戻した後において、3回の再度RR送信によるキープアライブに応答がなかった場合には、復旧動作のそのときの優先順位に従い、初期のIDチェック要求による復旧処理ではなく、復旧実績があり、優先順位1となったSABME送信を先ず行い、ディジタル電話機22とのキープアライブの復旧を試みることになる。これはSABME送信での復旧実績があるため復旧する可能性が高いためである。 In this way, the terminal management unit 12 instructs the recovery process according to the priority order. For example, when a command is issued to transmit a SABME with priority 2 and a response is received from the digital telephone 22, the terminal status of the digital telephone 22 is changed to No. 2 in Table 3. After returning to state 3, SABME transmission becomes priority 1. Therefore, that No. After returning to state 3, if there is no response to keepalive by sending RR again three times, according to the priority of recovery operation at that time, instead of recovery processing by initial ID check request, recovery performance is Therefore, SABME transmission with priority 1 is performed first, and an attempt is made to restore keep-alive with the digital telephone 22. This is because there is a history of recovery in SABME transmission, so there is a high possibility of recovery.

なお、復旧動作の優先順位は、物理的なL1リンクダウン操作(復旧動作によるL1リンクダウンではない)を行うことにより初期化を行い、初期の優先順位にリセットさせることができる。 Note that the recovery operation priority can be initialized and reset to the initial priority by performing a physical L1 link down operation (not an L1 link down due to a recovery operation).

従って、上記した実施例においては、キープアライブでのRR送信に対するディジタル電話機22からの応答が4回続けてない状態での復旧動作における複数の復旧処理は、優先順位に従って実行される。初期の優先順位での復旧動作では、優先順位1の復旧処理であるIDチェック要求送信後、それに対するディジタル電話機22からの応答がない場合には優先順位2の復旧処理のSABME送信となり、そのSABME送信に対してディジタル電話機22からの応答がある場合には、SABME送信が優先順位1の復旧処理となる。その後に再度、キープアライブでのRR送信に対するディジタル電話機22からの応答が4回続けてない状態になると、その復旧動作では、新たに優先順位1となったSABME送信が先ず行われる。よって、再度のキープアライブでのディジタル電話機22からの応答なしの場合には短時間でディジタル電話機22との間の接続を復旧させることができ、サービスの停止期間の短期化を図ることができる。なお、キープアライブでのRR送信に対するディジタル電話機22からの応答がない場合に再度のRRを送信する回数は3回に限らない。例えば、4回以上の再度のRR送信でも良い。 Therefore, in the embodiment described above, the plurality of recovery processes in the recovery operation in a state where the digital telephone 22 has not responded to the RR transmission in the keep-alive four times in a row are executed in accordance with the priority order. In the initial priority recovery operation, if there is no response from the digital telephone 22 after sending an ID check request, which is a recovery process with priority 1, the SABME is sent as a recovery process with priority 2, and that SABME is sent. If there is a response from the digital telephone 22 to the transmission, SABME transmission becomes the priority 1 recovery process. After that, when the digital telephone 22 does not respond to the RR transmission in keep-alive four times in a row again, in the recovery operation, SABME transmission, which has newly been given priority 1, is performed first. Therefore, if there is no response from the digital telephone 22 in the second keep-alive, the connection with the digital telephone 22 can be restored in a short time, and the service suspension period can be shortened. Note that the number of times the RR is transmitted again when there is no response from the digital telephone 22 to the RR transmission in keep-alive is not limited to three times. For example, RR transmission may be repeated four or more times.

また、実績のある復旧処理を自動的に優先して実施する動作であるため、保守者による操作や通信端末毎の設定変更は不要にすることができる。 Furthermore, since the operation automatically prioritizes and executes recovery processing that has a proven track record, operations by maintenance personnel and setting changes for each communication terminal can be eliminated.

更に、物理的なL1のリンクダウン操作により、復旧動作における復旧処理の優先順位がリセットされるため、通信端末を別の端末に変更する場合に、初期の優先順位に戻るので、それまでに変更された優先順位が端末変更毎に影響することがない。 Furthermore, physical L1 link down operation resets the priority of recovery processing in the recovery operation, so when changing the communication terminal to another terminal, the priority will return to the initial The assigned priority order will not be affected every time the terminal is changed.

なお、上記した実施例では、表4に示した復旧処理で復旧した場合の例を記載したが、復旧処理はVoIPゲートェイ装置や通信端末の特性に合わせて変更しても適用可能である。 In the above-described embodiment, an example is described in which recovery is performed using the recovery processing shown in Table 4, but the recovery processing can also be modified in accordance with the characteristics of the VoIP gateway device or communication terminal.

また、上記した実施例では、表4に示した復旧処理の優先順位に従って復旧動作を実施する例を記載したが、その優先順位が変更されてもNo.1の復旧処理を必ず実行したのち、変更された優先順位にしたがって実行しても良い。 Further, in the embodiment described above, an example was described in which the recovery operation is performed according to the priority order of recovery processing shown in Table 4, but even if the priority order is changed, No. After executing the recovery process No. 1 without fail, the recovery process may be executed according to the changed priority order.

更に、上記した実施例では、BRIインタフェース部11の通信ポートには通信回線21を介してディジタル電話機22のみが通信端末として接続されているが、その通信ポートには通信回線21を介して他のディジタル電話機、ターミナルアダプタ等の通信端末が複数接続されても良い。 Furthermore, in the embodiment described above, only the digital telephone 22 is connected as a communication terminal to the communication port of the BRI interface unit 11 via the communication line 21, but other communication terminals are connected to the communication port via the communication line 21. A plurality of communication terminals such as digital telephones and terminal adapters may be connected.

10 VoIPゲートェイ装置
11 BRIインタフェース部
12 端末管理部
13 IPインタフェース部
21 通信回線
22 ディジタル電話機
31 IPネットワーク
32 SIPサーバ

10 VoIP gateway device 11 BRI interface section 12 terminal management section 13 IP interface section 21 communication line 22 digital telephone 31 IP network 32 SIP server

Claims (13)

通信端末が接続される第1の通信回線と、前記第1の通信回線とは異なるプロトコルの第2の通信回線と、を指令に応じて通信可能に接続する端末管理部を有するゲートウェイ装置であって、
前記端末管理部は、
前記第1の通信回線を介して前記通信端末とのレイヤ1のリンクが確立をしたか否かを判断する第1の判断手段と、
前記レイヤ1のリンク確立を判断した後、前記通信端末からのレイヤ2のメッセージ受信を完了したか否かを判断する第2の判断手段と、
前記レイヤ2のメッセージ受信の完了を判断した後、前記第2の通信回線の通信管理装置への前記通信端末の登録要求を行う登録要求手段と、
前記通信端末の登録要求後、前記通信端末に対するキープアライブ処理を実行する処理手段と、
前記キープアライブ処理により前記通信端末からの応答があったか否かを判断する第3の判断手段と、
前記キープアライブ処理により前記通信端末からの応答がない場合に前記通信端末との通信を復旧させるための少なくとも2つの復旧処理の優先順位データを記憶した記憶手段と、
前記キープアライブ処理により前記通信端末からの応答がない場合に、前記優先順位データに示された第1の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断する第1の復旧手段と、
前記第1の優先順位の復旧処理により前記通信端末からの応答がなかった場合に、前記優先順位データに示された第2の優先順位以下の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断する第2の復旧手段と、
前記第2の優先順位以下の優先順位の復旧処理により前記通信端末からの応答があった場合に、当該第2の優先順位以下の優先順位の復旧処理が前記第1の優先順位の復旧処理に代わって新たな第1の優先順位の復旧処理となるように前記記憶手段の前記優先順位データを書き換える書換手段と、を含むことを特徴とするゲートウェイ装置。
The gateway device includes a terminal management unit that communicably connects a first communication line to which a communication terminal is connected and a second communication line having a protocol different from that of the first communication line in accordance with a command. hand,
The terminal management department
a first determining means for determining whether a layer 1 link with the communication terminal has been established via the first communication line;
a second determining means for determining whether or not reception of a layer 2 message from the communication terminal is completed after determining the establishment of the layer 1 link;
registration requesting means for requesting registration of the communication terminal to a communication management device of the second communication line after determining completion of receiving the layer 2 message;
processing means for executing a keep-alive process for the communication terminal after a registration request for the communication terminal;
third determining means for determining whether or not there is a response from the communication terminal through the keep-alive processing;
Storage means storing priority data of at least two recovery processes for restoring communication with the communication terminal when there is no response from the communication terminal due to the keep-alive process;
If there is no response from the communication terminal due to the keep-alive process, a first priority recovery process indicated in the priority data is executed to determine whether or not there is a response from the communication terminal. 1 recovery means,
If there is no response from the communication terminal due to the recovery process for the first priority, the recovery process for a priority lower than or equal to the second priority indicated in the priority data is executed to recover the response from the communication terminal. a second recovery means for determining whether there is a response;
If there is a response from the communication terminal due to the recovery process for the priority level below the second priority level, the recovery process for the priority level below the second priority level becomes the recovery process for the first priority level. A gateway device comprising: rewriting means for rewriting the priority order data in the storage means so that a new first priority order restoration process is performed instead.
前記端末管理部は、前記レイヤ2のメッセージの受信完了を判断した後、前記通信端末に対してIDを割り当てる割当手段を更に含むことを特徴とする請求項1記載のゲートウェイ装置。 2. The gateway device according to claim 1, wherein the terminal management unit further includes an assignment unit that assigns an ID to the communication terminal after determining completion of reception of the layer 2 message. 前記処理手段は、前記キープアライブ処理において前記通信端末に向けて前記第1の通信回線へRR送信を行い、
前記第3の判断手段は、前記RR送信に対する前記通信端末からの応答があったか否かを判断することを特徴とする請求項1記載のゲートウェイ装置。
The processing means performs RR transmission to the first communication line toward the communication terminal in the keep -alive processing,
2. The gateway device according to claim 1, wherein the third determining means determines whether there is a response from the communication terminal to the RR transmission.
前記第3の判断手段が前記RR送信に対する前記通信端末からの応答がないと判断した場合には、前記処理手段は前記通信端末に向けて前記第1の通信回線へ前記RR送信を再度行うことを特徴とする請求項3記載のゲートウェイ装置。 When the third determining means determines that there is no response from the communication terminal to the RR transmission, the processing means retransmits the RR to the first communication line toward the communication terminal. The gateway device according to claim 3, characterized in that: 前記第3の判断手段が前記RRの再度の送信に対する前記通信端末からの応答がないと判断した場合には、前記処理手段は前記通信端末に向けて前記第1の通信回線へ前記RR送信を更に再度行うことを特徴とする請求項4記載のゲートウェイ装置。 If the third determining means determines that there is no response from the communication terminal to the retransmission of the RR, the processing means transmits the RR transmission to the first communication line toward the communication terminal. 5. The gateway device according to claim 4, wherein the processing is performed again. 前記処理手段が3回目の再度の前記RR送信を行った後、前記第3の判断手段が前記RRの再度の送信に対する前記通信端末からの応答がないと判断した場合に、前記第1の復旧手段が前記第1の優先順位の復旧処理の実行を開始することを特徴とする請求項5記載のゲートウェイ装置。 After the processing means transmits the RR for the third time, if the third determination means determines that there is no response from the communication terminal to the retransmission of the RR, the first recovery 6. The gateway device according to claim 5, wherein the means starts execution of the first priority restoration process. 前記記憶手段に前記優先順位データとして記憶される初期の前記第1の優先順位の復旧処理はIDチェック要求送信であり、初期の前記第2の優先順位の復旧処理はSABME送信であることを特徴とする請求項1記載のゲートウェイ装置。 The initial recovery process for the first priority level stored as the priority level data in the storage means is ID check request transmission, and the initial recovery process for the second priority level is SABME transmission. The gateway device according to claim 1. 前記第1の通信回線が接続され、前記通信端末と通信する第1のインタフェース部と、前記第2の通信回線が接続され、前記通信管理装置と通信する第2のインタフェース部と、備え、
前記端末管理部は、前記第1のインタフェース部と前記第2のインタフェース部とに接続されていることを特徴とする請求項1記載のゲートウェイ装置。
a first interface unit to which the first communication line is connected and communicates with the communication terminal; a second interface unit to which the second communication line is connected and communicates with the communication management device;
The gateway device according to claim 1, wherein the terminal management section is connected to the first interface section and the second interface section.
前記第1の通信回線はISDN回線であり、前記第2の通信回線はIPネットワークであることを特徴とする請求項1記載のゲートウェイ装置。 2. The gateway device according to claim 1, wherein the first communication line is an ISDN line, and the second communication line is an IP network. 前記通信端末はディジタル電話機であり、前記通信管理装置は前記IPネットワークに接続されたSIPサーバであることを特徴とする請求項記載のゲートウェイ装置。 10. The gateway device according to claim 9 , wherein the communication terminal is a digital telephone, and the communication management device is a SIP server connected to the IP network. 前記優先順位データに示された前記優先順位は、物理的な前記レイヤ1のリンクダウン操作によって初期化されることを特徴とする請求項1記載のゲートウェイ装置。 2. The gateway device according to claim 1, wherein the priorities indicated in the priority data are initialized by a physical link down operation of the layer 1. 通信端末が接続される第1の通信回線と、前記第1の通信回線とは異なるプロトコルの第2の通信回線と、を指令に応じて通信可能に接続する端末管理部を有するゲートウェイ装置において前記端末管理部の端末管理方法であって、
前記第1の通信回線を介して前記通信端末とのレイヤ1のリンクが確立をしたか否かを判断するステップと、
前記レイヤ1のリンク確立を判断した後、前記通信端末からのレイヤ2のメッセージ受信を完了したか否かを判断するステップと、
前記レイヤ2のメッセージ受信の完了を判断した後、前記第2の通信回線の通信管理装置への前記通信端末の登録要求を行うステップと、
前記通信端末の登録要求後、前記通信端末に対するキープアライブ処理を実行するステップと、
前記キープアライブ処理により前記通信端末からの応答があったか否かを判断するステップと、
前記キープアライブ処理により前記通信端末からの応答がない場合に、記憶手段に記憶された優先順位データに示された第1の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、
前記第1の優先順位の復旧処理により前記通信端末からの応答がなかった場合に、前記優先順位データに示された第2の優先順位以下の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、
前記第2の優先順位以下の優先順位の復旧処理により前記通信端末からの応答があった場合に、当該第2の優先順位以下の優先順位の復旧処理が前記第1の優先順位の復旧処理に代わって新たな第1の優先順位の復旧処理となるように前記記憶手段の前記優先順位データを書き換えるステップと、を含むことを特徴とする端末管理方法。
In the gateway device, the gateway device includes a terminal management unit that communicably connects a first communication line to which a communication terminal is connected and a second communication line having a protocol different from that of the first communication line in accordance with a command. A terminal management method by a terminal management department,
determining whether a layer 1 link with the communication terminal has been established via the first communication line;
After determining the layer 1 link establishment, determining whether or not the layer 2 message reception from the communication terminal is completed;
After determining that the layer 2 message reception is completed, requesting the communication terminal to be registered in the communication management device of the second communication line;
After requesting the registration of the communication terminal, executing a keep-alive process for the communication terminal;
determining whether or not there is a response from the communication terminal through the keep-alive processing;
If there is no response from the communication terminal due to the keep-alive process, whether there is a response from the communication terminal by executing a recovery process of the first priority indicated in the priority data stored in the storage means. a step of determining whether
If there is no response from the communication terminal due to the recovery process for the first priority, the recovery process for a priority lower than or equal to the second priority indicated in the priority data is executed and from the communication terminal. a step of determining whether there is a response;
If there is a response from the communication terminal due to the recovery process for the priority level below the second priority level, the recovery process for the priority level below the second priority level becomes the recovery process for the first priority level. A terminal management method comprising the step of rewriting the priority order data in the storage means so that a new first priority order restoration process is performed instead.
通信端末が接続される第1の通信回線と、前記第1の通信回線とは異なるプロトコルの第2の通信回線と、を指令に応じて通信可能に接続する端末管理部を有するゲートウェイ装置において前記通信端末を管理する方法のためのプログラムであって、
前記端末管理部のコンピュータに、
前記第1の通信回線を介して前記通信端末とのレイヤ1のリンクが確立をしたか否かを判断するステップと、
前記レイヤ1のリンク確立を判断した後、前記通信端末からのレイヤ2のメッセージ受信を完了したか否かを判断するステップと、
前記レイヤ2のメッセージ受信の完了を判断した後、前記第2の通信回線の通信管理装置への前記通信端末の登録要求を行うステップと、
前記通信端末の登録要求後、前記通信端末に対するキープアライブ処理を実行するステップと、
前記キープアライブ処理により前記通信端末からの応答があったか否かを判断するステップと、
前記キープアライブ処理により前記通信端末からの応答がない場合に、記憶手段に記憶された優先順位データに示された第1の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、
前記第1の優先順位の復旧処理により前記通信端末からの応答がなかった場合に、前記優先順位データに示された第2の優先順位以下の優先順位の復旧処理を実行して前記通信端末からの応答があったか否かを判断するステップと、
前記第2の優先順位以下の優先順位の復旧処理により前記通信端末からの応答があった場合に、当該第2の優先順位以下の優先順位の復旧処理が前記第1の優先順位の復旧処理に代わって新たな第1の優先順位の復旧処理となるように前記記憶手段の前記優先順位データを書き換えるステップと、を実行させることを特徴とするプログラム。
In the gateway device, the gateway device includes a terminal management unit that communicably connects a first communication line to which a communication terminal is connected and a second communication line having a protocol different from that of the first communication line in accordance with a command. A program for a method of managing communication terminals,
On the computer of the terminal management department,
determining whether a layer 1 link with the communication terminal has been established via the first communication line;
After determining the layer 1 link establishment, determining whether or not the layer 2 message reception from the communication terminal is completed;
After determining that the layer 2 message reception is completed, requesting the communication terminal to be registered in the communication management device of the second communication line;
After requesting the registration of the communication terminal, executing a keep-alive process for the communication terminal;
determining whether or not there is a response from the communication terminal through the keep-alive processing;
If there is no response from the communication terminal due to the keep-alive process, whether there is a response from the communication terminal by executing a recovery process of the first priority indicated in the priority data stored in the storage means. a step of determining whether
If there is no response from the communication terminal due to the recovery process for the first priority, the recovery process for a priority lower than or equal to the second priority indicated in the priority data is executed and from the communication terminal. a step of determining whether there is a response;
If there is a response from the communication terminal due to the recovery process for the priority level below the second priority level, the recovery process for the priority level below the second priority level becomes the recovery process for the first priority level. A program characterized in that the program causes the program to execute the step of rewriting the priority data in the storage means so that a new first priority restoration process is performed instead.
JP2020032022A 2020-02-27 2020-02-27 Gateway device, terminal management method, and program Active JP7409153B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020032022A JP7409153B2 (en) 2020-02-27 2020-02-27 Gateway device, terminal management method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020032022A JP7409153B2 (en) 2020-02-27 2020-02-27 Gateway device, terminal management method, and program

Publications (2)

Publication Number Publication Date
JP2021136595A JP2021136595A (en) 2021-09-13
JP7409153B2 true JP7409153B2 (en) 2024-01-09

Family

ID=77661756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020032022A Active JP7409153B2 (en) 2020-02-27 2020-02-27 Gateway device, terminal management method, and program

Country Status (1)

Country Link
JP (1) JP7409153B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003224625A (en) 2001-11-21 2003-08-08 Oki Electric Ind Co Ltd Line switching connection device
US20070220303A1 (en) 2006-03-02 2007-09-20 Hiroyasu Kimura Failure recovery system and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2775541B2 (en) * 1991-12-13 1998-07-16 株式会社日立テレコムテクノロジー Terminal adapter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003224625A (en) 2001-11-21 2003-08-08 Oki Electric Ind Co Ltd Line switching connection device
US20070220303A1 (en) 2006-03-02 2007-09-20 Hiroyasu Kimura Failure recovery system and server
JP2007267352A (en) 2006-03-02 2007-10-11 Alaxala Networks Corp Failure recovery system and server

Also Published As

Publication number Publication date
JP2021136595A (en) 2021-09-13

Similar Documents

Publication Publication Date Title
EP0605349B1 (en) Switched circuit connection management over public data networks for wide area networks
US6122287A (en) Method and apparatus for detecting switched network protocols
EP1349347A2 (en) Method and apparatus for redundant signaling links
JPH07107114A (en) Remote office network system and its communication method
US8285905B2 (en) Redundancy configuration and replacement method in a system including a master main unit and slave main units
US20060013124A1 (en) Module firmware recovery
EP1521424A1 (en) Method and apparatus for migrating to an alternate call controller
JP3608905B2 (en) Data communication system and data communication method
JP7409153B2 (en) Gateway device, terminal management method, and program
JP4352547B2 (en) Remote access server device
JP3930215B2 (en) Information communication system and switching connection method of information communication system
JP3809882B2 (en) Communication system between LANs
JP2001186165A (en) Information communication system and connection method for call control device
JP2001257726A (en) Information communication system
US5732070A (en) Communication control apparatus
JP2002290550A (en) Voice gateway apparatus, processing method therefor and program thereof
EP1560409A2 (en) Apparatus and method for multiplexing communication signals
JP3814647B2 (en) Network terminal equipment
JP3656978B2 (en) Communication content recording apparatus and communication content recording method
JP2000286882A (en) Multimedia information communication system
AU2014203385B2 (en) Slot interface access unit, method thereof, and program thereof, as well as redundancy configuration of main unit, and replacing method of the same
CN117675524A (en) A communication method and related device
JPH0832580A (en) Exchange system
JP2000069196A (en) Communication terminal device
JP2002118583A (en) Shared use type information providing server

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230824

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230905

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231030

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20231121

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231204

R150 Certificate of patent or registration of utility model

Ref document number: 7409153

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150