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

JP7087876B2 - Communication device and setting method of communication device - Google Patents

Communication device and setting method of communication device Download PDF

Info

Publication number
JP7087876B2
JP7087876B2 JP2018177929A JP2018177929A JP7087876B2 JP 7087876 B2 JP7087876 B2 JP 7087876B2 JP 2018177929 A JP2018177929 A JP 2018177929A JP 2018177929 A JP2018177929 A JP 2018177929A JP 7087876 B2 JP7087876 B2 JP 7087876B2
Authority
JP
Japan
Prior art keywords
setting information
type
program
program module
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.)
Active
Application number
JP2018177929A
Other languages
Japanese (ja)
Other versions
JP2020052453A (en
Inventor
邦彦 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2018177929A priority Critical patent/JP7087876B2/en
Publication of JP2020052453A publication Critical patent/JP2020052453A/en
Application granted granted Critical
Publication of JP7087876B2 publication Critical patent/JP7087876B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Description

本発明は、通信装置及び通信装置の設定方法に関する。 The present invention relates to a communication device and a method for setting a communication device.

特許文献1には、ネットワーク装置の構成情報として、現在稼動している構成情報(running-config)と、再起動時に有効となる構成情報(startup-config)とを記憶するネットワーク装置が開示されている。 Patent Document 1 discloses a network device that stores configuration information (running-config) currently in operation and configuration information (startup-config) that is valid at restart as configuration information of the network device. There is.

特開2010-21755号公報Japanese Unexamined Patent Publication No. 2010-21755

通信装置の制御プログラムを更新する場合、通信装置は、自装置を再起動して更新後の制御プログラム全体を一過性メモリであるRAMに展開し、設定情報(特許文献1におけるstartup-config)をCPUが読み出して更新後の制御プログラム全体の構成を設定する。通信装置の再起動が行われる間、通信装置の機能は停止する。しかし、高い信頼性を要求される通信装置では、制御プログラムを更新する間も通信装置の機能を停止させないことが求められる。 When updating the control program of the communication device, the communication device restarts its own device, expands the entire updated control program into RAM, which is a transient memory, and sets information (startup-config in Patent Document 1). Is read by the CPU to set the configuration of the entire control program after the update. While the communication device is restarted, the function of the communication device is stopped. However, in a communication device that requires high reliability, it is required that the function of the communication device is not stopped even while the control program is updated.

本開示は、以下の発明を含む。但し、本発明は、特許請求の範囲によって定められるものである。 The present disclosure includes the following inventions. However, the present invention is defined by the scope of claims.

本発明の一態様に係る通信装置は、通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備え、前記プロセッサは、自装置を稼働させたまま前記制御プログラムを更新する場合に、前記稼働設定情報の一部又は全部を前記起動設定情報に複写する処理と、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定する処理と、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する処理と、を実行する。 The communication device according to one aspect of the present invention is 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 process. A non-transient memory that stores the operation setting information, which is setting information that the first type program module and the second type program module refer to during operation, and a transient memory that stores the operation setting information. A processor is provided, and the processor copies a part or all of the operation setting information to the activation setting information when updating the control program while the own device is operating, and the operation setting information. Based on the process of setting the updated program module of the first type and the start setting information in which a part or all of the operation setting information is copied, the second type is updated. Executes the process of setting the program module of.

本発明の一態様に係る通信装置の設定方法は、通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備える通信装置の設定方法であって、前記通信装置を稼働させたまま前記制御プログラムを更新する場合に、前記プロセッサが、前記稼働設定情報の一部又は全部を前記起動設定情報に複写し、前記プロセッサが、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定し、前記プロセッサが、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する。 The setting method of the communication device according to one aspect of the present invention 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 startup process. A non-transient memory that stores startup setting information, and a transient memory that stores operation setting information that is setting information that the first type of program module and the second type of program module refer to during operation. A method of setting a communication device including a memory and a processor. When the control program is updated while the communication device is running, the processor activates a part or all of the operation setting information. Copied to the setting information, the processor set the updated program module of the first type based on the operation setting information, and the processor copied a part or all of the operation setting information. Based on the activation setting information, the updated program module of the second type is set.

本発明は、上記のような特徴的な処理部を備える通信装置として実現することができるだけでなく、かかる特徴的な処理をステップとする通信装置の設定方法として実現したり、かかるステップをコンピュータに実行させるためのコンピュータプログラムとして実現したりすることができる。また、通信装置の一部又は全部を半導体集積回路として実現したり、通信装置を含む通信システムとして実現したりすることができる。 The present invention can be realized not only as a communication device provided with a characteristic processing unit as described above, but also as a setting method of a communication device having such a characteristic process as a step, or to perform such a step on a computer. It can be realized as a computer program for execution. 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 invention, the control program can be updated without stopping the function of the device.

実施形態に係る通信システムの全体構成の一例を示す図である。It is a figure which shows an example of the whole structure of the communication system which concerns on embodiment. 実施形態に係る通信装置(局側装置)の内部構成の一例を示すブロック図であるIt is a block diagram which shows an example of the internal structure of the communication device (station side device) which concerns on embodiment. 制御プログラムの起動直後における非一過性メモリ及び一過性メモリの構成の一例を示す模式図である。It is a schematic diagram which shows an example of the configuration of the non-transient memory and the transient memory immediately after the start of the control program. 稼働中の制御プログラムの設定情報が変更される場合の非一過性メモリ及び一過性メモリの構成の一例を示す模式図である。It is a schematic diagram which shows an example of the configuration of the non-transient memory and the transient memory when the setting information of the control program in operation is changed. 通信装置に更新プログラムが与えられた直後における非一過性メモリ及び一過性メモリの構成の一例を示す模式図である。It is a schematic diagram which shows an example of the configuration of a non-transient memory and a transient memory immediately after an update program is given to a communication device. 稼働設定情報が起動設定情報に複写されない場合の非一過性メモリ及び一過性メモリの構成の一例を示す模式図である。It is a schematic diagram which shows an example of the configuration of the non-transient memory and the transient memory when the operation setting information is not copied to the start setting information. 稼働設定情報が起動設定情報に複写された場合の非一過性メモリ及び一過性メモリの構成の一例を示す模式図である。It is a schematic diagram which shows an example of the configuration of the non-transient memory and the transient memory when the operation setting information is copied to the start setting information. 実施形態に係る通信装置におけるプログラム更新処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the program update process in the communication apparatus which concerns on embodiment. 実施形態に係る通信装置における無停止更新処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the non-stop update process in the communication apparatus which concerns on embodiment. 実施形態に係る通信装置における異常監視処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of abnormality monitoring processing in the communication apparatus which concerns on embodiment.

<本発明の実施形態の概要>
以下、本発明の実施形態の概要を列記して説明する。
(1) 本実施形態に係る通信装置は、通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備え、前記プロセッサは、自装置を稼働させたまま前記制御プログラムを更新する場合に、前記稼働設定情報の一部又は全部を前記起動設定情報に複写する処理と、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定する処理と、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する処理と、を実行する。これにより、制御プログラムが更新される場合に、通信装置を停止させることなく、第1の種類のプログラムモジュール及び第2の種類のプログラムモジュールのそれぞれを設定することができる。また、起動設定情報に稼働設定情報の一部又は全部が複写されるため、第1の種類及び第2の種類のそれぞれのプログラムモジュールに用いられる設定情報において不整合の発生を抑制することができる。なお、ここでいう「プログラムモジュール」とは、実行可能形式の部分的プログラムであり、オブジェクトモジュールである。また、「プログラム」とは、互いに連結された複数のプログラムモジュールの集合体であり、オブジェクトプログラムである。
<Outline of Embodiment of the present invention>
Hereinafter, the outlines of the embodiments of the present invention will be described in a list.
(1) The communication device according to the present embodiment is a start setting 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 process. A non-transient memory that stores information, and a transient memory that stores operation setting information that is setting information that the first type program module and the second type program module refer to during operation. , And the processor, when updating the control program while the own device is operating, a process of copying a part or all of the operation setting information to the activation setting information, and the operation setting. The second type of update based on the process of setting the updated program module of the first type based on the information and the start setting information in which a part or all of the operation setting information is copied. Executes the process of setting the type of program module. Thereby, when the control program is updated, each of the first type program module and the second type program module can be set without stopping the communication device. Further, since a 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 program modules. .. The "program module" here is an executable partial program and is an object module. Further, a "program" is a collection 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) Further, in the communication device according to the present embodiment, when the processor updates the program module of the first type, before stopping the program module of the first type before the update, after the update. The process of starting the first type of program module, the process of setting the first type of program module after the update based on the operation setting information, and the process of setting the first type of program before the update. When the processor updates the second type of program module by executing the process of stopping the module, the process of stopping the second type of program module before the update and the process of stopping the second type of program module before the update are executed. The above is based on the process of starting the updated second type of program module after stopping the two types of program modules and the start setting information in which a part or all of the operation setting information is copied. The process of setting the second type of program module after the update may be executed. As a result, the first type of program module is updated without stopping. Therefore, the control program can be updated without stopping the function of the device.

(3) また、本実施形態に係る通信装置において、前記第1の種類のプログラムモジュールは、前記一過性メモリに記憶された設定情報により設定されることが可能なプログラムモジュールであり、前記第2の種類のプログラムモジュールは、前記非一過性メモリに記憶された設定情報により設定されるプログラムモジュールであってもよい。これにより、第1の種類の更新モジュールを、一過性メモリに記憶された稼働設定情報に基づき設定することができ、第2の種類の更新モジュールを、非一過性メモリに記憶された起動設定情報に基づき設定することができる。 (3) Further, in the communication device according to the present embodiment, the first type of program module is a program module that can be set by the setting information stored in the transient memory, and is the first type. The two types of program modules may be program modules set by the setting information stored in the non-transient memory. As a result, the first type of update module can be set based on the operation setting information stored in the transient memory, and the second type of update module can be started up stored in the non-transient memory. It can be set based on the setting information.

(4) また、本実施形態に係る通信装置において、前記第1の種類のプログラムモジュールは、通信の制御を実行するプログラムモジュールであり、前記第2の種類のプログラムモジュールは、通信の制御以外の処理を実行するプログラムモジュールであってもよい。これにより、通信の制御を停止させることなく、制御プログラムを更新することができる。 (4) Further, 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 other than communication control. It may be a program module that executes processing. As a result, the control program can be updated without stopping the control of communication.

(5) また、本実施形態に係る通信装置において、前記複写する処理は、前記稼働設定情報のうち前記起動設定情報とは異なる情報を、前記起動設定情報に複写する処理であってもよい。これにより、稼働設定情報の全てを一括して起動設定情報に複写しなくても、稼働設定情報と起動設定情報とを整合させることができる。 (5) Further, in the communication device according to the present embodiment, the copying process may be a process of copying the operation setting information different from the activation setting information to the activation setting information. As a result, the operation setting information and the activation setting information can be matched without copying all the operation setting information to the activation setting information at once.

(6) また、本実施形態に係る通信装置において、前記プロセッサは、所定の更新条件が成立した場合に、前記複写する処理を実行してもよい。これにより、更新条件の成立により、制御プログラムの更新を開始することができる。 (6) Further, in the communication device according to the present embodiment, the processor may execute the copying process when a predetermined update condition is satisfied. As a result, the update of the control program can be started when the update condition is satisfied.

(7) また、本実施形態に係る通信装置において、前記更新条件は、前記稼働設定情報と前記起動設定情報との差分が所定量以上となること、前記稼働設定情報が変更されること、制御プログラムの更新指示が与えられること、予め決められた更新時刻に到達すること、及び、前記稼働設定情報に含まれる複数の分類に属する情報のうち特定の分類に属する情報が変更されること、の少なくとも1つであってもよい。これにより、様々な条件を更新条件に設定することができる。 (7) Further, in the communication device according to the present embodiment, the update condition is that the difference between the operation setting information and the activation setting information is a predetermined amount or more, the operation setting information is changed, and control. A program update instruction is given, a predetermined update time is reached, and information belonging to a specific category among the information belonging to a plurality of categories included in the operation setting information is changed. There may be at least one. This makes it possible to set various conditions 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, after stopping all of the operating program modules, the processor before the update is described. You may start each of the program modules and execute the process of setting the started program module before the update based on the start setting information. As a result, when an abnormality occurs in the communication device, it is possible to recover from the abnormality by returning to the control program before the update.

(9) また、本実施形態に係る通信装置において、前記異常は、通信エラーを含んでもよい。制御プログラムの更新が適切に行われなかった場合、正常な通信が行われず、通信エラーが発生する可能性がある。上記構成とすることにより、通信エラーが生じた場合に、更新前の制御プログラムに戻すことで、通信エラーを解消できる可能性がある。 (9) Further, in the communication device according to the present embodiment, the abnormality may include a communication error. If the control program is not updated properly, normal communication may not be performed and a communication error may occur. With the above configuration, if a communication error occurs, it may be possible to eliminate the communication error 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 is the 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 startup process. A non-transient memory that stores certain startup setting information, and a temporary memory that stores operation setting information that is setting information that the first type of program module and the second type of program module refer to during operation. A method of setting a communication device including a sex memory and a processor, in which the processor updates a part or all of the operation setting information while the communication device is running. Copying to the startup setting information, the processor sets the updated program module of the first type based on the operation setting information, and the processor copies a part or all of the operation setting information. Based on the activation setting information, the updated second type program module is set. Thereby, when the control program is updated, each of the first type program module and the second type program module can be set without stopping the communication device. Further, since a 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 program modules. ..

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

以下の実施形態では、通信装置を、光通信用の局側装置とした例について説明する。しかし、通信装置は光通信装置に限定されない。本実施形態に係る通信装置は、無線通信装置、有線通信装置等、光通信装置以外の通信装置であってもよい。 In the following embodiment, an example in which the communication device is a station-side device for optical communication will be described. 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 and a wired communication device.

[1.通信システムの構成]
図1は、本実施形態に係る通信システムの全体構成の一例を示す図である。図1に示すように、通信システム10は、光アクセスシステムであり、局側装置(OLT: Optical Network Unit)11と、複数の宅側装置(ONU: Optical Line Terminal)12と、PON回線13とを備える。
[1. Communication system configuration]
FIG. 1 is a diagram showing an example of the overall configuration of the communication system according to the present embodiment. As shown in FIG. 1, the communication system 10 is an optical access system, and includes a station side device (OLT: Optical Network Unit) 11, a plurality of home side devices (ONU: Optical Line Terminal) 12, and a PON line 13. To prepare for.

OLT11のL2スイッチ23(図2参照)には、インターネット等の上位ネットワーク50が接続される。 An upper network 50 such as the Internet is connected to the L2 switch 23 (see FIG. 2) of the OLT 11.

ONU12のUNIポート(図示せず)には、イーサネット(登録商標)通信が可能なユーザ通信装置を接続可能である。ONU12に接続されるユーザ通信装置の数及び種類は特に限定されない。例えば、ユーザ通信装置はパーソナルコンピュータ等の端末であっても、ルータ又はゲートウェイ等の中継装置であってもよい。つまり、ONU12には、中継装置を介してネットワークが接続されてもよい。 A user communication device capable of Ethernet (registered trademark) communication can be connected to the UNI port (not shown) of the ONU 12. The number and types of user communication devices connected to the ONU 12 are not particularly limited. For example, the user communication device may be a terminal such as a personal computer or a relay device such as a router or a gateway. That is, a network may be connected to the ONU 12 via a relay device.

PON回線13は、光スプリッタ14と光ファイバ15,16とを備える光通信回線である。PON回線13は、1つの幹線光ファイバ15と複数の支線光ファイバ16とを含む。光スプリッタ14には、各光ファイバ15,16が接続される。OLT11から送信された光信号は、PON回線13の幹線光ファイバ15を通って光スプリッタ14によって分岐される。分岐した光信号は、支線光ファイバ16を通って各ONU12に伝送される。 The PON line 13 is an optical communication line including an optical splitter 14 and optical fibers 15 and 16. The PON line 13 includes one trunk line optical fiber 15 and a plurality of branch line optical fibers 16. The optical fibers 15 and 16 are connected to the optical splitter 14. The optical signal transmitted from the OLT 11 is branched by the optical splitter 14 through the trunk optical fiber 15 of the PON line 13. The branched optical signal is transmitted to each ONU 12 through the branch line optical fiber 16.

各ONU12から送信された光信号は、それぞれ支線光ファイバ16を通って光スプリッタ14によって集束される。集束された光信号は、幹線光ファイバ15を通ってOLT11に伝送される。PON回線13に用いられる光スプリッタ14は、外部からの電源供給を必要とせず、入力された光信号から受動的に光信号を分岐又は多重する。 The optical signal transmitted from each ONU 12 is focused by the optical splitter 14 through the branch optical fiber 16. The focused optical signal is transmitted to the OLT 11 through the trunk optical fiber 15. The optical splitter 14 used for the PON line 13 does not require an external power supply and passively branches or multiplexes an optical signal from an input optical signal.

OLT11とONU12との接続確立後は、ユーザ通信装置がONU12及びOLT11を介して上位ネットワーク50へアクセスすることが可能となる。支線光ファイバ16に伝送される上り方向の光信号は、光スプリッタ14において合流する。従って、同じ波長の光信号が合流後に衝突しないための多重化が必要である。通信システム10では、MPCPに則った時分割多重化が行われる。具体的には、OLT11は、各ONU12から送信された制御フレーム(レポート)に基づいて、ONU12の内部に蓄積されたデータの上り方向の送信開始時刻及び送信許可量を演算する。 After the connection between the OLT 11 and the ONU 12 is established, the user communication device can access the upper network 50 via the ONU 12 and the OLT 11. The upstream optical signals transmitted to the branch optical fiber 16 merge at the optical splitter 14. Therefore, multiplexing is required so that optical signals of the same wavelength do not collide after merging. In the communication system 10, time division multiplexing is performed according to MPCP. Specifically, the OLT 11 calculates an upstream transmission start time and a transmission permission amount of the data stored inside the ONU 12 based on the control frame (report) transmitted from each ONU 12.

次に、OLT11は、指示信号を挿入した制御フレーム(グラント)を、PON回線13を介してそれぞれのONU12に送信する。各ONU12は、グラントにより指定された時刻に、自己のバッファ内のデータの長さをレポートでOLT11に通知する。各ONU12は、指示信号が挿入されたグラントをOLT11から受信する。その指示信号に基づいて、各ONU12は、自己のバッファ内のデータをレポートとともにOLT11に送信する。 Next, the OLT 11 transmits a control frame (grant) into which the instruction signal is inserted to each ONU 12 via the PON line 13. Each ONU12 notifies the OLT11 of the length of the data in its own buffer in a report at the time specified by the grant. Each ONU 12 receives a grant into which an instruction signal is inserted from the OLT 11. Based on the instruction signal, each ONU 12 transmits the data in its own buffer to the OLT 11 together with the report.

[2.OLTの内部構成]
図2は、OLT11の内部構成の一例を示すブロック図である。
図2に示すように、OLT11は、光トランシーバ21と、PON処理部22と、L2スイッチ23と、制御部24と、通信インタフェース26とを備える。
[2. Internal configuration of OLT]
FIG. 2 is a block diagram showing an example of the internal configuration of the OLT 11.
As shown in FIG. 2, the OLT 11 includes an optical transceiver 21, a PON processing unit 22, an L2 switch 23, a control unit 24, and a communication interface 26.

光トランシーバ21は、光信号を送受信する回路を含む光デバイス(例えば、プラガブル光トランシーバ)よりなる。光トランシーバ21は、幹線光ファイバ15(図1参照)に光学的に接続され、PON処理部22に電気的に接続される。
光トランシーバ21は、光信号と電気信号を相互に変換する。すなわち、光トランシーバ21は、ONU12からの光信号よりなる上り信号を電気信号に変換する。光トランシーバ21は、PON処理部22のからの電気信号よりなる下り信号を光信号に変換する。
The optical transceiver 21 comprises an optical device (eg, a pluggable optical transceiver) that includes a circuit for transmitting and receiving optical signals. The optical transceiver 21 is optically connected to the trunk optical fiber 15 (see FIG. 1) and electrically connected to the PON processing unit 22.
The optical transceiver 21 converts optical signals and electrical signals into each other. That is, the optical transceiver 21 converts an uplink signal composed of an optical signal from the ONU 12 into an electric signal. The optical transceiver 21 converts a downlink signal composed of an electric signal from the PON processing unit 22 into an optical signal.

PON処理部22は、PONの通信規格に則った所定の通信処理などを実行する集積回路よりなる。
PON処理部22は、上り信号がONU12からの制御フレーム(レポート)である場合、当該ONU12についての上り方向の送信開始時刻及び送信許可量を決定し、制御フレーム(グラント)を当該ONU12に通知する。
The PON processing unit 22 includes an integrated circuit that executes predetermined communication processing or the like in accordance with the PON communication standard.
When the uplink signal is a control frame (report) from the ONU 12, the PON processing unit 22 determines the transmission start time and the transmission permission amount in the uplink direction for the ONU 12, and notifies the ONU 12 of the control frame (grant). ..

PON処理部22は、上り信号に含まれるフレームが上位ネットワーク50へのデータフレームである場合、そのフレームをL2スイッチ23に送信する。
PON処理部22は、下り信号に含まれるフレームがONU12へのデータフレームである場合、そのフレームを光トランシーバ21に送信させる。
When the frame included in the uplink signal is a data frame to the upper network 50, the PON processing unit 22 transmits the frame to the L2 switch 23.
When the frame included in the downlink signal is a data frame to the ONU 12, the PON processing unit 22 causes the optical transceiver 21 to transmit the frame.

L2スイッチ23は、受信したL2レイヤのフレームの宛先に応じて送信ポートを決定する集積回路よりなる。
L2スイッチ23は、上位ネットワーク50からの下り信号に含まれるフレームがONU12宛てである場合、そのフレームを自装置のPON処理部22に送信する。
The L2 switch 23 comprises an integrated circuit that determines a transmission port according to the destination of the received frame of the L2 layer.
When the frame included in the downlink signal from the upper network 50 is addressed to the ONU 12, the L2 switch 23 transmits the frame to the PON processing unit 22 of its own device.

L2スイッチ23は、PON処理部22からの上り信号に含まれるフレームが上位ネットワーク50へのデータフレームである場合、そのフレームを上位ネットワーク50に送信する。
L2スイッチ23は、PON処理部22からの上り信号に含まれるフレームが制御部24宛ての管理フレームである場合、そのフレームを制御部24に送信する。
When the frame included in the uplink signal from the PON processing unit 22 is a data frame to the upper network 50, the L2 switch 23 transmits the frame to the upper network 50.
When the frame included in the uplink signal from the PON processing unit 22 is a management frame addressed to the control unit 24, the L2 switch 23 transmits the frame to the control unit 24.

制御部24は、L2スイッチ23の専用ポートに接続されており、PON回線13を用いてONU12の制御部と通信することができる。制御部24は、パーソナルコンピュータ(PC)等よりなる外部装置25と通信可能に接続される。 The control unit 24 is connected to the dedicated port of the L2 switch 23, and can communicate with the control unit of the ONU 12 using the PON line 13. The control unit 24 is communicably connected to an external device 25 made of a personal computer (PC) or the like.

制御部24は、ハードウェアプロセッサであるCPU241と、フラッシュメモリ、ハードディスク等の非一過性メモリ242と、RAMである一過性メモリ243とを備える。 The control unit 24 includes a CPU 241 which is a hardware processor, a non-transient memory 242 such as a flash memory and a hard disk, and a transient memory 243 which is a RAM.

非一過性メモリ242には、制御プログラム300が記憶(インストール)される。制御プログラム300は、L2スイッチ23を制御することで、OLT11による通信を制御するためのプログラムである。制御プログラム300は、N個のプログラムモジュール(第1モジュール300_1、第2モジュール300_2、第3モジュール300_3、…、第Nモジュール300_N)を有する。 The control program 300 is stored (installed) in the non-transient memory 242. The control program 300 is a program for controlling communication by the OLT 11 by controlling the L2 switch 23. The control program 300 has N program modules (first module 300_1, second module 300_2, third module 300_3, ..., Nth module 300_N).

非一過性メモリ242には、起動設定情報350が記憶される。起動設定情報350は、制御プログラム300の起動処理において読み出され、制御プログラム300の設定に用いられる設定情報である。 The activation setting information 350 is stored in the non-transient memory 242. The activation setting information 350 is setting information that is read out in the activation process of the control program 300 and is used for setting the control program 300.

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 CPU 241 executes the control program 300. When the control program 300 is started, the first module 300_1, the second module 300_2, the third module 300_3, ..., The Nth module 300_N are read from the non-transient memory 242 and expanded in the transient memory 243. That is, the control program 300 is loaded into the transient memory 243 and stored in the transient memory 243 as the expanded control program 400. The control program 400 includes N program modules (first module 400_1, second module 400_2, third module 400_3, ..., Nth module 400_N).

一過性メモリ243には、稼働設定情報450が記憶される。稼働設定情報450は、稼働中の制御プログラム400において読み出され、制御プログラム400の設定に用いられる設定情報である。 The operation setting information 450 is stored in the transient memory 243. The operation setting information 450 is setting information read by the operating control program 400 and used for setting the control program 400.

非一過性メモリ242には、制御プログラムの更新及び各プログラムモジュールの設定を行うための更新設定プログラム370が記憶される。OLT11は、コンピュータを備えて構成され、OLT11の制御プログラムの更新及び各プログラムモジュールの設定機能は、前記コンピュータの記憶装置に記憶されたコンピュータプログラムである更新設定プログラム370がCPU241によって実行されることで発揮される。更新設定プログラム370は、CD-ROMなどの記録媒体に記憶させることができる。CPU241は、更新設定プログラム370を実行することができる。CPU241が更新設定プログラム370を実行することにより、OLT11は後述するようなプログラム更新処理及び異常監視処理を実行することができる。 The non-transient memory 242 stores an update setting program 370 for updating the control program and setting each program module. The OLT 11 is configured to include a computer, and the update of the control program of the OLT 11 and the setting function of each program module are performed by the CPU 241 executing the update setting program 370, which is a computer program stored in the storage device of the computer. It is demonstrated. The update setting program 370 can be stored in a recording medium such as a CD-ROM. The CPU 241 can execute the update setting program 370. When the CPU 241 executes the update setting program 370, the OLT 11 can execute the program update process and the abnormality monitoring process as described later.

[3.制御プログラムの更新]
本実施形態に係るOLT11における制御プログラムの更新について説明する。
[3. Control program update]
The update of the control program in OLT 11 according to this 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 showing an example of the configuration of the non-transient memory 242 and the transient memory 243 immediately after the control program 400 is started. In the example of FIG. 3, the initial value of the parameter P1 for the first module 400_1 is SV1, the initial value of the parameter P2 for the second module 400_1 is SV2, and the initial value of the parameter P3 for the third module 400_1 is SV1. It is SV3. P1 = SV1, P2 = SV2, P3 = SV3, ... Are stored in the activation setting information 350. In the start processing of the first module 400_1, the second module 400_2, the third module 400_3, ..., The CPU 241 reads the start setting information 350 and sets P1 = SV1, P2 = SV2, P3 = SV3, ... After the modules 400_1, 400_2, 400_3, ... Are set, the activation setting information 350 is copied to the operation setting information 450. Therefore, the operation setting information 450 immediately after the start of the control program 400 matches the start setting information 350.

図4は、稼働中の制御プログラム400の設定情報が変更される場合の非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。制御プログラム400が実行されOLT11が稼働している間、制御プログラム400における設定情報が変更されることがある。稼働中の制御プログラム400が設定情報を取得する場合、非一過性メモリ242内の起動設定情報350ではなく、一過性メモリ243内の稼働設定情報450を参照する。このため、稼働中の制御プログラム400の新たな設定情報は、起動設定情報350ではなく、稼働設定情報450に書き込まれる。 FIG. 4 is a schematic diagram showing an example of the configuration of the non-transient memory 242 and the transient memory 243 when the setting information of the operating control program 400 is changed. While the control program 400 is executed and the OLT 11 is operating, the setting information in the control program 400 may be changed. When the operating control program 400 acquires the setting information, it refers to the operation setting information 450 in the transient memory 243 instead of the startup setting information 350 in the non-transient memory 242. Therefore, the new setting information of the control program 400 in operation is written in the operation setting information 450 instead of the activation setting information 350.

図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 operation setting information 450, P1 = SV1, P2 = SV20, P3 = SV30. On the other hand, in the activation setting information 350, P1 = SV1, P2 = SV2, P3 = SV3. In this way, the operation setting information 450 and the start setting information 350 are different from each other.

本実施形態に係る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 its own device. In addition, the OLT 11 can also execute a normal update process of restarting its own device and updating the control program. When updating the control program, for example, a new control program (hereinafter referred to as "pre-update program") is updated from the server of the external device 25 or the upper network 50 while the pre-update control program (hereinafter referred to as "pre-update program") 400 is operating. , "Update program") is sent to OLT11.

図5は、OLT11に更新プログラムが与えられた直後における非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。OLT11は、更新前プログラム300を残したまま、更新プログラム330を非一過性メモリ242にインストールする。これにより、非一過性メモリ242には、更新前プログラム300と、更新プログラム330とが併存する。 FIG. 5 is a schematic diagram showing an example of the configuration of the non-transient memory 242 and the transient memory 243 immediately after the update program is given to the OLT 11. The OLT 11 installs the update program 330 in the non-transient memory 242 while leaving the pre-update program 300. As a result, the pre-update program 300 and the update program 330 coexist in the non-transient memory 242.

図6は、稼働設定情報450が起動設定情報350に複写されない場合の非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。 FIG. 6 is a schematic diagram showing an example of the configuration of the non-transient memory 242 and the transient memory 243 when the operation setting information 450 is not copied to the activation setting information 350.

本実施の形態においては、更新プログラム430に含まれるプログラムモジュールには2種類が存在する。第1の種類のプログラムモジュールは、一過性メモリ243に記憶された設定情報により設定することが可能なプログラムモジュールである。本実施形態では、第1の種類のプログラムモジュールの設定情報が、稼働設定情報450から一過性メモリ243の稼働設定情報450とは異なる領域に構成引継情報として複写され、その領域のアドレスが当該モジュールに通知される。CPU241は、通知されたアドレスから設定情報を読み出して、第1の種類のプログラムモジュールを設定する。 In the present embodiment, there are two types of program modules included in the update program 430. The first type of program module is a program module that can be set by the setting information stored in the transient memory 243. In the present embodiment, the setting information of the first type of program module is copied from the operation setting information 450 to an area different from the operation setting information 450 of the transient memory 243 as configuration takeover information, and the address of that area is the relevant area. Notify the module. The CPU 241 reads the setting information from the notified address and sets the first type of program module.

更新前プログラム400における第1の種類のプログラムモジュールが起動した状態で、更新プログラム430における第1の種類のプログラムモジュールは起動する。つまり、更新前プログラム400における第1の種類のプログラムモジュールが一過性メモリ243に展開された状態で、更新プログラム430における第1の種類のプログラムモジュールも一過性メモリ243に展開される。 The first type of program module in the update program 430 is started in the state where the first type of program module in the pre-update program 400 is started. That is, in a state where the program module of the first type in the pre-update program 400 is expanded in the transient memory 243, the program module of the first type in the update program 430 is also expanded in the transient memory 243.

更新プログラム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 update program 430 is set by the configuration takeover information, the first type program module in the pre-update program 400 also continues to be executed. In the example of FIG. 6, the first type of program module is the first module and the second module. While the first module 400_1 in the pre-update program 400 is operating, the setting value of the parameter P1 which is the setting information for the first module 400_1 is configured in an area different from the operation setting information 450 in the transient memory 243. It is stored as takeover information. Further, while the first module 400_1 is in operation, the first module 430_1 in the update program 430 is set by the configuration takeover information. That is, during the setting of the first module 430_1, the first module 400_1 before the update and the first module 430_1 after the update are executed at the same time. Similarly, while the second module 400_2 in the pre-update program 400 is operating, the configuration takeover information (setting value of P2) in which the second module 430_2 in the update program 430 is stored in an area different from the operation setting information 450. ). By doing so, one CPU 241 can update the first module and the second module without stopping the functions realized by the first module and the second module. After setting the first module 430_1 after the update, the first module 400_1 before the update is stopped, and the area of the first module 400_1 of the transient memory 243 is released. Similarly, after the setting of the second module 430_2 after the update, the second module 400_2 before the update is stopped, and the area of the second module 400_2 of the transient memory 243 is released.

第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 setting the first type of program module, the address of the setting information of the module in the operation setting information 450 is notified to the module, and the setting information directly read from the operation setting information 450 is used. Modules may be set. That is, in the setting of the first module 430_1, the address of the set value of the parameter P1 in the operation setting information 450 is notified to the first module 430_1, and the CPU 241 sets the first module 430_1 according to the set value of P1 at the address. Can be done. Similarly, in the setting of the second module 430_2, the address of the setting value of the parameter P2 in the operation setting information 450 is notified to the second module 430_2, and the CPU 241 sets the second module 430_2 according to the setting value of P2 at the address. be able to.

第2の種類のプログラムモジュールは、非一過性メモリ242に記憶された設定情報により設定されるプログラムモジュールである。本実施形態では、CPU241は、非一過性メモリ242から起動設定情報350を読み出して、第2の種類のプログラムモジュールを設定する。 The second type of program module is a program module set by the setting information stored in the non-transient memory 242. In the present embodiment, the CPU 241 reads the start setting information 350 from the non-transient memory 242 and sets the second type of program module.

更新前プログラム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 pre-update program 400 is stopped, the second type of program module in the update program 430 is started, and the module is set by the start setting information 350. That is, after the area in the transient memory 243 of the second type program module in the pre-update program 400 is released, the second type program module in the update program 430 is expanded in the transient memory 243. .. In the example of FIG. 6, the second type of program module is the third module. The third module 400_3 in the pre-update program 400 is stopped, and then the third module 430_3 in the update program 430 is started. The setting value of the parameter P3, which is the setting information for the third module 430_3, is read from the activation setting information 350 in the non-transient memory 242, and the third module 430_3 is set. The third modules 400_3 and 430_3 before and after the update are not executed at the same time. By doing so, it is possible to set the updated third module 430_3, which cannot be executed at the same time as the updated third module 400_3.

第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, the processing related to the maintenance function of the OLT 11. Therefore, the second type of program module is updated without stopping the control of communication.

しかし、稼働設定情報450が変更されていると、起動設定情報350と稼働設定情報450とが異なった状態となる。よって、この状態で更新プログラム430の各プログラムモジュールの設定を行うと、第1の種類のプログラムモジュールは稼働設定情報450から得られた設定情報によって設定され、第2の種類のプログラムモジュールは起動設定情報350から得られた設定情報によって設定されるため、両モジュール間で設定の不整合が発生する。つまり、第3モジュール430_3は、稼働設定情報450に含まれるP3=SV30で設定される必要があるが、起動設定情報350に含まれるP3=SV3で設定されてしまう。 However, when the operation setting information 450 is changed, the start setting information 350 and the operation setting information 450 are in different states. Therefore, if each program module of the update program 430 is set in this state, the first type of program module is set by the setting information obtained from the operation setting information 450, and the second type of program module is set to start. Since it is set by the setting information obtained from the information 350, a setting inconsistency occurs between both modules. That is, the third module 430_3 needs to be set by P3 = SV30 included in the operation setting information 450, but is set by P3 = SV3 included in the activation setting information 350.

本実施形態に係るOLT11では、更新後のプログラムモジュールの設定を行う前に、稼働設定情報450の一部又は全部を起動設定情報350に複写し、稼働設定情報450と起動設定情報350とを整合させる。これにより、第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとの間における設定の不整合を防止することができる。 In the OLT 11 according to the present embodiment, before setting the updated program module, a part or all of the operation setting information 450 is copied to the start setting information 350, and the operation setting information 450 and the start setting information 350 are matched. Let me. This makes it possible to prevent inconsistencies in the settings between the first type of program module and the second type of program module.

図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 showing an example of the configuration of the non-transient memory 242 and the transient memory 243 when the operation setting information 450 is copied to the activation setting information 350. In the example of FIG. 7, P1 = SV1, P2 = SV20, P3 = SV30, ... In both the operation setting information 450 and the start setting information 350. That is, the activation setting information 350 matches the operation setting information 450. When the setting of each program module of the update program 430 is performed in such a state, the inconsistency of the setting between the program module of the first type and the program module of the second type is prevented. That is, the first module 430_1 is set by P1 = SV1 included in the operation setting information 450, the second module 430_1 is set by P2 = SV20 included in the operation setting information 450, and the third module 430_3 is set in the start setting information 350. It is set by included P3 = SV30.

[4.OLT11の制御プログラム更新における動作]
本実施形態に係るOLT11における制御プログラムの更新の動作について説明する。
[4. Operation in updating the control program of OLT11]
The operation of updating the control program in OLT 11 according to the present embodiment will be described.

CPU241は、更新設定プログラム370(図2参照)を実行することにより、プログラム更新処理を実行する。図8は、プログラム更新処理の手順を示すフローチャートである。 The CPU 241 executes the program update process by executing the update setting program 370 (see FIG. 2). FIG. 8 is a flowchart showing the procedure of the program update process.

プログラム更新処理において、まず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, the CPU 241 first determines whether or not the update condition is satisfied (step S101). The update condition is a condition for updating the control program 300. The update condition may be selected from the following conditions (1) to (5). Further, a plurality of conditions (1) to (5) may be combined as an update condition. For example, the fact that all of the plurality of conditions selected from (1) to (5) are satisfied may be regarded as the establishment of the update condition, or the plurality of conditions selected from (1) to (5) may be satisfied. If any one of them is satisfied, the renewal condition may be satisfied.
(1) The difference between the operation setting information 450 and the start setting information 350 is a predetermined amount or more.
(2) At least a part of the operation setting information 450 is changed.
(3) An update instruction for the control program 300 is given.
(4) The predetermined update time is reached.
(5) Among the information belonging to a plurality of classifications included in the operation setting information 450, the information belonging to a specific classification is changed.

(1)において、差分が所定量以上とは、例えば、稼働設定情報450と起動設定情報350との間で異なる設定値の数が所定値以上とすることができ、また、異なる設定値のデータ容量が所定値以上とすることができる。また、(3)において、更新指示は、例えば外部装置25又は上位ネットワーク50のサーバから与えられることができる。また、(4)において、通信トラフィックが少ない夜間の時刻(例えば、2時)を更新時刻とすることができる。 In (1), the difference is equal to or more than a predetermined amount, for example, the number of different set values between the operation setting information 450 and the start setting information 350 can be equal to or more than the predetermined value, and the data of different set values. The capacity can be set to a predetermined value or more. Further, in (3), the update instruction can be given from, for example, the server of the external device 25 or the upper network 50. Further, in (4), the nighttime time (for example, 2 o'clock) when the communication traffic is low can be set as the update time.

(5)において、設定情報を複数種類に分類することができる。例えば、通信に関する設定情報は「通信」に分類され、保守に関する設定情報は「保守」に分類されてもよい。このようにして分類された設定情報のうち、特定の分類(例えば、「通信」)に属する情報が変更されれば、(5)の条件が成立する。また、(2)の条件と(5)の条件とは一部が重複するため、更新条件にはいずれか1つが含まれてもよい。 In (5), the setting information can be classified into a plurality of types. For example, the setting information related to communication may be classified into "communication", and the setting information related to maintenance may be classified into "maintenance". If the information belonging to a specific classification (for example, "communication") is changed among the setting information classified in this way, the condition (5) is satisfied. Further, since the condition (2) and the condition (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), the CPU 241 executes step S101 again.

更新条件が成立した場合(ステップS101においてYES)、CPU241は、無停止更新処理を実行するか否かを判定する(ステップS102)。無停止更新処理を実行するか否かの判定には、例えば、与えられた更新指示における無停止更新処理が指定の有無が用いられる。 When the update condition is satisfied (YES in step S101), the CPU 241 determines whether or not to execute the non-stop update process (step S102). For the determination of whether or not to execute the non-stop update process, for example, whether or not the non-stop update process is specified in the given update instruction is used.

無停止更新処理を実行すると判定された場合(ステップS102においてYES)、CPU241は、無停止更新処理を実行する(ステップS103)。無停止更新処理を実行すると判定されなかった場合(ステップS102においてNO)、CPU241は、通常更新処理を実行する(ステップS104)。通常更新処理は、OLT11を再起動させて制御プログラムを更新する処理である。無停止更新処理又は通常更新処理が終了すると、CPU241は、プログラム更新処理を終了する。 When it is determined to execute the non-stop update process (YES in step S102), the CPU 241 executes the non-stop update process (step S103). If it is not determined to execute the non-stop update process (NO in step S102), the CPU 241 executes the normal update process (step S104). The normal update process is a process of restarting the OLT 11 and updating the control program. When the non-stop update process or the normal update process is completed, the CPU 241 ends the program update process.

以下、無停止更新処理について説明する。図9は、無停止更新処理の手順を示すフローチャートである。 Hereinafter, the non-stop update process will be described. FIG. 9 is a flowchart showing 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, the CPU 241 first copies a part or all of the operation setting information 450 to the start setting information 350 (step S201). As a result, the start setting information 350 is aligned with the operation setting information 450. In this process, among the operation setting information 450, the difference information different from the activation setting information 350 may be copied to the activation setting information 350. Further, all of the operation setting information 450 may be copied to the activation setting information 350.

CPU241は、非一過性メモリ242に更新前プログラム300が記憶された状態で、更新プログラム330をインストールする(ステップS202)。つまり、非一過性メモリ242では、更新前プログラム300に更新プログラム330が上書きされるのではなく、更新前プログラム300とは別に、更新プログラム330が追加される。 The CPU 241 installs the update program 330 in a state where the pre-update program 300 is stored in the non-transient memory 242 (step S202). That is, in the non-transient memory 242, the update program 330 is not overwritten on the pre-update program 300, but the update program 330 is added separately from the pre-update program 300.

CPU241は、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nの全てに対して、終了の告知を行う(ステップS203)。 The CPU 241 notifies the end of all of the first module 400_1, the second module 400_2, the third module 400_3, ..., And the Nth module 400_N of the pre-update program 400 (step S203).

次にCPU241は、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nのうち、一過性メモリ243に記憶された設定情報により設定することが可能なプログラムモジュール、つまり、第1の種類のプログラムモジュールについて、更新前のモジュールから更新後のモジュールへと引き継ぐ設定情報(構成引継情報)を一過性メモリ243に記憶する(ステップS204)。この処理では、稼働設定情報450のうち、第1の種類のプログラムの設定情報が構成引継情報として一過性メモリ243に記憶される。 Next, the CPU 241 may be set by the setting information stored in the transient memory 243 among the first module 400_1, the second module 400_2, the third module 400_3, ..., The Nth module 400_N of the pre-update program 400. Regarding the possible program module, that is, the first type of program module, the setting information (configuration takeover information) to be inherited from the module before the update to the module after the update is stored in the transient memory 243 (step S204). In this process, among the operation setting information 450, the setting information of the first type program is stored in the transient memory 243 as the configuration takeover information.

CPU241は、プログラムモジュールのインデックスである変数Mの値を初期化(M=1)する(ステップS205)。CPU241は、変数Mの値が、制御プログラムにおけるモジュール数N以下であるか否かを判定する(ステップS206)。 The CPU 241 initializes (M = 1) the value of the variable M, which is the index of the program module (step S205). The CPU 241 determines whether or not the value of the variable M is equal to or less than the number of modules N in the control program (step S206).

N≧Mの場合(ステップS206においてYES)、CPU241は、更新前の第Mモジュールから更新後の第Mモジュールへ引き継がれる設定情報があるか否か、即ち、第Mモジュールが第1の種類のプログラムモジュールであるか否かを判定する(ステップS207)。 When N ≧ M (YES in step S206), the CPU 241 has whether or not there is setting information to be inherited from the M module before the update to the M module after the update, that is, the M module is of the first type. It is determined whether or not it is a program module (step S207).

更新前の第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が展開される。 When there is setting information inherited from the M module 400_M before the update to the M module 430_M after the update, that is, when the M module is the first type of program module (YES in step S207), the CPU 241 is updated. The M module 430_M of the update program 430 is started without stopping the M module 400_M of the previous program (step S208). That is, in the transient memory 243, the M module 430_M of the update program 430 is expanded while the M module 400_M of the pre-update program 400 is expanded.

CPU241は、第Mモジュールの設定情報の引継を行う(ステップS209)。この処理では、一過性メモリ243から更新引継情報がCPU241によって読み出され、更新プログラム430の第Mモジュール430_Mが設定される。 The CPU 241 takes over the setting information of the M module (step S209). In this process, the update takeover information is read from the transient memory 243 by the CPU 241 and the M module 430_M of the update program 430 is set.

CPU241は、更新前プログラム400の第Mモジュール400_Mを停止する(ステップS210)。これにより、一過性メモリ243における更新前プログラム400の第Mモジュール400_Mの領域が開放される。 The CPU 241 stops the M module 400_M of the pre-update program 400 (step S210). As a result, the area of the M module 400_M of the pre-update program 400 in the transient memory 243 is released.

次にCPU241は変数Mの値をインクリメントし(ステップS214)、処理をステップS206へ移す。 Next, the CPU 241 increments the value of the variable M (step S214), and shifts the process to step S206.

他方、更新前の第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 to be inherited from the M module 400_M before the update to the M module 430_M after the update, that is, when the M module is a second type program module (NO in step S207), the CPU 241 , The M module 400_M of the pre-update program 400 is stopped (step S211). As a result, the area of the M module 400_M of the pre-update program 400 in the transient memory 243 is released.

その後、CPU241は、更新プログラム430の第Mモジュール430_Mを起動する(ステップS212)。つまり、一過性メモリ243において、更新前プログラム400の第Mモジュール400_Mが存在しない状態で、更新プログラム430の第Mモジュール430_Mが展開される。 After that, the CPU 241 starts the M module 430_M of the update program 430 (step S212). That is, in the transient memory 243, the M module 430_M of the update program 430 is expanded in a state where the M module 400_M of the pre-update program 400 does not exist.

CPU241は、起動設定情報350から第Mモジュール430_M用の設定情報を読み出し、第Mモジュール430_Mを設定する(ステップS213)。 The CPU 241 reads the setting information for the M module 430_M from the startup setting information 350, and sets the M module 430_M (step S213).

次にCPU241は変数Mの値をインクリメントし(ステップS214)、処理をステップS206へ移す。 Next, the CPU 241 increments the value of the variable M (step S214), and shifts the process to step S206.

以上により、第Nモジュールまで設定が行われる。MがNより大きい場合(ステップS206においてNO)、CPU241は、非一過性メモリ242の起動設定情報350を、一過性メモリ243の稼働設定情報450へ複写する(ステップS215)。これにより、更新プログラム430の起動時における起動設定情報350と稼働設定情報450との同一性が担保される。以上で、無停止更新処理が終了する。 With the above, the setting is performed up to the Nth module. When M is larger than N (NO in step S206), the CPU 241 copies the start setting information 350 of the non-transient memory 242 to the operation setting information 450 of the transient memory 243 (step S215). As a result, the identity between the start setting information 350 and the operation setting information 450 at the time of starting the update program 430 is guaranteed. This completes the non-stop update process.

上記のような無停止更新処理の途中で、OLT11に異常が発生した場合、制御プログラムを正常な状態に復帰させる必要がある。このため、本実施形態にかかるOLT11は、異常監視処理を実行する。以下、異常監視処理について説明する。 If an abnormality occurs in the OLT 11 during the non-stop update process as described above, it is necessary to restore the control program to the normal state. Therefore, the OLT 11 according to the present embodiment executes the abnormality monitoring process. The abnormality monitoring process will be described below.

図10は、異常監視処理の手順を示すフローチャートである。異常監視処理は、無停止更新処理と並行して実行される。 FIG. 10 is a flowchart showing the procedure of abnormality monitoring processing. The error 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 that occurs in the OLT 11, such as a processing abnormality in the control program and a communication error. In the abnormality monitoring process, the CPU 241 first determines whether or not an abnormality in the OLT 11 has been detected (step S301).

異常が検出されない場合(ステップS301においてNO)、CPU241は、再度ステップS301の処理を実行する。 If no abnormality is detected (NO in step S301), the CPU 241 executes the process of step S301 again.

他方、異常が検出された場合(ステップS301においてYES)、CPU241は、プログラム更新処理へ中断を指示する(ステップS302)。これにより、プログラム更新処理が中断される。 On the other hand, when an abnormality is detected (YES in step S301), the CPU 241 instructs the program update process to interrupt (step S302). As a result, the program update process is interrupted.

次にCPU241は、稼働中の全てのプログラムモジュールを停止させる(ステップS303)。さらにCPU241は、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nの全てを起動する(ステップS304)。 Next, the CPU 241 stops all the program modules in operation (step S303). Further, the CPU 241 activates all of the first module 400_1, the second module 400_2, the third module 400_3, ..., And the Nth module 400_N of the pre-update program 400 (step S304).

CPU241は、起動設定情報350を非一過性メモリ242から読み出し、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nの全てを起動設定情報350によって設定する(ステップS305)。以上で、異常監視処理が終了する。 The CPU 241 reads the start setting information 350 from the non-transient memory 242, and starts all of the first module 400_1, the second module 400_1, the third module 400_3, ..., The Nth module 400_N of the pre-update program 400. (Step S305). This completes the error monitoring process.

このような異常監視処理により、無停止更新処理の実行中に、OLT11に異常が発生した場合に、更新前プログラム400が復帰される。 By such an abnormality monitoring process, if an error occurs in the OLT 11 during the execution of the non-stop update process, the pre-update program 400 is restored.

以上のような構成により、本実施形態に係るOLT11は、CPU241が、更新前プログラム400を更新プログラム430に更新する場合に、稼働設定情報の一部又は全部を起動設定情報に複写する処理を実行する。また、CPU241は、稼働設定情報に基づいて更新された第1の種類のプログラムモジュールを設定し、稼働設定情報の一部又は全部が複写された起動設定情報に基づいて、更新された第2の種類のプログラムモジュールを設定する処理と、を実行する。これにより、制御プログラムが更新される場合に、OLT11を停止させることなく、第1の種類のプログラムモジュール及び第2の種類のプログラムモジュールのそれぞれを設定することができる。また、起動設定情報に稼働設定情報の一部又は全部が複写されるため、第1の種類及び第2の種類のそれぞれのプログラムモジュールに用いられる設定情報において不整合の発生を抑制することができる。 With the above 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 start setting information when the CPU 241 updates the pre-update program 400 to the update program 430. do. Further, the CPU 241 sets the program module of the first type updated based on the operation setting information, and the second updated based on the start setting information in which a part or all of the operation setting information is copied. Executes the process of setting the type of program module. Thereby, when the control program is updated, each of the first type program module and the second type program module can be set without stopping the OLT11. Further, since a 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 program modules. ..

また、CPU241は、更新前プログラム400のモジュールが第1の種類のプログラムモジュールである場合、当該モジュールを停止する前に、対応する更新プログラム430のモジュールを起動し、起動されたモジュールを稼働設定情報に基づく構成引継情報によって設定し、更新前モジュールを停止する処理を実行する。また、CPU241は、更新前プログラム400のモジュールが第2の種類のプログラムモジュールである場合、当該モジュールを停止した後に、対応する更新プログラム430のモジュールを起動し、起動されたモジュールを起動設定情報に基づいて設定する処理を実行する。これにより、第1の種類のプログラムモジュールは停止することなく更新される。このため、OLT11の機能を停止させずに制御プログラムの更新を行うことができる。 Further, when the module of the pre-update program 400 is the first type of program module, the CPU 241 starts the module of the corresponding update program 430 before stopping the module, and the started module is used as the operation setting information. Set by the configuration inheritance information based on, and execute the process to stop the module before update. Further, when the module of the pre-update program 400 is a second type of program module, the CPU 241 starts the module of the corresponding update program 430 after stopping the module, and uses the started module as the start setting information. Execute the process to be set based on. As a result, the first type of program module is updated without stopping. Therefore, the control program can be updated without stopping the function of the OLT 11.

また、第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 transient memory 243, and the second type of program module is a non-transient memory 242. It may be a program module set by the setting information stored in. Thereby, the first type module can be set by the configuration takeover information based on the operation setting information 450 stored in the transient memory 243, and the second type module can be set by the non-transient memory 242. It can be set based on the activation setting information 350 stored in.

また、第1の種類のプログラムモジュールは、通信の制御を実行するプログラムモジュールであり、第2の種類のプログラムモジュールは、通信の制御以外の処理を実行するプログラムモジュールであってもよい。これにより、通信の制御を停止させることなく、制御プログラムを更新することができる。 Further, 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. As a result, the control program can be updated without stopping the control of communication.

また、稼働設定情報450のうち起動設定情報350とは異なる差分情報を、起動設定情報350に複写してもよい。これにより、稼働設定情報450の全てを一括して起動設定情報350に複写しなくても、稼働設定情報450と起動設定情報350とを整合させることができる。 Further, the difference information of the operation setting information 450, which is different from the activation setting information 350, may be copied to the activation setting information 350. As a result, the operation setting information 450 and the start setting information 350 can be matched without copying all of the operation setting information 450 to the start setting information 350 at once.

また、所定の更新条件が成立した場合に、稼働設定情報450の一部又は全部を起動設定情報350に複写する処理を実行してもよい。これにより、更新条件の成立により、制御プログラムの更新を開始することができる。 Further, when a predetermined update condition is satisfied, a process of copying a part or all of the operation setting information 450 to the activation setting information 350 may be executed. As a result, the update of the control program can be started when the update condition is satisfied.

また、更新条件は、稼働設定情報450と起動設定情報350との差分が所定量以上となること、稼働設定情報450が変更されること、制御プログラム300の更新指示が与えられること、予め決められた更新時刻に到達すること、及び、稼働設定情報450に含まれる複数の分類に属する情報のうち特定の分類に属する情報が変更されること、の少なくとも1つであってもよい。これにより、様々な条件を更新条件に設定することができる。 Further, the update conditions are determined in advance that the difference between the operation setting information 450 and the start setting information 350 is a predetermined amount or more, the operation setting information 450 is changed, and the update instruction of the control program 300 is given. It may be at least one of reaching the update time and changing the information belonging to a specific classification among the information belonging to a plurality of classifications included in the operation setting information 450. This makes it possible to set various conditions as update conditions.

また、制御プログラムが更新される間に異常を検出した場合、稼働中の全モジュールを停止した後、更新前プログラム400のモジュールのそれぞれを起動し、起動されたモジュールを起動設定情報350に基づいて設定する異常監視処理を実行してもよい。これにより、OLT11に異常が発生した場合、更新前の制御プログラム300に戻すことで、異常から復帰することができる。 If an abnormality is detected while the control program is updated, all the running modules are stopped, each of the modules of the pre-update program 400 is started, and the started module is started based on the start setting information 350. You may execute the abnormality monitoring process to be set. As a result, when an abnormality occurs in the OLT 11, it is possible to recover from the abnormality by returning to the control program 300 before the update.

異常は、通信エラーを含んでもよい。制御プログラムの更新が適切に行われなかった場合、正常な通信が行われず、通信エラーが発生する可能性がある。通信エラーが生じた場合に、更新前の制御プログラムに戻すことで、通信エラーを解消できる可能性がある。 The anomaly may include a communication error. If the control program is not updated properly, normal communication may not be performed and a communication error may occur. If a communication error occurs, it may be possible to eliminate the communication error by returning to the control program before the update.

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

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)
12 Home-side equipment 13 PON line 14 Optical splitter 15 Trunk optical fiber 16 Branch optical fiber 21 Optical transceiver 22 PON processing unit 23 L2 switch 24 Control unit 25 External device 26 Communication interface 50 Upper network 241 CPU
242 Non-transient memory 243 Transient memory 300,330,400,430 Control program 300_1,300_2,300_3 ... Program module 330_1,330_2,330_3 ... Program module 350 Startup setting information 370 Update setting program 400_1,400_2 400_3, ... Program module 430_1, 430_2,430_3, ... Program module 450 Operation setting information

Claims (10)

通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、
前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、
プロセッサと、
を備え、
前記プロセッサは、自装置を稼働させたまま前記制御プログラムを更新する場合に、
前記稼働設定情報の一部又は全部を前記起動設定情報に複写する処理と、
前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定する処理と、
前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する処理と、
を実行する、
通信装置。
A non-transient memory that stores startup setting information, 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 the startup process, and
A transient memory for storing operation setting information, which is setting information referred to by the first type program module and the second type program module during operation, and
With the processor
Equipped with
When the processor updates the control program while the own device is running, the processor updates the control program.
A process of copying a part or all of the operation setting information to the activation setting information,
The process of setting the updated program module of the first type based on the operation setting information, and
A process of setting an updated program module of the second type based on the start setting information in which a part or all of the operation setting information is copied.
To execute,
Communication device.
前記プロセッサは、前記第1の種類のプログラムモジュールを更新する場合、
更新前の前記第1の種類のプログラムモジュールを停止する前に、更新後の前記第1の種類のプログラムモジュールを起動する処理と、
前記稼働設定情報に基づいて、前記更新後の第1の種類のプログラムモジュールを設定する処理と、
前記更新前の第1の種類のプログラムモジュールを停止する処理と、
を実行し、
前記プロセッサは、前記第2の種類のプログラムモジュールを更新する場合、
更新前の前記第2の種類のプログラムモジュールを停止する処理と、
前記更新前の第2の種類のプログラムモジュールを停止した後に、更新後の前記第2の種類のプログラムモジュールを起動する処理と、
前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、前記更新後の第2の種類のプログラムモジュールを設定する処理と、
を実行する、
請求項1に記載の通信装置。
When the processor updates the first type of program module,
Before stopping the program module of the first type before the update, the process of starting the program module of the first type after the update, and
The process of setting the first type of program module after the update based on the operation setting information, and
The process of stopping the first type of program module before the update, and
And run
When the processor updates the second type of program module,
The process of stopping the second type of program module before the update, and
After stopping the second type of program module before the update, the process of starting the second type of program module after the update, and
A process of setting a second type of program module after the update based on the start setting information in which a part or all of the operation setting information is copied.
To execute,
The communication device according to claim 1.
前記第1の種類のプログラムモジュールは、前記一過性メモリに記憶された設定情報により設定されることが可能なプログラムモジュールであり、
前記第2の種類のプログラムモジュールは、前記非一過性メモリに記憶された設定情報により設定されるプログラムモジュールである、
請求項1又は2に記載の通信装置。
The first type of program module is a program module that can be set by the setting information stored in the transient memory.
The second type of program module is a program module set by the setting information stored in the non-transient memory.
The communication device according to claim 1 or 2.
前記第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 communication control.
The communication device according to any one of claims 1 to 3.
前記複写する処理は、前記稼働設定情報のうち前記起動設定情報とは異なる情報を、前記起動設定情報に複写する処理である、
請求項1から請求項4のいずれか1項に記載の通信装置。
The copying process is a process of copying information different from the activation setting information among the operation setting information to the activation setting information.
The communication device according to any one of claims 1 to 4.
前記プロセッサは、所定の更新条件が成立した場合に、前記複写する処理を実行する、
請求項1から請求項5のいずれか1項に記載の通信装置。
The processor executes the copying process when a predetermined update condition is satisfied.
The communication device according to any one of claims 1 to 5.
前記更新条件は、前記稼働設定情報と前記起動設定情報との差分が所定量以上となること、前記稼働設定情報が変更されること、制御プログラムの更新指示が与えられること、予め決められた更新時刻に到達すること、及び、前記稼働設定情報に含まれる複数の分類に属する情報のうち特定の分類に属する情報が変更されること、の少なくとも1つである、
請求項6に記載の通信装置。
The update conditions are that the difference between the operation setting information and the activation setting information is a predetermined amount or more, the operation setting information is changed, an update instruction of the control program is given, and a predetermined update. At least one of reaching the time and changing the information belonging to a specific classification among the information belonging to the plurality of classifications included in the operation setting information.
The communication device according to claim 6.
前記プロセッサは、前記制御プログラムが更新される間に異常を検出した場合、稼働中の前記プログラムモジュールの全てを停止した後、更新前の前記プログラムモジュールのそれぞれを起動し、起動された前記更新前のプログラムモジュールを前記起動設定情報に基づいて設定する処理を実行する、
請求項1から請求項7のいずれか1項に記載の通信装置。
When the processor detects an abnormality while the control program is updated, the processor stops all of the running program modules, then starts each of the program modules before the update, and is started before the update. Executes the process of setting the program module of
The communication device according to any one of claims 1 to 7.
前記異常は、通信エラーを含む、
請求項8に記載の通信装置。
The abnormality includes a communication error.
The communication device according to claim 8.
通信のための制御プログラムに含まれる第1の種類のプログラムモジュールと第2の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第1の種類のプログラムモジュールと前記第2の種類のプログラムモジュールとが稼働中に参照する設定情報である稼働設定情報を記憶する一過性メモリと、プロセッサと、を備える通信装置の設定方法であって、
前記通信装置を稼働させたまま前記制御プログラムを更新する場合に、
前記プロセッサが、前記稼働設定情報の一部又は全部を前記起動設定情報に複写し、
前記プロセッサが、前記稼働設定情報に基づいて、更新された前記第1の種類のプログラムモジュールを設定し、
前記プロセッサが、前記稼働設定情報の一部又は全部が複写された前記起動設定情報に基づいて、更新された前記第2の種類のプログラムモジュールを設定する、
通信装置の設定方法。
A non-transient memory for storing startup 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 startup process, and the above-mentioned A method of setting a communication device including a transient memory for storing operation setting information, which is setting information referred to by the first type of program module and the second type of program module during operation, and a processor. There,
When updating the control program while the communication device is operating,
The processor copies a part or all of the operation setting information to the activation setting information.
The processor sets up the updated program module of the first type based on the operation setting information.
The processor sets the updated program module of the second type based on the boot setting information in which a part or all of the operation setting information is copied.
How to set up the communication device.
JP2018177929A 2018-09-21 2018-09-21 Communication device and setting method of communication device Active JP7087876B2 (en)

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 JP2020052453A (en) 2020-04-02
JP7087876B2 true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
JP7655066B2 (en) 2021-04-22 2025-04-02 住友電気工業株式会社 COMMUNICATION DEVICE, SOFTWARE UPDATE METHOD, AND COMPUTER PROGRAM

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5023009B2 (en) * 2008-07-10 2012-09-12 株式会社日立製作所 Network device management device
JP6683566B2 (en) * 2016-07-29 2020-04-22 日本電信電話株式会社 Communication device, design method, and computer program

Also Published As

Publication number Publication date
JP2020052453A (en) 2020-04-02

Similar Documents

Publication Publication Date Title
US10762033B2 (en) Method and apparatus for updating server firmware in server, and server
US10437680B2 (en) Relay apparatus, relay method, and computer program product
KR20100066576A (en) Firmware image update and management
CN112612524A (en) Method, device and equipment for starting Linux system and storage medium
US20230169172A1 (en) Resilient software update architecture for embedded systems
EP2642388B1 (en) Standby system device, control method, and program thereof
CN111176703A (en) In-band firmware upgrade method, device, computer system and storage medium
CN112579114B (en) Program upgrading method and device of Internet of things equipment and Internet of things equipment
JP7087876B2 (en) Communication device and setting method of communication device
JP2008299709A (en) Firmware updating system, network connection apparatus, firmware updating method, and program
US9794121B2 (en) System upgrade method and device
US9720755B2 (en) Information processing device
CN112788441A (en) Mode control method, device, storage medium and equipment of optical network unit
CN104580360A (en) System and method for updating firmware through heterogeneous network
CN111344962A (en) Network interface switching method of optical network unit and optical network unit
JP7581667B2 (en) COMMUNICATION SYSTEM, COMMUNICATION CONTROL DEVICE, AND CONTROL PROGRAM UPDATE METHOD
CN113923543A (en) ONU (optical network Unit) self-adaptive switching method, ONU, equipment and storage medium
US10491544B2 (en) Consistency control of a logical path passing through a relay device
CN103634710B (en) A kind of method and apparatus of load application version file
EP4086756A1 (en) Method and apparatus for processing virtual machine component
US10396890B2 (en) Information processing apparatus, method and non-transitory computer-readable storage medium
CN113190246A (en) Software program upgrading method and device, readable storage medium and electronic equipment
JP2021019236A (en) Communication device, setting method, and computer program
JP7747910B2 (en) Downstream signal synchronization method and system
JP2017005608A (en) Optical transceiver and optical transceiver control 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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250