JP2020052453A - Communication apparatus and setting method of communication apparatus - Google Patents

Communication apparatus and setting method of communication apparatus Download PDF

Info

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
Application number
JP2018177929A
Other languages
Japanese (ja)
Other versions
JP7087876B2 (en
Inventor
中村 邦彦
Kunihiko Nakamura
邦彦 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to 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)

Abstract

To update a control program without stopping a communication apparatus.SOLUTION: A communication apparatus includes: a non-transient memory that stores activation setting information that is setting information to which a first type program module and a second type program module included in a control program for communication refer during activation processing; a transient memory that stores operation setting information that is setting information to which the first type program module and the second type program module refer during operation; and a processor. When updating the control program while operating an own apparatus, the processor executes: processing for copying a part or the whole of the operation setting information on the activation setting information; processing for setting the updated first type program module based on the operation setting information; and processing for setting the updated second type program module based on the activation setting information obtained by copying a part or the whole of the operation setting information.SELECTED DRAWING: Figure 9

Description

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

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

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

通信装置の制御プログラムを更新する場合、通信装置は、自装置を再起動して更新後の制御プログラム全体を一過性メモリである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.

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

<本発明の実施形態の概要>
以下、本発明の実施形態の概要を列記して説明する。
(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 communication system 10 is an optical access system, and includes an optical network unit (OLT) 11, a plurality of optical network terminals (ONUs) 12, and a PON line 13. Is provided.

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

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 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 the 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 optical fiber 15 and a plurality of branch 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 split by the optical splitter 14 through the trunk optical fiber 15 of the PON line 13. The split optical signal is transmitted to each ONU 12 through the branch optical fiber 16.

各ONU12から送信された光信号は、それぞれ支線光ファイバ16を通って光スプリッタ14によって集束される。集束された光信号は、幹線光ファイバ15を通ってOLT11に伝送される。PON回線13に用いられる光スプリッタ14は、外部からの電源供給を必要とせず、入力された光信号から受動的に光信号を分岐又は多重する。   The optical signal transmitted from each ONU 12 passes through the branch optical fiber 16 and is focused by the optical splitter 14. 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 splits 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 join 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 according to MPCP is performed. Specifically, the OLT 11 calculates an upstream transmission start time and a transmission permission amount of data stored inside the ONU 12 based on a control frame (report) transmitted from each ONU 12.

次に、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 ONU 12 via the PON line 13. Each ONU 12 reports the length of data in its own buffer to the OLT 11 at the time specified by the grant using a report. Each ONU 12 receives the grant into which the 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 a 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 illustrating 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 includes an optical device (for example, a pluggable optical transceiver) including a circuit for transmitting and receiving an optical signal. The optical transceiver 21 is optically connected to the trunk optical fiber 15 (see FIG. 1) and is electrically connected to the PON processing unit 22.
The optical transceiver 21 converts an optical signal and an electric signal mutually. That is, the optical transceiver 21 converts an upstream signal including an optical signal from the ONU 12 into an electric signal. The optical transceiver 21 converts a downstream 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 is formed of an integrated circuit that executes a predetermined communication process or the like in accordance with the PON communication standard.
When the upstream signal is a control frame (report) from the ONU 12, the PON processing unit 22 determines a transmission start time and a transmission permission amount in the upstream 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 upstream 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 downstream 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 is composed of an integrated circuit that determines a transmission port according to the destination of the received L2 layer frame.
When a frame included in a downstream 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 the own device.

L2スイッチ23は、PON処理部22からの上り信号に含まれるフレームが上位ネットワーク50へのデータフレームである場合、そのフレームを上位ネットワーク50に送信する。
L2スイッチ23は、PON処理部22からの上り信号に含まれるフレームが制御部24宛ての管理フレームである場合、そのフレームを制御部24に送信する。
When the frame included in the upstream 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 such as a personal computer (PC).

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

非一過性メモリ242には、起動設定情報350が記憶される。起動設定情報350は、制御プログラム300の起動処理において読み出され、制御プログラム300の設定に用いられる設定情報である。   The boot setting information 350 is stored in the non-transitory memory 242. The startup setting information 350 is setting information that is read in the startup processing 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 N-th module 300_N are read from the non-transitory memory 242 and are loaded on the transient memory 243. That is, the control program 300 is loaded into the temporary memory 243, and stored in the temporary memory 243 as the developed control program 400. The control program 400 includes N program modules (first module 400_1, second module 400_2, third module 400_3,..., N-th module 400_N).

一過性メモリ243には、稼働設定情報450が記憶される。稼働設定情報450は、稼働中の制御プログラム400において読み出され、制御プログラム400の設定に用いられる設定情報である。   The operation setting information 450 is stored in the temporary memory 243. The operation setting information 450 is setting information that is 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-transitory memory 242 stores an update setting program 370 for updating the control program and setting each program module. The OLT 11 includes a computer. The OLT 11 updates a control program of the OLT 11 and sets functions of each program module by executing an update setting program 370, which is a computer program stored in a storage device of the computer, by the CPU 241. Be 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 a program update process and an abnormality monitoring process as described later.

[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 non-transitory 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_2 is SV2, and the initial value of the parameter P3 for the third module 400_3 is SV3. In the start setting information 350, P1 = SV1, P2 = SV2, P3 = SV3,... Are stored. In the startup processing of the first module 400_1, the second module 400_2, the third module 400_3,..., The CPU 241 reads the startup setting information 350 and sets P1 = SV1, P2 = SV2, P3 = SV3,. After setting of each of the modules 400_1, 400_2, 400_3,..., The startup 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 illustrating an example of the configuration of the non-transitory 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 being 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 temporary memory 243 instead of the startup setting information 350 in the non-transitory memory 242. Therefore, the new setting information of the operating control program 400 is written to the operation setting information 450 instead of the startup 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, and P3 = SV30. On the other hand, in the activation setting information 350, P1 = SV1, P2 = SV2, and P3 = SV3. As described above, the operation setting information 450 and the activation 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 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-level network 50 while the control program 400 before the update is operating. , "Update program") is transmitted to the OLT 11.

図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 non-transitory 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-transitory memory 242 while leaving the pre-update program 300. Thus, the pre-update program 300 and the update program 330 coexist in the non-transitory memory 242.

図6は、稼働設定情報450が起動設定情報350に複写されない場合の非一過性メモリ242及び一過性メモリ243の構成の一例を示す模式図である。   FIG. 6 is a schematic diagram illustrating an example of the configuration of the non-transitory 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 temporary 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 the area of the temporary memory 243 different from the operation setting information 450 as the configuration inheritance information, and the address of the area is set to the relevant information. Notified to 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に展開される。   With the first type of program module in the pre-update program 400 activated, the first type of program module in the update program 430 is activated. That is, while the first type of program module in the pre-update program 400 is expanded in the temporary memory 243, the first type of program module in the update program 430 is also expanded in the temporary 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 inheritance 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 a first module and a 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 temporary memory 243. Stored as takeover information. Further, while the first module 400_1 is operating, 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 simultaneously executed. Similarly, while the second module 400_2 in the pre-update program 400 is operating, the second module 430_2 in the update program 430 stores the configuration inheritance information (set value of P2) stored in an area different from the operation setting information 450. ). By doing so, the first module and the second module can be updated by one CPU 241 without stopping the functions realized by the first module and the second module. After the setting of 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 in the temporary 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 temporary 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 the first type of program module is set, the address of the setting information of the module in the operation setting information 450 is notified to the module, and the setting information read directly from the operation setting information 450 is used for the setting. Modules may be set. That is, in setting the first module 430_1, the address of the setting 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 setting value of P1 at the address. Can be. 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 that is set based on the setting information stored in the non-transitory memory 242. In the present embodiment, the CPU 241 reads the startup setting information 350 from the non-transitory memory 242 and sets a 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 stops, the second type of program module in the update program 430 is started, and the module is set by the start setting information 350. In other words, after the area in the temporary memory 243 of the second type program module in the pre-update program 400 is released, the second type of program module in the update program 430 is expanded in the temporary memory 243. . In the example of FIG. 6, the second type of program module is a 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 startup setting information 350 in the non-transitory 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 an updated third module 430_3 that cannot be executed simultaneously with the third module 400_3 before the update.

第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 operation setting information 450 has been changed, the activation setting information 350 and the operation setting information 450 will be in different states. Therefore, when setting of each program module of the update program 430 is performed 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 by the start setting. Since the setting is performed based on the setting information obtained from the information 350, a setting mismatch occurs between the two modules. In other words, the third module 430_3 needs to be set with P3 = SV30 included in the operation setting information 450, but is set with P3 = SV3 included in the startup 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, 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 it. As a result, setting inconsistency between the first type of program module and the second type of program module can be prevented.

図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 non-transitory 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 activation setting information 350. That is, the startup setting information 350 matches the operation setting information 450. In such a state, when setting of each program module of the update program 430 is performed, inconsistency of the setting between the first type of program module and the second type of program module 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_2 is set by P2 = SV20 included in the operation setting information 450, and the third module 430_3 is set by the activation setting information 350. P3 included is set by SV30.

[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 CPU 241 executes a program update process by executing the update setting program 370 (see FIG. 2). FIG. 8 is a flowchart illustrating 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, first, the CPU 241 determines whether or not an update condition has been satisfied (step S101). The update condition is a condition when the control program 300 is updated. The update condition may be selected from the following conditions (1) to (5). In addition, a plurality of conditions among (1) to (5) may be combined as an update condition. For example, the condition that all of the plurality of conditions selected from (1) to (5) are satisfied may be regarded as the satisfaction of the update condition, or the condition of the plurality of conditions selected from (1) to (5) may be satisfied. The establishment of any one of the conditions may be regarded as the establishment of the update condition.
(1) The difference between the operation setting information 450 and the startup setting information 350 is equal to or more than a predetermined amount.
(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) It reaches a predetermined update time.
(5) Among the information belonging to a plurality of classifications included in the operation setting information 450, 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 the predetermined amount, for example, when the number of different setting values between the operation setting information 450 and the activation setting information 350 can be equal to or more than a predetermined value. The capacity can be equal to or more than a predetermined value. In (3), the update instruction can be given from, for example, the external device 25 or a server of the upper network 50. In (4), a time at night (for example, 2:00) where communication traffic is small 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 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), CPU 241 executes step S101 again.

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

無停止更新処理を実行すると判定された場合(ステップ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), CPU 241 executes the non-stop update process (step S103). When it is not determined that the non-stop update process is to be performed (NO in step S102), the CPU 241 performs a 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 ends, the CPU 241 ends the program update process.

以下、無停止更新処理について説明する。図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 CPU 241 copies a part or all of the operation setting information 450 to the start setting information 350 (step S201). Thus, the start setting information 350 matches the operation setting information 450. In this process, difference information different from the activation setting information 350 among the operation setting information 450 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 with the pre-update program 300 stored in the non-transitory memory 242 (step S202). That is, in the non-transitory memory 242, the update program 330 is added separately from the pre-update program 300, instead of overwriting the pre-update program 300 with the update program 330.

CPU241は、更新前プログラム400の第1モジュール400_1、第2モジュール400_2、第3モジュール400_3、…、第Nモジュール400_Nの全てに対して、終了の告知を行う(ステップS203)。   The CPU 241 notifies all of the first module 400_1, the second module 400_2, the third module 400_3,..., The N-th module 400_N of the pre-update program 400 of the end (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 perform setting based on the setting information stored in the temporary memory 243 among the first module 400_1, the second module 400_2, the third module 400_3,... For a possible program module, that is, the first type of program module, the setting information (configuration takeover information) to be taken over from the module before update to the module after update is stored in the temporary memory 243 (step S204). In this process, of the operation setting information 450, the setting information of the first type program is stored in the temporary memory 243 as the configuration inheritance information.

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

N≧Mの場合(ステップS206においてYES)、CPU241は、更新前の第Mモジュールから更新後の第Mモジュールへ引き継がれる設定情報があるか否か、即ち、第Mモジュールが第1の種類のプログラムモジュールであるか否かを判定する(ステップS207)。   If N ≧ M (YES in step S206), the CPU 241 determines whether or not there is setting information to be carried over from the M-th module before update to the M-th module after update, that is, if the M-th module is of the first type It is determined whether or not the module 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が展開される。   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 CPU 241 executes the update. The M-th module 430_M of the update program 430 is started without stopping the M-th module 400_M of the previous program (Step S208). That is, in the temporary memory 243, the M-th module 430_M of the update program 430 is expanded while the M-th 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-th module (step S209). In this process, the update takeover information is read from the temporary memory 243 by the CPU 241 and the M-th 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-th module 400_M of the pre-update program 400 (Step S210). As a result, the area of the M-th module 400_M of the pre-update program 400 in the temporary memory 243 is released.

次にCPU241は変数Mの値をインクリメントし(ステップS214)、処理をステップS206へ移す。   Next, the CPU 241 increments the value of the variable M (step S214), and moves the processing 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 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 CPU 241 Then, the M-th module 400_M of the pre-update program 400 is stopped (Step S211). As a result, the area of the M-th module 400_M of the pre-update program 400 in the temporary memory 243 is released.

その後、CPU241は、更新プログラム430の第Mモジュール430_Mを起動する(ステップS212)。つまり、一過性メモリ243において、更新前プログラム400の第Mモジュール400_Mが存在しない状態で、更新プログラム430の第Mモジュール430_Mが展開される。   After that, the CPU 241 activates the M-th module 430_M of the update program 430 (Step S212). That is, in the temporary memory 243, the M-th module 430_M of the update program 430 is expanded in a state where the M-th 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-th module 430_M from the activation setting information 350, and sets the M-th module 430_M (Step S213).

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

以上により、第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), CPU 241 copies startup setting information 350 in non-transitory memory 242 to operation setting information 450 in temporary memory 243 (step S215). Thereby, the identity between the startup setting information 350 and the operation setting information 450 at the time of starting the update program 430 is secured. Thus, the non-stop update process ends.

上記のような無停止更新処理の途中で、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 CPU 241 determines whether an abnormality of the OLT 11 has been detected (step S301).

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

他方、異常が検出された場合(ステップS301においてYES)、CPU241は、プログラム更新処理へ中断を指示する(ステップS302)。これにより、プログラム更新処理が中断される。   On the other hand, if an abnormality is detected (YES in step S301), CPU 241 instructs interruption of the program update process (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 running program modules (step S303). Further, the CPU 241 activates all of the first module 400_1, the second module 400_2, the third module 400_3,..., The N-th 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 startup setting information 350 from the non-transitory memory 242, and stores all of the first module 400_1, the second module 400_2, the third module 400_3,... (Step S305). Thus, the abnormality monitoring process ends.

このような異常監視処理により、無停止更新処理の実行中に、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 pre-update program 400 is restored.

以上のような構成により、本実施形態に係る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 CPU 241 updates the pre-update program 400 to the update program 430. I do. Further, the CPU 241 sets the first type of program module updated based on the operation setting information, and updates the second type of program module based on the startup setting information in which part or all of the operation setting information is copied. And processing for setting the type of program module. Thus, 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 OLT 11. 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. .

また、CPU241は、更新前プログラム400のモジュールが第1の種類のプログラムモジュールである場合、当該モジュールを停止する前に、対応する更新プログラム430のモジュールを起動し、起動されたモジュールを稼働設定情報に基づく構成引継情報によって設定し、更新前モジュールを停止する処理を実行する。また、CPU241は、更新前プログラム400のモジュールが第2の種類のプログラムモジュールである場合、当該モジュールを停止した後に、対応する更新プログラム430のモジュールを起動し、起動されたモジュールを起動設定情報に基づいて設定する処理を実行する。これにより、第1の種類のプログラムモジュールは停止することなく更新される。このため、OLT11の機能を停止させずに制御プログラムの更新を行うことができる。   When the module of the pre-update program 400 is the first type of program module, the CPU 241 activates the corresponding module of the update program 430 before stopping the module, and sets the activated module to the operation setting information. Is set by the configuration takeover information based on, and a process of stopping the pre-update module is executed. Further, when the module of the pre-update program 400 is the second type of program module, the CPU 241 starts the corresponding module of the update program 430 after stopping the module, and includes the started module in the start setting information. Execute the setting process based on the setting. 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 temporary memory 243, and the second type of program module is a non-transitory memory 242. May be a program module set by the setting information stored in the. Thereby, the first type of module can be set by the configuration inheritance information based on the operation setting information 450 stored in the temporary memory 243, and the second type of module can be set by the non-transitory memory 242. Can be set based on the startup setting information 350 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 activation setting information 350 in the operation setting information 450 may be copied to the activation setting information 350. Thus, the operation setting information 450 and the start setting information 350 can be matched without having to copy 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. Thus, the update of the control program can be started when the update condition is satisfied.

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

また、制御プログラムが更新される間に異常を検出した場合、稼働中の全モジュールを停止した後、更新前プログラム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 pre-update program 400 is activated, and the activated modules are determined based on the activation setting information 350. An abnormality monitoring process to be set may be executed. Thus, when an abnormality occurs in the OLT 11, the control program 300 before the update can be returned to recover from the abnormality.

異常は、通信エラーを含んでもよい。制御プログラムの更新が適切に行われなかった場合、正常な通信が行われず、通信エラーが発生する可能性がある。通信エラーが生じた場合に、更新前の制御プログラムに戻すことで、通信エラーを解消できる可能性がある。   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 LIST 12 home-side device 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 host network 241 CPU
242 Non-transitory 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 Start 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-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の種類のプログラムモジュールを設定する処理と、
前記更新前の第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.
前記第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.
前記第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.
前記更新条件は、前記稼働設定情報と前記起動設定情報との差分が所定量以上となること、前記稼働設定情報が変更されること、制御プログラムの更新指示が与えられること、予め決められた更新時刻に到達すること、及び、前記稼働設定情報に含まれる複数の分類に属する情報のうち特定の分類に属する情報が変更されること、の少なくとも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の種類のプログラムモジュールとが起動処理中に参照する設定情報である起動設定情報を記憶する非一過性メモリと、前記第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 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.
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 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)

* 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

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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)

* 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

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