[go: up one dir, main page]

JP2008199432A - Data transfer device and health check data processing method - Google Patents

Data transfer device and health check data processing method Download PDF

Info

Publication number
JP2008199432A
JP2008199432A JP2007034282A JP2007034282A JP2008199432A JP 2008199432 A JP2008199432 A JP 2008199432A JP 2007034282 A JP2007034282 A JP 2007034282A JP 2007034282 A JP2007034282 A JP 2007034282A JP 2008199432 A JP2008199432 A JP 2008199432A
Authority
JP
Japan
Prior art keywords
data
health check
check
error
health
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
JP2007034282A
Other languages
Japanese (ja)
Inventor
Hironobu Kurumazaki
裕信 車崎
Masahiro Hitomi
政弘 一見
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2007034282A priority Critical patent/JP2008199432A/en
Publication of JP2008199432A publication Critical patent/JP2008199432A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

【課題】データ転送装置及びヘルスチェックデータ処理方法に関し、データ転送のトラフィック量により影響されるヘルスチェック応答遅延を少なくし、ヘルスチェックの監視タイマのタイムアウト最適値を容易に決定可能にする。
【解決手段】ヘルスチェックデータを送信する側で、ヘルスチェックデータに付与するエラーチェック符号として、ユーザ通信データ用のCRC符号と異なるヘルスチェックデータ固有のCRC符号を付与し、受信側では、受信データに対して、ユーザ通信データ用のCRC符号でエラーチェック(7−5)し、エラーが検出された場合に、ヘルスチェックデータ固有のCRC符号で二重CRCチェック(1−1)を行い、チェック結果が正常であれば、受信データがヘルスチェックデータであると判定してヘルスチェックを検出(1−2)し、ヘルスチェック応答を処理待ちキューの先頭又は優先的な順序位置に配置(1−4)して格納する。
【選択図】図1
The present invention relates to a data transfer apparatus and a health check data processing method, which can reduce a health check response delay affected by a traffic amount of data transfer and easily determine an optimum timeout value of a health check monitoring timer.
A health check data-specific CRC code, which is different from a CRC code for user communication data, is added as an error check code to be added to health check data on the side where health check data is transmitted. On the other hand, an error check (7-5) is performed using a CRC code for user communication data, and if an error is detected, a double CRC check (1-1) is performed using a CRC code unique to health check data. If the result is normal, it is determined that the received data is health check data, the health check is detected (1-2), and the health check response is placed at the top of the processing queue or in a preferential order position (1- 4) and store.
[Selection] Figure 1

Description

本発明は、データ転送装置及びヘルスチェックデータ処理方法に関し、特に、データ転送装置間で送受される障害検出用のヘルスチェックデータを、遅滞なく処理するデータ転送装置及びヘルスチェックデータ処理方法に関する。   The present invention relates to a data transfer device and a health check data processing method, and more particularly, to a data transfer device and a health check data processing method for processing failure detection health check data transmitted and received between data transfer devices without delay.

へルスチェックは、複数の装置間で互いに相手装置が正常に動作していることを確認するために、定期的に相手装置に対してヘルスチェックデータを送り、該相手装置から受信される該ヘルスチェックデータに対する応答データ及び応答時間を基に相手装置の正常性を判断する技術として用いられる。   The health check is performed by periodically sending health check data to a partner device to confirm that the partner devices are operating normally among a plurality of devices. This is used as a technique for judging the normality of the counterpart device based on the response data and response time for the check data.

図6に従来のへルスチェックの動作シーケンスを示す。同図に示すように、相手装置Bから自装置A宛てにヘルスチェックデータ6−1が送信されると、自装置Aでは該ヘルスチェックデータ6−1を受信データキュー6−2の最後尾に格納し、既に受信され受信データキュー6−1に格納済みの受信データを、該受信データキュー6−1からFIFO(First-In First-Out)方式で先頭のものから順に取り出し、順番に処理する。そのため、受信データキュー6−2での待ち時間による処理遅延が発生する。   FIG. 6 shows a conventional health check operation sequence. As shown in the figure, when the health check data 6-1 is transmitted from the partner apparatus B to the own apparatus A, the own apparatus A stores the health check data 6-1 at the end of the reception data queue 6-2. The received data that has been stored and received in the received data queue 6-1 is extracted from the received data queue 6-1 in order from the top in the FIFO (First-In First-Out) method, and processed in order. . Therefore, a processing delay due to a waiting time in the reception data queue 6-2 occurs.

上記の受信データの処理のフローを図7に示す。同図に示すように、受信回路で受信データパケットの同期確立(7−1)の後、該受信データが自装置宛てか否かを判定し(7−2)、自装置宛ての場合、DMA等による転送処理を経由して該受信データをメモリ装置に転送する(7−4)。自装置宛てでない場合、該受信データは破棄する(7−3)。   FIG. 7 shows a flow of processing of the received data. As shown in the figure, after the reception circuit establishes synchronization of the received data packet (7-1), it is determined whether the received data is addressed to the own device (7-2). The received data is transferred to the memory device via a transfer process such as (7-4). If it is not addressed to its own device, the received data is discarded (7-3).

メモリ装置へ転送された自装置宛ての受信データに対して、CRC(Cyclic Redundancy Check)符号のエラーチェック、フレーミングエラーチェック等のエラーチェック処理を行い、該受信データが正常か異常かの判定を行う(7−5)。CRC符号等のエラーが検出された受信データは破棄する(7−6)。なお、エラーチェックの結果は、通常、受信回路からCPUへの割り込み要求(IRQ)により通知される。   Error check processing such as CRC (Cyclic Redundancy Check) code error check and framing error check is performed on the received data addressed to the own device transferred to the memory device to determine whether the received data is normal or abnormal. (7-5). Received data in which an error such as a CRC code is detected is discarded (7-6). The result of the error check is usually notified by an interrupt request (IRQ) from the receiving circuit to the CPU.

エラーチェックの結果が“正常(OK)”でかつ当該受信データの受信前に既受信データが存在する場合、当該受信データは、FIFO方式の受信データキューを経由するパケット処理部に引き渡され処理される(7−7)。   If the result of the error check is “normal (OK)” and there is already received data before receiving the received data, the received data is delivered to the packet processing unit via the FIFO received data queue and processed. (7-7).

パケット処理部では、受信データキューに格納されている既受信データパケットの有無を判定し(7−8)、受信データパケットが有る場合、当該受信データパケットをFIFO方式の受信データキューへ格納する。従って、当該受信データは受信データキュー内部に留保され、既受信データの処理完了待ちとなる(7−9)。   The packet processing unit determines whether or not there is a received data packet stored in the received data queue (7-8), and if there is a received data packet, stores the received data packet in the FIFO-type received data queue. Therefore, the received data is retained in the received data queue and waits for the completion of processing of the received data (7-9).

受信データキューに格納されている既受信データが無くなったとき、当該受信データパケットの処理が開始される(7−10)。この場合、既受信データパケット数が多いほど、当該受信データパケットが処理されるまでの待ち時間が長大化し、ヘルスチェックデータのように、パケット受信からデータ処理を完了して相手装置へ応答データを返送し、該応答データが相手装置に到着するまでの時間が規定されている場合、受信データキューでの待ち時間による遅延が問題となる。   When the received data stored in the received data queue runs out, processing of the received data packet is started (7-10). In this case, the larger the number of received data packets, the longer the waiting time until the received data packet is processed. As in the case of health check data, the data processing from the packet reception is completed and response data is sent to the partner device. When the time until the response data arrives at the partner device is specified, delay due to the waiting time in the reception data queue becomes a problem.

上記受信データキューでの待ち時間による遅延について待ち行列モデルを用いて説明する。待ち行列モデルは、以下の各パラメータを用いて次の計算式で評価することが可能である。但し、簡単化のため、伝送路上でのデータ転送時間は処理時間に比べて微小であるため無視し、トラフィックは一方向のみとする。   The delay due to the waiting time in the reception data queue will be described using a queue model. The queue model can be evaluated by the following calculation formula using the following parameters. However, for simplification, the data transfer time on the transmission path is very small compared to the processing time, so it is ignored and traffic is only in one direction.

まず、ヘルスチェックデータ(メッセージ)が他の受信データと共に処理されるまでの平均待ち時間を計算する。ここで、Twは平均待ち時間(ヘルスチェックデータが処理されるまでの待ち時間の期待値)、Tsは平均サービス時間(処理システム上で受信データ(メッセージ)を処理する時間の平均値、ρは平均利用率(受信データの処理混雑具合を表す係数)、λは平均到着率(単位時間に到着する受信データ(メッセージ)数)、μは平均サービス率(単位時間で処理可能な受信データ(メッセージ)数の平均値)であるとすると、
Tw=(ρ/1−ρ)*Ts、ρ=λ/μ ・・・・(1)
となり、グラフで示すと図8のようになる。
First, an average waiting time until the health check data (message) is processed together with other received data is calculated. Here, Tw is an average waiting time (expected value of waiting time until the health check data is processed), Ts is an average service time (average value of time for processing received data (message) on the processing system, and ρ is Average utilization rate (coefficient representing the degree of processing of received data), λ is the average arrival rate (number of received data (messages) arriving per unit time), μ is the average service rate (received data (messages that can be processed in unit time)) ) Average number))
Tw = (ρ / 1−ρ) * Ts, ρ = λ / μ (1)
Thus, when shown in a graph, FIG. 8 is obtained.

具体例として、通常時の受信データの到着間隔Taが500msで、平均サービス時間Tsが200msの処理システムにおける、ヘルスチェック監視タイマのタイムアウト値として最適な値の目安を考える。このとき、Ts(平均サービス時間)=0.2であり、受信データ(メッセージ)の増加により、Ta(データの到着間隔)が0.5から0.3へ変化した場合のTw(平均待ち時間)の変化は次のようになる。   As a specific example, consider a guideline of an optimum value as a timeout value of the health check monitoring timer in a processing system in which the arrival interval Ta of received data at normal time is 500 ms and the average service time Ts is 200 ms. At this time, Tw (average waiting time) = 0.2, and Tw (average waiting time) when Ta (data arrival interval) changes from 0.5 to 0.3 due to an increase in received data (message). ) Changes as follows.

通常時は、Ta(データの平均到着時間)は0.5、Ts(平均サービス時間)は0.2である。この場合、λ(平均到着率)=1/Ta=2、μ(平均サービス率)=1/Ts=5であるため、ρ(平均利用率)=λ(平均到着率)/μ(平均サービス率)=0.4となり、Tw(平均待ち時間)=(0.4/0.6)*0.2=0.13となる。   Normally, Ta (average data arrival time) is 0.5, and Ts (average service time) is 0.2. In this case, since λ (average arrival rate) = 1 / Ta = 2 and μ (average service rate) = 1 / Ts = 5, ρ (average utilization rate) = λ (average arrival rate) / μ (average service) Rate) = 0.4, and Tw (average waiting time) = (0.4 / 0.6) * 0.2 = 0.13.

データ転送量などのトラフィックの増大などにより、Ta(データの平均到着間隔)が0.3となった場合、λ(平均到着率)=1/Ta=3.3、μ(平均サービス率)=5であることから、ρ(平均利用率)=λ(平均到着率)/μ(平均サービス率)=3.3/5=0.66となり、Tw(平均待ち時間)=(0.66/0.34)*0.2=0.388となる。   When Ta (average data arrival interval) becomes 0.3 due to an increase in traffic such as data transfer amount, λ (average arrival rate) = 1 / Ta = 3.3, μ (average service rate) = Therefore, ρ (average utilization rate) = λ (average arrival rate) / μ (average service rate) = 3.3 / 5 = 0.66, and Tw (average waiting time) = (0.66 / 0.34) * 0.2 = 0.388.

上記の求めた値から、通常時では、ヘルスチェック監視タイマのタイムアウト値として0.13以上とする必要があり、トラフィックの増大を考慮すると、該タイムアウト値は0.388以上としなければならない。更に、処理時間Tsや平均待ち時間Twのマージンを考慮する一方、ヘルスチェックの早期確認の必要性から、ヘルスチェック監視タイマのタイムアウト値を、如何に最適に設定するかが課題となる。   From the above-obtained value, it is necessary to set the timeout value of the health check monitoring timer to 0.13 or more in normal time, and considering the increase in traffic, the timeout value must be 0.388 or more. Further, while considering the margin of the processing time Ts and the average waiting time Tw, the problem is how to optimally set the timeout value of the health check monitoring timer because of the necessity of early confirmation of the health check.

本発明に関連する先行技術文献として、下記の特許文献1には、ヘルスチェック信号を受信すると、送信中のデータが有っても、ヘルスチェック応答要求に応じて該送信を中断し、ヘルスチェック応答を優先して送出する技術が公開されている。また、下記の特許文献2には、相手からのアプリケーションデータの受信中は、ヘルスチェック受信監視時間を延長し、これにより、ヘルスチェックデータの監視タイムアウトが発生しないようにした技術が公開されている。   As prior art documents related to the present invention, in Patent Document 1 below, when a health check signal is received, even if there is data being transmitted, the transmission is interrupted in response to a health check response request, and the health check is performed. A technique for sending a response with priority is disclosed. Patent Document 2 below discloses a technology that extends the health check reception monitoring time during reception of application data from the other party, thereby preventing a health check data monitoring timeout from occurring. .

また、下記の特許文献3には、ヘルスチェック信号を所定周期で送出し、受信側より応答が無いときには、受信側にて障害が発生したものと判定し、受信側にて所定期間に亘ってヘルスチェック信号が受信されない場合には、送信側にて障害が発生したものと判定する技術について公開されている。
特開平03−019057号公報 特開昭63−104544号公報 特開昭62−175836
In Patent Document 3 below, a health check signal is transmitted at a predetermined cycle, and when there is no response from the reception side, it is determined that a failure has occurred on the reception side, and the reception side has a predetermined period. A technique for determining that a failure has occurred on the transmission side when a health check signal is not received is disclosed.
Japanese Patent Laid-Open No. 03-019057 JP-A 63-104544 JP 62-175836 A

データ転送装置では、装置間又は装置内部のデータ転送機能の正常性の確認のため、ヘルスチェックと称するデータのやり取りを実行する。この場合、本来の通信サービス用のユーザデータの転送量が増大すると、ヘルスチェックデータが受信から解析処理に引き渡されるまで、受信データキューに留保され、ヘルスチェックに対する応答までに長時間を要することとなり、最悪の場合、ヘルスチェックの応答未返送によるヘルスチェック異常(監視タイマのタイムアウト)と判定されるケースが発生してしまう。   In the data transfer device, exchange of data called health check is executed in order to confirm the normality of the data transfer function between devices or inside the device. In this case, if the transfer amount of the original user data for the communication service increases, the health check data is retained in the reception data queue until it is delivered to the analysis process, and it takes a long time to respond to the health check. In the worst case, there is a case where it is determined that the health check is abnormal (monitoring timer timeout) due to the non-return of the health check response.

従来のヘルスチェックでは、この監視タイマのタイムアウト値としての最適な値が、データ転送のトラフィック量等の影響によって変動してしまうため、実測値等を基にマージンを含んだ凡その目安の値として設定するよりほかなく、最適な値を決定することができないものであった。本発明は、データ転送のトラフィック量により影響されるヘルスチェック応答処理遅延を少なくし、ヘルスチェックの監視タイマのタイムアウト最適値を容易に決定することができるデータ転送装置及びヘルスチェックデータ処理方法を提供する。   In the conventional health check, the optimum value as the timeout value of this monitoring timer varies due to the influence of the traffic volume of data transfer, etc., so as a rough standard value including a margin based on the measured value etc. There was no choice but to determine the optimum value. The present invention provides a data transfer apparatus and a health check data processing method that can reduce the delay in health check response processing affected by the amount of data transfer traffic and can easily determine the optimum timeout value of the health check monitoring timer. To do.

上記課題を解決するために、本発明は、ユーザ通信データにエラーチェック符号を付与して転送するデータ転送装置において、ヘルスチェックデータを送信する側のデータ転送装置には、ヘルスチェックデータに付与するエラーチェック符号として、受信側のデータ転送装置における前記ユーザ通信データ用のエラーチェック符号によるエラーチェックでエラーが検出されるエラーチェック符号であって、ヘルスチェックデータ固有の識別符号を、ヘルスチェックデータに付与して送信する手段を備え、ヘルスチェックデータを受信する側のデータ転送装置には、受信パケットに対して、前記ユーザ通信データ用のエラーチェック符号によるエラーチェックを行った後に、該エラーチェックでエラーが検出された受信データに対して、ヘルスチェックデータ固有の識別符号が付与された受信データであるか否かを判定する手段と、該ヘルスチェックデータ固有の識別符号が付与された受信データを、受信データ処理待ちキューの先頭又は他の受信データより優先的な順序位置に配置して格納する手段と、を備えたことを特徴とする。   In order to solve the above-mentioned problem, the present invention provides a health check data to a data transfer device that transmits health check data in a data transfer device that transfers an error check code to user communication data. As an error check code, an error check code in which an error is detected by an error check code for the user communication data in the data transfer device on the receiving side, and an identification code unique to the health check data is used as the health check data. A data transfer device that receives the health check data, and performs an error check on the received packet with the error check code for the user communication data, and then the error check The received data in which an error was detected Means for determining whether or not the received data is given the identification code unique to the check data, and the received data given the identification code unique to the health check data is received at the head of the reception data processing waiting queue or other received data Means for arranging and storing the data in order positions preferential to data.

また、前記ヘルスチェックデータ固有の識別符号として、前記ユーザ通信データ用のエラーチェック符号と異なるCRC符号を用いたことを特徴とする。また、前記ヘルスチェックデータ固有の識別符号として、前記ユーザ通信データ用のエラーチェック符号によるエラーチェックの対象範囲と異なるデータ範囲をエラーチェックの対象範囲とするCRC符号を用いたことを特徴とする。また、前記ヘルスチェックデータ固有の識別符号として、ヘルスチェックデータの所定位置の固定データを用い、受信データの所定位置のデータを該固定データと比較してヘルスチェックデータを識別することを特徴とする。   Further, a CRC code different from the error check code for the user communication data is used as an identification code unique to the health check data. In addition, as the identification code unique to the health check data, a CRC code having a data range different from the error check target range by the error check code for the user communication data as an error check target range is used. Further, as the identification code unique to the health check data, fixed data at a predetermined position of the health check data is used, and the health check data is identified by comparing the data at the predetermined position of the received data with the fixed data. .

本発明によれば、データ転送装置において、エラーチェック符号を利用してヘルスチェックデータを受信側装置で識別可能にし、受信側装置でヘルスチェックデータを他の受信データキューに格納されている処理待ちの受信データより優先して処理することにより、ヘルスチェック応答を、受信データキューに格納されている処理待ちの受信データ数に影響されることなく、直ちに返送することができ、データ転送のトラフィック量の影響による処理遅延が少なく、ヘルスチェックの監視タイマのタイムアウト最適値を精度良く容易に決定することが可能となる。   According to the present invention, in the data transfer device, the health check data can be identified by the receiving device using the error check code, and the receiving device waits for processing stored in the other received data queue. By processing with higher priority than the received data, the health check response can be returned immediately without being affected by the number of received data waiting for processing stored in the received data queue, and the amount of data transfer traffic Therefore, it is possible to easily determine the optimal timeout value of the health check monitoring timer with high accuracy.

また、CRC符号等のエラーチェック符号は、イーサネット(登録商標)やATM(Asynchronous Transfer Mode)など代表的な通信プロトコルの転送データに付与されるものであり、本発明では該CRC符号等のエラーチェック符号の二重チェックを行ってヘルスチェックデータを受信側装置で識別するため、それら汎用の通信プロトコルのデータ転送装置に容易に適用することができる。   An error check code such as a CRC code is given to transfer data of a typical communication protocol such as Ethernet (registered trademark) or ATM (Asynchronous Transfer Mode). In the present invention, an error check code such as the CRC code is used. Since the health check data is identified by the receiving side device by performing the double check of the code, it can be easily applied to data transfer devices of these general-purpose communication protocols.

一般的なデータ転送装置におけるデータ受信時のフローは図7で説明したように、受信データの同期確立後、自装置宛ての受信データをDMA等経由でメモリ装置に転送し、受信データが正常か異常かをCRCエラー又はフレーミングエラー等のエラーチェックを行い、該チェック結果は、該当処理部にCPUの割り込みによって通知される。   As shown in FIG. 7, the flow at the time of data reception in a general data transfer device is as follows. After the synchronization of the received data is established, the received data addressed to the own device is transferred to the memory device via DMA or the like. An error check, such as a CRC error or a framing error, is performed to determine whether it is abnormal, and the check result is notified to the corresponding processing unit by a CPU interrupt.

受信データがヘルスチェックデータであっても、該ヘルスチェックデータの受信以前に受信データが存在する場合は、該ヘルスチェックデータは受信データキューに格納され、既受信データの処理の完了の後に該ヘルスチェックデータが処理されるため、ヘルスチェックの応答が遅れることとなる。   Even if the received data is health check data, if the received data exists before the reception of the health check data, the health check data is stored in the received data queue, and the health check data is received after the processing of the received data is completed. Since the check data is processed, the health check response is delayed.

そこで本発明では、受信データキューへの格納前に全ての受信データに対して行われるCRCエラー又はフレーミングエラー等のエラーチェックの処理において、ヘルスチェックデータを他のユーザデータ等の受信データと区別して抽出し、該抽出したヘルスチェックデータを、受信データキューの先頭又は優先的な順序位置に格納するようにしたものである。   Therefore, in the present invention, health check data is distinguished from other received data such as user data in error check processing such as CRC error or framing error performed on all received data before storage in the received data queue. The extracted health check data is stored at the head of the received data queue or at a preferential order position.

上記の機能を実現するために、ヘルスチェックデータに対して、CRC符号等のエラーチェック符号として、受信側でエラーが検出される符号であって、且つ、ヘルスチェックデータ固有の識別符号を、ヘルスチェックデータに付与して送信し、受信側では、受信データのエラーチェックにより、異常データと判定された受信データに対して、更に、本来の異常データとヘルスチェックデータとを区別するために、以下の処理を行う。   In order to realize the above function, the health check data is an error check code such as a CRC code, which is a code in which an error is detected on the reception side, and an identification code unique to the health check data is assigned to the health check data. In order to distinguish the original abnormal data and health check data from the received data determined to be abnormal data by the error check of the received data on the receiving side, Perform the process.

前述の図7の破線で囲んだステップ7−5、7−6及び7−7から成る処理を、図1の(a)及び(b)に示すように、CRC符号チェックによる受信データの正常/異常の判定(7−5)の後、異常と判定された受信データに対して、更に、ヘルスチェックデータパケットに対して付与された固有のCRC符号による二重のCRC符号チェック(1−1)を行う。   As shown in FIGS. 1A and 1B, the processing consisting of steps 7-5, 7-6 and 7-7 surrounded by the broken line in FIG. 7 is performed as shown in FIG. After the abnormality determination (7-5), double CRC code check (1-1) based on the unique CRC code assigned to the health check data packet for the received data determined to be abnormal I do.

上記二重のCRC符号チェック(1−1)の結果が“正常”と判定された場合、該受信データがヘルスチェックデータであると認識し、CPUに対して割り込み要求(IRQ)を発生する(1−2)。該二重のCRC符号チェック(1−1)の結果が“異常”と判定された場合、該受信データはヘルスチェックデータではなく、従来どおりの異常受信データとして該受信データを破棄する割り込み要求(IRQ)を発生する(7−6)。   If the result of the double CRC code check (1-1) is determined to be “normal”, the received data is recognized as health check data, and an interrupt request (IRQ) is generated to the CPU ( 1-2). When it is determined that the result of the double CRC code check (1-1) is “abnormal”, the received data is not health check data, but an interrupt request for discarding the received data as conventional abnormal received data ( IRQ) is generated (7-6).

このように、受信データに対して二重のCRC符号チェックを行い、ヘルスチェックデータに対しては、最初のCRC符号チェックで必ず異常と判定されるCRC符号を付与してトラップ発生要因とし、二回目のCRC符号チェックでヘルスチェックデータとして認識されるよう、ヘルスチェックデータ固有のCRC符号を付与することにより、本来の受信データの正常性確認機能を保有したまま、ヘルスチェックデータを認識する機能を追加する。   In this way, a double CRC code check is performed on the received data, and a CRC code that is always determined to be abnormal by the first CRC code check is assigned to the health check data to generate a trap. A function for recognizing health check data while maintaining the normality confirmation function of the original received data by giving a CRC code unique to the health check data so that it can be recognized as health check data in the second CRC code check to add.

上記二重のCRC符号チェック(1−1)で正常と判定され、ヘルスチェックデータが検出されると、CPUに対する割り込み要求(IRQ)を発生し(1−2)、該割り込み要求(IRQ)により、図1の(b)に示すように、ヘルスチェック応答(処理に応じてヘルスチェック結果を確認し応答とする)をキューに格納する準備をし(1−3)、準備した応答を、受信データキューの既受信データ(未送信データ)の先頭に配置する(1−4)。   When it is determined that the double CRC code check (1-1) is normal and health check data is detected, an interrupt request (IRQ) is generated to the CPU (1-2), and the interrupt request (IRQ) As shown in FIG. 1 (b), prepare to store a health check response (check the health check result according to the process and make it a response) in the queue (1-3), and receive the prepared response It is arranged at the head of already received data (untransmitted data) in the data queue (1-4).

なお、上記割り込み要求の発生(1−2)によるヘルスチェック処理は、その処理パターンにより、処理に要する時間が異なる。データ転送装置においては、受信処理系の優先度が最も高く、割り込み処理の延長にてヘルスチェック処理を実行しても特に問題は生じないが、他によりハイレベルの割り込み処理が要求される場合には、該割り込み処理の優先度に応じて、ヘルスチェック応答の受信データキューへの配置位置を調整する構成とすることができる。   Note that the time required for the health check process due to the generation of the interrupt request (1-2) differs depending on the process pattern. In the data transfer device, the priority of the reception processing system is the highest, and there is no particular problem even if the health check process is executed by extending the interrupt process, but when a higher level interrupt process is requested by others Can be configured to adjust the placement position of the health check response in the received data queue in accordance with the priority of the interrupt processing.

パケット処理部では、受信データキューに格納されている既受信データの有無を判定し(7−8)、受信データが有る場合、当該受信データをFIFO方式で先頭から取り出して処理し、ヘルスチェック応答データは該受信データキュー先頭又は優先的な順序位置に配置されているので、他の既受信データ数により影響される処理待ち時間の遅延を伴うことなく、速やかに送信することが可能となる。   The packet processing unit determines whether or not there is already received data stored in the received data queue (7-8). If there is received data, the received data is extracted from the head using the FIFO method and processed, and the health check response Since the data is arranged at the head of the received data queue or at a preferential order position, the data can be promptly transmitted without delaying the processing waiting time affected by the number of other received data.

但し、上記の最初のCRC符号チェック(7−5)で“異常”と判定された場合、エラーチェックデータ統計情報としてのCRCエラーカウンタは増加させず、二回目のCRC符号チェック(1−1)で“異常”と判定されたときに、エラーチェックデータ統計情報としてのCRCエラーカウンタを増加させる。   However, if it is determined as “abnormal” in the first CRC code check (7-5), the CRC error counter as error check data statistical information is not incremented, and the second CRC code check (1-1). When it is determined as “abnormal”, the CRC error counter as error check data statistical information is increased.

二回目のCRC符号チェック(1−1)でヘルスチェックデータを識別する手法として、以下のような4通りの手法を用いることができる。
(1)最初のCRC符号チェック(7−5)と同一のCRC符号チェック方式を用い、チェックするデータの対象範囲を変えてチェックする。
(2)CRC符号チェック方式として種類の異なる二つの方式(例えばCRC−32,CRC−16等)を用意し、ヘルスチェックデータとユーザデータとで異なるCRC符号方式を適用する。
(3)ユーザデータと異なるCRC符号をヘルスチェックデータに付与して送信し、受信側で異常を検出した後、ヘルスチェックデータ用のCRC符号で再計算して正常性を確認し、ヘルスチェックデータを識別する。
(4)ヘルスチェックデータがパラメータ(変数)を含まない固定データである場合、受信装置側で該固定データ及びその配置位置を記憶しておき、受信データにおける該配置位置のデータを、受信装置で記憶している固定データと比較し、その一致検出によりヘルスチェックデータを識別する。
The following four methods can be used as a method for identifying health check data in the second CRC code check (1-1).
(1) Use the same CRC code check method as the first CRC code check (7-5), and check by changing the target range of the data to be checked.
(2) Two different types of CRC code check methods (for example, CRC-32 and CRC-16) are prepared, and different CRC code methods are applied to health check data and user data.
(3) A CRC code different from the user data is attached to the health check data and transmitted. After the abnormality is detected on the receiving side, the health check data is recalculated to check the normality, and the health check data is checked. Identify
(4) When the health check data is fixed data that does not include parameters (variables), the receiving device stores the fixed data and its arrangement position, and the receiving apparatus stores the arrangement position data in the reception data. The health check data is identified by detecting the coincidence with the stored fixed data.

図1の(c)にエラーチェック符号を付与した転送データのフォーマットを示す。データ転送時は、送信データ(フレーム、パケットなど)の正常性を保証するために、CRC符号、チェックサム符号等のエラーチェック符号を送信データに付加して送信し、受信側で該エラーチェック符号を基に受信データをチェックし、異常が検出された場合、該受信データを破棄又は再送要求を行う。   FIG. 1C shows a format of transfer data to which an error check code is added. At the time of data transfer, in order to guarantee the normality of transmission data (frame, packet, etc.), an error check code such as a CRC code or a checksum code is added to the transmission data and transmitted, and the error check code is received on the receiving side. The received data is checked based on this, and if an abnormality is detected, the received data is discarded or retransmitted.

本発明では、例えば、ユーザデータには第2のCRC方式の符号を付与し、ヘルスチェックデータには第1のCRC方式の符号を付与して送信し、受信側で受信データを第2のCRC方式でチェックして異常を検出した後、第1のCRC方式でチェックし、チェック結果が“正常(OK)”であれば、ヘルスチェックデータであると識別する。   In the present invention, for example, a second CRC code is assigned to user data, a first CRC code is assigned to health check data, and the received data is sent to the second CRC on the receiving side. After checking the system and detecting an abnormality, the first CRC system is checked. If the check result is “normal (OK)”, it is identified as health check data.

本発明による受信処理の全体フローを図2に示す。図2において、図7に示した従来の受信処理と同一の処理には同一の符号を付し、また、図1で説明した処理と同一の処理には同一の符号を付し、重複した説明を省略する。本発明による受信処理の全体フローは、図6に示す破線で囲んだ従来の受信処理を、図1に示す処理で置き換えたものである。   The overall flow of the reception process according to the present invention is shown in FIG. In FIG. 2, the same processes as those in the conventional reception process shown in FIG. 7 are denoted by the same reference numerals, and the same processes as those described in FIG. Is omitted. The overall flow of the reception process according to the present invention is obtained by replacing the conventional reception process surrounded by a broken line shown in FIG. 6 with the process shown in FIG.

本発明の実施例として、図3に示すように、データ転送装置2台の場合の構成例について説明する。同図に示すように、データ送受信装置3−1からヘルスチェックデータパケットをデータ送受信装置3−2に送信し、データ送受信装置3−2から該ヘルスチェックデータパケットに対するヘルスチェック応答をデータ送受信装置3−1に返送する。ここで伝送媒体は一例としてイーサネット(登録商標)であるとする。   As an embodiment of the present invention, a configuration example in the case of two data transfer apparatuses as shown in FIG. 3 will be described. As shown in the figure, the data transmission / reception device 3-1 transmits a health check data packet to the data transmission / reception device 3-2, and the data transmission / reception device 3-2 sends a health check response to the health check data packet to the data transmission / reception device 3. Return to -1. Here, it is assumed that the transmission medium is Ethernet (registered trademark) as an example.

上記構成例におけるヘルスチェックの処理の流れを図4を参照して説明する。まず、受信時の処理の流れについて説明する。データ送受信装置3−2において、受信データが一般ユーザデータであってもヘルスチェックデータであっても、受信回路及びDMA回路を通してデータの正常性チェック(CRC符号チェック)を実行し、受信データをメモリ内のバッファに格納する(4−1)。そのとき、受信(送信)バッファ制御機構によって、ディスクリプタによる受信データの先頭、受信ステイタス(正常、異常)、制御フラグが管理される。   The flow of the health check process in the above configuration example will be described with reference to FIG. First, the flow of processing during reception will be described. In the data transmitting / receiving device 3-2, whether the received data is general user data or health check data, the data normality check (CRC code check) is executed through the receiving circuit and the DMA circuit, and the received data is stored in the memory. (4-1). At that time, the reception (transmission) buffer control mechanism manages the head of the reception data by the descriptor, the reception status (normal or abnormal), and the control flag.

該受信データの正常性チェックで異常が検出されたときには、CPUに対する割り込み(トラップ)を発生させ、該当するベクタテーブルのエントリに登録されたCRCエラートラップ処理部をコールする(4−2)。CRCエラートラップ処理部では、バッファから受信データを読み出し(4−3)、該受信データに対して二回目のCRC符号チェックを行う(4−4)。   When an abnormality is detected by the normality check of the received data, an interrupt (trap) is generated for the CPU, and the CRC error trap processing unit registered in the corresponding vector table entry is called (4-2). The CRC error trap processing unit reads the received data from the buffer (4-3), and performs a second CRC code check on the received data (4-4).

二回目のCRC符号チェックの結果で正常な場合、ヘルスチェック良否を判断し、ヘルスチェック応答が、以下に述べる送信処理を経てデータ送受信装置(3−1)に返送される。CRC符号チェックの結果が異常のときは該受信データを廃棄する。受信データがヘルスチェックに該当しない場合にのみ、統計上としてのCRCチェック異常発生回数を加算する。CRC符号方式としてはイーサネット(登録商標)におけるCRC−32の生成多項式を使用することができる。   If the result of the second CRC code check is normal, it is determined whether the health check is good or not, and a health check response is returned to the data transmitting / receiving device (3-1) through the transmission process described below. When the CRC code check result is abnormal, the received data is discarded. Only when the received data does not correspond to the health check, the number of occurrences of CRC check abnormality as a statistic is added. As a CRC coding method, a CRC-32 generator polynomial in Ethernet (registered trademark) can be used.

送信時は、CRC符号方式の多項式を変更する必要はなく、CRC−32を使用する。但し、演算対象は異なる。送信時は送信用のディスクリプタ内のフラグにより、送信データキューの先頭にヘルスチェック応答を配置する(4−5)。フラグは2種使用し、第1のフラグはDMA転送処理中フラグ、第2のフラグを最終フラグとして使用する。   At the time of transmission, it is not necessary to change the polynomial of the CRC code system, and CRC-32 is used. However, the calculation target is different. At the time of transmission, a health check response is placed at the head of the transmission data queue by a flag in the transmission descriptor (4-5). Two types of flags are used, the first flag is used as a DMA transfer processing flag, and the second flag is used as a final flag.

最も先頭に近い第1のフラグがオフのディスクリプタに対して、第2のフラグをオフとして、その次のディスクリプタエントリーにヘルスチェック応答パケットをチェインし、その後、第2のフラグをオフにしたフラグをオンにして、送信DMAを再起動する(4−6)。   For the descriptor whose first flag closest to the head is off, the second flag is turned off, the health check response packet is chained to the next descriptor entry, and then the flag with the second flag turned off is set. Turn it on and restart the transmit DMA (4-6).

この処理により、図5(a)に示すように、2つの未送信パケットがそのディスクリプタ5−1及び5−2によってこの順番で先頭からチェインされている場合、同図(b)に示すように、ヘルスチェック応答のディスクリプタ5−3が、先頭の未送信パケットのディスクリプタ5−1の次に配され、次の未送信パケットのディスクリプタ5−2の前に割り込んでチェインされ、ヘルスチェック応答が受信(送信)データキューの先頭又は優先的な順序位置に配置される。ヘルスチェック応答パケットの送信終了後は、通常の受信パケット処理に復帰する(4−7)。   As a result of this processing, as shown in FIG. 5A, when two untransmitted packets are chained in this order by the descriptors 5-1 and 5-2, as shown in FIG. The health check response descriptor 5-3 is placed next to the descriptor 5-1 of the first unsent packet, interrupted before the descriptor 5-2 of the next unsent packet, and the health check response is received. (Transmission) It is arranged at the head of the data queue or at a preferential order position. After the transmission of the health check response packet is completed, the process returns to normal reception packet processing (4-7).

本発明によるヘルスチェックデータの識別及びキューへの格納を示す図である。It is a figure which shows the identification of the health check data by this invention, and the storing to a queue. 本発明による受信処理の全体フローを示す図である。It is a figure which shows the whole flow of the reception process by this invention. 本発明の実施例の構成例を示す図である。It is a figure which shows the structural example of the Example of this invention. 本発明の実施例のヘルスチェックの処理の流れを示す図である。It is a figure which shows the flow of a process of the health check of the Example of this invention. 本発明の実施例のヘルスチェック応答のチェイン組み込みを示す図である。It is a figure which shows chain incorporation of the health check response of the Example of this invention. 従来のへルスチェックの動作シーケンスを示す図である。It is a figure which shows the operation | movement sequence of the conventional health check. 従来の受信データの処理のフローを示す図である。It is a figure which shows the flow of the process of the conventional reception data. ヘルスチェックデータが処理されるまでの平均待ち時間のグラフである。It is a graph of the average waiting time until health check data is processed.

符号の説明Explanation of symbols

1−1 二重CRCチェック処理
1−2 ヘルスチェック検出処理
1−3 ヘルスチェック応答をキューに準備する処理
1−4 準備した応答を未送信データの先頭に配置する処理
1-1 Double CRC Check Processing 1-2 Health Check Detection Processing 1-3 Processing to Prepare Health Check Response in Queue 1-4 Processing to Place Prepared Response at Top of Unsent Data

Claims (5)

ユーザ通信データにエラーチェック符号を付与して転送するデータ転送装置において、
ヘルスチェックデータを送信する側のデータ転送装置には、ヘルスチェックデータに付与するエラーチェック符号として、受信側のデータ転送装置における前記ユーザ通信データ用のエラーチェック符号によるエラーチェックでエラーが検出されるエラーチェック符号であって、ヘルスチェックデータ固有の識別符号を、ヘルスチェックデータに付与して送信する手段を備え、
ヘルスチェックデータを受信する側のデータ転送装置には、受信パケットに対して、前記ユーザ通信データ用のエラーチェック符号によるエラーチェックを行った後に、該エラーチェックでエラーが検出された受信データに対して、ヘルスチェックデータ固有の識別符号が付与された受信データであるか否かを判定する手段と、該ヘルスチェックデータ固有の識別符号が付与された受信データを、受信データ処理待ちキューの先頭又は他の受信データより優先的な順序位置に配置して格納する手段と、を備えたことを特徴とするデータ転送装置。
In a data transfer device for transferring an error check code to user communication data,
An error is detected by an error check using the error check code for the user communication data in the data transfer device on the reception side as an error check code to be added to the health check data in the data transfer device on the health check data transmission side. An error check code, comprising means for sending an identification code unique to the health check data to the health check data,
The data transfer device that receives the health check data performs error check on the received packet using the error check code for the user communication data, and then receives the received data in which an error is detected in the error check. Means for determining whether or not the received data has an identification code unique to the health check data, and the received data to which the identification code unique to the health check data has been assigned, And a means for storing the data arranged in an order position preferential to other received data.
前記ヘルスチェックデータ固有の識別符号として、前記ユーザ通信データ用のエラーチェック符号と異なるCRC符号を用いたことを特徴とする請求項1に記載のデータ転送装置。   The data transfer apparatus according to claim 1, wherein a CRC code different from the error check code for the user communication data is used as the identification code unique to the health check data. 前記ヘルスチェックデータ固有の識別符号として、前記ユーザ通信データ用のエラーチェック符号によるエラーチェックの対象範囲と異なるデータ範囲をエラーチェックの対象範囲とするCRC符号を用いたことを特徴とする請求項1に記載のデータ転送装置。   2. The CRC code having a data range different from an error check target range by the error check code for the user communication data as an error check target range is used as the identification code unique to the health check data. The data transfer device described in 1. 前記ヘルスチェックデータ固有の識別符号として、ヘルスチェックデータの所定位置の固定データを用い、受信データの所定位置のデータを該固定データと比較してヘルスチェックデータを識別することを特徴とする請求項1に記載のデータ転送装置。   The health check data is identified by using fixed data at a predetermined position of health check data as an identification code unique to the health check data, and comparing the data at a predetermined position of received data with the fixed data. The data transfer apparatus according to 1. ユーザ通信データにエラーチェック符号を付与して転送し、定期的にヘルスチェックデータを送受するデータ転送装置間のヘルスチェックデータ処理方法において、
前記ヘルスチェックデータを送信する側のデータ転送装置では、ヘルスチェックデータに付与するエラーチェック符号として、受信側のデータ転送装置における前記ユーザ通信データ用のエラーチェック符号によるエラーチェックでエラーが検出されるエラーチェック符号であって、ヘルスチェックデータ固有の識別符号を、ヘルスチェックデータに付与して送信し、
前記ヘルスチェックデータを受信する側のデータ転送装置では、受信データに対して、前記ユーザ通信データ用のエラーチェック符号によるエラーチェックを行った後に、該エラーチェックでエラーが検出された受信データに対して、ヘルスチェックデータ固有の識別符号が付与された受信データであるか否かを判定し、該ヘルスチェックデータ固有の識別符号が付与された受信データを、受信データ処理待ちキューの先頭又は他の受信データより優先的な順序位置に配置して格納することを特徴とするヘルスチェックデータ処理方法。
In the health check data processing method between data transfer devices that transfer error check codes to user communication data and periodically send and receive health check data,
In the data transfer device on the transmission side of the health check data, an error is detected by an error check using the error check code for the user communication data in the data transfer device on the reception side as an error check code to be added to the health check data. An error check code, an identification code unique to the health check data is attached to the health check data and transmitted,
In the data transfer device that receives the health check data, after performing an error check on the received data using an error check code for the user communication data, the received data in which an error is detected in the error check is received. Whether the received data is given the identification code unique to the health check data, and the received data given the identification code unique to the health check data is A health check data processing method, wherein the health check data processing method is characterized in that it is arranged and stored in an order position having priority over received data.
JP2007034282A 2007-02-15 2007-02-15 Data transfer device and health check data processing method Pending JP2008199432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007034282A JP2008199432A (en) 2007-02-15 2007-02-15 Data transfer device and health check data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007034282A JP2008199432A (en) 2007-02-15 2007-02-15 Data transfer device and health check data processing method

Publications (1)

Publication Number Publication Date
JP2008199432A true JP2008199432A (en) 2008-08-28

Family

ID=39757968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007034282A Pending JP2008199432A (en) 2007-02-15 2007-02-15 Data transfer device and health check data processing method

Country Status (1)

Country Link
JP (1) JP2008199432A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011041107A (en) * 2009-08-14 2011-02-24 Anritsu Corp Test system and test method of device for mobile communication
CN106126367A (en) * 2016-06-28 2016-11-16 湖北锐世数字医学影像科技有限公司 A kind of self checking method and system of file

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59158140A (en) * 1983-02-28 1984-09-07 Oki Electric Ind Co Ltd Data transmission system
JPH0319057A (en) * 1989-06-16 1991-01-28 Fujitsu Ltd Health check signal transmission control system for communication controller
JPH0394549A (en) * 1989-09-06 1991-04-19 Nec Corp Data link controller
JPH05122163A (en) * 1991-10-28 1993-05-18 Toshiba Corp Signal receiving equipment and signal receiving method using said equipment
JPH07273789A (en) * 1994-03-30 1995-10-20 Hitachi Ltd Communication system and communication method
JPH11163839A (en) * 1997-11-27 1999-06-18 Nec Corp Health check system and health check method
JP2001285394A (en) * 2000-03-30 2001-10-12 Omron Corp Device and method for information processing and recording medium
JP2005184616A (en) * 2003-12-22 2005-07-07 Yokogawa Electric Corp Communication control system
JP2005301470A (en) * 2004-04-08 2005-10-27 Nec Corp Failure monitoring method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59158140A (en) * 1983-02-28 1984-09-07 Oki Electric Ind Co Ltd Data transmission system
JPH0319057A (en) * 1989-06-16 1991-01-28 Fujitsu Ltd Health check signal transmission control system for communication controller
JPH0394549A (en) * 1989-09-06 1991-04-19 Nec Corp Data link controller
JPH05122163A (en) * 1991-10-28 1993-05-18 Toshiba Corp Signal receiving equipment and signal receiving method using said equipment
JPH07273789A (en) * 1994-03-30 1995-10-20 Hitachi Ltd Communication system and communication method
JPH11163839A (en) * 1997-11-27 1999-06-18 Nec Corp Health check system and health check method
JP2001285394A (en) * 2000-03-30 2001-10-12 Omron Corp Device and method for information processing and recording medium
JP2005184616A (en) * 2003-12-22 2005-07-07 Yokogawa Electric Corp Communication control system
JP2005301470A (en) * 2004-04-08 2005-10-27 Nec Corp Failure monitoring method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011041107A (en) * 2009-08-14 2011-02-24 Anritsu Corp Test system and test method of device for mobile communication
CN106126367A (en) * 2016-06-28 2016-11-16 湖北锐世数字医学影像科技有限公司 A kind of self checking method and system of file

Similar Documents

Publication Publication Date Title
CN115941616B (en) Multipath RDMA transmission
EP2234333B1 (en) System and method for estimation of round trip times within a tcp based data network
US6574770B1 (en) Error-correcting communication method for transmitting data packets in a network communication system
US20120327950A1 (en) Method for Transmitting Data Packets
JP2013513269A (en) Reliable packet cut-through
EP1984834B1 (en) System and method for efficient network flow control
EP1536589B1 (en) Transmitter device for controlling data transmission
JP2015027100A (en) Transmission control method for packet communication, and packet communication system
CN105103500A (en) Communication method, communication device and communication program
JP5738324B2 (en) Transmission device, communication device, communication system, and transmission method
CN101510886B (en) Method and apparatus for processing message of MP group
JP3968097B2 (en) Status report missing detection in communication systems
JP7067544B2 (en) Communication systems, communication devices, methods and programs
JP2008199432A (en) Data transfer device and health check data processing method
CN1984025A (en) Method for releasing invalid-occupied resource and storage converter
CN101145968B (en) Data transmission and receiving method between network management system and transmission device
JP4807828B2 (en) Envelope packet architecture for broadband engines
EP1774746B1 (en) Data unit receiver and sender control method
JP3486182B2 (en) Communication device and communication control method and program therefor
JPH10242946A (en) Method for transmitting data frame
JP2010118894A (en) Device, method, and program for generating packet
WO2008031296A1 (en) A judgement handling method for sequence number of sequenced data in service specific connection oriented protocol
CN100518041C (en) Method and device for monitoring data transmission
JP2011039897A (en) Data communication device, data communication control method, data communication control program and recording medium
CN118713795A (en) A data transmission method, device and medium based on network card system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091110

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091110

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110720

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110726

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20110915

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111206