JP2020052453A - Communication apparatus and setting method of communication apparatus - Google Patents
Communication apparatus and setting method of communication apparatus Download PDFInfo
- Publication number
- JP2020052453A JP2020052453A JP2018177929A JP2018177929A JP2020052453A JP 2020052453 A JP2020052453 A JP 2020052453A JP 2018177929 A JP2018177929 A JP 2018177929A JP 2018177929 A JP2018177929 A JP 2018177929A JP 2020052453 A JP2020052453 A JP 2020052453A
- Authority
- JP
- Japan
- Prior art keywords
- setting information
- type
- program module
- program
- update
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
Description
本発明は、通信装置及び通信装置の設定方法に関する。 The present invention relates to a communication device and a communication device setting method.
特許文献1には、ネットワーク装置の構成情報として、現在稼動している構成情報(running−config)と、再起動時に有効となる構成情報(startup−config)とを記憶するネットワーク装置が開示されている。
通信装置の制御プログラムを更新する場合、通信装置は、自装置を再起動して更新後の制御プログラム全体を一過性メモリであるRAMに展開し、設定情報(特許文献1におけるstartup−config)をCPUが読み出して更新後の制御プログラム全体の構成を設定する。通信装置の再起動が行われる間、通信装置の機能は停止する。しかし、高い信頼性を要求される通信装置では、制御プログラムを更新する間も通信装置の機能を停止させないことが求められる。 When updating the control program of the communication device, the communication device restarts itself, expands the entire updated control program in the RAM that is a temporary memory, and sets the setting information (startup-config in Patent Document 1). Is read by the CPU and the configuration of the entire control program after the update is set. While the communication device is restarted, the function of the communication device stops. However, a communication device that requires high reliability is required not to stop the function of the communication device while updating the control program.
本開示は、以下の発明を含む。但し、本発明は、特許請求の範囲によって定められるものである。 The present disclosure includes the following inventions. However, the present invention is defined by the appended claims.
本発明の一態様に係る通信装置は、通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備え、前記プロセッサは、自装置を稼働させたまま前記制御プログラムを更新する場合に、前記稼働設定情報の一部又は全部を前記起動設定情報に複写する処理と、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定する処理と、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する処理と、を実行する。 The communication device according to one aspect of the present invention provides activation setting information, which is setting information referred to during a startup process by a first type of program module and a second type of program module included in a control program for communication. A non-transitory memory for storing operation setting information, which is setting information referred to during operation of the first type of program module and the second type of program module, A processor, when the processor updates the control program while operating its own device, a process of copying a part or all of the operation setting information to the activation setting information; and Processing for setting an updated first type of program module based on the first and second program modules, and the starting setting in which a part or all of the operation setting information is copied. Based on the information, a process of setting an updated second type of program modules, the execution.
本発明の一態様に係る通信装置の設定方法は、通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備える通信装置の設定方法であって、前記通信装置を稼働させたまま前記制御プログラムを更新する場合に、前記プロセッサが、前記稼働設定情報の一部又は全部を前記起動設定情報に複写し、前記プロセッサが、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定し、前記プロセッサが、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する。 A setting method of a communication device according to one embodiment of the present invention is setting information that a first type program module and a second type program module included in a control program for communication refer to during a startup process. A non-transitory memory for storing startup setting information, and a transient memory for storing operation setting information which is setting information referred to during operation of the first type of program module and the second type of program module. A method of setting a communication device including a memory and a processor, wherein the processor activates part or all of the operation setting information when updating the control program while operating the communication device. The processor copies the first-type program module based on the operation setting information, and sets the updated first-type program module based on the operation setting information. Processor, based on the activation setting information partially or wholly replicated in the operation setting information, to set the updated second type of program modules.
本発明は、上記のような特徴的な処理部を備える通信装置として実現することができるだけでなく、かかる特徴的な処理をステップとする通信装置の設定方法として実現したり、かかるステップをコンピュータに実行させるためのコンピュータプログラムとして実現したりすることができる。また、通信装置の一部又は全部を半導体集積回路として実現したり、通信装置を含む通信システムとして実現したりすることができる。 The present invention can be realized not only as a communication device having the characteristic processing unit as described above, but also as a setting method of a communication device having such characteristic processing as a step, or such a step can be realized by a computer. It can be realized as a computer program to be executed. Further, 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 invention, the control program can be updated without stopping the functions of the device.
<本発明の実施形態の概要>
以下、本発明の実施形態の概要を列記して説明する。
(1) 本実施形態に係る通信装置は、通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備え、前記プロセッサは、自装置を稼働させたまま前記制御プログラムを更新する場合に、前記稼働設定情報の一部又は全部を前記起動設定情報に複写する処理と、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定する処理と、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する処理と、を実行する。これにより、制御プログラムが更新される場合に、通信装置を停止させることなく、第1の種類のプログラムモジュール及び第2の種類のプログラムモジュールのそれぞれを設定することができる。また、起動設定情報に稼働設定情報の一部又は全部が複写されるため、第1の種類及び第2の種類のそれぞれのプログラムモジュールに用いられる設定情報において不整合の発生を抑制することができる。なお、ここでいう「プログラムモジュール」とは、実行可能形式の部分的プログラムであり、オブジェクトモジュールである。また、「プログラム」とは、互いに連結された複数のプログラムモジュールの集合体であり、オブジェクトプログラムである。
<Overview of Embodiment of the Present Invention>
Hereinafter, an outline of an embodiment of the present invention will be listed and described.
(1) The communication device according to the present embodiment has a startup setting, which is setting information that the first type of program module and the second type of program module included in the control program for communication refer to during startup processing. A non-transitory memory for storing information, a transient memory for storing operation setting information that is setting information referred to during operation of the first type of program module and the second type of program module; And a processor, wherein the processor is configured to, when updating the control program while operating the own device, copy a part or all of the operation setting information to the activation setting information; A process of setting an updated first-type program module based on information; and a start-up in which part or all of the operation setting information is copied Setting the updated second type of program module based on the setting information. Accordingly, when the control program is updated, each of the first type of program module and the second type of program module can be set without stopping the communication device. Further, since part or all of the operation setting information is copied to the start setting information, it is possible to suppress the occurrence of inconsistency in the setting information used for each of the first type and the second type of program module. . Here, the “program module” is a partial program in an executable format, and is an object module. The “program” is an aggregate of a plurality of program modules connected to each other, and is an object program.
(2) また、本実施形態に係る通信装置において、前記プロセッサは、前記第1の種類のプログラムモジュールを更新する場合、更新前の前記第1の種類のプログラムモジュールを停止する前に、更新後の前記第1の種類のプログラムモジュールを起動する処理と、前記稼働設定情報に基づいて、前記更新後の第1の種類のプログラムモジュールを設定する処理と、前記更新前の第1の種類のプログラムモジュールを停止する処理と、を実行し、前記プロセッサは、前記第2の種類のプログラムモジュールを更新する場合、更新前の前記第2の種類のプログラムモジュールを停止する処理と、前記更新前の第2の種類のプログラムモジュールを停止した後に、更新後の前記第2の種類のプログラムモジュールを起動する処理と、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、前記更新後の第2の種類のプログラムモジュールを設定する処理と、を実行してもよい。これにより、第1の種類のプログラムモジュールは停止することなく更新される。このため、装置の機能を停止させずに制御プログラムの更新を行うことができる。 (2) In the communication device according to the present embodiment, when the processor updates the first type of program module, the processor may update the first type of program module before stopping the first type of program module before updating the first type of program module. Activating the first type of program module, setting the updated first type of program module based on the operation setting information, and executing the first type of program before the update Executing a process of stopping the module; and the processor, when updating the second type of program module, stopping the second type of program module before the update; A process of activating the second type of program module after updating after stopping the two types of program modules; On the basis of the start setting information partially or wholly copied information, and processing for setting a second type of program module after the update, it may be implemented. As a result, the first type of program module is updated without stopping. Therefore, the control program can be updated without stopping the functions of the device.
(3) また、本実施形態に係る通信装置において、前記第1の種類のプログラムモジュールは、前記一過性メモリに記憶された設定情報により設定されることが可能なプログラムモジュールであり、前記第2の種類のプログラムモジュールは、前記非一過性メモリに記憶された設定情報により設定されるプログラムモジュールであってもよい。これにより、第1の種類の更新モジュールを、一過性メモリに記憶された稼働設定情報に基づき設定することができ、第2の種類の更新モジュールを、非一過性メモリに記憶された起動設定情報に基づき設定することができる。 (3) In the communication device according to the present embodiment, the first type of program module is a program module that can be set by setting information stored in the temporary memory. The two types of program modules may be program modules set by setting information stored in the non-transitory memory. Thereby, the first type of update module can be set based on the operation setting information stored in the temporary memory, and the second type of update module can be set in the activation type stored in the non-transitory memory. It can be set based on the setting information.
(4) また、本実施形態に係る通信装置において、前記第1の種類のプログラムモジュールは、通信の制御を実行するプログラムモジュールであり、前記第2の種類のプログラムモジュールは、通信の制御以外の処理を実行するプログラムモジュールであってもよい。これにより、通信の制御を停止させることなく、制御プログラムを更新することができる。 (4) In the communication device according to the present embodiment, the first type of program module is a program module that executes communication control, and the second type of program module is a program module other than the communication control. It may be a program module that executes processing. Thus, the control program can be updated without stopping communication control.
(5) また、本実施形態に係る通信装置において、前記複写する処理は、前記稼働設定情報のうち前記起動設定情報とは異なる情報を、前記起動設定情報に複写する処理であってもよい。これにより、稼働設定情報の全てを一括して起動設定情報に複写しなくても、稼働設定情報と起動設定情報とを整合させることができる。 (5) In the communication device according to the present embodiment, the process of copying may be a process of copying information different from the activation setting information in the operation setting information to the activation setting information. Accordingly, the operation setting information and the start setting information can be matched without copying all of the operation setting information to the start setting information collectively.
(6) また、本実施形態に係る通信装置において、前記プロセッサは、所定の更新条件が成立した場合に、前記複写する処理を実行してもよい。これにより、更新条件の成立により、制御プログラムの更新を開始することができる。 (6) In the communication device according to the present embodiment, the processor may execute the copying process when a predetermined update condition is satisfied. Thus, the update of the control program can be started when the update condition is satisfied.
(7) また、本実施形態に係る通信装置において、前記更新条件は、前記稼働設定情報と前記起動設定情報との差分が所定量以上となること、前記稼働設定情報が変更されること、制御プログラムの更新指示が与えられること、予め決められた更新時刻に到達すること、及び、前記稼働設定情報に含まれる複数の分類に属する情報のうち特定の分類に属する情報が変更されること、の少なくとも1つであってもよい。これにより、様々な条件を更新条件に設定することができる。 (7) In the communication device according to the present embodiment, the update condition is that a difference between the operation setting information and the activation setting information is equal to or more than a predetermined amount, that the operation setting information is changed, That a program update instruction is given, that a predetermined update time is reached, and that information belonging to a specific class among information belonging to a plurality of classes included in the operation setting information is changed. There may be at least one. Thereby, various conditions can be set as update conditions.
(8) また、本実施形態に係る通信装置において、前記プロセッサは、前記制御プログラムが更新される間に異常を検出した場合、稼働中の前記プログラムモジュールの全てを停止した後、更新前の前記プログラムモジュールのそれぞれを起動し、起動された前記更新前のプログラムモジュールを前記起動設定情報に基づいて設定する処理を実行してもよい。これにより、通信装置に異常が発生した場合、更新前の制御プログラムに戻すことで、異常から復帰することができる。 (8) Further, in the communication device according to the present embodiment, when the processor detects an abnormality while the control program is updated, the processor stops all of the operating program modules and then stops updating the control program. The program module may be activated to execute a process of setting the activated program module before update based on the activation setting information. Thus, when an abnormality occurs in the communication device, the control program can be restored from the abnormality by returning to the control program before the update.
(9) また、本実施形態に係る通信装置において、前記異常は、通信エラーを含んでもよい。制御プログラムの更新が適切に行われなかった場合、正常な通信が行われず、通信エラーが発生する可能性がある。上記構成とすることにより、通信エラーが生じた場合に、更新前の制御プログラムに戻すことで、通信エラーを解消できる可能性がある。 (9) In the communication device according to the present embodiment, the abnormality may include a communication error. If the control program is not properly updated, normal communication may not be performed and a communication error may occur. With the above configuration, when a communication error occurs, there is a possibility that the communication error can be resolved by returning to the control program before the update.
(10) 本実施形態に係る通信装置の設定方法は、通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備える通信装置の設定方法であって、前記通信装置を稼働させたまま前記制御プログラムを更新する場合に、前記プロセッサが、前記稼働設定情報の一部又は全部を前記起動設定情報に複写し、前記プロセッサが、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定し、前記プロセッサが、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する。これにより、制御プログラムが更新される場合に、通信装置を停止させることなく、第1の種類のプログラムモジュール及び第2の種類のプログラムモジュールのそれぞれを設定することができる。また、起動設定情報に稼働設定情報の一部又は全部が複写されるため、第1の種類及び第2の種類のそれぞれのプログラムモジュールに用いられる設定情報において不整合の発生を抑制することができる。 (10) The setting method of the communication device according to the present embodiment uses the setting information that the first type program module and the second type program module included in the communication control program refer to during the start-up process. A non-transitory memory that stores certain startup setting information, and a temporary storage that stores operation setting information that is setting information referred to during operation of the first type program module and the second type program module. Memory, and a processor, a setting method of a communication device comprising: when updating the control program while operating the communication device, the processor, the processor, the part or all of the operation setting information, Copying into startup setting information, wherein the processor sets the updated first type program module based on the operation setting information; Serial processor, on the basis of the start setting information partially or wholly replicated in the operation setting information, to set the updated second type of program modules. Accordingly, when the control program is updated, each of the first type of program module and the second type of program module can be set without stopping the communication device. Further, since part or all of the operation setting information is copied to the start setting information, it is possible to suppress the occurrence of inconsistency in the setting information used for each of the first type and the second type of program module. .
<本発明の実施形態の詳細>
以下、図面を参照しつつ、本発明の実施形態の詳細を説明する。なお、以下に記載する実施形態の少なくとも一部を任意に組み合わせてもよい。
<Details of Embodiment of the Present Invention>
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that at least a part of the embodiments described below may be arbitrarily combined.
以下の実施形態では、通信装置を、光通信用の局側装置とした例について説明する。しかし、通信装置は光通信装置に限定されない。本実施形態に係る通信装置は、無線通信装置、有線通信装置等、光通信装置以外の通信装置であってもよい。 In the following embodiments, an example will be described in which the communication device is a station device for optical communication. However, the communication device is not limited to the optical communication device. The communication device according to the present embodiment may be a communication device other than the optical communication device, such as a wireless communication device or a wired communication device.
[1.通信システムの構成]
図1は、本実施形態に係る通信システムの全体構成の一例を示す図である。図1に示すように、通信システム10は、光アクセスシステムであり、局側装置(OLT: Optical Network Unit)11と、複数の宅側装置(ONU: Optical Line Terminal)12と、PON回線13とを備える。
[1. Configuration of Communication System]
FIG. 1 is a diagram illustrating an example of an overall configuration of a communication system according to the present embodiment. As shown in FIG. 1, a
OLT11のL2スイッチ23(図2参照)には、インターネット等の上位ネットワーク50が接続される。
An
ONU12のUNIポート(図示せず)には、イーサネット(登録商標)通信が可能なユーザ通信装置を接続可能である。ONU12に接続されるユーザ通信装置の数及び種類は特に限定されない。例えば、ユーザ通信装置はパーソナルコンピュータ等の端末であっても、ルータ又はゲートウェイ等の中継装置であってもよい。つまり、ONU12には、中継装置を介してネットワークが接続されてもよい。
A user communication device capable of Ethernet (registered trademark) communication can be connected to a UNI port (not shown) of the
PON回線13は、光スプリッタ14と光ファイバ15,16とを備える光通信回線である。PON回線13は、1つの幹線光ファイバ15と複数の支線光ファイバ16とを含む。光スプリッタ14には、各光ファイバ15,16が接続される。OLT11から送信された光信号は、PON回線13の幹線光ファイバ15を通って光スプリッタ14によって分岐される。分岐した光信号は、支線光ファイバ16を通って各ONU12に伝送される。
The
各ONU12から送信された光信号は、それぞれ支線光ファイバ16を通って光スプリッタ14によって集束される。集束された光信号は、幹線光ファイバ15を通ってOLT11に伝送される。PON回線13に用いられる光スプリッタ14は、外部からの電源供給を必要とせず、入力された光信号から受動的に光信号を分岐又は多重する。
The optical signal transmitted from each
OLT11とONU12との接続確立後は、ユーザ通信装置がONU12及びOLT11を介して上位ネットワーク50へアクセスすることが可能となる。支線光ファイバ16に伝送される上り方向の光信号は、光スプリッタ14において合流する。従って、同じ波長の光信号が合流後に衝突しないための多重化が必要である。通信システム10では、MPCPに則った時分割多重化が行われる。具体的には、OLT11は、各ONU12から送信された制御フレーム(レポート)に基づいて、ONU12の内部に蓄積されたデータの上り方向の送信開始時刻及び送信許可量を演算する。
After the connection between the OLT 11 and the
次に、OLT11は、指示信号を挿入した制御フレーム(グラント)を、PON回線13を介してそれぞれのONU12に送信する。各ONU12は、グラントにより指定された時刻に、自己のバッファ内のデータの長さをレポートでOLT11に通知する。各ONU12は、指示信号が挿入されたグラントをOLT11から受信する。その指示信号に基づいて、各ONU12は、自己のバッファ内のデータをレポートとともにOLT11に送信する。
Next, the OLT 11 transmits the control frame (grant) in which the instruction signal is inserted to each
[2.OLTの内部構成]
図2は、OLT11の内部構成の一例を示すブロック図である。
図2に示すように、OLT11は、光トランシーバ21と、PON処理部22と、L2スイッチ23と、制御部24と、通信インタフェース26とを備える。
[2. Internal configuration of OLT]
FIG. 2 is a block diagram illustrating an example of the internal configuration of the OLT 11.
As shown in FIG. 2, the OLT 11 includes an
光トランシーバ21は、光信号を送受信する回路を含む光デバイス(例えば、プラガブル光トランシーバ)よりなる。光トランシーバ21は、幹線光ファイバ15(図1参照)に光学的に接続され、PON処理部22に電気的に接続される。
光トランシーバ21は、光信号と電気信号を相互に変換する。すなわち、光トランシーバ21は、ONU12からの光信号よりなる上り信号を電気信号に変換する。光トランシーバ21は、PON処理部22のからの電気信号よりなる下り信号を光信号に変換する。
The
The
PON処理部22は、PONの通信規格に則った所定の通信処理などを実行する集積回路よりなる。
PON処理部22は、上り信号がONU12からの制御フレーム(レポート)である場合、当該ONU12についての上り方向の送信開始時刻及び送信許可量を決定し、制御フレーム(グラント)を当該ONU12に通知する。
The
When the upstream signal is a control frame (report) from the
PON処理部22は、上り信号に含まれるフレームが上位ネットワーク50へのデータフレームである場合、そのフレームをL2スイッチ23に送信する。
PON処理部22は、下り信号に含まれるフレームがONU12へのデータフレームである場合、そのフレームを光トランシーバ21に送信させる。
When the frame included in the upstream signal is a data frame to the
When the frame included in the downstream signal is a data frame to the
L2スイッチ23は、受信したL2レイヤのフレームの宛先に応じて送信ポートを決定する集積回路よりなる。
L2スイッチ23は、上位ネットワーク50からの下り信号に含まれるフレームがONU12宛てである場合、そのフレームを自装置のPON処理部22に送信する。
The
When a frame included in a downstream signal from the
L2スイッチ23は、PON処理部22からの上り信号に含まれるフレームが上位ネットワーク50へのデータフレームである場合、そのフレームを上位ネットワーク50に送信する。
L2スイッチ23は、PON処理部22からの上り信号に含まれるフレームが制御部24宛ての管理フレームである場合、そのフレームを制御部24に送信する。
When the frame included in the upstream signal from the
When the frame included in the uplink signal from the
制御部24は、L2スイッチ23の専用ポートに接続されており、PON回線13を用いてONU12の制御部と通信することができる。制御部24は、パーソナルコンピュータ(PC)等よりなる外部装置25と通信可能に接続される。
The
制御部24は、ハードウェアプロセッサであるCPU241と、フラッシュメモリ、ハードディスク等の非一過性メモリ242と、RAMである一過性メモリ243とを備える。
The
非一過性メモリ242には、制御プログラム300が記憶(インストール)される。制御プログラム300は、L2スイッチ23を制御することで、OLT11による通信を制御するためのプログラムである。制御プログラム300は、N個のプログラムモジュール(第1モジュール300_1、第2モジュール300_2、第3モジュール300_3、…、第Nモジュール300_N)を有する。
The
非一過性メモリ242には、起動設定情報350が記憶される。起動設定情報350は、制御プログラム300の起動処理において読み出され、制御プログラム300の設定に用いられる設定情報である。
The
CPU241は、制御プログラム300を実行する。制御プログラム300の起動時には、第1モジュール300_1、第2モジュール300_2、第3モジュール300_3、…、第Nモジュール300_Nが非一過性メモリ242から読み出され、一過性メモリ243に展開される。つまり、制御プログラム300は、一過性メモリ243にロードされ、展開された制御プログラム400として一過性メモリ243に記憶される。制御プログラム400には、N個のプログラムモジュール(第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_N)が含まれる。
The
一過性メモリ243には、稼働設定情報450が記憶される。稼働設定情報450は、稼働中の制御プログラム400において読み出され、制御プログラム400の設定に用いられる設定情報である。
The
非一過性メモリ242には、制御プログラムの更新及び各プログラムモジュールの設定を行うための更新設定プログラム370が記憶される。OLT11は、コンピュータを備えて構成され、OLT11の制御プログラムの更新及び各プログラムモジュールの設定機能は、前記コンピュータの記憶装置に記憶されたコンピュータプログラムである更新設定プログラム370がCPU241によって実行されることで発揮される。更新設定プログラム370は、CD−ROMなどの記録媒体に記憶させることができる。CPU241は、更新設定プログラム370を実行することができる。CPU241が更新設定プログラム370を実行することにより、OLT11は後述するようなプログラム更新処理及び異常監視処理を実行することができる。
The
[3.制御プログラムの更新]
本実施形態に係るOLT11における制御プログラムの更新について説明する。
[3. Update of control program]
Update of the control program in the OLT 11 according to the present embodiment will be described.
図3は、制御プログラム400の起動直後における非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。図3の例では、第1モジュール400_1用のパラメータP1の初期値がSV1であり、第2モジュール400_2用のパラメータP2の初期値がSV2であり、第3モジュール400_3用のパラメータP3の初期値がSV3である。起動設定情報350には、P1=SV1,P2=SV2,P3=SV3,…が格納される。第1モジュール400_1,第2モジュール400_2,第3モジュール400_3,…の起動処理において、CPU241は起動設定情報350を読み出し、P1=SV1,P2=SV2,P3=SV3,…に設定する。各モジュール400_1、400_2、400_3、…の設定が行われた後、起動設定情報350が稼働設定情報450に複写される。このため、制御プログラム400の起動直後における稼働設定情報450は、起動設定情報350と一致する。
FIG. 3 is a schematic diagram illustrating an example of a configuration of the
図4は、稼働中の制御プログラム400の設定情報が変更される場合の非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。制御プログラム400が実行されOLT11が稼働している間、制御プログラム400における設定情報が変更されることがある。稼働中の制御プログラム400が設定情報を取得する場合、非一過性メモリ242内の起動設定情報350ではなく、一過性メモリ243内の稼働設定情報450を参照する。このため、稼働中の制御プログラム400の新たな設定情報は、起動設定情報350ではなく、稼働設定情報450に書き込まれる。
FIG. 4 is a schematic diagram illustrating an example of the configuration of the
図4の例では、パラメータP1の値SV1は変更されず、パラメータP2の値はSV2からSV20へ変更され、パラメータP3の値はSV3からSV30へ変更されている。このため、稼働設定情報450においては、P1=SV1,P2=SV20,P3=SV30となる。他方、起動設定情報350においては、P1=SV1,P2=SV2,P3=SV3である。このように、稼働設定情報450と起動設定情報350とは互いに異なる。
In the example of FIG. 4, the value SV1 of the parameter P1 is not changed, the value of the parameter P2 is changed from SV2 to SV20, and the value of the parameter P3 is changed from SV3 to SV30. Therefore, in the
本実施形態に係るOLT11は、自装置を再起動させることなく制御プログラムを更新する無停止更新処理を実行することができる。また、OLT11は、自装置を再起動させて制御プログラムを更新する通常更新処理も実行することができる。制御プログラムを更新する場合、更新前の制御プログラム(以下、「更新前プログラム」という)400が稼働している間に、例えば、外部装置25又は上位ネットワーク50のサーバから、新たな制御プログラム(以下、「更新プログラム」という)がOLT11に送信される。
The OLT 11 according to the present embodiment can execute a non-stop update process for updating a control program without restarting the OLT 11 itself. The OLT 11 can also execute a normal update process of updating the control program by restarting the OLT 11 itself. When the control program is updated, a new control program (hereinafter, referred to as “pre-update program”) 400 is operated from, for example, the external device 25 or a server of the higher-
図5は、OLT11に更新プログラムが与えられた直後における非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。OLT11は、更新前プログラム300を残したまま、更新プログラム330を非一過性メモリ242にインストールする。これにより、非一過性メモリ242には、更新前プログラム300と、更新プログラム330とが併存する。
FIG. 5 is a schematic diagram illustrating an example of the configuration of the
図6は、稼働設定情報450が起動設定情報350に複写されない場合の非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。
FIG. 6 is a schematic diagram illustrating an example of the configuration of the
本実施の形態においては、更新プログラム430に含まれるプログラムモジュールには2種類が存在する。第1の種類のプログラムモジュールは、一過性メモリ243に記憶された設定情報により設定することが可能なプログラムモジュールである。本実施形態では、第1の種類のプログラムモジュールの設定情報が、稼働設定情報450から一過性メモリ243の稼働設定情報450とは異なる領域に構成引継情報として複写され、その領域のアドレスが当該モジュールに通知される。CPU241は、通知されたアドレスから設定情報を読み出して、第1の種類のプログラムモジュールを設定する。
In the present embodiment, there are two types of program modules included in the
更新前プログラム400における第1の種類のプログラムモジュールが起動した状態で、更新プログラム430における第1の種類のプログラムモジュールは起動する。つまり、更新前プログラム400における第1の種類のプログラムモジュールが一過性メモリ243に展開された状態で、更新プログラム430における第1の種類のプログラムモジュールも一過性メモリ243に展開される。
With the first type of program module in the
更新プログラム430における第1の種類のプログラムモジュールが構成引継情報によって設定されている間、更新前プログラム400における第1の種類のプログラムモジュールも実行され続ける。図6の例では、第1の種類のプログラムモジュールは、第1モジュール及び第2モジュールである。更新前プログラム400における第1モジュール400_1が稼働している間、第1モジュール400_1用の設定情報であるパラメータP1の設定値が、一過性メモリ243における稼働設定情報450とは別の領域に構成引継情報として格納される。さらに、第1モジュール400_1が稼働している間、更新プログラム430における第1モジュール430_1が構成引継情報によって設定される。つまり、第1モジュール430_1の設定の間、更新前の第1モジュール400_1と更新後の第1モジュール430_1とが同時に実行される。同様に、更新前プログラム400における第2モジュール400_2が稼働している間、更新プログラム430における第2モジュール430_2が、稼働設定情報450とは別の領域に格納された構成引継情報(P2の設定値)によって設定される。このようにすることにより、1つのCPU241によって、第1モジュール及び第2モジュールにより実現される機能が停止することなく、第1モジュール及び第2モジュールを更新することができる。なお、更新後の第1モジュール430_1の設定の後、更新前の第1モジュール400_1は停止され、一過性メモリ243の第1モジュール400_1の領域が開放される。同様に、更新後の第2モジュール430_2の設定の後、更新前の第2モジュール400_2は停止され、一過性メモリ243の第2モジュール400_2の領域が開放される。
While the first type program module in the
第1の種類のプログラムモジュールは、通信の制御を実行するプログラムモジュールである。このため、OLT11の通信機能が停止することなく、第1の種類のプログラムモジュールが更新される。 The first type of program module is a program module that executes communication control. Therefore, the first type of program module is updated without stopping the communication function of the OLT 11.
なお、第1の種類のプログラムモジュールを設定する場合に、稼働設定情報450における、当該モジュールの設定情報のアドレスを当該モジュールに通知し、稼働設定情報450から直接読み出された設定情報により、当該モジュールが設定されてもよい。つまり、第1モジュール430_1の設定において、稼働設定情報450におけるパラメータP1の設定値のアドレスを第1モジュール430_1に通知し、CPU241が、当該アドレスにおけるP1の設定値によって第1モジュール430_1を設定することができる。同様に、第2モジュール430_2の設定において、稼働設定情報450におけるパラメータP2の設定値のアドレスを第2モジュール430_2に通知し、CPU241が、当該アドレスにおけるP2の設定値によって第2モジュール430_2を設定することができる。
When the first type of program module is set, the address of the setting information of the module in the
第2の種類のプログラムモジュールは、非一過性メモリ242に記憶された設定情報により設定されるプログラムモジュールである。本実施形態では、CPU241は、非一過性メモリ242から起動設定情報350を読み出して、第2の種類のプログラムモジュールを設定する。
The second type of program module is a program module that is set based on the setting information stored in the
更新前プログラム400における第2の種類のプログラムモジュールが停止した後に、更新プログラム430における第2の種類のプログラムモジュールが起動され、当該モジュールが起動設定情報350によって設定される。つまり、更新前プログラム400における第2の種類のプログラムモジュールの一過性メモリ243での領域が開放された後、更新プログラム430における第2の種類のプログラムモジュールが一過性メモリ243に展開される。図6の例では、第2の種類のプログラムモジュールは、第3モジュールである。更新前プログラム400における第3モジュール400_3が停止され、その後、更新プログラム430における第3モジュール430_3が起動される。第3モジュール430_3用の設定情報であるパラメータP3の設定値が、非一過性メモリ242における起動設定情報350から読み出され、第3モジュール430_3が設定される。更新前後の第3モジュール400_3及び430_3は、同時には実行されない。このようにすることにより、更新前の第3モジュール400_3とは同時に実行できない更新後の第3モジュール430_3を設定することができる。
After the second type of program module in the
第2の種類のプログラムモジュールは、通信の制御以外の処理を実行するプログラムモジュールである。通信の制御以外の処理は、例えば、OLT11の保守機能に関する処理である。このため、通信の制御を停止させることなく、第2の種類のプログラムモジュールが更新される。 The second type of program module is a program module that executes processing other than communication control. The processing other than the communication control is, for example, processing related to the maintenance function of the OLT 11. Therefore, the second type of program module is updated without stopping communication control.
しかし、稼働設定情報450が変更されていると、起動設定情報350と稼働設定情報450とが異なった状態となる。よって、この状態で更新プログラム430の各プログラムモジュールの設定を行うと、第1の種類のプログラムモジュールは稼働設定情報450から得られた設定情報によって設定され、第2の種類のプログラムモジュールは起動設定情報350から得られた設定情報によって設定されるため、両モジュール間で設定の不整合が発生する。つまり、第3モジュール430_3は、稼働設定情報450に含まれるP3=SV30で設定される必要があるが、起動設定情報350に含まれるP3=SV3で設定されてしまう。
However, if the
本実施形態に係るOLT11では、更新後のプログラムモジュールの設定を行う前に、稼働設定情報450の一部又は全部を起動設定情報350に複写し、稼働設定情報450と起動設定情報350とを整合させる。これにより、第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとの間における設定の不整合を防止することができる。
In the OLT 11 according to the present embodiment, before setting the updated program module, part or all of the
図7は、稼働設定情報450が起動設定情報350に複写された場合の非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。図7の例では、稼働設定情報450及び起動設定情報350の両方において、P1=SV1,P2=SV20,P3=SV30,…となっている。つまり、起動設定情報350が、稼働設定情報450に一致している。このような状態において、更新プログラム430の各プログラムモジュールの設定を行うと、第1の種類のプログラムモジュールと、第2の種類のプログラムモジュールとの間で設定の不整合が防止される。つまり、第1モジュール430_1は稼働設定情報450に含まれるP1=SV1で設定され、第2モジュール430_2は稼働設定情報450に含まれるP2=SV20で設定され、第3モジュール430_3は起動設定情報350に含まれるP3=SV30で設定される。
FIG. 7 is a schematic diagram illustrating an example of a configuration of the
[4.OLT11の制御プログラム更新における動作]
本実施形態に係るOLT11における制御プログラムの更新の動作について説明する。
[4. Operation in updating control program of OLT 11]
The operation of updating the control program in the OLT 11 according to the present embodiment will be described.
CPU241は、更新設定プログラム370(図2参照)を実行することにより、プログラム更新処理を実行する。図8は、プログラム更新処理の手順を示すフローチャートである。
The
プログラム更新処理において、まずCPU241は、更新条件が成立したか否かを判定する(ステップS101)。更新条件は、制御プログラム300の更新を行う場合の条件である。更新条件は、次の(1)〜(5)の条件から選択されてもよい。また、(1)〜(5)のうちの複数の条件を組み合わせて更新条件としてもよい。例えば、(1)〜(5)の中から選択された複数の条件が全て成立することを更新条件の成立としてもよいし、(1)〜(5)の中から選択された複数の条件のいずれか1つが成立することを更新条件の成立としてもよい。
(1)稼働設定情報450と起動設定情報350との差分が所定量以上である。
(2)稼働設定情報450の少なくとも一部が変更される。
(3)制御プログラム300の更新指示が与えられる。
(4)予め定められた更新時刻に到達する。
(5)稼働設定情報450に含まれる複数の分類に属する情報のうち、特定の分類に属する情報が変更される。
In the program update process, first, the
(1) The difference between the
(2) At least a part of the
(3) An update instruction for the
(4) It reaches a predetermined update time.
(5) Among the information belonging to a plurality of classifications included in the
(1)において、差分が所定量以上とは、例えば、稼働設定情報450と起動設定情報350との間で異なる設定値の数が所定値以上とすることができ、また、異なる設定値のデータ容量が所定値以上とすることができる。また、(3)において、更新指示は、例えば外部装置25又は上位ネットワーク50のサーバから与えられることができる。また、(4)において、通信トラフィックが少ない夜間の時刻(例えば、2時)を更新時刻とすることができる。
In (1), the difference is equal to or more than the predetermined amount, for example, when the number of different setting values between the
(5)において、設定情報を複数種類に分類することができる。例えば、通信に関する設定情報は「通信」に分類され、保守に関する設定情報は「保守」に分類されてもよい。このようにして分類された設定情報のうち、特定の分類(例えば、「通信」)に属する情報が変更されれば、(5)の条件が成立する。また、(2)の条件と(5)の条件とは一部が重複するため、更新条件にはいずれか1つが含まれてもよい。 In (5), the setting information can be classified into a plurality of types. For example, the setting information regarding communication may be classified as “communication”, and the setting information regarding maintenance may be classified as “maintenance”. If information belonging to a specific classification (for example, “communication”) among the setting information classified in this way is changed, the condition (5) is satisfied. Further, since the condition of (2) and the condition of (5) partially overlap, any one of the update conditions may be included.
更新条件が成立しない場合(ステップS101においてNO)、CPU241は、ステップS101を再度実行する。
If the update condition is not satisfied (NO in step S101),
更新条件が成立した場合(ステップS101においてYES)、CPU241は、無停止更新処理を実行するか否かを判定する(ステップS102)。無停止更新処理を実行するか否かの判定には、例えば、与えられた更新指示における無停止更新処理が指定の有無が用いられる。
When the update condition is satisfied (YES in step S101),
無停止更新処理を実行すると判定された場合(ステップS102においてYES)、CPU241は、無停止更新処理を実行する(ステップS103)。無停止更新処理を実行すると判定されなかった場合(ステップS102においてNO)、CPU241は、通常更新処理を実行する(ステップS104)。通常更新処理は、OLT11を再起動させて制御プログラムを更新する処理である。無停止更新処理又は通常更新処理が終了すると、CPU241は、プログラム更新処理を終了する。
When it is determined that the non-stop update process is to be performed (YES in step S102),
以下、無停止更新処理について説明する。図9は、無停止更新処理の手順を示すフローチャートである。 Hereinafter, the non-stop update processing will be described. FIG. 9 is a flowchart illustrating the procedure of the non-stop update process.
無停止更新処理において、まずCPU241は、稼働設定情報450の一部又は全部を起動設定情報350に複写する(ステップS201)。これにより、起動設定情報350が、稼働設定情報450と整合する。この処理では、稼働設定情報450のうち、起動設定情報350とは異なる差分情報を、起動設定情報350に複写してもよい。また、稼働設定情報450の全てを起動設定情報350に複写してもよい。
In the non-stop update process, first, the
CPU241は、非一過性メモリ242に更新前プログラム300が記憶された状態で、更新プログラム330をインストールする(ステップS202)。つまり、非一過性メモリ242では、更新前プログラム300に更新プログラム330が上書きされるのではなく、更新前プログラム300とは別に、更新プログラム330が追加される。
The
CPU241は、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nの全てに対して、終了の告知を行う(ステップS203)。
The
次にCPU241は、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nのうち、一過性メモリ243に記憶された設定情報により設定することが可能なプログラムモジュール、つまり、第1の種類のプログラムモジュールについて、更新前のモジュールから更新後のモジュールへと引き継ぐ設定情報(構成引継情報)を一過性メモリ243に記憶する(ステップS204)。この処理では、稼働設定情報450のうち、第1の種類のプログラムの設定情報が構成引継情報として一過性メモリ243に記憶される。
Next, the
CPU241は、プログラムモジュールのインデックスである変数Mの値を初期化(M=1)する(ステップS205)。CPU241は、変数Mの値が、制御プログラムにおけるモジュール数N以下であるか否かを判定する(ステップS206)。
The
N≧Mの場合(ステップS206においてYES)、CPU241は、更新前の第Mモジュールから更新後の第Mモジュールへ引き継がれる設定情報があるか否か、即ち、第Mモジュールが第1の種類のプログラムモジュールであるか否かを判定する(ステップS207)。
If N ≧ M (YES in step S206), the
更新前の第Mモジュール400_Mから更新後の第Mモジュール430_Mへ引き継がれる設定情報がある、即ち、第Mモジュールが第1の種類のプログラムモジュールである場合(ステップS207においてYES)、CPU241は、更新前プログラムの第Mモジュール400_Mを停止することなく、更新プログラム430の第Mモジュール430_Mを起動する(ステップS208)。つまり、一過性メモリ243において、更新前プログラム400の第Mモジュール400_Mが展開されている状態で、更新プログラム430の第Mモジュール430_Mが展開される。
If there is setting information to be carried over from the M-th module 400_M before the update to the M-th module 430_M after the update, that is, if the M-th module is the first type of program module (YES in step S207), the
CPU241は、第Mモジュールの設定情報の引継を行う(ステップS209)。この処理では、一過性メモリ243から更新引継情報がCPU241によって読み出され、更新プログラム430の第Mモジュール430_Mが設定される。
The
CPU241は、更新前プログラム400の第Mモジュール400_Mを停止する(ステップS210)。これにより、一過性メモリ243における更新前プログラム400の第Mモジュール400_Mの領域が開放される。
The
次にCPU241は変数Mの値をインクリメントし(ステップS214)、処理をステップS206へ移す。
Next, the
他方、更新前の第Mモジュール400_Mから更新後の第Mモジュール430_Mへ引き継がれる設定情報がない、即ち、第Mモジュールが第2の種類のプログラムモジュールである場合(ステップS207においてNO)、CPU241は、更新前プログラム400の第Mモジュール400_Mを停止する(ステップS211)。これにより、一過性メモリ243における更新前プログラム400の第Mモジュール400_Mの領域が開放される。
On the other hand, when there is no setting information passed from the M-th module 400_M before the update to the M-th module 430_M after the update, that is, when the M-th module is the second type of program module (NO in step S207), the
その後、CPU241は、更新プログラム430の第Mモジュール430_Mを起動する(ステップS212)。つまり、一過性メモリ243において、更新前プログラム400の第Mモジュール400_Mが存在しない状態で、更新プログラム430の第Mモジュール430_Mが展開される。
After that, the
CPU241は、起動設定情報350から第Mモジュール430_M用の設定情報を読み出し、第Mモジュール430_Mを設定する(ステップS213)。
The
次にCPU241は変数Mの値をインクリメントし(ステップS214)、処理をステップS206へ移す。
Next, the
以上により、第Nモジュールまで設定が行われる。MがNより大きい場合(ステップS206においてNO)、CPU241は、非一過性メモリ242の起動設定情報350を、一過性メモリ243の稼働設定情報450へ複写する(ステップS215)。これにより、更新プログラム430の起動時における起動設定情報350と稼働設定情報450との同一性が担保される。以上で、無停止更新処理が終了する。
As described above, the setting up to the N-th module is performed. If M is greater than N (NO in step S206),
上記のような無停止更新処理の途中で、OLT11に異常が発生した場合、制御プログラムを正常な状態に復帰させる必要がある。このため、本実施形態にかかるOLT11は、異常監視処理を実行する。以下、異常監視処理について説明する。 If an abnormality occurs in the OLT 11 during the non-stop update processing as described above, it is necessary to return the control program to a normal state. Therefore, the OLT 11 according to the present embodiment executes an abnormality monitoring process. Hereinafter, the abnormality monitoring process will be described.
図10は、異常監視処理の手順を示すフローチャートである。異常監視処理は、無停止更新処理と並行して実行される。 FIG. 10 is a flowchart illustrating the procedure of the abnormality monitoring process. The abnormality monitoring process is executed in parallel with the non-stop update process.
OLT11の制御プログラムには、異常検知機能が設けられる。この異常検知機能は、制御プログラムにおける処理の異常、通信エラー等、OLT11において生じる異常を検知する機能である。異常監視処理において、まずCPU241は、OLT11の異常を検出したか否かを判定する(ステップS301)。
The control program of the OLT 11 is provided with an abnormality detection function. This abnormality detection function is a function for detecting an abnormality occurring in the OLT 11 such as an abnormality in processing in a control program, a communication error, and the like. In the abnormality monitoring process, first, the
異常が検出されない場合(ステップS301においてNO)、CPU241は、再度ステップS301の処理を実行する。
If no abnormality is detected (NO in step S301),
他方、異常が検出された場合(ステップS301においてYES)、CPU241は、プログラム更新処理へ中断を指示する(ステップS302)。これにより、プログラム更新処理が中断される。
On the other hand, if an abnormality is detected (YES in step S301),
次にCPU241は、稼働中の全てのプログラムモジュールを停止させる(ステップS303)。さらにCPU241は、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nの全てを起動する(ステップS304)。
Next, the
CPU241は、起動設定情報350を非一過性メモリ242から読み出し、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nの全てを起動設定情報350によって設定する(ステップS305)。以上で、異常監視処理が終了する。
The
このような異常監視処理により、無停止更新処理の実行中に、OLT11に異常が発生した場合に、更新前プログラム400が復帰される。
By such an abnormality monitoring process, if an abnormality occurs in the OLT 11 during the execution of the non-stop update process, the
以上のような構成により、本実施形態に係るOLT11は、CPU241が、更新前プログラム400を更新プログラム430に更新する場合に、稼働設定情報の一部又は全部を起動設定情報に複写する処理を実行する。また、CPU241は、稼働設定情報に基づいて更新された第1の種類のプログラムモジュールを設定し、稼働設定情報の一部又は全部が複写された起動設定情報に基づいて、更新された第2の種類のプログラムモジュールを設定する処理と、を実行する。これにより、制御プログラムが更新される場合に、OLT11を停止させることなく、第1の種類のプログラムモジュール及び第2の種類のプログラムモジュールのそれぞれを設定することができる。また、起動設定情報に稼働設定情報の一部又は全部が複写されるため、第1の種類及び第2の種類のそれぞれのプログラムモジュールに用いられる設定情報において不整合の発生を抑制することができる。
With the above-described configuration, the OLT 11 according to the present embodiment executes a process of copying a part or all of the operation setting information to the startup setting information when the
また、CPU241は、更新前プログラム400のモジュールが第1の種類のプログラムモジュールである場合、当該モジュールを停止する前に、対応する更新プログラム430のモジュールを起動し、起動されたモジュールを稼働設定情報に基づく構成引継情報によって設定し、更新前モジュールを停止する処理を実行する。また、CPU241は、更新前プログラム400のモジュールが第2の種類のプログラムモジュールである場合、当該モジュールを停止した後に、対応する更新プログラム430のモジュールを起動し、起動されたモジュールを起動設定情報に基づいて設定する処理を実行する。これにより、第1の種類のプログラムモジュールは停止することなく更新される。このため、OLT11の機能を停止させずに制御プログラムの更新を行うことができる。
When the module of the
また、第1の種類のプログラムモジュールは、一過性メモリ243に記憶された設定情報により設定されることが可能なプログラムモジュールであり、第2の種類のプログラムモジュールは、非一過性メモリ242に記憶された設定情報により設定されるプログラムモジュールであってもよい。これにより、第1の種類のモジュールを、一過性メモリ243に記憶された稼働設定情報450に基づく構成引継情報により設定することができ、第2の種類のモジュールを、非一過性メモリ242に記憶された起動設定情報350に基づき設定することができる。
The first type of program module is a program module that can be set by the setting information stored in the
また、第1の種類のプログラムモジュールは、通信の制御を実行するプログラムモジュールであり、第2の種類のプログラムモジュールは、通信の制御以外の処理を実行するプログラムモジュールであってもよい。これにより、通信の制御を停止させることなく、制御プログラムを更新することができる。 In addition, the first type of program module may be a program module that executes communication control, and the second type of program module may be a program module that executes processing other than communication control. Thus, the control program can be updated without stopping communication control.
また、稼働設定情報450のうち起動設定情報350とは異なる差分情報を、起動設定情報350に複写してもよい。これにより、稼働設定情報450の全てを一括して起動設定情報350に複写しなくても、稼働設定情報450と起動設定情報350とを整合させることができる。
Further, difference information different from the
また、所定の更新条件が成立した場合に、稼働設定情報450の一部又は全部を起動設定情報350に複写する処理を実行してもよい。これにより、更新条件の成立により、制御プログラムの更新を開始することができる。
Further, when a predetermined update condition is satisfied, a process of copying a part or all of the
また、更新条件は、稼働設定情報450と起動設定情報350との差分が所定量以上となること、稼働設定情報450が変更されること、制御プログラム300の更新指示が与えられること、予め決められた更新時刻に到達すること、及び、稼働設定情報450に含まれる複数の分類に属する情報のうち特定の分類に属する情報が変更されること、の少なくとも1つであってもよい。これにより、様々な条件を更新条件に設定することができる。
The update condition is determined in advance that the difference between the
また、制御プログラムが更新される間に異常を検出した場合、稼働中の全モジュールを停止した後、更新前プログラム400のモジュールのそれぞれを起動し、起動されたモジュールを起動設定情報350に基づいて設定する異常監視処理を実行してもよい。これにより、OLT11に異常が発生した場合、更新前の制御プログラム300に戻すことで、異常から復帰することができる。
If an abnormality is detected while the control program is being updated, after stopping all operating modules, each of the modules of the
異常は、通信エラーを含んでもよい。制御プログラムの更新が適切に行われなかった場合、正常な通信が行われず、通信エラーが発生する可能性がある。通信エラーが生じた場合に、更新前の制御プログラムに戻すことで、通信エラーを解消できる可能性がある。 The abnormality may include a communication error. If the control program is not properly updated, normal communication may not be performed and a communication error may occur. If a communication error occurs, there is a possibility that the communication error can be resolved by returning to the control program before the update.
[6.補記]
今回開示された実施の形態はすべての点で例示であって、制限的ではない。本発明の権利範囲は、上述の実施形態ではなく特許請求の範囲によって示され、特許請求の範囲と均等の意味及びその範囲内でのすべての変更が含まれる。
[6. Supplementary note]
The embodiment disclosed this time is an example in all aspects and is not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the embodiments described above, and includes any modifications within the scope and meaning equivalent to the terms of the claims.
10 通信システム
11 局側装置(通信装置)
12 宅側装置
13 PON回線
14 光スプリッタ
15 幹線光ファイバ
16 支線光ファイバ
21 光トランシーバ
22 PON処理部
23 L2スイッチ
24 制御部
25 外部装置
26 通信インタフェース
50 上位ネットワーク
241 CPU
242 非一過性メモリ
243 一過性メモリ
300,330,400,430 制御プログラム
300_1,300_2,300_3,… プログラムモジュール
330_1,330_2,330_3,… プログラムモジュール
350 起動設定情報
370 更新設定プログラム
400_1,400_2,400_3,… プログラムモジュール
430_1,430_2,430_3,… プログラムモジュール
450 稼働設定情報
10 communication system 11 station side device (communication device)
REFERENCE SIGNS
242
Claims (10)
前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、
プロセッサと、
を備え、
前記プロセッサは、自装置を稼働させたまま前記制御プログラムを更新する場合に、
前記稼働設定情報の一部又は全部を前記起動設定情報に複写する処理と、
前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定する処理と、
前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する処理と、
を実行する、
通信装置。 A non-transitory memory storing start setting information, which is setting information referred to by the first type program module and the second type program module included in the control program for communication during the start processing;
A temporary memory storing operation setting information that is setting information referred to during operation of the first type of program module and the second type of program module;
A processor,
With
The processor, when updating the control program while operating its own device,
A process of copying a part or all of the operation setting information to the start setting information;
A process of setting the updated first type program module based on the operation setting information;
A process of setting the updated second type of program module based on the start setting information in which part or all of the operation setting information is copied;
Run,
Communication device.
更新前の前記第1の種類のプログラムモジュールを停止する前に、更新後の前記第1の種類のプログラムモジュールを起動する処理と、
前記稼働設定情報に基づいて、前記更新後の第1の種類のプログラムモジュールを設定する処理と、
前記更新前の第1の種類のプログラムモジュールを停止する処理と、
を実行し、
前記プロセッサは、前記第2の種類のプログラムモジュールを更新する場合、
更新前の前記第2の種類のプログラムモジュールを停止する処理と、
前記更新前の第2の種類のプログラムモジュールを停止した後に、更新後の前記第2の種類のプログラムモジュールを起動する処理と、
前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、前記更新後の第2の種類のプログラムモジュールを設定する処理と、
を実行する、
請求項1に記載の通信装置。 The processor, when updating the first type of program module,
A process of activating the updated first-type program module before stopping the first-type program module before the update;
A process of setting the updated first type program module based on the operation setting information;
Stopping the first type of program module before the update;
Run
The processor, when updating the second type of program module,
Stopping the second type of program module before updating;
A process of activating the second type of program module after the update after stopping the second type of program module before the update;
A process of setting the updated second type program module based on the start setting information in which part or all of the operation setting information is copied;
Run,
The communication device according to claim 1.
前記第2の種類のプログラムモジュールは、前記非一過性メモリに記憶された設定情報により設定されるプログラムモジュールである、
請求項1又は2に記載の通信装置。 The first type of program module is a program module that can be set by setting information stored in the temporary memory,
The second type of program module is a program module set by setting information stored in the non-transitory memory.
The communication device according to claim 1.
前記第2の種類のプログラムモジュールは、通信の制御以外の処理を実行するプログラムモジュールである、
請求項1から請求項3のいずれか1項に記載の通信装置。 The first type of program module is a program module that executes communication control.
The second type of program module is a program module that executes processing other than control of communication.
The communication device according to claim 1.
請求項1から請求項4のいずれか1項に記載の通信装置。 The copying process is a process of copying information that is different from the activation setting information in the operation setting information to the activation setting information.
The communication device according to claim 1.
請求項1から請求項5のいずれか1項に記載の通信装置。 The processor executes the process of copying when a predetermined update condition is satisfied,
The communication device according to claim 1.
請求項6に記載の通信装置。 The update condition is that a difference between the operation setting information and the activation setting information is equal to or more than a predetermined amount, that the operation setting information is changed, an update instruction of a control program is given, and a predetermined update is performed. At least one of reaching a time and changing information belonging to a specific class among information belonging to a plurality of classes included in the operation setting information.
The communication device according to claim 6.
請求項1から請求項7のいずれか1項に記載の通信装置。 If the processor detects an abnormality while the control program is being updated, after stopping all of the operating program modules, the processor activates each of the program modules before the update, and starts the activated program module before the update. Performing a process of setting the program module of the based on the startup setting information,
The communication device according to claim 1.
請求項8に記載の通信装置。 The abnormality includes a communication error,
The communication device according to claim 8.
前記通信装置を稼働させたまま前記制御プログラムを更新する場合に、
前記プロセッサが、前記稼働設定情報の一部又は全部を前記起動設定情報に複写し、
前記プロセッサが、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定し、
前記プロセッサが、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する、
通信装置の設定方法。
A non-transitory memory storing start setting information, which is setting information referred to by the first type program module and the second type program module included in the control program for communication during the start processing, A method for setting a communication device, comprising: a temporary memory for storing operation setting information that is setting information referred to during operation of a first type of program module and the second type of program module; and a processor. So,
When updating the control program while operating the communication device,
The processor copies a part or all of the operation setting information to the activation setting information,
The processor sets the updated first type of program module based on the operation setting information,
The processor sets the updated second type of program module based on the start setting information in which part or all of the operation setting information is copied,
Communication device setting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018177929A JP7087876B2 (en) | 2018-09-21 | 2018-09-21 | Communication device and setting method of communication device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018177929A JP7087876B2 (en) | 2018-09-21 | 2018-09-21 | Communication device and setting method of communication device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020052453A true JP2020052453A (en) | 2020-04-02 |
JP7087876B2 JP7087876B2 (en) | 2022-06-21 |
Family
ID=69997077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018177929A Active JP7087876B2 (en) | 2018-09-21 | 2018-09-21 | Communication device and setting method of communication device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7087876B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022091406A1 (en) * | 2020-11-02 | 2022-05-05 | 三菱電機株式会社 | Software update device, software update method, and software update program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010021755A (en) * | 2008-07-10 | 2010-01-28 | Hitachi Ltd | Controller for network unit |
JP2018019377A (en) * | 2016-07-29 | 2018-02-01 | 日本電信電話株式会社 | Communication device, design method, and computer program |
-
2018
- 2018-09-21 JP JP2018177929A patent/JP7087876B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010021755A (en) * | 2008-07-10 | 2010-01-28 | Hitachi Ltd | Controller for network unit |
JP2018019377A (en) * | 2016-07-29 | 2018-02-01 | 日本電信電話株式会社 | Communication device, design method, and computer program |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022091406A1 (en) * | 2020-11-02 | 2022-05-05 | 三菱電機株式会社 | Software update device, software update method, and software update program |
Also Published As
Publication number | Publication date |
---|---|
JP7087876B2 (en) | 2022-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180329862A1 (en) | Method and apparatus for updating server firmware in server, and server | |
CN112612524A (en) | Method, device and equipment for starting Linux system and storage medium | |
JP2008299709A (en) | Firmware updating system, network connection apparatus, firmware updating method, and program | |
US20230169172A1 (en) | Resilient software update architecture for embedded systems | |
JP2009251786A (en) | Data processing method, storage apparatus, and storage system | |
CN110895469A (en) | Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium | |
JP7087876B2 (en) | Communication device and setting method of communication device | |
US9720755B2 (en) | Information processing device | |
US9794121B2 (en) | System upgrade method and device | |
CN111488163B (en) | Firmware updating method and device, electronic equipment and storage medium | |
CN113032183A (en) | System management method, device, computer equipment and storage medium | |
CN104580360A (en) | System and method for updating firmware through heterogeneous network | |
US9495250B2 (en) | Providing code to a programmable device | |
US6701356B1 (en) | Method and apparatus for automatically downloading profile and image files for optical network elements | |
JP5293141B2 (en) | Redundant system | |
CN111344962B (en) | Network interface switching method of optical network unit and optical network unit | |
CN112437119A (en) | Distributed system upgrading method, device and node | |
JP2022006935A (en) | Communication system, communication control device, and control program update method | |
US9853774B2 (en) | System and method for restoring a status of an apparatus controlled by multiple commands | |
CN111835451A (en) | Service path switching method and related equipment | |
CN106789862B (en) | Data synchronization method and device | |
US11714631B2 (en) | Method, electronic device, and computer program product for managing operating system | |
CN103744702A (en) | Dual-system starting method of switching and routing device | |
US10396890B2 (en) | Information processing apparatus, method and non-transitory computer-readable storage medium | |
KR20120138488A (en) | Optical line termination for managing reset database and the method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210421 |
|
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: 20220510 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220523 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7087876 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |