JPH1117661A - Data transmitter - Google Patents

Data transmitter

Info

Publication number
JPH1117661A
JPH1117661A JP9170214A JP17021497A JPH1117661A JP H1117661 A JPH1117661 A JP H1117661A JP 9170214 A JP9170214 A JP 9170214A JP 17021497 A JP17021497 A JP 17021497A JP H1117661 A JPH1117661 A JP H1117661A
Authority
JP
Japan
Prior art keywords
data
unit
error
transmission
detection code
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
JP9170214A
Other languages
Japanese (ja)
Inventor
Kunihiko Kawahara
原 邦 彦 河
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP9170214A priority Critical patent/JPH1117661A/en
Publication of JPH1117661A publication Critical patent/JPH1117661A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve throughput by allowing the transmitter to recognize erroneous data without processing by a CPU of a higher level, so as to relieve the load on the CPU. SOLUTION: Transmission data 51, sent from the transmitter are given to a transmitter side data control section 11, a transmitter side frame check sequence FCS calculation section 12 and a selection section 13. The transmitter side FCS calculation section 12 calculates as FCS 53, based on the transmission data 51. In the case that the transmitter side data control section 11 discriminates it that transmission data have an error, the control section 11 uses an inverted control signal 61 to control an inverter section 14 for providing an output of the inverted FCS. The selection section 13 selects the transmission data 51 or an inverter section output 62 (inverted or noninverted FCS) and transmits the selected data to network 3 as output data 52. On the other hand, a receiver side FCS calculation section 22 extracts the FCS from received data 58 and outputs FCS confirmation data 56 to a receiver side data control section 21. The receiver side data control section 21 outputs an error signal 57 of the received data according to the confirmation data 56.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データ伝送装置に
係り、特に、データの誤りをチェックするためのチェッ
クコードを有するフレームフォーマットによって伝送を
行うデータ伝送装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission apparatus and, more particularly, to a data transmission apparatus for transmitting data in a frame format having a check code for checking data errors.

【0002】[0002]

【従来の技術】一般に、データ伝送を行うネットワーク
・システムにおいて、データ長が一定ではなく、かつ、
データの誤りをチェックするためのチェックコードを有
するフレームフォーマットを用いるものが知られてい
る。例えば、イーサネット等においては、データ誤りを
チェックするために、フレームフォーマット中にフレー
ム検査シーケンス(Frame Check Sequence, FCS)を
有するようにしている。以下の説明では、一般にデータ
の誤りをチェックするフレームを、「FCS」又は「エ
ラー検出符号」と呼ぶこととする。
2. Description of the Related Art Generally, in a network system for data transmission, the data length is not constant and
A device using a frame format having a check code for checking a data error is known. For example, in Ethernet or the like, a frame check sequence (Frame Check Sequence, FCS) is included in a frame format in order to check for a data error. In the following description, a frame for checking a data error is generally referred to as “FCS” or “error detection code”.

【0003】送信側においては、このようなFCSが、
送信データの巡回冗長符号(CyclicRedundancy Check,
CRC)計算等を実行することにより求められ、送信
データの一部として送信される。一方、受信側において
は、受信データのFCSを計算し、送られてきた受信デ
ータのFCSと計算されたFCSが一致するかどうかを
確認することによって、受信したデータに誤りがあるか
否かを判断する。受信側では、これらのFCSが一致し
なかった場合は、そのデータにはなんらかの送信ミス
(送信誤り)があると判断し、そのデータは破棄され
る。
On the transmitting side, such an FCS is:
Cyclic Redundancy Check,
This is obtained by performing a CRC) calculation and the like, and is transmitted as a part of transmission data. On the other hand, on the receiving side, the FCS of the received data is calculated, and by confirming whether the FCS of the received data matches the calculated FCS, it is determined whether or not there is an error in the received data. to decide. If these FCSs do not match, the receiving side determines that the data has a transmission error (transmission error) and discards the data.

【0004】以下に、送信ミスの一例を示す。 ・ロングデータ(送信中に、送信するデータが、規格で
定められた値以上の大きさになったとき) ・不完全なデータ(送信中に、送信装置やルータ等の処
理が追いつかず、送信データとして不完全なものになっ
てしまったとき) ・制御部の故障、処理系の故障による誤り ・ビット誤り ・ノイズ、サージ、回線不良等による影響による伝送ミ
ス 等。
[0004] An example of a transmission error will be described below. -Long data (when the size of the data to be transmitted exceeds the value specified by the standard during transmission)-Incomplete data (the transmission device or router cannot keep up with the transmission during transmission (Incomplete data) ・ Error due to control unit failure, processing system failure ・ Bit error ・ Transmission error due to noise, surge, line failure, etc.

【0005】図10に、従来のデータ伝送装置の主要部
の構成図を示す。
FIG. 10 shows a configuration diagram of a main part of a conventional data transmission apparatus.

【0006】データ伝送装置は、送信側伝送装置1及び
受信側伝送装置2を備え、これら装置は、ネットワーク
3に接続される。送信側伝送装置1及び受信側伝送装置
2には、それぞれ送信装置及び受信装置を接続すること
ができる。
[0006] The data transmission apparatus includes a transmission side transmission apparatus 1 and a reception side transmission apparatus 2, which are connected to a network 3. A transmission device and a reception device can be connected to the transmission device 1 and the reception device 2, respectively.

【0007】送信側伝送装置1は、送信側データ制御部
11、送信側FCS計算部12及び選択部13を備え
る。送信データ51は送信側データ制御部11、送信側
FCS計算部12及び選択部13に入力される。送信側
データ制御部11は、選択信号54を出力して、選択部
13を制御する。送信側FCS計算部12は、送信デー
タ51に基づいてFCS53を計算する。選択部13
は、送信データ51又はFCS53のいずれかを選択
し、出力データ52をネットワーク3に伝送する。
[0007] The transmitting-side transmission device 1 includes a transmitting-side data control unit 11, a transmitting-side FCS calculating unit 12, and a selecting unit 13. The transmission data 51 is input to the transmission-side data control unit 11, the transmission-side FCS calculation unit 12, and the selection unit 13. The transmission-side data control unit 11 outputs the selection signal 54 to control the selection unit 13. The transmission-side FCS calculation unit 12 calculates the FCS 53 based on the transmission data 51. Selector 13
Selects the transmission data 51 or the FCS 53 and transmits the output data 52 to the network 3.

【0008】一方、受信側伝送装置2は、受信側データ
制御部21及び受信側FCS計算部22を備える。ネッ
トワーク3を介して伝送された入力データ55は、FC
S制御部22に入力されるとともに、受信データ58と
して受信される。受信側FCS計算部22は、受信デー
タ58からFCSを抽出し、FCSに基づき確認データ
56を受信側データ制御部21に出力する。受信側デー
タ制御部21は、確認データ56に従い、受信データの
正誤信号57を出力する。
On the other hand, the receiving-side transmission device 2 includes a receiving-side data control unit 21 and a receiving-side FCS calculating unit 22. The input data 55 transmitted via the network 3
The data is input to the S control unit 22 and received as reception data 58. The reception-side FCS calculation unit 22 extracts the FCS from the reception data 58 and outputs confirmation data 56 to the reception-side data control unit 21 based on the FCS. The receiving-side data control unit 21 outputs a correct / wrong signal 57 of the received data according to the confirmation data 56.

【0009】ネットワーク3は、イーサネット、LA
N、WAN、ISDN回線、B−ISDN回線等を、適
宜選択することができる。
The network 3 is an Ethernet, LA
N, WAN, ISDN line, B-ISDN line, and the like can be appropriately selected.

【0010】つぎに、図11に、従来の送受信動作を説
明するためのフローチャートを示す。
Next, FIG. 11 shows a flowchart for explaining a conventional transmitting / receiving operation.

【0011】プログラムが開始されると、送信側伝送装
置1において、ステップS101により、送信側データ
制御部11が、送信データ51が前述のような送信ミス
を起こしていないかどうかを監視する。これと並行し
て、送信データ51のFCSを、送信側FCS計算部1
2で計算する。つぎに、ステップS102では、データ
制御部11からの選択信号54で選択部13を制御する
ことにより、送信データ51を出力データ52として出
力し、その後に、送信データ51に問題なかったかどう
かを判断する。送信データ51に問題が無いと判断され
た場合、ステップS103では、送信データ51を出力
データ52として送信した後、送信側データ制御部11
からの選択信号54で選択部13を制御することによ
り、送信側FCS計算部12による計算結果であるFC
S53を出力データ52として出力する。一方、送信デ
ータ51に問題があった場合、ステップS104におい
て、FCS53を送信しないように、送信側データ制御
部11は選択信号54により選択部13を制御する。
When the program is started, in the transmitting side transmitting apparatus 1, in step S101, the transmitting side data control section 11 monitors whether or not the transmitting data 51 has the transmission error as described above. In parallel with this, the FCS of the transmission data 51 is transmitted to the transmission-side FCS calculation unit 1.
Calculate with 2. Next, in step S102, by controlling the selection unit 13 with the selection signal 54 from the data control unit 11, the transmission data 51 is output as the output data 52, and thereafter, it is determined whether or not there is no problem with the transmission data 51. I do. If it is determined that there is no problem with the transmission data 51, the transmission data 51 is transmitted as the output data 52 in step S103, and then the transmission-side data control unit 11
By controlling the selection unit 13 with the selection signal 54 from the CPU, the transmission-side FCS calculation unit 12 calculates the FC
S53 is output as output data 52. On the other hand, if there is a problem with the transmission data 51, the transmission-side data control unit 11 controls the selection unit 13 with the selection signal 54 so as not to transmit the FCS 53 in step S104.

【0012】一方、受信側伝送装置2においては、ステ
ップS105により、入力データ55を受信し、並行し
て送信側FCS計算部12によって受信データ55のF
CSを計算する。ここで、ステップS106において、
伝送されたFCSデータと計算されたFCSとが一致す
るか否かを送信側FCS計算部12で確認し、確認信号
56によって送信側データ制御部11に伝える。FCS
が一致したならば、ステップS107により、受信デー
タ58には正しいデータがあると判断し、データを受理
することを正誤信号57により受信装置等に伝える。こ
こで、正誤信号57には、前述のような送信ミスに関す
る情報、例えば、ロングフレーム、ショートフレーム、
アラインメントエラー(1ビット又は2ビット無い場
合)、FCS不一致等の正誤情報が含まれる。一方、F
CSが一致しないならば、ステップS108により、受
信データには誤りがあると判断し、データを受理しない
ことを正誤信号57により受信装置に伝える。
On the other hand, the receiving-side transmission device 2 receives the input data 55 in step S 105, and concurrently transmits the F
Calculate CS. Here, in step S106,
The transmitting-side FCS calculating unit 12 confirms whether the transmitted FCS data and the calculated FCS match, and notifies the transmitting-side data control unit 11 by a confirmation signal 56. FCS
If they match, it is determined in step S107 that the received data 58 contains correct data, and the reception of the data is notified to the receiving device or the like by the correct / incorrect signal 57. Here, the correct / incorrect signal 57 includes information on the transmission error as described above, for example, a long frame, a short frame,
Correctness information such as an alignment error (when there is no 1 or 2 bits) and FCS mismatch are included. On the other hand, F
If the CSs do not match, it is determined in step S108 that the received data has an error, and the fact that the data will not be received is transmitted to the receiving apparatus using a true / false signal 57.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、従来の
ように伝送されて誤ったデータを受信側で受け取った場
合、ステップS106において、受信データのFCSに
あたる部分が偶然に計算されたFCSと同値になること
がある。その理由としては、以下のように説明される。
However, when erroneous data transmitted and received by the receiving side is received as in the prior art, in step S106, the part corresponding to the FCS of the received data becomes the same value as the FCS calculated by accident. Sometimes. The reason is explained as follows.

【0014】例えば、ステップS102において送信デ
ータが誤っている場合、ステップS104によってFC
Sを付加せずに送信することになる。このとき、受信側
では最終Nビット(IEEE802.3の場合、N=3
2)をFCSと認識することになるため、入力データ5
5のFCSが計算されたFCSと偶然に一致してしまう
ことが有り得るためである。ここで、偶然の一致とは言
っても、伝送されるデータ量が膨大できるため、一致す
る確率を無視することができない。
For example, if the transmission data is incorrect in step S102, the FC
It will be transmitted without adding S. At this time, on the receiving side, the last N bits (in the case of IEEE 802.3, N = 3
Since 2) is recognized as FCS, input data 5
This is because the FCS of No. 5 may coincide with the calculated FCS by chance. Here, even if it is coincidence, since the amount of data to be transmitted can be enormous, the probability of coincidence cannot be ignored.

【0015】このようなことが原因となり、受信側伝送
装置2において、誤ったデータであることをFCS計算
部12で認識できず、正しいデータとして扱ってしま
う。
As a result, the FCS calculation unit 12 cannot recognize that the data is erroneous in the receiving-side transmission device 2 and treats the data as correct data.

【0016】この場合、従来は、例えば、上位レベル等
のCPUによって受信データの内容を解析し、その結
果、誤ったデータを受け取ったことを判断することがで
きるものの、その処理の分、上位レベル等のCPUに負
担がかかってしまうという問題点がある。
In this case, conventionally, for example, the content of the received data is analyzed by a CPU at a higher level or the like, and as a result, it can be determined that erroneous data has been received. However, there is a problem that a load is imposed on the CPU.

【0017】本発明は、以上のような問題点に鑑み、I
SDN、LAPD等のFCSを有するフレームフォーマ
ットのデータ伝送装置において、誤ったデータであるこ
とを上位レベル等のCPUに処理させることなく認識で
きるようにして、CPUの負担を減らし処理能力を向上
させることを目的とする。
In view of the above problems, the present invention has
In a data transmission apparatus of a frame format having an FCS such as SDN or LAPD, it is possible to recognize erroneous data without processing by a CPU at an upper level or the like, thereby reducing a load on the CPU and improving a processing capability. With the goal.

【0018】[0018]

【課題を解決するための手段】本発明の第1の解決手段
によると、送信データに基づいてエラー検出符号を求め
る計算部と、入力された反転制御信号に従い、前記計算
部により求められた前記エラー検出符号を、そのまま又
は反転させて出力する反転部と、入力された選択信号に
従い、前記送信データ又は前記反転部の出力のいずれか
を選択して出力する選択部と、前記送信データに誤りが
あるか否かを監視して、誤りがあると判断した場合、前
記反転制御信号により前記反転部を制御して前記エラー
検出符号を反転し、前記選択信号により前記選択部を制
御して反転した前記エラー検出符号を出力するためのデ
ータ制御部とを備えたデータ伝送装置を提供する。
According to a first aspect of the present invention, there is provided a calculation unit for obtaining an error detection code based on transmission data, and the calculation unit obtained by the calculation unit in accordance with an input inversion control signal. An inverting unit that outputs the error detection code as it is or inverted, a selecting unit that selects and outputs either the transmission data or the output of the inversion unit according to the input selection signal, and an error in the transmission data. By monitoring whether or not there is an error, if it is determined that there is an error, the inversion control signal controls the inversion unit to invert the error detection code, and the selection signal controls the selection unit to invert. And a data control unit for outputting the error detection code.

【0019】また、本発明の第2の解決手段によると、
送信データに基づいてNビットのエラー検出符号を求め
る計算部と、入力された反転制御信号に従い、前記計算
部により求められた前記エラー検出符号を、そのまま又
は反転させて出力する反転部と、入力された選択信号に
従い、前記送信データ又は前記反転部の出力のいずれか
を選択して出力する選択部と、前記送信データの最終N
ビットを蓄積するバッファ部と、前記送信データのNビ
ット遅延したデータを出力するシフトレジスタ部と、前
記シフトレジスタ部からの出力により第2のエラー検出
符号を求める第2の計算部と、前記バッファ部に蓄積さ
れた前記最終Nビットと前記第2の計算部により求めら
れた前記第2のエラー検出符号とを比較する比較部と、
前記送信データに誤りがあるか否かを監視して、誤りが
あると判断した場合、前記比較部で前記最終Nビットと
前記第2のエラー検出符号とが一致すれば、前記反転制
御信号により前記反転部を制御して前記エラー検出符号
を反転し、前記選択信号により前記選択部を制御して反
転した前記エラー検出符号を出力するためのデータ制御
部とを備えたデータ伝送装置を提供する。
According to a second solution of the present invention,
A calculating unit for obtaining an N-bit error detection code based on the transmission data, an inverting unit for outputting the error detection code obtained by the calculation unit as it is or by inverting the error detection code according to the input inversion control signal; A selection unit for selecting and outputting either the transmission data or the output of the inversion unit according to the selected selection signal;
A buffer for accumulating bits, a shift register for outputting data transmitted by N bits of the transmission data, a second calculator for obtaining a second error detection code from an output from the shift register, A comparing unit that compares the last N bits stored in the unit with the second error detection code obtained by the second calculating unit;
It monitors whether there is an error in the transmission data, and when it is determined that there is an error, if the last N bits and the second error detection code match in the comparing section, the inversion control signal A data control unit for controlling the inversion unit to invert the error detection code, and controlling the selection unit by the selection signal to output the inverted error detection code. .

【0020】さらに、本発明の第3の解決手段による
と、前記選択部により選択され、ストップフレーム又は
偽のエラー検出符号を発生する発生部をさらに備え、前
記データ制御部は、前記送信データに誤りがあるか否か
を監視して、誤りがあると判断した場合、前記選択信号
により前記選択部を制御することにより、前記発生部か
らの前記ストップフレーム又は偽のエラー検出符号を選
択して出力することを特徴とする請求項1乃至4のいず
れかに記載のデータ伝送装置を提供する。
Further, according to a third solution of the present invention, the apparatus further comprises a generation unit which is selected by the selection unit and generates a stop frame or a false error detection code. Monitoring whether there is an error, if it is determined that there is an error, by controlling the selection unit by the selection signal, to select the stop frame or the false error detection code from the generation unit The data transmission device according to any one of claims 1 to 4, wherein the data transmission device outputs the data.

【0021】[0021]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

1.本発明の概要 図1に、本発明の送受信動作の概要を説明するフローチ
ャートを示す。ここで、本発明の主なポイントとして
は、送信データを送信する際に、送信データに問題があ
る場合、FCSの計算結果と異なるFCSを送信するこ
とにある。
1. 1. Outline of the Present Invention FIG. 1 is a flowchart illustrating an outline of a transmitting / receiving operation according to the present invention. Here, the main point of the present invention is to transmit an FCS different from the FCS calculation result when there is a problem with the transmission data when transmitting the transmission data.

【0022】図11に示した従来のフローチャートとの
違いは、特に、図11のステップS104を、図1のス
テップS201で示したものに置換したことである。本
発明における他のステップS201〜S203、S20
5〜S208は、それぞれ、従来例におけるステップS
101〜S103、S105〜S108に相当する処理
を実行する。上述したように、従来ステップS104に
おいてデータを打ち切ることによると、受信側伝送装置
2では、受信された誤ったデータと計算されたFCSと
が一致してしまうことがある。そこで、本発明において
は、ステップS201によって偽のFCSを送信するこ
とにより、受信側伝送装置2における処理で、FCSが
一致することがなくなる。
The difference from the conventional flowchart shown in FIG. 11 is that, in particular, step S104 in FIG. 11 is replaced with that shown in step S201 in FIG. Other steps S201 to S203 and S20 in the present invention
Steps 5 to S208 are steps S10 in the conventional example, respectively.
Processing corresponding to 101 to S103 and S105 to S108 is executed. As described above, according to the conventional method of terminating the data in step S104, in the receiving-side transmission device 2, the received erroneous data and the calculated FCS may coincide. Therefore, in the present invention, by transmitting the fake FCS in step S201, the FCS does not match in the processing in the receiving side transmission device 2.

【0023】2.第1の実施の形態 図2に、本発明に係るデータ伝送装置の第1の実施の形
態による主要部の構成図を示す。データ伝送装置は、送
信側装置1及び受信側装置2を備え、これら装置は、ネ
ットワーク3に接続される。送信側伝送装置1及び受信
側伝送装置2には、それぞれ送信装置及び受信装置を接
続することができる。
2. First Embodiment FIG. 2 shows a configuration diagram of a main part of a data transmission device according to a first embodiment of the present invention. The data transmission device includes a transmitting device 1 and a receiving device 2, which are connected to a network 3. A transmission device and a reception device can be connected to the transmission device 1 and the reception device 2, respectively.

【0024】送信側伝送装置1は、送信側データ制御部
11、送信側FCS計算部12、選択部13及び反転部
14を備える。送信装置から伝送された送信データ51
は、送信側データ制御部11、送信側FCS計算部12
及び選択部13に入力される。送信側データ制御部11
は、選択信号54及び反転制御信号61を出力して、そ
れぞれ選択部13及び反転部14を制御する。送信側F
CS計算部12は、送信データ51に基づいてFCSデ
ータ53を計算する。例えば、IEEE802.3の場
合、送信データをCRC計算し、その結果、32ビット
のFCSデータを生成する。
The transmitting-side transmission device 1 includes a transmitting-side data control unit 11, a transmitting-side FCS calculating unit 12, a selecting unit 13, and an inverting unit 14. Transmission data 51 transmitted from the transmission device
Are the transmission-side data control unit 11 and the transmission-side FCS calculation unit 12
And the selection unit 13. Transmission side data control unit 11
Outputs the selection signal 54 and the inversion control signal 61 to control the selection unit 13 and the inversion unit 14, respectively. Sending side F
The CS calculator 12 calculates FCS data 53 based on the transmission data 51. For example, in the case of IEEE 802.3, CRC is calculated for transmission data, and as a result, 32-bit FCS data is generated.

【0025】反転部14は、送信側FCS計算部12か
ら出力されたFCSデータ53を入力し、反転制御信号
61に従い、FCSデータ53をそのまま又は反転して
出力する。選択部13は、選択信号54に従い、送信デ
ータ51又は反転部出力62(FCSの反転又は非反
転)のいずれかを選択し、出力データ52としてネット
ワーク3に伝送する。
The inverting section 14 receives the FCS data 53 output from the transmitting-side FCS calculating section 12 and outputs the FCS data 53 as it is or in reverse according to an inversion control signal 61. The selection unit 13 selects either the transmission data 51 or the inversion unit output 62 (inverted or non-inverted FCS) according to the selection signal 54 and transmits the output data 52 to the network 3 as output data 52.

【0026】一方、受信側伝送装置2は、従来と同様、
受信側データ制御部21及び受信側FCS計算部22を
備える。ネットワーク3を介して伝送された入力データ
55は、FCS制御部22に入力されるとともに、受信
データ58として受信される。受信側FCS計算部22
は、受信データ58からFCSを抽出し、FCSに基づ
き確認データ56を受信側データ制御部21に出力す
る。受信側データ制御部21は、確認データ56に従
い、受信データの正誤信号57を出力する。
On the other hand, the receiving side transmission device 2 is, as in the prior art,
A receiving-side data control unit 21 and a receiving-side FCS calculating unit 22 are provided. The input data 55 transmitted via the network 3 is input to the FCS control unit 22 and received as received data 58. Receiving-side FCS calculator 22
Extracts the FCS from the received data 58 and outputs confirmation data 56 to the receiving-side data control unit 21 based on the FCS. The receiving-side data control unit 21 outputs a correct / wrong signal 57 of the received data according to the confirmation data 56.

【0027】ネットワーク3は、LAN、WAN、IS
DN回線、B−ISDN回線等を、適宜選択することが
できる。
The network 3 includes LAN, WAN, IS
A DN line, a B-ISDN line, or the like can be appropriately selected.

【0028】つぎに、図3に、本発明の第1の実施の形
態の送受信動作を説明するためのフローチャートを示
す。
Next, FIG. 3 shows a flowchart for explaining the transmission / reception operation of the first embodiment of the present invention.

【0029】プログラムが開始されると、送信側伝送装
置1において、従来と同様に、ステップS301によ
り、送信側データ制御部11が、送信データ51が前述
のような送信ミスを起こしていないかどうかを監視す
る。これと並行して、送信データ51のFCSを、送信
側FCS計算部12で計算する。つぎに、ステップS3
02では、送信側データ制御部11からの選択信号54
で選択部13を制御することにより、送信データ51を
出力データ52として出力し、送信データ51に送信ミ
ス等の問題がなかったかどうかを判断する。送信データ
51に問題が無いと判断された場合、ステップS301
では、送信データ51を出力データ52として送信した
後、データ制御部11からの選択信号54で選択部13
を制御することにより、FCS計算部12による計算結
果であるFCS53を出力データ52として出力する。
一方、送信データ51に送信ミス等の問題があった場
合、ステップS303では、発信側伝送装置1の送信側
データ制御部11は、既に送信データについて送信側F
CS計算部12でCRC計算したFCSを、反転部14
においてNビット(N=1,2,…,32等)反転して
送信するように、反転制御信号61で制御する。そのタ
イミングとしては、例えば、誤ったデータを送信してい
ることを発見した時点(従来では、送信データを打ち切
る状態)等適宜認定しうる。
When the program is started, in the transmitting side transmitting apparatus 1, the transmitting side data control unit 11 determines in step S301 whether or not the transmitting data 51 has caused the transmission error as described above in step S301. To monitor. In parallel with this, the FCS of the transmission data 51 is calculated by the transmission-side FCS calculation unit 12. Next, step S3
02, the selection signal 54 from the transmission-side data control unit 11
The transmission data 51 is output as output data 52 by controlling the selection unit 13 to determine whether the transmission data 51 has no problem such as a transmission error. If it is determined that there is no problem in the transmission data 51, step S301
Then, after transmitting the transmission data 51 as the output data 52, the selection unit 13 receives the selection signal 54 from the data control unit 11.
Is controlled, the FCS 53 which is the calculation result by the FCS calculation unit 12 is output as the output data 52.
On the other hand, if there is a problem such as a transmission error in the transmission data 51, in step S303, the transmission-side data control unit 11 of the transmission-side transmission device 1 determines that the transmission-side F
The FCS calculated by the CRC in the CS calculation unit 12 is converted into an inversion unit 14
Is controlled by an inversion control signal 61 so that N bits (N = 1, 2,..., 32, etc.) are inverted and transmitted. As the timing, for example, a point when it is found that erroneous data is being transmitted (conventionally, a state in which transmission data is terminated) can be appropriately determined.

【0030】ここで、ビット反転については、全ビット
反転、最後又は最初の1ビット又は4ビット反転等、適
宜実施することができる。また、FCSも32ビットに
限らず、適宜ビット数を設定することができる。
Here, the bit inversion can be appropriately performed such as all bit inversion, last or first one bit or four bit inversion, or the like. Also, the FCS is not limited to 32 bits, and the number of bits can be set as appropriate.

【0031】一方、受信側伝送装置2における処理動作
は、従来と同様である。すなわち、本発明におけるステ
ップS305〜S308が、それぞれ、従来例における
ステップS105〜S108に相当する処理を実行す
る。
On the other hand, the processing operation in the receiving side transmission device 2 is the same as the conventional one. That is, steps S305 to S308 in the present invention respectively execute processes corresponding to steps S105 to S108 in the conventional example.

【0032】このような処理により、受信されたFCS
と受信側で計算されたFCSとは一致しない状態になる
ので、従来のように受信側伝送装置2では誤って正しい
データであると認識することはありえない。
By such processing, the received FCS
Does not match the FCS calculated on the receiving side, so that the receiving-side transmission device 2 cannot erroneously recognize that the data is correct as in the related art.

【0033】本発明によれば、以上の方法により、どの
ようなデータにおいてもFCSが一致することは起こり
得ない。
According to the present invention, according to the above-described method, it is unlikely that the FCS matches in any data.

【0034】3.第2の実施の形態 図4に、本発明に係るデータ伝送装置の第2の実施の形
態による主要部の構成図を示す。データ伝送装置は、送
信側装置1及び受信側装置2を備え、これら装置は、ネ
ットワーク3に接続される。送信側伝送装置1及び受信
側伝送装置2には、それぞれ送信装置及び受信装置を接
続することができる。
3. Second Embodiment FIG. 4 shows a configuration diagram of a main part of a data transmission device according to a second embodiment of the present invention. The data transmission device includes a transmitting device 1 and a receiving device 2, which are connected to a network 3. A transmission device and a reception device can be connected to the transmission device 1 and the reception device 2, respectively.

【0035】送信側伝送装置1は、送信側データ制御部
11、送信側FCS計算部12、選択部13、反転部1
4、シフトレジスタ部15、第2FCS計算部16、バ
ッファ部17及び比較部18を備える。シフトレジスタ
部15及びバッファ部17は、例えば、FCSのビット
数と同ビット数の32ビットとすることができる。以下
の説明では、これらのビット数は、32ビットであると
想定するが、これらビット数は、必要に応じて適宜設定
することができる。
The transmitting-side transmission device 1 includes a transmitting-side data control unit 11, a transmitting-side FCS calculating unit 12, a selecting unit 13, and an inverting unit 1.
4, a shift register unit 15, a second FCS calculation unit 16, a buffer unit 17, and a comparison unit 18. The shift register unit 15 and the buffer unit 17 can have, for example, 32 bits, the same bit number as the FCS bit number. In the following description, it is assumed that these bits are 32 bits, but these bits can be appropriately set as needed.

【0036】送信装置から伝送された送信データ51
は、送信側データ制御部11、選択部13、バッファ部
17、送信側FCS計算部12、シフトレジスタ部15
に入力される。送信側データ制御部11は、選択信号5
4及び反転制御信号61を出力して、それぞれ選択部1
3及び反転部14を制御する。送信側FCS計算部12
は、送信データ51に基づいてFCS53を計算する。
例えば、IEEE802.3の場合、送信データ51に
ついてCRC計算し、その結果、32ビットのFCSを
生成する。選択部13は、選択信号54に従い、送信デ
ータ51又は反転部出力(FCSの反転又は非反転)の
いずれかを選択し、出力データ52としてネットワーク
3に伝送する。反転部14は、送信側FCS計算部12
から出力されたFCS53を入力し、反転制御信号61
に従い、FCS53をそのまま又は反転して出力する。
Transmission data 51 transmitted from the transmission device
Are a transmission-side data control unit 11, a selection unit 13, a buffer unit 17, a transmission-side FCS calculation unit 12, and a shift register unit 15.
Is input to The transmission-side data control unit 11 selects the selection signal 5
4 and the inversion control signal 61 to output
3 and the reversing unit 14 are controlled. Transmission side FCS calculation unit 12
Calculates the FCS 53 based on the transmission data 51.
For example, in the case of IEEE802.3, CRC calculation is performed on the transmission data 51, and as a result, a 32-bit FCS is generated. The selection unit 13 selects either the transmission data 51 or the output of the inversion unit (inversion or non-inversion of FCS) according to the selection signal 54 and transmits the output data 52 to the network 3 as output data 52. The inverting unit 14 is configured to transmit the FCS calculating unit 12 on the transmission side.
The FCS 53 output from is input and the inversion control signal 61
And outputs the FCS 53 as it is or after inverting it.

【0037】さらに、この実施の形態では、バッファ部
17が送信データを一時記憶する。一方、シフトレジス
タ部15を介して、遅延された送信データ51が第2F
CS計算部16に入力され、第2FCS計算部16によ
り第2FCS63が計算される。比較部18では、バッ
ファ部17に記憶されたFCSと、第2FCS計算部1
6で計算された第2FCS63とを比較して、データ制
御部11に一致又は不一致信号を伝送する。
Further, in this embodiment, the buffer unit 17 temporarily stores transmission data. On the other hand, the delayed transmission data 51 is transferred to the second F
The second FCS 63 is calculated by the second FCS calculator 16 and input to the CS calculator 16. The comparing unit 18 compares the FCS stored in the buffer unit 17 with the second FCS calculating unit 1
By comparing the second FCS 63 calculated in step 6 with the second FCS 63, a match or mismatch signal is transmitted to the data control unit 11.

【0038】一方、受信側伝送装置2は、従来又は第1
の実施の形態のと同様、受信側データ制御部21及び受
信側FCS計算部22を備える。ネットワーク3を介し
て伝送された入力データ55は、FCS制御部22に入
力されるとともに、受信データ58として受信される。
受信側FCS計算部22は、受信データ58からFCS
を抽出し、FCSに基づき確認データ56を受信側デー
タ制御部21に出力する。受信側データ制御部21は、
確認データ56に従い、受信データの正誤信号57を出
力する。
On the other hand, the reception-side transmission device 2 is a conventional or first transmission device.
As in the first embodiment, a reception-side data control unit 21 and a reception-side FCS calculation unit 22 are provided. The input data 55 transmitted via the network 3 is input to the FCS control unit 22 and received as received data 58.
The receiving-side FCS calculator 22 calculates the FCS
And outputs confirmation data 56 to the reception-side data control unit 21 based on the FCS. The receiving-side data control unit 21
In accordance with the confirmation data 56, a correct / incorrect signal 57 of the received data is output.

【0039】つぎに、図5に、本発明の第2の実施の形
態の送受信動作を説明するためのフローチャートを示
す。プログラムが開始されると、送信側伝送装置1にお
いて、ステップS401により、送信側データ制御部1
1は、選択部13を制御して送信データ51を出力デー
タ52として出力するとともに、送信側FCS計算部1
2は、送信データ51に基づいてFCS計算を行う。こ
れと並行して、バッファ部17によって、送信データ中
の、例えば、最終32ビットを蓄積する。さらに同時
に、シフトレジスタ部15に送信データをシリアルに入
力し、実際に送信されるデータより例えば、32ビット
遅れているデータを出力する。第2FCS計算部16で
は、シフトレジスタ部15から出力される32ビット遅
れたデータの第2FCS63を計算する。
Next, FIG. 5 is a flowchart for explaining the transmission / reception operation according to the second embodiment of the present invention. When the program is started, the transmission-side data control unit 1 of the transmission-side transmission device 1 is set in step S401.
1 controls the selection unit 13 to output the transmission data 51 as output data 52, and also controls the transmission-side FCS calculation unit 1
2 performs FCS calculation based on the transmission data 51. In parallel with this, the buffer unit 17 stores, for example, the last 32 bits in the transmission data. At the same time, the transmission data is serially input to the shift register unit 15, and data that is delayed by, for example, 32 bits from the actually transmitted data is output. The second FCS calculator 16 calculates a second FCS 63 of the data delayed from the shift register 15 by 32 bits.

【0040】つぎに、ステップS402で、送信データ
51に送信ミス等の問題がないかどうかを判断する。こ
こで、問題がなければ、ステップS403により、送信
側データ制御部11が選択信号54により選択部13を
制御した送信側FCS計算部12で計算されたFCSを
送信データ51の後につけて出力データ52として送信
し、送信を完了する。
Next, in step S402, it is determined whether or not the transmission data 51 has a problem such as a transmission error. Here, if there is no problem, in step S403, the transmission-side data control unit 11 appends the FCS calculated by the transmission-side FCS calculation unit 12 that has controlled the selection unit 13 by the selection signal 54 to the end of the transmission data 51 and outputs the output data. The transmission is performed as 52, and the transmission is completed.

【0041】一方、送信データ51に問題があった場
合、ステップS404により、第2FCS計算部16に
より計算された第2FCS63と、送信データ51の最
終32ビット(バッファ14の出力)とを、比較部18
で比較する。ステップS404で両方のFCSが一致し
なければ、ステップS405により、FCSが誤った送
信データとして送信されたことになるので、受信側で判
定可能であるから、問題なしと判断して、その場で送信
を打ち切る。一方、ステップS404で両方のFCSが
一致した場合は、ステップS406により、送信側デー
タ制御部11は、反転制御信号61により、反転部14
を制御して、第1の実施の形態と同様に、計算されたF
CSを反転させて反転部出力62を出力する。
On the other hand, if there is a problem with the transmission data 51, the second FCS 63 calculated by the second FCS calculation unit 16 and the last 32 bits of the transmission data 51 (output of the buffer 14) are compared in step S404. 18
To compare. If the two FCSs do not match in step S404, it means that the FCS has been transmitted as erroneous transmission data in step S405, so that it is possible to determine on the receiving side. Stop sending. On the other hand, if both FCSs match in step S404, the transmission-side data control unit 11 sends the inversion unit 14 based on the inversion control signal 61 in step S406.
Is controlled to calculate the calculated F in the same manner as in the first embodiment.
It inverts CS and outputs an inverting section output 62.

【0042】なお、比較部18の出力を直接に反転部1
4に印加して、反転部14の反転制御を行うようにして
も良い。
Note that the output of the comparing section 18 is directly applied to the inverting section 1
4 to control the inversion of the inversion unit 14.

【0043】図6に、反転部を直接制御する場合の構成
図を示す。図に示されたように、比較部18の比較結果
が反転部14を直接制御する。すなわち、第2の実施の
形態において、ステップS406にて、比較部18は、
反転制御信号64により、反転部14を制御して計算さ
れたFCSを反転させて反転部出力62を出力する。こ
の直接反転制御信号64により、送信側データ制御部1
1の負荷を軽減することができる。
FIG. 6 is a block diagram showing a case where the inverting section is directly controlled. As shown in the figure, the comparison result of the comparison unit 18 directly controls the inversion unit 14. That is, in the second embodiment, in step S406, the comparison unit 18
The inversion control signal 64 controls the inversion unit 14 to invert the calculated FCS, and outputs an inversion unit output 62. The direct inversion control signal 64 allows the transmission-side data control unit 1
1 can be reduced.

【0044】第1の実施の形態においては、送信ミス等
があった場合に、反転したFCSを必要のないときも出
力するため、第2の実施の形態においては、転送効率の
点で第1の実施の形態より良くなる。第2の実施の形態
では、バッファ14,第2FCS計算部16,比較部1
8及びシフトレジスタ部15の構成が必要となるもの
の、実際には、バッファ14及び第2FCS計算部16
は同一のものとして構成することができると考えられる
ので、それほど複雑とはならない。第2の実施の形態に
よれば、以上のように、どのようなデータにおいても受
信側でFCSが一致することは起こり得ない。
In the first embodiment, when a transmission error or the like occurs, the inverted FCS is output even when it is not necessary. Therefore, in the second embodiment, the first FCS is output in terms of transfer efficiency. It becomes better than the embodiment. In the second embodiment, the buffer 14, the second FCS calculation unit 16, the comparison unit 1
8 and the shift register unit 15 are required, but in practice, the buffer 14 and the second FCS calculation unit 16
Are not so complicated, since they could be constructed as identical. According to the second embodiment, as described above, it is unlikely that the FCS matches on the receiving side for any data.

【0045】4.第3の実施の形態 図7に、本発明に係るデータ伝送装置の第3の実施の形
態による主要部の構成図を示す。データ伝送装置は、送
信側装置1及び受信側装置2を備え、これら装置は、ネ
ットワーク3に接続される。送信側伝送装置1及び受信
側伝送装置2には、それぞれ送信装置及び受信装置を接
続することができる。受信側伝送装置2及びネットワー
ク3は、上述の実施の形態と同様である。
4. Third Embodiment FIG. 7 shows a configuration diagram of a main part of a data transmission device according to a third embodiment of the present invention. The data transmission device includes a transmitting device 1 and a receiving device 2, which are connected to a network 3. A transmission device and a reception device can be connected to the transmission device 1 and the reception device 2, respectively. The receiving-side transmission device 2 and the network 3 are the same as in the above-described embodiment.

【0046】送信側伝送装置1は、送信側データ制御部
11、送信側FCS計算部12、選択部31及び発生部
32を備える。送信装置から伝送された送信データ51
は、送信側データ制御部11、送信側FCS計算部12
及び選択部31に入力される。発生部32は、ストップ
フレーム65を発生するものである。ストップフレーム
65としては、例えば、’0111110’、全ビッ
ト’1’又は全ビット’0’等のように、誤りがあるこ
とを示すデータを有するものである。なお、ISDNで
は、’1’が7つ以上連続するとデータの誤りを意味す
るので、これを用いることができる。送信側データ制御
部11は、選択信号54を出力して選択部31を制御す
る。送信側FCS計算部12は、送信データ51に基づ
いてFCS53を計算する。例えば、IEEE802.
3の場合、送信データ51をCRC計算し、その結果、
32ビットのFCSを生成する。選択部13は、送信デ
ータ51、FCS53又はストップデータ65のいずれ
かを選択し、出力データ52としてネットワーク3に伝
送する。
The transmitting-side transmission device 1 includes a transmitting-side data control unit 11, a transmitting-side FCS calculating unit 12, a selecting unit 31, and a generating unit 32. Transmission data 51 transmitted from the transmission device
Are the transmission-side data control unit 11 and the transmission-side FCS calculation unit 12
And to the selection unit 31. The generating unit 32 generates a stop frame 65. The stop frame 65 has data indicating an error, such as “0111110”, all bits “1”, or all bits “0”. In ISDN, if seven or more consecutive “1” s mean a data error, this can be used. The transmission-side data control unit 11 outputs the selection signal 54 to control the selection unit 31. The transmission-side FCS calculation unit 12 calculates the FCS 53 based on the transmission data 51. For example, IEEE802.
In the case of 3, the CRC of the transmission data 51 is calculated, and as a result,
Generate 32-bit FCS. The selection unit 13 selects one of the transmission data 51, the FCS 53, and the stop data 65, and transmits the selected data as output data 52 to the network 3.

【0047】動作は、第1の実施の形態のうちステップ
S201を、以下のように置き換えることにより実現さ
れ、その他はこれと同様のフローチャートとなる。
The operation is realized by replacing step S201 in the first embodiment as follows, and the other steps are the same as those in the first embodiment.

【0048】すなわち、送信側FCS計算部12は、送
信データ51を出力データ52として出力しながら、F
CS計算を行う。また、送信側データ制御部11は、送
信データ51に送信ミス等の問題が生じたと判断する
と、選択信号54により選択部31を制御し、FCSの
適宜フレーム又は最終データとして、ストップフレーム
61を選択して、出力データ52として出力する。
That is, the transmission-side FCS calculation unit 12 outputs the transmission data 51 as the output data 52 while
Perform CS calculation. When determining that a problem such as a transmission error has occurred in the transmission data 51, the transmission-side data control unit 11 controls the selection unit 31 with the selection signal 54 and selects the stop frame 61 as an appropriate frame or final data of the FCS. Then, it is output as output data 52.

【0049】第3の実施の形態によれば、受信側伝送装
置2では、ストップフレーム65を検出した場合に、F
CSを計算したりチェックすることなく、受信データの
誤りを検出することができる。
According to the third embodiment, when the receiving-side transmission device 2 detects the stop frame 65, it
An error in received data can be detected without calculating or checking CS.

【0050】第3の実施の形態のように、FCSを反転
する反転部14の代わりに、発生部32によるストップ
フレームを設けるようにする技術思想は、第1及び第2
の実施の形態に適宜組合わせて適用することもできる。
例えば、ホストの指示又はマニュアルにより、反転FC
S又はストップフレームのいずれかを出力するように構
成することができる。
As in the third embodiment, the technical concept of providing a stop frame by the generation unit 32 instead of the inversion unit 14 for inverting the FCS is as follows.
It can also be applied in combination with the above-described embodiments as appropriate.
For example, according to the instruction of the host or a manual, the inverted FC
It can be configured to output either S or stop frame.

【0051】また、ストップフレームのかわりに、適宜
偽のFCSを用いることもできる。
In place of the stop frame, a fake FCS can be used as appropriate.

【0052】5.第4の実施の形態 図8に、データ制御部の切替動作のための構成図を示
す。これは、前述の実施の形態において、送信側伝送装
置1の送信側データ制御部11に切替設定部81及び判
定部82を付加して設けたものである。
5. Fourth Embodiment FIG. 8 shows a configuration diagram for a switching operation of a data control unit. In this embodiment, a switch setting unit 81 and a determination unit 82 are added to the transmission-side data control unit 11 of the transmission-side transmission device 1 in the above-described embodiment.

【0053】切替設定部81は、送信側データ制御部1
1の処理を、上述の実施の形態のように送信データに誤
りがある場合の処理(反転FCS又はストップフレーム
の送出)を行うか、又は、従来技術のようにそのままF
CSを送出するか又は送出をうちきるかの切替を実行す
るための設定部である。この切替設定部81は、判定部
82の制御により切り替わる。判定部82では、上位C
PUの処理速度と、FCSの伝送速度とを比較して、有
利な方に切り替えるように適宜制御信号を出力する。
The switch setting unit 81 is a transmission data control unit 1
In the processing of No. 1, the processing (transmission of the inverted FCS or the stop frame) when the transmission data has an error is performed as in the above-described embodiment, or the F
This is a setting unit for executing switching between sending CS and sending CS. The switching setting unit 81 is switched by the control of the determining unit 82. In the determination unit 82,
The processing speed of the PU is compared with the transmission speed of the FCS, and a control signal is appropriately output so as to switch to a more advantageous one.

【0054】例えば、第1及び第2の実施の形態におい
て、上位層等のCPUの処理時間のほうが、誤ったFC
Sがネットワークを伝わってくる時間よりも速い場合、
または、実施の形態3において、ストップフレームのチ
ェック時間のほうがFCSがネットワークを伝わってく
る時間より速い場合等、従来技術の方が有利な場合に、
従来技術の処理に切り替えることができる。一方、速さ
の関係が逆であれば、第1〜第3の実施の形態のような
処理に切り替えることができる。
For example, in the first and second embodiments, the processing time of the CPU in the upper layer etc. is
If S is faster than traveling over the network,
Or, in the third embodiment, when the conventional technology is more advantageous, such as when the stop frame check time is faster than the time when the FCS is transmitted through the network,
It is possible to switch to the processing of the prior art. On the other hand, if the speed relationship is reversed, it is possible to switch to the processing as in the first to third embodiments.

【0055】また、切替設定部81は、ホストコンピュ
ータで監視して自動的に制御すること、別個に処理速度
等の検出器を設けてその検出出力により制御すること、
また、ディップスイッチ等の切替スイッチを設けてマニ
ュアルで設定するように構成すること等、適宜の手段で
実現することができる。
The switch setting unit 81 can be automatically monitored and monitored by the host computer, and a separate detector such as a processing speed can be provided and controlled by its detection output.
Further, it can be realized by an appropriate means such as a configuration in which a changeover switch such as a dip switch is provided and manually set.

【0056】第4の実施の形態によれば、状況に応じて
もっとも速いパターンを選ぶことができる。
According to the fourth embodiment, the fastest pattern can be selected according to the situation.

【0057】6.システムへの応用 図9に、システム構成図の一例を示す。図には、LAN
(A)〜(C)及びISDNが接続されたシステム構成
が示される。LAN(A)とLAN(C)間には、ブリ
ッジBRが設けられ、LALAN(C)とLAN(B)
間には、ゲートウェイGWが設けられ、LAN(C)と
ISDN間には、ルータRTRが設けられる。
6. Application to System FIG. 9 shows an example of a system configuration diagram. In the figure, LAN
(A) to (C) and the system configuration to which the ISDN is connected are shown. A bridge BR is provided between the LAN (A) and the LAN (C), and the LALAN (C) and the LAN (B)
A gateway GW is provided between them, and a router RTR is provided between the LAN (C) and ISDN.

【0058】本発明は、これらブリッジBR、ゲートウ
ェイ及びルータRTR等に、適用することができる。
The present invention can be applied to the bridge BR, gateway, router RTR, and the like.

【0059】さらに、以下のように構成することもでき
る。まず、送信側に送信データを蓄積しうる十分なバッ
ファをつくっておき、送信データをすべてこのバッファ
に一度確保する。これにより、送信データ又は転送デー
タに問題が生じるならば、データの送信前に廃棄するこ
とができる。この場合、少なくともIEEE802.3
の場合、規定の最大データ量(1518Byte)のメ
モリが必要である。このようにして、ルータ等に全デー
タを保管することができる。
Further, the following configuration is also possible. First, a sufficient buffer capable of storing transmission data is created on the transmission side, and all transmission data is secured once in this buffer. Thus, if a problem occurs in transmission data or transfer data, the data can be discarded before transmission. In this case, at least IEEE802.3
In the case of, a memory having a prescribed maximum data amount (1518 bytes) is required. In this way, all data can be stored in a router or the like.

【0060】なお、送信側伝送装置1及び受信側伝送装
置2の各装置(例えば、データ制御部、FCS計算部
等)は、適宜共用することができる。
Note that the respective devices of the transmission side transmission device 1 and the reception side transmission device 2 (for example, a data control unit, an FCS calculation unit, etc.) can be shared as appropriate.

【0061】[0061]

【発明の効果】本発明によれば、データの受信側では、
送信側で問題のある誤ったデータは、上位層のCPUで
処理されることなく下位の階層で確実に破棄することが
できる。これまでのように、上位層のCPUが、データ
に問題があるか否か判断していたときは、その分負担が
かかり、処理が多くなることが考えられたが、これによ
って、無駄な処理を減らし、CPUの処理能力を向上さ
せることができる。
According to the present invention, on the data receiving side,
Erroneous data having a problem on the transmission side can be reliably discarded in a lower layer without being processed by a CPU in an upper layer. As in the past, when the upper-layer CPU had determined whether or not there was a problem with the data, it was thought that the burden would be increased and the processing would be increased, but this would result in unnecessary processing. And the processing capability of the CPU can be improved.

【0062】また、本発明によれば、FCSのあとにデ
ータの誤りをチェックするストップビットがついていた
場合、そのフレームの処理を行うことなしに送信ミス等
の誤りをみつけることができる。
Further, according to the present invention, when a stop bit for checking a data error is provided after an FCS, an error such as a transmission error can be found without processing the frame.

【0063】また、本発明(実施の形態4)によれば、
受信側のCPUの速度が速い場合、従来の方法に切り替
えることができるため、状況に応じて処理速度がもっと
も速い方法を選択することができる。
According to the present invention (Embodiment 4),
When the speed of the CPU on the receiving side is high, the method can be switched to the conventional method, so that the method with the highest processing speed can be selected according to the situation.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の送受信動作の概要を説明するフローチ
ャート。
FIG. 1 is a flowchart illustrating an outline of a transmission / reception operation of the present invention.

【図2】本発明に係るデータ伝送装置の第1の実施の形
態による主要部の構成図。
FIG. 2 is a configuration diagram of a main part of the data transmission device according to the first embodiment of the present invention.

【図3】本発明の第1の実施の形態の送受信動作を説明
するためのフローチャート。
FIG. 3 is a flowchart for explaining a transmission / reception operation according to the first embodiment of the present invention.

【図4】本発明に係るデータ伝送装置の第2の実施の形
態による主要部の構成図。
FIG. 4 is a configuration diagram of a main part of a data transmission device according to a second embodiment of the present invention.

【図5】本発明の第2の実施の形態の送受信動作を説明
するためのフローチャート。
FIG. 5 is a flowchart illustrating a transmission / reception operation according to the second embodiment of the present invention.

【図6】反転部を直接制御する場合の構成図。FIG. 6 is a configuration diagram in a case where an inverting unit is directly controlled.

【図7】本発明に係るデータ伝送装置の第3の実施の形
態による主要部の構成図。
FIG. 7 is a configuration diagram of a main part of a data transmission device according to a third embodiment of the present invention.

【図8】データ制御部の切替動作のための構成図。FIG. 8 is a configuration diagram for a switching operation of a data control unit.

【図9】システム構成図。FIG. 9 is a system configuration diagram.

【図10】従来のデータ伝送装置の主要部の構成図。FIG. 10 is a configuration diagram of a main part of a conventional data transmission device.

【図11】従来の送受信動作を説明するためのフローチ
ャート。
FIG. 11 is a flowchart for explaining a conventional transmission / reception operation.

【符号の説明】[Explanation of symbols]

1 送信側伝送装置 2 受信側伝送装置 11 送信側データ制御部 12 送信側FCS計算部 13 選択部 14 反転部 15 シフトレジスタ 16 第2FCS計算部 17 バッファ 18 比較部 REFERENCE SIGNS LIST 1 transmission-side transmission device 2 reception-side transmission device 11 transmission-side data control unit 12 transmission-side FCS calculation unit 13 selection unit 14 inversion unit 15 shift register 16 second FCS calculation unit 17 buffer 18 comparison unit

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】送信データに基づいてエラー検出符号を求
める計算部と、 入力された反転制御信号に従い、前記計算部により求め
られた前記エラー検出符号を、そのまま又は反転させて
出力する反転部と、 入力された選択信号に従い、前記送信データ又は前記反
転部の出力のいずれかを選択して出力する選択部と、 前記送信データに誤りがあるか否かを監視して、誤りが
あると判断した場合、前記反転制御信号により前記反転
部を制御して前記エラー検出符号を反転し、前記選択信
号により前記選択部を制御して反転した前記エラー検出
符号を出力するためのデータ制御部とを備えたデータ伝
送装置。
A calculating section for obtaining an error detection code based on transmission data; and an inverting section for outputting the error detection code obtained by the calculating section as it is or by inverting the error detection code in accordance with an input inversion control signal. A selection unit that selects and outputs either the transmission data or the output of the inversion unit according to the input selection signal; and monitors whether there is an error in the transmission data and determines that there is an error. A data control unit for controlling the inversion unit by the inversion control signal to invert the error detection code and controlling the selection unit by the selection signal to output the inverted error detection code. Data transmission equipment equipped.
【請求項2】送信データに基づいてNビットのエラー検
出符号を求める計算部と、 入力された反転制御信号に従い、前記計算部により求め
られた前記エラー検出符号を、そのまま又は反転させて
出力する反転部と、 入力された選択信号に従い、前記送信データ又は前記反
転部の出力のいずれかを選択して出力する選択部と、 前記送信データの最終Nビットを蓄積するバッファ部
と、 前記送信データのNビット遅延したデータを出力するシ
フトレジスタ部と、 前記シフトレジスタ部からの出力により第2のエラー検
出符号を求める第2の計算部と、 前記バッファ部に蓄積された前記最終Nビットと前記第
2の計算部により求められた前記第2のエラー検出符号
とを比較する比較部と、 前記送信データに誤りがあるか否かを監視して、誤りが
あると判断した場合、前記比較部で前記最終Nビットと
前記第2のエラー検出符号とが一致すれば、前記反転制
御信号により前記反転部を制御して前記エラー検出符号
を反転し、前記選択信号により前記選択部を制御して反
転した前記エラー検出符号を出力するためのデータ制御
部とを備えたデータ伝送装置。
2. A calculation unit for obtaining an N-bit error detection code based on transmission data, and outputting the error detection code obtained by the calculation unit as it is or after inverting it according to an input inversion control signal. An inverting unit, a selecting unit that selects and outputs either the transmission data or the output of the inverting unit in accordance with the input selection signal, a buffer unit that accumulates the last N bits of the transmission data, A shift register unit that outputs data delayed by N bits, a second calculation unit that obtains a second error detection code based on an output from the shift register unit, and the last N bits accumulated in the buffer unit. A comparator for comparing the second error detection code obtained by the second calculator with the second error detection code; and monitoring whether or not the transmission data has an error. If it is determined that there is, when the last N bits match the second error detection code in the comparison unit, the inversion unit controls the inversion unit by the inversion control signal to invert the error detection code, and A data control unit for controlling the selection unit by a signal to output the inverted error detection code.
【請求項3】送信データに基づいてNビットのエラー検
出符号を求める計算部と、 入力された反転制御信号に従い、前記計算部により求め
られた前記エラー検出符号を、そのまま又は反転させて
出力する反転部と、 入力された選択信号に従い、前記送信データ又は前記反
転部の出力のいずれかを選択して出力する選択部と、 前記送信データの最終Nビットを蓄積するバッファ部
と、 前記送信データのNビット遅延したデータを出力するシ
フトレジスタ部と、 前記シフトレジスタ部からの出力により第2のエラー検
出符号を求める第2の計算部と、 前記バッファ部に蓄積された前記最終Nビットと前記第
2の計算部により求められた前記第2のエラー検出符号
とを比較して、これらが一致すれば、前記反転制御信号
により前記反転部を制御して前記エラー検出符号を反転
するための比較部と、 前記送信データに誤りがあるか否かを監視して、誤りが
あると判断した場合、前記選択信号により前記選択部を
制御して反転した前記エラー検出符号を出力するための
データ制御部とを備えたデータ伝送装置。
3. A calculation section for obtaining an N-bit error detection code based on transmission data, and outputting the error detection code obtained by the calculation section as it is or after inverting it according to an input inversion control signal. An inverting unit, a selecting unit that selects and outputs either the transmission data or the output of the inverting unit in accordance with the input selection signal, a buffer unit that accumulates the last N bits of the transmission data, A shift register unit that outputs data delayed by N bits, a second calculation unit that obtains a second error detection code based on an output from the shift register unit, and the last N bits accumulated in the buffer unit. The second error detection code obtained by the second calculation unit is compared with the second error detection code, and if they match, the inversion unit is controlled by the inversion control signal. A comparison unit for inverting the error detection code, and monitors whether there is an error in the transmission data, and when it is determined that there is an error, the selection unit controls the selection unit with the selection signal to invert. A data transmission device comprising: a data control unit for outputting the error detection code.
【請求項4】前記データ制御部は、 前記送信データに誤りがあるか否かを監視して、誤りが
あると判断した場合、前記比較部で前記最終Nビットと
前記第2のエラー検出符号とが一致しなければ、前記選
択信号により前記選択部を制御して前記送信データの出
力を打ち切ることを特徴とする請求項2又は3に記載の
データ伝送装置。
4. The data control unit monitors whether there is an error in the transmission data, and when it determines that there is an error, the comparing unit checks the last N bits and the second error detection code. 4. The data transmission device according to claim 2, wherein, when does not match, the selection signal is used to control the selection unit to stop outputting the transmission data. 5.
【請求項5】前記選択部により選択され、ストップフレ
ーム又は偽のエラー検出符号を発生する発生部をさらに
備え、 前記データ制御部は、 前記送信データに誤りがあるか否かを監視して、誤りが
あると判断した場合、前記選択信号により前記選択部を
制御することにより、前記発生部からの前記ストップフ
レーム又は偽のエラー検出符号を選択して出力すること
を特徴とする請求項1乃至4のいずれかに記載のデータ
伝送装置。
5. A data processing apparatus further comprising: a generation unit that is selected by the selection unit and generates a stop frame or a false error detection code, wherein the data control unit monitors whether there is an error in the transmission data, 4. The method according to claim 1, wherein when it is determined that there is an error, the selection unit controls the selection unit to select and output the stop frame or the false error detection code from the generation unit. 5. 5. The data transmission device according to any one of 4.
【請求項6】送信データに基づいてエラー検出符号を求
める計算部と、 ストップフレーム又は偽のエラー検出符号を発生する発
生部と、 入力された反転制御信号に従い、前記計算部により求め
られた前記エラー検出符号を、そのまま又は反転させて
出力する反転部と、 入力された選択信号に従い、前記送信データ又は前記反
転部の出力のいずれかを選択して出力する選択部と、 前記送信データに誤りがあるか否かを監視して、誤りが
あると判断した場合、前記選択信号により前記選択部を
制御して前記発生部からの前記ストップフレーム又は偽
のエラー検出符号を出力するためのデータ制御部とを備
えたデータ伝送装置。
6. A calculation unit for obtaining an error detection code based on transmission data, a generation unit for generating a stop frame or a false error detection code, and the calculation unit obtained by the calculation unit according to an input inversion control signal. An inverting unit that outputs the error detection code as it is or inverted, a selecting unit that selects and outputs either the transmission data or the output of the inversion unit according to the input selection signal, and an error in the transmission data. Monitoring whether or not there is, if it is determined that there is an error, the data control for outputting the stop frame or the false error detection code from the generation unit by controlling the selection unit by the selection signal Data transmission device comprising:
【請求項7】前記データ制御部は、 前記送信データに誤りがあるか否かを監視して、誤りが
ないと判断した場合、前記反転制御信号により前記反転
部を制御して前記エラー検出符号をそのまま出力し、前
記選択信号により前記選択部を制御して前記エラー検出
符号を出力することを特徴とする請求項1乃至5のいず
れかに記載のデータ伝送装置。
7. The data control unit monitors whether there is an error in the transmission data, and when it is determined that there is no error, controls the inversion unit by the inversion control signal to control the error detection code. 6. The data transmission device according to claim 1, wherein the data transmission device outputs the error detection code by controlling the selection unit according to the selection signal.
【請求項8】前記データ制御部は、 前記選択信号により前記選択部を制御することにより、
前記送信データを前記回線に出力した後に、前記エラー
検出符号又は反転した前記エラー検出符号を前記回線に
出力することを特徴とする請求項1乃至7のいずれかに
記載のデータ伝送装置。
8. The data control unit controls the selection unit according to the selection signal,
The data transmission apparatus according to claim 1, wherein after outputting the transmission data to the line, the error detection code or the inverted error detection code is output to the line.
【請求項9】前記データ制御部は、 前記選択信号により前記選択部を制御することにより、
前記送信データのフレームフォーマット中におけるのデ
ータの誤りをチェックするためのフレームに、前記エラ
ー検出符号又は反転した前記エラー検出符号を出力する
ことを特徴とする請求項1乃至8のいずれかに記載のデ
ータ伝送装置。
9. The data control unit controls the selection unit according to the selection signal,
9. The error detecting code according to claim 1, wherein the error detecting code or the inverted error detecting code is output to a frame for checking a data error in a frame format of the transmission data. Data transmission device.
【請求項10】前記反転部による前記エラー検査符号の
反転処理を実行するか否かを設定する切替設定部をさら
に備え、 前記切替設定部により前記反転処理を実行しないと設定
されている場合には、前記送信データの誤りがあるかど
うかにかかわらず、前記反転部は前記エラー検出符号を
そのまま出力することを特徴とする請求項1乃至9のい
ずれかに記載のデータ伝送装置。
10. A switching setting section for setting whether or not to execute the error check code inversion processing by the inversion section, wherein the switching setting section sets not to execute the inversion processing. 10. The data transmission device according to claim 1, wherein the inverting unit outputs the error detection code as it is, regardless of whether there is an error in the transmission data.
【請求項11】前記送信データの誤りを判断するための
プロセッサの処理時間と、前記エラー検査符号の伝送時
間又は前記ストップフレームのチェック時間とを比較し
て、比較結果により、前記切替設定部を設定するための
判定部をさらに備えた請求項10に記載のデータ伝送装
置。
11. A processing time of a processor for judging an error in the transmission data is compared with a transmission time of the error check code or a check time of the stop frame. The data transmission device according to claim 10, further comprising a determination unit for setting.
【請求項12】前記回線から入力された入力データに基
づきエラー検査符号を計算して確認データを出力する受
信側計算部と、 前記受信側計算部が計算した前記確認データと、前記入
力データ中のエラー検査符号とを比較して正誤信号を出
力する受信側データ制御部とをさらに備えた請求項1乃
至11のいずれかに記載のデータ伝送装置。
12. A receiving-side calculator for calculating an error check code based on input data input from the line and outputting confirmation data; the confirmation data calculated by the receiving-side calculator; The data transmission apparatus according to any one of claims 1 to 11, further comprising: a reception-side data control unit that outputs a correct / error signal by comparing with the error check code.
JP9170214A 1997-06-26 1997-06-26 Data transmitter Pending JPH1117661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9170214A JPH1117661A (en) 1997-06-26 1997-06-26 Data transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9170214A JPH1117661A (en) 1997-06-26 1997-06-26 Data transmitter

Publications (1)

Publication Number Publication Date
JPH1117661A true JPH1117661A (en) 1999-01-22

Family

ID=15900796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9170214A Pending JPH1117661A (en) 1997-06-26 1997-06-26 Data transmitter

Country Status (1)

Country Link
JP (1) JPH1117661A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012118885A1 (en) * 2011-03-01 2012-09-07 Adtran, Inc Bonding engine configured to prevent data packet feedback during a loopback condition
JP2017063296A (en) * 2015-09-24 2017-03-30 ローム株式会社 Transmission circuit of image data and electronic apparatus using the same, transmission method of image data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012118885A1 (en) * 2011-03-01 2012-09-07 Adtran, Inc Bonding engine configured to prevent data packet feedback during a loopback condition
US9094174B2 (en) 2011-03-01 2015-07-28 Adtran, Inc. Bonding engine configured to prevent data packet feedback during a loopback condition
JP2017063296A (en) * 2015-09-24 2017-03-30 ローム株式会社 Transmission circuit of image data and electronic apparatus using the same, transmission method of image data

Similar Documents

Publication Publication Date Title
US6691273B2 (en) Error correction using packet combining during soft handover
US20090103441A1 (en) Communication apparatus and switching device
US8281189B2 (en) SATA primitive prediction and correction
US6601210B1 (en) Data integrity verification in a switching network
EP0028619B1 (en) An arrangement for supervising faults when transmitting data between computers
WO2011050631A1 (en) Alarm report method, system and device for cascaded device
US7020809B2 (en) System and method for utilizing spare bandwidth to provide data integrity over a bus
CN108337069B (en) Improved error rate reducing end parallel grouping CRC (Cyclic redundancy check) system
EP0580938B1 (en) Duplex communication control device
CA2551433A1 (en) Sending device, receiving device, communication control device, communication system, and communication control method
CN111726288B (en) Real-time data transmission and recovery method and system for power secondary equipment
JPH1117661A (en) Data transmitter
JP3217716B2 (en) Wireless packet communication device
US20080045151A1 (en) Communication system
JPH09219720A (en) Fault detection method and device for communication network
JPH08125679A (en) Method for discrimination of reception state of ring network and its transmitter
JP2003046487A (en) Controller and method for transmitting inverted two- consecutive transmission data
JP4204885B2 (en) Data communication system
JPS6362427A (en) Detection system for error of data communication
US11871166B2 (en) Sensor system
CN105207891B (en) A kind of highly reliable bus message transmission method based on service life screening
CN117762704A (en) Device and method for detecting abnormality of serial port signal
CN116471140A (en) Inspection device and inspection method
JP3164996B2 (en) Serial data receiving device
JP2006270211A (en) Serial signal transmission system