JPH0918507A - Repeating device - Google Patents

Repeating device

Info

Publication number
JPH0918507A
JPH0918507A JP7184821A JP18482195A JPH0918507A JP H0918507 A JPH0918507 A JP H0918507A JP 7184821 A JP7184821 A JP 7184821A JP 18482195 A JP18482195 A JP 18482195A JP H0918507 A JPH0918507 A JP H0918507A
Authority
JP
Japan
Prior art keywords
error
port
mode
circuit
frame
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
JP7184821A
Other languages
Japanese (ja)
Inventor
Hitoshi Komatsu
仁志 小松
Motonori Sato
元則 佐藤
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.)
Hitachi Information Technology Co Ltd
Original Assignee
Hitachi Information Technology Co 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 Hitachi Information Technology Co Ltd filed Critical Hitachi Information Technology Co Ltd
Priority to JP7184821A priority Critical patent/JPH0918507A/en
Publication of JPH0918507A publication Critical patent/JPH0918507A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Small-Scale Networks (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

PURPOSE: To reduce transmission delay and suppress an error frame by providing two operation modes which correspond to an on-the-fly device and a store-and- forward device and automatically switching them according to the error state of a frame. CONSTITUTION: A mode switching control circuit 12 control in which mode a repeating circuit 13 corresponding to each port is by setting a flag in a state register 122. In an initial state, an on-the-fly mode is set in the repeating circuits 13 of all ports. Further, the mode switching control circuit 12 has a port counter 123 and counts the numbers of error frames and normal frames, port by port. If an error occurs successively >=3 times in the on-the-fly mode, the repeating circuit 13 is set in stored-and-forward mode. When a no-error state succeeds >=3 times in the store-and-forward mode, the repeating circuit 13 is put back to the original on-the-fly mode.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、中継装置に関し、詳
しくは、LAN接続される端末装置(以下端末)が同じ
伝送路を共用して利用するLAN伝送路の中継装置にお
いて、端末あるいは伝送路からの1フレーム(1単位電
文情報)を接続されている各端末に分配し、あるいはこ
の1フレームの電文を伝送路に送出するものであって、
エラーフレームの発生状態に応じて最適な伝送形態を選
択できるような中継装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a relay device, and more specifically, to a terminal or a transmission line in a LAN transmission line relay device in which terminal devices (hereinafter, terminals) connected to a LAN share the same transmission line. 1 frame (1 unit telegram information) from the terminal is distributed to each connected terminal, or the 1 frame telegram is transmitted to the transmission line.
The present invention relates to a relay device capable of selecting an optimum transmission form according to the occurrence state of an error frame.

【0002】[0002]

【従来の技術】同じ中継装置に接続される全てのLAN
端末が、同じ伝送路を共用するCSMA/CD(キャリ
ア・センス・マルチプル・アクセス・ウイズ・コリジョ
ン・ディテクション)制御装置(IEEE802.3の
MAC(メディア・アクセス・コントロール)制御装
置)を採用したLAN中継装置として、従来、次の2つ
がある。 (1)オン・ザ・フライ方式の中継装置(以下オン・ザ・フ
ライ装置) (2)ストア・アンド・フォワード方式の中継装置(以下
ストア・アンド・フォワード装置) 前記のオン・ザ・フライ装置は、図3に示す受信フレーム
1の先頭にあるヘッダ部分の宛先MACアドレス4を受
信した時点で、宛先ポートに対して受信フレームの中継
を開始する。このため、伝送遅延(受信したフレームを
装置内部に保留する時間)が一定でかつそれが非常に小
さい利点がある。しかし、エラーチェックがなされない
ために、これはエラーフレームも中継する欠点がある。
なお、フレーム1において、2はプリアンブル、3は、
SFD(スタートフレームデリミタ)、4は宛先MAC
アドレス、5は発信MACアドレス、6は、タイプであ
って、プロトコル番号あるいは電文のバイト長、7は伝
送データ、8はCRCチェックコードである。
2. Description of the Related Art All LANs connected to the same relay device
LAN in which the terminal adopts a CSMA / CD (Carrier Sense Multiple Access With Collision Detection) control device (IEEE802.3 MAC (Media Access Control) control device) that shares the same transmission path Conventionally, there are the following two relay devices. (1) On-the-fly type relay device (hereinafter, on-the-fly device) (2) Store-and-forward type relay device (hereinafter, store-and-forward device) The on-the-fly device Starts relaying the received frame to the destination port when the destination MAC address 4 of the header portion at the head of the received frame 1 shown in FIG. 3 is received. Therefore, there is an advantage that the transmission delay (time for holding the received frame inside the device) is constant and is very small. However, this has the drawback of relaying error frames as well, since no error checking is done.
In frame 1, 2 is the preamble, 3 is
SFD (start frame delimiter), 4 is destination MAC
Address 5 is a transmission MAC address, 6 is a type, a protocol number or a byte length of a message, 7 is transmission data, and 8 is a CRC check code.

【0003】前記のストア・アンド・フォワード装置は、
受信するフレームの1フレーム分全部を一旦メモリ上に
格納した後にエラーチェックを実施し、宛先ポートに対
して正常なフレームのみを中継する。このため、フレー
ム長に比例して伝送遅延は大きくなる。しかし、エラー
フレーム伝送が抑止される分だけ、伝送路の使用時間が
排除される。従来の中継装置では、これら2つの中継装
置のいずれか一方を持つものが一般的である。また、両
方の中継装置を持つものにあっては、外部からの入力操
作によっていずれか一方を選択して中継装置を切換えて
いる。
The store-and-forward device described above is
An error check is performed after temporarily storing all the received frames for one frame in the memory, and only normal frames are relayed to the destination port. Therefore, the transmission delay increases in proportion to the frame length. However, since the error frame transmission is suppressed, the use time of the transmission path is eliminated. A conventional relay device generally has one of these two relay devices. Also, in the case of having both relay devices, one of them is selected by an input operation from the outside to switch the relay device.

【0004】[0004]

【発明が解決しようとする課題】さて、動画データを取
扱う場合には連続的にフレームが高速伝送されることが
好ましい。この関係で伝送遅延が小さいオン・ザ・フライ
装置が有効であるが、エラーフレームを受信して中継す
る関係からエラーフレームによる無駄な中継に装置が占
有される時間が多くなり、スループットが低下する問題
がある。そこで、一般的には、エラーフレームを抑止で
き、他のネットワークに影響を与えないストア・アンド・
フォワード装置が使われているが、動画や音声、テキス
トデータなどを統合したマルチメディアが普及するにつ
れ、動画データの伝送が多くなる関係で1フレームの伝
送遅延が問題になる。
When handling moving image data, it is preferable that frames are continuously transmitted at high speed. In this relationship, an on-the-fly device with a small transmission delay is effective, but due to the relationship of receiving and relaying an error frame, the device is occupied for a lot of unnecessary relay due to the error frame, and the throughput is reduced. There's a problem. Therefore, in general, store and store that can suppress error frames and does not affect other networks.
Although a forward device is used, a transmission delay of one frame becomes a problem due to an increase in transmission of moving image data as multimedia that integrates moving images, voices, text data, and the like becomes widespread.

【0005】また、伝送路の形態や使用状況から2つの
中継装置を設けておき、これらを切換えることで、限ら
れた伝送路をより効率的に使用することも考えられる
が、これには、伝送路の状態を監視して手動で切り換え
なければならず、手間がかかる上に装置それそれが個別
的に切換えを行う関係で他の端末からみて適切な切換が
なされない問題がある。この発明の目的は、このような
従来技術の問題点を解決するものであって、伝送遅延が
小さくかつエラーフレームを抑止できる中継装置を提供
することにある。
It is also conceivable that two relay devices are provided in advance depending on the form and usage of the transmission path and these are switched so that the limited transmission path can be used more efficiently. Since it is necessary to monitor the state of the transmission line and switch manually, it is troublesome and there is a problem that proper switching cannot be performed from the viewpoint of other terminals due to the fact that the devices individually switch. An object of the present invention is to solve the above-mentioned problems of the prior art, and to provide a relay device having a small transmission delay and suppressing an error frame.

【0006】[0006]

【課題を解決するための手段】このような目的を達成す
るためのこの発明の中継装置の特徴は、受信フレームの
データを記憶するメモリと、このメモリに格納された受
信フレームのデータに対してエラーチェックをするエラ
ーチェック回路と、このエラーチェック回路の判定結果
をカウントするカウンタと、受信フレームにおける宛先
アドレスを受信した時点あるいはこの宛先アドレスを含
むヘッダ部分を受信した時点で、この宛先アドレスが自
己が管理しているアドレスであるときに宛先アドレスの
ポートに、そうでないときには伝送路に受信フレームの
データを送出する第1の動作モードおよびエラーチェッ
ク回路の判定結果がエラーでないときにおいて宛先アド
レスが自己が管理しているポートのアドレスであるとき
には宛先アドレスのポートに、そうでないときには伝送
路に受信フレームのデータを送出する第2の動作モード
とを有し、制御信号に応じていずれかの動作モードに設
定される中継回路と、この中継回路が第1の動作モード
に設定されているときにはカウンタによりエラーの判定
結果をカウントしてそれが連続的に複数回発生したとき
に中継回路を第2の動作モードにする制御信号を前記中
継回路に送出し、中継回路が第2の動作モードに設定さ
れているときにはカウンタによりエラーでないときの判
定結果をカウントしてそれが連続的に複数回発生したと
きに中継回路を第1の動作モードにする制御信号を中継
回路に送出する制御回路とを備えるものである。
The features of the relay apparatus of the present invention for achieving such an object are that a memory for storing received frame data and a received frame data stored in this memory are provided. An error check circuit that performs an error check, a counter that counts the determination result of this error check circuit, and when the destination address in the received frame is received or the header part including this destination address is received, this destination address is The first operation mode for sending the data of the received frame to the port of the destination address when it is an address managed by the Destination address when is the address of the port managed by The port has a second operation mode for sending the data of the received frame to the transmission path otherwise, and a relay circuit set to either operation mode according to the control signal, and the relay circuit has a first operation mode. When the operation mode is set to, the count result of the error is counted by the counter, and the control signal for setting the relay circuit to the second operation mode is transmitted to the relay circuit when the error determination result occurs a plurality of times continuously, When the relay circuit is set to the second operation mode, the counter counts the determination result when there is no error, and when it occurs a plurality of times continuously, a control signal for setting the relay circuit to the first operation mode is output. And a control circuit for sending to a relay circuit.

【0007】[0007]

【作用】このように、オン・ザ・フライ装置に相当する第
1の動作モードとストア・アンド・フォワード装置に相当
する第2の動作モードの2つをモード設けてフレームの
エラー状態に応じてこれらを自動的に切換るものであっ
て、端末あるいは伝送路から受信された受信フレームの
ヘッダ部分あるいはそのうちの宛先アドレスを受信した
時点、あるいは1フレーム全部を受信した時点のいずれ
かでフレームの受信を検出し、オン・ザ・フライ装置とし
ての第1のモード動作時では、エラーチェックを実施せ
ずに受信フレームの検出と同時に宛先ポートあるいはバ
スに対してフレームの中継を開始し、ストア・アンド・フ
ォワード装置としての第2のモード動作時では、1フレ
ームの受信完了と同時にエラーチェックを実施して宛先
ポートあるいはバスに対して正常なフレームのみを中継
するようにする。さらに、ポート単位にオン・ザ・フライ
装置動作とストア・アンド・フォワード装置動作とを自動
で切換えるために、受信されるフレームに対してエラー
の有無を監視する。オン・ザ・フライ装置として動作して
いるときに、エラーチェック回路によりエラーフレーム
が受信されたことが判定されると、前記のカウンタによ
りエラーフレームをカウントアップしていき、エラーフ
レームが連続するカウント数が所定の回数になった場合
に、モードを他方に切換えてストア・アンド・フォワード
のモードの動作にする。
As described above, two modes, the first operation mode corresponding to the on-the-fly apparatus and the second operation mode corresponding to the store-and-forward apparatus, are provided to respond to the error state of the frame. These are automatically switched, and the frame is received at the time when the header part of the received frame received from the terminal or the transmission line or the destination address thereof is received, or when the whole one frame is received. In the first mode operation as an on-the-fly apparatus, the relay of the frame to the destination port or the bus is started simultaneously with the detection of the received frame without performing the error check, and the store and -When operating in the second mode as the forward device, an error check is performed at the same time when the reception of one frame is completed and the destination port Stomach so as to relay only the normal frame to the bus. Furthermore, in order to automatically switch between the on-the-fly device operation and the store-and-forward device operation for each port, the received frame is monitored for errors. When the error check circuit determines that an error frame has been received while operating as an on-the-fly device, the counter counts up the error frame, and the error frame continues counting. When the number reaches a predetermined number, the mode is switched to the other mode to operate in the store-and-forward mode.

【0008】一方、ストア・アンド・フォワード装置とし
て動作しているポートにおいてエラーチェック回路によ
り正常フレーム(エラーがないと判定されたフレーム)
が受信されたことが判定されると、そのフレームをカウ
ントアップしていき、そのフレーム数が連続するカウン
ト数が所定の回数になった場合に、モードを他方に切換
えオン・ザ・フライモードの動作にする。このように、受
信するフレームに対してエラーの有無を監視するととも
に、現在動作している中継モードとそれを切換える条件
としてエラーあるいはエラーのない状態を検出して、自
動的にモードをいずれか適切な方に切換えることによ
り、受信フレームのエラー状態に応じて自動的にオン・
ザ・フライ装置としての動作とストア・アンド・フォワー
ド装置としての動作とが選択される。これにより、正常
フレームでのオン・ザ・フライ装置動作が可能になり、エ
ラーが連続しない限りは、基本的にオン・ザ・フライ装置
としての動作で動画や音声、テキストデータなどを統合
したマルチメディアの情報伝送に適した中継をすること
ができる。また、このような中継をポートごとに実施す
るようにすれば、装置全体ではなく、ポート単位にそれ
ぞれモード切替が可能になるため、端末あるいは伝送路
から受信されるフレームの伝送内容(トラフィック)に
応じた中継がそれぞれのポートでできる。さらに、この
発明によれば外部からの入力操作を行わなくても装置が
自動的に中継モードを切換えるため、これに関する入力
操作を排除できる。
On the other hand, in a port operating as a store-and-forward device, a normal frame (frame determined to have no error) by an error check circuit
When it is determined that the frame has been received, the frame is counted up, and when the number of consecutive frames reaches a predetermined number, the mode is switched to the other mode and the on-the-fly mode To work. In this way, while monitoring the received frame for errors, the relay mode currently operating and the error or error-free state are detected as a condition for switching it, and the mode is automatically selected as appropriate. By switching to the other side, it automatically turns on / off according to the error state of the received frame.
The operation as the fly device and the operation as the store-and-forward device are selected. This enables on-the-fly device operation in normal frames, and basically, as long as the error does not continue, the operation as the on-the-fly device basically integrates video, audio, and text data. It is possible to perform a relay suitable for information transmission of media. In addition, if such relaying is performed for each port, the mode can be switched for each port instead of for the entire device. Therefore, the transmission content (traffic) of the frame received from the terminal or the transmission path can be changed. The corresponding relay can be done at each port. Further, according to the present invention, the device automatically switches the relay mode without performing an input operation from the outside, so that the input operation related thereto can be eliminated.

【0009】[0009]

【実施例】図1は、この発明を適用した中継装置の一実
施例のブロック図、図2は、モード切替処理のフローチ
ャートである。10は中継装置であって、11は、中継
装置10が接続されている端末あるいは伝送路から受信
した受信フレームを宛先のポートあるいは伝送路に伝送
するためにあるポートと宛先ポートあるいは伝送路とを
選択的に接続して通路を形成する切換スイッチ部であ
る。これは、いわゆるマルチポートブリッジ回路で構成
される。12は、エラーフレームの監視と中継の切換え
を制御するモード切換制御回路、13a,13b,…,
13nは、中継回路であって、中継回路13a,13
b,…,13nは、それぞれオン・ザ・フライ装置動作と
しての中継を行うオン・ザ・フライモードとストア・アン
ド・フォワード装置動作としての中継を行うストア・アン
ド・フォワードモードとを有するモード制御部130、
1受信フレーム分のデータを記憶するメモリ131、エ
ラーチェック回路132、双方向伝送回路133、そし
て宛先アドレスからこのアドレスに対応するポートを検
索するポートテーブル134とからなり、双方向伝送回
路133は、前記切換スイッチ部11とバス14とに接
続されている。
1 is a block diagram of an embodiment of a relay device to which the present invention is applied, and FIG. 2 is a flow chart of a mode switching process. Reference numeral 10 is a relay device, and 11 is a port for transmitting a received frame received from a terminal or a transmission line to which the relay device 10 is connected to a destination port or a transmission line and a destination port or transmission line. It is a changeover switch unit that is selectively connected to form a passage. It consists of a so-called multi-port bridge circuit. Reference numeral 12 is a mode switching control circuit for controlling error frame monitoring and relay switching, and 13a, 13b, ...
13n is a relay circuit, and is a relay circuit 13a, 13
b, ..., 13n are mode controls each having an on-the-fly mode for relaying as an on-the-fly device operation and a store-and-forward mode for relaying as a store-and-forward device operation. Part 130,
The bidirectional transmission circuit 133 includes a memory 131 that stores data for one received frame, an error check circuit 132, a bidirectional transmission circuit 133, and a port table 134 that searches a port corresponding to this address from a destination address. It is connected to the changeover switch unit 11 and the bus 14.

【0010】中継回路13a,13b,…,13n(以
下これらを代表して中継回路13で説明する。)は、各
ポート1〜nに対応に設けられ、それぞれがLAN接続
のバス14に接続されている。そして、各中継回路13
は、ポートテーブル134を参照してそれぞれのポート
に接続された端末からの受信データ(受信フレーム)を
中継装置10に接続された他のポートが宛先であるとき
にはそのポートへ、そしてそうでないときには、切換ス
イッチ部11を介してバス14へと送出する。各中継回
路13のモード制御部130は、ゲートアレイあるいは
MCUで構成され、自己のポートに接続された端末ある
いはバス14からデータを受信したときには、メモリ1
31にそれを記憶し、モード切換制御回路12からオン
・ザ・フライモード設定信号を受けたときには、その中継
回路13は、オン・ザ・フライモード動作に設定されて、
その宛先アドレス4が受信された時点でポートテーブル
134を参照して宛先アドレス4の内容に対応する宛先
ポートを得て、切換スイッチ部11に対してこの宛先ポ
ートに対応する接続をあるいは宛先ポートがないときに
はバス14に接続を切換える制御信号を送出する。
The relay circuits 13a, 13b, ..., 13n (hereinafter, these are representatively described as the relay circuit 13) are provided corresponding to the respective ports 1 to n, and are connected to the LAN-connected bus 14. ing. Then, each relay circuit 13
Refers to the port table 134 to receive data (received frame) from the terminals connected to the respective ports to the other port connected to the relay device 10 when the destination, and otherwise, It is sent to the bus 14 via the changeover switch unit 11. The mode control unit 130 of each relay circuit 13 is composed of a gate array or an MCU, and when receiving data from a terminal connected to its port or the bus 14, the memory 1
When it is stored in 31 and the on-the-fly mode setting signal is received from the mode switching control circuit 12, the relay circuit 13 is set to the on-the-fly mode operation,
When the destination address 4 is received, the port table 134 is referred to obtain the destination port corresponding to the contents of the destination address 4, and the changeover switch unit 11 is connected to the destination port or the destination port is connected. When not present, a control signal for switching the connection is sent to the bus 14.

【0011】モード切換制御回路12からストア・アン
ド・フォワードモード設定信号を受けたときには、その
中継回路13は、ストア・アンド・フォワードモード動作
に設定されて、エラーチェック回路132のエラーチェ
ック結果を得て、受信データにエラーがないと判定され
たときにのみ受信された宛先アドレス4に従ってポート
テーブル134を参照して切換スイッチ部11に対して
宛先ポートに対応する接続あるいはバス14に接続を切
換える制御信号を送出する。そして、このモードでは、
エラーがあるときには、受信データの転送はしない。モ
ード制御部130は、他のポートから切換スイッチ部1
1を経て受信データが転送されたときには、これに対し
てそれを双方向伝送回路133を介して自己のポートに
接続されている端末に転送してそのデータを端末へと落
とす。また、受信データ,1フレームについてエラーチ
ェック回路132によるエラーチェックの結果をモード
切換制御回路12に自己のポートコードを添えて送出す
る。
When the store-and-forward mode setting signal is received from the mode switching control circuit 12, the relay circuit 13 is set to the store-and-forward mode operation and the error check result of the error check circuit 132 is obtained. Control that refers to the port table 134 according to the destination address 4 received only when it is determined that there is no error in the received data, and changes the connection to the changeover switch unit 11 corresponding to the destination port or to the bus 14. Send a signal. And in this mode,
When there is an error, the received data is not transferred. The mode control unit 130 switches from another port to the changeover switch unit 1
When the received data is transferred via 1, the received data is transferred to the terminal connected to its own port via the bidirectional transmission circuit 133 and the data is dropped to the terminal. Further, the error check result of the error check circuit 132 for the received data and one frame is sent to the mode switching control circuit 12 with its own port code.

【0012】モード切換制御回路12は、MPU120
とメモリ121、状態レジスタ122、そして、ポート
カウンタ123とを有していて、ポートカウンタ123
は、エラーフレームおよび正常フレームの数を各ポート
ごとにカウントするポート単位に設けられたカウンタか
らなるものであって、例えば、メモリの所定の領域にそ
れぞれのポートのカウント値が記憶されるソフトカウン
タで構成されている。これらの各カウンタは、3を越え
たときにカウントアップ信号を発生する3進のカウンタ
になっている。モード切換制御回路12は、各ポート対
応の中継回路13がいずれのモードにあるかを状態レジ
スタ122にフラグをセットしてモード状態を管理して
いる。例えば、ストア・アンド・フォワードモードのとき
には、そのポートに対応する位置のフラグが“1”にセ
ットされ、オン・ザ・フライモードのときには、そのポー
トに対応する位置のフラグが“0”にリセットされる。
The mode switching control circuit 12 includes an MPU 120.
And a memory 121, a status register 122, and a port counter 123.
Is a counter provided for each port that counts the number of error frames and normal frames for each port. For example, a soft counter that stores the count value of each port in a predetermined area of memory. It is composed of. Each of these counters is a ternary counter that generates a count-up signal when it exceeds 3. The mode switching control circuit 12 manages the mode state by setting a flag in the state register 122 indicating which mode the relay circuit 13 corresponding to each port is in. For example, in store-and-forward mode, the flag at the position corresponding to that port is set to "1", and in the on-the-fly mode, the flag at the position corresponding to that port is reset to "0". To be done.

【0013】モード切換制御回路12は、図2のフロー
チャートに従って、MPU120がメモリ121に記憶
されたモード切換プログラム121aを実行してモード
切替処理を行う。すなわち、図2において、まず、状態
レジスタ122とポートカウンタ123の各カウンタを
リセットして(ステップ100)、初期状態において、
すべてのポートの中継回路13にオン・ザ・フライモード
を設定する信号を送出する(ステップ101)。そし
て、エラーチェック割込みあるか、否かの割込み待ちル
ープに入り、それぞれの中継回路13のエラーチェック
回路132のエラーチェック結果を受けて(ステップ1
02)、YESのときに、状態レジスタ120を参照し
てオン・ザ・フライモードかストア・アンド・フォワードモ
ードかの判定をする(ステップ103)。そして、オン
・ザ・フライモードのときには、判定結果がエラーか否か
の判定をし(ステップ104)、エラーのときにポート
カウンタ15の、受けた中継回路13に対応するポート
のカウンタ(中継回路13からエラー結果とともに送出
されるポートコードにより対応付けられるカウンタ)を
インクリメントして(ステップ105)、そのカウンタ
の値が3か否かの判定をして(ステップ106)、3の
ときには(YESのときには)、ストア・アンド・フォワ
ードモード設定信号をこのカウンタに対応するポートの
中継回路13に送出し、状態レジスタ122を“1”に
セットする(ステップ107)。ステップ106におい
て、カウンタの値が3以上でない判定結果のときにはス
テップ102へと戻る。そして、ステップ104の判定
においてエラーでないときには、受けた中継回路13に
対応するポートのカウンタの値をリセット(“0”に)
して(ステップ108)、ステップ102へと戻る。こ
れによりエラーが3回連続して発生しない限り、オン・
ザ・フライモードを維持するようにする。
The mode switching control circuit 12 executes the mode switching processing by executing the mode switching program 121a stored in the memory 121 by the MPU 120 according to the flowchart of FIG. That is, in FIG. 2, first, each counter of the state register 122 and the port counter 123 is reset (step 100), and in the initial state,
A signal for setting the on-the-fly mode is sent to the relay circuits 13 of all ports (step 101). Then, an interrupt waiting loop for whether or not there is an error check interrupt is entered, and the error check result of the error check circuit 132 of each relay circuit 13 is received (step 1
02), when YES, the state register 120 is referred to judge whether the mode is the on-the-fly mode or the store-and-forward mode (step 103). Then, in the on-the-fly mode, it is determined whether or not the determination result is an error (step 104), and when an error is detected, the counter of the port corresponding to the received relay circuit 13 of the port counter 15 (relay circuit The counter associated with the port code sent from 13 together with the error result) is incremented (step 105), it is determined whether the value of the counter is 3 (step 106), and when it is 3 (YES). Sometimes, the store-and-forward mode setting signal is sent to the relay circuit 13 of the port corresponding to this counter, and the status register 122 is set to "1" (step 107). When it is determined in step 106 that the counter value is not 3 or more, the process returns to step 102. Then, if it is determined in step 104 that there is no error, the counter value of the port corresponding to the received relay circuit 13 is reset (to "0").
Then (step 108), the process returns to step 102. This will turn on unless an error occurs three times in a row.
Try to keep the fly mode.

【0014】一方、ステップ103の判定においてスト
ア・アンド・フォワードモードのときには、判定結果がエ
ラーか否かの判定をし(ステップ109)、エラーでな
いときにポートカウンタ15の受けた中継回路13に対
応するポートのカウンタ(中継回路13からエラー結果
とともに送出されるポートコードにより対応付けられる
カウンタ)をインクリメントして(ステップ110)、
そのカウンタの値が3以上か否かの判定をして(ステッ
プ111)、3以上のときには(YESのときには)、
オン・ザ・フライモード設定信号をこのカウンタに対応す
るポートの中継回路13に送出し、状態レジスタ122
をリセット(“0”に)する(ステップ112)。ステ
ップ111において、カウンタの値が3以上でない判定
結果のときにはステップ102へと戻る。そして、ステ
ップ109の判定においてエラーのときには、受けた中
継回路13に対応するポートのカウンタの値をリセット
して(ステップ108)、ステップ102へと戻る。こ
れによりエラーでない状態が3回連続しない限り、スト
ア・アンド・フォワードモードを維持するようにする。
On the other hand, when the store-and-forward mode is determined in the determination in step 103, it is determined whether or not the determination result is an error (step 109), and when it is not an error, it corresponds to the relay circuit 13 received by the port counter 15. Incrementing the counter of the port (the counter associated with the port code sent from the relay circuit 13 together with the error result) (step 110),
It is determined whether or not the value of the counter is 3 or more (step 111), and when it is 3 or more (when YES),
The on-the-fly mode setting signal is sent to the relay circuit 13 of the port corresponding to this counter, and the status register 122
Is reset (to "0") (step 112). When it is determined in step 111 that the counter value is not 3 or more, the process returns to step 102. Then, if an error is found in the determination in step 109, the value of the counter of the received port corresponding to the relay circuit 13 is reset (step 108) and the process returns to step 102. As a result, the store-and-forward mode is maintained unless the error-free state continues three times.

【0015】これにより、まず、中継回路13をオン・
ザ・フライモードで動作させておき、端末から、例え
ば、ポート1を介して受信された1フレームの転送デー
タに対して宛先アドレスを受信した時点で切換スイッチ
部11を介して他のポートあるいはバス14へと転送す
る。同様にしてバス14から受信したデータについて
は、その宛先が自己であるときには、ポート1を介して
これに接続された端末に転送する。
As a result, first, the relay circuit 13 is turned on.
For example, when the destination address is received from the terminal for the transfer data of one frame received through the port 1 while operating in the fly mode, another port or bus is operated through the changeover switch unit 11. Transfer to 14. Similarly, the data received from the bus 14 is transferred to the terminal connected thereto via the port 1 when the destination is the self.

【0016】そして、オン・ザ・フライモードで受信フレ
ームについてエラーが3回あるいはこれ以上発生したと
きには、中継回路13がストア・アンド・フォワードモー
ドにして、端末から、例えば、ポート1を介して受信さ
れた1フレームの転送データに対して1フレーム分のデ
ータがメモリ131に記憶された時点でエラーチェック
回路132の判定結果に応じて結果がエラーでないとき
に、受信した宛先アドレスに応じて切換スイッチ部11
を介して他のポートあるいはバス14へと転送する。結
果がエラーのときには、その転送を中止する。同様にし
てバス14から受信したデータについては、エラーチェ
ック回路132の判定結果に応じて結果がエラーでない
ときに、受信した宛先が自己であるときには、ポート1
を介してこれに接続された端末に転送する。結果がエラ
ーのときには、その転送を中止する。
When an error occurs three times or more in the received frame in the on-the-fly mode, the relay circuit 13 is set to the store-and-forward mode and is received from the terminal via the port 1, for example. When one frame of data is stored in the memory 131 with respect to the transferred one frame of transferred data and the result is not an error according to the determination result of the error check circuit 132, the changeover switch is selected according to the received destination address. Part 11
To the other port or the bus 14 via. If the result is an error, the transfer is aborted. Similarly, regarding the data received from the bus 14, when the result is not an error according to the determination result of the error check circuit 132, and when the received destination is the self, the port 1
To the terminal connected to this via. If the result is an error, the transfer is aborted.

【0017】このようにして、オン・ザ・フライモードで
エラーが3回あるいはこれ以上連続して発生した場合に
は中継回路13をストア・アンド・フォワードモードに設
定し、ストア・アンド・フォワードモードでエラーでない
状態が3回あるいはこれ以上連続して発生した場合には
中継回路13を元のオン・ザ・フライモードに戻し、オン
・ザ・フライモードを基本にして伝送データの中継をす
る。
In this way, when the error occurs three times or more continuously in the on-the-fly mode, the relay circuit 13 is set to the store-and-forward mode, and the store-and-forward mode is set. When the error-free state occurs three times or more consecutively, the relay circuit 13 is returned to the original on-the-fly mode, and the transmission data is relayed based on the on-the-fly mode.

【0018】以上説明してきたが、モード制御部130
は、MPUを内蔵してモード切換制御回路12と同様に
プログラムに応じて動作するようにしてもよい。また、
逆に、モード切換制御回路12は、プログラムで動作す
るのではなく、ゲートアレイ等の論理回路で構成しても
よい。また、実施例では、エラーの連続カウント数ある
いはエラーでないことの連続カウント数を3回以上に設
定しているが、判定は3か否かでもよい。また、これ
は、複数回連続すればよく、数値は3に限定されない。
As described above, the mode control unit 130
May have a built-in MPU and operate in accordance with a program similarly to the mode switching control circuit 12. Also,
On the contrary, the mode switching control circuit 12 may be configured by a logic circuit such as a gate array instead of being operated by a program. Further, in the embodiment, the continuous count number of errors or the continuous count number of non-errors is set to 3 or more, but the determination may be 3 or not. Further, this may be repeated a plurality of times, and the numerical value is not limited to 3.

【0019】[0019]

【発明の効果】以上述べたように、この発明にあって
は、オン・ザ・フライ装置として動作するため、非常に小
さい遅延でフレームを伝送でき、かつエラーフレームが
発生した場合には、自動的にストア・アンド・フォワード
装置として動作するように切換えられるため、宛先ポー
トに対するエラーフレームを抑止できる上に、他のポー
トの中継装置に影響を与えない効果がある。また、スト
ア・アンド・フォワード装置としての動作に切換えたポー
トから正常なフレームを受信した場合には、自動的にオ
ン・ザ・フライ装置としての動作に復旧するため、ポート
ごとにエラーフレームの発生状況に応じた最適な中継装
置で動作できる。さらに、これら中継装置の切換えは装
置が自動的に行うため、外部からの入力操作を排除でき
る効果もある。
As described above, according to the present invention, since it operates as an on-the-fly device, it is possible to transmit a frame with a very small delay, and when an error frame occurs, automatic transmission is possible. Since it is switched to operate as a store-and-forward device, the error frame for the destination port can be suppressed and the relay device of another port is not affected. Also, when a normal frame is received from a port that has been switched to store and forward operation, it automatically recovers to operation as an on-the-fly device, so an error frame occurs for each port. It can operate with the most suitable relay device according to the situation. Further, since the switching of these relay devices is automatically performed by the device, there is an effect that an input operation from the outside can be eliminated.

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

【図1】図1は、この発明を適用した中継装置の一実施
例のブロック図である。第1図
FIG. 1 is a block diagram of an embodiment of a relay device to which the present invention is applied. Fig. 1

【図2】図2は、モード切替処理のフローチャートであ
る。
FIG. 2 is a flowchart of a mode switching process.

【図3】図3は、IEEE802.3のフレームフォー
マットの説明図である。
FIG. 3 is an explanatory diagram of a frame format of IEEE802.3.

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

10…中継装置、11…切換スイッチ部、12…モード
切換制御回路、13,13a,13b,…,13n…中
継回路、14…バス、120…MPU、121…メモ
リ、122…状態レジスタ、123…ポートカウンタ、
130…モード制御部、131…メモリ、132…エラ
ーチェック回路、133…双方向伝送回路、134…ポ
ートテーブル。
10 ... Relay device, 11 ... Changeover switch section, 12 ... Mode change control circuit, 13, 13a, 13b, ..., 13n ... Repeater circuit, 14 ... Bus, 120 ... MPU, 121 ... Memory, 122 ... Status register, 123 ... Port counter,
130 ... Mode control unit, 131 ... Memory, 132 ... Error check circuit, 133 ... Bidirectional transmission circuit, 134 ... Port table.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】受信フレームのデータを記憶するメモリ
と、このメモリに格納された受信フレームのデータに対
してエラーチェックをするエラーチェック回路と、この
エラーチェック回路の判定結果をカウントするカウンタ
と、前記受信フレームにおける宛先アドレスを受信した
時点あるいはこの宛先アドレスを含むヘッダ部分を受信
した時点で、この宛先アドレスが自己が管理しているア
ドレスであるときに前記宛先アドレスのポートに、そう
でないときには伝送路に前記受信フレームのデータを送
出する第1の動作モードおよび前記エラーチェック回路
の判定結果がエラーでないときにおいて前記宛先アドレ
スが自己が管理しているポートのアドレスであるときに
は前記宛先アドレスのポートに、そうでないときには伝
送路に前記受信フレームのデータを送出する第2の動作
モードとを有し、制御信号に応じていずれかの前記動作
モードに設定される中継回路と、この中継回路が前記第
1の動作モードに設定されているときには前記カウンタ
によりエラーの判定結果をカウントしてそれが連続的に
複数回発生したときに前記中継回路を前記第2の動作モ
ードにする前記制御信号を前記中継回路に送出し、前記
中継回路が前記第2の動作モードに設定されているとき
には前記カウンタによりエラーでないときの判定結果を
カウントしてそれが連続的に複数回発生したときに前記
中継回路を前記第1の動作モードにする前記制御信号を
前記中継回路に送出する制御回路とを備える中継装置。
1. A memory for storing received frame data, an error check circuit for performing an error check on the received frame data stored in the memory, and a counter for counting the determination result of the error check circuit. At the time of receiving the destination address in the received frame or at the time of receiving the header part including this destination address, when this destination address is an address managed by itself, it is transmitted to the port of the destination address, otherwise it is transmitted. When the destination address is the address of the port managed by itself when the determination result of the error check circuit is not an error in the first operation mode for transmitting the data of the received frame to the route, the port of the destination address is set. , If not, the reception frame on the transmission line A relay circuit having a second operation mode for transmitting data of a system, the relay circuit being set to one of the operation modes according to a control signal, and the relay circuit being set to the first operation mode. Occasionally, the counter counts an error determination result, and when the error determination result occurs a plurality of times consecutively, the control signal for setting the relay circuit to the second operation mode is sent to the relay circuit, When the second operation mode is set, the counter counts the determination result when there is no error, and when the occurrence occurs continuously a plurality of times, the relay circuit is set to the first operation mode And a control circuit for sending a signal to the relay circuit.
【請求項2】さらに、複数のポートのそれぞれに対応し
て接続切換が可能なスイッチ部を有し、前記中継回路
は、前記スイッチ部を切換制御して前記宛先アドレスの
ポートあるいは前記伝送路に前記受信フレームを送出す
る請求項1記載の中継装置。
2. A switch unit capable of switching connection corresponding to each of a plurality of ports, wherein the relay circuit controls switching of the switch unit to a port of the destination address or the transmission line. The relay device according to claim 1, wherein the reception frame is transmitted.
JP7184821A 1995-06-28 1995-06-28 Repeating device Pending JPH0918507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7184821A JPH0918507A (en) 1995-06-28 1995-06-28 Repeating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7184821A JPH0918507A (en) 1995-06-28 1995-06-28 Repeating device

Publications (1)

Publication Number Publication Date
JPH0918507A true JPH0918507A (en) 1997-01-17

Family

ID=16159887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7184821A Pending JPH0918507A (en) 1995-06-28 1995-06-28 Repeating device

Country Status (1)

Country Link
JP (1) JPH0918507A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999008472A1 (en) * 1997-08-08 1999-02-18 Telefonaktiebolaget Lm Ericsson Network control system
EP1965523A1 (en) 2007-02-27 2008-09-03 Sharp Kabushiki Kaisha Transmitting/receiving method, transmitter/receiver, and recording medium therefor
WO2009118650A1 (en) * 2008-03-26 2009-10-01 Toyota Jidosha Kabushiki Kaisha Network device of transfer switching type and frame transfer method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999008472A1 (en) * 1997-08-08 1999-02-18 Telefonaktiebolaget Lm Ericsson Network control system
EP1965523A1 (en) 2007-02-27 2008-09-03 Sharp Kabushiki Kaisha Transmitting/receiving method, transmitter/receiver, and recording medium therefor
US7965978B2 (en) 2007-02-27 2011-06-21 Sharp Kabushiki Kaisha Transmitting/receiving method, transmitter/receiver, and recording medium therefor
WO2009118650A1 (en) * 2008-03-26 2009-10-01 Toyota Jidosha Kabushiki Kaisha Network device of transfer switching type and frame transfer method
US8385357B2 (en) 2008-03-26 2013-02-26 Toyota Jidosha Kabushiki Kaisha Network device of transfer switching type and frame transfer method

Similar Documents

Publication Publication Date Title
US6628613B1 (en) Flow control method in packet switched network
KR0137089B1 (en) Inter lan connection equipment
US5436617A (en) Repeaters for digital data networks
US20060126517A1 (en) Loop detection method and device
JP2700843B2 (en) Multiplex communication controller
US11792099B2 (en) Troubleshooting method, device, and readable storage medium
US7130271B1 (en) Relaying apparatus
US6275498B1 (en) Extended PHY addressing
JPH0918507A (en) Repeating device
JP2001136172A (en) Communication control method in communication network system and communication network system, and recording medium with communication control processing program recorded thereon
JPH05268223A (en) Router device
US6944179B2 (en) PHY signal control device and method for selectively generating a specific warning data
JP2000209250A (en) Flow control system in switching hub
JP4668675B2 (en) Selective flow control system
JPH09149067A (en) Switching hub
JP3728937B2 (en) Ring network data transmission system
JPH0697983A (en) Network system
JPH11191782A (en) Bridge device
JP2001326663A (en) Flow control system by token passing and its method
JP2662258B2 (en) Information relay node device
JPH0923245A (en) Inter-network connector
JP4471539B2 (en) Duplex line communication equipment
JP2581002B2 (en) LAN connection device
KR0132961B1 (en) Apparatus for exchanging high speed multichannel messages
JP2004254188A (en) Communication network and transmission control method