JP2020198554A - Communication device, communication method, and computer program - Google Patents

Communication device, communication method, and computer program Download PDF

Info

Publication number
JP2020198554A
JP2020198554A JP2019103881A JP2019103881A JP2020198554A JP 2020198554 A JP2020198554 A JP 2020198554A JP 2019103881 A JP2019103881 A JP 2019103881A JP 2019103881 A JP2019103881 A JP 2019103881A JP 2020198554 A JP2020198554 A JP 2020198554A
Authority
JP
Japan
Prior art keywords
communication
protocol
control
management
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019103881A
Other languages
Japanese (ja)
Other versions
JP7188280B2 (en
Inventor
中村 邦彦
Kunihiko Nakamura
邦彦 中村
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP2019103881A priority Critical patent/JP7188280B2/en
Publication of JP2020198554A publication Critical patent/JP2020198554A/en
Application granted granted Critical
Publication of JP7188280B2 publication Critical patent/JP7188280B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To suppress costs of a communication device, and avoid session disconnection due to program update.SOLUTION: A communication device can communicate with an opposite device according to communication protocols, and comprises: a time calculation unit which calculates a communication establishment processing time for establishing communication between the communication device and the opposite device according to the communication protocols; a determination unit which determines whether communication is established between the communication device and the opposite device according to the communication protocols in response to update of a control program of the communication device before end of a timeout time on the basis of the communication establishment processing time calculated by the time calculation unit and the timeout time defined according to the communication protocols; and a program updating unit which performs uninterrupted update processing for updating the control program without rebooting the communication device when the determination unit determines that communication according to the communication protocols has been established before end of the timeout time.SELECTED DRAWING: Figure 5

Description

本開示は、通信装置、通信方法、及びコンピュータプログラムに関する。 The present disclosure relates to communication devices, communication methods, and computer programs.

通信プロトコルの多くでは、対向装置から一定期間データを受信しない場合にセッションを切断するタイムアウトが規定される。通信装置のファームウェア更新では、通信装置の動作が一定期間停止し、その間にタイムアウトが発生しセッションが切断される。 Many communication protocols specify a timeout for disconnecting a session when data is not received from the opposite device for a certain period of time. When updating the firmware of a communication device, the operation of the communication device is stopped for a certain period of time, during which a timeout occurs and the session is disconnected.

特許文献1には、外部装置との間の通信を確立するための通信確立用情報を外部装置との間で送受信する通信確立処理部と、所定の送信周期が経過する毎に、外部装置との間の通信が確立された状態を維持するための通信維持用情報を外部装置へ送信する通信維持処理部とを備えるデータ転送装置が開示されている。特許文献1に開示されるデータ転送装置においては、通信確立処理部の動作が停止しても通信が確立された状態が維持されるように、通信維持処理部は通信確立処理部とは独立に動作するように専用回路によって構成される。 Patent Document 1 describes a communication establishment processing unit that transmits and receives communication establishment information for establishing communication with an external device to and from the external device, and an external device each time a predetermined transmission cycle elapses. A data transfer device including a communication maintenance processing unit that transmits communication maintenance information for maintaining a state in which communication between the two is established is disclosed. In the data transfer device disclosed in Patent Document 1, the communication maintenance processing unit is independent of the communication establishment processing unit so that the state in which communication is established is maintained even if the operation of the communication establishment processing unit is stopped. It is composed of a dedicated circuit to operate.

特開2010−141779号公報JP-A-2010-141779

しかしながら、特許文献1に開示されたデータ転送装置では、専用回路によって通信維持処理部を構成する必要があるため、コストが嵩むという問題がある。 However, the data transfer device disclosed in Patent Document 1 has a problem that the cost increases because the communication maintenance processing unit needs to be configured by a dedicated circuit.

本開示の一態様に係る通信装置は、対向装置に対して通信プロトコルによる通信が可能な通信装置であって、前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出する時間算出部と、前記時間算出部によって算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定する判定部と、前記判定部によって前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記通信装置の再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するプログラム更新部と、を備える。 The communication device according to one aspect of the present disclosure is a communication device capable of communicating with the opposite device by the communication protocol, and is for establishing communication by the communication protocol between the communication device and the opposite device. Based on the time calculation unit that calculates the communication establishment processing time, the communication establishment processing time calculated by the time calculation unit, and the timeout time determined by the communication protocol, before the timeout time ends, A determination unit that determines whether or not communication according to the communication protocol is established between the communication device and the opposite device in response to an update of the control program of the communication device, and the timeout time by the determination unit. When it is determined that communication by the communication protocol is established before the end, a program update unit that executes a non-interruptive update process for updating the control program without restarting the communication device. Be prepared.

本開示の一態様に係る通信方法は、通信装置が対向装置に対して通信プロトコルによる通信を行う通信方法であって、前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出するステップと、算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定するステップと、前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記通信装置の再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するステップと、を含む。 The communication method according to one aspect of the present disclosure is a communication method in which a communication device communicates with an opposite device by a communication protocol, and establishes communication by the communication protocol between the communication device and the opposite device. Control of the communication device before the end of the timeout time, based on the step of calculating the communication establishment processing time for performing the communication establishment processing time, the calculated communication establishment processing time, and the timeout time determined by the communication protocol. The step of determining whether or not the communication by the communication protocol is established between the communication device and the opposite device according to the update of the program, and the communication by the communication protocol before the timeout time ends. A step of executing a non-instantaneous update process for updating the control program without restarting the communication device when it is determined to be established is included.

本開示の一態様に係るコンピュータプログラムは、コンピュータを、対向装置に対して通信プロトコルによる通信を行う通信装置として機能させるためのコンピュータプログラムであって、前記コンピュータに、前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出するステップと、算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定するステップと、前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記コンピュータの再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するステップと、を実行させる。 The computer program according to one aspect of the present disclosure is a computer program for causing a computer to function as a communication device that communicates with an opposite device by a communication protocol, and causes the computer to have the communication device and the opposite device. The timeout time is based on a step of calculating a communication establishment processing time for establishing communication by the communication protocol between the two, the calculated communication establishment processing time, and a timeout time determined by the communication protocol. A step of determining whether or not communication by the communication protocol is established between the communication device and the opposite device in response to an update of the control program of the communication device, and a timeout time before the end of When it is determined that the communication by the communication protocol is established before the end of the process, the step of executing the non-instantaneous update process for updating the control program without restarting the computer is executed. ..

本開示は、上記のような特徴的な構成を備える通信装置として実現することができるだけでなく、通信装置における特徴的な処理をステップとする通信方法として実現したり、かかるステップをコンピュータに実行させるためのコンピュータプログラムとして実現したりすることができる。また、通信装置の一部又は全部を半導体集積回路として実現したり、通信装置を含む通信システムとして実現したりすることができる。 The present disclosure can be realized not only as a communication device having a characteristic configuration as described above, but also as a communication method in which characteristic processing in the communication device is a step, or a computer is made to execute such a step. It can be realized as a computer program for. Further, a part or all of the communication device can be realized as a semiconductor integrated circuit, or can be realized as a communication system including the communication device.

本開示によれば、通信装置のコストを抑制しつつ、プログラム更新によるセッションの切断を回避することができる。 According to the present disclosure, it is possible to avoid disconnection of a session due to a program update while suppressing the cost of a communication device.

実施形態に係る通信システムの構成の一例を示す図である。It is a figure which shows an example of the structure of the communication system which concerns on embodiment. 実施形態に係る親局装置の内部構成の一例を示すブロック図である。It is a block diagram which shows an example of the internal structure of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置の制御部のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware composition of the control part of the master station apparatus which concerns on embodiment. 制御プロトコル及び管理プロトコルのタイムアウト時間の規定を示す図である。It is a figure which shows the regulation of the time-out time of a control protocol and a management protocol. 実施形態に係る親局装置の制御部の機能の一例を示す機能ブロック図である。It is a functional block diagram which shows an example of the function of the control part of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置の判定部による第1判定処理及び第2判定処理の一例を説明するための図である。It is a figure for demonstrating an example of the 1st determination process and the 2nd determination process by the determination part of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置の判定部による第1判定処理の他の一例を説明するための図である。It is a figure for demonstrating another example of the 1st determination process by the determination part of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置の判定部による第1判定処理及び第2判定処理のさらに他の一例を説明するための図である。It is a figure for demonstrating still another example of the 1st determination process and the 2nd determination process by the determination part of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置の判定部による第3判定処理及び第4判定処理の一例を説明するための図である。It is a figure for demonstrating an example of the 3rd determination process and the 4th determination process by the determination part of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置の判定部による第3判定処理の他の一例を説明するための図である。It is a figure for demonstrating another example of the 3rd determination process by the determination part of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置の判定部による第3判定処理及び第4判定処理のさらに他の一例を説明するための図である。It is a figure for demonstrating still another example of the 3rd determination process and the 4th determination process by the determination part of the master station apparatus which concerns on embodiment. 実施形態に係る親局装置による通信確立判定処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the communication establishment determination processing by the master station apparatus which concerns on embodiment. 実施形態に係る親局装置による管理プロトコル優先判定処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the management protocol priority determination processing by the master station apparatus which concerns on embodiment. 実施形態に係る親局装置による制御プロトコル優先判定処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the control protocol priority determination process by the master station apparatus which concerns on embodiment. 実施形態に係る親局装置による管理通信確立処理時間算出処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the management communication establishment processing time calculation processing by the master station apparatus which concerns on embodiment. 実施形態に係る親局装置による制御通信確立処理時間算出処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the control communication establishment processing time calculation processing by the master station apparatus which concerns on embodiment. 実施形態に係る親局装置による管理通信確立処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the management communication establishment processing by the master station apparatus which concerns on embodiment. 実施形態に係る親局装置による制御通信確立処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the control communication establishment processing by the master station apparatus which concerns on embodiment. 変形例に係る親局装置の制御部の機能の一例を示す機能ブロック図である。It is a functional block diagram which shows an example of the function of the control part of the master station apparatus which concerns on a modification. 変形例に係る親局装置の判定部による判定処理の例を説明するための図である。It is a figure for demonstrating the example of the determination process by the determination part of the master station apparatus which concerns on a modification. 変形例に係る親局装置の判定部による判定処理の例を説明するための図である。It is a figure for demonstrating the example of the determination process by the determination part of the master station apparatus which concerns on a modification. 変形例に係る親局装置による通信確立判定処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the communication establishment determination processing by the master station apparatus which concerns on a modification.

<本開示の実施形態の概要>
以下、本開示の実施形態の概要を列記して説明する。
<Outline of Embodiments of the present disclosure>
Hereinafter, the outlines of the embodiments of the present disclosure will be listed and described.

(1) 本実施形態に係る通信装置は、対向装置に対して通信プロトコルによる通信が可能な通信装置であって、前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出する時間算出部と、前記時間算出部によって算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定する判定部と、前記判定部によって前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記通信装置の再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するプログラム更新部と、を備える。これにより、タイムアウト時間が終了する前に、制御プログラムの更新が実行され、通信プロトコルによる対向装置との通信が確立する。さらに、セッションを維持するための専用回路が必要とされない。したがって、通信装置のコストを抑制しつつ、制御プログラムの更新によるセッションの切断を回避することができる。 (1) The communication device according to the present embodiment is a communication device capable of communicating with the opposite device by the communication protocol, and establishes communication by the communication protocol between the communication device and the opposite device. Before the end of the timeout time, based on the time calculation unit that calculates the communication establishment processing time for the purpose, the communication establishment processing time calculated by the time calculation unit, and the timeout time determined by the communication protocol. A determination unit that determines whether or not communication according to the communication protocol is established between the communication device and the opposite device in response to an update of the control program of the communication device, and a timeout time by the determination unit. When it is determined that communication by the communication protocol is established before the end of, a program update unit that executes a non-instantaneous update process for updating the control program without restarting the communication device. To be equipped with. As a result, the control program is updated before the timeout time ends, and communication with the opposite device by the communication protocol is established. Moreover, no dedicated circuitry is needed to maintain the session. Therefore, it is possible to avoid disconnection of the session due to the update of the control program while suppressing the cost of the communication device.

(2) 本実施形態に係る通信装置において、前記時間算出部は、前記通信装置の保守及び管理に用いられる前記通信プロトコルである管理プロトコルによる通信を確立するための管理通信確立処理時間を算出し、前記時間算出部は、前記通信装置による通信を制御するための前記通信プロトコルである制御プロトコルによる通信を確立するための制御通信確立処理時間を算出し、前記判定部は、前記時間算出部によって算出される前記管理通信確立処理時間及び前記制御通信確立処理時と、前記タイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されるか否かを判定してもよい。これにより、管理プロトコル及び制御プロトコルによるセッションの切断を回避することができる。 (2) In the communication device according to the present embodiment, the time calculation unit calculates the management communication establishment processing time for establishing communication by the management protocol, which is the communication protocol used for maintenance and management of the communication device. The time calculation unit calculates the control communication establishment processing time for establishing the communication by the control protocol, which is the communication protocol for controlling the communication by the communication device, and the determination unit calculates the control communication establishment processing time by the time calculation unit. Based on the calculated management communication establishment processing time, the control communication establishment processing time, and the timeout time, before the timeout time ends, the communication by the management protocol and the said in response to the update of the control program. It may be determined whether or not each of the communication by the control protocol is established. This makes it possible to avoid disconnection of the session by the management protocol and the control protocol.

(3) 本実施形態に係る通信装置において、前記タイムアウト時間は、前記管理プロトコルによって定められる第1タイムアウト時間と、前記制御プロトコルによって定められる第2タイムアウト時間とのうちのいずれか一方であってもよい。これにより、管理プロトコルに対応する第1タムアウト時間及び制御プロトコルに対応する第2タイムアウト時間のいずれか一方が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるため、少なくとも管理プロトコル及び制御プロトコルのいずれか一方によるセッションの切断を回避することができる。 (3) In the communication device according to the present embodiment, the timeout time may be either one of the first timeout time defined by the management protocol and the second timeout time defined by the control protocol. Good. As a result, at least communication by the management protocol and communication by the control protocol are established before either the first tom-out time corresponding to the management protocol or the second timeout time corresponding to the control protocol ends. It is possible to avoid disconnection of the session by either the management protocol or the control protocol.

(4) 本実施形態に係る通信装置において、前記通信装置によって複数の前記管理プロトコルが用いられる場合、前記第1タイムアウト時間は、前記複数の管理プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間であり、前記通信装置によって複数の前記制御プロトコルが用いられる場合、前記第2タイムアウト時間は、前記複数の制御プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間であってもよい。これにより、複数の管理プロトコルのそれぞれによって定められる最小のタイムアウト時間及び複数の制御プログラムのそれぞれによって定められる最小のタイムアウト時間のいずれか一方が終了する前に、複数の管理プロトコルによる通信及び複数の制御プロトコルによる通信のそれぞれが確立されるため、複数の管理プロトコルのそれぞれによるセッション又は複数の制御プロトコルのそれぞれによるセッションの切断を回避することができる。 (4) In the communication device according to the present embodiment, when a plurality of the management protocols are used by the communication device, the first timeout time is the minimum of the timeout times defined by each of the plurality of management protocols. It is a timeout time, and when a plurality of the control protocols are used by the communication device, the second timeout time may be the minimum timeout time among the timeout times defined by each of the plurality of control protocols. .. As a result, communication and control by the plurality of management protocols are performed before either the minimum timeout time defined by each of the plurality of management protocols or the minimum timeout time defined by each of the plurality of control programs ends. Since each of the communication by the protocol is established, it is possible to avoid disconnection of the session by each of the plurality of management protocols or the session by each of the plurality of control protocols.

(5) 本実施形態に係る通信装置は、前記管理プロトコル及び前記制御プロトコルのうちのいずれか一方を選択する選択部をさらに備え、前記判定部は、前記選択部によって選択される前記通信プロトコルである選択プロトコルに対応する前記通信確立処理時間と、前記第1及び第2タイムアウト時間のうち、前記選択プロトコルに対応する一方である選択タイムアウト時間とに基づいて、前記選択タイムアウト時間が終了する前に、前記選択プロトコルによる通信が確立されるか否かを判定する第1判定処理と、前記管理通信確立処理時間及び前記制御通信確立処理時の和と、前記第1及び第2タイムアウト時間のうちの他方である非選択タイムアウト時間とに基づいて、前記非選択タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されるか否かを判定する第2判定処理と、を実行してもよい。これにより、第1判定処理により、選択プロトコルによるセッションの切断を回避することができ、第2判定処理により、少なくとも管理プロトコル及び制御プロトコルのいずれか一方によるセッションの切断を回避することができる。 (5) The communication device according to the present embodiment further includes a selection unit for selecting either the management protocol or the control protocol, and the determination unit is the communication protocol selected by the selection unit. Before the end of the selection timeout time, based on the communication establishment processing time corresponding to a certain selection protocol and the selection timeout time corresponding to the selection protocol among the first and second timeout times. Of the first determination process for determining whether or not communication by the selection protocol is established, the sum of the management communication establishment processing time and the control communication establishment process, and the first and second timeout times. Whether or not communication by the management protocol and communication by the control protocol are established in response to the update of the control program before the non-selection timeout time ends, based on the other non-selection timeout time. The second determination process for determining whether or not the protocol may be executed. As a result, the first determination process can prevent the session from being disconnected by the selection protocol, and the second determination process can prevent the session from being disconnected by at least one of the management protocol and the control protocol.

(6) 本実施形態に係る通信装置において、前記判定部は、前記第1判定処理において、前記選択タイムアウト時間が終了する前に、前記選択プロトコルによる通信が確立されると判定される場合に、前記第2判定処理を実行し、前記プログラム更新部は、前記第2判定処理において、前記非選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記無瞬断更新処理を実行し、前記プログラム更新部は、前記第1判定処理において、前記選択タイムアウト時間が終了する前に、前記選択プロトコルによる通信が確立されないと判定される場合に、前記無瞬断更新処理を実行しなくてもよい。これにより、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立され、且つ、非選択タイムアウト時間が終了する前に、管理プロトコル及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、無瞬断更新処理が実行される。つまり、管理プロトコル及び制御プロトコルによる各セッションが切断されないと判定される場合に、無瞬断更新処理を実行することができる。さらに、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立されない場合に、無瞬断更新処理が実行されない。つまり、選択プロトコルによるセッションが切断されると判定される場合に、無瞬断更新処理を実行せず、選択プロトコルによるセッションの切断を回避することができる。 (6) In the communication device according to the present embodiment, when the determination unit determines in the first determination process that communication by the selection protocol is established before the selection timeout time ends, The second determination process is executed, and the program update unit establishes communication according to the management protocol and communication according to the control protocol before the non-selection timeout time ends in the second determination process. When it is determined that, the non-instantaneous update process is executed, and the program update unit determines in the first determination process that communication by the selection protocol is not established before the selection timeout time ends. If this is the case, it is not necessary to execute the non-instantaneous update process. As a result, when it is determined that the communication by the selection protocol is established before the selection timeout time ends, and the communication by the management protocol and the control protocol is established before the non-selection timeout time ends. In addition, the non-instantaneous update process is executed. That is, when it is determined that each session according to the management protocol and the control protocol is not disconnected, the non-instantaneous update process can be executed. Further, if communication by the selection protocol is not established before the selection timeout time ends, the non-interrupted update process is not executed. That is, when it is determined that the session by the selected protocol is disconnected, the session cannot be disconnected by the selected protocol without executing the non-interrupted update process.

(7) 本実施形態に係る通信装置は、前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理を実行する通信確立部をさらに備え、前記通信確立部は、前記第2判定処理において、前記非選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記選択プロトコルによる第1通信確立処理を実行し、前記第1通信確立処理が終了した後、前記管理プロトコル及び前記制御プロトコルのうち前記選択部によって選択されない前記通信プロトコルである非選択プロトコルによる第2通信確立処理を実行してもよい。これにより、第2判定処理において非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、選択プロトコルに係る第1通信管理処理、及び非選択プロトコルに係る第2通信管理処理が順番に実行される。よって、選択プロトコル及び非選択プロトコルによる各セッションの切断を回避することができる。 (7) The communication device according to the present embodiment further includes a communication establishment unit that executes a communication establishment process for establishing communication by the communication protocol between the communication device and the opposite device, and establishes the communication. In the second determination process, when it is determined that the communication by the management protocol and the communication by the control protocol are established before the non-selection timeout time ends, the unit uses the selection protocol. 1 Communication establishment process is executed, and after the first communication establishment process is completed, a second communication establishment process is executed by a non-selection protocol which is a communication protocol that is not selected by the selection unit among the management protocol and the control protocol. You may. As a result, when it is determined that the communication by the management protocol and the communication by the control protocol are established before the non-selection timeout time ends in the second determination process, the first communication management process related to the selection protocol, And the second communication management process related to the non-selection protocol is executed in order. Therefore, it is possible to avoid disconnection of each session by the selected protocol and the non-selected protocol.

(8) 本実施形態に係る通信装置において、前記判定部は、前記第2判定処理において、前記非選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信の少なくとも一方が確立されないと判定される場合に、前記非選択プロトコルに対応する前記通信確立処理時間と、前記非選択タイムアウト時間とに基づいて、前記非選択タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記非選択プロトコルによる通信が確立されるか否かを判定する第3判定処理を実行し、前記判定部は、前記第3判定処理において、前記非選択タイムアウト時間が終了する前に、前記非選択プロトコルによる通信が確立されると判定される場合に、前記管理通信確立処理時間及び前記制御通信確立処理時の和と、前記選択タイムアウト時間とに基づいて、前記選択タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されるか否かを判定する第4判定処理を実行してもよい。これにより、第2判定処理において非選択タイムアウト時間が終了する前に、管理プロトコル及び制御プロトコルによる通信の少なくとも一方が確立されないと判定される場合に、第1及び第2判定処理とは管理プロトコル及び制御プロトコルの通信確立処理の順番を入れ替えた第3及び第4判定処理が実行される。したがって、第2判定処理においてセッションが切断されると判定される場合に、管理プロトコル及び制御プロトコルの通信確立処理の順番を入れ替えることでセッションが維持されるか否かを判定することができる。 (8) In the communication device according to the present embodiment, in the second determination process, at least one of the communication by the management protocol and the communication by the control protocol is performed before the non-selection timeout time ends. When it is determined that the non-selection protocol is not established, the control program is updated before the non-selection timeout time ends, based on the communication establishment processing time corresponding to the non-selection protocol and the non-selection timeout time. Correspondingly, a third determination process for determining whether or not communication by the non-selection protocol is established is executed, and the determination unit performs the third determination process before the non-selection timeout time ends in the third determination process. When it is determined that communication by the non-selection protocol is established, before the selection timeout time ends based on the sum of the management communication establishment processing time and the control communication establishment processing and the selection timeout time. In addition, a fourth determination process for determining whether or not communication according to the management protocol and communication according to the control protocol are established in response to the update of the control program may be executed. As a result, when it is determined that at least one of the communication by the management protocol and the control protocol is not established before the non-selection timeout time ends in the second determination process, the first and second determination processes are the management protocol and The third and fourth determination processes in which the order of the communication establishment processes of the control protocol is changed are executed. Therefore, when it is determined that the session is disconnected in the second determination process, it can be determined whether or not the session is maintained by changing the order of the communication establishment processes of the management protocol and the control protocol.

(9) 本実施形態に係る通信装置において、前記プログラム更新部は、前記第4判定処理において、前記選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記無瞬断更新処理を実行し、前記プログラム更新部は、前記第3判定処理において、前記非選択タイムアウト時間が終了する前に、前記非選択プロトコルによる通信が確立されないと判定される場合に、前記無瞬断更新処理を実行しなくてもよい。これにより、非選択タイムアウト時間が終了する前に、非選択プロトコルによる通信が確立され、且つ、選択タイムアウト時間が終了する前に、管理プロトコル及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、無瞬断更新処理が実行される。つまり、管理プロトコル及び制御プロトコルによる各セッションが切断されないと判定される場合に、無瞬断更新処理を実行することができる。さらに、非選択タイムアウト時間が終了する前に、非選択プロトコルによる通信が確立されない場合に、無瞬断更新処理が実行されない。つまり、非選択プロトコルによるセッションが切断されると判定される場合に、無瞬断更新処理が実行されず、非選択プロトコルによるセッションの切断を回避することができる。 (9) In the communication device according to the present embodiment, in the fourth determination process, the program update unit establishes communication by the management protocol and communication by the control protocol before the end of the selection timeout time. When it is determined that the program update process is performed, the program update unit executes communication by the non-selection protocol before the non-selection timeout time ends in the third determination process. When it is determined that it is not established, it is not necessary to execute the non-instantaneous update process. As a result, it is determined that the communication by the non-selection protocol is established before the non-selection timeout time ends, and the communication by the management protocol and the control protocol is established before the selection timeout time ends. In that case, the non-instantaneous update process is executed. That is, when it is determined that each session according to the management protocol and the control protocol is not disconnected, the non-instantaneous update process can be executed. Further, if communication by the non-selection protocol is not established before the non-selection timeout time ends, the non-intermittent update process is not executed. That is, when it is determined that the session by the non-selection protocol is disconnected, the non-intermittent update process is not executed, and the disconnection of the session by the non-selection protocol can be avoided.

(10) 本実施形態に係る通信装置において、前記通信確立部は、前記第4判定処理において、前記選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記第2通信確立処理を実行し、前記第2通信確立処理が終了した後、前記第1通信確立処理を実行してもよい。これにより、第4判定処理において選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、非選択プロトコルに係る第2通信管理処理、及び選択プロトコルに係る第1通信管理処理が順番に実行される。よって、非選択プロトコル及び選択プロトコルによる各セッションの切断を回避することができる。 (10) In the communication device according to the present embodiment, the communication establishment unit establishes communication by the management protocol and communication by the control protocol before the end of the selection timeout time in the fourth determination process. The second communication establishment process may be executed, and after the second communication establishment process is completed, the first communication establishment process may be executed. As a result, when it is determined that the communication by the management protocol and the communication by the control protocol are established before the selection timeout time ends in the fourth determination process, the second communication management process related to the non-selection protocol, And the first communication management process related to the selected protocol is executed in order. Therefore, it is possible to avoid disconnection of each session by the non-selection protocol and the selection protocol.

(11) 本実施形態に係る通信装置において、前記時間算出部は、第1通信プロトコルによる通信を確立するための第1通信確立処理時間と、前記第1通信プロトコルとは異なる第2通信プロトコルによる通信を確立するための第2通信確立処理時間とのそれぞれを算出し、前記判定部は、前記時間算出部によって算出される前記第1通信確立処理時間と、前記第1プロトコルによって定められる第1タイムアウト時間とに基づいて、前記第1タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記第1プロトコルによる通信が確立されるか否かを判定する第1判定処理と、前記時間算出部によって算出される前記第1通信確立処理時間及び前記第2通信確立処理時間の和と、前記第2プロトコルによって定められる第2タイムアウト時間とに基づいて、前記第2タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記第1プロトコルによる通信及び前記第2プロトコルによる通信のそれぞれが確立されるか否かを判定する第2判定処理と、を実行してもよい。これにより、第1プロトコル及び第2プロトコルによるセッションの切断を回避することができる。 (11) In the communication device according to the present embodiment, the time calculation unit uses a first communication establishment processing time for establishing communication by the first communication protocol and a second communication protocol different from the first communication protocol. Each of the second communication establishment processing time for establishing communication is calculated, and the determination unit determines the first communication establishment processing time calculated by the time calculation unit and the first communication establishment processing time determined by the first protocol. Based on the time-out time, the first determination process for determining whether or not communication by the first protocol is established in response to the update of the control program before the end of the first time-out time, and the time. Before the end of the second timeout time, based on the sum of the first communication establishment processing time and the second communication establishment processing time calculated by the calculation unit and the second timeout time defined by the second protocol. In addition, a second determination process for determining whether or not each of the communication according to the first protocol and the communication according to the second protocol is established according to the update of the control program may be executed. As a result, it is possible to avoid disconnection of the session by the first protocol and the second protocol.

(12) 本実施形態に係る通信方法は、通信装置が対向装置に対して通信プロトコルによる通信を行う通信方法であって、前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出するステップと、算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定するステップと、前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記通信装置の再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するステップと、を含む。これにより、タイムアウト時間が終了する前に、制御プログラムの更新が実行され、通信プロトコルによる対向装置との通信が確立する。さらに、セッションを維持するための専用回路が必要とされない。したがって、通信装置のコストを抑制しつつ、制御プログラムの更新によるセッションの切断を回避することができる。 (12) The communication method according to the present embodiment is a communication method in which the communication device communicates with the opposite device by the communication protocol, and the communication between the communication device and the opposite device is performed by the communication protocol. Based on the step of calculating the communication establishment processing time for establishment, the calculated communication establishment processing time, and the timeout time determined by the communication protocol, the communication device of the communication device before the timeout time ends. A step of determining whether or not communication by the communication protocol is established between the communication device and the opposite device according to the update of the control program, and communication by the communication protocol before the timeout time ends. Includes a step of executing a non-instantaneous update process for updating the control program without restarting the communication device when it is determined that is established. As a result, the control program is updated before the timeout time ends, and communication with the opposite device by the communication protocol is established. Moreover, no dedicated circuitry is needed to maintain the session. Therefore, it is possible to avoid disconnection of the session due to the update of the control program while suppressing the cost of the communication device.

(13) 本実施形態に係るコンピュータプログラムは、コンピュータを、対向装置に対して通信プロトコルによる通信を行う通信装置として機能させるためのコンピュータプログラムであって、前記コンピュータに、前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出するステップと、算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定するステップと、前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記通信装置の再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するステップと、を実行させる。これにより、タイムアウト時間が終了する前に、制御プログラムの更新が実行され、通信プロトコルによる対向装置との通信が確立する。さらに、セッションを維持するための専用回路が必要とされない。したがって、通信装置のコストを抑制しつつ、制御プログラムの更新によるセッションの切断を回避することができる。 (13) The computer program according to the present embodiment is a computer program for causing a computer to function as a communication device that communicates with an opposite device by a communication protocol, and causes the computer to have the communication device and the opposite device. The timeout is based on a step of calculating a communication establishment processing time for establishing communication with the communication protocol between the two, the calculated communication establishment processing time, and a timeout time determined by the communication protocol. Before the end of the time, a step of determining whether or not communication by the communication protocol is established between the communication device and the opposite device in response to an update of the control program of the communication device, and the timeout. When it is determined that communication by the communication protocol is established before the end of the time, a step of executing a non-interruptive update process for updating the control program without restarting the communication device. Let it run. As a result, the control program is updated before the timeout time ends, and communication with the opposite device by the communication protocol is established. Moreover, no dedicated circuitry is needed to maintain the session. Therefore, it is possible to avoid disconnection of the session due to the update of the control program while suppressing the cost of the communication device.

<本開示の実施形態の詳細>
以下、図面を参照しつつ、本開示の実施形態の詳細を説明する。なお、以下に記載する実施形態の少なくとも一部を任意に組み合わせてもよい。
<Details of Embodiments of the present disclosure>
Hereinafter, the details of the embodiments of the present disclosure will be described with reference to the drawings. In addition, at least a part of the embodiments described below may be arbitrarily combined.

[1.通信システムの構成]
図1は、本実施形態に係る通信システムの構成の一例を示す図である。図1に示すように、通信システム10は、親局装置(第1通信装置)1と、子局装置(第2通信装置)2と、通信回線3とを備える。
[1. Communication system configuration]
FIG. 1 is a diagram showing an example of a configuration of a communication system according to the present embodiment. As shown in FIG. 1, the communication system 10 includes a master station device (first communication device) 1, a slave station device (second communication device) 2, and a communication line 3.

第1及び第2通信装置1,2は、それぞれ回線終端装置として機能する通信装置である。従って、通信回線3は、第1及び第2通信装置1,2との接続端において終端する。 The first and second communication devices 1 and 2 are communication devices that function as line termination devices, respectively. Therefore, the communication line 3 is terminated at the connection end with the first and second communication devices 1 and 2.

通信回線3は、光ファイバ又は同軸ケーブルなどの通信ケーブルよりなる。通信回線3の代わりに、無線通信の伝送路を採用することもできる。なお、本実施形態では、通信回線3が光ファイバである場合を想定する。
通信システム10の上位側に位置する第1通信装置1は、上位網5と通信可能に接続され、通信システム10の下位側に位置する第2通信装置2は、下位網6と通信可能に接続されている。下位網6は、例えば、宅内LAN(Local Area Network)又は社内LANなどよりなる。
The communication line 3 is composed of a communication cable such as an optical fiber or a coaxial cable. A wireless communication transmission line may be adopted instead of the communication line 3. In this embodiment, it is assumed that the communication line 3 is an optical fiber.
The first communication device 1 located on the upper side of the communication system 10 is communicably connected to the upper network 5, and the second communication device 2 located on the lower side of the communication system 10 is communicably connected to the lower network 6. Has been done. The lower network 6 is composed of, for example, a home LAN (Local Area Network) or an in-house LAN.

第1及び第2通信装置1,2は、イーサネットフレーム、IP(Internet Protocol)パケット等のPDU(Protocol Data Unit)である通信データを送受信可能であり、Ether−OAM(Ethernet OAM, OAM: Operations, Administration,Maintenance)に対応する通信機器である。また、第1及び第2通信装置1,2は、IEEE802.3ahに規定するLink−OAMの機能を有する。つまり、第1及び第2通信装置1,2は、通信回線3を通じて、Ether−OAM及びLink−OAMによる通信が可能である。
Link−OAMは、一対のイーサネット機器間の物理回線や通信状態の監視などを目的とする、P2P(Point to Point)での利用を前提とするOAM機能であり、制御プロトコルである。Ether−OAMも、OAM機能の1つであり、制御プロトコルである。
The first and second communication devices 1 and 2 can transmit and receive communication data which is a PDU (Protocol Data Unit) such as an Ethernet frame and an IP (Internet Protocol) packet, and are Ether-OAM (Ethernet OAM, OAM: Operations, It is a communication device that supports Administration and Maintenance. Further, the first and second communication devices 1 and 2 have the function of Link-OAM specified in IEEE802.3ah. That is, the first and second communication devices 1 and 2 can communicate by Ether-OAM and Link-OAM through the communication line 3.
Link-OAM is an OAM function and a control protocol that is premised on use in P2P (Point to Point) for the purpose of monitoring the physical line and communication status between a pair of Ethernet devices. Ether-OAM is also one of the OAM functions and is a control protocol.

第1通信装置1は、上位網5(に属する対向装置)との間でLACP(Link Aggregation Control Protocol)による通信が可能である。LACPは、複数の物理ポートを束ねてひとつの論理チャネルとして扱うためのプロトコルであり、制御プロトコルである。 The first communication device 1 can communicate with the upper network 5 (opposite device belonging to) by LACP (Link Aggregation Control Protocol). LACP is a protocol for bundling a plurality of physical ports and treating them as one logical channel, and is a control protocol.

第2通信装置2は、さらに、下位網6(に属する対向装置)との間でEther−OAM及びLink−OAMのそれぞれによる通信が可能である。 The second communication device 2 can further communicate with the lower network 6 (opposite device belonging to) by Ether-OAM and Link-OAM, respectively.

図1の例では、上位側の回線終端装置である第1通信装置1が「親局装置1」であり、下位側の回線終端装置である第2通信装置2が「子局装置2」である。 In the example of FIG. 1, the first communication device 1 which is the upper line termination device is the "master station device 1", and the second communication device 2 which is the lower line termination device is the "slave station device 2". is there.

さらに第1通信装置1は、通信回線9を介して、保守装置7及び管理装置8と接続される。第1通信装置1は、保守装置7との間でtelnet及びSSH(Secure Shell、SSHは登録商標)のそれぞれによる通信が可能である。さらに第1通信装置1は、管理装置8との間でSNMP(Simple Network Management Protocol)及びsyslogによる通信が可能である。telnet及びSSHは、IPネットワーク上の機器を遠隔操作するための通信プロトコルであり、管理プロトコルである。SNMPは、IPネットワーク上のネットワーク機器を監視するための通信プロトコルであり、管理プロトコルである。syslogは、IPネットワーク上の機器のログを転送するための通信プロトコルであり、管理プロトコルである。 Further, the first communication device 1 is connected to the maintenance device 7 and the management device 8 via the communication line 9. The first communication device 1 can communicate with the maintenance device 7 by telnet and SSH (Secure Shell, SSH is a registered trademark), respectively. Further, the first communication device 1 can communicate with the management device 8 by SNMP (Simple Network Management Protocol) and syslog. Telnet and SSH are communication protocols and management protocols for remotely controlling devices on an IP network. SNMP is a communication protocol for monitoring network devices on an IP network, and is a management protocol. Syslog is a communication protocol for transferring logs of devices on an IP network, and is a management protocol.

[2.親局装置の内部構成]
図2は、親局装置1の内部構成の一例を示すブロック図である。図2において、実線の矢印は通信データの伝送方向を示し、破線の矢印は制御信号の内部バスを示す。
図2に示すように、本実施形態の親局装置1は、上位側インタフェース部11、制御部12、受信処理部13、送信処理部14、対向側インタフェース部15、上りバッファ16、下りバッファ17、通信処理部18、及び通信インタフェース部19を備える。
[2. Internal configuration of master station device]
FIG. 2 is a block diagram showing an example of the internal configuration of the master station device 1. In FIG. 2, the solid line arrow indicates the transmission direction of the communication data, and the broken line arrow indicates the internal bus of the control signal.
As shown in FIG. 2, the master station apparatus 1 of the present embodiment has an upper interface unit 11, a control unit 12, a reception processing unit 13, a transmission processing unit 14, a counter interface unit 15, an uplink buffer 16, and a downlink buffer 17. , Communication processing unit 18, and communication interface unit 19.

上位側インタフェース部11は、上り方向及び下り方向の電気信号に対して、レイヤ1及びレイヤ2の通信処理を実行する集積回路を含む。
制御部12、受信処理部13及び送信処理部14は、上り方向及び下り方向の通信データに対して、IEEE 802.3ahなどの所定の通信規格に則った通信処理を実行する集積回路(例えば、MACチップ)よりなる。
The upper interface unit 11 includes an integrated circuit that executes communication processing of layers 1 and 2 with respect to electrical signals in the upward and downward directions.
The control unit 12, the reception processing unit 13, and the transmission processing unit 14 are integrated circuits (for example,) that execute communication processing in accordance with a predetermined communication standard such as IEEE 802.3ah for the communication data in the uplink direction and the downlink direction. MAC chip).

受信処理部13及び送信処理部14は、特定の情報処理が可能となるように設計された論理回路デバイスよりなり、例えば、ASIC(Application Specific Integrated Circuit)及びFPGAのうちの少なくとも1つを含む。 The reception processing unit 13 and the transmission processing unit 14 are composed of logic circuit devices designed to enable specific information processing, and include, for example, at least one of an ASIC (Application Specific Integrated Circuit) and an FPGA.

対向側インタフェース部15は、光信号を送受信する素子を含む光通信デバイス(例えば、プラガブル光トランシーバ)よりなる。
対向側インタフェース部15は、光ファイバ3から受信した光信号を電気信号よりなる通信データに変換し、変換した通信データを受信処理部13に出力する。対向側インタフェース部15は、送信処理部14からの通信データを光信号に変換し、変換した光信号を光ファイバ3に送出する。
The interface unit 15 on the opposite side comprises an optical communication device (for example, a pluggable optical transceiver) including an element for transmitting and receiving an optical signal.
The interface unit 15 on the opposite side converts the optical signal received from the optical fiber 3 into communication data composed of an electric signal, and outputs the converted communication data to the reception processing unit 13. The opposite side interface unit 15 converts the communication data from the transmission processing unit 14 into an optical signal, and sends the converted optical signal to the optical fiber 3.

受信処理部13は、「制御プロトコル判定処理」を実行可能である。この処理は、対向側インタフェース部15から入力された通信データが、制御プロトコルの制御データ(以下、「制御プロトコルデータ」という)であるか否かを判定する処理である。制御プロトコルデータには、Link−OAM、LACP、及びEther−OAMそれぞれの通信フレームが含まれる。制御プロトコル判定処理では、入力された通信データが、Link−OAM、LACP、又はEther−OAMの通信フレームであるか、それら以外のPDUであるかが判定される。 The reception processing unit 13 can execute the "control protocol determination process". This process is a process of determining whether or not the communication data input from the opposite side interface unit 15 is the control data of the control protocol (hereinafter, referred to as “control protocol data”). The control protocol data includes communication frames for each of Link-OAM, LACP, and Ether-OAM. In the control protocol determination process, it is determined whether the input communication data is a Link-OAM, LACP, or Ether-OAM communication frame, or a PDU other than those.

受信処理部13は、入力された通信データが制御プロトコルデータであると判定された場合に、当該制御プロトコルデータを制御部12に出力する。受信処理部13は、入力された通信データが制御プロトコルデータでないと判定された場合に、当該通信データを上りバッファ16に出力する。 When the reception processing unit 13 determines that the input communication data is the control protocol data, the reception processing unit 13 outputs the control protocol data to the control unit 12. When it is determined that the input communication data is not the control protocol data, the reception processing unit 13 outputs the communication data to the uplink buffer 16.

上位側インタフェース部11は、上位網5から受信した搬送信号を通信データに変換し、変換した通信データを下りバッファ17に出力する。
上位側インタフェース部11は、上りバッファ16に通信データがあれば、その通信データを搬送信号に変換し、変換した搬送信号を上位網5に送出する。
The upper interface unit 11 converts the carrier signal received from the upper network 5 into communication data, and outputs the converted communication data to the downlink buffer 17.
If there is communication data in the uplink buffer 16, the upper interface unit 11 converts the communication data into a carrier signal and sends the converted carrier signal to the upper network 5.

送信処理部14は、下りバッファ17に通信データがあれば、制御部12から制御プロトコルデータが入力される合間に下りバッファ17から通信データを取り出し、対向側インタフェース部15に出力する。 If there is communication data in the downlink buffer 17, the transmission processing unit 14 takes out the communication data from the downlink buffer 17 while the control protocol data is input from the control unit 12, and outputs the communication data to the interface unit 15 on the opposite side.

通信インタフェース部19は、例えばEthernet(登録商標)に対応したネットワークインタフェース回路を含む。通信インタフェース部19は、図示しない接続ポートを有している。接続ポートにはEthernetに対応したネットワークケーブルが接続される。ネットワークケーブルは通信回線9の一部である。つまり、親局装置1は、通信インタフェース部19によって保守装置7及び管理装置8を含むIPネットワークに接続される。 The communication interface unit 19 includes, for example, a network interface circuit corresponding to Ethernet (registered trademark). The communication interface unit 19 has a connection port (not shown). A network cable compatible with Ethernet is connected to the connection port. The network cable is a part of the communication line 9. That is, the master station device 1 is connected to the IP network including the maintenance device 7 and the management device 8 by the communication interface unit 19.

通信処理部18は、telnet、SSH、SNMP、及びsyslogの各管理プロトコルのフレームを送受信することができる。通信処理部18は、受信フレームを制御部12へ出力する。通信処理部18は、保守装置7又は管理装置8宛の送信フレームを制御部12から受け付けると、通信インタフェース19に出力する。 The communication processing unit 18 can send and receive frames of each management protocol of telnet, SSH, SNMP, and syslog. The communication processing unit 18 outputs the received frame to the control unit 12. When the communication processing unit 18 receives the transmission frame addressed to the maintenance device 7 or the management device 8 from the control unit 12, the communication processing unit 18 outputs the transmission frame to the communication interface 19.

図3は、制御部12のハードウェア構成の一例を示すブロック図である。具体的な一例では、制御部12は、CPU(Central Processing Unit)であるプロセッサ12aと、非一過性メモリ12bと、一過性メモリ12cと、入出力インタフェース12dとを有する。 FIG. 3 is a block diagram showing an example of the hardware configuration of the control unit 12. In a specific example, the control unit 12 includes a processor 12a which is a CPU (Central Processing Unit), a non-transient memory 12b, a transient memory 12c, and an input / output interface 12d.

一過性メモリ12cは、例えばSRAM(Static Random Access Memory)、DRAM(Dynamic Random Access Memory)等の揮発性メモリである。非一過性メモリ12bは、例えばフラッシュメモリ、ハードディスク、ROM(Read Only Memory)等の不揮発性メモリである。非一過性メモリ12bには、コンピュータプログラムである制御プログラム12e及び制御プログラム12eの実行に使用されるデータが格納される。制御部12は、コンピュータを備えて構成され、制御部12の各機能は、前記コンピュータの記憶装置に記憶されたコンピュータプログラムである制御プログラム12eがプロセッサ12aによって実行されることで発揮される。制御プログラム12eは、フラッシュメモリ、ROM、CD−ROMなどの記録媒体に記憶させることができる。プロセッサ12aは、制御プログラム12eを実行し、後述するような処理を実行する。 The transient memory 12c is, for example, a volatile memory such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory). The non-transient memory 12b is, for example, a non-volatile memory such as a flash memory, a hard disk, or a ROM (Read Only Memory). The non-transient memory 12b stores the control program 12e, which is a computer program, and the data used for executing the control program 12e. The control unit 12 is configured to include a computer, and each function of the control unit 12 is exhibited by executing the control program 12e, which is a computer program stored in the storage device of the computer, by the processor 12a. The control program 12e can be stored in a recording medium such as a flash memory, a ROM, or a CD-ROM. The processor 12a executes the control program 12e and executes a process as described later.

非一過性メモリ12bには、親局装置1における構成定義情報(設定情報)を含む構成定義ファイル(start−up config)100が記憶される。構成定義ファイル100は、制御プログラム12eの起動時にプロセッサ12aによって読み出され、制御プログラム12e及び親局装置1の例えば通信に関する設定に用いられる。構成定義ファイル100には、制御プロトコル(Ether−OAM、Link−OAM、LACP)の構成定義情報及び管理プロトコル(telnet、SSH、SNMP、syslog)の構成定義情報が含まれる。 The non-transient memory 12b stores a configuration definition file (start-up configuration) 100 including configuration definition information (setting information) in the master station apparatus 1. The configuration definition file 100 is read by the processor 12a when the control program 12e is started, and is used for setting the control program 12e and the master station device 1 for example, regarding communication. The configuration definition file 100 includes configuration definition information of control protocols (Ether-OAM, Link-OAM, LACP) and configuration definition information of management protocols (telnet, SSH, SNMP, syslog).

制御プロトコル及び管理プロトコルのそれぞれには、タイムアウト時間が規定される。制御プロトコル及び管理プロトコルの構成定義情報には、タイムアウト時間が含まれる。図4は、制御プロトコル及び管理プロトコルのタイムアウト時間の規定を示す図である。 A timeout period is specified for each of the control protocol and the management protocol. The configuration definition information of the control protocol and the management protocol includes a timeout time. FIG. 4 is a diagram showing the regulation of the time-out time of the control protocol and the management protocol.

制御プロトコルであるLACP、Link−OAM、及びEther−OAMのそれぞれについては、タイムアウト時間の最小値及び最大値が標準規格によって定められている。具体的には、LACPについては、IEEE 802.3adにより、タイムアウト時間の最小値が3秒、最大値が90秒と規定されている。Link−OAMについては、IEEE 802.3ahにより、タイムアウト時間の最小値が2秒、最大値が30秒と規定されている。Ether−OAMについては、ITU−T Y.1731及びIEEE 802.1agにより、タイムアウト時間の最小値が3.3ミリ秒、最大値が10分と規定されている。制御プロトコルのタイムアウト時間は、最小値及び最大値の間の範囲内で設定される。 For each of the control protocols LACP, Link-OAM, and Ether-OAM, the minimum and maximum timeout times are defined by the standard. Specifically, for LACP, the IEEE 802.3ad defines that the minimum value of the timeout time is 3 seconds and the maximum value is 90 seconds. For Link-OAM, IEEE 802.3ah stipulates that the minimum value of the timeout time is 2 seconds and the maximum value is 30 seconds. For Ether-OAM, see ITU-T Y. 1731 and IEEE 802.1ag specify a minimum timeout period of 3.3 milliseconds and a maximum timeout of 10 minutes. The control protocol timeout period is set in the range between the minimum and maximum values.

管理プロトコルであるtelnet、SSH、SNMP、及びsyslogのそれぞれについては、タイムアウト時間の最小値が定められている。図4に示すように、各管理プロトコルのタイムアウト時間の最小値は1秒である。管理プロトコルのタイムアウト時間の最大値は定められていない。このため、タイムアウト時間は1秒以上であればどのような値にでも設定することができる。つまり、管理プロトコルのタイムアウト時間の最大値は無限大である。管理プロトコルのタイムアウト時間は、1秒以上の値に設定される。 The minimum timeout time is set for each of the management protocols telnet, SSH, SNMP, and syslog. As shown in FIG. 4, the minimum timeout time for each management protocol is 1 second. There is no maximum value for the management protocol timeout. Therefore, the timeout time can be set to any value as long as it is 1 second or longer. That is, the maximum timeout period for the management protocol is infinite. The management protocol timeout time is set to a value of 1 second or longer.

再び図3を参照する。入出力インタフェース12dは、上位側インタフェース部11、受信処理部13、送信処理部14、対向側インタフェース部15、及び通信処理部18のそれぞれに接続され、信号の入出力が可能である。つまり、プロセッサ12aは、入出力インタフェース12dを通じて、上位側インタフェース部11、受信処理部13、送信処理部14、対向側インタフェース部15、及び通信処理部18を制御することができる。受信処理部13及び通信処理部18から出力される受信データは、入出力インタフェース12dを通じてプロセッサ12aに与えられる。プロセッサ12aによって生成される送信データは、入出力インタフェース12dを通じて送信処理部14又は通信処理部18へ出力される。 See FIG. 3 again. The input / output interface 12d is connected to each of the upper interface unit 11, the reception processing unit 13, the transmission processing unit 14, the opposite side interface unit 15, and the communication processing unit 18, and can input and output signals. That is, the processor 12a can control the upper interface unit 11, the reception processing unit 13, the transmission processing unit 14, the opposite side interface unit 15, and the communication processing unit 18 through the input / output interface 12d. The received data output from the reception processing unit 13 and the communication processing unit 18 is given to the processor 12a through the input / output interface 12d. The transmission data generated by the processor 12a is output to the transmission processing unit 14 or the communication processing unit 18 through the input / output interface 12d.

図5は、本実施形態に係る親局装置1の制御部12の機能の一例を示す機能ブロック図である。制御部12は、入力部121、時間算出部122、選択部123、判定部124、プログラム更新部125、及び通信確立部126としての機能を有する。 FIG. 5 is a functional block diagram showing an example of the function of the control unit 12 of the master station device 1 according to the present embodiment. The control unit 12 has functions as an input unit 121, a time calculation unit 122, a selection unit 123, a determination unit 124, a program update unit 125, and a communication establishment unit 126.

入力部121は、非一過性メモリ12bに記憶される制御プロトコル及び管理プロトコルの構成定義情報の入力を受け付ける。構成定義情報には、各プロトコルのタイムアウト時間の設定値が含まれる。 The input unit 121 receives the input of the configuration definition information of the control protocol and the management protocol stored in the non-transient memory 12b. The configuration definition information includes the setting value of the timeout time of each protocol.

時間算出部122は、通信装置である親局装置1と対向装置との間での通信プロトコルによる通信を確立するための通信確立処理時間を算出する。具体的な一例では、時間算出部122は、管理プロトコルによる通信を確立するための管理通信確立処理時間を算出する。さらに、時間算出部122は、制御プロトコルによる通信を確立するための制御通信確立処理時間を算出する。 The time calculation unit 122 calculates the communication establishment processing time for establishing communication by the communication protocol between the master station device 1 which is a communication device and the opposite device. In a specific example, the time calculation unit 122 calculates the management communication establishment processing time for establishing the communication by the management protocol. Further, the time calculation unit 122 calculates the control communication establishment processing time for establishing the communication by the control protocol.

一例として、管理通信確立処理時間T_Mは、管理プロトコルによる通信確立のために最低限必要な時間である基本処理時間TBと、設定される構成定義の数(構成数)に応じた構成処理時間TAとの和として算出される。基本処理時間TBは、最も基本的な構成のみ、即ち構成数が0の場合の通信確立に必要となる時間である。構成数が1以上である場合、構成定義毎に設定に必要となる通信時間が生じる。構成処理時間TAは、管理プロトコルによる通信確立にかかる全体の時間から、基本処理時間TBを除いた時間である。構成数が1以上の場合、構成定義毎に設定のための通信時間が必要となる。構成処理時間TAは、設定が必要な全ての構成定義のための通信時間の総和である。本実施形態では、管理通信確立処理時間T_Mは、全ての管理プロトコルによる通信確立処理時間の総和である。 As an example, the management communication establishment processing time T_M is the basic processing time TB, which is the minimum time required for communication establishment by the management protocol, and the configuration processing time TA according to the number of configuration definitions (number of configurations) to be set. It is calculated as the sum of and. The basic processing time TB is the time required for establishing communication only in the most basic configuration, that is, when the number of configurations is 0. When the number of configurations is 1 or more, the communication time required for setting is generated for each configuration definition. The configuration processing time TA is the time obtained by excluding the basic processing time TB from the total time required for establishing communication by the management protocol. When the number of configurations is 1 or more, communication time for setting is required for each configuration definition. The configuration processing time TA is the sum of the communication times for all the configuration definitions that need to be set. In the present embodiment, the management communication establishment processing time T_M is the sum of the communication establishment processing times by all the management protocols.

例えば、SSHにおける基本処理時間TBが2秒であり、1つの構成定義における構成処理時間TAが0.5秒であるとする。構成数が3である場合におけるSSHの通信確立処理時間は、2+3×0.5=3.5秒である。例えば、SNMPにおける基本処理時間TBが3秒であり、1つの構成定義における構成処理時間TAが0.5秒であるとする。構成数が4である場合におけるSNMPの通信確立処理時間は、3+4×0.5=5秒である。例えば、syslogにおける基本処理時間TBが2.5秒であり、1つの構成定義における構成処理時間TAが0.5秒であるとする。構成数が5である場合におけるsyslogの通信確立処理時間は、2.5+5×0.5=5秒である。親局装置1によって使用される管理プロトコルが、SSH、SNMP及びsyslogである場合、管理通信確立処理時間T_Mは、3.5+5+5=13.5秒である。 For example, assume that the basic processing time TB in SSH is 2 seconds and the configuration processing time TA in one configuration definition is 0.5 seconds. When the number of configurations is 3, the communication establishment processing time of SSH is 2 + 3 × 0.5 = 3.5 seconds. For example, assume that the basic processing time TB in SNMP is 3 seconds and the configuration processing time TA in one configuration definition is 0.5 seconds. When the number of configurations is 4, the communication establishment processing time of SNMP is 3 + 4 × 0.5 = 5 seconds. For example, assume that the basic processing time TB in syslog is 2.5 seconds and the configuration processing time TA in one configuration definition is 0.5 seconds. When the number of configurations is 5, the communication establishment processing time of syslog is 2.5 + 5 × 0.5 = 5 seconds. When the management protocols used by the master station device 1 are SSH, SNMP, and syslog, the management communication establishment processing time T_M is 3.5 + 5 + 5 = 13.5 seconds.

一例として、制御通信確立処理時間T_Cは、各制御プロトコルによる通信確立のために必要な時間である通信確立処理時間Tの総和である。 As an example, the control communication establishment processing time T_C is the sum of the communication establishment processing times T, which is the time required for establishing communication by each control protocol.

例えば、LACPにおける通信確立処理時間Tが2秒であり、Link−OAMにおける通信確立処理時間Tが3.5秒であり、Ether−OAMにおける通信確立処理時間Tが3秒であるとする。親局装置1によって使用される制御プロトコルが、LACP、Link−OAM及びEther−OAMである場合、制御通信確立処理時間T_Cは、2+3.5+3=8.5秒である。 For example, assume that the communication establishment processing time T in LACP is 2 seconds, the communication establishment processing time T in Link-OAM is 3.5 seconds, and the communication establishment processing time T in Ether-OAM is 3 seconds. When the control protocols used by the master station device 1 are LACP, Link-OAM and Ether-OAM, the control communication establishment processing time T_C is 2 + 3.5 + 3 = 8.5 seconds.

選択部123は、管理プロトコル及び制御プロトコルのうちのいずれか一方を選択する。具体的な一例では、構成定義ファイル100において、管理プロトコル及び制御プロトコルのうち、優先される一方を識別する設定値が含まれる。例えば、管理プロトコルが優先される場合、管理プロトコルを識別する設定値が構成定義ファイル100に含まれる。他方、制御プロトコルが優先される場合、制御プロトコルを識別する設定値が構成定義ファイル100に含まれる。選択部123は、構成定義ファイル100に含まれる優先される通信プロトコルの設定値を参照し、管理プロトコル及び制御プロトコルのうち、当該優先される通信プロトコルを選択する。 The selection unit 123 selects either the management protocol or the control protocol. As a specific example, the configuration definition file 100 includes a setting value for identifying one of the management protocol and the control protocol that is prioritized. For example, when the management protocol is prioritized, the configuration definition file 100 includes a setting value for identifying the management protocol. On the other hand, when the control protocol is prioritized, the configuration definition file 100 includes a setting value for identifying the control protocol. The selection unit 123 refers to the setting value of the preferred communication protocol included in the configuration definition file 100, and selects the preferred communication protocol from the management protocol and the control protocol.

判定部124は、時間算出部122によって算出される通信確立処理時間と、通信プロトコルによって定められるタイムアウト時間とに基づいて、タイムアウト時間が終了する前に、親局装置1の制御プログラム12eの更新に応じて親局装置1と対向装置との間での通信プロトコルによる通信が確立されるか否かを判定する。具体的には、例えば、判定部124は、時間算出部122によって算出される管理通信確立処理時間T_M及び制御通信確立処理時T_Cと、タイムアウト時間とに基づいて、タイムアウト時間が終了する前に、制御プログラム12eの更新に応じて管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かを判定する。 The determination unit 124 updates the control program 12e of the master station device 1 before the timeout time expires based on the communication establishment processing time calculated by the time calculation unit 122 and the timeout time determined by the communication protocol. Correspondingly, it is determined whether or not communication by the communication protocol between the master station device 1 and the opposite device is established. Specifically, for example, the determination unit 124 determines the management communication establishment processing time T_M calculated by the time calculation unit 122, the control communication establishment processing time T_C, and the timeout time before the timeout time ends. It is determined whether or not communication by the management protocol and communication by the control protocol are established according to the update of the control program 12e.

タイムアウト時間は、管理プロトコルによって定められるタイムアウト時間である管理タイムアウト時間TO_M(第1タイムアウト時間)と、制御プロトコルによって定められるタイムアウト時間である制御タイムアウト時間TO_C(第2タイムアウト時間)とのうちのいずれか一方であってもよい。つまり、判定部124は、管理タイムアウト時間TO_M及び制御タイムアウト時間TO_Cのうちのいずれか一方が終了する前に、制御プログラム12eの更新に応じて管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かを判定してもよい。 The timeout time is either the management timeout time TO_M (first timeout time), which is the timeout time defined by the management protocol, or the control timeout time TO_C (second timeout time), which is the timeout time defined by the control protocol. It may be one. That is, the determination unit 124 establishes communication by the management protocol and communication by the control protocol according to the update of the control program 12e before either one of the management timeout time TO_M and the control timeout time TO_C ends. You may decide whether or not to do so.

さらに、親局装置1によって複数の管理プロトコルが用いられる場合、管理タイムアウト時間TO_Mは、複数の管理プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間であってもよい。具体的には、親局装置1が、管理プロトコルとしてSSH、SNMP、及びsyslogを使用する場合において、SSH、SNMP、及びsyslogの各タイムアウト時間のうちの最小値がSSHのタイムアウト時間であるとき、管理タイムアウト時間TO_Mは、SSHのタイムアウト時間である。親局装置1によって複数の制御プロトコルが用いられる場合、制御タイムアウト時間TO_Cは、複数の制御プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間であってもよい。具体的には、親局装置1が、制御プロトコルとしてLACP、Link−OAM、及びEther−OAMを使用する場合において、LACP、Link−OAM、及びEther−OAMの各タイムアウト時間のうちの最小値がLACPのタイムアウト時間であるとき、制御タイムアウト時間TO_Cは、LACPのタイムアウト時間である。 Further, when a plurality of management protocols are used by the master station apparatus 1, the management timeout time TO_M may be the minimum timeout time among the timeout times defined by each of the plurality of management protocols. Specifically, when the master station device 1 uses SSH, SNMP, and syslog as the management protocol, and the minimum value of each timeout time of SSH, SNMP, and syslog is the SSH timeout time. The management timeout time TO_M is the SSH timeout time. When a plurality of control protocols are used by the master station apparatus 1, the control timeout time TO_C may be the minimum timeout time among the timeout times defined by each of the plurality of control protocols. Specifically, when the master station device 1 uses LACP, Link-OAM, and Ether-OAM as control protocols, the minimum value among the timeout times of LACP, Link-OAM, and Ether-OAM is When it is the LACP timeout time, the control timeout time TO_C is the LACP timeout time.

具体的な一例では、判定部124は、第1判定処理と、第2判定処理とを実行してもよい。第1判定処理は、選択部123によって選択される通信プロトコル(選択プロトコル)に対応する通信確立処理時間と、管理タイムアウト時間TO_M及び制御タイムアウト時間TO_Cのうち、選択プロトコルに対応する一方である選択タイムアウト時間とに基づいて、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立されるか否かを判定する処理である。具体的には、選択部123によって管理プロトコルが選択される場合、選択プロトコルは管理プロトコルである。第1判定処理では、管理通信確立処理時間T_Mと、管理タイムアウト時間TO_Mとに基づいて、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信が確立されるか否かが判定される。他方、選択部123によって制御プロトコルが選択される場合、選択プロトコルは制御プロトコルである。第1判定処理では、制御通信確立処理時間T_Cと、制御タイムアウト時間TO_Cとに基づいて、制御タイムアウト時間TO_Cが終了する前に、制御プロトコルによる通信が確立されるか否かが判定される。 In a specific example, the determination unit 124 may execute the first determination process and the second determination process. The first determination process includes the communication establishment processing time corresponding to the communication protocol (selection protocol) selected by the selection unit 123, and the selection timeout that corresponds to the selection protocol among the management timeout time TO_M and the control timeout time TO_C. Based on the time, it is a process of determining whether or not communication by the selection protocol is established before the selection timeout time ends. Specifically, when the management protocol is selected by the selection unit 123, the selection protocol is the management protocol. In the first determination process, it is determined whether or not communication by the management protocol is established before the management timeout time TO_M ends, based on the management communication establishment processing time T_M and the management timeout time TO_M. On the other hand, when the control protocol is selected by the selection unit 123, the selection protocol is the control protocol. In the first determination process, it is determined whether or not communication by the control protocol is established before the control timeout time TO_C ends, based on the control communication establishment processing time T_C and the control timeout time TO_C.

図6Aは、本実施形態に係る親局装置1の判定部124による第1判定処理及び第2判定処理の一例を説明するための図である。図6Aに示す例では、管理プロトコルが選択部123によって選択される。親局装置1によって、管理プロトコルとしてSSH、SNMP、syslogが使用される。この場合、SSH、SNMP、及びsyslogのそれぞれによる通信確立処理時間の総和が、管理通信確立処理時間T_Mである。図6Aに示す例では、管理タイムアウト時間TO_Mが、管理通信確立処理時間T_Mより長い。図6Aの例では、管理プロトコルであるSSH、SNMP、及びsyslogそれぞれの通信確立処理は、逐次的に実行される。通信確立処理の実行順は、SSH、SNMP、及びsyslogの順番である。最初に実行されるSSHの通信確立処理の開始時刻t0において、タイムアウト時間のカウントが開始される。したがって、管理タイムアウト時間TO_Mが終了する前の時刻t11において、管理通信確立処理時間T_Mが終了する。すなわち、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信が確立される。したがって、第1判定処理では、管理通信確立処理時間T_Mと、管理タイムアウト時間TO_Mとに基づいて、選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、選択プロトコルである管理プロトコルによる通信が確立されると判定される。 FIG. 6A is a diagram for explaining an example of the first determination process and the second determination process by the determination unit 124 of the master station apparatus 1 according to the present embodiment. In the example shown in FIG. 6A, the management protocol is selected by the selection unit 123. The master station device 1 uses SSH, SNMP, and syslog as management protocols. In this case, the sum of the communication establishment processing times by SSH, SNMP, and syslog is the management communication establishment processing time T_M. In the example shown in FIG. 6A, the management timeout time TO_M is longer than the management communication establishment processing time T_M. In the example of FIG. 6A, the communication establishment processes of the management protocols SSH, SNMP, and syslog are executed sequentially. The execution order of the communication establishment process is the order of SSH, SNMP, and syslog. At the start time t0 of the SSH communication establishment process that is executed first, the time-out time counting is started. Therefore, the management communication establishment processing time T_M ends at the time t11 before the management timeout time TO_M ends. That is, communication by the management protocol is established before the management timeout time TO_M ends. Therefore, in the first determination process, communication by the management protocol, which is the selection protocol, is established before the management timeout time TO_M, which is the selection timeout time, ends based on the management communication establishment processing time T_M and the management timeout time TO_M. It is determined that it will be done.

第2判定処理は、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、管理タイムアウト時間TO_M及び制御タイムアウト時間TO_Cのうちの他方である非選択タイムアウト時間とに基づいて、非選択タイムアウト時間が終了する前に、制御プログラム12eの更新に応じて管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かを判定する処理である。具体的には、選択部123によって管理プロトコルが選択される場合、非選択プロトコルは制御プロトコルである。第2判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、制御タイムアウト時間TO_C(非選択タイムアウト時間)とに基づいて、制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かが判定される。他方、選択部123によって制御プロトコルが選択される場合、非選択プロトコルは管理プロトコルである。第2判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、管理タイムアウト時間TO_M(非選択タイムアウト時間)とに基づいて、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かが判定される。 The second determination process is based on the sum of the management communication establishment processing time T_M and the control communication establishment processing T_C and the non-selection timeout time which is the other of the management timeout time TO_M and the control timeout time TO_C. This is a process of determining whether or not communication by the management protocol and communication by the control protocol are established according to the update of the control program 12e before the end of the time. Specifically, when the management protocol is selected by the selection unit 123, the non-selection protocol is the control protocol. In the second determination process, the management protocol is based on the sum of the management communication establishment processing time T_M and the control communication establishment processing T_C and the control timeout time TO_C (non-selection timeout time) before the control timeout time TO_C ends. It is determined whether or not each of the communication by the control protocol and the communication by the control protocol is established. On the other hand, when the control protocol is selected by the selection unit 123, the non-selection protocol is the management protocol. In the second determination process, the management protocol is based on the sum of the management communication establishment processing time T_M and the control communication establishment processing T_C and the management timeout time TO_M (non-selection timeout time) before the management timeout time TO_M ends. It is determined whether or not each of the communication by the control protocol and the communication by the control protocol is established.

親局装置1によって、制御プロトコルとしてLACP、Link−OAM、Ether−OAMが使用される。この場合、LACP、Link−OAM、及びEther−OAMのそれぞれによる通信確立処理時間の総和が、制御通信確立処理時間T_Cである。図6Aに示す例では、制御タイムアウト時間TO_Cが、管理通信確立処理時間T_M及び制御通信処理時間T_Cの総和より長い。図6Aの例では、制御プロトコルであるLACP、Link−OAM、及びEther−OAMそれぞれの通信確立処理は、管理プロトコルの通信確立処理の後に、逐次的に実行される。通信確立処理の実行順は、LACP、Link−OAM、及びEther−OAMの順番である。制御タイムアウト時間TO_Cのカウントも、SSHの通信確立処理の開始時刻t0において開始される。したがって、制御タイムアウト時間TO_Cが終了する前の時刻t12において、制御通信確立処理時間T_Cが終了する。すなわち、制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立される。したがって、第2判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、制御タイムアウト時間TO_Cとに基づいて、非選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される。 The master station device 1 uses LACP, Link-OAM, and Ether-OAM as control protocols. In this case, the sum of the communication establishment processing times by each of LACP, Link-OAM, and Ether-OAM is the control communication establishment processing time T_C. In the example shown in FIG. 6A, the control timeout time TO_C is longer than the sum of the management communication establishment processing time T_M and the control communication processing time T_C. In the example of FIG. 6A, the communication establishment processes of the control protocols LACP, Link-OAM, and Ether-OAM are sequentially executed after the communication establishment process of the management protocol. The execution order of the communication establishment process is the order of LACP, Link-OAM, and Ether-OAM. The count of the control timeout time TO_C is also started at the start time t0 of the communication establishment process of SSH. Therefore, the control communication establishment processing time T_C ends at the time t12 before the control timeout time TO_C ends. That is, before the control timeout time TO_C ends, each of the communication by the management protocol and the communication by the control protocol is established. Therefore, in the second determination process, based on the sum of the management communication establishment processing time T_M and the control communication establishment process T_C and the control timeout time TO_C, before the control timeout time TO_C, which is the non-selection timeout time, ends, It is determined that communication by the management protocol and communication by the control protocol are established respectively.

再び図3を参照する。プログラム更新部125は、判定部124によってタイムアウト時間が終了する前に通信プロトコルによる通信が確立されると判定される場合に、親局装置1の再起動を伴わずに制御プログラム12eを更新する無瞬断更新処理を実行する。具体的な一例では、プログラム更新部125は、第2判定処理において、非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、無瞬断更新処理を実行する。さらにプログラム更新部125は、第1判定処理において、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立されないと判定される場合に、無瞬断更新処理を実行しない。したがって、図6Aに示される例では、第2判定処理において、制御タイムアウト時間TO_C(非選択タイムアウト時間)が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定されるため、プログラム更新部125は、無瞬断更新処理を実行する。 See FIG. 3 again. When the determination unit 124 determines that the communication by the communication protocol is established before the timeout time ends, the program update unit 125 updates the control program 12e without restarting the master station device 1. Executes the momentary update process. In a specific example, when the program update unit 125 determines in the second determination process that each of the communication by the management protocol and the communication by the control protocol is established before the non-selection timeout time ends. Executes the non-instantaneous update process. Further, the program update unit 125 does not execute the non-instantaneous update process when it is determined in the first determination process that communication by the selection protocol is not established before the selection timeout time ends. Therefore, in the example shown in FIG. 6A, in the second determination process, it is determined that the communication by the management protocol and the communication by the control protocol are established before the control timeout time TO_C (non-selection timeout time) ends. Therefore, the program update unit 125 executes the non-instantaneous update process.

通信確立部126は、親局装置1と対向装置との間での通信プロトコルによる通信を確立するための通信確立処理を実行する。具体的な一例では、通信確立部126は、第2判定処理において、非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、第1通信確立処理と、第2通信確立処理とを実行することができる。第1通信確立処理は、選択プロトコルによる通信を確立するための処理である。第2通信確立処理は、管理プロトコル及び制御プロトコルのうち選択部123によって選択されない通信プロトコル(非選択プロトコル)による通信を確立するための処理である。通信確立部126は、第1通信確立処理を第2通信確立処理に先行して実行し、第1通信確立処理が終了した後に、第2通信確立処理を実行してもよい。 The communication establishment unit 126 executes a communication establishment process for establishing communication by a communication protocol between the master station device 1 and the opposite device. In a specific example, when the communication establishment unit 126 determines in the second determination process that each of the communication by the management protocol and the communication by the control protocol is established before the non-selection timeout time ends. The first communication establishment process and the second communication establishment process can be executed. The first communication establishment process is a process for establishing communication by the selection protocol. The second communication establishment process is a process for establishing communication by a communication protocol (non-selection protocol) that is not selected by the selection unit 123 among the management protocol and the control protocol. The communication establishment unit 126 may execute the first communication establishment process prior to the second communication establishment process, and execute the second communication establishment process after the first communication establishment process is completed.

図6Aに示される例では、第2判定処理において、制御タイムアウト時間(非選択タイムアウト時間)が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される。したがって、通信確立部126は、第1通信確立処理及び第2通信確立処理を実行する。 In the example shown in FIG. 6A, in the second determination process, it is determined that the communication by the management protocol and the communication by the control protocol are established before the control timeout time (non-selection timeout time) ends. Therefore, the communication establishment unit 126 executes the first communication establishment process and the second communication establishment process.

図6Bは、本実施形態に係る親局装置1の判定部124による第1判定処理の他の一例を説明するための図である。図6Bに示す例では、管理タイムアウト時間TO_Mが、管理通信確立処理時間T_Mより短い。よって、管理タイムアウト時間TO_Mが終了した後も、管理通信確立処理時間T_Mは継続する。すなわち、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信が確立されない。したがって、第1判定処理では、管理通信確立処理時間T_Mと、管理タイムアウト時間TO_Mとに基づいて、選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、選択プロトコルである管理プロトコルによる通信が確立されないと判定される。 FIG. 6B is a diagram for explaining another example of the first determination process by the determination unit 124 of the master station apparatus 1 according to the present embodiment. In the example shown in FIG. 6B, the management timeout time TO_M is shorter than the management communication establishment processing time T_M. Therefore, even after the management timeout time TO_M ends, the management communication establishment processing time T_M continues. That is, communication by the management protocol is not established before the management timeout time TO_M ends. Therefore, in the first determination process, communication by the management protocol, which is the selection protocol, is established before the management timeout time TO_M, which is the selection timeout time, ends based on the management communication establishment processing time T_M and the management timeout time TO_M. It is judged that it is not done.

したがって、図6Bに示される例では、第1判定処理において、管理タイムアウト時間TO_M(選択タイムアウト時間)が終了する前に、管理プロトコル(選択プロトコル)による通信が確立されないと判定されるため、プログラム更新部125は、無瞬断更新処理を実行しない。さらにこの場合、判定部124は、第2判定処理を実行しない。したがって、通信確立部126も、第1通信確立処理及び第2通信確立処理を実行しない。 Therefore, in the example shown in FIG. 6B, in the first determination process, it is determined that communication by the management protocol (selection protocol) is not established before the management timeout time TO_M (selection timeout time) ends, so that the program is updated. The unit 125 does not execute the non-instantaneous update process. Further, in this case, the determination unit 124 does not execute the second determination process. Therefore, the communication establishment unit 126 also does not execute the first communication establishment process and the second communication establishment process.

図6Cは、本実施形態に係る親局装置1の判定部124による第1判定処理及び第2判定処理のさらに他の一例を説明するための図である。図6Cに示す例では、管理タイムアウト時間TO_Mが、管理通信確立処理時間T_Mより長い。よって、図6Aに示される例と同様に、第1判定処理では、管理通信確立処理時間T_Mと、管理タイムアウト時間TO_Mとに基づいて、選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、選択プロトコルである管理プロトコルによる通信が確立されると判定される。 FIG. 6C is a diagram for explaining still another example of the first determination process and the second determination process by the determination unit 124 of the master station apparatus 1 according to the present embodiment. In the example shown in FIG. 6C, the management timeout time TO_M is longer than the management communication establishment processing time T_M. Therefore, as in the example shown in FIG. 6A, in the first determination process, based on the management communication establishment processing time T_M and the management timeout time TO_M, before the management timeout time TO_M, which is the selection timeout time, ends, It is determined that communication is established by the management protocol, which is the selected protocol.

図6Cに示される例では、制御タイムアウト時間TO_Cが、管理通信確立処理時間T_M及び制御通信処理時間T_Cの総和より短い。よって、制御タイムアウト時間TO_Cが終了した後も、制御通信確立処理時間T_Cは継続する。すなわち、制御タイムアウト時間TO_Cが終了する前に、制御プロトコルによる通信が確立されない。したがって、第2判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、制御タイムアウト時間TO_Cとに基づいて、非選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方が確立されないと判定される。 In the example shown in FIG. 6C, the control timeout time TO_C is shorter than the sum of the management communication establishment processing time T_M and the control communication processing time T_C. Therefore, even after the control timeout time TO_C ends, the control communication establishment processing time T_C continues. That is, communication by the control protocol is not established before the control timeout time TO_C ends. Therefore, in the second determination process, based on the sum of the management communication establishment processing time T_M and the control communication establishment process T_C and the control timeout time TO_C, before the control timeout time TO_C, which is the non-selection timeout time, ends, It is determined that at least one of the communication by the management protocol and the communication by the control protocol is not established.

したがって、図6Cに示される例では、第2判定処理において、制御タイムアウト時間TO_C(非選択タイムアウト時間)が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方が確立されないと判定されるため、プログラム更新部125は、無瞬断更新処理を実行しない。さらにこの場合、通信確立部126も、第1通信確立処理及び第2通信確立処理を実行しない。 Therefore, in the example shown in FIG. 6C, in the second determination process, it is determined that at least one of the communication by the management protocol and the communication by the control protocol is not established before the control timeout time TO_C (non-selection timeout time) ends. Therefore, the program update unit 125 does not execute the non-instantaneous update process. Further, in this case, the communication establishment unit 126 also does not execute the first communication establishment process and the second communication establishment process.

再び図3を参照する。判定部124は、第3判定処理と、第4判定処理とを実行してもよい。判定部124は、第2判定処理において、非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方が確立されないと判定される場合に、第3判定処理を実行してもよい。第3判定処理は、非選択プロトコルに対応する通信確立処理時間と、非選択タイムアウト時間とに基づいて、非選択タイムアウト時間が終了する前に、制御プログラム12eの更新に応じて非選択プロトコルによる通信が確立されるか否かを判定する処理である。具体的には、選択部123によって管理プロトコルが選択される場合、非選択プロトコルは制御プロトコルである。第3判定処理では、制御通信確立処理時間T_Cと、制御タイムアウト時間TO_Cとに基づいて、制御タイムアウト時間TO_Cが終了する前に、制御プロトコルによる通信が確立されるか否かが判定される。他方、選択部123によって制御プロトコルが選択される場合、非選択プロトコルは管理プロトコルである。第3判定処理では、管理通信確立処理時間T_Mと、管理タイムアウト時間TO_Mとに基づいて、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信が確立されるか否かが判定される。つまり、第3判定処理は、第1判定処理から判定対象の通信プロトコルを入れ替えた処理である。 See FIG. 3 again. The determination unit 124 may execute the third determination process and the fourth determination process. The determination unit 124 executes the third determination process when it is determined in the second determination process that at least one of the communication by the management protocol and the communication by the control protocol is not established before the non-selection timeout time ends. You may. The third determination process is based on the communication establishment processing time corresponding to the non-selection protocol and the non-selection timeout time, and the communication by the non-selection protocol is performed according to the update of the control program 12e before the non-selection timeout time ends. Is a process for determining whether or not is established. Specifically, when the management protocol is selected by the selection unit 123, the non-selection protocol is the control protocol. In the third determination process, it is determined whether or not communication by the control protocol is established before the control timeout time TO_C ends, based on the control communication establishment processing time T_C and the control timeout time TO_C. On the other hand, when the control protocol is selected by the selection unit 123, the non-selection protocol is the management protocol. In the third determination process, it is determined whether or not communication by the management protocol is established before the management timeout time TO_M ends, based on the management communication establishment processing time T_M and the management timeout time TO_M. That is, the third determination process is a process in which the communication protocol to be determined is replaced from the first determination process.

図6Cに示される例では、第2判定処理において、制御タイムアウト時間TO_C(非選択タイムアウト時間)が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方が確立されないと判定されるため、判定部124は、第3判定処理を実行する。 In the example shown in FIG. 6C, in the second determination process, it is determined that at least one of the communication by the management protocol and the communication by the control protocol is not established before the control timeout time TO_C (non-selection timeout time) ends. , The determination unit 124 executes the third determination process.

図6Dは、本実施形態に係る親局装置1の判定部124による第3判定処理及び第4判定処理の一例を説明するための図である。図6Dを用いて、図6Cに示される例から引き続き実行される第3判定処理及び第4判定処理を説明する。図6Dに示す例では、制御タイムアウト時間TO_Cが、制御通信確立処理時間T_Cより長い。よって、制御タイムアウト時間TO_Cが終了する前の時刻t21において、制御通信確立処理時間T_Cが終了する。すなわち、制御タイムアウト時間TO_Cが終了する前に、制御プロトコルによる通信が確立される。したがって、第3判定処理では、制御通信確立処理時間T_Cと、制御タイムアウト時間TO_Cとに基づいて、非選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、非選択プロトコルである制御プロトコルによる通信が確立されると判定される。 FIG. 6D is a diagram for explaining an example of the third determination process and the fourth determination process by the determination unit 124 of the master station apparatus 1 according to the present embodiment. The third determination process and the fourth determination process, which are continuously executed from the example shown in FIG. 6C, will be described with reference to FIG. 6D. In the example shown in FIG. 6D, the control timeout time TO_C is longer than the control communication establishment processing time T_C. Therefore, the control communication establishment processing time T_C ends at the time t21 before the control timeout time TO_C ends. That is, communication by the control protocol is established before the control timeout time TO_C ends. Therefore, in the third determination process, communication by the control protocol, which is a non-selection protocol, is performed before the control timeout time TO_C, which is the non-selection timeout time, ends, based on the control communication establishment processing time T_C and the control timeout time TO_C. Is determined to be established.

第4判定処理は、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、選択タイムアウト時間とに基づいて、選択タイムアウト時間が終了する前に、制御プログラム12eの更新に応じて管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かを判定する処理である。具体的には、選択部123によって管理プロトコルが選択される場合、選択プロトコルは管理プロトコルである。第4判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、管理タイムアウト時間TO_M(選択タイムアウト時間)とに基づいて、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かが判定される。他方、選択部123によって制御プロトコルが選択される場合、選択プロトコルは制御プロトコルである。第4判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、制御タイムアウト時間TO_C(選択タイムアウト時間)とに基づいて、制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かが判定される。 The fourth determination process is based on the sum of the management communication establishment processing time T_M and the control communication establishment process T_C and the selection timeout time, and the management protocol is updated according to the update of the control program 12e before the selection timeout time ends. It is a process of determining whether or not each of the communication by the control protocol and the communication by the control protocol is established. Specifically, when the management protocol is selected by the selection unit 123, the selection protocol is the management protocol. In the fourth determination process, the management protocol is used before the management timeout time TO_M ends, based on the sum of the management communication establishment processing time T_M and the control communication establishment processing time T_C and the management timeout time TO_M (selection timeout time). It is determined whether or not each of the communication and the communication by the control protocol is established. On the other hand, when the control protocol is selected by the selection unit 123, the selection protocol is the control protocol. In the fourth determination process, based on the sum of the management communication establishment processing time T_M and the control communication establishment processing T_C and the control timeout time TO_C (selection timeout time), the management protocol is used before the control timeout time TO_C ends. It is determined whether or not each of the communication and the communication by the control protocol is established.

図6Dに示す例では、管理タイムアウト時間TO_Mが、管理通信確立処理時間T_M及び制御通信処理時間T_Cの総和より長い。よって、管理タイムアウト時間TO_Mが終了する前の時刻t22において、管理通信確立処理時間T_Mが終了する。すなわち、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立される。したがって、第4判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、管理タイムアウト時間TO_Mとに基づいて、選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される。 In the example shown in FIG. 6D, the management timeout time TO_M is longer than the sum of the management communication establishment processing time T_M and the control communication processing time T_C. Therefore, the management communication establishment processing time T_M ends at the time t22 before the management timeout time TO_M ends. That is, before the management timeout time TO_M ends, communication by the management protocol and communication by the control protocol are established. Therefore, in the fourth determination process, management is performed before the end of the management timeout time TO_M, which is the selection timeout time, based on the sum of the management communication establishment processing time T_M and the control communication establishment processing time T_C and the management timeout time TO_M. It is determined that communication by protocol and communication by control protocol are established respectively.

再び図3を参照する。具体的な一例では、プログラム更新部125は、第4判定処理において、選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、制御プログラム12eの無瞬断更新処理を実行する。さらにプログラム更新部125は、第3判定処理において、非選択タイムアウト時間が終了する前に、非選択プロトコルによる通信が確立されないと判定される場合に、制御プログラムの無瞬断更新処理を実行しない。したがって、図6Dに示される例では、第4判定処理において、管理タイムアウト時間TO_M(選択タイムアウト時間)が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定されるため、プログラム更新部125は、制御プログラム12eの無瞬断更新処理を実行する。 See FIG. 3 again. In a specific example, the program update unit 125 controls when it is determined in the fourth determination process that communication by the management protocol and communication by the control protocol are established before the selection timeout time ends. The non-instantaneous update process of the program 12e is executed. Further, the program update unit 125 does not execute the non-interruptive update process of the control program when it is determined in the third determination process that communication by the non-selection protocol is not established before the non-selection timeout time ends. Therefore, in the example shown in FIG. 6D, in the fourth determination process, it is determined that the communication by the management protocol and the communication by the control protocol are established before the management timeout time TO_M (selection timeout time) ends. Therefore, the program update unit 125 executes the non-instantaneous update process of the control program 12e.

具体的な一例では、通信確立部126は、第4判定処理において、選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、第1通信確立処理と、第2通信確立処理とを実行することができる。通信確立部126は、第2通信確立処理を第1通信確立処理に先行して実行し、第2通信確立処理が終了した後に、第1通信確立処理を実行してもよい。 In a specific example, when it is determined in the fourth determination process that the communication by the management protocol and the communication by the control protocol are established before the selection timeout time ends, the communication establishment unit 126 is the first. One communication establishment process and a second communication establishment process can be executed. The communication establishment unit 126 may execute the second communication establishment process prior to the first communication establishment process, and execute the first communication establishment process after the second communication establishment process is completed.

図6Dに示される例では、第4判定処理において、管理タイムアウト時間TO_M(選択タイムアウト時間)が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される。したがって、通信確立部126は、第2通信確立処理及び第1通信確立処理を実行する。 In the example shown in FIG. 6D, in the fourth determination process, it is determined that the communication by the management protocol and the communication by the control protocol are established before the management timeout time TO_M (selection timeout time) ends. Therefore, the communication establishment unit 126 executes the second communication establishment process and the first communication establishment process.

図6Eは、本実施形態に係る親局装置1の判定部124による第3判定処理の他の一例を説明するための図である。図6Eに示す例では、制御タイムアウト時間TO_Cが、制御通信確立処理時間T_Cより短い。よって、制御タイムアウト時間TO_Cが終了した後も、制御通信確立処理時間T_Cは継続する。すなわち、制御タイムアウト時間TO_Cが終了する前に、制御プロトコルによる通信が確立されない。したがって、第3判定処理では、制御通信確立処理時間T_Cと、制御タイムアウト時間TO_Cとに基づいて、非選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、非選択プロトコルである制御プロトコルによる通信が確立されないと判定される。 FIG. 6E is a diagram for explaining another example of the third determination process by the determination unit 124 of the master station apparatus 1 according to the present embodiment. In the example shown in FIG. 6E, the control timeout time TO_C is shorter than the control communication establishment processing time T_C. Therefore, even after the control timeout time TO_C ends, the control communication establishment processing time T_C continues. That is, communication by the control protocol is not established before the control timeout time TO_C ends. Therefore, in the third determination process, communication by the control protocol, which is a non-selection protocol, is performed before the control timeout time TO_C, which is the non-selection timeout time, ends, based on the control communication establishment processing time T_C and the control timeout time TO_C. Is determined not to be established.

したがって、図6Eに示される例では、第3判定処理において、制御タイムアウト時間TO_C(非選択タイムアウト時間)が終了する前に、制御プロトコル(非選択プロトコル)による通信が確立されないと判定されるため、プログラム更新部125は、制御プログラム12eの無瞬断更新処理を実行しない。さらにこの場合、判定部124は、第4判定処理を実行しない。したがって、通信確立部126も、第2通信確立処理及び第1通信確立処理を実行しない。 Therefore, in the example shown in FIG. 6E, in the third determination process, it is determined that the communication by the control protocol (non-selection protocol) is not established before the control timeout time TO_C (non-selection timeout time) ends. The program update unit 125 does not execute the non-instantaneous update process of the control program 12e. Further, in this case, the determination unit 124 does not execute the fourth determination process. Therefore, the communication establishment unit 126 also does not execute the second communication establishment process and the first communication establishment process.

図6Fは、本実施形態に係る親局装置1の判定部124による第3判定処理及び第4判定処理のさらに他の一例を説明するための図である。図6Fに示す例では、制御タイムアウト時間TO_Cが、制御通信確立処理時間T_Cより長い。よって、図6Dに示される例と同様に、第3判定処理では、制御通信確立処理時間T_Cと、制御タイムアウト時間TO_Cとに基づいて、非選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、非選択プロトコルである制御プロトコルによる通信が確立されると判定される。 FIG. 6F is a diagram for explaining still another example of the third determination process and the fourth determination process by the determination unit 124 of the master station apparatus 1 according to the present embodiment. In the example shown in FIG. 6F, the control timeout time TO_C is longer than the control communication establishment processing time T_C. Therefore, as in the example shown in FIG. 6D, in the third determination process, based on the control communication establishment processing time T_C and the control timeout time TO_C, before the control timeout time TO_C, which is the non-selection timeout time, ends. , It is determined that communication by the control protocol, which is a non-selection protocol, is established.

図6Fに示される例では、管理タイムアウト時間TO_Mが、管理通信確立処理時間T_M及び制御通信処理時間T_Cの総和より短い。よって、管理タイムアウト時間TO_Mが終了した後も、管理通信確立処理時間T_Mは継続する。すなわち、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信が確立されない。したがって、第4判定処理では、管理通信確立処理時間T_M及び制御通信確立処理時T_Cの和と、管理タイムアウト時間TO_Mとに基づいて、選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方が確立されないと判定される。 In the example shown in FIG. 6F, the management timeout time TO_M is shorter than the sum of the management communication establishment processing time T_M and the control communication processing time T_C. Therefore, even after the management timeout time TO_M ends, the management communication establishment processing time T_M continues. That is, communication by the management protocol is not established before the management timeout time TO_M ends. Therefore, in the fourth determination process, management is performed before the end of the management timeout time TO_M, which is the selection timeout time, based on the sum of the management communication establishment processing time T_M and the control communication establishment processing time T_C and the management timeout time TO_M. It is determined that at least one of protocol communication and control protocol communication is not established.

したがって、図6Fに示される例では、第4判定処理において、管理タイムアウト時間TO_M(選択タイムアウト時間)が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方が確立されないと判定されるため、プログラム更新部125は、制御プログラム12eの無瞬断更新処理を実行しない。さらにこの場合、通信確立部126も、第2通信確立処理及び第1通信確立処理を実行しない。 Therefore, in the example shown in FIG. 6F, in the fourth determination process, it is determined that at least one of the communication by the management protocol and the communication by the control protocol is not established before the management timeout time TO_M (selection timeout time) ends. Therefore, the program update unit 125 does not execute the non-instantaneous update process of the control program 12e. Further, in this case, the communication establishment unit 126 also does not execute the second communication establishment process and the first communication establishment process.

上記の入力部121、時間算出部122、選択部123、判定部124、プログラム更新部125、及び通信確立部126のそれぞれの機能は、プロセッサ12aによって実現される。 The functions of the input unit 121, the time calculation unit 122, the selection unit 123, the determination unit 124, the program update unit 125, and the communication establishment unit 126 are realized by the processor 12a.

[3.親局装置の動作]
以下、本実施形態に係る親局装置1の動作について説明する。親局装置1のプロセッサ12aは、制御プログラム12eを実行することにより、次の通信確立判定処理を実行する。
[3. Operation of master station device]
Hereinafter, the operation of the master station device 1 according to the present embodiment will be described. The processor 12a of the master station apparatus 1 executes the next communication establishment determination process by executing the control program 12e.

図7は、本実施形態に係る親局装置1による通信確立判定処理の手順の一例を示すフローチャートである。 FIG. 7 is a flowchart showing an example of the procedure of the communication establishment determination process by the master station device 1 according to the present embodiment.

制御プログラム12eを更新するための更新データ(制御プログラム12eのパッチデータ又は新たな制御プログラムデータ)は、例えばフラッシュメモリ、CD−ROM等の記録媒体に記録され、又は図示しないサーバ等の外部装置から親局装置1にダウンロードされて提供される。親局装置1では、親局装置1の再起動を伴って制御プログラム12eを更新する通常プログラム更新、及び親局装置1を再起動することなく制御プログラム12eを更新する無瞬断プログラム更新を選択して実行可能である。通信確立判定処理において、プロセッサ12aは、無瞬断プログラム更新を行うか否かを判定する(ステップS101)。 The update data (patch data of the control program 12e or new control program data) for updating the control program 12e is recorded on a recording medium such as a flash memory or a CD-ROM, or from an external device such as a server (not shown). It is downloaded and provided to the master station device 1. In the master station device 1, a normal program update that updates the control program 12e with the restart of the master station device 1 and a non-interruption program update that updates the control program 12e without restarting the master station device 1 are selected. It is feasible. In the communication establishment determination process, the processor 12a determines whether or not to update the program without interruption (step S101).

無瞬断プログラム更新を行わない場合(ステップS101においてNO)、プロセッサ12aは、通常プログラム更新を実行する(ステップS102)。即ち、プロセッサ12aは、非一過性メモリ12bに記憶される制御プログラム12eを書き換え、親局装置1を再起動する。再起動の際、通信確立判定処理が終了する。 When the program is not updated without interruption (NO in step S101), the processor 12a normally executes the program update (step S102). That is, the processor 12a rewrites the control program 12e stored in the non-transient memory 12b and restarts the master station device 1. At the time of restart, the communication establishment determination process ends.

無瞬断プログラム更新を行う場合(ステップS101においてYES)、プロセッサ12aは、例えば非一過性メモリ12bの構成定義ファイル100から、管理プロトコル(SSH、SNMP、syslog)及び制御プロトコル(LACP、Link−OAM、Ether−OAM)のそれぞれのタイムアウト時間を読み出す(ステップS103)。 When updating the program without interruption (YES in step S101), the processor 12a, for example, from the configuration definition file 100 of the non-transient memory 12b, manages the management protocol (SSH, SNMP, syslog) and the control protocol (LACP, Link-). Read out the respective timeout times of OAM and Ether-OAM (step S103).

プロセッサ12aは、複数の管理プロトコルのタイムアウト時間の中の最小値を、管理タイムアウト時間TO_Mに設定する(ステップS104)。さらにプロセッサ12aは、複数の制御プロトコルのタイムアウト時間の中の最小値を、制御タイムアウト時間TO_Cに設定する(ステップS105)。 The processor 12a sets the minimum value among the timeout times of the plurality of management protocols in the management timeout time TO_M (step S104). Further, the processor 12a sets the minimum value among the timeout times of the plurality of control protocols in the control timeout time TO_C (step S105).

プロセッサ12aは、例えば構成定義ファイル100に含まれる通信プロトコルの優先情報を非一過性メモリ12bから読み出し、管理プロトコルと制御プロトコルのいずれを優先するかを判定する(ステップS106)。管理プロトコルを優先する場合(ステップS106においてYES)、プロセッサ12aは管理プロトコル優先判定処理を実行する(ステップS107)。制御プロトコルを優先する場合(ステップS106においてNO)、プロセッサ12aは制御プロトコル優先判定処理を実行する(ステップS108)。 For example, the processor 12a reads the priority information of the communication protocol included in the configuration definition file 100 from the non-transient memory 12b, and determines whether to prioritize the management protocol or the control protocol (step S106). When the management protocol is prioritized (YES in step S106), the processor 12a executes the management protocol priority determination process (step S107). When the control protocol is prioritized (NO in step S106), the processor 12a executes the control protocol priority determination process (step S108).

管理プロトコル優先判定処理は、管理プロトコル及び制御プロトコルのうち、管理プロトコルを優先対象として選択し、タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信が確立するか否かを判定するための処理である。具体的な一例では、管理プロトコル優先判定処理は、管理プロトコルの通信確立処理を、制御プロトコルの通信確立処理よりも先行させた場合に、管理プロトコルによる通信及び制御プロトコルによる通信が確立するか否かを判定するための処理である。つまり、ステップS107の処理は、管理プロトコルを優先対象として選択することを含む。 The management protocol priority determination process selects the management protocol as the priority target from the management protocol and the control protocol, and determines whether or not communication by the management protocol and communication by the control protocol are established before the timeout period expires. It is a process for. In a specific example, in the management protocol priority determination process, whether or not communication by the management protocol and communication by the control protocol are established when the communication establishment process of the management protocol is preceded by the communication establishment process of the control protocol. This is a process for determining. That is, the process of step S107 includes selecting the management protocol as a priority target.

制御プロトコル優先判定処理は、管理プロトコル及び制御プロトコルのうち、制御プロトコルを優先対象として選択し、タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信が確立するか否かを判定するための処理である。具体的な一例では、制御プロトコル優先判定処理は、制御プロトコルの通信確立処理を、管理プロトコルの通信確立処理よりも先行させた場合に、管理プロトコルによる通信及び制御プロトコルによる通信が確立するか否かを判定するための処理である。つまり、ステップS108の処理は、制御プロトコルを優先対象として選択することを含む。 The control protocol priority determination process selects the control protocol as the priority target from the management protocol and the control protocol, and determines whether or not the communication by the management protocol and the communication by the control protocol are established before the timeout time expires. It is a process for. In a specific example, in the control protocol priority determination process, whether or not communication by the management protocol and communication by the control protocol are established when the communication establishment process of the control protocol precedes the communication establishment process of the management protocol. This is a process for determining. That is, the process of step S108 includes selecting the control protocol as a priority target.

管理プロトコル優先判定処理又は制御プロトコル優先判定処理が終了すると、通信確立判定処理が終了する。 When the management protocol priority determination process or the control protocol priority determination process is completed, the communication establishment determination process ends.

図8は、本実施形態に係る親局装置1による管理プロトコル優先判定処理の手順の一例を示すフローチャートである。 FIG. 8 is a flowchart showing an example of the procedure of the management protocol priority determination process by the master station apparatus 1 according to the present embodiment.

管理プロトコル優先判定処理において、まずプロセッサ12aは、管理通信確立処理時間算出処理を実行する(ステップS111)。管理通信確立処理時間算出処理は、管理通信確立処理時間T_Mを算出するための処理である。 In the management protocol priority determination process, the processor 12a first executes the management communication establishment processing time calculation process (step S111). The management communication establishment processing time calculation process is a process for calculating the management communication establishment processing time T_M.

ここで、管理通信確立処理時間算出処理について詳細に説明する。図10は、本実施形態に係る親局装置1による管理通信確立処理時間算出処理の手順の一例を示すフローチャートである。 Here, the management communication establishment processing time calculation processing will be described in detail. FIG. 10 is a flowchart showing an example of the procedure of the management communication establishment processing time calculation processing by the master station apparatus 1 according to the present embodiment.

管理通信確立処理時間算出処理において、まずプロセッサ12aは、再設定すべき管理プロトコルを決定する(ステップS151)。ステップS151において、例えば、プロセッサ12aは、telnet、SSH、SNMP、及びsyslogのうち、SSH、SNMP、及びsyslogを再設定すべき場合には、再設定すべきプロトコルとしてSSH、SNMP、及びsyslogを決定する。この処理では、例えば構成定義ファイル100が参照され、再設定すべき管理プロトコルの数Nが決定される。 In the management communication establishment processing time calculation process, the processor 12a first determines the management protocol to be reset (step S151). In step S151, for example, the processor 12a determines SSH, SNMP, and syslog as the protocols to be reconfigured when SSH, SNMP, and syslog should be reconfigured among telnet, SSH, SNMP, and syslog. To do. In this process, for example, the configuration definition file 100 is referred to, and the number N of management protocols to be reset is determined.

次に、プロセッサ12aは、管理通信確立処理時間T_Mを初期値(0)に設定する(ステップS152)。さらにプロセッサ12aは、処理対象の管理プロトコルを示すインデックス(番号)nを初期値(1)に設定する(ステップS153)。 Next, the processor 12a sets the management communication establishment processing time T_M to the initial value (0) (step S152). Further, the processor 12a sets the index (number) n indicating the management protocol to be processed to the initial value (1) (step S153).

プロセッサ12aは、n番目の管理プロトコルにおける基本処理時間TB_nを、例えば非一過性メモリ12bから読み出す(ステップS154)。さらに、プロセッサ12aは、構成定義ファイル100における設定値から、n番目の管理プロトコルの構成数を特定し、特定される構成数に応じた構成処理時間TA_nを算出する(ステップS155)。 The processor 12a reads the basic processing time TB_n in the nth management protocol from, for example, the non-transient memory 12b (step S154). Further, the processor 12a specifies the number of configurations of the nth management protocol from the set value in the configuration definition file 100, and calculates the configuration processing time TA_n according to the specified number of configurations (step S155).

プロセッサ12aは、n番目の管理プロトコルにおける通信確立処理時間T_nを、基本処理時間TB_nと構成処理時間TA_nとの和として算出する(ステップS156)。さらにプロセッサ12aは、算出された通信確立処理時間T_nを管理通信確立処理時間T_Mに加算した結果を、新たな管理通信確立処理時間T_Mとする(ステップS157)。 The processor 12a calculates the communication establishment processing time T_n in the nth management protocol as the sum of the basic processing time TB_n and the configuration processing time TA_n (step S156). Further, the processor 12a sets the result of adding the calculated communication establishment processing time T_n to the management communication establishment processing time T_M as a new management communication establishment processing time T_M (step S157).

プロセッサ12aは、nがN以上であるか否かを判定する(ステップS158)。nがN未満である場合(ステップS158においてNO)、プロセッサ12aは、nを1インクリメントし(ステップS159)、ステップS154へ処理を戻す。nがN以上である場合(ステップS158においてYES)、管理通信確立処理時間算出処理が終了する。これにより、再設定すべき管理プロトコルの全てにおける通信の確立に要する時間が算出される。 The processor 12a determines whether or not n is N or more (step S158). If n is less than N (NO in step S158), processor 12a increments n by 1 (step S159) and returns processing to step S154. When n is N or more (YES in step S158), the management communication establishment processing time calculation process ends. As a result, the time required to establish communication in all the management protocols to be reset is calculated.

再び図8を参照する。プロセッサ12aは、算出された管理通信確立処理時間T_Mが、管理タイムアウト時間TO_Mより大きいか否かを判定する(ステップS112)。管理通信確立処理時間T_Mが、管理タイムアウト時間TO_Mより大きい場合(ステップS112においてYES)、制御プログラム12eの更新に応じて管理プロトコルの通信が確立する前に、管理タイムアウト時間TO_Mが終了すると推定される。つまり、制御プログラム12eの更新の際に、管理プロトコルのセッションが切断されることが推定される。このため、無瞬断更新処理が実行されることなく、管理プロトコル優先判定処理が終了する。 See FIG. 8 again. The processor 12a determines whether or not the calculated management communication establishment processing time T_M is larger than the management timeout time TO_M (step S112). When the management communication establishment processing time T_M is larger than the management timeout time TO_M (YES in step S112), it is estimated that the management timeout time TO_M ends before the management protocol communication is established in response to the update of the control program 12e. .. That is, it is presumed that the session of the management protocol is disconnected when the control program 12e is updated. Therefore, the management protocol priority determination process ends without executing the non-instantaneous update process.

管理通信確立処理時間T_Mが、管理タイムアウト時間TO_M以下である場合(ステップS112においてNO)、管理タイムアウト時間TO_Mが終了する前に、制御プログラム12eの更新に応じて管理プロトコルの通信が確立することが推定される。つまり、制御プログラム12eの更新の際に、管理プロトコルのセッションが切断されないことが推定される。この場合、プロセッサ12aは、制御通信確立処理時間算出処理を実行する(ステップS113)。制御通信確立処理時間算出処理は、制御通信確立処理時間T_Cを算出するための処理である。 When the management communication establishment processing time T_M is equal to or less than the management timeout time TO_M (NO in step S112), the management protocol communication may be established according to the update of the control program 12e before the management timeout time TO_M ends. Presumed. That is, it is estimated that the session of the management protocol is not disconnected when the control program 12e is updated. In this case, the processor 12a executes the control communication establishment processing time calculation process (step S113). The control communication establishment processing time calculation process is a process for calculating the control communication establishment processing time T_C.

ここで、制御通信確立処理時間算出処理について詳細に説明する。図11は、本実施形態に係る親局装置1による制御通信確立処理時間算出処理の手順の一例を示すフローチャートである。 Here, the control communication establishment processing time calculation processing will be described in detail. FIG. 11 is a flowchart showing an example of a procedure for calculating the control communication establishment processing time by the master station apparatus 1 according to the present embodiment.

制御通信確立処理時間算出処理において、まずプロセッサ12aは、再設定すべき制御プロトコルを決定する(ステップS161)。ステップS161において、例えば、プロセッサ12aは、LACP、Link−OAM及びEther−OAMのうち、LACP、Link−OAM及びEther−OAMを再設定すべき場合には、再設定すべきプロトコルとしてLACP、Link−OAM及びEther−OAMを決定する。この処理では、例えば構成定義ファイル100が参照され、再設定すべき制御プロトコルの数Mが決定される。 In the control communication establishment processing time calculation process, the processor 12a first determines the control protocol to be reset (step S161). In step S161, for example, when the processor 12a should reconfigure LACP, Link-OAM and Ether-OAM among LACP, Link-OAM and Ether-OAM, LACP, Link- Determine OAM and Ether-OAM. In this process, for example, the configuration definition file 100 is referred to, and the number M of control protocols to be reset is determined.

次に、プロセッサ12aは、制御通信確立処理時間T_Cを初期値(0)に設定する(ステップS162)。さらにプロセッサ12aは、処理対象の制御プロトコルを示すインデックス(番号)mを初期値(1)に設定する(ステップS163)。 Next, the processor 12a sets the control communication establishment processing time T_C to the initial value (0) (step S162). Further, the processor 12a sets the index (number) m indicating the control protocol to be processed to the initial value (1) (step S163).

プロセッサ12aは、m番目の制御プロトコルにおける通信確立処理時間T_mを、例えば非一過性メモリ12bから読み出す(ステップS164)。 The processor 12a reads the communication establishment processing time T_m in the m-th control protocol from, for example, the non-transient memory 12b (step S164).

プロセッサ12aは、m番目の制御プロトコルにおける通信確立処理時間T_mを制御通信確立処理時間T_Cに加算した結果を、新たな制御通信確立処理時間T_Cとする(ステップS165)。 The processor 12a sets the result of adding the communication establishment processing time T_m in the m-th control protocol to the control communication establishment processing time T_C as a new control communication establishment processing time T_C (step S165).

プロセッサ12aは、mがM以上であるか否かを判定する(ステップS166)。mがM未満である場合(ステップS166においてNO)、プロセッサ12aは、mを1インクリメントし(ステップS167)、ステップS164へ処理を戻す。mがM以上である場合(ステップS166においてYES)、制御通信確立処理時間算出処理が終了する。これにより、再設定すべき制御プロトコルの全てにおける通信の確立に要する時間が算出される。 The processor 12a determines whether or not m is M or more (step S166). If m is less than M (NO in step S166), the processor 12a increments m by 1 (step S167) and returns processing to step S164. When m is M or more (YES in step S166), the control communication establishment processing time calculation process ends. As a result, the time required to establish communication in all the control protocols to be reset is calculated.

再び図8を参照する。プロセッサ12aは、管理通信確立処理時間T_Mと制御通信確立処理時間T_Cとの和(T_M+T_C)が、制御タイムアウト時間TO_Cより大きいか否かを判定する(ステップS114)。T_M+T_Cが、制御タイムアウト時間TO_C以下である場合(ステップS114においてNO)、制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立することが推定される。つまり、制御プログラム12eの更新の際に、管理プロトコルの通信確立処理を実行し、その後に制御プロトコルの通信確立処理を実行すれば、管理プロトコル及び制御プロトコルそれぞれのセッションが切断されないことが推定される。この場合、プロセッサ12aは、無瞬断更新処理を実行し(ステップS115)、管理通信確立処理を実行する(ステップS116)。管理通信確立処理は、再設定すべき全ての管理プロトコルによる通信を確立するための処理である。さらにプロセッサ12aは、管理通信確立処理が終了した後、制御通信確立処理を実行する(ステップS117)。制御通信確立処理は、再設定すべき全ての制御プロトコルによる通信を確立するための処理である。制御通信確立処理が終了すると、管理プロトコル優先判定処理が終了する。 See FIG. 8 again. The processor 12a determines whether or not the sum (T_M + T_C) of the management communication establishment processing time T_M and the control communication establishment processing time T_C is larger than the control timeout time TO_C (step S114). When T_M + T_C is equal to or less than the control timeout time TO_C (NO in step S114), it is presumed that communication by the management protocol and communication by the control protocol are established before the control timeout time TO_C ends. That is, if the communication establishment process of the management protocol is executed at the time of updating the control program 12e and then the communication establishment process of the control protocol is executed, it is estimated that the sessions of the management protocol and the control protocol are not disconnected. .. In this case, the processor 12a executes the non-instantaneous update process (step S115) and executes the management communication establishment process (step S116). The management communication establishment process is a process for establishing communication by all management protocols to be reset. Further, the processor 12a executes the control communication establishment process after the management communication establishment process is completed (step S117). The control communication establishment process is a process for establishing communication by all control protocols to be reset. When the control communication establishment process is completed, the management protocol priority determination process is completed.

ここで、管理通信確立処理について詳細に説明する。図12は、本実施形態に係る親局装置1による管理通信確立処理の手順の一例を示すフローチャートである。 Here, the management communication establishment process will be described in detail. FIG. 12 is a flowchart showing an example of the procedure of the management communication establishment process by the master station device 1 according to the present embodiment.

管理通信確立処理において、まずプロセッサ12aは、再設定すべき管理プロトコルを決定する(ステップS171)。ステップS171の処理は、上述したステップS151の処理と同様であるため、説明を省略する。 In the management communication establishment process, the processor 12a first determines the management protocol to be reset (step S171). Since the process of step S171 is the same as the process of step S151 described above, the description thereof will be omitted.

次に、プロセッサ12aは、処理対象の管理プロトコルを示すインデックス(番号)nを初期値(1)に設定する(ステップS172)。 Next, the processor 12a sets the index (number) n indicating the management protocol to be processed to the initial value (1) (step S172).

プロセッサ12aは、n番目の管理プロトコルの構成定義情報を、構成定義ファイル100から読み出す(ステップS173)。さらにプロセッサ12aは、読み出された構成定義情報にしたがって、n番目の管理プロトコルの通信確立処理を実行する(ステップS174)。 The processor 12a reads the configuration definition information of the nth management protocol from the configuration definition file 100 (step S173). Further, the processor 12a executes the communication establishment process of the nth management protocol according to the read configuration definition information (step S174).

n番目の管理プロトコルの通信が確立した後、プロセッサ12aは、nがN以上であるか否かを判定する(ステップS175)。nがN未満である場合(ステップS175においてNO)、プロセッサ12aは、nを1インクリメントし(ステップS176)、ステップS173へ処理を戻す。nがN以上である場合(ステップS175においてYES)、管理通信確立処理が終了する。これにより、再設定すべき管理プロトコルの全ての通信が確立する。 After the communication of the nth management protocol is established, the processor 12a determines whether or not n is N or more (step S175). If n is less than N (NO in step S175), processor 12a increments n by 1 (step S176) and returns processing to step S173. When n is N or more (YES in step S175), the management communication establishment process ends. This establishes all communication of the management protocol to be reconfigured.

次に、制御通信確立処理について詳細に説明する。図13は、本実施形態に係る親局装置1による制御通信確立処理の手順の一例を示すフローチャートである。 Next, the control communication establishment process will be described in detail. FIG. 13 is a flowchart showing an example of the procedure of the control communication establishment process by the master station device 1 according to the present embodiment.

制御通信確立処理において、まずプロセッサ12aは、再設定すべき制御プロトコルを決定する(ステップS181)。ステップS181の処理は、上述したステップS161の処理と同様であるため、説明を省略する。 In the control communication establishment process, the processor 12a first determines the control protocol to be reset (step S181). Since the process of step S181 is the same as the process of step S161 described above, the description thereof will be omitted.

次に、プロセッサ12aは、処理対象の制御プロトコルを示すインデックス(番号)mを初期値(1)に設定する(ステップS182)。 Next, the processor 12a sets the index (number) m indicating the control protocol to be processed to the initial value (1) (step S182).

プロセッサ12aは、m番目の制御プロトコルの構成定義情報を、構成定義ファイル100から読み出す(ステップS183)。さらにプロセッサ12aは、読み出された構成定義情報にしたがって、m番目の制御プロトコルの通信確立処理を実行する(ステップS184)。 The processor 12a reads the configuration definition information of the m-th control protocol from the configuration definition file 100 (step S183). Further, the processor 12a executes the communication establishment process of the m-th control protocol according to the read configuration definition information (step S184).

m番目の制御プロトコルの通信が確立した後、プロセッサ12aは、mがM以上であるか否かを判定する(ステップS185)。mがM未満である場合(ステップS185においてNO)、プロセッサ12aは、mを1インクリメントし(ステップS186)、ステップS183へ処理を戻す。mがM以上である場合(ステップS185においてYES)、制御通信確立処理が終了する。これにより、再設定すべき制御プロトコルの全ての通信が確立する。 After the communication of the m-th control protocol is established, the processor 12a determines whether or not m is M or more (step S185). If m is less than M (NO in step S185), processor 12a increments m by 1 (step S186) and returns processing to step S183. When m is M or more (YES in step S185), the control communication establishment process ends. This establishes all communication of the control protocol to be reconfigured.

再び図8を参照する。ステップS114において、T_M+T_Cが制御タイムアウト時間TO_Cより大きい場合(ステップS114においてYES)、制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方(具体的には、制御プロトコルによる通信)が確立しないことが推定される。つまり、制御プログラム12eの更新の際に、管理プロトコルの通信確立処理を実行し、その後に制御プロトコルの通信確立処理を実行した場合に、制御プロトコルのセッションが切断されることが推定される。この場合、プロセッサ12aは、制御通信確立処理時間T_Cが、制御タイムアウト時間TO_Cより大きいか否かを判定する(ステップS118)。 See FIG. 8 again. In step S114, when T_M + T_C is larger than the control timeout time TO_C (YES in step S114), at least one of the communication by the management protocol and the communication by the control protocol (specifically, the control protocol) before the end of the control timeout time TO_C. It is presumed that communication) will not be established. That is, it is presumed that the control protocol session is disconnected when the management protocol communication establishment process is executed when the control program 12e is updated and then the control protocol communication establishment process is executed. In this case, the processor 12a determines whether or not the control communication establishment processing time T_C is larger than the control timeout time TO_C (step S118).

制御通信確立処理時間T_Cが、制御タイムアウト時間TO_Cより大きい場合(ステップS118においてYES)、制御プログラム12eの更新に応じて制御プロトコルの通信が確立する前に、制御タイムアウト時間TO_Cが終了すると推定される。つまり、制御プログラム12eの更新の際に、制御プロトコルのセッションが切断されることが推定される。このため、無瞬断更新処理が実行されることなく、管理プロトコル優先判定処理が終了する。 When the control communication establishment processing time T_C is larger than the control timeout time TO_C (YES in step S118), it is estimated that the control timeout time TO_C ends before the control protocol communication is established in response to the update of the control program 12e. .. That is, it is presumed that the control protocol session is disconnected when the control program 12e is updated. Therefore, the management protocol priority determination process ends without executing the non-instantaneous update process.

制御通信確立処理時間T_Cが、制御タイムアウト時間TO_C以下である場合(ステップS118においてNO)、制御タイムアウト時間TO_Cが終了する前に、制御プログラム12eの更新に応じて制御プロトコルの通信が確立することが推定される。つまり、制御プログラム12eの更新の際に、制御プロトコルのセッションが切断されないことが推定される。この場合、プロセッサ12aは、管理通信確立処理時間T_Mと制御通信確立処理時間T_Cとの和(T_M+T_C)が、管理タイムアウト時間TO_Mより大きいか否かを判定する(ステップS119)。T_M+T_Cが、管理タイムアウト時間TO_M以下である場合(ステップS119においてNO)、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立することが推定される。つまり、制御プログラム12eの更新の際に、制御プロトコルの通信確立処理を実行し、その後に管理プロトコルの通信確立処理を実行すれば、管理プロトコル及び制御プロトコルそれぞれのセッションが切断されないことが推定される。この場合、プロセッサ12aは、無瞬断更新処理を実行し(ステップS120)、制御通信確立処理を実行する(ステップS121)。さらにプロセッサ12aは、制御通信確立処理が終了した後、管理通信確立処理を実行する(ステップS122)。管理通信確立処理が終了すると、管理プロトコル優先判定処理が終了する。 When the control communication establishment processing time T_C is equal to or less than the control timeout time TO_C (NO in step S118), the control protocol communication may be established according to the update of the control program 12e before the control timeout time TO_C ends. Presumed. That is, it is presumed that the control protocol session is not disconnected when the control program 12e is updated. In this case, the processor 12a determines whether or not the sum (T_M + T_C) of the management communication establishment processing time T_M and the control communication establishment processing time T_C is larger than the management timeout time TO_M (step S119). When T_M + T_C is equal to or less than the management timeout time TO_M (NO in step S119), it is estimated that communication by the management protocol and communication by the control protocol are established before the management timeout time TO_M ends. That is, if the communication establishment process of the control protocol is executed at the time of updating the control program 12e, and then the communication establishment process of the management protocol is executed, it is estimated that the sessions of the management protocol and the control protocol are not disconnected. .. In this case, the processor 12a executes the non-instantaneous update process (step S120) and executes the control communication establishment process (step S121). Further, the processor 12a executes the management communication establishment process after the control communication establishment process is completed (step S122). When the management communication establishment process is completed, the management protocol priority determination process is completed.

以上のように、管理プロトコル優先判定処理におけるステップS112は、管理プロトコルが優先対象として選択された場合、つまり、管理プロトコルが選択プロトコルである場合において、選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、選択プロトコルである管理プロトコルによる通信が確立するか否かを判定するための処理であり、第1判定処理である。ステップS114は、非選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立するか否かを判定するための処理であり、第2判定処理である。ステップS118は、非選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、非選択プロトコルである制御プロトコルによる通信が確立するか否かを判定するための処理であり、第3判定処理である。ステップS119は、選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立するか否かを判定するための処理であり、第4判定処理である。 As described above, in step S112 in the management protocol priority determination process, when the management protocol is selected as the priority target, that is, when the management protocol is the selection protocol, the management timeout time TO_M, which is the selection timeout time, ends. Previously, it is a process for determining whether or not communication by a management protocol which is a selection protocol is established, and is a first determination process. Step S114 is a process for determining whether or not communication by the management protocol and communication by the control protocol are established before the control timeout time TO_C, which is the non-selection timeout time, is completed, and is a second determination process. Is. Step S118 is a process for determining whether or not communication by the control protocol which is the non-selection protocol is established before the control timeout time TO_C which is the non-selection timeout time ends, and is a third determination process. .. Step S119 is a process for determining whether or not each of the communication by the management protocol and the communication by the control protocol is established before the management timeout time TO_M, which is the selection timeout time, is completed, and is the process for determining in the fourth determination process. is there.

さらに、管理プロトコル優先判定処理における管理通信確立処理(ステップS116及びS122)は、選択プロトコルである管理プロトコルによる通信を確立するための処理であり、第1通信確立処理である。制御通信確立処理(ステップS117及びS121)は、非選択プロトコルである制御プロトコルによる通信を確立するための処理であり、第2通信確立処理である。 Further, the management communication establishment process (steps S116 and S122) in the management protocol priority determination process is a process for establishing communication by the management protocol which is a selection protocol, and is a first communication establishment process. The control communication establishment process (steps S117 and S121) is a process for establishing communication by the control protocol which is a non-selection protocol, and is a second communication establishment process.

次に、制御プロトコル優先判定処理について説明する。図9は、本実施形態に係る親局装置1による制御プロトコル優先判定処理の手順の一例を示すフローチャートである。 Next, the control protocol priority determination process will be described. FIG. 9 is a flowchart showing an example of the procedure of the control protocol priority determination process by the master station apparatus 1 according to the present embodiment.

制御プロトコル優先判定処理において、まずプロセッサ12aは、制御通信確立処理時間算出処理を実行する(ステップS131)。これにより、制御通信確立処理時間T_Cが算出される。 In the control protocol priority determination process, the processor 12a first executes the control communication establishment processing time calculation process (step S131). As a result, the control communication establishment processing time T_C is calculated.

プロセッサ12aは、算出された制御通信確立処理時間T_Cが、制御タイムアウト時間TO_Cより大きいか否かを判定する(ステップS132)。制御通信確立処理時間T_Cが、制御タイムアウト時間TO_Cより大きい場合(ステップS132においてYES)、制御プログラム12eの更新に応じて制御プロトコルの通信が確立する前に、制御タイムアウト時間TO_Cが終了すると推定される。つまり、制御プログラム12eの更新の際に、制御プロトコルのセッションが切断されることが推定される。このため、無瞬断更新処理が実行されることなく、制御プロトコル優先判定処理が終了する。 The processor 12a determines whether or not the calculated control communication establishment processing time T_C is larger than the control timeout time TO_C (step S132). When the control communication establishment processing time T_C is larger than the control timeout time TO_C (YES in step S132), it is estimated that the control timeout time TO_C ends before the control protocol communication is established in response to the update of the control program 12e. .. That is, it is presumed that the control protocol session is disconnected when the control program 12e is updated. Therefore, the control protocol priority determination process ends without executing the non-instantaneous update process.

制御通信確立処理時間T_Cが、制御タイムアウト時間TO_C以下である場合(ステップS132においてNO)、制御タイムアウト時間TO_Cが終了する前に、制御プログラム12eの更新に応じて制御プロトコルの通信が確立することが推定される。つまり、制御プログラム12eの更新の際に、制御プロトコルのセッションが切断されないことが推定される。この場合、プロセッサ12aは、管理通信確立処理時間算出処理を実行する(ステップS133)。これにより、管理通信確立処理時間T_Mが算出される。 When the control communication establishment processing time T_C is equal to or less than the control timeout time TO_C (NO in step S132), the control protocol communication may be established according to the update of the control program 12e before the control timeout time TO_C ends. Presumed. That is, it is presumed that the control protocol session is not disconnected when the control program 12e is updated. In this case, the processor 12a executes the management communication establishment processing time calculation process (step S133). As a result, the management communication establishment processing time T_M is calculated.

プロセッサ12aは、管理通信確立処理時間T_Mと制御通信確立処理時間T_Cとの和(T_M+T_C)が、管理タイムアウト時間TO_Mより大きいか否かを判定する(ステップS134)。T_M+T_Cが、管理タイムアウト時間TO_M以下である場合(ステップS134においてNO)、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立することが推定される。つまり、制御プログラム12eの更新の際に、制御プロトコルの通信確立処理を実行し、その後に管理プロトコルの通信確立処理を実行すれば、管理プロトコル及び制御プロトコルそれぞれのセッションが切断されないことが推定される。この場合、プロセッサ12aは、無瞬断更新処理を実行し(ステップS135)、制御通信確立処理を実行する(ステップS136)。さらにプロセッサ12aは、制御通信確立処理が終了した後、管理通信確立処理を実行する(ステップS137)。管理通信確立処理が終了すると、制御プロトコル優先判定処理が終了する。 The processor 12a determines whether or not the sum (T_M + T_C) of the management communication establishment processing time T_M and the control communication establishment processing time T_C is larger than the management timeout time TO_M (step S134). When T_M + T_C is equal to or less than the management timeout time TO_M (NO in step S134), it is presumed that communication by the management protocol and communication by the control protocol are established before the management timeout time TO_M ends. That is, if the communication establishment process of the control protocol is executed at the time of updating the control program 12e, and then the communication establishment process of the management protocol is executed, it is estimated that the sessions of the management protocol and the control protocol are not disconnected. .. In this case, the processor 12a executes the non-instantaneous update process (step S135) and executes the control communication establishment process (step S136). Further, the processor 12a executes the management communication establishment process after the control communication establishment process is completed (step S137). When the management communication establishment process is completed, the control protocol priority determination process is completed.

ステップS134において、T_M+T_Cが管理タイムアウト時間TO_Mより大きい場合(ステップS134においてYES)、管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方(具体的には、管理プロトコルによる通信)が確立しないことが推定される。つまり、制御プログラム12eの更新の際に、制御プロトコルの通信確立処理を実行し、その後に管理プロトコルの通信確立処理を実行した場合に、管理プロトコルのセッションが切断されることが推定される。この場合、プロセッサ12aは、管理通信確立処理時間T_Mが、管理タイムアウト時間TO_Mより大きいか否かを判定する(ステップS138)。 In step S134, when T_M + T_C is larger than the management timeout time TO_M (YES in step S134), at least one of the communication by the management protocol and the communication by the control protocol (specifically, the management protocol) before the management timeout time TO_M ends. It is presumed that communication) will not be established. That is, it is presumed that the session of the management protocol is disconnected when the communication establishment process of the control protocol is executed at the time of updating the control program 12e and then the communication establishment process of the management protocol is executed. In this case, the processor 12a determines whether or not the management communication establishment processing time T_M is larger than the management timeout time TO_M (step S138).

管理通信確立処理時間T_Mが、管理タイムアウト時間TO_Mより大きい場合(ステップS138においてYES)、制御プログラム12eの更新に応じて管理プロトコルの通信が確立する前に、管理タイムアウト時間TO_Mが終了すると推定される。つまり、制御プログラム12eの更新の際に、管理プロトコルのセッションが切断されることが推定される。このため、無瞬断更新処理が実行されることなく、制御プロトコル優先判定処理が終了する。 When the management communication establishment processing time T_M is larger than the management timeout time TO_M (YES in step S138), it is estimated that the management timeout time TO_M ends before the management protocol communication is established in response to the update of the control program 12e. .. That is, it is presumed that the session of the management protocol is disconnected when the control program 12e is updated. Therefore, the control protocol priority determination process ends without executing the non-instantaneous update process.

管理通信確立処理時間T_Mが、管理タイムアウト時間TO_M以下である場合(ステップS138においてNO)、管理タイムアウト時間TO_Mが終了する前に、制御プログラム12eの更新に応じて管理プロトコルの通信が確立することが推定される。つまり、制御プログラム12eの更新の際に、管理プロトコルのセッションが切断されないことが推定される。この場合、プロセッサ12aは、管理通信確立処理時間T_Mと制御通信確立処理時間T_Cとの和(T_M+T_C)が、制御タイムアウト時間TO_Cより大きいか否かを判定する(ステップS139)。T_M+T_Cが、制御タイムアウト時間TO_C以下である場合(ステップS139においてNO)、制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立することが推定される。つまり、制御プログラム12eの更新の際に、管理プロトコルの通信確立処理を実行し、その後に制御プロトコルの通信確立処理を実行すれば、管理プロトコル及び制御プロトコルそれぞれのセッションが切断されないことが推定される。この場合、プロセッサ12aは、無瞬断更新処理を実行し(ステップS140)、管理通信確立処理を実行する(ステップS141)。さらにプロセッサ12aは、管理通信確立処理が終了した後、制御通信確立処理を実行する(ステップS142)。制御通信確立処理が終了すると、制御プロトコル優先判定処理が終了する。 When the management communication establishment processing time T_M is equal to or less than the management timeout time TO_M (NO in step S138), the management protocol communication may be established according to the update of the control program 12e before the management timeout time TO_M ends. Presumed. That is, it is estimated that the session of the management protocol is not disconnected when the control program 12e is updated. In this case, the processor 12a determines whether or not the sum (T_M + T_C) of the management communication establishment processing time T_M and the control communication establishment processing time T_C is larger than the control timeout time TO_C (step S139). When T_M + T_C is equal to or less than the control timeout time TO_C (NO in step S139), it is presumed that communication by the management protocol and communication by the control protocol are established before the control timeout time TO_C ends. That is, if the communication establishment process of the management protocol is executed at the time of updating the control program 12e and then the communication establishment process of the control protocol is executed, it is estimated that the sessions of the management protocol and the control protocol are not disconnected. .. In this case, the processor 12a executes the non-instantaneous update process (step S140) and executes the management communication establishment process (step S141). Further, the processor 12a executes the control communication establishment process after the management communication establishment process is completed (step S142). When the control communication establishment process is completed, the control protocol priority determination process is completed.

以上のように、制御プロトコル優先判定処理におけるステップS132は、制御プロトコルが優先対象として選択された場合、つまり、制御プロトコルが選択プロトコルである場合において、選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、選択プロトコルである制御プロトコルによる通信が確立するか否かを判定するための処理であり、第1判定処理である。ステップS134は、非選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立するか否かを判定するための処理であり、第2判定処理である。ステップS138は、非選択タイムアウト時間である管理タイムアウト時間TO_Mが終了する前に、非選択プロトコルである管理プロトコルによる通信が確立するか否かを判定するための処理であり、第3判定処理である。ステップS139は、選択タイムアウト時間である制御タイムアウト時間TO_Cが終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立するか否かを判定するための処理であり、第4判定処理である。 As described above, in step S132 in the control protocol priority determination process, when the control protocol is selected as the priority target, that is, when the control protocol is the selection protocol, the control timeout time TO_C, which is the selection timeout time, ends. Previously, it is a process for determining whether or not communication by a control protocol which is a selection protocol is established, and is a first determination process. Step S134 is a process for determining whether or not communication by the management protocol and communication by the control protocol are established before the management timeout time TO_M, which is the non-selection timeout time, ends, and is a second determination process. Is. Step S138 is a process for determining whether or not communication by the management protocol which is the non-selection protocol is established before the management timeout time TO_M which is the non-selection timeout time ends, and is a third determination process. .. Step S139 is a process for determining whether or not each of the communication by the management protocol and the communication by the control protocol is established before the control timeout time TO_C, which is the selection timeout time, is completed, and is the process for determining in the fourth determination process. is there.

さらに、制御プロトコル優先判定処理における制御通信確立処理(ステップS136及びS142)は、選択プロトコルである制御プロトコルによる通信を確立するための処理であり、第1通信確立処理である。管理通信確立処理(ステップS137及びS141)は、非選択プロトコルである管理プロトコルによる通信を確立するための処理であり、第2通信確立処理である。 Further, the control communication establishment process (steps S136 and S142) in the control protocol priority determination process is a process for establishing communication by the control protocol which is a selection protocol, and is a first communication establishment process. The management communication establishment process (steps S137 and S141) is a process for establishing communication by the management protocol which is a non-selection protocol, and is a second communication establishment process.

[4.変形例]
上記の実施形態では、複数の通信プロトコルを、管理プロトコルと制御プロトコルとの2つのグループに分類し、一方のグループを先行して通信確立処理を実行するグループに決定し、他方のグループを後続して通信確立処理を実行するグループに決定し、各グループの通信確立処理を実行した場合に、タイムアウト時間が終了する前に通信が確立するか否かを判定した。しかし、本開示は、このような構成に限定されない。本変形例に係る親局装置1は、複数の通信プロトコルの通信確立処理を実行する順番を決定し、決定された順番で通信確立処理を逐次的に実行した場合に、タイムアウト時間が終了する前に通信が確立するか否かを判定する。
[4. Modification example]
In the above embodiment, the plurality of communication protocols are classified into two groups, a management protocol and a control protocol, one group is determined to be the group that executes the communication establishment process in advance, and the other group is succeeded. The group to execute the communication establishment process was determined, and when the communication establishment process of each group was executed, it was determined whether or not the communication was established before the timeout time expired. However, the present disclosure is not limited to such a configuration. The master station apparatus 1 according to this modification determines the order in which the communication establishment processes of a plurality of communication protocols are executed, and when the communication establishment processes are sequentially executed in the determined order, before the timeout time ends. Determines whether communication is established in.

図14は、本変形例に係る親局装置1の制御部12の機能の一例を示す機能ブロック図である。制御部12は、入力部121、時間算出部122、判定部124、プログラム更新部125、通信確立部126、及び順番決定部127としての機能を有する。 FIG. 14 is a functional block diagram showing an example of the function of the control unit 12 of the master station device 1 according to this modification. The control unit 12 has functions as an input unit 121, a time calculation unit 122, a determination unit 124, a program update unit 125, a communication establishment unit 126, and an order determination unit 127.

本変形例に係る時間算出部122は、通信プロトコル毎に、通信確立処理時間を算出する。具体的な一例では、時間算出部122は、第1通信プロトコルによる通信を確立するための第1通信確立処理時間と、第1通信プロトコルとは異なる第2通信プロトコルによる通信を確立するための第2通信確立処理時間とのそれぞれを算出する。例えば、SSH、SNMP、syslog、LACP、Link−OAM、及びEther−OAMの各通信プロトコルが親局装置1によって使用される場合、時間算出部は、SSHの通信確立処理時間と、SNMPの通信確立処理時間と、syslogの通信確立処理時間と、LACPの通信確立処理時間と、Link−OAMの通信確立処理時間と、Ether−OAMの通信確立処理時間とをそれぞれ算出する。 The time calculation unit 122 according to this modification calculates the communication establishment processing time for each communication protocol. In a specific example, the time calculation unit 122 has a first communication establishment processing time for establishing communication by the first communication protocol and a first communication establishment processing time for establishing communication by a second communication protocol different from the first communication protocol. 2 Calculate each of the communication establishment processing time. For example, when each communication protocol of SSH, SNMP, syslog, LACP, Link-OAM, and Ether-OAM is used by the master station device 1, the time calculation unit determines the communication establishment processing time of SSH and the communication establishment of SNMP. The processing time, the communication establishment processing time of syslog, the communication establishment processing time of SNMP, the communication establishment processing time of Link-OAM, and the communication establishment processing time of Ether-OAM are calculated, respectively.

順番決定部127は、通信確立処理を実行する通信プロトコルの順番を決定する。具体的な一例では、順番決定部127は、SSH、SNMP、syslog、LACP、Link−OAM、及びEther−OAMの間で、通信確立処理の順番を決定する。 The order determination unit 127 determines the order of the communication protocols for executing the communication establishment process. In a specific example, the order determination unit 127 determines the order of communication establishment processing among SSH, SNMP, syslog, LACP, Link-OAM, and Ether-OAM.

本変形例に係る判定部124は、通信プロトコル毎に、タイムアウト時間が終了する前に通信が確立するか否かを判定する。具体的な一例では、判定部124は、第1判定処理と、第2判定処理とを実行する。第1判定処理は、時間算出部122によって算出される第1通信確立処理時間と、第1プロトコルによって定められる第1タイムアウト時間とに基づいて、第1タイムアウト時間が終了する前に、制御プログラム12eの更新に応じて第1プロトコルによる通信が確立されるか否かを判定するための処理である。第2判定処理は、時間算出部122によって算出される第1通信確立処理時間及び第2通信確立処理時間の和と、第2プロトコルによって定められる第2タイムアウト時間とに基づいて、第2タイムアウト時間が終了する前に、制御プログラム12eの更新に応じて第1プロトコルによる通信及び第2プロトコルによる通信のそれぞれが確立されるか否かを判定するための処理である。 The determination unit 124 according to this modification determines whether or not communication is established before the timeout time ends for each communication protocol. In a specific example, the determination unit 124 executes the first determination process and the second determination process. The first determination process is based on the first communication establishment processing time calculated by the time calculation unit 122 and the first timeout time determined by the first protocol, and before the end of the first timeout time, the control program 12e This is a process for determining whether or not communication by the first protocol is established in response to the update of. The second determination process is based on the sum of the first communication establishment processing time and the second communication establishment processing time calculated by the time calculation unit 122 and the second timeout time determined by the second protocol, and the second timeout time. Is a process for determining whether or not each of the communication according to the first protocol and the communication according to the second protocol is established according to the update of the control program 12e before the end of.

具体的な一例では、判定部124は、順番決定部127によって決定された順番で各通信プロトコルによる通信確立処理を実行した場合に、タイムアウト時間が終了する前に通信が確立するか否かを判定する。 In a specific example, the determination unit 124 determines whether or not communication is established before the timeout time expires when the communication establishment processing by each communication protocol is executed in the order determined by the order determination unit 127. To do.

図15A及び図15Bは、本変形例に係る親局装置1の判定部124による判定処理の例を説明するための図である。図15A及び図15Bには、親局装置1が使用する通信プロトコルが、LACP、SNMP、及びSSHである例を示している。図15Aには、順番決定部127が、通信確立処理の実行順番を、1.SSH、2.LACP、3.SNMPに決定した例を示しており、図15Bには、順番決定部127が、通信確立処理の実行順番を、1.LACP、2.SNMP、3.SSHに決定した例を示している。 15A and 15B are diagrams for explaining an example of determination processing by the determination unit 124 of the master station apparatus 1 according to this modification. 15A and 15B show an example in which the communication protocols used by the master station device 1 are LACP, SNMP, and SSH. In FIG. 15A, the order determination unit 127 determines the execution order of the communication establishment process. SSH, 2. LACP, 3. An example in which SNMP is determined is shown, and in FIG. 15B, the order determination unit 127 sets the execution order of the communication establishment process to 1. LACP, 2. SNMP, 3. An example determined to SSH is shown.

図15Aに示す例では、判定部124は、まず最初に、通信確立処理を実行する順番が1番のSSHについて、タイムアウト時間が終了する前に、通信が確立されるか否かを判定する。図15Aにおいて、最も上側のグラフはSSHの通信確立処理時間を示し、上から2番目のグラフはSSHのタイムアウト時間を示す。図15A及び図15Bにおいて、同様に、上下に隣り合う2つのグラフの上側は通信確立処理時間を示し、下側はタイムアウト時間を示す。図15Aの例では、SSHの通信確立処理時間は、SSHのタイムアウト時間よりも短い。SSHの通信確立処理の開始時刻t0において、SSHのタイムアウト時間のカウントが開始されるため、SSHのタイムアウト時間が終了する前に、SSHによる通信が確立される。 In the example shown in FIG. 15A, the determination unit 124 first determines whether or not communication is established for the SSH whose order of executing the communication establishment process is the first before the timeout time expires. In FIG. 15A, the uppermost graph shows the communication establishment processing time of SSH, and the second graph from the top shows the timeout time of SSH. Similarly, in FIGS. 15A and 15B, the upper side of the two graphs adjacent to each other above and below shows the communication establishment processing time, and the lower side shows the timeout time. In the example of FIG. 15A, the SSH communication establishment processing time is shorter than the SSH timeout time. Since the count of the SSH timeout time is started at the start time t0 of the SSH communication establishment process, the communication by the SSH is established before the SSH timeout time ends.

次に判定部124は、通信確立処理を実行する順番が2番のLACPのタイムアウト時間が終了する前に、SSHによる通信及びLACPによる通信のそれぞれが確立されるか否かを判定する。図15Aの例では、SSHの通信確立処理時間と、LACPの通信確立処理時間との和が、LACPのタイムアウト時間よりも短い。SSHの通信確立処理の開始時刻t0において、LACPのタイムアウト時間のカウントが開始される。さらに、SSHの通信確立処理が終了した直後に、LACPの通信確立処理が開始される。このため、LACPのタイムアウト時間が終了する前に、SSHによる通信及びLACPによる通信のそれぞれが確立される。 Next, the determination unit 124 determines whether or not each of the communication by SSH and the communication by LACP is established before the timeout time of LACP whose order of executing the communication establishment process is No. 2 ends. In the example of FIG. 15A, the sum of the communication establishment processing time of SSH and the communication establishment processing time of LACP is shorter than the timeout time of LACP. At the start time t0 of the communication establishment process of SSH, the count of the LACP timeout time is started. Further, immediately after the SSH communication establishment process is completed, the LACP communication establishment process is started. Therefore, each of the communication by SSH and the communication by LACP is established before the timeout time of LACP ends.

次に判定部124は、通信確立処理を実行する順番が3番のSNMPのタイムアウト時間が終了する前に、SSHによる通信、LACPによる通信、及びSNMPによる通信のそれぞれが確立されるか否かを判定する。図15Aの例では、SSHの通信確立処理時間と、LACPの通信確立処理時間と、SNMPの通信確立処理時間との和が、SNMPのタイムアウト時間よりも短い。SSHの通信確立処理の開始時刻t0において、SNMPのタイムアウト時間のカウントが開始される。さらに、SSHの通信確立処理が終了した直後に、LACPの通信確立処理が開始され、LACPの通信確立処理が終了した直後に、SNMPの通信確立処理が開始される。このため、SNMPのタイムアウト時間が終了する前に、SSHによる通信、LACPによる通信、及びSNMPによる通信のそれぞれが確立される。 Next, the determination unit 124 determines whether or not each of the communication by SSH, the communication by LACP, and the communication by SNMP is established before the timeout time of the SNMP whose order of executing the communication establishment process is No. 3 ends. judge. In the example of FIG. 15A, the sum of the communication establishment processing time of SSH, the communication establishment processing time of LACP, and the communication establishment processing time of SNMP is shorter than the timeout time of SNMP. At the start time t0 of the communication establishment process of SSH, the counting of the SNMP timeout time is started. Further, the LACP communication establishment process is started immediately after the SSH communication establishment process is completed, and the SNMP communication establishment process is started immediately after the LACP communication establishment process is completed. Therefore, each of the communication by SSH, the communication by LACP, and the communication by SNMP is established before the timeout time of SNMP ends.

次に、図15Bに示す例について説明する。図15Bに示す例では、判定部124は、まず最初に、通信確立処理を実行する順番が1番のLACPについて、タイムアウト時間が終了する前に、通信が確立されるか否かを判定する。図15Aの例では、LACPの通信確立処理時間は、LACPのタイムアウト時間よりも短い。LACPの通信確立処理の開始時刻t0において、LACPのタイムアウト時間のカウントが開始される。このため、LACPのタイムアウト時間が終了する前に、LACPによる通信が確立される。 Next, an example shown in FIG. 15B will be described. In the example shown in FIG. 15B, the determination unit 124 first determines whether or not communication is established for the LACP whose order of executing the communication establishment process is first, before the timeout time expires. In the example of FIG. 15A, the LACP communication establishment processing time is shorter than the LACP timeout time. At the start time t0 of the LACP communication establishment process, the LACP timeout time count is started. Therefore, the communication by LACP is established before the timeout time of LACP ends.

次に判定部124は、通信確立処理を実行する順番が2番のSNMPのタイムアウト時間が終了する前に、LACPによる通信及びSNMPによる通信のそれぞれが確立されるか否かを判定する。図15Bの例では、LACPの通信確立処理時間と、SNMPの通信確立処理時間との和が、SNMPのタイムアウト時間よりも短い。LACPの通信確立処理の開始時刻t0において、SNMPのタイムアウト時間のカウントが開始される。さらに、LACPの通信確立処理が終了した直後に、SNMPの通信確立処理が開始される。このため、SNMPのタイムアウト時間が終了する前に、LACPによる通信及びSNMPによる通信のそれぞれが確立される。 Next, the determination unit 124 determines whether or not each of the communication by the LACP and the communication by the SNMP is established before the timeout time of the SNMP whose turn is the second to execute the communication establishment process ends. In the example of FIG. 15B, the sum of the communication establishment processing time of LACP and the communication establishment processing time of SNMP is shorter than the timeout time of SNMP. At the start time t0 of the LACP communication establishment process, the counting of the SNMP timeout time is started. Further, immediately after the LACP communication establishment process is completed, the SNMP communication establishment process is started. Therefore, each of the communication by LACP and the communication by SNMP is established before the timeout time of SNMP ends.

次に判定部124は、通信確立処理を実行する順番が3番のSSHのタイムアウト時間が終了する前に、LACPによる通信、SNMPによる通信、及びSSHによる通信のそれぞれが確立されるか否かを判定する。図15Bの例では、LACPの通信確立処理時間と、SNMPの通信確立処理時間と、SSHの通信確立処理時間との和が、SSHのタイムアウト時間よりも長い。LACPの通信確立処理の開始時刻t0において、SSHのタイムアウト時間のカウントが開始される。さらに、LACPの通信確立処理が終了した直後に、SNMPの通信確立処理が開始され、SNMPの通信確立処理が終了した直後に、SSHの通信確立処理が開始される。このため、SSHのタイムアウト時間が終了する前に、SSHによる通信による通信が確立されない。 Next, the determination unit 124 determines whether or not each of the LACP communication, the SNMP communication, and the SSH communication is established before the timeout time of the SSH whose turn is the third to execute the communication establishment process ends. judge. In the example of FIG. 15B, the sum of the LACP communication establishment processing time, the SNMP communication establishment processing time, and the SSH communication establishment processing time is longer than the SSH timeout time. At the start time t0 of the LACP communication establishment process, the SSH timeout time count is started. Further, the SNMP communication establishment process is started immediately after the LACP communication establishment process is completed, and the SSH communication establishment process is started immediately after the SNMP communication establishment process is completed. Therefore, the communication by the communication by SSH is not established before the timeout time of SSH ends.

再び図14を参照する。プログラム更新部125は、判定部124によってタイムアウト時間が終了する前に通信プロトコルによる通信が確立されると判定される場合に、制御プログラム12eの無瞬断更新処理を実行する。具体的な一例では、プログラム更新部125は、判定部124によって、通信確立処理の順番が最後の通信プロトコルに対応するタイムアウト時間が終了する前に、順番決定部127によって決定された順番で複数の通信プロトコルによる通信のそれぞれが確立されると判定された場合に、制御プログラム12eの無瞬断更新処理を実行する。プログラム更新部125は、判定部124によって、通信確立処理の順番が最後の通信プロトコルに対応するタイムアウト時間が終了する前に、通信確立処理の順番が最後の通信プロトコルによる通信が確立されないと判定される場合に、無瞬断更新処理を実行しない。 See FIG. 14 again. The program update unit 125 executes the non-instantaneous update process of the control program 12e when it is determined by the determination unit 124 that communication by the communication protocol is established before the timeout time ends. In a specific example, the program update unit 125 may have a plurality of communication establishment processes in the order determined by the order determination unit 127 before the timeout time corresponding to the last communication protocol ends. When it is determined that each of the communications by the communication protocol is established, the non-instantaneous update process of the control program 12e is executed. The program update unit 125 determines by the determination unit 124 that communication by the communication protocol whose order of communication establishment processing is last is not established before the timeout time corresponding to the communication protocol whose order of communication establishment processing is last expires. If so, the non-interrupted update process is not executed.

通信確立部126は、親局装置1と対向装置との間での通信プロトコルによる通信を確立するための通信確立処理を実行する。具体的な一例では、通信確立部126は、判定部124によって、通信確立処理の順番が最後の通信プロトコルに対応するタイムアウト時間が終了する前に、順番決定部127によって決定された順番で複数の通信プロトコルによる通信のそれぞれが確立されると判定される場合に、前記順番決定部127によって決定された順番で複数の通信プロコルによる通信を確立するための逐次通信確立処理を実行する。通信確立部126は、判定部124によって、通信確立処理の順番が最後の通信プロトコルに対応するタイムアウト時間が終了する前に、通信確立処理の順番が最後の通信プロトコルによる通信が確立されないと判定される場合に、逐次通信確立処理を実行しない。 The communication establishment unit 126 executes a communication establishment process for establishing communication by a communication protocol between the master station device 1 and the opposite device. In a specific example, the communication establishment unit 126 may have a plurality of communication establishment processes in the order determined by the order determination unit 127 before the timeout time corresponding to the last communication protocol ends. When it is determined that each of the communications by the communication protocol is established, the sequential communication establishment process for establishing the communication by the plurality of communication protocols in the order determined by the order determination unit 127 is executed. The communication establishment unit 126 determines by the determination unit 124 that communication by the communication protocol whose order of communication establishment processing is last is not established before the timeout time corresponding to the communication protocol whose order of communication establishment processing is last ends. If so, the sequential communication establishment process is not executed.

図15Aに示す例では、判定部124が、通信確立処理の順番が最後の通信プロトコルであるSNMPのタイムアウト時間が終了する前に、順番決定部127によって決定された順番でSSH、LACP、及びSNMPの各通信プロトコルによる通信のそれぞれが確立されると判定する。したがって、この場合、プログラム更新部125は無瞬断更新処理を実行する。さらにこの場合、通信確立部126は、逐次通信確立処理を実行する。 In the example shown in FIG. 15A, the determination unit 124 performs SSH, LACP, and SNMP in the order determined by the order determination unit 127 before the timeout time of the SNMP, which is the last communication protocol, is used for the communication establishment process. It is determined that each communication by each communication protocol of is established. Therefore, in this case, the program update unit 125 executes the non-instantaneous update process. Further, in this case, the communication establishment unit 126 executes the sequential communication establishment process.

図15Bに示す例では、判定部124が、通信確立処理の順番が最後の通信プロトコルであるSSHのタイムアウト時間が終了する前に、SSHによる通信が確立されないと判定する。したがって、この場合、プログラム更新部125は無瞬断更新処理を実行しない。さらにこの場合、通信確立部126は、逐次通信確立処理を実行しない。 In the example shown in FIG. 15B, the determination unit 124 determines that the communication by SSH is not established before the timeout time of SSH, which is the last communication protocol in the order of communication establishment processing, ends. Therefore, in this case, the program update unit 125 does not execute the non-instantaneous update process. Further, in this case, the communication establishment unit 126 does not execute the sequential communication establishment process.

図16は、本変形例に係る親局装置1による通信確立判定処理の手順の一例を示すフローチャートである。 FIG. 16 is a flowchart showing an example of a procedure for communication establishment determination processing by the master station device 1 according to this modification.

通信確立判定処理において、プロセッサ12aは、無瞬断プログラム更新を行うか否かを判定する(ステップS201)。 In the communication establishment determination process, the processor 12a determines whether or not to update the program without interruption (step S201).

無瞬断プログラム更新を行わない場合(ステップS201においてNO)、プロセッサ12aは、通常プログラム更新を実行する(ステップS202)。即ち、プロセッサ12aは、非一過性メモリ12bに記憶される制御プログラム12eを書き換え、親局装置1を再起動する。再起動の際、通信確立判定処理が終了する。 When the non-interrupted program update is not performed (NO in step S201), the processor 12a normally executes the program update (step S202). That is, the processor 12a rewrites the control program 12e stored in the non-transient memory 12b and restarts the master station device 1. At the time of restart, the communication establishment determination process ends.

無瞬断プログラム更新を行う場合(ステップS201においてYES)、プロセッサ12aは、例えば非一過性メモリ12bの構成定義ファイル100から、各通信プロトコル(SSH、SNMP、syslog、LACP、Link−OAM、Ether−OAM)のそれぞれのタイムアウト時間を読み出す(ステップS203)。さらに、プロセッサ12aは、例えば構成定義ファイル100を参照し、再設定すべき通信プロトコルの数Kを決定する。 When updating the program without interruption (YES in step S201), the processor 12a, for example, from the configuration definition file 100 of the non-transient memory 12b, each communication protocol (SSH, SNMP, syslog, LACP, Link-OAM, Ether -OAM) is read out (step S203). Further, the processor 12a refers to, for example, the configuration definition file 100 and determines the number K of communication protocols to be reset.

次にプロセッサ12aは、通信プロトコル毎に通信確立処理時間を算出する(ステップS204)。通信確立処理時間の算出方法は、上記の実施形態における通信確立処理時間算出処理と同様である。 Next, the processor 12a calculates the communication establishment processing time for each communication protocol (step S204). The method for calculating the communication establishment processing time is the same as the communication establishment processing time calculation processing in the above embodiment.

さらにプロセッサ12aは、通信確立処理を実行する通信プロトコルの順番を決定する(ステップS205)。この処理では、プロセッサ12aがランダムに通信プロトコルの順番を決定してもよいし、所定のルールに従って通信プロトコルの順番を決定してもよい。 Further, the processor 12a determines the order of the communication protocols for executing the communication establishment process (step S205). In this process, the processor 12a may randomly determine the order of the communication protocols, or may determine the order of the communication protocols according to a predetermined rule.

次に、プロセッサ12aは、処理対象の通信プロトコルを示すインデックス(番号)kを初期値(1)に設定する(ステップS206)。さらにプロセッサ12aは、タイムアウト時間と比較する対象の通信確立処理時間(「通信確立処理統合時間」という)Tを初期値(0)に設定する(ステップS207)。 Next, the processor 12a sets the index (number) k indicating the communication protocol to be processed to the initial value (1) (step S206). Further, the processor 12a sets the target communication establishment processing time (referred to as “communication establishment processing integration time”) T to be compared with the timeout time to the initial value (0) (step S207).

プロセッサ12aは、通信確立処理総括時間Tにk番目の通信プロトコルにおける通信確立処理時間T_kを加算した結果を、新たな通信確立処理時間Tとする(ステップS208)。 The processor 12a sets the result of adding the communication establishment processing time T_k in the k-th communication protocol to the communication establishment processing total time T as the new communication establishment processing time T (step S208).

プロセッサ12aは、通信確立処理総括時間Tが、k番目の通信プロトコルのタイムアウト時間TO_kより大きいか否かを判定する(ステップS209)。通信確立処理総括時間Tが、タイムアウト時間TO_k以下である場合(ステップS209においてNO)、タイムアウト時間TO_kが終了する前に、制御プログラム12eの更新に応じて1番からk番の通信プロトコルによる通信が全て確立することが推定される。つまり、制御プログラム12eの更新の際に、1番からk番の通信プロトコルのセッションが切断されないことが推定される。この場合、プロセッサ12aは、kが再設定すべき通信プロトコルの数K以上であるか否かを判定する(ステップS212)。kがK未満である場合(ステップS212においてNO)、プロセッサ12aは、kを1インクリメントし(ステップS213)、ステップS208へ処理を戻す。 The processor 12a determines whether or not the communication establishment processing total time T is larger than the timeout time TO_k of the kth communication protocol (step S209). When the communication establishment processing total time T is equal to or less than the timeout time TO_k (NO in step S209), communication by the communication protocols 1 to k is performed according to the update of the control program 12e before the timeout time TO_k ends. It is estimated that all will be established. That is, it is estimated that the sessions of the communication protocols 1 to k are not disconnected when the control program 12e is updated. In this case, the processor 12a determines whether or not k is equal to or greater than the number K of the communication protocols to be reset (step S212). If k is less than K (NO in step S212), processor 12a increments k by 1 (step S213) and returns processing to step S208.

ステップS209において、通信確立処理総括時間Tが、タイムアウト時間TO_kより大きい場合(ステップS209においてYES)、制御プログラム12eの更新に応じてk番目の通信プロトコルの通信が確立する前に、タイムアウト時間TO_kが終了すると推定される。つまり、制御プログラム12eの更新の際に、k番目の通信プロトコルのセッションが切断されることが推定される。この場合、プロセッサ12aは、決定されていない通信プロトコルの順番の組み合わせが残っているか否かを判定する(ステップS210)。決定されていない通信プロトコルの順番の組み合わせが残っていない場合(ステップS210においてNO)、如何なる順番で通信プロトコルによる通信確立処理を実行したとしても、タイムアウト時間が終了する前に、複数の通信プロトコルのいずれかによる通信が確立しないと推定される。つまり、制御プログラム12eの更新の際に、通信プロトコルのセッションが切断されることが推定される。このため、無瞬断更新処理が実行されることなく、通信確立判定処理が終了する。 In step S209, when the communication establishment processing summarizing time T is larger than the timeout time TO_k (YES in step S209), the timeout time TO_k is set before the communication of the kth communication protocol is established in response to the update of the control program 12e. Estimated to end. That is, it is presumed that the session of the kth communication protocol is disconnected when the control program 12e is updated. In this case, the processor 12a determines whether or not a combination of undetermined communication protocol orders remains (step S210). If there is no undetermined combination of communication protocol orders left (NO in step S210), no matter what order the communication establishment processing by the communication protocol is executed, before the timeout time ends, a plurality of communication protocols It is presumed that communication by either is not established. That is, it is presumed that the communication protocol session is disconnected when the control program 12e is updated. Therefore, the communication establishment determination process ends without executing the non-instantaneous update process.

決定されていない通信プロトコルの順番の組み合わせが残っている場合(ステップS210においてYES)、プロセッサ12aは、通信プロトコルの新たな順番を決定する(ステップS211)。ステップS211では、まだ一度も決定されていない通信プロトコルの順番の組み合わせの中から、通信プロトコルの新たな順番が決定される。通信プロトコルの新たな順番が決定されると、プロセッサ12aは、ステップS206へ処理を移す。これにより、新たに決定された通信プロトコルの順番に基づいて、タイムアウト時間が終了する前に、通信プロトコルによる通信が確立するか否かが判定される。 If an undetermined combination of communication protocol orders remains (YES in step S210), the processor 12a determines a new order of communication protocols (step S211). In step S211 a new order of communication protocols is determined from a combination of communication protocol orders that has never been determined. When a new order of communication protocols is determined, the processor 12a shifts the process to step S206. Thereby, based on the newly determined order of the communication protocols, it is determined whether or not the communication by the communication protocol is established before the timeout time ends.

ステップS212において、kがK以上である場合(ステップS212においてYES)、タイムアウト時間が終了する前に、制御プログラム12eの更新に応じて全ての通信プロトコルによる通信が確立することが推定される。つまり、制御プログラム12eの更新の際に、K個の通信プロトコルの全てにおいてセッションが切断されないことが推定される。したがって、この場合、プロセッサ12aは、制御プログラム12eの無瞬断更新処理を実行する(ステップS214)。さらにプロセッサ12aは、決定された順番で各通信プロトコルの通信確立処理(逐次通信確立処理)を実行する(ステップS215)。以上で、通信確立判定処理が終了する。 In step S212, when k is K or more (YES in step S212), it is estimated that communication by all communication protocols is established according to the update of the control program 12e before the timeout time ends. That is, it is estimated that the sessions are not disconnected in all of the K communication protocols when the control program 12e is updated. Therefore, in this case, the processor 12a executes the non-instantaneous update process of the control program 12e (step S214). Further, the processor 12a executes the communication establishment process (sequential communication establishment process) of each communication protocol in the determined order (step S215). This completes the communication establishment determination process.

[5.その他の変形例]
なお、同様の通信確立判定処理を、子局装置2が実行してもよい。子局装置2では、制御プロトコルであるLink−OAM及びEther−OAMが使用されるが、LACP、SSH、telnet、SNMP、及びsyslogは使用されない。したがって、Link−OAM及びEther−OAMのいずれか一方又は両方のタイムアウト時間が終了する前に、Link−OAMによる通信及びEther−OAMによる通信が確立されるか否かが判定される。
[5. Other variants]
The slave station device 2 may execute the same communication establishment determination process. In the slave station device 2, the control protocols Link-OAM and Ether-OAM are used, but LACP, SSH, telnet, SNMP, and syslog are not used. Therefore, it is determined whether or not the Link-OAM communication and the Ether-OAM communication are established before the timeout period of either one or both of the Link-OAM and the Ether-OAM ends.

また、各通信プロトコルの通信確立処理時間に、制御プログラム12eの無瞬断更新処理にかかる時間を加味してもよい。つまり、一又は複数の管理プロトコルの通信確立処理時間の総和に、無瞬断更新処理にかかる時間を加えた結果を管理通信確立処理時間として算出してもよいし、一又は複数の制御プロトコルの通信確立処理時間の総和に、無瞬断更新処理にかかる時間を加えた結果を制御通信確立処理時間として算出してもよい。さらに、一又は複数の通信プロトコルの通信確立処理時間の総和に、無瞬断更新処理にかかる時間を加えた結果を、通信確立処理総括時間として算出してもよい。 Further, the time required for the non-instantaneous update processing of the control program 12e may be added to the communication establishment processing time of each communication protocol. That is, the result of adding the time required for the non-instantaneous update process to the total communication establishment processing time of one or more management protocols may be calculated as the management communication establishment processing time, or one or more control protocols. The result of adding the time required for the non-interrupted update process to the total communication establishment processing time may be calculated as the control communication establishment processing time. Further, the result of adding the time required for the non-instantaneous update processing to the total communication establishment processing time of one or more communication protocols may be calculated as the communication establishment processing totaling time.

[6.効果]
以上のように、親局装置1(第1通信装置1)は、対向装置に対して通信プロトコルによる通信が可能な通信装置であって、時間算出部122と、判定部124と、プログラム更新部125と、を備える。時間算出部122は、親局装置1と対向装置との間での通信プロトコルによる通信を確立するための通信確立処理時間を算出する。判定部124は、時間算出部122によって算出される通信確立処理時間と、通信プロトコルによって定められるタイムアウト時間とに基づいて、タイムアウト時間が終了する前に、親局装置1の制御プログラム12eの更新に応じて親局装置1と対向装置との間での通信プロトコルによる通信が確立されるか否かを判定する。プログラム更新部125は、判定部124によってタイムアウト時間が終了する前に通信プロトコルによる通信が確立されると判定される場合に、親局装置1の再起動を伴わずに制御プログラム12eを更新する無瞬断更新処理を実行する。これにより、タイムアウト時間が終了する前に、制御プログラム12eの更新が実行され、通信プロトコルによる対向装置との通信が確立する。さらに、セッションを維持するための専用回路が必要とされない。したがって、親局装置1のコストを抑制しつつ、制御プログラム12eの更新によるセッションの切断を回避することができる。
[6. effect]
As described above, the master station device 1 (first communication device 1) is a communication device capable of communicating with the opposite device by the communication protocol, and is a time calculation unit 122, a determination unit 124, and a program update unit. 125 and. The time calculation unit 122 calculates the communication establishment processing time for establishing the communication by the communication protocol between the master station device 1 and the opposite device. The determination unit 124 updates the control program 12e of the master station device 1 before the timeout time expires based on the communication establishment processing time calculated by the time calculation unit 122 and the timeout time determined by the communication protocol. Correspondingly, it is determined whether or not communication by the communication protocol between the master station device 1 and the opposite device is established. When the determination unit 124 determines that the communication by the communication protocol is established before the timeout time ends, the program update unit 125 updates the control program 12e without restarting the master station device 1. Executes the momentary update process. As a result, the control program 12e is updated before the timeout time ends, and communication with the opposite device by the communication protocol is established. Moreover, no dedicated circuitry is needed to maintain the session. Therefore, it is possible to avoid disconnection of the session due to the update of the control program 12e while suppressing the cost of the master station device 1.

時間算出部122は、親局装置1の保守及び管理に用いられる通信プロトコルである管理プロトコルによる通信を確立するための管理通信確立処理時間を算出してもよい。時間算出部122は、親局装置1による通信を制御するための通信プロトコルである制御プロトコルによる通信を確立するための制御通信確立処理時間を算出してもよい。判定部124は、時間算出部122によって算出される管理通信確立処理時間及び制御通信確立処理時と、タイムアウト時間とに基づいて、タイムアウト時間が終了する前に、制御プログラムの更新に応じて管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かを判定してもよい。これにより、管理プロトコル及び制御プロトコルによるセッションの切断を回避することができる。 The time calculation unit 122 may calculate the management communication establishment processing time for establishing the communication by the management protocol which is the communication protocol used for the maintenance and management of the master station apparatus 1. The time calculation unit 122 may calculate the control communication establishment processing time for establishing the communication by the control protocol, which is the communication protocol for controlling the communication by the master station apparatus 1. Based on the management communication establishment processing time calculated by the time calculation unit 122, the control communication establishment processing time, and the timeout time, the determination unit 124 responds to the update of the control program before the timeout time ends. It may be determined whether or not each of the communication by the control protocol and the communication by the control protocol is established. This makes it possible to avoid disconnection of the session by the management protocol and the control protocol.

タイムアウト時間は、管理プロトコルによって定められる管理タイムアウト時間TO_Mと、制御プロトコルによって定められる制御タイムアウト時間TO_Cとのうちのいずれか一方であってもよい。これにより、管理プロトコルに対応する管理タムアウト時間TO_M及び制御プロトコルに対応する制御タイムアウト時間TO_Cのいずれか一方が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるため、少なくとも管理プロトコル及び制御プロトコルのいずれか一方によるセッションの切断を回避することができる。 The timeout time may be either one of the management timeout time TO_M defined by the management protocol and the control timeout time TO_C defined by the control protocol. As a result, at least communication by the management protocol and communication by the control protocol are established before either the management tom-out time TO_M corresponding to the management protocol or the control timeout time TO_C corresponding to the control protocol ends. It is possible to avoid disconnection of the session by either the management protocol or the control protocol.

親局装置1によって複数の管理プロトコルが用いられる場合、管理タイムアウト時間TO_Mは、複数の管理プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間であってもよい。親局装置1によって複数の制御プロトコルが用いられる場合、制御タイムアウト時間TO_Cは、複数の制御プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間であってもよい。これにより、複数の管理プロトコルのそれぞれによって定められる最小のタイムアウト時間及び複数の制御プログラムのそれぞれによって定められる最小のタイムアウト時間のいずれか一方が終了する前に、複数の管理プロトコルによる通信及び複数の制御プロトコルによる通信のそれぞれが確立されるため、複数の管理プロトコルのそれぞれによるセッション又は複数の制御プロトコルのそれぞれによるセッションの切断を回避することができる。 When a plurality of management protocols are used by the master station apparatus 1, the management timeout time TO_M may be the minimum timeout time among the timeout times defined by each of the plurality of management protocols. When a plurality of control protocols are used by the master station apparatus 1, the control timeout time TO_C may be the minimum timeout time among the timeout times defined by each of the plurality of control protocols. As a result, communication and control by the plurality of management protocols are performed before either the minimum timeout time defined by each of the plurality of management protocols or the minimum timeout time defined by each of the plurality of control programs ends. Since each of the communication by the protocol is established, it is possible to avoid disconnection of the session by each of the plurality of management protocols or the session by each of the plurality of control protocols.

親局装置1は、管理プロトコル及び制御プロトコルのうちのいずれか一方を選択する選択部123をさらに備えてもよい。判定部124は、第1判定処理と、第2判定処理とを実行してもよい。第1判定処理は、選択部123によって選択される通信プロトコルである選択プロトコルに対応する通信確立処理時間と、管理タイムアウト時間TO_M及び制御タイムアウト時間TO_Cのうち、選択プロトコルに対応する一方である選択タイムアウト時間とに基づいて、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立されるか否かを判定する処理である。第2判定処理は、管理通信確立処理時間及び制御通信確立処理時の和と、管理タイムアウト時間TO_M及び制御タイムアウト時間TO_Cのうちの他方である非選択タイムアウト時間とに基づいて、非選択タイムアウト時間が終了する前に、制御プログラムの更新に応じて管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かを判定する処理である。これにより、第1判定処理により、選択プロトコルによるセッションの切断を回避することができ、第2判定処理により、少なくとも管理プロトコル及び制御プロトコルのいずれか一方によるセッションの切断を回避することができる。 The master station device 1 may further include a selection unit 123 that selects either a management protocol or a control protocol. The determination unit 124 may execute the first determination process and the second determination process. The first determination process includes the communication establishment processing time corresponding to the selection protocol, which is the communication protocol selected by the selection unit 123, and the selection timeout, which is one of the management timeout time TO_M and the control timeout time TO_C, which corresponds to the selection protocol. Based on the time, it is a process of determining whether or not communication by the selection protocol is established before the selection timeout time ends. The second determination process is based on the sum of the management communication establishment processing time and the control communication establishment processing and the non-selection timeout time, which is the other of the management timeout time TO_M and the control timeout time TO_C, and the non-selection timeout time. Before the end, it is a process of determining whether or not communication by the management protocol and communication by the control protocol are established according to the update of the control program. As a result, the first determination process can prevent the session from being disconnected by the selection protocol, and the second determination process can prevent the session from being disconnected by at least one of the management protocol and the control protocol.

判定部124は、第1判定処理において、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立されると判定される場合に、第2判定処理を実行してもよい。プログラム更新部125は、第2判定処理において、非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、無瞬断更新処理を実行してもよい。プログラム更新部125は、第1判定処理において、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立されないと判定される場合に、無瞬断更新処理を実行しなくてもよい。これにより、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立され、且つ、非選択タイムアウト時間が終了する前に、管理プロトコル及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、無瞬断更新処理が実行される。つまり、管理プロトコル及び制御プロトコルによる各セッションが切断されないと判定される場合に、無瞬断更新処理を実行することができる。さらに、選択タイムアウト時間が終了する前に、選択プロトコルによる通信が確立されない場合に、無瞬断更新処理が実行されない。つまり、選択プロトコルによるセッションが切断されると判定される場合に、無瞬断更新処理を実行せず、選択プロトコルによるセッションの切断を回避することができる。 In the first determination process, the determination unit 124 may execute the second determination process when it is determined that the communication by the selection protocol is established before the selection timeout time ends. In the second determination process, the program update unit 125 performs the non-interruptive update process when it is determined that the communication by the management protocol and the communication by the control protocol are established before the non-selection timeout time ends. You may do it. In the first determination process, the program update unit 125 does not have to execute the non-instantaneous update process when it is determined that the communication by the selection protocol is not established before the selection timeout time ends. As a result, when it is determined that the communication by the selection protocol is established before the selection timeout time ends, and the communication by the management protocol and the control protocol is established before the non-selection timeout time ends. In addition, the non-instantaneous update process is executed. That is, when it is determined that each session according to the management protocol and the control protocol is not disconnected, the non-instantaneous update process can be executed. Further, if communication by the selection protocol is not established before the selection timeout time ends, the non-interrupted update process is not executed. That is, when it is determined that the session by the selected protocol is disconnected, the session cannot be disconnected by the selected protocol without executing the non-interrupted update process.

親局装置1は、通信確立部126をさらに備えてもよい。通信確立部126は、親局装置1と対向装置との間での通信プロトコルによる通信を確立するための通信確立処理を実行する。通信確立部126は、第2判定処理において、非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、選択プロトコルによる第1通信確立処理を実行し、第1通信確立処理が終了した後、管理プロトコル及び制御プロトコルのうち選択部123によって選択されない通信プロトコルである非選択プロトコルによる第2通信確立処理を実行してもよい。これにより、第2判定処理において非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、選択プロトコルに係る第1通信管理処理、及び非選択プロトコルに係る第2通信管理処理が順番に実行される。よって、選択プロトコル及び非選択プロトコルによる各セッションの切断を回避することができる。 The master station device 1 may further include a communication establishment unit 126. The communication establishment unit 126 executes a communication establishment process for establishing communication by a communication protocol between the master station device 1 and the opposite device. In the second determination process, the communication establishment unit 126 determines that the communication by the management protocol and the communication by the control protocol are established before the non-selection timeout time ends, the first communication by the selection protocol. After the establishment process is executed and the first communication establishment process is completed, the second communication establishment process by the non-selection protocol, which is a communication protocol not selected by the selection unit 123 among the management protocol and the control protocol, may be executed. As a result, when it is determined that the communication by the management protocol and the communication by the control protocol are established before the non-selection timeout time ends in the second determination process, the first communication management process related to the selection protocol, And the second communication management process related to the non-selection protocol is executed in order. Therefore, it is possible to avoid disconnection of each session by the selected protocol and the non-selected protocol.

判定部124は、第2判定処理において、非選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信の少なくとも一方が確立されないと判定される場合に、第3判定処理を実行してもよい。第3判定処理は、非選択プロトコルに対応する通信確立処理時間と、非選択タイムアウト時間とに基づいて、非選択タイムアウト時間が終了する前に、制御プログラムの更新に応じて前記非選択プロトコルによる通信が確立されるか否かを判定する処理である。判定部124は、第3判定処理において、非選択タイムアウト時間が終了する前に、非選択プロトコルによる通信が確立されると判定される場合に、第4判定処理を実行してもよい。第4判定処理は、管理通信確立処理時間及び制御通信確立処理時の和と、選択タイムアウト時間とに基づいて、選択タイムアウト時間が終了する前に、制御プログラムの更新に応じて管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されるか否かを判定する処理である。これにより、第2判定処理において非選択タイムアウト時間が終了する前に、管理プロトコル及び制御プロトコルによる通信の少なくとも一方が確立されないと判定される場合に、第1及び第2判定処理とは管理プロトコル及び制御プロトコルの通信確立処理の順番を入れ替えた第3及び第4判定処理が実行される。したがって、第2判定処理においてセッションが切断されると判定される場合に、管理プロトコル及び制御プロトコルの通信確立処理の順番を入れ替えることでセッションが維持されるか否かを判定することができる。 The determination unit 124 executes the third determination process when it is determined in the second determination process that at least one of the communication by the management protocol and the communication by the control protocol is not established before the non-selection timeout time ends. You may. The third determination process is based on the communication establishment processing time corresponding to the non-selection protocol and the non-selection timeout time, and the communication by the non-selection protocol is performed according to the update of the control program before the non-selection timeout time ends. Is a process for determining whether or not is established. In the third determination process, the determination unit 124 may execute the fourth determination process when it is determined that the communication by the non-selection protocol is established before the non-selection timeout time ends. The fourth determination process is based on the sum of the management communication establishment processing time and the control communication establishment processing and the selection timeout time, and before the selection timeout time ends, communication by the management protocol and communication according to the update of the control program and This is a process for determining whether or not each communication by the control protocol is established. As a result, when it is determined that at least one of the communication by the management protocol and the control protocol is not established before the non-selection timeout time ends in the second determination process, the first and second determination processes are the management protocol and The third and fourth determination processes in which the order of the communication establishment processes of the control protocol is changed are executed. Therefore, when it is determined that the session is disconnected in the second determination process, it can be determined whether or not the session is maintained by changing the order of the communication establishment processes of the management protocol and the control protocol.

プログラム更新部125は、第4判定処理において、選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、無瞬断更新処理を実行してもよい。プログラム更新部125は、第3判定処理において、非選択タイムアウト時間が終了する前に、非選択プロトコルによる通信が確立されないと判定される場合に、無瞬断更新処理を実行しなくてもよい。これにより、非選択タイムアウト時間が終了する前に、非選択プロトコルによる通信が確立され、且つ、選択タイムアウト時間が終了する前に、管理プロトコル及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、無瞬断更新処理が実行される。つまり、管理プロトコル及び制御プロトコルによる各セッションが切断されないと判定される場合に、無瞬断更新処理を実行することができる。さらに、非選択タイムアウト時間が終了する前に、非選択プロトコルによる通信が確立されない場合に、無瞬断更新処理が実行されない。つまり、非選択プロトコルによるセッションが切断されると判定される場合に、無瞬断更新処理が実行されず、非選択プロトコルによるセッションの切断を回避することができる。 In the fourth determination process, the program update unit 125 performs a non-instantaneous update process when it is determined that the communication by the management protocol and the communication by the control protocol are established before the selection timeout time ends. You may do it. The program update unit 125 does not have to execute the non-intermittent update process when it is determined in the third determination process that communication by the non-selection protocol is not established before the non-selection timeout time ends. As a result, it is determined that the communication by the non-selection protocol is established before the non-selection timeout time ends, and the communication by the management protocol and the control protocol is established before the selection timeout time ends. In that case, the non-instantaneous update process is executed. That is, when it is determined that each session according to the management protocol and the control protocol is not disconnected, the non-instantaneous update process can be executed. Further, if communication by the non-selection protocol is not established before the non-selection timeout time ends, the non-intermittent update process is not executed. That is, when it is determined that the session by the non-selection protocol is disconnected, the non-intermittent update process is not executed, and the disconnection of the session by the non-selection protocol can be avoided.

通信確立部126は、第4判定処理において、選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、第2通信確立処理を実行し、第2通信確立処理が終了した後、第1通信確立処理を実行してもよい。これにより、第4判定処理において選択タイムアウト時間が終了する前に、管理プロトコルによる通信及び制御プロトコルによる通信のそれぞれが確立されると判定される場合に、非選択プロトコルに係る第2通信管理処理、及び選択プロトコルに係る第1通信管理処理が順番に実行される。よって、非選択プロトコル及び選択プロトコルによる各セッションの切断を回避することができる。 The communication establishment unit 126 executes the second communication establishment process when it is determined in the fourth determination process that each of the communication by the management protocol and the communication by the control protocol is established before the selection timeout time ends. Then, after the second communication establishment process is completed, the first communication establishment process may be executed. As a result, when it is determined that the communication by the management protocol and the communication by the control protocol are established before the selection timeout time ends in the fourth determination process, the second communication management process related to the non-selection protocol, And the first communication management process related to the selected protocol is executed in order. Therefore, it is possible to avoid disconnection of each session by the non-selection protocol and the selection protocol.

時間算出部122は、第1通信プロトコルによる通信を確立するための第1通信確立処理時間と、第1通信プロトコルとは異なる第2通信プロトコルによる通信を確立するための第2通信確立処理時間とのそれぞれを算出してもよい。判定部124は、第1判定処理と、第2判定処理とを実行してもよい。第1判定処理は、時間算出部122によって算出される第1通信確立処理時間と、第1プロトコルによって定められる第1タイムアウト時間とに基づいて、第1タイムアウト時間が終了する前に、制御プログラムの更新に応じて第1プロトコルによる通信が確立されるか否かを判定する処理である。第2判定処理は、時間算出部122によって算出される第1通信確立処理時間及び第2通信確立処理時間の和と、第2プロトコルによって定められる第2タイムアウト時間とに基づいて、第2タイムアウト時間が終了する前に、制御プログラムの更新に応じて第1プロトコルによる通信及び第2プロトコルによる通信のそれぞれが確立されるか否かを判定する処理である。これにより、第1プロトコル及び第2プロトコルによるセッションの切断を回避することができる。 The time calculation unit 122 sets the first communication establishment processing time for establishing the communication by the first communication protocol and the second communication establishment processing time for establishing the communication by the second communication protocol different from the first communication protocol. Each of may be calculated. The determination unit 124 may execute the first determination process and the second determination process. The first determination process is based on the first communication establishment processing time calculated by the time calculation unit 122 and the first timeout time determined by the first protocol, and is performed by the control program before the end of the first timeout time. This is a process of determining whether or not communication by the first protocol is established according to the update. The second determination process is based on the sum of the first communication establishment processing time and the second communication establishment processing time calculated by the time calculation unit 122 and the second timeout time determined by the second protocol, and the second timeout time. Is a process of determining whether or not communication by the first protocol and communication by the second protocol are established according to the update of the control program before the end of. As a result, it is possible to avoid disconnection of the session by the first protocol and the second protocol.

[7.補記]
今回開示された実施の形態はすべての点で例示であって、制限的ではない。本発明の権利範囲は、上述の実施形態ではなく特許請求の範囲によって示され、特許請求の範囲と均等の意味及びその範囲内でのすべての変更が含まれる。
[7. Supplement]
The embodiments disclosed this time are exemplary in all respects and are not restrictive. The scope of rights of the present invention is indicated by the scope of claims rather than the above-described embodiment, and includes meaning equivalent to the scope of claims and all modifications within the scope thereof.

1 第1通信装置(親局装置)
2 第2通信装置(子局装置)
3 通信回線(光ファイバ)
5 上位網
6 下位網
7 保守装置
8 管理装置
9 通信回線
10 通信システム
11 上位側インタフェース部
12 制御部
13 受信処理部
14 送信処理部
15 対向側インタフェース部
16 バッファ
17 バッファ
18 通信処理部
19 通信インタフェース部
12a プロセッサ
12b 非一過性メモリ
12c 一過性メモリ
12d 入出力インタフェース
12e 制御プログラム
100 構成定義ファイル
121 入力部
122 時間算出部
123 選択部
124 判定部
125 プログラム更新部
126 通信確立部
127 順番決定部
1 First communication device (master station device)
2 Second communication device (slave station device)
3 Communication line (optical fiber)
5 Upper network 6 Lower network 7 Maintenance device 8 Management device 9 Communication line 10 Communication system 11 Upper interface unit 12 Control unit 13 Reception processing unit 14 Transmission processing unit 15 Opposite side interface unit 16 Buffer 17 Buffer 18 Communication processing unit 19 Communication interface Part 12a Processor 12b Non-transient memory 12c Transient memory 12d Input / output interface 12e Control program 100 Configuration definition file 121 Input part 122 Time calculation part 123 Selection part 124 Judgment part 125 Program update part 126 Communication establishment part 127 Order determination part

Claims (13)

対向装置に対して通信プロトコルによる通信が可能な通信装置であって、
前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出する時間算出部と、
前記時間算出部によって算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定する判定部と、
前記判定部によって前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記通信装置の再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するプログラム更新部と、
を備える、
通信装置。
A communication device that can communicate with the other device using a communication protocol.
A time calculation unit that calculates a communication establishment processing time for establishing communication by the communication protocol between the communication device and the opposite device, and a time calculation unit.
Based on the communication establishment processing time calculated by the time calculation unit and the timeout time determined by the communication protocol, the communication is performed according to the update of the control program of the communication device before the timeout time ends. A determination unit for determining whether or not communication by the communication protocol between the device and the opposite device is established, and a determination unit.
When it is determined by the determination unit that communication by the communication protocol is established before the timeout time ends, a non-instantaneous update process for updating the control program without restarting the communication device is performed. Program update part to be executed and
To prepare
Communication device.
前記時間算出部は、前記通信装置の保守及び管理に用いられる前記通信プロトコルである管理プロトコルによる通信を確立するための管理通信確立処理時間を算出し、
前記時間算出部は、前記通信装置による通信を制御するための前記通信プロトコルである制御プロトコルによる通信を確立するための制御通信確立処理時間を算出し、
前記判定部は、前記時間算出部によって算出される前記管理通信確立処理時間及び前記制御通信確立処理時と、前記タイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されるか否かを判定する、
請求項1に記載の通信装置。
The time calculation unit calculates a management communication establishment processing time for establishing communication by the management protocol, which is the communication protocol used for maintenance and management of the communication device.
The time calculation unit calculates the control communication establishment processing time for establishing the communication by the control protocol, which is the communication protocol for controlling the communication by the communication device.
Based on the management communication establishment processing time calculated by the time calculation unit, the control communication establishment processing time, and the timeout time, the determination unit updates the control program before the timeout time ends. It is determined whether or not each of the communication by the management protocol and the communication by the control protocol is established according to the above.
The communication device according to claim 1.
前記タイムアウト時間は、前記管理プロトコルによって定められる第1タイムアウト時間と、前記制御プロトコルによって定められる第2タイムアウト時間とのうちのいずれか一方である、
請求項2に記載の通信装置。
The timeout time is either a first timeout time defined by the management protocol or a second timeout time defined by the control protocol.
The communication device according to claim 2.
前記通信装置によって複数の前記管理プロトコルが用いられる場合、前記第1タイムアウト時間は、前記複数の管理プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間であり、
前記通信装置によって複数の前記制御プロトコルが用いられる場合、前記第2タイムアウト時間は、前記複数の制御プロトコルのそれぞれによって定められるタイムアウト時間のうちの最小のタイムアウト時間である、
請求項3に記載の通信装置。
When a plurality of the management protocols are used by the communication device, the first timeout time is the minimum timeout time among the timeout times defined by each of the plurality of management protocols.
When a plurality of the control protocols are used by the communication device, the second timeout time is the minimum timeout time among the timeout times defined by each of the plurality of control protocols.
The communication device according to claim 3.
前記管理プロトコル及び前記制御プロトコルのうちのいずれか一方を選択する選択部をさらに備え、
前記判定部は、
前記選択部によって選択される前記通信プロトコルである選択プロトコルに対応する前記通信確立処理時間と、前記第1及び第2タイムアウト時間のうち、前記選択プロトコルに対応する一方である選択タイムアウト時間とに基づいて、前記選択タイムアウト時間が終了する前に、前記選択プロトコルによる通信が確立されるか否かを判定する第1判定処理と、
前記管理通信確立処理時間及び前記制御通信確立処理時の和と、前記第1及び第2タイムアウト時間のうちの他方である非選択タイムアウト時間とに基づいて、前記非選択タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されるか否かを判定する第2判定処理と、
を実行する、
請求項2から請求項4のいずれか1項に記載の通信装置。
A selection unit for selecting either the management protocol or the control protocol is further provided.
The determination unit
Based on the communication establishment processing time corresponding to the selection protocol, which is the communication protocol selected by the selection unit, and the selection timeout time corresponding to the selection protocol among the first and second timeout times. The first determination process for determining whether or not communication by the selection protocol is established before the selection timeout time ends.
Before the end of the non-selection timeout time, based on the sum of the management communication establishment processing time and the control communication establishment processing and the non-selection timeout time which is the other of the first and second timeout times. A second determination process for determining whether or not communication according to the management protocol and communication according to the control protocol are established in response to the update of the control program.
To execute,
The communication device according to any one of claims 2 to 4.
前記判定部は、前記第1判定処理において、前記選択タイムアウト時間が終了する前に、前記選択プロトコルによる通信が確立されると判定される場合に、前記第2判定処理を実行し、
前記プログラム更新部は、前記第2判定処理において、前記非選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記無瞬断更新処理を実行し、
前記プログラム更新部は、前記第1判定処理において、前記選択タイムアウト時間が終了する前に、前記選択プロトコルによる通信が確立されないと判定される場合に、前記無瞬断更新処理を実行しない、
請求項5に記載の通信装置。
In the first determination process, the determination unit executes the second determination process when it is determined that communication by the selection protocol is established before the selection timeout time ends.
When it is determined in the second determination process that communication according to the management protocol and communication according to the control protocol are established before the non-selection timeout time ends, the program update unit does not. Executes the momentary update process and
The program update unit does not execute the non-instantaneous update process when it is determined in the first determination process that communication by the selection protocol is not established before the selection timeout time ends.
The communication device according to claim 5.
前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理を実行する通信確立部をさらに備え、
前記通信確立部は、前記第2判定処理において、前記非選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記選択プロトコルによる第1通信確立処理を実行し、前記第1通信確立処理が終了した後、前記管理プロトコル及び前記制御プロトコルのうち前記選択部によって選択されない前記通信プロトコルである非選択プロトコルによる第2通信確立処理を実行する、
請求項6に記載の通信装置。
A communication establishment unit for executing a communication establishment process for establishing communication by the communication protocol between the communication device and the opposite device is further provided.
When it is determined in the second determination process that communication according to the management protocol and communication according to the control protocol are established before the non-selection timeout time ends, the communication establishment unit selects the communication. After the first communication establishment process by the protocol is executed and the first communication establishment process is completed, the second communication establishment by the non-selection protocol which is the communication protocol which is not selected by the selection unit among the management protocol and the control protocol. Execute the process,
The communication device according to claim 6.
前記判定部は、前記第2判定処理において、前記非選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信の少なくとも一方が確立されないと判定される場合に、前記非選択プロトコルに対応する前記通信確立処理時間と、前記非選択タイムアウト時間とに基づいて、前記非選択タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記非選択プロトコルによる通信が確立されるか否かを判定する第3判定処理を実行し、
前記判定部は、前記第3判定処理において、前記非選択タイムアウト時間が終了する前に、前記非選択プロトコルによる通信が確立されると判定される場合に、前記管理通信確立処理時間及び前記制御通信確立処理時の和と、前記選択タイムアウト時間とに基づいて、前記選択タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されるか否かを判定する第4判定処理を実行する、
請求項7に記載の通信装置。
When it is determined in the second determination process that at least one of the communication by the management protocol and the communication by the control protocol is not established before the non-selection timeout time ends, the determination unit performs the non-selection. Based on the communication establishment processing time corresponding to the protocol and the non-selection timeout time, communication by the non-selection protocol is established according to the update of the control program before the non-selection timeout time ends. Execute the third judgment process to determine whether or not,
When it is determined in the third determination process that communication by the non-selection protocol is established before the non-selection timeout time ends, the determination unit determines the management communication establishment processing time and the control communication. Based on the sum at the time of the establishment process and the selection timeout time, each of the communication by the management protocol and the communication by the control protocol is established according to the update of the control program before the selection timeout time ends. Executes the fourth determination process for determining whether or not the protocol
The communication device according to claim 7.
前記プログラム更新部は、前記第4判定処理において、前記選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記無瞬断更新処理を実行し、
前記プログラム更新部は、前記第3判定処理において、前記非選択タイムアウト時間が終了する前に、前記非選択プロトコルによる通信が確立されないと判定される場合に、前記無瞬断更新処理を実行しない、
請求項8に記載の通信装置。
When it is determined in the fourth determination process that communication according to the management protocol and communication according to the control protocol are established before the end of the selection timeout time, the program update unit performs the momentless operation. Execute the disconnect update process and
The program update unit does not execute the non-intermittent update process when it is determined in the third determination process that communication by the non-selection protocol is not established before the non-selection timeout time ends.
The communication device according to claim 8.
前記通信確立部は、前記第4判定処理において、前記選択タイムアウト時間が終了する前に、前記管理プロトコルによる通信及び前記制御プロトコルによる通信のそれぞれが確立されると判定される場合に、前記第2通信確立処理を実行し、前記第2通信確立処理が終了した後、前記第1通信確立処理を実行する、
請求項9に記載の通信装置。
When the communication establishment unit determines in the fourth determination process that communication according to the management protocol and communication according to the control protocol are established before the end of the selection timeout time, the second determination unit. The communication establishment process is executed, and after the second communication establishment process is completed, the first communication establishment process is executed.
The communication device according to claim 9.
前記時間算出部は、第1通信プロトコルによる通信を確立するための第1通信確立処理時間と、前記第1通信プロトコルとは異なる第2通信プロトコルによる通信を確立するための第2通信確立処理時間とのそれぞれを算出し、
前記判定部は、
前記時間算出部によって算出される前記第1通信確立処理時間と、前記第1プロトコルによって定められる第1タイムアウト時間とに基づいて、前記第1タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記第1プロトコルによる通信が確立されるか否かを判定する第1判定処理と、
前記時間算出部によって算出される前記第1通信確立処理時間及び前記第2通信確立処理時間の和と、前記第2プロトコルによって定められる第2タイムアウト時間とに基づいて、前記第2タイムアウト時間が終了する前に、前記制御プログラムの更新に応じて前記第1プロトコルによる通信及び前記第2プロトコルによる通信のそれぞれが確立されるか否かを判定する第2判定処理と、
を実行する、
請求項1に記載の通信装置。
The time calculation unit has a first communication establishment processing time for establishing communication by the first communication protocol and a second communication establishment processing time for establishing communication by a second communication protocol different from the first communication protocol. Calculate each of
The determination unit
Based on the first communication establishment processing time calculated by the time calculation unit and the first timeout time defined by the first protocol, the control program is updated before the first timeout time ends. The first determination process for determining whether or not communication by the first protocol is established accordingly, and
The second timeout time ends based on the sum of the first communication establishment processing time and the second communication establishment processing time calculated by the time calculation unit and the second timeout time defined by the second protocol. The second determination process for determining whether or not the communication according to the first protocol and the communication according to the second protocol are established according to the update of the control program, and the second determination process.
To execute,
The communication device according to claim 1.
通信装置が対向装置に対して通信プロトコルによる通信を行う通信方法であって、
前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出するステップと、
算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定するステップと、
前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記通信装置の再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するステップと、
を含む、
通信方法。
A communication method in which a communication device communicates with an opposite device using a communication protocol.
A step of calculating a communication establishment processing time for establishing communication by the communication protocol between the communication device and the opposite device, and
Based on the calculated communication establishment processing time and the timeout time determined by the communication protocol, the communication device and the opposite device are updated according to the update of the control program of the communication device before the timeout time ends. A step of determining whether or not communication by the communication protocol with the user is established, and
When it is determined that the communication by the communication protocol is established before the time-out time ends, the step of executing the non-instantaneous update process for updating the control program without restarting the communication device. ,
including,
Communication method.
コンピュータを、対向装置に対して通信プロトコルによる通信を行う通信装置として機能させるためのコンピュータプログラムであって、
前記コンピュータに、
前記通信装置と前記対向装置との間での前記通信プロトコルによる通信を確立するための通信確立処理時間を算出するステップと、
算出される前記通信確立処理時間と、前記通信プロトコルによって定められるタイムアウト時間とに基づいて、前記タイムアウト時間が終了する前に、前記通信装置の制御プログラムの更新に応じて前記通信装置と前記対向装置との間での前記通信プロトコルによる通信が確立されるか否かを判定するステップと、
前記タイムアウト時間が終了する前に前記通信プロトコルによる通信が確立されると判定される場合に、前記コンピュータの再起動を伴わずに前記制御プログラムを更新する無瞬断更新処理を実行するステップと、
を実行させるための、
コンピュータプログラム。
A computer program for making a computer function as a communication device that communicates with an opposite device by a communication protocol.
On the computer
A step of calculating a communication establishment processing time for establishing communication by the communication protocol between the communication device and the opposite device, and
Based on the calculated communication establishment processing time and the timeout time determined by the communication protocol, the communication device and the opposite device are updated according to the update of the control program of the communication device before the timeout time ends. A step of determining whether or not communication by the communication protocol with the user is established, and
When it is determined that the communication by the communication protocol is established before the timeout time ends, the step of executing the non-instantaneous update process for updating the control program without restarting the computer, and
To execute,
Computer program.
JP2019103881A 2019-06-03 2019-06-03 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM Active JP7188280B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019103881A JP7188280B2 (en) 2019-06-03 2019-06-03 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019103881A JP7188280B2 (en) 2019-06-03 2019-06-03 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM

Publications (2)

Publication Number Publication Date
JP2020198554A true JP2020198554A (en) 2020-12-10
JP7188280B2 JP7188280B2 (en) 2022-12-13

Family

ID=73649369

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019103881A Active JP7188280B2 (en) 2019-06-03 2019-06-03 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM

Country Status (1)

Country Link
JP (1) JP7188280B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030100297A1 (en) * 2001-11-27 2003-05-29 Riordan Kenneth B. Method of software configuration assurance in programmable terminal devices
JP2010141779A (en) * 2008-12-15 2010-06-24 Nec Corp Data transfer apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030100297A1 (en) * 2001-11-27 2003-05-29 Riordan Kenneth B. Method of software configuration assurance in programmable terminal devices
JP2010141779A (en) * 2008-12-15 2010-06-24 Nec Corp Data transfer apparatus

Also Published As

Publication number Publication date
JP7188280B2 (en) 2022-12-13

Similar Documents

Publication Publication Date Title
US11212179B2 (en) Automatic configuration of a network switch in a multi-chassis link aggregation group
US9547828B2 (en) Hierarchical hybrid batch-incremental learning
US10516599B1 (en) Link priority for loop-protect
US8811190B2 (en) Maximum transmission unit (MTU) size discovery mechanism and method for data-link layers
KR20180023009A (en) System and method for handling link loss in a network
CN112491700B (en) Network path adjustment method, system, device, electronic equipment and storage medium
US9288075B2 (en) Method and system for auto-configuration, and network node
CN106452909B (en) A kind of route issuing method and Router Reflector equipment
US20120275316A1 (en) Failure Detection Method and Device for FCoE Virtual Link
CN105450779A (en) Method for achieving connection between one household electric appliance and multiple servers
US9609590B2 (en) Eco-friendly power over ethernet
WO2019041371A1 (en) Internet of things number-of-connections-based router switching method and device
KR20150045639A (en) Method and its apparatus for selectioning network in beamforming system
JP5576421B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
KR20160131532A (en) Adaptive Bidirectional Forwarding Detection protocol and equipment for maximizing service availability in network system
JP7188280B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
WO2016065925A1 (en) Controller replacing method and device
US10826715B2 (en) Simple device replacement in a Profinet IO conformance class A (CCA) network through ubiquitous computing paradigm and combining a token ring approach with a ubicomp paradigm to prevent real-time performance drop
EP3258654B1 (en) Method and system for reducing pim protocol dr change
CN108476245B (en) Method for establishing port connection and port chip
US10298454B2 (en) Communication path switching apparatus, method for controlling communication path switching apparatus, and computer program product
CN107493219B (en) Message sending method and message sending device
CN105634786B (en) link keep-alive method and device
US20160057063A1 (en) Transfer device, control device and communication method
JP2018019172A (en) Control device, communication device and setting method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220909

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220927

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221007

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: 20221101

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221114

R150 Certificate of patent or registration of utility model

Ref document number: 7188280

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150