JP2017163329A - Device, storing method, and program - Google Patents

Device, storing method, and program Download PDF

Info

Publication number
JP2017163329A
JP2017163329A JP2016045823A JP2016045823A JP2017163329A JP 2017163329 A JP2017163329 A JP 2017163329A JP 2016045823 A JP2016045823 A JP 2016045823A JP 2016045823 A JP2016045823 A JP 2016045823A JP 2017163329 A JP2017163329 A JP 2017163329A
Authority
JP
Japan
Prior art keywords
integrated circuit
packet
failure
storage
communication device
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.)
Pending
Application number
JP2016045823A
Other languages
Japanese (ja)
Inventor
勝義 入道
Katsuyoshi Nyudo
勝義 入道
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2016045823A priority Critical patent/JP2017163329A/en
Publication of JP2017163329A publication Critical patent/JP2017163329A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem in which a manufacture of a general communication device including a device in a patent literature 1 cannot sufficiently prepare an environment under which a fault has occurred when a reproduction test is conducted.SOLUTION: A device comprises: a memory for storing storage data corresponding to data input by communication; a detection unit for detecting a fault involved in the communication; and a storage unit for sequentially storing the storage data in the memory but stopping storing when the detection unit detects a fault.SELECTED DRAWING: Figure 9

Description

本発明は、装置、保存方法及びプログラムに関し、特に、データを保存する装置、保存方法及びプログラムに関する。   The present invention relates to an apparatus, a storage method, and a program, and more particularly, to an apparatus, a storage method, and a program for storing data.

一般的に、データを保存する装置が知られている。データを保存する装置は、以下の特許文献1に開示されている。図1は、特許文献1の装置の構成図である。   In general, an apparatus for storing data is known. An apparatus for storing data is disclosed in Patent Document 1 below. FIG. 1 is a configuration diagram of an apparatus disclosed in Patent Document 1.

特許文献1の装置は、楽曲データをMD(Mini Disc)に記録する装置である。その為に、特許文献1の装置は、図1に示されるように、メイン処理部と、MDレコーダと、を備える。MDレコーダには、MD(Mini Disc)が装填されている。   The device of Patent Document 1 is a device that records music data on an MD (Mini Disc). For this purpose, the apparatus of Patent Document 1 includes a main processing unit and an MD recorder, as shown in FIG. The MD recorder is loaded with an MD (Mini Disc).

特許文献1のメイン処理部は、楽曲データを購入するための操作が行われると、ダウンロード要求コマンドをMDレコーダに送信する。MDレコーダは、ダウンロード要求コマンドを受信すると、装填されたMDを測定対象としてエラーレートを計測し、計測したエラーレートをメイン処理部に返信する。特許文献1のメイン処理部は、返信されたエラーレートが所定値よりも小さいとき、MDにデータ記録が可能と推定し、楽曲データをMDレコーダにダウンロードする。MDレコーダは、ダウンロードされた楽曲データをMDに記録する。一方、特許文献1のメイン処理部は、返信されたエラーレートが所定値以上のときには、MDに記録エラーが発生すると推定し、MDをイジェクトするようMDレコーダに指示する。MDレコーダは、MDをイジェクトする。   When an operation for purchasing music data is performed, the main processing unit of Patent Document 1 transmits a download request command to the MD recorder. When the MD recorder receives the download request command, the MD recorder measures the error rate using the loaded MD as a measurement target, and returns the measured error rate to the main processing unit. When the returned error rate is smaller than a predetermined value, the main processing unit of Patent Document 1 estimates that data can be recorded in the MD, and downloads music data to the MD recorder. The MD recorder records the downloaded music data on the MD. On the other hand, when the returned error rate is greater than or equal to a predetermined value, the main processing unit of Patent Document 1 estimates that a recording error occurs in the MD and instructs the MD recorder to eject the MD. The MD recorder ejects the MD.

上述の構成や動作の通り、特許文献1の装置は、記録エラー発生の可能性のあるMDをイジェクトし、楽曲データが記録できていないMDが生成されるのを未然に防ぐことができる。特許文献1の装置は、図1に示されるように、通信網と接続され、通信を行うので、通信装置でもある。   As described above, the apparatus disclosed in Patent Document 1 can prevent an MD that has a possibility of a recording error from being generated and an MD in which music data cannot be recorded from being generated. As shown in FIG. 1, the device of Patent Document 1 is also a communication device because it is connected to a communication network and performs communication.

通信装置は、一般的にパケットの送受信を行う。通信装置は、パケットを受信したときには、受信したパケットを一旦、装置内のバッファに保存することが一般的である。受信したパケットを装置内で確実に処理する為である。通信装置は、新しく受信したパケットをバッファに保存する際には、最も古いパケットに上書きして保存する。   A communication device generally transmits and receives packets. In general, when a communication apparatus receives a packet, the communication apparatus temporarily stores the received packet in a buffer in the apparatus. This is because the received packet is reliably processed in the apparatus. When the newly received packet is stored in the buffer, the communication device overwrites and stores the oldest packet.

ところで、通信装置の製造者は、通信装置に通信障害が発生したとき、その原因調査を行う。原因調査の際、通信装置の製造者は、障害が発生した環境をできる限り整え、障害を再現させる再現試験を行う。再現試験により障害が再現できれば、通信装置のどこが原因箇所なのか、短期間に絞り込むことが可能となるからである。   By the way, the manufacturer of the communication device investigates the cause when a communication failure occurs in the communication device. When investigating the cause, the manufacturer of the communication device prepares the environment where the failure occurred as much as possible, and performs a reproduction test to reproduce the failure. This is because if the failure can be reproduced by the reproduction test, it is possible to narrow down in a short time where the communication device is the cause.

特開2003−331537号公報JP 2003-331537 A

しかし、一般的な通信装置の製造者(特許文献1の装置の製造者も含む)は、再現試験を行うときに、障害が発生した環境を十分に整えることができないという課題があった。   However, there has been a problem that general communication device manufacturers (including the device manufacturer of Patent Document 1) cannot sufficiently prepare an environment in which a failure has occurred when performing a reproduction test.

なぜなら、通信装置が、新しく受信したパケットでバッファを上書きしてしまい、障害発生時のパケットをバッファ内に保存しないからである。通信装置が障害発生時のパケットを保存しないので、通信装置の製造者は、障害発生時のパケットを取得できない。その結果、通信装置の製造者は、再現試験を行うときに、障害発生時のパケットを再現試験に用いることができず、障害が発生した環境を十分に整えることができなかった。   This is because the communication device overwrites the buffer with a newly received packet and does not store the packet at the time of failure in the buffer. Since the communication device does not store the packet when the failure occurs, the manufacturer of the communication device cannot obtain the packet when the failure occurs. As a result, the manufacturer of the communication device cannot use the packet at the time of the failure in the reproduction test when performing the reproduction test, and cannot sufficiently prepare the environment in which the failure has occurred.

また、通信装置の製造者は、障害が発生した環境を十分に整えることができない為に、再現試験を実施しても障害を再現させることができず、被疑箇所を絞り込むのに多くの時間がかかる虞があった。   In addition, the communication device manufacturer cannot sufficiently prepare the environment in which the failure has occurred, so even if the reproduction test is performed, the failure cannot be reproduced, and much time is required to narrow down the suspected place. There was a risk of this.

本発明は、上記課題を解決する装置、保存方法及びプログラムを提供することを目的とする。   An object of this invention is to provide the apparatus, the preservation | save method, and program which solve the said subject.

上記目的を達成するために、本発明の装置は、通信により入力されるデータに対応する格納データを格納するメモリと、前記通信に係る障害を検出する検出部と、前記格納データを順次、前記メモリに格納するとともに、前記検出部が前記障害を検出したときには前記格納を停止する格納部と、を備える。   In order to achieve the above object, an apparatus according to the present invention includes a memory that stores storage data corresponding to data input by communication, a detection unit that detects a failure related to the communication, and sequentially stores the storage data. And a storage unit that stores in the memory and stops the storage when the detection unit detects the failure.

上記目的を達成するために、本発明の保存方法は、通信により入力されるデータに対応するデータを順次、メモリに格納する格納ステップと、前記通信に係る障害が検出されたときには、前記格納を停止する停止ステップと、を有する。   In order to achieve the above object, the storage method of the present invention includes a storage step of sequentially storing data corresponding to data input by communication in a memory, and storing the storage when a failure related to the communication is detected. And a stop step for stopping.

上記目的を達成するために、本発明のプログラムは、メモリを備えた通信装置に実装されたプロセッサに、通信により入力されるデータに対応するデータを順次、前記メモリに格納する格納処理と、前記通信に係る障害を検出する検出処理と、前記検出処理が前記障害を検出したときには、前記格納処理を停止する格納停止処理と、を行わせるためのプログラムである。   To achieve the above object, a program according to the present invention includes a storage process for sequentially storing data corresponding to data input by communication in a processor mounted in a communication device including a memory, This is a program for performing a detection process for detecting a communication-related failure and a storage stop process for stopping the storage process when the detection process detects the failure.

本発明によれば、通信装置の製造者は、再現試験を行うときに、障害が発生した環境を十分に整えることができる。   According to the present invention, a manufacturer of a communication device can sufficiently prepare an environment in which a failure has occurred when performing a reproduction test.

特許文献1の装置の構成図である。2 is a configuration diagram of an apparatus disclosed in Patent Document 1. FIG. 本発明の第1の実施の形態における通信装置の構成例を示す図である。It is a figure which shows the structural example of the communication apparatus in the 1st Embodiment of this invention. 本発明の第1の実施の形態における通信装置内のデータや信号の流れ(障害が発生する前の流れ)を示す図である。It is a figure which shows the flow (the flow before a failure generate | occur | produces) of the data in the communication apparatus in the 1st Embodiment of this invention, and a signal. 本発明の第1の実施の形態における通信装置内のデータや信号の流れ(障害が発生したときの流れ)を示す図である。It is a figure which shows the flow (data when a failure generate | occur | produces) of the data and signal in the communication apparatus in the 1st Embodiment of this invention. 本発明の第1の実施の形態における通信装置の集積回路の構成例を示す図である。It is a figure which shows the structural example of the integrated circuit of the communication apparatus in the 1st Embodiment of this invention. 本発明の第1の実施の形態における通信装置の動作を説明する為の図である。It is a figure for demonstrating operation | movement of the communication apparatus in the 1st Embodiment of this invention. 本発明の第1の実施の形態における通信装置の動作(障害が発生したときに実施する動作)を説明する為の図である。It is a figure for demonstrating operation | movement (operation | movement implemented when a failure generate | occur | produces) of the communication apparatus in the 1st Embodiment of this invention. 本発明の第2の実施の形態における通信装置の構成例を示す図である。It is a figure which shows the structural example of the communication apparatus in the 2nd Embodiment of this invention. 本発明の第3の実施の形態における装置の構成例を示す図である。It is a figure which shows the structural example of the apparatus in the 3rd Embodiment of this invention.

次に本発明の実施形態について、図面を参照して詳細に説明する。   Next, embodiments of the present invention will be described in detail with reference to the drawings.

≪第1の実施の形態≫
[概要]
本実施形態の通信装置は、パケットを受信する毎に、受信したパケットを装置内のバッファに格納する。本実施形態の通信装置は、自装置において障害を検出した時、以降は、受信するパケットを破棄し、バッファへの格納は行わない。これにより、通信装置は、バッファにパケットを新たに格納しないようにし、バッファ内に障害発生時のパケットを保存する。
<< First Embodiment >>
[Overview]
Each time the communication apparatus according to the present embodiment receives a packet, the communication apparatus stores the received packet in a buffer in the apparatus. When the communication apparatus according to the present embodiment detects a failure in its own apparatus, thereafter, the communication apparatus discards the received packet and does not store it in the buffer. As a result, the communication apparatus does not newly store the packet in the buffer, and stores the packet at the time of failure occurrence in the buffer.

通信装置が障害発生時のパケットを保存するので、通信装置の製造者は、障害発生時のパケットを取得できる。その結果、通信装置の製造者は、再現試験を行うときに、障害発生時のパケットを用いることができ、障害が発生した環境を十分に整えることができる。   Since the communication device stores the packet when the failure occurs, the manufacturer of the communication device can acquire the packet when the failure occurs. As a result, the manufacturer of the communication device can use the packet at the time of the failure when performing the reproduction test, and can sufficiently prepare the environment where the failure has occurred.

以下に、本発明の第1の実施の形態における通信装置の構成や機能、動作について説明する。   The configuration, function, and operation of the communication device according to the first embodiment of the present invention will be described below.

[構成の説明]
まず、本発明の第1の実施の形態における通信装置の構成と機能について説明する。図2は、本発明の第1の実施の形態における通信装置の構成例を示す図である。
[Description of configuration]
First, the configuration and function of the communication device according to the first embodiment of the present invention will be described. FIG. 2 is a diagram illustrating a configuration example of the communication device according to the first embodiment of the present invention.

(1)本発明の第1の実施の形態における通信装置の構成
本実施形態の通信装置は、図2に示されるように、集積回路1、2、3と、CPU(Central Processing Unit)4と、CF(Compact Flash(登録商標))5と、を備える。
(1) Configuration of Communication Device in First Embodiment of Present Invention As shown in FIG. 2, the communication device of the present embodiment includes an integrated circuit 1, 2, 3 and a CPU (Central Processing Unit) 4. , CF (Compact Flash (registered trademark)) 5.

集積回路1、2、3は、各々、内部メモリ10、20、30を備える。また、集積回路1は、外部メモリ11及び外部メモリ12を備え、集積回路2、3は、各々、外部メモリ21、31を備える。集積回路1は、図示していないが、外部の通信装置と接続する為、一般的な入出力ポートを備える。   The integrated circuits 1, 2, and 3 include internal memories 10, 20, and 30, respectively. The integrated circuit 1 includes an external memory 11 and an external memory 12, and the integrated circuits 2 and 3 include external memories 21 and 31, respectively. Although not shown, the integrated circuit 1 includes a general input / output port for connection to an external communication device.

集積回路1、2、3は、各々、データ線と制御線の2種類の回線を介して接続される。集積回路1、2、3は、CPUバスを介してCPU4やCF5と接続される。集積回路1は、入出力ポートを介して、外部の通信装置と接続される。   The integrated circuits 1, 2, and 3 are connected via two types of lines, a data line and a control line, respectively. The integrated circuits 1, 2, and 3 are connected to the CPU 4 and the CF 5 via the CPU bus. The integrated circuit 1 is connected to an external communication device via an input / output port.

(2)集積回路1、2、3の機能
図3、図4は、本発明の第1の実施の形態における通信装置内のデータや信号の流れを示す図である。図3は障害が発生する前の通信装置内のデータや信号の流れを、図4は、障害が発生したときの通信装置内のデータや信号の流れを示している。
(2) Functions of Integrated Circuits 1, 2, and 3 FIGS. 3 and 4 are diagrams showing the flow of data and signals in the communication device according to the first embodiment of the present invention. 3 shows the flow of data and signals in the communication device before the failure occurs, and FIG. 4 shows the flow of data and signals in the communication device when the failure occurs.

以下、図3、図4を用いて、集積回路1、2、3の機能について説明する。集積回路1、2、3は、同じ機能を備えるので、代表して集積回路1の機能について説明を行う。但し、一部の機能については、その後の説明が分かりやすくなるよう、集積回路2、3の機能についても説明している。   Hereinafter, functions of the integrated circuits 1, 2, and 3 will be described with reference to FIGS. Since the integrated circuits 1, 2, and 3 have the same function, the function of the integrated circuit 1 will be described as a representative. However, for some functions, the functions of the integrated circuits 2 and 3 are also described so that the subsequent description can be easily understood.

(2−1)パケット送信の許可を与える機能
まず、図3に示されるように、集積回路1は、起動すると、接続する集積回路2、3に対し、送信の許可を与えるイネーブル信号を出力する。集積回路2、3も、起動すると、集積回路1にイネーブル信号を出力する。
(2-1) Function of Granting Packet Transmission Permission First, as shown in FIG. 3, when the integrated circuit 1 is activated, it outputs an enable signal that grants transmission permission to the integrated circuits 2 and 3 to be connected. . The integrated circuits 2 and 3 also output an enable signal to the integrated circuit 1 when activated.

(2−2)パケット送信の許可が与えられたことを把握する機能
集積回路1は、図示していないが、2つのレジスタ(以下、「レジスタA」、「レジスタB」という)を備える。集積回路1は、集積回路2からイネーブル信号を受信すると、レジスタAに値1を設定する。集積回路1は、集積回路3からイネーブル信号を受信すると、レジスタBに値1を設定する。
(2-2) Function for Recognizing that Packet Transmission Permission has been Provided The integrated circuit 1 includes two registers (hereinafter referred to as “register A” and “register B”), although not shown. When the integrated circuit 1 receives the enable signal from the integrated circuit 2, the integrated circuit 1 sets the value 1 in the register A. When the integrated circuit 1 receives the enable signal from the integrated circuit 3, the integrated circuit 1 sets the value 1 in the register B.

集積回路2、3も、レジスタを備え、接続する集積回路1からイネーブル信号を受信すると、レジスタに値1を設定する。集積回路2、3のレジスタは、集積回路1のレジスタと区別する為、以下、「レジスタC」というものとする。値1は、接続する集積回路から送信許可が与えられたことを示す値である。レジスタA、B、Cの初期値は0である。   The integrated circuits 2 and 3 also include a register, and when the enable signal is received from the connected integrated circuit 1, the value 1 is set in the register. The registers of the integrated circuits 2 and 3 are hereinafter referred to as “register C” in order to distinguish them from the registers of the integrated circuit 1. The value 1 is a value indicating that transmission permission is given from the connected integrated circuit. The initial values of registers A, B, and C are zero.

(2−3)パケット格納機能
集積回路1は、外部の通信装置と通信を行う。通信により、集積回路1は、図3に示されるように、外部の通信装置からパケットを受信する。集積回路1は、受信したパケットを内部メモリ10に格納する。内部メモリ10はバッファである。集積回路1は、パケットを内部メモリ10に格納する際、新しく受信したパケットを、最も古いパケットに上書きして格納する。内部メモリ10は、新しく受信したパケットで更新される。
(2-3) Packet Storage Function The integrated circuit 1 communicates with an external communication device. By communication, the integrated circuit 1 receives a packet from an external communication device as shown in FIG. The integrated circuit 1 stores the received packet in the internal memory 10. The internal memory 10 is a buffer. When the integrated circuit 1 stores the packet in the internal memory 10, the newly received packet is overwritten and stored on the oldest packet. The internal memory 10 is updated with newly received packets.

集積回路1は、図3に示されるように、集積回路2、3からもパケットを受信する。集積回路1は、集積回路2からパケットを受信したとき、受信したパケットを外部メモリ11に格納し、集積回路3からパケットを受信したとき、受信したパケットを外部メモリ12に格納する。外部メモリ11、12は、受信したパケットを一旦蓄えるバッファである。集積回路1は、パケットを外部メモリ11、12に格納する際、新しく受信したパケットを、最も古いパケットに上書きして格納する。外部メモリ11、12は、新しく受信したパケットで更新される。   The integrated circuit 1 also receives packets from the integrated circuits 2 and 3, as shown in FIG. The integrated circuit 1 stores the received packet in the external memory 11 when receiving the packet from the integrated circuit 2, and stores the received packet in the external memory 12 when receiving the packet from the integrated circuit 3. The external memories 11 and 12 are buffers that temporarily store received packets. When the integrated circuit 1 stores the packet in the external memories 11 and 12, the newly received packet is overwritten and stored on the oldest packet. The external memories 11 and 12 are updated with newly received packets.

上述の「(2−3)パケット格納機能」は、他の集積回路1の機能とは独立して動作する。   The “(2-3) packet storage function” described above operates independently of the functions of the other integrated circuits 1.

(2−4)パケット送信機能
集積回路1は、所定のタイミングになると、レジスタAの値が1か否か、すなわち、集積回路2から送信許可が与えられているか否かを判別する。所定のタイミングは、一定間隔毎のタイミングであり、通信装置の製造者によって、集積回路1に設定される。本実施形態の通信装置の製造者は、一定間隔のタイミングであれば、どのようなタイミングでも集積回路1に設定してよい。
(2-4) Packet Transmission Function The integrated circuit 1 determines whether or not the value of the register A is 1, that is, whether or not transmission permission is given from the integrated circuit 2 at a predetermined timing. The predetermined timing is a timing at regular intervals, and is set in the integrated circuit 1 by the manufacturer of the communication device. The manufacturer of the communication device according to the present embodiment may set the integrated circuit 1 at any timing as long as the timing is constant.

集積回路1は、レジスタAの値が1の場合、すなわち、集積回路2から送信許可が与えられている場合に、内部メモリ10に格納されているパケットを集積回路2に送信する。
集積回路1は、レジスタAの値が1でないときには、パケットを集積回路2に送信しない。
The integrated circuit 1 transmits the packet stored in the internal memory 10 to the integrated circuit 2 when the value of the register A is 1, that is, when the transmission permission is given from the integrated circuit 2.
The integrated circuit 1 does not transmit the packet to the integrated circuit 2 when the value of the register A is not 1.

さらに、集積回路1は、レジスタBの値が1か否か、すなわち、集積回路3から送信許可が与えられているか否かを判別する。集積回路1は、レジスタBの値が1の場合、すなわち、集積回路3から送信許可が与えられている場合に、内部メモリ10に格納されているパケットを集積回路3に送信する。集積回路1は、レジスタBの値が1でないときには、パケットを集積回路3に送信しない。   Further, the integrated circuit 1 determines whether or not the value of the register B is 1, that is, whether or not transmission permission is given from the integrated circuit 3. The integrated circuit 1 transmits a packet stored in the internal memory 10 to the integrated circuit 3 when the value of the register B is 1, that is, when transmission permission is given from the integrated circuit 3. The integrated circuit 1 does not transmit the packet to the integrated circuit 3 when the value of the register B is not 1.

さらに、集積回路1は、レジスタBの値が1か否かを判別した後、外部メモリ11、12にパケットが格納されると、格納されたパケットを、入出力ポートを介して外部の通信装置に送信する。   Further, after determining whether or not the value of the register B is 1, the integrated circuit 1 stores the packet in the external memories 11 and 12 and transmits the stored packet to an external communication device via the input / output port. Send to.

上述の「(2−4)パケット送信機能」は、他の集積回路1の機能とは独立して動作する。   The “(2-4) packet transmission function” described above operates independently of the functions of the other integrated circuits 1.

(2−5)障害検出機能
集積回路1は、外部の通信装置との通信に係る障害を検出する。
(2-5) Fault Detection Function The integrated circuit 1 detects a fault related to communication with an external communication device.

例えば、集積回路1は、以下の「(2−5−1)装置の故障を検出する機能」に示されるように、外部の通信装置との通信に係る機能部の故障(具体的には、入出ポートの故障)を検出してもよい。   For example, the integrated circuit 1 has a failure of a functional unit related to communication with an external communication device (specifically, as shown in “(2-5-1) Function of detecting device failure” below) (Failure of input / output port) may be detected.

また、集積回路1は、以下の「(2−5−2)メモリの故障を検出する機能」に示されるように、内部メモリ10の故障を検出してもよい。内部メモリ10は、外部の通信装置との通信により受信したパケットを格納するメモリであり、外部の通信装置との通信に係る機能部である。   Further, the integrated circuit 1 may detect a failure of the internal memory 10 as shown in “(2-5-2) Function of detecting a memory failure” below. The internal memory 10 is a memory that stores a packet received by communication with an external communication device, and is a functional unit related to communication with the external communication device.

さらに、集積回路1は、以下の「(2−5−3)パケットが壊れる障害を検出する機能」に示されるように、外部の通信装置から受信したパケットが通信装置1内で壊れる障害を検出してもよい。   Further, the integrated circuit 1 detects a failure in which a packet received from an external communication device is broken in the communication device 1 as shown in “(2-5-3) Function for detecting a failure in which a packet is broken” below. May be.

(2−5−1)装置の故障を検出する機能(障害検出機能の一例)
集積回路1は、入出力ポートの故障を検出してもよい。その場合、集積回路1は、一般的なポート監視機能を備え、一定時間毎にICMP(Internet Control Message Protocol)のエコーリクエストを入出力ポートに送信する。集積回路1は、エコーリクエストの送信後、エコーリクエストに対するエコー応答が入出力ポートから帰ってくるのを待つ。集積回路1は、送信後、所定時間以内にエコー応答が帰ってこないときに、障害(入出力ポートの故障)を検出したとみなし、障害検出を示す電気信号をCPU4に出力する。
(2-5-1) Function for detecting device failure (an example of a failure detection function)
The integrated circuit 1 may detect a failure of the input / output port. In this case, the integrated circuit 1 has a general port monitoring function, and transmits an ICMP (Internet Control Message Protocol) echo request to the input / output port at regular intervals. After transmitting the echo request, the integrated circuit 1 waits for an echo response to the echo request to return from the input / output port. When the integrated circuit 1 does not return an echo response within a predetermined time after transmission, the integrated circuit 1 considers that a failure (failure of the input / output port) has been detected, and outputs an electrical signal indicating failure detection to the CPU 4.

上述の所定時間は、本実施形態の通信装置の製造者によって集積回路1に設定される。本実施形態の通信装置の製造者は、エコーリクエストの送信後、エコー応答が返ってくるまでの時間を実測し、実測した時間よりも十分に長い時間を所定時間として集積回路1に設定する。また、上述の一定時間は、どのような時間であってもよい。   The predetermined time described above is set in the integrated circuit 1 by the manufacturer of the communication apparatus of the present embodiment. The manufacturer of the communication apparatus according to the present embodiment actually measures the time until the echo response is returned after transmitting the echo request, and sets the time sufficiently longer than the actually measured time in the integrated circuit 1 as a predetermined time. Moreover, any time may be sufficient as the above-mentioned fixed time.

(2−5−2)メモリ故障を検出する機能(障害検出機能の一例)
集積回路1は、内部メモリ10の故障を検出してもよい。その場合、集積回路1は、受信したパケットを内部メモリ10に格納するとき、一度、内部メモリ10に所定の値(例えば、0x5555)を書き込み、書き込んだ値(0x5555)が読み出せるか否かを判別する。集積回路1は、書き込んだ値(0x5555)が読み出せる場合に、受信したパケットを格納する。集積回路1は、書き込んだ値(0x5555)が読み出せない場合には、障害(メモリ故障)を検出したとみなし、障害検出を示す電気信号をCPU4に出力する。
(2-5-2) Function for detecting a memory failure (an example of a failure detection function)
The integrated circuit 1 may detect a failure of the internal memory 10. In that case, when storing the received packet in the internal memory 10, the integrated circuit 1 once writes a predetermined value (for example, 0x5555) in the internal memory 10 and determines whether or not the written value (0x5555) can be read. Determine. The integrated circuit 1 stores the received packet when the written value (0x5555) can be read. If the written value (0x5555) cannot be read, the integrated circuit 1 considers that a failure (memory failure) has been detected, and outputs an electrical signal indicating failure detection to the CPU 4.

(2−5−3)パケットが壊れる障害を検出する機能(障害検出機能の一例)
集積回路1は、自装置内でパケットが壊れる障害を検出してもよい。
(2-5-3) Function for detecting failure where packet is broken (an example of failure detection function)
The integrated circuit 1 may detect a failure in which the packet is broken in the self-device.

その場合、集積回路1は、レジスタを2つ備える。2つのレジスタは、以下、「障害検出レジスタA」と「障害検出レジスタB」という。障害検出レジスタA、Bの初期値は0である。集積回路1は、パケットを受信すると、内部メモリ10に格納する前に、受信したパケットに含まれるチェックサムを計算し、計算値が正常値か否かを判別する。正常値は、予め集積回路1の製造者によって集積回路1に設定される。集積回路1は、計算値が正常値でないときに、障害検出レジスタAに1を書き込む。集積回路1は、計算値が正常値であるときには、障害検出レジスタAに0を書き込む。   In that case, the integrated circuit 1 includes two registers. The two registers are hereinafter referred to as “failure detection register A” and “failure detection register B”. The initial value of the failure detection registers A and B is 0. When the integrated circuit 1 receives the packet, the integrated circuit 1 calculates a checksum included in the received packet before it is stored in the internal memory 10, and determines whether or not the calculated value is a normal value. The normal value is preset in the integrated circuit 1 by the manufacturer of the integrated circuit 1. The integrated circuit 1 writes 1 in the failure detection register A when the calculated value is not a normal value. The integrated circuit 1 writes 0 in the failure detection register A when the calculated value is a normal value.

また、集積回路1は、パケットを送信するにあたり、外部メモリ11、12からパケットを取得したとき、取得したパケットに含まれるチェックサムを計算し、計算値が正常値か否かを判別する。正常値は、予め集積回路1の製造者によって集積回路1に設定される。集積回路1は、計算値が正常値でないときに、障害検出レジスタBに1を書き込む。集積回路1は、計算値が正常値であるときには、障害検出レジスタBに0を書き込む。   Further, when transmitting a packet, the integrated circuit 1 calculates a checksum included in the acquired packet when acquiring the packet from the external memories 11 and 12, and determines whether the calculated value is a normal value. The normal value is preset in the integrated circuit 1 by the manufacturer of the integrated circuit 1. The integrated circuit 1 writes 1 in the failure detection register B when the calculated value is not a normal value. The integrated circuit 1 writes 0 in the failure detection register B when the calculated value is a normal value.

集積回路1は、障害検出レジスタAが0(すなわち、受信時のパケットは正常)であるのに、障害検出レジスタBが1(すなわち、送信時のパケットは正常でない)ときには、障害検出を示す電気信号をCPU4に出力する。自装置内にてパケットが壊れる障害が発生しているからである。   When the failure detection register A is 0 (that is, the packet at the time of reception is normal), but the failure detection register B is 1 (that is, the packet at the time of transmission is not normal), the integrated circuit 1 A signal is output to the CPU 4. This is because a failure that breaks the packet has occurred in its own device.

なお、集積回路1は、障害検出機能であれば、上述の(2−5−1)〜(2−5−3)に示した機能に限らず、どのような機能でも備えてよい。   The integrated circuit 1 is not limited to the functions shown in the above (2-5-1) to (2-5-3) as long as it has a failure detection function, and may have any function.

(2−6)パケット格納停止機能
集積回路1は、障害を検出し、障害発生を示す信号がCPU4から入力されると、図4に示されるように、以降は、受信するパケットを破棄する。これにより、集積回路1は、内部メモリ10に新たにパケットを格納することを停止する。内部メモリ10は、新たに受信したパケットで更新されないので、障害発生時のパケットを保存する。
(2-6) Packet Storage Stop Function The integrated circuit 1 detects a failure, and when a signal indicating the occurrence of the failure is input from the CPU 4, thereafter, the received packet is discarded as shown in FIG. As a result, the integrated circuit 1 stops storing a new packet in the internal memory 10. Since the internal memory 10 is not updated with a newly received packet, the internal memory 10 stores a packet when a failure occurs.

さらに、集積回路1は、障害発生を示す信号がCPU4から入力された後、図4に示されるように、接続する集積回路2、3に対し、送信を許可しないディセーブル信号を出力する。ディセーブル信号を受信した集積回路2、3は、自身に備わるレジスタCの値を0とし、集積回路1へのパケットの送信を停止する。   Further, the integrated circuit 1 outputs a disable signal not permitting transmission to the connected integrated circuits 2 and 3 as shown in FIG. 4 after a signal indicating the occurrence of a failure is input from the CPU 4. The integrated circuits 2 and 3 that have received the disable signal set the value of the register C included in the integrated circuits 2 and 3 to 0, and stop transmission of packets to the integrated circuit 1.

集積回路1は、集積回路2、3からパケットを受信しなくなる。その結果、集積回路1は、外部メモリ11、12に新たにパケットを格納せず、障害発生時のパケットを保存する。   The integrated circuit 1 does not receive packets from the integrated circuits 2 and 3. As a result, the integrated circuit 1 does not newly store the packet in the external memories 11 and 12, but stores the packet when the failure occurs.

(2−7)パケットをCF5に出力する機能
集積回路1は、パケット転送を指示する信号がCPU4から入力されると、内部メモリ10や外部メモリ11、12に記憶する障害発生時のパケットをCF5に保存する。このとき、集積回路1は、障害発生時のパケットを、DMA転送により内部メモリ10や外部メモリ11、12からCF5に転送して保存する。DMAは、Direct Memory Accessの略称である。
(2-7) Function for Outputting Packet to CF 5 When the integrated circuit 1 receives a signal for instructing packet transfer from the CPU 4, the integrated circuit 1 outputs the packet at the time of failure stored in the internal memory 10 or the external memories 11 and 12 to the CF 5 Save to. At this time, the integrated circuit 1 transfers and stores the packet at the time of failure from the internal memory 10 or the external memories 11 and 12 to the CF 5 by DMA transfer. DMA is an abbreviation for Direct Memory Access.

(3)集積回路1、2、3の構成
(3−1)集積回路1、2、3の機能部
図5は、集積回路1、2、3の構成例を説明する為の図である。
(3) Configuration of Integrated Circuits 1, 2, and 3 (3-1) Functional Units of Integrated Circuits 1, 2, and 3 FIG. 5 is a diagram for explaining a configuration example of the integrated circuits 1, 2, and 3.

上述の(2−1)〜(2−7)の機能を実現する為、集積回路1、2、3は、図5に示されるように、格納プロセッサと、送信プロセッサと、信号処理回路を備える。   In order to realize the functions (2-1) to (2-7) described above, the integrated circuits 1, 2, and 3 include a storage processor, a transmission processor, and a signal processing circuit as shown in FIG. .

格納プロセッサは、上述の「(2−3)パケット格納機能」、「(2−6)パケット格納停止機能」、及び「(2−5−2)メモリ故障を検出する機能」を実現する為のプロセッサである。また、送信プロセッサは、上述の「(2−4)パケット送信機能」を実現する為のプロセッサである。信号処理回路は、上述の(2−1)、(2−2)、(2−5−1)、及び(2−7)で説明した機能を実現する為のプロセッサである。各プロセッサや信号処理回路の機能は、後述の[動作の説明]で詳細に説明する。   The storage processor implements the above-mentioned “(2-3) packet storage function”, “(2-6) packet storage stop function”, and “(2-5-2) function for detecting a memory failure”. It is a processor. The transmission processor is a processor for realizing the “(2-4) packet transmission function” described above. The signal processing circuit is a processor for realizing the functions described in the above (2-1), (2-2), (2-5-1), and (2-7). The functions of each processor and signal processing circuit will be described in detail in [Description of operation] described later.

(3−2)集積回路1、2、3の機能部の接続
集積回路1の格納プロセッサ、送信プロセッサ、及び信号処理回路は、内部メモリ10や外部メモリ11、12と接続される。図5では、格納プロセッサと送信プロセッサが内部メモリ10に接続される様子を示しているが、実際には、外部メモリ11、12とも接続される。同様に、集積回路2の各プロセッサと信号処理回路は、内部メモリ20及び外部メモリ21と接続される。集積回路3の各プロセッサと信号処理回路は、内部メモリ30及び外部メモリ31と接続される。
(3-2) Connection of Functional Units of Integrated Circuits 1, 2, and 3 The storage processor, transmission processor, and signal processing circuit of the integrated circuit 1 are connected to the internal memory 10 and the external memories 11 and 12. FIG. 5 shows a state in which the storage processor and the transmission processor are connected to the internal memory 10, but actually, they are also connected to the external memories 11 and 12. Similarly, each processor and signal processing circuit of the integrated circuit 2 are connected to the internal memory 20 and the external memory 21. Each processor and signal processing circuit of the integrated circuit 3 are connected to the internal memory 30 and the external memory 31.

集積回路1の各プロセッサと信号処理回路は、図5に示されるように、入出力ポートと接続される。集積回路1の送信プロセッサは、図5に示されるように、集積回路2、3の格納プロセッサと送信プロセッサと接続される。   Each processor and signal processing circuit of the integrated circuit 1 are connected to an input / output port as shown in FIG. As shown in FIG. 5, the transmission processor of the integrated circuit 1 is connected to the storage processor and the transmission processor of the integrated circuits 2 and 3.

また、集積回路1の信号処理回路は、図示していないが、対向する集積回路2、3の信号処理回路と信号線を介して接続される。集積回路1、2、3の各プロセッサと信号処理回路は、CPUバスを介してCPU4と接続される。   Further, although not shown, the signal processing circuit of the integrated circuit 1 is connected to the signal processing circuits of the integrated circuits 2 and 3 facing each other through a signal line. The processors and signal processing circuits of the integrated circuits 1, 2, and 3 are connected to the CPU 4 via the CPU bus.

(3−3)パケットの受信間隔を計測する機能
上述の集積回路1の格納プロセッサは、外部の通信装置から受信するパケットの受信間隔を計測する機能を備えてもよい。具体的には、集積回路1の格納プロセッサは、パケットの先頭を受信した時から、次にパケットの先頭を受信するまでの時間を計測する機能を備えてもよい。その場合、集積回路1の格納プロセッサは、一般的なプリアンブル検出回路と、クロック生成回路と、カウンタと、レジスタと、を備える。パケットの先頭には、一般的に、同期信号であるプリアンブルが付与されている。上述のプリアンブル検出回路は、プリアンブルを検出することで、パケットの先頭を検出したとみなし、先頭検出を示す信号を格納プロセッサに出力する。
(3-3) Function of Measuring Packet Reception Interval The storage processor of the integrated circuit 1 described above may have a function of measuring a packet reception interval received from an external communication device. Specifically, the storage processor of the integrated circuit 1 may have a function of measuring the time from when the head of the packet is received until the next head of the packet is received. In that case, the storage processor of the integrated circuit 1 includes a general preamble detection circuit, a clock generation circuit, a counter, and a register. In general, a preamble which is a synchronization signal is added to the head of the packet. By detecting the preamble, the preamble detection circuit described above considers that the head of the packet has been detected, and outputs a signal indicating the head detection to the storage processor.

クロック生成回路は、格納プロセッサが時間を計測できるよう、クロック信号を生成し、生成したクロック信号を周期的に集積回路1の格納プロセッサに出力する回路である。集積回路1の格納プロセッサには、クロック信号が繰り返し入力される。   The clock generation circuit is a circuit that generates a clock signal so that the storage processor can measure time, and periodically outputs the generated clock signal to the storage processor of the integrated circuit 1. A clock signal is repeatedly input to the storage processor of the integrated circuit 1.

集積回路1の格納プロセッサは、以下の(i)〜(iv)を順に実施することで、パケットの受信間隔を計測する機能を実現することが可能となる。   The storage processor of the integrated circuit 1 can implement the function of measuring the packet reception interval by sequentially performing the following (i) to (iv).

(i)まず、集積回路1の格納プロセッサは、パケットを受信したとき、カウンタの値を0にリセットし、クロック信号が入力される毎にカウンタをインクリメントしていく。具体的には、集積回路1の格納プロセッサは、プリアンブル検出回路から先頭検出を示す信号が入力された時、カウンタの値を0にリセットし、クロック信号が入力される毎にカウンタをインクリメントしていく。次のパケットを受信するまで時間をカウントする為である。   (I) First, the storage processor of the integrated circuit 1 resets the value of the counter to 0 when receiving a packet, and increments the counter every time a clock signal is input. Specifically, the storage processor of the integrated circuit 1 resets the counter value to 0 when a signal indicating the head detection is input from the preamble detection circuit, and increments the counter every time a clock signal is input. Go. This is because the time is counted until the next packet is received.

(ii)集積回路1の格納プロセッサは、次のパケットを受信したとき、カウンタのインクリメントを停止する。具体的には、集積回路1の格納プロセッサは、プリアンブル検出回路から再度、先頭検出を示す信号が入力された時、カウンタのインクリメントを停止する。   (Ii) The storage processor of the integrated circuit 1 stops incrementing the counter when the next packet is received. Specifically, the storage processor of the integrated circuit 1 stops incrementing the counter when a signal indicating head detection is input again from the preamble detection circuit.

(iii)集積回路1の格納プロセッサは、停止したカウンタの値と、クロック信号の入力周期と、の乗算値を算出し、算出した乗算値を内部メモリ10に記憶する。   (Iii) The storage processor of the integrated circuit 1 calculates a multiplication value of the stopped counter value and the clock signal input period, and stores the calculated multiplication value in the internal memory 10.

上述の乗算値は、パケットの受信間隔を示す。集積回路1の格納プロセッサは、乗算値を内部メモリ10に記憶するとき、パケットを格納する領域とは別の領域に記憶する。上述の「クロック信号の入力周期」は、本実施形態の通信装置の製造者によって集積回路1の格納プロセッサに設定される。本実施形態の通信装置の製造者は、クロック信号の入力周期を実測の上、格納プロセッサに設定する。   The multiplication value described above indicates a packet reception interval. When storing the multiplication value in the internal memory 10, the storage processor of the integrated circuit 1 stores it in an area different from the area for storing the packet. The “clock signal input period” described above is set in the storage processor of the integrated circuit 1 by the manufacturer of the communication apparatus of the present embodiment. The manufacturer of the communication device of this embodiment sets the input period of the clock signal in the storage processor after actually measuring it.

(iv)(iii)の後、集積回路1の格納プロセッサは、パケットを受信すると、再度、上述の(i)〜(iii)を再度実施する。集積回路1の格納プロセッサは、パケットの受信間隔を内部メモリ10に記憶していく。   After (iv) (iii), when the storage processor of the integrated circuit 1 receives the packet, it again performs the above (i) to (iii). The storage processor of the integrated circuit 1 stores the packet reception interval in the internal memory 10.

(4)CPU4の機能
CPU4は、障害検出を示す信号が入力されると、障害発生を示す信号を、接続する集積回路1、2、3に出力する。CPU4は、障害発生を示す信号を出力後、パケット転送を指示する信号も集積回路1、2、3に出力する。
(4) Function of CPU 4 When a signal indicating failure detection is input, the CPU 4 outputs a signal indicating failure occurrence to the integrated circuits 1, 2, and 3 to be connected. After outputting a signal indicating the occurrence of a failure, the CPU 4 also outputs a signal instructing packet transfer to the integrated circuits 1, 2, and 3.

(5)CF5について
CF5は、一般的なコンパクトフラッシュ(登録商標)である。
(5) CF5 CF5 is a general compact flash (registered trademark).

(6)各機能部の実現手段について
集積回路1、2、3は、RAM等のメモリと、一般的な入出力ポートと、一般的なプロセッサと、レジスタと、一般的なレジスタ制御回路と、一般的な信号生成回路と、一般的なDMAコントローラと、を用いて実現することができる。RAMは、Random Access Memoryの略称である。
(6) Means for Realizing Each Functional Unit The integrated circuits 1, 2, and 3 include a memory such as a RAM, a general input / output port, a general processor, a register, a general register control circuit, This can be realized by using a general signal generation circuit and a general DMA controller. RAM is an abbreviation for Random Access Memory.

上述の一般的なレジスタ制御回路、信号生成回路、及びDMAコントローラは、信号処理回路を実現する為の回路である。レジスタ制御回路は、レジスタに値を書き込む為に信号処理回路に備わる回路であり、レジスタA、Bと接続される。レジスタA、Bは、上述の(2−2)で説明したレジスタである。また、上述の(3−2)で説明した通り、信号処理回路には信号線が接続されるが、該信号線は信号処理回路内においてレジスタ制御回路に接続される。   The general register control circuit, signal generation circuit, and DMA controller described above are circuits for realizing a signal processing circuit. The register control circuit is a circuit provided in the signal processing circuit for writing a value to the register, and is connected to the registers A and B. The registers A and B are the registers described in (2-2) above. As described in (3-2) above, a signal line is connected to the signal processing circuit, and the signal line is connected to a register control circuit in the signal processing circuit.

信号生成回路は、イネーブル信号やディセーブル信号を生成する一般的な信号生成回路であり、CPU4及び、生成した信号の送信先である集積回路と接続される。DMAコントローラは、DMA転送を行う為に信号処理回路に備わる回路であり、CPU4、集積回路内の各メモリ、及びCF5と接続される。   The signal generation circuit is a general signal generation circuit that generates an enable signal and a disable signal, and is connected to the CPU 4 and an integrated circuit that is a transmission destination of the generated signal. The DMA controller is a circuit provided in the signal processing circuit for performing the DMA transfer, and is connected to the CPU 4, each memory in the integrated circuit, and the CF 5.

さらに、集積回路1、2、3は、メモリ等に加えて、一般的なプリアンブル検出回路と、クロック生成回路と、カウンタと、を用いて実現されてもよい。上述のプリアンブル検出回路、クロック生成回路、及びカウンタは、上述の「(3−3)パケットの受信間隔を計測する機能」の機能を実現する為の回路であり、格納プロセッサに接続される。   Further, the integrated circuits 1, 2, and 3 may be realized using a general preamble detection circuit, a clock generation circuit, and a counter in addition to a memory or the like. The preamble detection circuit, the clock generation circuit, and the counter described above are circuits for realizing the function “(3-3) function for measuring packet reception interval” described above, and are connected to the storage processor.

CPU4は、一般的なCPU等の演算処理装置と、RAM等のメモリと、を用いて実現することができる。CF5は、一般的なコンパクトフラッシュを用いて実現することができる。   The CPU 4 can be realized by using a general arithmetic processing device such as a CPU and a memory such as a RAM. CF5 can be realized using a general compact flash.

[動作の説明]
図6、図7は、本発明の第1の実施の形態における通信装置の動作を説明する
為の図である。図6は、本実施形態の通信装置の基本動作を示し、図7は、障害が発生したときに本実施形態の通信装置が追加で実施する動作を示している。
[Description of operation]
6 and 7 are diagrams for explaining the operation of the communication apparatus according to the first embodiment of the present invention. FIG. 6 shows a basic operation of the communication apparatus of this embodiment, and FIG. 7 shows an operation additionally performed by the communication apparatus of this embodiment when a failure occurs.

図6、図7を用いて、本実施形態の通信装置の動作を以下に説明する。   The operation of the communication apparatus of this embodiment will be described below with reference to FIGS.

(1)障害発生前の通信装置の動作(概要)
始めに、障害が発生する前の動作の概要について説明を行う。本実施形態の通信装置は、障害が発生する前、以下の通りに動作している。
(1) Operation of communication device before failure (outline)
First, an outline of the operation before a failure occurs will be described. The communication apparatus according to the present embodiment operates as follows before a failure occurs.

(1−1)送信許可動作
まず、集積回路1、2、3は、起動すると、図3に示されるように、互いに、送信の許可を与えるイネーブル信号を出力する。イネーブル信号が入力された集積回路1、2、3は、パケットを送信できるようになる。
(1-1) Transmission Permitting Operation First, when the integrated circuits 1, 2, and 3 are activated, as shown in FIG. 3, they output enable signals that grant transmission permission to each other. The integrated circuits 1, 2, and 3 to which the enable signal is input can transmit a packet.

(1−2)通信動作
集積回路1は、外部の通信装置と通信を行い、外部の通信装置からパケットを受信する。
(1-2) Communication Operation The integrated circuit 1 communicates with an external communication device and receives a packet from the external communication device.

集積回路1は、外部の通信装置からパケットを受信すると、受信したパケットを内部メモリ10に格納する。   When the integrated circuit 1 receives a packet from an external communication device, the integrated circuit 1 stores the received packet in the internal memory 10.

次に、集積回路1は、所定のタイミングになると、内部メモリ10からパケットを取得して集積回路2、3に送信する。   Next, the integrated circuit 1 acquires a packet from the internal memory 10 and transmits it to the integrated circuits 2 and 3 at a predetermined timing.

上述の所定のタイミングは、一定間隔のタイミングであり、本実施形態の通信装置の製造者によって集積回路1に設定される。本実施形態の通信装置の製造者は、一定間隔のタイミングであれば、任意のタイミングを所定のタイミングとして集積回路1に設定してよい。   The above-mentioned predetermined timing is a fixed interval timing, and is set in the integrated circuit 1 by the manufacturer of the communication apparatus of the present embodiment. The manufacturer of the communication device according to the present embodiment may set an arbitrary timing in the integrated circuit 1 as a predetermined timing as long as the timing is at a constant interval.

集積回路2、3は、各々、集積回路1から受信したパケットを内部メモリ20、30に格納する。   The integrated circuits 2 and 3 store the packets received from the integrated circuit 1 in the internal memories 20 and 30, respectively.

次に、集積回路2、3は、所定のタイミングになると、内部メモリ20、30からパケットを取得し、所定の処理を実施した上で、集積回路1に送信する。   Next, at a predetermined timing, the integrated circuits 2 and 3 acquire packets from the internal memories 20 and 30, perform predetermined processing, and transmit the packets to the integrated circuit 1.

上述の所定のタイミングは、一定間隔のタイミングであり、本実施形態の通信装置の製造者によって集積回路2、3に設定される。所定の処理は、パケットを暗号化する処理であってもよい。その場合、集積回路2、3は、各々、暗号化したパケットを集積回路1に送信する。   The above-mentioned predetermined timing is a fixed interval timing, and is set in the integrated circuits 2 and 3 by the manufacturer of the communication apparatus of the present embodiment. The predetermined process may be a process of encrypting the packet. In that case, each of the integrated circuits 2 and 3 transmits the encrypted packet to the integrated circuit 1.

次に、集積回路1は、集積回路2からパケットを受信すると、受信したパケットを外部メモリ11に格納する。同様に、集積回路1は、集積回路3からパケットを受信すると、受信したパケットを外部メモリ12に格納する。   Next, when receiving a packet from the integrated circuit 2, the integrated circuit 1 stores the received packet in the external memory 11. Similarly, when the integrated circuit 1 receives a packet from the integrated circuit 3, the integrated circuit 1 stores the received packet in the external memory 12.

次に、集積回路1は、外部メモリ11、12に格納されるパケットを外部の通信装置に送信する。   Next, the integrated circuit 1 transmits the packets stored in the external memories 11 and 12 to an external communication device.

(1−3)動作の詳細
上述の「(1−1)送信許可動作」と「(1−2)通信動作」の動作は、具体的には、以下の「(2)障害が発生する前の通信装置の動作(詳細)」の通りの動作である。障害が発生する前の、本実施形態の通信装置における動作の詳細を説明する。
(1-3) Details of operation The above-described operations of “(1-1) transmission permission operation” and “(1-2) communication operation” are specifically the following “(2) Before a failure occurs. Operation of communication device (details) ”. Details of the operation of the communication apparatus according to this embodiment before a failure occurs will be described.

(2)障害が発生する前の通信装置の動作(詳細)
(2−1)送信許可動作
まず、集積回路1は、起動すると、図3に示されるように、接続する集積回路2、3に対し、送信の許可を与えるイネーブル信号を出力する。イネーブル信号の出力は、集積回路1の信号処理回路が行う。同様に、集積回路2、3は、起動すると、接続する集積回路1に送信の許可を与えるイネーブル信号を出力する。イネーブル信号の出力は、集積回路2、3の信号処理回路が行う。
(2) Operation of communication device before failure occurs (details)
(2-1) Transmission Permission Operation First, when the integrated circuit 1 is activated, as shown in FIG. 3, the integrated circuit 1 outputs an enable signal that gives permission for transmission to the integrated circuits 2 and 3 to be connected. The output of the enable signal is performed by the signal processing circuit of the integrated circuit 1. Similarly, when the integrated circuits 2 and 3 are activated, the integrated circuits 2 and 3 output an enable signal for permitting transmission to the connected integrated circuit 1. The signal processing circuit of the integrated circuits 2 and 3 outputs the enable signal.

集積回路1の信号処理回路から出力されたイネーブル信号は、集積回路2、3の信号処理回路に入力される。集積回路2、3の信号処理回路から出力されたイネーブル信号は、集積回路1の信号処理回路に入力される。   The enable signal output from the signal processing circuit of the integrated circuit 1 is input to the signal processing circuits of the integrated circuits 2 and 3. The enable signals output from the signal processing circuits of the integrated circuits 2 and 3 are input to the signal processing circuit of the integrated circuit 1.

集積回路1の信号処理回路は、集積回路2の信号処理回路からイネーブル信号が入力されると、自身に備わるレジスタAに値1を設定し、集積回路3の信号処理回路からイネーブル信号が入力されると、自身に備わるレジスタBに値1を設定する。一方、集積回路2、3の信号処理回路は、各々、集積回路1の信号処理回路からイネーブル信号が入力されると、自身に備わるレジスタCに値1を設定する。   When an enable signal is input from the signal processing circuit of the integrated circuit 2, the signal processing circuit of the integrated circuit 1 sets a value 1 in the register A provided therein, and the enable signal is input from the signal processing circuit of the integrated circuit 3. Then, the value 1 is set in the register B provided in itself. On the other hand, when the enable signal is input from the signal processing circuit of the integrated circuit 1, each of the signal processing circuits of the integrated circuits 2 and 3 sets the value 1 in the register C provided therein.

(2−2)集積回路1の動作(その1)
次に、集積回路1は、外部の通信装置と通信を行い、外部の通信装置からパケットを受信したとする。集積回路1の格納プロセッサが、入出力ポートを介して外部の通信装置からのパケットを受信する。
(2-2) Operation of Integrated Circuit 1 (Part 1)
Next, it is assumed that the integrated circuit 1 communicates with an external communication device and receives a packet from the external communication device. The storage processor of the integrated circuit 1 receives a packet from an external communication device via the input / output port.

集積回路1の格納プロセッサは、外部の通信装置から受信したパケットを、図6に示されるように、一旦、内部メモリ10に格納する(S1)。   The storage processor of the integrated circuit 1 temporarily stores the packet received from the external communication device in the internal memory 10 as shown in FIG. 6 (S1).

一方、集積回路1では、独立して送信プロセッサが動作している。   On the other hand, in the integrated circuit 1, the transmission processor operates independently.

集積回路1の送信プロセッサは、所定のタイミングになったとき、レジスタAの値が1か否か、すなわち、集積回路2から送信許可が与えられているか否かを判別する(S2)。   When the predetermined timing is reached, the transmission processor of the integrated circuit 1 determines whether or not the value of the register A is 1, that is, whether or not transmission permission is given from the integrated circuit 2 (S2).

上述の所定のタイミングは、一定間隔のタイミングであり、本実施形態の通信装置の製造者によって集積回路1の送信プロセッサに設定される。本実施形態の通信装置の製造者は、一定間隔のタイミングであれば、任意のタイミングを所定のタイミングとして集積回路1に設定してよい。   The above-mentioned predetermined timing is a fixed interval timing, and is set in the transmission processor of the integrated circuit 1 by the manufacturer of the communication apparatus of the present embodiment. The manufacturer of the communication device according to the present embodiment may set an arbitrary timing in the integrated circuit 1 as a predetermined timing as long as the timing is at a constant interval.

次に、集積回路1の送信プロセッサは、レジスタAの値が1の場合、すなわち、集積回路2から送信許可が与えられている場合(S2でYesの場合)には、内部メモリ10に格納されているパケットを所定数、集積回路2に送信する(S3)。   Next, when the value of the register A is 1, that is, when the transmission permission is given from the integrated circuit 2 (Yes in S2), the transmission processor of the integrated circuit 1 is stored in the internal memory 10. The predetermined number of packets are transmitted to the integrated circuit 2 (S3).

所定数は、本実施形態の通信装置の製造者によって送信プロセッサに設定される。   The predetermined number is set in the transmission processor by the manufacturer of the communication apparatus of the present embodiment.

集積回路1の送信プロセッサは、上述のS2の処理で、レジスタAの値が1でない場合、すなわち、集積回路2から送信許可が与えられていない場合(S2でNoの場合)には、内部メモリ10に格納されているパケットを集積回路2に送信しない。   When the value of the register A is not 1 in the processing of S2 described above, that is, when the transmission permission is not given from the integrated circuit 2 (No in S2), the transmission processor of the integrated circuit 1 The packet stored in 10 is not transmitted to the integrated circuit 2.

ここでは、レジスタAの値が1なので、集積回路1の送信プロセッサは、内部メモリ10に格納されているパケットを集積回路2に送信したものとして説明を続ける。   Here, since the value of the register A is 1, the transmission processor of the integrated circuit 1 continues the description on the assumption that the packet stored in the internal memory 10 has been transmitted to the integrated circuit 2.

次に、S3の後、集積回路1の送信プロセッサは、レジスタBの値が1か否か、すなわち、集積回路3から送信許可が与えられているか否かを判別する(S4)。   Next, after S3, the transmission processor of the integrated circuit 1 determines whether or not the value of the register B is 1, that is, whether or not transmission permission is given from the integrated circuit 3 (S4).

次に、集積回路1の送信プロセッサは、レジスタBの値が1の場合、すなわち、集積回路3から送信許可が与えられている場合(S4でYesの場合)には、内部メモリ10に格納されているパケットを所定数、集積回路3に送信する(S5)。   Next, when the value of the register B is 1, that is, when transmission permission is given from the integrated circuit 3 (Yes in S4), the transmission processor of the integrated circuit 1 is stored in the internal memory 10. The predetermined number of packets are transmitted to the integrated circuit 3 (S5).

集積回路1の送信プロセッサは、上述のS4の処理で、レジスタBの値が1でない場合、すなわち、集積回路3から送信許可が与えられていない場合(S4でNoの場合)には、内部メモリ10に格納されているパケットを集積回路3に送信しない。   When the value of the register B is not 1 in the processing of S4 described above, that is, when the transmission permission is not given from the integrated circuit 3 (No in S4), the transmission processor of the integrated circuit 1 The packet stored in 10 is not transmitted to the integrated circuit 3.

ここでは、レジスタBの値が1なので、集積回路1の送信プロセッサは、内部メモリ10に格納されているパケットを集積回路3に送信したものとして説明を続ける。   Here, since the value of the register B is 1, the transmission processor of the integrated circuit 1 continues the description on the assumption that the packet stored in the internal memory 10 has been transmitted to the integrated circuit 3.

(2−3)集積回路2、3における動作
次に、集積回路2、3の格納プロセッサは、集積回路1から送信されたパケットを受信すると、各々、受信したパケットを一旦、内部メモリ20、30に格納する(S6)。
(2-3) Operation in Integrated Circuits 2 and 3 Next, when the storage processor of the integrated circuits 2 and 3 receives the packet transmitted from the integrated circuit 1, each of the received packets is temporarily stored in the internal memories 20 and 30. (S6).

次に、集積回路2、3の送信プロセッサは、所定のタイミングになると、各々、レジスタCの値が1か否か、すなわち、集積回路1から送信許可が与えられているか否かを判別する(S7)。   Next, the transmission processors of the integrated circuits 2 and 3 each determine whether or not the value of the register C is 1, that is, whether or not transmission permission is given from the integrated circuit 1 at a predetermined timing ( S7).

S7における所定のタイミングは、一定間隔のタイミングであり、本実施形態の通信装置の製造者によって集積回路2、3の送信プロセッサに設定される。本実施形態の通信装置の製造者は、一定間隔のタイミングであれば、任意のタイミングを所定のタイミングとして集積回路1に設定してよい。   The predetermined timing in S7 is a fixed interval timing, and is set in the transmission processor of the integrated circuits 2 and 3 by the manufacturer of the communication apparatus of this embodiment. The manufacturer of the communication device according to the present embodiment may set an arbitrary timing in the integrated circuit 1 as a predetermined timing as long as the timing is at a constant interval.

次に、集積回路2、3の送信プロセッサは、レジスタCの値が1の場合、すなわち、集積回路1から送信許可が与えられている場合(S7でYesの場合)には、各々、内部メモリ20、30に格納されているパケットを取得する(S8)。   Next, when the value of the register C is 1, that is, when the transmission permission is given from the integrated circuit 1 (Yes in S7), the transmission processors of the integrated circuits 2 and 3 respectively The packets stored in 20, 30 are acquired (S8).

次に、集積回路2、3の送信プロセッサは、各々、取得したパケットを集積回路1に送信する(S9)。このとき、送信プロセッサは、取得したパケットに対して暗号化を行い、暗号化したパケットを集積回路1に送信してもよい。   Next, the transmission processors of the integrated circuits 2 and 3 each transmit the acquired packet to the integrated circuit 1 (S9). At this time, the transmission processor may encrypt the acquired packet and transmit the encrypted packet to the integrated circuit 1.

集積回路2、3の送信プロセッサは、上述のS7の処理で、レジスタCの値が1でない場合、すなわち、集積回路1から送信許可が与えられていない場合(S7でNoの場合)には、内部メモリ20、30に格納されているパケットを集積回路1に送信しない。   When the value of the register C is not 1 in the processing of S7 described above, that is, when the transmission permission is not given from the integrated circuit 1 (No in S7), the transmission processors of the integrated circuits 2 and 3 Packets stored in the internal memories 20 and 30 are not transmitted to the integrated circuit 1.

ここでは、レジスタCの値が1なので、集積回路2、3の送信プロセッサは、各々、内部メモリ20、30に格納されているパケットを集積回路1に送信したものとして説明を続ける。   Here, since the value of the register C is 1, the transmission processors of the integrated circuits 2 and 3 will continue the description on the assumption that the packets stored in the internal memories 20 and 30 have been transmitted to the integrated circuit 1, respectively.

集積回路2、3の送信プロセッサは、S9の後、処理を終了し、次の所定のタイミングを待つ。   After S9, the transmission processors of the integrated circuits 2 and 3 end the processing and wait for the next predetermined timing.

(2−4)集積回路1の動作(その2)
集積回路1の送信プロセッサは、集積回路2、3各々からパケットを受信する。
(2-4) Operation of integrated circuit 1 (part 2)
The transmission processor of the integrated circuit 1 receives a packet from each of the integrated circuits 2 and 3.

集積回路1の送信プロセッサは、集積回路2から受信したパケットを一旦、外部メモリ11に格納し、集積回路3から受信したパケットを一旦、外部メモリ12に格納する(S10)。   The transmission processor of the integrated circuit 1 temporarily stores the packet received from the integrated circuit 2 in the external memory 11, and temporarily stores the packet received from the integrated circuit 3 in the external memory 12 (S10).

次に、集積回路1の送信プロセッサは、外部メモリ11、12に格納されているパケットを全て外部の通信装置に送信する(S11)。このとき、集積回路1の格納プロセッサは、外部メモリ11、12に格納されるパケットを、パケットに含まれるシーケンス番号順に送信してもよい。   Next, the transmission processor of the integrated circuit 1 transmits all the packets stored in the external memories 11 and 12 to the external communication device (S11). At this time, the storage processor of the integrated circuit 1 may transmit the packets stored in the external memories 11 and 12 in the order of the sequence numbers included in the packets.

(3)障害発生したときの通信装置の動作(概要)
次に、本実施形態の通信装置内で障害が発生したとする。例えば、本実施形態の通信装置内でパケットが壊れるという障害が発生したとする。本実施形態の通信装置から壊れたパケットが外部の通信装置に送信され、正しく通信ができない。
(3) Operation of communication device when failure occurs (outline)
Next, it is assumed that a failure has occurred in the communication apparatus of this embodiment. For example, it is assumed that a failure that a packet is broken occurs in the communication apparatus according to the present embodiment. A broken packet is transmitted from the communication device of this embodiment to an external communication device, and communication cannot be performed correctly.

(3−1)障害の検出
そのとき、集積回路1の信号処理回路は、「(2−5−1)装置の故障を検出する機能」に示した機能を備えており、障害を検出する。
(3-1) Failure Detection At that time, the signal processing circuit of the integrated circuit 1 has the function shown in “(2-5-1) Function for detecting device failure”, and detects the failure.

集積回路1の信号処理回路は、障害を検出すると、図7に示されるように、障害検出を示す信号をCPU4に出力する(S20)。   When detecting a failure, the signal processing circuit of the integrated circuit 1 outputs a signal indicating failure detection to the CPU 4 as shown in FIG. 7 (S20).

次に、CPU4は、障害検出を示す信号が入力されると、集積回路1の格納プロセッサと、集積回路1、2、3の信号処理回路と、に対し、障害発生を示す信号を出力する(S21)。   Next, when a signal indicating failure detection is input, the CPU 4 outputs a signal indicating the occurrence of a failure to the storage processor of the integrated circuit 1 and the signal processing circuits of the integrated circuits 1, 2, and 3 ( S21).

(3−2)障害発生時の集積回路1の動作
次に、集積回路1の格納プロセッサは、障害発生を示す信号がCPU4から入力されると、外部の通信装置からパケットを受信しても、内部メモリ10に格納せず、破棄する(S22)。
(3-2) Operation of Integrated Circuit 1 When Failure Occurs Next, when the storage processor of integrated circuit 1 receives a signal indicating the occurrence of a failure from CPU 4, even if it receives a packet from an external communication device, Discard without storing in the internal memory 10 (S22).

S22の処理により、集積回路1は、内部メモリ10に新たにパケットを格納しないようにし、障害発生時のパケットを保存する。S22の処理は、内部メモリ10へのパケットの格納を停止する処理である。   By the process of S22, the integrated circuit 1 prevents a new packet from being stored in the internal memory 10 and stores the packet at the time of occurrence of the failure. The process of S <b> 22 is a process of stopping the packet storage in the internal memory 10.

一方、集積回路1の信号処理回路は、障害発生を示す信号がCPU4から入力されると、ディセーブル信号を集積回路2、3に出力する(S23)。図4には、ディセーブル信号が集積回路2、3に出力される様子が示されている。   On the other hand, when a signal indicating the occurrence of a failure is input from the CPU 4, the signal processing circuit of the integrated circuit 1 outputs a disable signal to the integrated circuits 2 and 3 (S 23). FIG. 4 shows how the disable signal is output to the integrated circuits 2 and 3.

次に、集積回路2、3は、ディセーブル信号が入力されると、集積回路1へのパケットの送信を停止する(S24)。   Next, when the disable signal is input, the integrated circuits 2 and 3 stop transmitting packets to the integrated circuit 1 (S24).

S24の処理については、集積回路2、3の送信プロセッサと信号処理回路によって実現される。S24の処理の詳細な動作は、後述の「(4−1)S24の処理の詳細」で説明するが、集積回路2、3が集積回路1へのパケットの送信を停止するので、集積回路1は、パケットを受信せず、外部メモリ11、12にパケットを新たに格納しなくなる。その結果、集積回路1は、外部メモリ11、12に障害発生時のパケットを保存する。S23、S24の処理は、外部メモリ11、12へのパケットの格納を停止する処理である。   The processing of S24 is realized by the transmission processor and the signal processing circuit of the integrated circuits 2 and 3. The detailed operation of the process of S24 will be described later in “(4-1) Details of the process of S24”. However, since the integrated circuits 2 and 3 stop transmitting packets to the integrated circuit 1, the integrated circuit 1 Does not receive the packet, and no longer stores the packet in the external memories 11 and 12. As a result, the integrated circuit 1 stores the packet at the time of failure occurrence in the external memories 11 and 12. The processes in S23 and S24 are processes that stop storing packets in the external memories 11 and 12.

(3−3)障害発生時の集積回路2、3の動作
一方、集積回路2、3の信号処理回路にも、上述のS21の処理によって、CPU4から障害発生を示す信号が入力される。
(3-3) Operation of Integrated Circuits 2 and 3 when a Fault Occurs On the other hand, a signal indicating the occurrence of a fault is also input to the signal processing circuits of the integrated circuits 2 and 3 from the CPU 4 by the process of S21 described above.

集積回路2、3の信号処理回路は、S21の処理によって、CPU4から障害発生を示す信号が入力されると、図7に示されるように、各々、集積回路1に対してディセーブル信号を出力する(S25)。図4に、ディセーブル信号が集積回路1に出力される様子が示されている。   The signal processing circuits of the integrated circuits 2 and 3 each output a disable signal to the integrated circuit 1, as shown in FIG. (S25). FIG. 4 shows how the disable signal is output to the integrated circuit 1.

次に、集積回路1は、ディセーブル信号が入力されると、図7に示されるように、集積回路2、3へのパケットの送信を停止する(S26)。   Next, when the disable signal is input, the integrated circuit 1 stops transmitting packets to the integrated circuits 2 and 3 as shown in FIG. 7 (S26).

S26の処理は、集積回路1の送信プロセッサと信号処理回路によって実現される。S26の処理の詳細な動作は、後述の「(4−2)S26の処理の詳細」で説明するが、集積回路1が集積回路2、3へのパケットの送信を停止する為、集積回路2、3は、パケットを受信せず、内部メモリ20、30にパケットを新たに格納しなくなる。その結果、集積回路2、3は、内部メモリ20、30に障害発生時のパケットを保存する。S25、S26の処理は、内部メモリ20、30へのパケットの格納を停止する処理である。   The process of S26 is realized by the transmission processor and the signal processing circuit of the integrated circuit 1. The detailed operation of the process of S26 will be described later in “(4-2) Details of the process of S26”. However, since the integrated circuit 1 stops transmitting packets to the integrated circuits 2 and 3, the integrated circuit 2 3 does not receive the packet and does not newly store the packet in the internal memories 20 and 30. As a result, the integrated circuits 2 and 3 store the packet at the time of failure occurrence in the internal memories 20 and 30. The processes of S25 and S26 are processes that stop storing packets in the internal memories 20 and 30.

(3−4)障害時のパケットをCF5に保存する動作
次に、CPU4は、S21の後、所定時間経過すると、パケット転送を指示する信号を、集積回路1、2、3の信号処理回路に送信する(S27)。
(3-4) Operation of Saving Packet at Failure in CF5 Next, after a predetermined time has elapsed after S21, the CPU 4 sends a signal for instructing packet transfer to the signal processing circuits of the integrated circuits 1, 2, and 3. Transmit (S27).

所定時間は、S21の後、S22〜S24及びS25〜S26が完了するまでの時間(以下、「完了時間」という)であり、本実施形態の通信装置の製造者によってCPU4に設定される。本実施形態の通信装置の製造者は、完了時間を実測し、実測した時間よりも十分に長い時間を所定時間としてCPU4に設定する。CPU4は、障害発生時のパケットが各メモリに保存されるのを待って、パケット転送を指示する信号を集積回路1、2、3の信号処理回路に送信する。   The predetermined time is a time until S22 to S24 and S25 to S26 are completed after S21 (hereinafter referred to as “completion time”), and is set in the CPU 4 by the manufacturer of the communication apparatus of the present embodiment. The manufacturer of the communication apparatus according to the present embodiment actually measures the completion time, and sets the CPU 4 as a predetermined time that is sufficiently longer than the actually measured time. The CPU 4 waits for the packet at the time of failure to be stored in each memory, and transmits a signal instructing packet transfer to the signal processing circuits of the integrated circuits 1, 2, and 3.

次に、集積回路1、2、3の信号処理回路は、パケット転送を指示する信号が入力されると、各々、内部メモリ10、20、30及び外部メモリ11、12から障害発生時のパケットを取得し、取得した障害発生時のパケットをCF5に保存する(S28)。このとき、集積回路1、2、3の信号処理回路は、DMA転送により、障害発生時のパケットを内部メモリ10、20、30及び外部メモリ11、12からCF5に転送して保存してもよい。   Next, when a signal instructing packet transfer is input, the signal processing circuits of the integrated circuits 1, 2, and 3 receive packets at the time of failure from the internal memories 10, 20, and 30 and the external memories 11 and 12, respectively. The acquired packet when the failure occurs is stored in the CF 5 (S28). At this time, the signal processing circuits of the integrated circuits 1, 2, and 3 may transfer and store the packet at the time of the failure from the internal memories 10, 20, and 30 and the external memories 11 and 12 to the CF 5 by DMA transfer. .

(3−5)パケットが保存されたCF5について
通信装置の製造者は、障害発生時のパケットをCF5から取得できる。その為、通信装置の製造者は、再現試験を行うとき、障害発生時のパケットを用いることができる。
(3-5) CF5 in which a packet is stored A manufacturer of a communication device can acquire a packet at the time of failure from the CF5. Therefore, the manufacturer of the communication device can use the packet at the time of failure when performing the reproduction test.

(4)S24、S26の処理の詳細
(4−1)S24の処理の詳細
上述のS24の処理(ディセーブル信号が入力された集積回路2、3が、集積回路1へのパケット送信を停止する処理)は、具体的には、以下の通りの処理である。
(4) Details of processing in S24 and S26 (4-1) Details of processing in S24 (Processing in S24 described above (the integrated circuits 2 and 3 to which the disable signal is input stop packet transmission to the integrated circuit 1) Specifically, the processing is as follows.

まず、集積回路2、3の信号処理回路は、S23によって集積回路1の信号処理回路からディセーブル信号が入力されると、各々、自身に備わるレジスタCに値0を設定する。値0は、集積回路1から送信許可が与えられていないことを示す値である。   First, when the disable signal is input from the signal processing circuit of the integrated circuit 1 in S23, the signal processing circuits of the integrated circuits 2 and 3 each set a value 0 to the register C provided in the integrated circuit 2 and 3 itself. The value 0 is a value indicating that the transmission permission is not given from the integrated circuit 1.

ここで、集積回路2、3の送信プロセッサは、集積回路2、3内で独立して動作している。   Here, the transmission processors of the integrated circuits 2 and 3 operate independently in the integrated circuits 2 and 3.

集積回路2、3の送信プロセッサは、図6に示されるように、所定のタイミングになると、S7の処理、すなわち、レジスタCの値が1か否かを判別する処理を行う(S7)。   As shown in FIG. 6, the transmission processors of the integrated circuits 2 and 3 perform the process of S7, that is, the process of determining whether or not the value of the register C is 1 at a predetermined timing (S7).

所定のタイミングは、上述の「(2−3)集積回路2、3における動作」で説明した通り、一定間隔毎のタイミングである。   The predetermined timing is a timing at regular intervals, as described above in “(2-3) Operation in integrated circuits 2 and 3”.

集積回路2、3の送信プロセッサは、レジスタCの値が1でない場合、すなわち、集積回路1から送信許可が与えられていない場合(S7でNoの場合)には、内部メモリ20、30に格納されているパケットを集積回路1に送信しない。その結果、集積回路2、3は、集積回路1へのパケットの送信を停止する。   The transmission processors of the integrated circuits 2 and 3 store in the internal memories 20 and 30 when the value of the register C is not 1, that is, when transmission permission is not given from the integrated circuit 1 (No in S7). The transmitted packet is not transmitted to the integrated circuit 1. As a result, the integrated circuits 2 and 3 stop transmitting packets to the integrated circuit 1.

(4−2)S26の処理の詳細
次に、上述のS26の処理(ディセーブル信号が入力された集積回路1が、集積回路2、3へのパケット送信を停止する処理)は、具体的には、以下の通りの処理である。
(4-2) Details of Processing in S26 Next, the processing in S26 described above (the processing in which the integrated circuit 1 to which the disable signal is input stops packet transmission to the integrated circuits 2 and 3) is specifically described. Is the following process.

まず、集積回路1の信号処理回路は、S25によって集積回路2の信号処理回路からディセーブル信号が入力されると、自身に備わるレジスタAに値0を設定する。また、集積回路1は、S25によって集積回路3からディセーブル信号が入力されると、自身に備わるレジスタBに値0を設定する。   First, when a disable signal is input from the signal processing circuit of the integrated circuit 2 in S25, the signal processing circuit of the integrated circuit 1 sets a value 0 in the register A provided therein. Further, when the disable signal is input from the integrated circuit 3 in S25, the integrated circuit 1 sets the value 0 in the register B provided in the integrated circuit 1.

ここで、集積回路1の送信プロセッサは、集積回路1内で独立して動作している。   Here, the transmission processor of the integrated circuit 1 operates independently in the integrated circuit 1.

集積回路1の送信プロセッサは、図6に示されるように、所定のタイミングになると、S2の処理、すなわち、レジスタAの値が1か否かを判別する処理を行う(S2)。所定のタイミングは、上述の「(2−2)集積回路1の動作」で説明した通り、一定間隔のタイミングである。   As shown in FIG. 6, the transmission processor of the integrated circuit 1 performs the process of S2, that is, the process of determining whether or not the value of the register A is 1 at a predetermined timing (S2). The predetermined timing is a constant interval timing as described above in “(2-2) Operation of integrated circuit 1”.

集積回路1の送信プロセッサは、S2の判別で、レジスタAの値が1でない場合、すなわち、集積回路2から送信許可が与えられていない場合(S2でNoの場合)には、内部メモリ10に格納されているパケットを集積回路2に送信しない。集積回路1は、集積回路2へのパケットの送信を停止する。   When the value of the register A is not 1 in the determination of S2, that is, when the transmission permission is not given from the integrated circuit 2 (No in S2), the transmission processor of the integrated circuit 1 stores the internal memory 10 in the internal memory 10. The stored packet is not transmitted to the integrated circuit 2. The integrated circuit 1 stops transmission of packets to the integrated circuit 2.

次に、集積回路1の送信プロセッサは、S4の処理を行う。具体的には、集積回路1の送信プロセッサは、レジスタBの値が1か否か、すなわち、集積回路3から送信許可が与えられているか否かを判別する(S4)。   Next, the transmission processor of the integrated circuit 1 performs the process of S4. Specifically, the transmission processor of the integrated circuit 1 determines whether or not the value of the register B is 1, that is, whether or not transmission permission is given from the integrated circuit 3 (S4).

集積回路1の送信プロセッサは、上述のS4の処理で、レジスタBの値が1でない場合、すなわち、集積回路3から送信許可が与えられていない場合(S4でNoの場合)には、内部メモリ10に格納されているパケットを集積回路3に送信しない。その結果、集積回路1は、集積回路3へのパケットの送信を停止する。   When the value of the register B is not 1 in the processing of S4 described above, that is, when the transmission permission is not given from the integrated circuit 3 (No in S4), the transmission processor of the integrated circuit 1 The packet stored in 10 is not transmitted to the integrated circuit 3. As a result, the integrated circuit 1 stops transmitting packets to the integrated circuit 3.

(5)動作まとめ
本実施形態の通信装置は、障害発生時、上述のS20〜S24を実施することで、受信するパケットを破棄し、内部メモリ10へのパケットの格納を停止する。これにより、本実施形態の通信装置は、内部メモリ10に障害発生時のパケットを保存する。
(5) Summary of Operation When a failure occurs, the communication device according to the present embodiment discards the received packet and stops storing the packet in the internal memory 10 by performing the above-described S20 to S24. As a result, the communication apparatus according to the present embodiment stores the packet at the time of failure occurrence in the internal memory 10.

さらに、本実施形態の通信装置は、障害発生時、S25〜S26を実施することで、内部メモリ20、30や外部メモリ11、12へのパケットの格納を停止する。これにより、本実施形態の通信装置は、内部メモリ20、30や外部メモリ11、12に障害発生時のパケットを保存する。   Furthermore, when a failure occurs, the communication device according to the present embodiment stops storing packets in the internal memories 20 and 30 and the external memories 11 and 12 by performing S25 to S26. As a result, the communication apparatus of the present embodiment stores the packet at the time of failure occurrence in the internal memories 20 and 30 and the external memories 11 and 12.

本実施形態の通信装置は、CPU4からのパケット転送指示により、CF5に障害発生時のパケットを保存する。その為、通信装置の製造者は、CF5から障害発生時のパケットを取得できる。その結果、通信装置の製造者は、再現試験を行うとき、障害発生時のパケットを用いることができ、障害が発生した環境を十分整えることができる。   The communication device according to the present embodiment stores a packet when a failure occurs in the CF 5 in accordance with a packet transfer instruction from the CPU 4. Therefore, the manufacturer of the communication device can acquire the packet at the time of failure occurrence from the CF 5. As a result, the manufacturer of the communication device can use the packet at the time of the failure when performing the reproduction test, and can sufficiently prepare the environment where the failure has occurred.

(6)バリエーション動作
(6−1)保存動作のバリエーション
上記では、集積回路1、2、3は、障害発生時のパケットをCF5に保存した。集積回路1、2、3は、障害発生時のパケットだけでなく、他のデータをCF5に保存してもよい。
(6) Variation Operation (6-1) Variation of Storage Operation In the above description, the integrated circuits 1, 2, and 3 store the packet at the time of failure in the CF5. The integrated circuits 1, 2, and 3 may store not only the packet at the time of the failure but also other data in the CF 5.

例えば、集積回路1、2、3は、上述の「(3−3)パケットの受信間隔を計測する機能」を備え、受信するパケットの時間間隔を計測する場合、計測した時間間隔を示す値も、障害発生時のパケットと共に、CF5に保存してもよい。   For example, the integrated circuits 1, 2, and 3 have the above-mentioned “(3-3) function of measuring the reception interval of packets”, and when measuring the time interval of received packets, the value indicating the measured time interval is also The data may be stored in the CF 5 together with the packet at the time of failure.

さらに、集積回路1、2、3は、製造者によって情報が設定される場合、設定された情報もCF5に保存してもよい。   Further, when the information is set by the manufacturer, the integrated circuits 1, 2, and 3 may store the set information in the CF 5 as well.

(6−2)パケットの送信動作のバリエーション
上記では、集積回路1の送信プロセッサは、内部メモリ10から取得したパケットをそのまま集積回路2、3に送信した。集積回路1の送信プロセッサは、内部メモリ10から取得したパケットに対し、何らかの処理を行ってから集積回路2、3に送信してもよい。
(6-2) Variation of Packet Transmission Operation In the above description, the transmission processor of the integrated circuit 1 transmits the packet acquired from the internal memory 10 to the integrated circuits 2 and 3 as they are. The transmission processor of the integrated circuit 1 may perform some processing on the packet acquired from the internal memory 10 and then transmit the packet to the integrated circuits 2 and 3.

例えば、集積回路1の送信プロセッサは、内部メモリ10から取得したパケットの優先度の判別を行い、優先度の高いパケットを集積回路2に、優先度の低いパケットを集積回路3に送信してもよい。具体的には、集積回路1の送信プロセッサは、内部メモリ10から取得したパケットのType of Service値が所定値よりも大きいか否かを判別してもよい。Type of Service値は、パケットの優先度を示す値である。その場合、集積回路1の送信プロセッサは、Type of Service値が所定値よりも大きければ、優先度の高いパケットと判別し、内部メモリ10から取得したパケットを集積回路2に送信する。集積回路1の送信プロセッサは、Type of Service値が所定値以下であれば、優先度の低いパケットと判別し、内部メモリ10から取得したパケットを集積回路3に送信する。所定値は、本実施形態の通信装置の製造者によって集積回路1の送信プロセッサに設定される。   For example, the transmission processor of the integrated circuit 1 determines the priority of the packet acquired from the internal memory 10, and transmits a packet with a high priority to the integrated circuit 2 and a packet with a low priority to the integrated circuit 3. Good. Specifically, the transmission processor of the integrated circuit 1 may determine whether or not the Type of Service value of the packet acquired from the internal memory 10 is greater than a predetermined value. The Type of Service value is a value indicating the priority of the packet. In that case, if the Type of Service value is larger than the predetermined value, the transmission processor of the integrated circuit 1 determines that the packet has a high priority, and transmits the packet acquired from the internal memory 10 to the integrated circuit 2. If the Type of Service value is equal to or less than a predetermined value, the transmission processor of the integrated circuit 1 determines that the packet has a low priority and transmits the packet acquired from the internal memory 10 to the integrated circuit 3. The predetermined value is set in the transmission processor of the integrated circuit 1 by the manufacturer of the communication apparatus of the present embodiment.

(6−3)パケットの受信動作のバリエーション
上記では、集積回路2、3の格納プロセッサが、集積回路1から受信したパケットを、そのまま内部メモリ20、30に格納する場合について説明した。集積回路2、3の格納プロセッサは、集積回路1から受信したパケットに対し、何らかの処理を行ってから内部メモリ20、30に格納してもよい。
(6-3) Variation of Packet Reception Operation In the above description, the case where the storage processor of the integrated circuits 2 and 3 stores the packet received from the integrated circuit 1 in the internal memories 20 and 30 as they are. The storage processors of the integrated circuits 2 and 3 may perform some processing on the packets received from the integrated circuit 1 and store them in the internal memories 20 and 30.

例えば、集積回路2、3の格納プロセッサは、受信したパケットのIPアドレスがプライベートIPアドレスか否かを判別し、プライベートIPアドレスであった場合には、該IPアドレスをグローバルIPアドレスに付け替えてから内部メモリ20、30に格納してもよい。その場合、集積回路2、3の格納プロセッサには、本実施形態の通信装置の製造者によって、プライベートIPアドレスとグローバルIPアドレスが対応づけて設定される。IPは、Internet Protocolの略称である。   For example, the storage processor of the integrated circuits 2 and 3 determines whether or not the IP address of the received packet is a private IP address. If the IP address is a private IP address, the storage processor of the integrated circuit 2 or 3 replaces the IP address with the global IP address. It may be stored in the internal memories 20 and 30. In that case, a private IP address and a global IP address are set in association with each other in the storage processors of the integrated circuits 2 and 3 by the manufacturer of the communication apparatus of the present embodiment. IP is an abbreviation for Internet Protocol.

また、集積回路2、3の送信プロセッサは、S8の処理で、内部メモリ20、30から取得したパケットに対して暗号化を行ったが、他の処理を行ってもよい。集積回路2、3の送信プロセッサがパケットに対して行う処理は、暗号化に限定しない。   Further, although the transmission processors of the integrated circuits 2 and 3 performed the encryption on the packets acquired from the internal memories 20 and 30 in the process of S8, other processes may be performed. The processing performed on the packets by the transmission processors of the integrated circuits 2 and 3 is not limited to encryption.

(6−4)パケットの送信を停止する動作のバリエーション
上記では、集積回路1、2、3の信号処理回路は、接続される集積回路からパケットが送信されないよう、ディセーブル信号を出力した。
(6-4) Variation of operation for stopping packet transmission In the above description, the signal processing circuits of the integrated circuits 1, 2, and 3 output the disable signal so that the packets are not transmitted from the connected integrated circuit.

集積回路1、2、3の信号処理回路は、一般的なバックプレシャー機能を備えた回路と同様、周知のジャム信号を、接続される集積回路の送信プロセッサに出力してもよい。その場合、集積回路1、2、3の信号処理回路は、接続される集積回路の送信プロセッサと制御線を介して接続される。ジャム信号を受信した集積回路1、2、3の送信プロセッサは、送信を停止する。   The signal processing circuits of the integrated circuits 1, 2, and 3 may output a known jam signal to the transmission processor of the connected integrated circuit, similarly to a circuit having a general back pressure function. In that case, the signal processing circuits of the integrated circuits 1, 2, and 3 are connected to a transmission processor of the connected integrated circuit through a control line. The transmission processors of the integrated circuits 1, 2, and 3 that have received the jam signal stop transmission.

(6−5)パケットの保存先について
上記では、集積回路1、2、3の信号処理回路は、障害発生時のパケットをCF5に保存するものとしたが、保存先はCF5に限らない。集積回路1、2、3の信号処理回路は、障害発生時のパケットを、接続される外部メモリ11、12、21、31に保存してもよい。
(6-5) Regarding packet storage destination In the above description, the signal processing circuits of the integrated circuits 1, 2, and 3 store the packet at the time of failure in the CF5, but the storage destination is not limited to the CF5. The signal processing circuits of the integrated circuits 1, 2, and 3 may store a packet when a failure occurs in the external memories 11, 12, 21, and 31 connected thereto.

また、上記では、集積回路1の格納プロセッサは、外部の通信装置から受信したパケットを内部メモリ10に格納したが、内部メモリ10ではなく、外部メモリ11、12に格納してもよい。その場合、集積回路1の格納プロセッサは、集積回路20、30から受信したパケットを、外部メモリ11、12ではなく、内部メモリ10に格納する。   In the above description, the storage processor of the integrated circuit 1 stores the packet received from the external communication device in the internal memory 10, but may store it in the external memories 11 and 12 instead of the internal memory 10. In that case, the storage processor of the integrated circuit 1 stores the packets received from the integrated circuits 20 and 30 in the internal memory 10 instead of the external memories 11 and 12.

同様に、集積回路2、3の格納プロセッサは、受信したパケットを内部メモリ20、30ではなく、外部メモリ21、31に格納してもよい。   Similarly, the storage processor of the integrated circuits 2 and 3 may store the received packet in the external memories 21 and 31 instead of the internal memories 20 and 30.

(6−6)障害の検出について
上記では、集積回路1が、上述の「(2−5−1)装置の故障を検出する機能」に示した障害検出機能を備える場合について説明した。集積回路1は、上述の「(2−5−2)メモリ故障を検出する機能」や「(2−5−3)パケットが壊れる障害を検出する機能」に示した障害検出機能を備えてもよい。
(6-6) Fault Detection In the above description, the case where the integrated circuit 1 includes the fault detection function described in the above-mentioned “(2-5-1) Function for detecting a fault in the device” has been described. The integrated circuit 1 may include the failure detection function described in the above-mentioned “(2-5-2) Function for detecting a memory failure” and “(2-5-3) A function for detecting a failure in which a packet is broken”. Good.

具体的には、集積回路1の格納プロセッサが、上述の「(2−5−2)メモリ故障を検出する機能」に示した障害検出機能を備えてもよい。集積回路1の格納プロセッサは、該障害検出機能により障害を検出すると、障害検出を示す信号をCPU4に出力する。   Specifically, the storage processor of the integrated circuit 1 may have the failure detection function shown in the above-mentioned “(2-5-2) Function of detecting a memory failure”. When the storage processor of the integrated circuit 1 detects a failure by the failure detection function, it outputs a signal indicating failure detection to the CPU 4.

また、集積回路1の格納プロセッサと送信プロセッサが、上述の「(2−5−3)パケットが壊れる障害を検出する機能」に示した障害検出機能を備えてもよい。集積回路1の格納プロセッサが障害検出レジスタAに0又は1を書き込む処理を行い、集積回路1の送信プロセッサが障害検出レジスタBに0又は1を書き込む処理を行う。集積回路1の送信プロセッサは、障害検出レジスタAが0であるのに、障害検出レジスタBが1であるときに、障害検出を示す電気信号をCPU4に出力する。   Further, the storage processor and the transmission processor of the integrated circuit 1 may be provided with the failure detection function shown in the above-mentioned “(2-5-3) Function for detecting failure of packet corruption”. The storage processor of the integrated circuit 1 performs a process of writing 0 or 1 to the failure detection register A, and the transmission processor of the integrated circuit 1 performs a process of writing 0 or 1 to the failure detection register B. When the failure detection register A is 0 but the failure detection register B is 1, the transmission processor of the integrated circuit 1 outputs an electrical signal indicating failure detection to the CPU 4.

集積回路1の各機能部は、外部の通信装置との通信に係る障害を検出する障害検出機能であれば、いかなる機能も備えることができる。集積回路1の各機能部は、障害検出機能によって障害が検出されたときには、障害検出を示す電気信号をCPU4に出力する。   Each functional unit of the integrated circuit 1 can have any function as long as it is a fault detection function that detects a fault related to communication with an external communication device. Each functional unit of the integrated circuit 1 outputs an electrical signal indicating failure detection to the CPU 4 when a failure is detected by the failure detection function.

また、集積回路2、3の各機能部も、障害検出機能を備えてもよい。集積回路2、3は、障害検出機能によって障害が検出されたときには、障害検出を示す電気信号をCPU4に出力する。   Each functional unit of the integrated circuits 2 and 3 may also have a failure detection function. When a failure is detected by the failure detection function, the integrated circuits 2 and 3 output an electrical signal indicating failure detection to the CPU 4.

(6−8)本実施形態の通信装置の構成について
本実施形態の通信装置は、冗長化構成を備えてもよい。具体的には、本実施形態の通信装置は、図2に示すCPU4と集積回路1、2、3(以下、「最小構成」という)を運用系として1つ備え、上述の最小構成を予備系として複数備えてもよい。
(6-8) Configuration of Communication Device of this Embodiment The communication device of this embodiment may have a redundant configuration. Specifically, the communication apparatus of this embodiment includes one CPU 4 and integrated circuits 1, 2, and 3 (hereinafter referred to as “minimum configuration”) shown in FIG. A plurality may be provided.

また、上述の最小構成はプリント基板に実装されて、本実施形態の通信装置に備えられてもよい。   Further, the above-described minimum configuration may be mounted on a printed circuit board and provided in the communication device of the present embodiment.

[効果の説明]
本実施形態によれば、通信装置の製造者は、再現試験を行うときに、障害が発生した環境を十分に整えることができる。
[Description of effects]
According to this embodiment, the manufacturer of the communication device can sufficiently prepare the environment where the failure has occurred when performing the reproduction test.

なぜならば、本実施形態の通信装置は、障害発生時、障害を検出すると、各メモリへのパケットの格納を停止し、障害発生時のパケットをバッファ内に保存するからである。   This is because the communication device according to the present embodiment stops storing packets in each memory when a failure is detected when a failure occurs, and stores the packet at the time of failure in a buffer.

通信装置が障害発生時のパケットを保存するので、通信装置の製造者は、障害発生時のパケットを取得することができる。その結果、通信装置の製造者は、再現試験を行うとき、障害発生時のパケットを用いることができ、障害が発生した環境を十分に整えることができる。   Since the communication device stores the packet when the failure occurs, the manufacturer of the communication device can obtain the packet when the failure occurs. As a result, the manufacturer of the communication device can use the packet at the time of the failure when performing the reproduction test, and can sufficiently prepare the environment where the failure has occurred.

≪第2の実施の形態≫
次に、本発明の第2の実施の形態について説明する。
<< Second Embodiment >>
Next, a second embodiment of the present invention will be described.

第1の実施形態の通信装置は、受信したパケットを破棄することで、障害発生時のパケットを内部メモリ10に保存していた。第2の実施形態の通信装置は、パケットを受信する機能そのものを停止することで、障害発生時のパケットを内部メモリ10に保存する。第2の実施形態の通信装置は、パケットの破棄を行わない分、第1の実施形態の通信装置よりも消費電力を少なくすることができる。   The communication apparatus of the first embodiment stores the packet at the time of failure in the internal memory 10 by discarding the received packet. The communication apparatus according to the second embodiment stores the packet at the time of failure in the internal memory 10 by stopping the function of receiving the packet itself. The communication device according to the second embodiment can consume less power than the communication device according to the first embodiment because the packet is not discarded.

以下に、第2の実施の形態の通信装置の構成と動作について説明する。図8は、本発明の第2の実施の形態におけるシステムの構成例を示す図である。   The configuration and operation of the communication apparatus according to the second embodiment will be described below. FIG. 8 is a diagram illustrating a configuration example of a system according to the second embodiment of the present invention.

[構成の説明]
(1)第2の実施形態の通信装置の構成
第2の実施形態の通信装置は、図8に示されるように、集積回路1の代わりに、集積回路6を備える。集積回路6は、図示していないが、集積回路1と同様に格納プロセッサを備える。
[Description of configuration]
(1) Configuration of Communication Device of Second Embodiment The communication device of the second embodiment includes an integrated circuit 6 instead of the integrated circuit 1 as shown in FIG. Although not shown, the integrated circuit 6 includes a storage processor as in the integrated circuit 1.

(2)集積回路6の機能
集積回路6は、起動後、格納プロセッサに電力を供給する。集積回路6は、障害発生を示す信号がCPU4から入力されると、格納プロセッサへの電力の供給を停止する。格納プロセッサが停止すると、集積回路6は、パケットを受信しなくなる。
(2) Function of Integrated Circuit 6 The integrated circuit 6 supplies power to the storage processor after startup. When a signal indicating the occurrence of a failure is input from the CPU 4, the integrated circuit 6 stops supplying power to the storage processor. When the storage processor stops, the integrated circuit 6 will not receive any packets.

上述した以外の構成や機能は、第1の実施の形態における通信装置と同じであるので、同一の符号を付して説明を省略する。   Since the configuration and functions other than those described above are the same as those of the communication apparatus according to the first embodiment, the same reference numerals are given and description thereof is omitted.

[動作の説明]
本実施形態の通信装置の動作について説明する。
[Description of operation]
The operation of the communication apparatus of this embodiment will be described.

まず、集積回路6は、起動後、格納プロセッサに電力を供給する。   First, the integrated circuit 6 supplies power to the storage processor after startup.

集積回路6の格納プロセッサは、電力が供給されると起動し、集積回路1の格納プロセッサと同様に、上述のS1の処理を行い、外部の通信装置から受信したパケットを内部メモリ10に保存する。   The storage processor of the integrated circuit 6 is activated when power is supplied, and performs the above-described processing of S1 and stores the packet received from the external communication device in the internal memory 10 in the same manner as the storage processor of the integrated circuit 1. .

次に、集積回路6は、障害発生を示す信号がCPU4から入力されると、S22の代わりに、格納プロセッサへの電力の供給を停止する処理を行う。   Next, when a signal indicating the occurrence of a failure is input from the CPU 4, the integrated circuit 6 performs a process of stopping the supply of power to the storage processor instead of S22.

電力の供給が停止された格納プロセッサは、パケットの受信を停止し、内部メモリ10に新たにパケットを格納しなくなる。   The storage processor whose supply of power has been stopped stops receiving the packet and no longer stores the packet in the internal memory 10.

その結果、本実施形態の通信装置は、障害発生時のパケットを内部メモリ10に保存することができる。格納プロセッサへの電力の供給を停止する処理は、内部メモリ10へのパケットの格納を停止する処理である。集積回路6は、パケットの格納を停止する処理であれば、S22の処理に代わって、どのような処理でも行うことができる。   As a result, the communication apparatus according to the present embodiment can save a packet when a failure occurs in the internal memory 10. The process of stopping the supply of power to the storage processor is a process of stopping the storage of packets in the internal memory 10. The integrated circuit 6 can perform any process instead of the process of S22 as long as the process stops packet storage.

[効果の説明]
本実施形態によれば、通信装置の製造者は、第1の実施形態の通信装置の製造者と同様に、再現試験を行うときに、障害が発生した環境を十分に整えることができる。なぜならば、本実施形態の通信装置は、第1の実施形態の通信装置と同様に、障害発生時のパケットをバッファ内に保存するからである。
[Description of effects]
According to the present embodiment, the manufacturer of the communication device can sufficiently prepare the environment in which the failure has occurred when performing the reproduction test, similarly to the manufacturer of the communication device of the first embodiment. This is because the communication device according to the present embodiment stores a packet when a failure occurs in a buffer, as in the communication device according to the first embodiment.

さらに、本実施形態の通信装置は、障害発生時、第1の実施形態の通信装置よりも消費電力量を少なくすることができる。なぜなら、本実施形態の通信装置は、格納プロセッサを停止することによりパケットの受信機能を停止し、パケットの破棄を実施することなく、障害発生時のパケットをバッファに保存するからである。本実施形態の通信装置は、パケットの破棄を実施しない分、消費電力を少なくすることができる。   Furthermore, the communication device of the present embodiment can reduce the power consumption when a failure occurs, compared to the communication device of the first embodiment. This is because the communication device according to the present embodiment stops the packet reception function by stopping the storage processor, and saves the packet at the time of failure in the buffer without performing the packet discard. The communication device according to the present embodiment can reduce power consumption by not performing packet discard.

≪第3の実施の形態≫
図9は、本発明の第3の実施の形態における装置の構成例を示す図である。以下に、第3の実施の形態の装置の構成と動作について説明する。
<< Third Embodiment >>
FIG. 9 is a diagram illustrating a configuration example of an apparatus according to the third embodiment of the present invention. The configuration and operation of the apparatus according to the third embodiment will be described below.

[構成の説明]
(1)第3の実施形態の装置100の構成
第3の実施形態の装置100は、図9に示されるように、メモリ101と、格納部102と、検出部102と、格納部103と、を備える。
[Description of configuration]
(1) Configuration of the Device 100 of the Third Embodiment As shown in FIG. 9, the device 100 of the third embodiment includes a memory 101, a storage unit 102, a detection unit 102, a storage unit 103, Is provided.

第3の実施形態の装置100は、図9に示されるように、接続される装置110と通信を行ってもよい。   The apparatus 100 of 3rd Embodiment may communicate with the apparatus 110 connected, as FIG. 9 shows.

(1)第3の実施形態の装置100の構成
メモリ101は、通信により入力されるデータに対応する格納データを格納するメモリである。
(1) Configuration of Device 100 of Third Embodiment The memory 101 is a memory that stores stored data corresponding to data input by communication.

検出部102は、通信に係る障害を検出する。   The detection unit 102 detects a failure related to communication.

格納部103は、通信により入力されるデータに対応する格納データを順次、メモリ101に格納する。格納部103は、入力されるデータを、そのまま格納データとしてメモリ101に格納してもよいし、入力されるデータに所定の処理を行い、所定の処理を行ったデータを格納データとしてメモリ101に格納してもよい。   The storage unit 103 sequentially stores stored data corresponding to data input by communication in the memory 101. The storage unit 103 may store the input data as it is in the memory 101 as stored data, or performs predetermined processing on the input data, and stores the processed data in the memory 101 as storage data. It may be stored.

格納部103は、検出部102が障害を検出したときには、メモリ101への格納データの格納を停止する。   The storage unit 103 stops storing the stored data in the memory 101 when the detection unit 102 detects a failure.

上述のデータはパケットであってもよい。格納部103は、第1の実施形態では、集積回路1の格納プロセッサや送信プロセッサに相当する機能部であり、検出部102は、第1の実施形態では、障害検出を行う集積回路1の格納プロセッサや送信プロセッサに相当する機能部である。   The data described above may be a packet. The storage unit 103 is a functional unit corresponding to the storage processor or transmission processor of the integrated circuit 1 in the first embodiment, and the detection unit 102 stores the integrated circuit 1 that performs failure detection in the first embodiment. It is a functional unit corresponding to a processor or a transmission processor.

[動作の説明]
次に、本実施形態の装置100の動作を説明する。
[Description of operation]
Next, operation | movement of the apparatus 100 of this embodiment is demonstrated.

まず、本実施形態の装置100は、接続する装置110と通信を行っているとする。本実施形態の装置100は、通信により装置110からデータが次々と入力される。   First, it is assumed that the device 100 of this embodiment is communicating with the device 110 to be connected. In the apparatus 100 according to the present embodiment, data is successively input from the apparatus 110 by communication.

格納部103は、通信により入力されるデータに対応する格納データを順次、メモリ101に格納する。格納部103は、入力されるデータを、そのまま格納データとしてメモリ101に格納してもよいし、入力されるデータに所定の処理を行い、所定の処理を行ったデータを格納データとしてメモリ101に格納してもよい。   The storage unit 103 sequentially stores stored data corresponding to data input by communication in the memory 101. The storage unit 103 may store the input data as it is in the memory 101 as stored data, or performs predetermined processing on the input data, and stores the processed data in the memory 101 as storage data. It may be stored.

次に、装置110との通信に係る障害が本実施形態の装置100に発生したとする。   Next, it is assumed that a failure related to communication with the device 110 occurs in the device 100 of the present embodiment.

検出部102は、装置110との通信に係る障害を検出する。   The detection unit 102 detects a failure related to communication with the device 110.

格納部103は、検出部102が障害を検出したときには、メモリ101への格納データの格納を停止する。   The storage unit 103 stops storing the stored data in the memory 101 when the detection unit 102 detects a failure.

格納部103は、入力されるデータを破棄することで、メモリ101への格納データの格納を停止してもよいし、自身に備わる格納データの格納に係る機能を停止することで、メモリ101への格納データの格納を停止してもよい。   The storage unit 103 may stop storing the stored data in the memory 101 by discarding the input data, or may stop the function related to storing the stored data provided in the storage unit 103 to the memory 101. The storage of the stored data may be stopped.

メモリ101には、新たにデータが格納されないので、障害が発生した時のデータが保存される。   Since no new data is stored in the memory 101, data when a failure occurs is stored.

[効果の説明]
まず、本実施形態によれば、装置100の製造者は、再現試験を行うときに、障害が発生した環境を十分に整えることができる。
[Description of effects]
First, according to this embodiment, the manufacturer of the apparatus 100 can sufficiently prepare the environment in which a failure has occurred when performing a reproduction test.

なぜならば、本実施形態の装置100が、障害発生時、メモリ101へのデータの格納を停止し、障害発生時のデータを保存するからである。本実施形態の装置100が障害発生時のデータを保存するので、本実施形態の通信装置100の製造者は、障害発生時のデータを取得することができる。その結果、本実施形態の装置100の製造者は、再現試験を行うとき、障害発生時のデータを用いることができ、障害が発生した環境を十分に整えることができる。   This is because the apparatus 100 according to the present embodiment stops storing data in the memory 101 when a failure occurs and saves the data when the failure occurs. Since the device 100 according to the present embodiment stores data at the time of failure, the manufacturer of the communication device 100 according to the present embodiment can acquire data at the time of failure. As a result, the manufacturer of the apparatus 100 of the present embodiment can use the data at the time of the failure when performing the reproduction test, and can sufficiently prepare the environment where the failure has occurred.

なお、上述した実施の形態は、その形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々変更可能である。また、図3、4の矢印の向きは、一例を示すものであり、各集積回路間の信号の向きを限定するものではない。   The embodiment described above is not limited to the embodiment, and various modifications can be made without departing from the scope of the invention in the implementation stage. The directions of the arrows in FIGS. 3 and 4 show an example, and do not limit the direction of signals between the integrated circuits.

さらに、上記の各実施形態の一部又は全部は、以下の付記のようにも記載されうるが、以下には限られない。
(付記1)
通信により入力されるデータに対応する格納データを格納するメモリと、
前記通信に係る障害を検出する検出部と、
前記格納データを順次、前記メモリに格納するとともに、前記検出部が前記障害を検出したときには前記格納を停止する格納部と、
を備えることを特徴とする装置。
(付記2)
前記格納部は、入力される前記データを破棄することにより前記格納を停止する、
ことを特徴とする付記1に記載の装置。
(付記3)
前記格納部は、前記通信装置の前記入力に係る機能を停止することにより前記格納を停止する、
ことを特徴とする付記1に記載の装置。
(付記4)
所定のタイミングになると、前記メモリに記憶されている前記データに対応するデータを出力する送信部を備え、
前記送信部は、前記検出部が前記障害を検出したとき、前記出力を停止する、
ことを特徴とする付記1乃至3のいずれか1項に記載の装置。
(付記5)
通信により入力されるデータに対応するデータを順次、メモリに格納する格納ステップと、
前記通信に係る障害が検出されたときには、前記格納を停止する停止ステップと、
を有することを特徴とする保存方法。
(付記6)
前記停止ステップにおいては、入力される前記データを破棄することにより前記格納を停止する、
ことを特徴とする付記5に記載の保存方法。
(付記7)
通信装置における方法であって、
前記停止ステップにおいては、前記通信装置の前記入力に係る機能を停止することにより前記格納を停止する、
ことを特徴とする付記5に記載の保存方法。
(付記8)
所定のタイミングになると、前記メモリに記憶されている前記データに対応するデータを出力する送信ステップを有し、
前記送信ステップにおいては、前記停止ステップにおいて前記障害が検出されたときに前記出力を停止する、
ことを特徴とする付記5乃至7のいずれか1項に記載の保存方法。
(付記9)
メモリを備えた通信装置に実装されたプロセッサに、
通信により入力されるデータに対応するデータを順次、前記メモリに格納する格納処理と、
前記通信に係る障害を検出する検出処理と、
前記検出処理が前記障害を検出したときには、前記格納処理を停止する格納停止処理と、
を行わせるためのプログラム。
(付記10)
入力される前記データを破棄することにより前記格納処理を停止する前記格納停止処理を、前記プロセッサに行わせるための付記9に記載のプログラム。
(付記11)
前記通信装置の前記入力に係る機能を停止することにより前記格納処理を停止する前記格納停止処理を、前記プロセッサに行わせるための付記9に記載のプログラム。
(付記12)
所定のタイミングになると、前記メモリに格納されている前記データに対応するデータを出力する送信処理を、前記プロセッサに行わせるための付記9乃至11のいずれか1項に記載のプログラム。
(付記13)
前記検出処理が前記障害を検出したときに、前記送信処理を停止する送信停止処理を、前記プロセッサに行わせるための付記12に記載のプログラム。
Furthermore, a part or all of each of the above embodiments can be described as in the following supplementary notes, but is not limited thereto.
(Appendix 1)
A memory for storing stored data corresponding to data input by communication;
A detection unit for detecting a failure related to the communication;
A storage unit that sequentially stores the storage data in the memory and stops the storage when the detection unit detects the failure;
A device comprising:
(Appendix 2)
The storage unit stops the storage by discarding the input data.
The apparatus according to supplementary note 1, wherein:
(Appendix 3)
The storage unit stops the storage by stopping a function related to the input of the communication device;
The apparatus according to supplementary note 1, wherein:
(Appendix 4)
When it comes to a predetermined timing, it comprises a transmission unit that outputs data corresponding to the data stored in the memory,
The transmitting unit stops the output when the detecting unit detects the failure.
The apparatus according to any one of appendices 1 to 3, characterized in that:
(Appendix 5)
A storage step of sequentially storing data corresponding to data input by communication in a memory;
A stop step of stopping the storage when a failure related to the communication is detected;
The preservation | save method characterized by having.
(Appendix 6)
In the stop step, the storage is stopped by discarding the input data.
The storage method according to appendix 5, characterized by:
(Appendix 7)
A method in a communication device, comprising:
In the stop step, the storage is stopped by stopping the function related to the input of the communication device.
The storage method according to appendix 5, characterized by:
(Appendix 8)
A transmission step of outputting data corresponding to the data stored in the memory at a predetermined timing;
In the transmission step, the output is stopped when the failure is detected in the stop step.
The storage method according to any one of appendices 5 to 7, characterized in that:
(Appendix 9)
In a processor mounted on a communication device equipped with a memory,
A storage process for sequentially storing data corresponding to data input by communication in the memory;
A detection process for detecting a failure related to the communication;
A storage stop process for stopping the storage process when the detection process detects the failure;
A program to let you do.
(Appendix 10)
The program according to appendix 9, which causes the processor to perform the storage stop process that stops the storage process by discarding the input data.
(Appendix 11)
The program according to appendix 9, which causes the processor to perform the storage stop process for stopping the storage process by stopping a function related to the input of the communication device.
(Appendix 12)
The program according to any one of appendices 9 to 11 for causing the processor to perform a transmission process of outputting data corresponding to the data stored in the memory at a predetermined timing.
(Appendix 13)
The program according to appendix 12, for causing the processor to perform a transmission stop process for stopping the transmission process when the detection process detects the failure.

1、2、3、6 集積回路
4 CPU(Central Processing Unit)
5 CF(Compact Flash)
10、20、30 内部メモリ
11、12、21、31 外部メモリ
100 装置
101 メモリ
102 検出部
103 格納部
110 装置
1, 2, 3, 6 Integrated circuit 4 CPU (Central Processing Unit)
5 CF (Compact Flash)
10, 20, 30 Internal memory 11, 12, 21, 31 External memory 100 Device 101 Memory 102 Detection unit 103 Storage unit 110 Device

Claims (10)

通信により入力されるデータに対応する格納データを格納するメモリと、
前記通信に係る障害を検出する検出部と、
前記格納データを順次、前記メモリに格納するとともに、前記検出部が前記障害を検出したときには前記格納を停止する格納部と、
を備えることを特徴とする装置。
A memory for storing stored data corresponding to data input by communication;
A detection unit for detecting a failure related to the communication;
A storage unit that sequentially stores the storage data in the memory and stops the storage when the detection unit detects the failure;
A device comprising:
前記格納部は、入力される前記データを破棄することにより前記格納を停止する、
ことを特徴とする請求項1に記載の装置。
The storage unit stops the storage by discarding the input data.
The apparatus according to claim 1.
前記格納部は、前記通信装置の前記入力に係る機能を停止することにより前記格納を停止する、
ことを特徴とする請求項1に記載の装置。
The storage unit stops the storage by stopping a function related to the input of the communication device;
The apparatus according to claim 1.
所定のタイミングになると、前記メモリに記憶されている前記データに対応するデータを出力する送信部を備え、
前記送信部は、前記検出部が前記障害を検出したとき、前記出力を停止する、
ことを特徴とする請求項1乃至3のいずれか1項に記載の装置。
When it comes to a predetermined timing, it comprises a transmission unit that outputs data corresponding to the data stored in the memory,
The transmitting unit stops the output when the detecting unit detects the failure.
The apparatus according to any one of claims 1 to 3, characterized in that:
通信により入力されるデータに対応するデータを順次、メモリに格納する格納ステップと、
前記通信に係る障害が検出されたときには、前記格納を停止する停止ステップと、
を有することを特徴とする保存方法。
A storage step of sequentially storing data corresponding to data input by communication in a memory;
A stop step of stopping the storage when a failure related to the communication is detected;
The preservation | save method characterized by having.
前記停止ステップにおいては、入力される前記データを破棄することにより前記格納を停止する、
ことを特徴とする請求項5に記載の保存方法。
In the stop step, the storage is stopped by discarding the input data.
The storage method according to claim 5, wherein:
通信装置における方法であって、
前記停止ステップにおいては、前記通信装置の前記入力に係る機能を停止することにより前記格納を停止する、
ことを特徴とする請求項5に記載の保存方法。
A method in a communication device, comprising:
In the stop step, the storage is stopped by stopping the function related to the input of the communication device.
The storage method according to claim 5, wherein:
所定のタイミングになると、前記メモリに記憶されている前記データに対応するデータを出力する送信ステップを有し、
前記送信ステップにおいては、前記停止ステップにおいて前記障害が検出されたときに前記出力を停止する、
ことを特徴とする請求項5乃至7のいずれか1項に記載の保存方法。
A transmission step of outputting data corresponding to the data stored in the memory at a predetermined timing;
In the transmission step, the output is stopped when the failure is detected in the stop step.
The storage method according to any one of claims 5 to 7, characterized in that:
メモリを備えた通信装置に実装されたプロセッサに、
通信により入力されるデータに対応するデータを順次、前記メモリに格納する格納処理と、
前記通信に係る障害を検出する検出処理と、
前記検出処理が前記障害を検出したときには、前記格納処理を停止する格納停止処理と、
を行わせるためのプログラム。
In a processor mounted on a communication device equipped with a memory,
A storage process for sequentially storing data corresponding to data input by communication in the memory;
A detection process for detecting a failure related to the communication;
A storage stop process for stopping the storage process when the detection process detects the failure;
A program to let you do.
入力される前記データを破棄することにより前記格納処理を停止する前記格納停止処理を、前記プロセッサに行わせるための請求項9に記載のプログラム。   The program according to claim 9, which causes the processor to perform the storage stop process that stops the storage process by discarding the input data.
JP2016045823A 2016-03-09 2016-03-09 Device, storing method, and program Pending JP2017163329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016045823A JP2017163329A (en) 2016-03-09 2016-03-09 Device, storing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016045823A JP2017163329A (en) 2016-03-09 2016-03-09 Device, storing method, and program

Publications (1)

Publication Number Publication Date
JP2017163329A true JP2017163329A (en) 2017-09-14

Family

ID=59853229

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016045823A Pending JP2017163329A (en) 2016-03-09 2016-03-09 Device, storing method, and program

Country Status (1)

Country Link
JP (1) JP2017163329A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019130824A1 (en) * 2017-12-27 2019-07-04 株式会社ソシオネクスト Processing device, semiconductor integrated circuit and state monitoring method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019130824A1 (en) * 2017-12-27 2019-07-04 株式会社ソシオネクスト Processing device, semiconductor integrated circuit and state monitoring method
JP2019118047A (en) * 2017-12-27 2019-07-18 株式会社ソシオネクスト Processing apparatus, semiconductor integrated circuit, and state monitoring method
JP7007570B2 (en) 2017-12-27 2022-01-24 株式会社ソシオネクスト Processing equipment, semiconductor integrated circuits and condition monitoring methods
US11537730B2 (en) 2017-12-27 2022-12-27 Socionext Inc. Processing apparatus, semiconductor integrated circuit, and status monitoring method

Similar Documents

Publication Publication Date Title
US9916270B2 (en) Virtual intelligent platform management interface (IPMI) satellite controller and method
US7685325B2 (en) Synchronous bus controller system
US7783817B2 (en) Method and apparatus for conditional broadcast of barrier operations
US9626241B2 (en) Watchdogable register-based I/O
US9152524B2 (en) Bus monitor circuit and bus monitor method
KR101054109B1 (en) Method, apparatus, system, and computer readable medium for calculating message queue time
WO2016127600A1 (en) Exception handling method and apparatus
JP5191934B2 (en) Status monitoring system and status monitoring method
US10922505B2 (en) Radio frequency identification interface for interacting with a printed circuit board
JP2017163329A (en) Device, storing method, and program
CN112148537B (en) Bus monitoring device and method, storage medium and electronic device
US20090177890A1 (en) Method and Device for Forming a Signature
US9639076B2 (en) Switch device, information processing device, and control method of information processing device
US10581555B2 (en) Information processing device and burst error reproducing method
JPWO2007097040A1 (en) Information processing apparatus control method, information processing apparatus
KR101260313B1 (en) Electric apparatus and data sending/receiving method thereof and slave apparatus and communication method between the plural number of apparatuses
US8151176B2 (en) CPU instruction RAM parity error procedure
US7788432B2 (en) System for performing a serial communication between a central control block and satellite components
US20220050139A1 (en) System, apparatus and method for communicating debug messages on a sideband of a serial link according to a debug type messaging protocol
JP5482902B2 (en) Interprocessor communication measurement system
JP4327765B2 (en) Bus system
JP5545125B2 (en) Communication device
JP2003281087A (en) Memory target device and data transfer system
JP2008293212A (en) Transaction management method for information processor, and information processor
JP2006268612A (en) Processing time measuring system and processing time measuring program