JPS61125254A - Ring-status interrupting system - Google Patents

Ring-status interrupting system

Info

Publication number
JPS61125254A
JPS61125254A JP59245748A JP24574884A JPS61125254A JP S61125254 A JPS61125254 A JP S61125254A JP 59245748 A JP59245748 A JP 59245748A JP 24574884 A JP24574884 A JP 24574884A JP S61125254 A JPS61125254 A JP S61125254A
Authority
JP
Japan
Prior art keywords
state
node
ring
frame
token
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
JP59245748A
Other languages
Japanese (ja)
Inventor
Hideo Suzuki
英男 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59245748A priority Critical patent/JPS61125254A/en
Publication of JPS61125254A publication Critical patent/JPS61125254A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To improve the overall putthrough and to relieve the load of the CPU by so forming the system that each node transmits a frame to itself in order to test its state of coupling with the ring and by checking its result by a dedicated LSI, and further generating an interruption in the firmware based on the above result. CONSTITUTION:The transmission frame 500 from the node A goes around a ring, and is inputted to the receiving circuit of a TPC (token passing controller) 10. If the inputted byte is a source address part SA, the TPC10 compares it with its own address (MA). And the comparison-result is expressed in the third bit and the second bit of a receiving status register RXFS1028. If it is 00, then SA=MA. At this time, the outputs of an inverting circuits 1034 and 1035 shown in figure (b) become a logic 1. In case when the ring turn-around test is made valid, an FF1036 is set by an MUP20. An FF1037 is a storage element to show whether or not the status is valid, and shows that the status information is exactly set in an RXFS. Accordingly, if the circuit shown in figure (b) is used, when the bits 1036 and 1037 both are logic 1 and hence are in a valid status and if SA=MA, a turn-around interruption FF1039 is set.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は地理的に近接した地域内で複数の61算機を通
信で結合するローカルエリアネットワーク(LAN)の
伝送媒体へのアクセス方式に係り。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an access method to a transmission medium of a local area network (LAN) that connects a plurality of 61 computers by communication in a geographically close area. .

特にリング状の伝送媒体においてフリート−クンを捕捉
した計算機のみが送信権をもつというトークン方式の媒
体アクセス制御状態遷移割込方式に関する。
In particular, the present invention relates to a token-based medium access control state transition interrupt system in which only a computer that captures a free token has transmission rights in a ring-shaped transmission medium.

近年、中央演算装置(CPU)による集中処理から複数
のワークステーションによる分離処理の時代になってき
た。そして、地理的に近接した構内やビル内にある計算
機を通信ネットワークで有機的に結合して2分散処理や
オフィスオートメーションを効率よく実行するローカル
エリアネットワーク (LAN)が注目されてきた。こ
のL A Nを有効に利用することによって、ワークス
テーシ、3ン間のプログラム、文字あるいは画像のテ゛
−タの転送あるいは大容量ノ(有ファイル装置への入出
力等が効率よく実行できる。■、ANの代表的な結合方
式にはハス型とリング型がある。バス型でもリング型で
も、LANに1几)では主にデータと送受信アルレス等
からなるパケットがy−夕転送のrIt位となるが、こ
の場合、複数のノー1−と呼ばれるワークステーション
が伝送媒体を共有するので。
In recent years, the era has shifted from centralized processing by a central processing unit (CPU) to separated processing by multiple workstations. Local area networks (LANs), which organically link computers located in geographically close campuses or buildings through communication networks to efficiently execute two-way distributed processing and office automation, have been attracting attention. By making effective use of this LAN, you can efficiently transfer programs, text, or image data between workstations and three computers, or input/output large-capacity data (input/output to devices with files).■ , Typical AN coupling methods include the lotus type and the ring type.In either the bus type or the ring type, in a LAN (one packet per LAN), packets mainly consisting of data and sending/receiving signals, etc. However, in this case, multiple workstations, called No. 1-, share the transmission medium.

媒体へのアクセスを調ザ、すなわち通信を行う場合のプ
lコトコルと呼ばれる通信規約に基づいて。
Access to the medium is controlled based on communication rules called protocols.

−7クセス選択を行うことが重要となる。従って。- It is important to make seven access selections. Therefore.

アクセス方式によってネットワークの基本的I11質。Basic I11 quality of the network depending on the access method.

すなわち、単位時間にいくつのパケットが伝送できるか
という伝送容ロ、故障の対策あるいはシステム設計の容
易さ等の性質が決定されることになる。
In other words, characteristics such as transmission capacity (how many packets can be transmitted per unit time), failure countermeasures, and ease of system design are determined.

〔従来の技術〕[Conventional technology]

従来、この種の1.八Nにお番」るアクセス方式にはC
3M八/へC、(Carrier 5ense mul
tipleaccess/collision det
ection ) 、タイムスロット方式そしてトーク
ンパッシング方式がある。C3MA/CF)方式は、イ
ーサネットに代表される方式で、送信すべきパケットを
持つノー1はハスが空いているならば即座に送信し、バ
スが使用中のとき送信を中止し再送するまで適当な時間
だけ待って再び送信する方式である。タイムスロ、1方
式は一定時間をノー]゛数に対応して分割し、各ノード
は決められたタイムスロソ]・期間のみパケットを送信
できるようにしたりあるいは要求に応じてタイムスロッ
トを割り当てる方式である。最後の1・−クンパッシン
グ方式は、送信権を表すフリート−クンと呼ばれるパケ
・7トを主にリング状の伝送媒体に循環させ、送信した
いノーじはトークンが廻ってくるまで待ち、  I−−
クンを中に取り込むことによってデータパケットを送信
し再びl・−クンを伝送媒体に出すという方式である。
Conventionally, this kind of 1. The access method for 8N is C.
3M8/HeC, (Carrier 5ense mul
tiple access/collision det
), time slot method, and token passing method. The C3MA/CF) method is a method typified by Ethernet, in which No. 1 that has a packet to send will immediately send it if the bus is free, and if the bus is in use, it will stop sending and send it as needed until resending. This method waits for a certain amount of time and then sends the message again. One method for time slots is to divide a fixed period of time according to a number of nodes, and each node is allowed to transmit packets only during a determined time slot period, or to allocate time slots according to requests. Finally, in the 1-kun passing method, packets called fleet tokens, which represent transmission rights, are mainly circulated through a ring-shaped transmission medium, and the nodes that want to send wait until a token comes around. −
In this method, a data packet is transmitted by taking in the l·-kun into the transmission medium, and then the l·-kun is sent out again to the transmission medium.

一般的に、LANのノー1゛の伝送媒体への結合方式に
は、バス型とリング型があるが、バス型ではC3MA/
CD法が主に使われるが、バス型の短所は、原理的にあ
まり長距離のネットワークや高速のネットワークには向
かないこと、および光ファイバが使用するのが難しく、
特に、負荷を増やしていくと衝突による遅延が増し、伝
送効率が低下するという欠点がある。そこで、負荷が多
い場合にはl・−クンリング方式が最も効率がよいとい
われている。すなわち、負荷を増しても遅延時間の変化
が急増せず伝送容量が高く、最大遅延時間はリング−周
の伝播遅延で決るという長所を持っている。しかし、短
所としては5 リング状の1つの断線の故障が全体に影
響したり、パケットが廻り続けたり、トークンが失われ
たりする現象があるので、これを対処する機能が必要と
なる。
In general, there are two types of coupling methods to the No. 1 transmission medium of LAN: bus type and ring type.
The CD method is mainly used, but the disadvantages of the bus method are that it is not suitable for long-distance or high-speed networks in principle, and that optical fiber is difficult to use.
In particular, as the load increases, delays due to collisions increase and transmission efficiency decreases. Therefore, when the load is large, the l·-Kunling method is said to be the most efficient. That is, it has the advantage that even when the load is increased, the change in delay time does not increase rapidly, the transmission capacity is high, and the maximum delay time is determined by the propagation delay between the rings. However, the disadvantages are that a failure of one disconnection in the 5-ring will affect the whole, packets will continue to circulate, and tokens will be lost, so a function to deal with this is required.

従来、この種のトークンリング方式の媒体アクセス制御
のほとんどが各ノード内にあるファームウェアを使って
実行されていた。従ってトークンを捕捉した後フレーム
データを送信しトークンを再び送出させる制御をファー
ムウェアで実行している間は、ファームウェアは他の仕
事を実行することはできず、従って、各ノードスルーブ
ツトが低下するばかりでなく、システム全体の通信効率
が低下するという欠点を持っていた。
Traditionally, most of this type of token ring media access control has been performed using firmware within each node. Therefore, while the firmware is executing the control to capture the token, transmit the frame data, and send the token again, the firmware cannot perform any other work, and therefore the throughput of each node decreases. Not only that, but it also had the disadvantage of reducing the communication efficiency of the entire system.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

本発明は従来のこのような上記欠点を解除するために、
トークンリング方式において、l・−クンを捕捉した後
フレームデータを送信しトークンを再び送出させるとい
う状態制御をファームウェアとは独立に専用ハードウェ
アで実行できるように。
In order to eliminate the above-mentioned drawbacks of the conventional technology, the present invention has the following features:
In the token ring system, state control such as transmitting frame data after capturing l-kun and sending the token again can be performed by dedicated hardware independently of firmware.

専用ハードウェアとファームウェアをいかに分割するか
という問題を解決するものである。
This solves the problem of how to separate dedicated hardware and firmware.

〔問題を解決するための手段〕[Means to solve the problem]

本発明は、リング状の伝送媒体のアクセス権のコントロ
ールをトークンにより行うローカルエリアネットワーク
において、各ノードがリングとの結合状態をチェックす
るために、自ノード宛にフレームを送信し、その結果の
準備ができた時点。
The present invention is a local area network in which access rights to a ring-shaped transmission medium are controlled using tokens, in which each node transmits a frame addressed to its own node in order to check the state of connection with the ring, and prepares the results. At the point when it was completed.

すなわち、ソースアドレスが自ノードであることをチェ
ックできたときそしてFCSエラーが自ノードで検出し
たのか他ノードで検出したかをチェックできた時点で割
込により、内部のブロモ・ノサに通知し、その内容をレ
ジスタで表示することを特徴とするリング状態割込方式
を提供することにある。
In other words, when it is possible to check that the source address is the own node, and when it is possible to check whether the FCS error was detected on the own node or on another node, an interrupt is used to notify the internal Bromo Nosa, An object of the present invention is to provide a ring state interrupt method characterized by displaying the contents in a register.

〔作  用〕[For production]

本発明は、自分がリングに結合しているかを試験するた
めに自ノーl−にフレームを送1言し、フレーム内のソ
ースアドレスが自ノー1アlレスかと゛うかを専用l、
S■がチェックし、その結果に基づいて、ファームウェ
アに割込を発生するようにしたものである。
The present invention sends a frame to its own node in order to test whether it is connected to the ring, and determines whether the source address in the frame is the own node's address using a dedicated node.
S■ checks the information and generates an interrupt to the firmware based on the result.

(実 施 例〕 次に本発明の実施例を図面を参照して説明する。(Example〕 Next, embodiments of the present invention will be described with reference to the drawings.

第1図fat、 (blは1本発明のリング状態割込方
式を説明するブ1コック図で、リング状の通信路にノー
ドと呼ばれる計算機が複数個接続されたローカルネット
ワーク(1,AN)において、フリート−クン(以下単
に“トークン”と呼ぶ)を捕捉したノードのみが送信権
をもつというトークン方式の原理に基づいて、1つのノ
ー1−“がリング結合しているかを試験するために自ノ
ーl′にフレームを送信し、フレーム内のソースアI・
レスが自ノードアドレスかを専用LSIがチェックし、
その結果に基づいてマイクロプログラム(ファームウェ
ア)に割込を発生させる方式を示している。
Figure 1 fat, (bl is a block diagram explaining the ring state interrupt method of the present invention, in a local network (1, AN) in which a plurality of computers called nodes are connected to a ring-shaped communication path. , based on the principle of the token method that only the node that captures a free token (hereinafter simply referred to as a "token") has the right to transmit, an automatic Send a frame to node l', and
The dedicated LSI checks whether the address is the own node address,
A method is shown in which an interrupt is generated in the microprogram (firmware) based on the result.

トークンパッシング方式の場合、一般的には3バイトか
らなるl−クンをリングに廻したときあるノー1′がそ
のl−クンを捕捉したとき送信権をもちデータフレーム
を流すことになる。ノーlが送信を終えたときどの時点
で1−クンを解放するかということはいくつかのT法が
あるが1本実施例ではそのノーI・はデータフレームを
流し終ったときl−−クンを流ずことによって、他のノ
ー1に送信権を譲るという手法に従う。すなわちアルゴ
リズムは、パケットを送出し終るとすくに1・−クンを
解放する。上記l−クンパッシング方式について、第3
図について説明する。例えば、第3図falは、リング
状に4つのノードA、B、C,Dが接続されている場合
、フリー1−−クンがCとDの間にあって、全てのノー
1”、 A、 B、 C,Dのどのノードもi・−クン
を捕捉していない状態で、フレームを受信し、同じデー
タを流すことができるリピート状態である。同図(bl
ではノードDがフリート−クンを捕捉した状態で該ノー
ドDはトークン保持状態すなわち、フレームを送信する
権利の待ち状態となる。
In the case of the token passing method, when a 3-byte L-kun is passed around the ring and a certain No1' captures the L-kun, it has the right to transmit and sends a data frame. There are several methods for determining when to release the 1-kun when the node finishes transmitting, but in this embodiment, the 1-kun is released when the data frame has finished being transmitted. The method is to transfer the transmission right to another No. 1 by transmitting the ``No. 1''. That is, the algorithm releases 1.-kun as soon as it finishes sending out the packet. Regarding the above l-kun passing method, the third
The diagram will be explained. For example, in Fig. 3 fal, if four nodes A, B, C, and D are connected in a ring, free 1--kun is between C and D, and all nodes 1'', A, B This is a repeat state in which the frame can be received and the same data can be streamed even though none of the nodes C, D, and C have captured the i-kun.
Now, when node D has captured the fleet token, node D enters a token holding state, that is, a waiting state for the right to transmit a frame.

この時、他のノー1゛A、  l’3.  C,Dはリ
ピート状態のままである。同図fclでは9ノー1”D
はトークン保持状態を継続しながら、ビジートークンを
リングに送出した状態である。従って、ノーFDの1・
−クン保持状態ではビジートークンを送出できるが、他
のリピート状態のノードA、B、Cはフリート−クン及
びビジートークンをリピートすることとなる。
At this time, other No.1゛A, l'3. C and D remain in the repeat state. In the same figure fcl, 9 no 1”D
is a state in which a busy token is sent to the ring while continuing to hold a token. Therefore, no FD 1.
- Busy tokens can be sent in the fleet hold state, but other nodes A, B, and C in the repeat state will repeat fleet tokens and busy tokens.

同図fd)では、ノ〜l”r)がフレームを送出終了し
り状態で、トークン送出状態となる。同図(elでは。
In fd) in the same figure, the state where no~l''r) is about to finish transmitting the frame is in the token sending state. In the same figure (el).

ノードDはトークン送出状態を継続しているが。Node D continues to be in the token sending state.

リピート状態にあるノードBがフレームを受信している
状態である。同図fflでは、ノードDがトークン送出
状態を継続しながらフレームのヘッダを認識した場合、
フリート−クンを送出し、ビジート−クンを除去する状
態である。そして、同図(glに示すように、ノードD
はビジートークンの除去を終了し、再びリピート状態に
なった状態である。
A Node B in a repeat state is receiving frames. In ffl of the same figure, when node D recognizes the frame header while continuing the token sending state,
This is a state in which free tokens are sent out and busy tokens are removed. Then, as shown in the same figure (gl), node D
has finished removing the busy token and is in the repeat state again.

従って、トークン保持状態と1−−クン送出状態ではフ
レームはリピートされないこととなる。このようなトー
クンパッシング方式では各ノー1′が実際にどのように
アクセス制御するかが問題になる。
Therefore, frames are not repeated in the token holding state and the 1--kun sending state. In such a token passing system, the problem is how each node 1' actually controls access.

第2図に状態遷移図を示す。トークンを捕捉した場合と
持たない場合を識別するためまずリピート状態■という
トークンを持たない状態を定義1−る。この状態ではリ
ング内の送信ノードからフレームデ〜りを受信するだけ
の機能を持っている。
Figure 2 shows a state transition diagram. In order to distinguish between cases in which a token is captured and cases in which a token is not captured, a state in which no token is captured, called repeat state (1), is first defined. In this state, it only has the function of receiving frame data from transmitting nodes within the ring.

また、この状態では、受信と同時に同じデータを流すと
いういわゆるリピートという機能をもっている。この状
態において、トークンを捕捉するとトークン保持状態■
になり、送信できる状態になる。そして、フレームデー
タを送信し終るとトークンを放すことになるが、その状
態になるまでの間をトークン送出状態■と呼ぶ。そして
トークン送出終了後、再びリピート状態■となる。この
ようにリングもノードが正常である場合は各ノードはご
の■、■、■の各状態を繰り返すことになる。
Additionally, in this state, it has a so-called repeat function that allows the same data to be streamed at the same time it is received. In this state, when a token is captured, the token is held.■
and is ready to send. When the frame data has been transmitted, the token is released, and the period until this state is reached is called the token sending state (■). After the token transmission is finished, the repeat state returns to ■. In this way, if the nodes in the ring are normal, each node will repeat the states ①, ②, and ②.

各ノードはリピート状態でないときには自己フレームを
除去するという機能も持一つ。すなわち。
Each node also has the function of removing its own frame when it is not in a repeat state. Namely.

自分が1・−クン保持状態■でありフレームデータを送
出したとき自分のとごろまでそのフレーJ、データが戻
ってきたときにはそのフレ−ムデータを除去して、その
データがリングを何度も廻ることを防止し、かつフレー
ムの吸収が終了されることを確認する機能を含む。
When you are in the 1-kun holding state■ and send out frame data, that frame J is sent all the way to you, and when the data comes back, that frame data is removed and the data goes around the ring many times. This includes a function to prevent this and confirm that frame absorption is completed.

また、各ノードにはトークンがなくなったとき再生する
という機能をもつが、でたらめに再生ずるのではなく特
定なノー]・、ずなわらアクティブモニタ(A M)と
呼ばれるノードのみが再生できるようにしている。この
とき、アクティブモニタでないノード1すなわち、トー
クンの再生を実行しない普通のノードはパンシブモニタ
(PM)と吋ふ。このような本方式ではさらに、AMに
なるシーケンスあるいはトークンを再生するシーケンス
、あるいはリングの断線時に異常通知フレームを出すた
めのシーケンスが状態遷移としである。
In addition, each node has a function to regenerate tokens when they run out, but instead of randomly regenerating tokens, only nodes called Zunawara Active Monitors (AM) can regenerate tokens. ing. At this time, node 1, which is not an active monitor, ie, a normal node that does not perform token regeneration, is called a passive monitor (PM). In this system, furthermore, the state transition is a sequence for becoming an AM, a sequence for reproducing a token, or a sequence for issuing an abnormality notification frame when a ring is disconnected.

トークン再生するための状態をトークン再生状態■と呼
び、そしてPMにおいて、AMになるためのフレームを
送信する状態をモニタリカバリイ状態■と呼び、さらに
、異常通知フレームを再生している状態をビーコン送出
状態■と呼ぶ。
The state for reproducing a token is called the token regeneration state ■, the state in which PM transmits a frame to become an AM is called the monitor recovery state ■, and the state in which an error notification frame is being regenerated is called a beacon state This is called the sending state ■.

AMになるための条件として、遷移状態を監視するタイ
マがあり、それにはタイマ11〜15がある。タイマ1
1はT1タイマと呼ばれ、フレームがリングから流れて
こないことを時間で監視しており、一定時間流れてこな
いとき、すなわち]−−クンおよびフレームの両方が流
れてこない比較的短い時間TIを測定する。これは、ト
ークン再生するためのタイマである。T2タイマ12は
PMでもAMでも起動するがトークンのみが流れてこな
い比較的長い時間を監視しているタイマである。これは
、たとえば、断線あるいはAMなしゝの異常状態の場合
でトークンは流れないことになる。T2の時間は普通1
〜2秒である。T2タイムアウトになると断線よりもま
ず“トークンなし”として判断するために、まずPMは
モニタリカバリイ状態■となる。T3タイマ13は、ト
ークン保持状態■でl−−クンを保持する時間を制限す
るタイマである。T4タイマ14は、トークン送出状態
■で動作し、トークンを出すタイミングを制御する。す
なわちフレームを送出後ヘッダを認知するまではl・−
クンを出さないようにするための時間を監視するのであ
る。すなわち、PMにおいて、フレームがこわれたとき
はT4タイムアウトになるので、このことによって、フ
レームがこわれたと判断してトークンを意識的に出すよ
うに制御する。T5タイマ15ば、モニタリヵバリイ状
態■でモニタリカバリイフレームというフレームを何度
か出すことになり、これを出すタイミングを測るタイマ
である。
As a condition for becoming an AM, there is a timer that monitors the transition state, and these include timers 11 to 15. timer 1
1 is called the T1 timer, and it monitors the time that frames do not flow from the ring. Measure. This is a timer for token regeneration. The T2 timer 12 is activated in both PM and AM, but is a timer that monitors a relatively long time when only tokens do not flow. This means that, for example, in the case of an abnormal state such as a disconnection or no AM, the token will not flow. T2 time is usually 1
~2 seconds. When the T2 timeout occurs, the PM first enters the monitor recovery state (■) in order to determine that there is "no token" rather than a disconnection. The T3 timer 13 is a timer that limits the time that l--kun is held in the token holding state (2). The T4 timer 14 operates in the token sending state (2) and controls the timing of issuing tokens. In other words, after sending the frame and until the header is recognized, l・-
I monitor the time to make sure I don't get angry. That is, in the PM, when a frame is broken, a T4 timeout occurs, so it is determined that the frame is broken and a token is intentionally issued. The T5 timer 15 is a timer that measures the timing at which frames called monitor recovery frames are issued several times in the monitor recovery state (2).

次にこれらのタイマT+−Taを使ってAM状態を生成
するシーケンスについて説明する。まず電源投入時にノ
ードはPMのリピート状態である。
Next, a sequence for generating an AM state using these timers T+-Ta will be explained. First, when the power is turned on, the node is in the PM repeat state.

この状態でI・−クンがこないときにはトークン保持状
態■にもなれないので、Ttタイマがその時間を測定し
ている。T2タイムアウト(1〜2秒)になるとそのノ
ードはモニタリカバリイ状態■となる。モニタリカバリ
イ状態■となったノードはモニタリカバリイフレームと
いうリカバリイ用のフレームを送出する。そのフレーム
の中にはソースとディスティネーションのアドレスフィ
ール1′があり、ソースアドレスは自分のアドレスであ
るので、これによってリング内の同時にリピート状態に
あるノード間の競合を防止する。すなわちAMになろう
とするノードへの要求がモニタリカバリイフレームの送
出であるが、自分がモニタリカバリイ状態■であって他
からのモニタリカバリイフレームを受けとったとき、フ
レーム内のソースアドレス(SA)とマイアドレス(M
A)と比較する。S A >MAであればそのノードは
モニタリカバリイ状態■を放棄し、リピート状態■にな
る。そして、そのフレームが下流に廻るようにする。こ
れを繰り返すと、T2タイムアウトになったノードのう
ち1つだけ最大アドレスのノードのみがリピート状態■
でなくモニタリカバリイ状態■を維持する。そしてTa
(数is)時間モニタリカハワイ状態■を続ける。すな
わちモニタリカノ\リイフレームを送出して、最後に残
ったモニタリカハリイ状態■のノー1でSA=MAにな
ったとき初めて、そのノードはAM状態になれると認識
する。そしてAM状態のリピート状態■になって普通の
受信状態になり、リングではこれのみがAMとなる。ノ
ード“のAM状態のリピート状態■において1・−クン
が捕捉できずTIタイムアウト(数−113)となった
とき、そのAMノーIはトークン再生状態■となり、リ
ングパージフレーム(RPF)という特定のフレームを
送出する。これはトークンを持たない状態でありながら
フレームを流すことができる状態である。このRPFを
送出すると、そのAMノーl−“はl−−クン送出状態
■になる。すなわちリングは再び“トークンあり”の状
態になり、このAMノードは正常の3状態■。
In this state, if I-kun does not come, the token holding state (■) cannot be reached, so the Tt timer measures the time. When the T2 timeout (1 to 2 seconds) occurs, the node enters the monitor recovery state (■). A node in the monitor recovery state ■ sends out a frame for recovery called a monitor recovery frame. There are source and destination address fields 1' in the frame, and since the source address is its own address, this prevents conflicts between nodes in the ring that are repeating at the same time. In other words, a request to a node that wants to become an AM is to send a monitor recovery frame, but when it is in the monitor recovery state and receives a monitor recovery frame from another node, the source address (SA ) and my address (M
Compare with A). If S A >MA, the node abandons the monitor recovery state (■) and enters the repeat state (■). The frame is then routed downstream. If you repeat this, only one node with the maximum address among the nodes that have reached T2 timeout will be in the repeat state.■
■ Maintain the monitor recovery status. And Ta
(number is) time monitor Hawaii state ■ Continue. That is, the node recognizes that it can enter the AM state only when it sends out the monitor frame and SA=MA in the No 1 of the last remaining monitor state (■). Then, the state becomes the AM state repeat state (3) and becomes the normal reception state, and this becomes the only AM state in the ring. When 1-kun cannot be captured and the TI timeout (number -113) occurs in the repeat state ■ of the AM state of the node "," the AM node enters the token regeneration state ■, and a specific message called a ring purge frame (RPF) is sent. A frame is sent out. This is a state in which a frame can be streamed even though it does not have a token. When this RPF is sent out, the AM node l-" enters the l--kun sending state (2). In other words, the ring is again in the "token present" state, and this AM node is in the normal three states ■.

■、■を続ける。PMも同じく■、■、■の状態を継続
することになる。なお、リングのどこかが断線している
ときは、あるノードはリピート状態■からモニタリカハ
リイ状態■に遷移することになるが、このときは断線し
ているので自分のアlルスMAがなくなり、リトライア
ウH0出するところまで遷移し、これを100回くらい
繰り返してもだめなときビーコン送出状態■となる。こ
れはリング内の通信路が断線している場所のすく下のノ
ー1゛がこの状態となり、このノー1′とそのLのノー
I・との間で断線となっている可能性があり。
Continue ■ and ■. PM also continues in the states of ■, ■, and ■. In addition, if there is a disconnection somewhere in the ring, a certain node will transition from the repeat state ■ to the monitoring state ■, but in this case, since the wire is disconnected, its own ALUS MA will disappear. , the state changes to the point where the retry-out H0 is issued, and when this is repeated about 100 times without success, the state becomes the beacon sending state (■). This is because the node 1' below the location where the communication path in the ring is disconnected is in this state, and there is a possibility that the disconnection occurs between this node 1' and the node I of the L.

断線の検出もできることになる。It is also possible to detect wire breaks.

次に、上記した3つの状態すなわちリピート状p、  
l・−クン保持状態およびl・−クン送出状態を使って
ノーマルな制御をプロセッサの制御を介さずに行う専用
バーl゛ウェアについて述べる。
Next, the three states mentioned above, namely repeat-like p,
Described below is a dedicated software that uses the l.-kun hold state and the l.-kun send state to perform normal control without involving processor control.

トークンパッシングコントローラ(TPC)10は、第
4図に示すように、各ノーlのアダプタ内に1つ含まれ
ており、共通ハス60にマイクロプロセッサ20.イニ
シャライズルーチン格納用のROM30.プログラム格
納用のRAM40および送信/受信バッファ50ととも
にその共通ハス60に接続され、リング通信路の他のノ
ードからビットシリアルで転送されてきた受信データ6
00をリピート状態において同期を取りながら入力し、
マイクロプロセッサ2つの制御を介さずに受信フレーム
データを受信バッファ50を介してメインメモリRAM
にDMA転送した後、マイクロプロセッサ20で処理し
結果をRAM40に格納する。その結果の内、他のノー
ドに転送すべきデータは、共通データバス60を介して
DMAで送信/受信バッファ50に転送され送信となる
A token passing controller (TPC) 10 is included in each node adapter, as shown in FIG. 4, and a microprocessor 20 . ROM 30 for storing initialization routines. The received data 6 is connected to the common lot 60 together with the RAM 40 for storing programs and the transmitting/receiving buffer 50, and is transferred bit serially from other nodes on the ring communication path.
Input 00 while synchronizing in the repeat state,
The received frame data is transferred to the main memory RAM via the receive buffer 50 without the control of two microprocessors.
After DMA transfer, the microprocessor 20 processes the data and stores the result in the RAM 40. Among the results, data to be transferred to other nodes is transferred to the transmit/receive buffer 50 by DMA via the common data bus 60 for transmission.

そして下位ノードからトークンが転送されてきた場合に
は、TPOはリピート状態からトークン保持状態に遷移
するように制御し、送信バッファ50からの送信データ
フレームを送出し終った時点において5 トークン送出
状態に遷移するように制御する。そして最後にトークン
を送出し、フレームの最終バイトを検出することによっ
て再びリピート状態へ移行する制御を実行する。このT
POの存在によって、このようなアクセス制御用の状態
遷移をマイクロプロセッサ20の制御を介さずに行うこ
とができる。このTPOは第5図に示すように、リピー
ト状態において受信するビットジリアルデータ600を
直並列変換して得られるハイドデータ1010を制御回
路103の制御の下で受信回路102に転送し、同期制
御して受信バッファ50に転送する。そして、1・−ク
ン捕捉後、トークン保持状態からトークン送出状態にお
いて制御回路103の制御下で送信ハソファ50から転
送されてくるフレームデータを送信回路に転送し同期制
御してリピート回路101よりバイトを並直列変換して
フレームおよび1−クンをビットシリアルに出力601
より出力する。
When a token is transferred from a lower node, the TPO controls the transition from the repeat state to the token holding state, and returns to the 5 token sending state when the sending data frame from the sending buffer 50 is finished being sent. Control the transition. Finally, by sending out a token and detecting the last byte of the frame, control is executed to shift to the repeat state again. This T
Due to the existence of PO, such state transition for access control can be performed without being controlled by the microprocessor 20. As shown in FIG. 5, this TPO transfers hide data 1010 obtained by serial-to-parallel conversion of bit serial data 600 received in the repeat state to the receiving circuit 102 under the control of the control circuit 103, and performs synchronous control. and transfers it to the reception buffer 50. After capturing 1.-kun, the frame data transferred from the transmitting sofa 50 is transferred to the transmitting circuit under the control of the control circuit 103 from the token holding state to the token sending state, and the byte is sent from the repeat circuit 101 under synchronous control. Parallel to serial conversion and output frame and 1-kun in bit serial format 601
Output from

次にTPCのリピート回路101とその周辺回路につい
て第6図を用いて説明する。
Next, the TPC repeat circuit 101 and its peripheral circuits will be explained using FIG. 6.

ビットシリアルで転送されてくる600のデータRXD
はまず直並列変換回路R3R10]2でバイトに直す。
600 data RXD transferred in bit serial
is first converted into bytes using the serial/parallel conversion circuit R3R10]2.

このときまずフレームであるかどうかをみるために特定
なFSパターン(010101010)をデータ線60
0に流し、そのフレームの先頭パターンを同じFSパタ
ーンとを比較して一致するかどうかを一致回路1013
で稠べる。フレームは9ビットバイト、たとえば、FS
パターンの9ビツトを先頭に、MAC3fl1オンよび
M A CS (21がそれぞれ9ヒツトハイド、その
1!&デイステイネーシヨンアl゛L−スおよびソース
アルレスがそれぞれ6バイl−、mマンlとデータがn
ハイ1.そしてチェック=r−1が4ハイドでファイル
エンl”(Fl”:)コー1−が1ハイド、最後にステ
ィタスが1バイトとなるようにフィルl構成されCいる
。まずハ・イトになるためR2Hでシリアルパラレル変
換され、そのピノ1パターンとFSパターンと比較され
て一致した場合はフレーノ、の先頭であることが確認さ
れるので、フレーム受信開始というフリップフロップF
F]OI4ずなわらRXFRM信号がセノl−される。
At this time, first, to check whether it is a frame, a specific FS pattern (010101010) is connected to the data line 60.
0, and the matching circuit 1013 compares the first pattern of the frame with the same FS pattern and determines whether they match.
It becomes thicker. A frame is a 9-bit byte, e.g.
Starting with the 9 bits of the pattern, MAC3fl1 on and MACS (21 are each 9 hithide, 1! & destination arse and source alres are 6byl-, mmanl and data respectively) is n
High 1. Then, the fill is configured such that check=r-1 is 4 hides, file enl''(Fl'':) code 1- is 1 hide, and finally status is 1 byte. First, it is serial-parallel converted in R2H to become a high-item pattern, and the Pino 1 pattern is compared with the FS pattern, and if they match, it is confirmed that it is the beginning of Freno, so the flip-flop F is used to start frame reception.
F] The RXFRM signal is sent to OI4.

FSパターンの次のlハイドは9ビット時間後なのでフ
レーム先頭時にリセットされる4ビツトカウンタ101
5によって0から8までカランl−L、RCM=8にな
ったとき1 リピート回路は、R3Hが次のバイトを七
ソI・していることを知る。そしてこのシーケンスがフ
レーム内で繰り返される。一方、BFAバッファl01
7は各バイトを一時保持するものである。この一時保持
されたハイドデータIJ受信回路に転送されて受信シー
ケンスカウンタ(R3CN)と受信子じレス力うンタ(
RA CN)を使ってフレーム内の各フィールI゛を識
別する。そして、前者はフィール1内のバイト数をカラ
ンl−し、それによってハイlがどのようなものである
かがわかる。すなわち、そのハイドがア]ルス部であれ
ば、あらかじめ用意されたアドレスと比較の実行ができ
、たとえばSAとMAの比較を行うことができることに
なる。また、もし、=1マン1′部であれば、それを使
って、モニタリカハリイ状態■においてSAとMAのア
Iルスを比較せよというシーケンスに移るように接続す
ることができる。
Since the next l hide of the FS pattern is 9 bits later, the 4-bit counter 101 is reset at the beginning of the frame.
When RCM = 8, the repeat circuit knows that R3H is carrying out the next byte seven times. This sequence is then repeated within the frame. On the other hand, BFA buffer l01
7 is for temporarily holding each byte. This temporarily held hide data is transferred to the IJ receiving circuit and is input to the receiving sequence counter (R3CN) and the receiving sequence counter (
RA CN) is used to identify each field I' within the frame. Then, the former calculates the number of bytes in field 1, and thereby knows what high l is. That is, if the hide is an address part, a comparison can be performed with a previously prepared address, for example, SA and MA can be compared. Further, if = 1man 1' part, it can be used to connect to the sequence of comparing SA and MA AI in the monitoring state (2).

HFAバッファ1017に接続された2つのレジスタB
FEとBFOは同期合せのための/’(7フアである。
Two registers B connected to HFA buffer 1017
FE and BFO are /' (7 doors) for synchronization.

すなわち、受信データからピノl−同期して得られた自
己同期クロックと再び送信するクロ・7りとは違うため
それをカバーするため、UFOとBFEがあり、それぞ
れは、クロック位相の進みと遅れに従ってデータをずら
してバッファリングしバイトoddとevenとを交互
にセットするようにしている。このようにして入力され
たフレームはBFEとBFOに人力するがそこから取り
出すかどうかを制御回路で決めて送信用レジスタTSR
1020に入れる。TSR1020はパラレルイン・シ
リアルアウトのシフトレジスタである。
In other words, there is a difference between the self-synchronized clock obtained by synchronizing the received data with the clock that is transmitted again, and to cover this, there are UFO and BFE, and each has a lead and a lag in the clock phase. The data is shifted and buffered according to the data, and bytes odd and even are set alternately. The frame input in this way is manually sent to the BFE and BFO, and the control circuit decides whether to take it out from there or not and registers the transmission register TSR.
Enter 1020. TSR1020 is a parallel-in/serial-out shift register.

このTSR1020に接続されたTFGフリップフロッ
プは1.!:Oを交互に発生する発生器であり。
The TFG flip-flops connected to this TSR1020 are 1. ! :It is a generator that generates O alternately.

送信フレームがないときはTSRがその1010・・・
というパターンを送信するようにしている。
When there is no frame to send, the TSR is 1010...
I am trying to send this pattern.

こうすることによってリピート状態であるかないかを制
御できることになる。
By doing this, it becomes possible to control whether the state is in a repeat state or not.

次に第2図の状態遷移図の各状態に対応して。Next, correspond to each state in the state transition diagram of FIG.

TPOのステータス制御部内に存在する状態表現用の状
態フリップフロップについて第7図を使って説明する。
The state flip-flop for state expression existing in the status control section of the TPO will be explained using FIG.

TPCの状態フリップフロップ(F/F)には5アクテ
イブモニタ(AM)、  リピート(REP)。
The TPC state flip-flop (F/F) has 5 active monitors (AM) and repeats (REP).

1・−クン保持(TKNIID)、  トークン送出(
T2l− KNPS)、  トークン再生(TKNGR)、モニタ
リカバリイ (MREC)、  ビーコン送出(BCP
S)の各状態をそれぞれ表現するFO,Fl。
1-kun hold (TKNIID), token send (
T2l-KNPS), token regeneration (TKNGR), monitor recovery (MREC), beacon transmission (BCP)
FO and Fl each express each state of S).

F2.R3,R4,R5,R6がある。まず、電源投入
時にはFlのリピートF/Fが1″にセントされる。ま
たは、ファームウェアによる初期設定時においてもFl
は“1”にセットされる。
F2. There are R3, R4, R5, and R6. First, when the power is turned on, the Fl repeat F/F is set to 1''.Alternatively, the Fl repeat F/F is set to 1" at the time of initial setting by firmware.
is set to "1".

このときこのノードはパッシングモニタ状態のリピート
状態となる。TPOのリピート回路101にトークンが
入力すると、FS、MAC3,FIEの3バイトから構
成される。このトークンは順にBFAバッファ1017
にラッチされ、TCPがトークン捕捉を認識すると、F
lのリピートF/Fをリセノl−L、、F2の1・−ク
ン保持F/Fが 1”にセットされる。このとき、  
l−−クンはこのノードによって吸収された状態であり
、トークンはリピートされず、 kill状態となって
、下位ノードに転送されないことになる。トークン保持
F/Fが“1”にセットされている間、送信バッファ5
0で用意された送信フレームをリピート回路101内の
TSR] 020に送り送信する。
At this time, this node enters the repeat state of the passing monitor state. When a token is input to the TPO repeat circuit 101, it is composed of three bytes: FS, MAC3, and FIE. This token is in turn BFA buffer 1017
When TCP recognizes token capture, F
The repeat F/F of 1 is set to 1", and the 1-kun holding F/F of F2 is set to 1".At this time,
The l--kun is in a state that has been absorbed by this node, and the token is not repeated, becomes a kill state, and is not forwarded to lower nodes. While the token holding F/F is set to “1”, the transmission buffer 5
The transmission frame prepared in step 0 is sent to TSR] 020 in the repeat circuit 101 for transmission.

送信終了時にl・−クン送出状態となり、F2のトーク
ン保持F/FをリセットしF3のトークン送III F
 / Fを“1”にセットする。フレーム送出後トーク
ンを送出すると再びリピート状態となるので、トークン
送出F/Fをリセットすると同時に。
At the end of transmission, it enters the l-kun sending state, resets the token holding F/F of F2, and sends the token of F3 III F
/ Set F to “1”. If you send a token after sending a frame, it will go into a repeat state again, so at the same time you reset the token sending F/F.

再びFlのリピートF/Fを“1゛にセノI・する。Set the FL repeat F/F to "1" again.

FlのリピートF/Fが“1”にセットされノードがリ
ピート状態にあるとき、T2タイマにおいてタイムアラ
I・となると、モニタリカバリイ状態を表現するFSの
モニタリカハリイF/Fが“l”にセットされる。そし
て、モニタリカハリイフレームをTSR1020を介し
てリングに転送し。
When the repeat F/F of Fl is set to "1" and the node is in the repeat state, when a time error occurs in the T2 timer, the monitor recovery F/F of the FS, which represents the monitor recovery state, becomes "l". Set. Then, the monitor frame is transferred to the ring via the TSR1020.

そのフレームがリングを巡回して帰還されたかどうかを
みて、フレーム内のソーステ1ζレス(S A)と自分
のアドレス(MA)を比較する。前述したように、SA
>MAのときにはリピート状態にもどるために、FSの
モニタリカバリイF/Fをリセットする。そして、SA
=MAとなった場合には、このノードがアクティブモニ
タとなるために。
It checks whether the frame has been returned after circulating around the ring, and compares the source address (SA) in the frame with its own address (MA). As mentioned above, SA
> When MA, reset the FS monitor recovery F/F to return to the repeat state. And S.A.
= MA, this node becomes the active monitor.

F5のモニタリカハリイF/Fをリセットすると同時に
FOのアクティブモニタF/Fを“11にセットし、さ
らにFlのリビー1− F / Fも“l”にセットす
る。すなわち、このノードはアクティブモニタ状態のリ
ピート状態となる。そして、1−クン保持、トークン送
出、そしてリピートを繰り返すことができれば、F2.
F3がセットされながら3つの状態を繰り返す。しかし
リピート状態で、TIタイマにおいてT+タイムアウト
となると、F4のトークン再生F/Fが“1′にセット
される。トークンを再生してリングに転送されるとF4
はす七ノドされ、トークン送出状態を表現するトークン
送出F/Fが“1”にセットされてトークンが再生され
る。なお、パッシブモニタ状態でSAとMAを比較した
とき、Taタイム内で常にSA≠MAであるときは、こ
のノー]゛はアクティブモニタにはなれず、ビーコン送
出状態となるので、F6のビーコン送出F/Fが1”に
セントされる。また5 このF6はBCF受信時にはリ
ピート状態となるのでリセットされるが断線検出した場
合には再びセントされる。
At the same time as resetting the monitor F/F of F5, the active monitor F/F of FO is set to "11", and the F/F of Fl is also set to "l".In other words, this node is set to the active monitor F/F. The state becomes a repeat state.If it is possible to repeat 1-kun holding, token sending, and repeat, then F2.
The three states are repeated while F3 is set. However, in the repeat state, when the TI timer reaches T+timeout, the token regeneration F/F of F4 is set to "1'. When the token is regenerated and transferred to the ring, F4
The token is reproduced by setting the token sending F/F representing the token sending state to "1". Note that when comparing SA and MA in the passive monitor state, if SA≠MA is always within Ta time, this NO] cannot become an active monitor and will be in the beacon sending state, so the beacon sending F of F6 /F is set to 1".F6 is reset because it is in a repeat state when BCF is received, but it is set again when a disconnection is detected.

次に第8図を用いて、TPCのMAC遷移割込方式を説
明する。
Next, the TPC MAC transition interrupt method will be explained using FIG.

TPCは、各ノー1ζがMAC制御を行うために。TPC for each node 1ζ to perform MAC control.

第2図に示した状態遷移図において、■、■、■の正常
状態と■、■、■のりカバリイ状態に分類し、正常状態
の状態間の遷移はノードのプロセッサ20に通知せずに
TPCが実行し、リピート状態の状態間の遷移はプロセ
ッサ20に“割込。
In the state transition diagram shown in FIG. 2, the normal states (■, ■, ■) and the recovery states (■, ■, ■) are classified, and transitions between the normal states are performed by TPC without notifying the processor 20 of the node. is executed, and the transition between the repeat states is executed by the processor 20 as an "interrupt".

により通知し、遷移する理由を割込原因表示レジスタに
よりプロセッサ20のファームウェアに提示することを
特徴とする。すなわち、正常時のフレーム、トークンの
送出再生のフォーマントやタイミングの正常状態の制御
はTPOのLSIでファームウェアが意識せずに自動で
独立に行い。
The feature is that the reason for the transition is presented to the firmware of the processor 20 by an interrupt cause display register. That is, the normal state control of frames and token transmission/reproduction formants and timing is automatically and independently performed by the TPO LSI without the firmware being aware of it.

“トークンなし”あるいは”AMなし”等に対するリカ
バリイはファームウェアに割込で通知するようにして制
御することによって2時間的な損失を除去することにな
る。もし5すべでの状態遷移をすべてファームウェアで
実行するとトークンを捕捉してフレームを送出してl・
−クンを送出するまでの正常状態の遷移にはかなりの遅
延があり。
Recovery for "no token" or "no AM" etc. is controlled by notifying the firmware by interrupt, thereby eliminating the two-hour loss. If all the state transitions in all 5 are executed by firmware, it will capture the token and send out the frame.
- There is a considerable delay in the transition of the normal state until sending out the kun.

この間のマイクロプログラムで実行するべき他の仕事が
完全に待ち状態となるばかりでなくソフトウェア負担が
非常に大きくなる。しかし、偶発的に発生するりカバリ
イの制御はファームウェアに通知してすべてファームウ
ェアで実行するようにして効率を上げる。すなわち、“
トークンなし”5”AMなし”あるいは“断線”といっ
た偶発的な状態はファームウェア自身がリカバリイ用の
フレームを用意し、ファームウェアが意識してそのフレ
ームを送信し、結果のフレームもフレームウェアに通知
される。たとえばモニタリカバリイ状態■において、モ
ニタリカバリイフレームを送出したとき5その結果とし
て、SAとMAの比較はTPOのハードすなわちLSI
で実行するが、“AMになれ”という信号はファームウ
ェアに割込で通知する。そして、ファームウェアがAM
になったことを認識した場合には、ファームウェア自身
が状態を検知する。このように、リカバリイ状態におけ
るファームウェアへの割込には次のようなものがある。
During this time, other tasks that should be executed by the microprogram are not only put in a completely waiting state, but also the software load becomes extremely heavy. However, the control of accidental recovery is notified to the firmware and all execution is performed by the firmware, increasing efficiency. In other words, “
In the event of an accidental state such as "no token", "5", no AM, or "disconnection", the firmware itself prepares a frame for recovery, the firmware sends that frame consciously, and the resulting frame is also notified to the frameware. For example, when a monitor recovery frame is sent in the monitor recovery state 5, as a result, the comparison between SA and MA is based on the TPO hardware, that is, the LSI
However, the signal “become AM” is notified to the firmware by an interrupt. And the firmware is AM
If the firmware recognizes that it has become, the firmware itself detects the state. As described above, there are the following interrupts to the firmware in the recovery state.

T1タイマ割込: T1タイマはアクティブモニタリピート状態■のときに
動作し5 トークンまたはフレームのいずれも通過しな
いと数msでタイムアラI・になる。これは割込でファ
ームウェアに通知される。ファームウェアは状態をトー
クン再生状態■にセソI−1,,RPF(リングパージ
フレーム)を送出する。トークンまたはフレームが通過
するとT1タイマはりスタートする。
T1 timer interrupt: The T1 timer operates in the active monitor repeat state (■), and if no token or frame passes, a timeout occurs in a few ms. This is notified to the firmware via an interrupt. The firmware changes the state to the token regeneration state (2) and sends out a Seso I-1, RPF (ring purge frame). When a token or frame passes, a T1 timer starts.

T2タイマ割込: T2タイマはモニタリカバリイ状態■あるいはビーコン
送出状態■以外の状態において動作し、トークンが通過
しないと数秒でタイムアウトになる。これは割込でファ
ームウェアに通知される。ファームウェアは状態をモニ
タリカハリイ状態にセットし。
T2 timer interrupt: The T2 timer operates in a state other than the monitor recovery state ■ or the beacon sending state ■, and times out in a few seconds if no token passes. This is notified to the firmware via an interrupt. The firmware sets the state to the monitor state.

MRFを送出する。i−−クンが通過するとリスタート
する。
Send MRF. When i--kun passes, it restarts.

T5タイマ割込: T3タイマはモニタリカバリイ状態■において動作し、
数msでタイムアラ1になる。
T5 timer interrupt: The T3 timer operates in the monitor recovery state.
The timer becomes 1 in a few ms.

これは割込でファームウェアに通知される。This is notified to the firmware via an interrupt.

ファームウェアは状態は変更せず、再びモニタリカハリ
イフレームを送出する。
The firmware does not change the state and sends the monitor frame again.

AMM得割込: モニタリカバリイ状態■において、SA−MAのモニタ
リカハリイフレームを受信すると割込で通知する。ファ
ームウェアは状態をアクティブモニタリピ−1・状態■
にセントする。
AMM interrupt: In the monitor recovery state (2), when an SA-MA monitor recovery frame is received, it is notified by an interrupt. The firmware displays the status as active monitor copy 1/status■
to cents.

MRC解除割込: モニタリカバリイ状態■において、SA>MAのモニタ
リカバリイフレームを受信すると割込で通知する。ファ
ームウェアはパッシブモニタリピート状態■に七ノドす
る。
MRC release interrupt: In the monitor recovery state ■, when a monitor recovery frame with SA>MA is received, an interrupt is notified. The firmware enters the passive monitor repeat state■.

BCPS解除割込: ビーコン送出状態■において、BCF受信すると割込で
通知す。ファームウェアはパッシブモニタリピート状態
■にセットする。
BCPS release interrupt: In the beacon sending state ■, when BCF is received, an interrupt is sent. Set the firmware to passive monitor repeat state■.

AM解解除割込 子クチイブモニタ状態において、SA≠MAのRPFを
受信すると割込で通知するファームウェアはパッシブモ
ニタリピート状態にセントする。
When an RPF of SA≠MA is received in the active monitor state of the AM resolution release interrupter, the firmware that notifies the interrupt sends it to the passive monitor repeat state.

従って、第7図の状態フリッフロップFO〜F6におい
て、*印の信号はファームウェアでセントされることに
なる。
Therefore, in the state flip-flops FO to F6 in FIG. 7, the signals marked with * are sent by the firmware.

次に、第8図は割込みを発生するTPCの受信回路の一
部であって、上述したタイマTI、T2゜T5を含みS
AとMAの比較も実行する。受信フレームの先1iIF
sパターンが確認されると、バイトデータは受信回路に
転送されて5受信シーケンスカウンタ(R3CN)10
20と受信アドレスカウンタ(RACN)1021を使
って、フレーム内の各フィールドを識別できる。たとえ
ばBFAバッファ1017に入力されたバイトがもしア
ドレス部SAであれば、カウンタ1020と1021を
デコード回路1022でデコード信号でノードアドレス
レジスタ1023より選択されるあらかじめ用意された
自分のアドレス(MA)との比較を比較回路1024で
実行できる。SA=MAのときには初期化のとき“0”
にセットされたフリップフロップに”1”がセットされ
る。
Next, FIG. 8 shows a part of the TPC receiving circuit that generates interrupts, including the above-mentioned timers TI, T2 and T5.
A comparison between A and MA is also performed. 1iIF ahead of received frame
When the s pattern is confirmed, the byte data is transferred to the receiving circuit and the 5 receive sequence counter (R3CN)10
20 and a received address counter (RACN) 1021 can be used to identify each field within the frame. For example, if the byte input to the BFA buffer 1017 is the address part SA, the counters 1020 and 1021 are set in the decoding circuit 1022 to match the own address (MA) prepared in advance selected from the node address register 1023 using the decoding signal. Comparisons can be performed in comparison circuit 1024. When SA=MA, “0” at initialization
``1'' is set in the flip-flop set to .

そして、プロセッサ20からコントロールレジスタの特
定なビットが有効となった時点で、すなわちアンド回路
1027の出力が1”となり、受信ステータス1028
内にSA−MAを示すビットがセントされ、制御回路部
103に与えられる。
Then, when a specific bit of the control register from the processor 20 becomes valid, that is, the output of the AND circuit 1027 becomes 1'', and the reception status 1028
A bit indicating SA-MA is inserted therein and provided to the control circuit section 103.

受信ステータスレジスタRX ?’ Sの内容は第8図
(blに示すように1ビツト目とOビット目はOOが非
すカバリイフレーム、01がリングバージフレーム(R
PF)、10がモニタリカバリイフレーム(MRF>お
よび11がビーコンフレーム(BCF)を示し、3ビツ
ト自と2ビツト目においてOOがSA=MA、01がS
A>MA、10がSA<MA、そして11がフレームア
ボートを表現する。4ビツト目のFe2Bは自ノードで
FC3エラーを検出したとき七ノドされるものである。
Reception status register RX? ' The contents of S are shown in Figure 8 (bl), the 1st bit and the O bit are the recovery frame that OO does not contain, and 01 is the ring barge frame (R
PF), 10 indicates the monitor recovery frame (MRF>) and 11 indicates the beacon frame (BCF), OO indicates SA=MA, 01 indicates S in the 3rd bit itself and the 2nd bit.
A>MA, 10 represents SA<MA, and 11 represents frame abort. The 4th bit, Fe2B, is incremented by seven nodes when an FC3 error is detected in the own node.

エラー検出シ第8図+a+の受信回路102のRCRC
し・ジスタとCRC演算回路1030で!3FAバッフ
ァ1017に七ノドされたチェノクコ−1に対してCR
C演算した結果と定数1032と比較回路1031で比
較して行われる。不一致の場合にはファーノ、ウェアに
その界雷を通知する。また。
RCRC of error detection circuit 102 in Figure 8+a+
With register and CRC calculation circuit 1030! CR against Chenokko-1 who was attacked by 3FA buffer 1017
This is done by comparing the result of the C calculation with a constant 1032 in a comparison circuit 1031. If there is a discrepancy, Furno and Ware will be notified of the situation. Also.

フレームの終りは比較回路1033で受イ=シたドEパ
ターンがあらかしめ定められたFEパターンと比較シフ
゛ζ実行され、不・致の場合はやはりファーJ、ウェア
に割込をかけることになる。
At the end of the frame, the comparator circuit 1033 compares the received E pattern with the predetermined FE pattern, and in the case of a mismatch, an interrupt is sent to the fur J and the wear. .

次に第1図を使ってこのようなTPCを用いて各ノーl
がリングへの結合状態をチェックすることができる本発
明のリング状態割込方式について述べる。
Next, using Figure 1, each node is
A ring status interrupt scheme of the present invention is described in which the ring state can be checked to check the state of connection to the ring.

第1図(a+は、リング(RING)状に構成された伝
送路に複数個(たとえば、 A、  +1. C)のノ
ー1が互いに通信を行うように構成したシステムにおい
て、ノーIAがリングに結合しているかどうかをチェッ
クする目的で、ノー1’ A内の送受信バッファ50よ
り送信フレーム500をリングに送信し、リングを一巡
して受信する様子を示したブロック図である。送受信バ
ッファ50は、ノーFAが送信モー1にあるときには、
当然フレームを受信することはできず、また、逆に受信
モーl′のときには、フレームを送信することはできな
い。したがって、ノー1” Aがリングに結合している
かどうかをチェックするために送信フレーム500は送
受信バッファから送信されるが、TPCIOがそのフレ
ーム500を受信する場合は、第6図のリピート回路の
直並列変換レジスタ1012を介してBFAバッファ1
017にラッチされ、第8図の受信回路に入力される。
Figure 1 (a+) is a system in which a plurality of No.1s (for example, A, +1. 2 is a block diagram showing how a transmission frame 500 is transmitted to a ring from a transmission/reception buffer 50 in No. 1'A, and received after going around the ring for the purpose of checking whether or not the transmission/reception buffer 50 is connected. , when no FA is in transmit mode 1,
Naturally, frames cannot be received, and conversely, frames cannot be transmitted when the reception mode is 1'. Therefore, a transmit frame 500 is sent from the transmit/receive buffer to check whether No. 1"A is attached to the ring, but if the TPCIO receives that frame 500, it is sent directly from the repeat circuit of FIG. BFA buffer 1 via parallel conversion register 1012
The signal is latched at 017 and input to the receiving circuit shown in FIG.

そして、BFAハソファ1017に入力されたハイ1が
もしソースアドレス部SAであればノー1′アドレスレ
ジスタ1023より出力される自分のアドレス(MA)
とが比較される。上述したように、SAとMAとの比較
結果は受信ステータスレジスタRXFSの3ビット目と
2ビツト目に表現され、00であるならばSA=M八と
なる。このとき第1図tblに示すように、RXFSの
3ビツト目と2ピノl−目のそれぞれに接続され反転回
路1034と1035の出力はともに論理lとなってA
ND回路1038に入力される。フリップフロップ10
36はノーFAのプロセッサ20によりセントまたはり
七ソI・可能な記憶素子であって、自ノードのリングへ
の結合状態を調べるモーFにするため5すなわち。
If the high 1 input to the BFA hash sofa 1017 is the source address section SA, the own address (MA) output from the no 1' address register 1023
are compared. As described above, the comparison result between SA and MA is expressed in the third and second bits of the reception status register RXFS, and if it is 00, then SA=M8. At this time, as shown in FIG.
It is input to the ND circuit 1038. flip flop 10
Reference numeral 36 is a memory element that can be stored by the processor 20 of the no-FA, and is used to store the mode F for checking the connection state of the own node to the ring.

リング折返しテストを有効とする場合にセットされる。Set when ring wrap test is enabled.

また、フリップフロップ1037はステータスが有効で
あるかどうかを示す記憶素子でBFAバッファに受信し
たフレームの特定なバイトがセットされてからステータ
ス情報がRXFSIO28にセットされるまではかなり
の時間がかかるため5ステータス情報がRXFS 10
028に確実にセットされたごとを示すものである。
In addition, the flip-flop 1037 is a storage element that indicates whether the status is valid or not, and it takes a considerable amount of time after a specific byte of the received frame is set in the BFA buffer until the status information is set in the RXFSIO28. Status information is RXFS 10
This indicates that the value has been definitely set to 028.

したがって5第1図(b)のリング折返し割込制御回路
を使えば、リング折返しテスト有効ビア+・1036お
よびステータス有効ビット1037がともに論理lの有
効状態であって、RXFSの3ビツト目と2ビツト目が
ともに0.すなわちSA−MAであるときにはANr)
回12&103Bの出力は論理1となってリング折返し
割込フリップフロップ1039がセy t・される。し
たがって、他ノーFAがソーステ1゛レス(SA)が自
ノー1−(MA)であるフレームを受信した場合のみプ
ロセッサ20のファームウェアに割込を発生することに
なり、プロセッサはその内容をレジスタで表現すること
になる。
Therefore, if the ring loopback interrupt control circuit shown in FIG. Both bits are 0. In other words, when it is SA-MA, ANr)
The output of circuit 12 & 103B becomes a logic 1 and ring fold interrupt flip-flop 1039 is set. Therefore, an interrupt is generated to the firmware of the processor 20 only when another node FA receives a frame whose source status (SA) is the own node 1- (MA), and the processor stores the contents in the register. It will be expressed.

このように本発明のリング状態割込方式の割込条件は2
 リング折返しテスト有効ビットが論理1であってかつ
SA−MAである。SA=MAのとき、ノードAはリン
グに結合していることになるが、このときFCSエラー
を発生していないという条件を必要とする。FCSエラ
ーの検出が各ノードのTPC内のRCRCレジスタ10
29とCR演算回路1030と比較回路1031で行わ
れているので3プロセツサが割込内容をレジスタで表示
する場合に、他のノードでFCSエラーを検出したこと
を表示するビットと自ノードでFCSエラーを検出した
ことを示すビットを含むようにすれば」、いことになる
In this way, the interrupt conditions of the ring state interrupt method of the present invention are 2.
The ring wrap test enable bit is logic 1 and SA-MA. When SA=MA, node A is connected to the ring, but the condition is that no FCS error occurs at this time. FCS error detection is performed using the RCRC register 10 in the TPC of each node.
29, the CR calculation circuit 1030, and the comparison circuit 1031, so when the 3 processors display the interrupt contents in the register, the bit that indicates that an FCS error has been detected in another node and the FCS error in the own node. This would be a problem if it included a bit indicating that it was detected.

〔発明のりJ果〕[Invention glue J fruit]

本発明では、ごの3Lうに、各ノー1”において2ノー
ド′のリングへの結合状態のチェックは自ノードにフし
・−ノ、を送信しソーステ1−レスが自ノードであって
テスト有効ピノ1−が有効状態であるときにはしめてプ
ロセッサに割込を起す制御はプロセッサ(CPII)の
ファーJ9ウェアを介さずにプ1−1セ、ザとは独立に
TPC専用ハートうエアが実行するので、CPtJはT
PCがリングチェックを実行している間(」他の仕事を
実行でき、したがって。
In the present invention, in each node 1'', the connection status of node 2' to the ring is checked by sending a flag to the own node, so that the source node is the own node and the test is valid. When Pino 1-1 is in a valid state, the TPC-dedicated hardware executes control to interrupt the processor by closing it and causing an interrupt to the processor, without going through the processor (CPII) hardware. , CPtJ is T
While the PC is performing the ring check ("can perform other tasks, therefore.

全体のスルーブツトを向」二さ−υるばかりでなく。Not only does it direct the overall throughput.

ファーJいうエア負担が小さくなり従ってシステム設計
が極めて容易になるという効果がある。
This has the effect that the air load called Far J is reduced and system design is therefore extremely easy.

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

第1図+a+、 (b)は本発明のリング状態割込制御
方式を説明するブ1−1ツク図。 第2図は本発明のリング状態割込制御方式の状態遷移図
。 第3図fat〜fglはトークンパッシング方式を説明
する図。 第4図はアダプタの構成を示ずブl:17り図。 第5図はT I) Cのブロック図。 第6図はT I) Cのリピート回路図。 第7図はTPCのステータス制御部を説明する図。 第8図fatはTPCの受信回路のブロック図。 第8図(blはTPCの受信回路の受信ステータスレジ
スタを説明する図である。 A、B、C・・・ノー1 20・・・・・・プロセッサ。 50・・・・・・送受信バッファ。 500・・・・・送信フレーム。 一 世 シー m 一 一−)
FIGS. 1A+ and 1B are block diagrams illustrating the ring state interrupt control method of the present invention. FIG. 2 is a state transition diagram of the ring state interrupt control method of the present invention. FIG. 3 fat to fgl are diagrams explaining the token passing method. FIG. 4 is a diagram showing the configuration of the adapter. FIG. 5 is a block diagram of TI)C. Figure 6 is a repeat circuit diagram of TI)C. FIG. 7 is a diagram explaining the status control section of the TPC. FIG. 8 fat is a block diagram of a TPC receiving circuit. FIG. 8 (bl is a diagram explaining the reception status register of the TPC reception circuit. A, B, C... No. 1 20... Processor. 50... Transmission/reception buffer. 500...Transmission frame.

Claims (4)

【特許請求の範囲】[Claims] (1)リング状に構成された伝送路を利用して複数個の
ノードが互いに通信を行うシステムにおいて、1つのノ
ードが少なくとも自ノードにフレームを送信し、その結
果の準備ができた時点で割込により、ノードのプロセッ
サに通知することによってリングとの結合状態をチェッ
クすることを特徴とするリング状態割込方式。
(1) In a system in which multiple nodes communicate with each other using a ring-shaped transmission path, one node transmits at least a frame to its own node, and when the result is ready, it is allocated. A ring state interrupt method characterized in that the state of connection with a ring is checked by notifying the processor of the node.
(2)ソースアドレスが自ノードであるフレームを受信
した場合のみ割込を有効とする特許請求の範囲第1項記
載のリング状態割込方式
(2) The ring state interrupt method according to claim 1, in which the interrupt is enabled only when a frame whose source address is the own node is received.
(3)ノードのプロセッサにより制御が可能な記憶素子
により割込の有効、無効を制御することができる特許請
求の範囲第1項記載のリング状態割込方式。
(3) The ring state interrupt system according to claim 1, wherein enabling and disabling of interrupts can be controlled by a storage element that can be controlled by a processor of a node.
(4)割込で報告される内容として、他のノードでFC
Sエラーを検出したことを表示する第1のビット、自ノ
ードでFCSエラーを検出したことを表示する第2のビ
ットを含むことを特徴とする特許請求の範囲第1項記載
のリング状態割込方式。
(4) As the contents reported by the interrupt, the FC is
The ring state interrupt according to claim 1, characterized in that the ring status interrupt includes a first bit indicating that an S error has been detected, and a second bit indicating that an FCS error has been detected in the own node. method.
JP59245748A 1984-11-20 1984-11-20 Ring-status interrupting system Pending JPS61125254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59245748A JPS61125254A (en) 1984-11-20 1984-11-20 Ring-status interrupting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59245748A JPS61125254A (en) 1984-11-20 1984-11-20 Ring-status interrupting system

Publications (1)

Publication Number Publication Date
JPS61125254A true JPS61125254A (en) 1986-06-12

Family

ID=17138206

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59245748A Pending JPS61125254A (en) 1984-11-20 1984-11-20 Ring-status interrupting system

Country Status (1)

Country Link
JP (1) JPS61125254A (en)

Similar Documents

Publication Publication Date Title
KR920004147B1 (en) Operation mode settable lan interconnecting apparatus
JPH02100439A (en) Method for using in token ring network
JPS5846098B2 (en) Bus priority control method in loop bus network system
US5856921A (en) Apparatus and method for intermodular communications using system bus controllers
US5442631A (en) Communication control device
JPS61125253A (en) Medium access control system
JPS61125254A (en) Ring-status interrupting system
JP3387464B2 (en) Communication control system and its control method
JP4585560B2 (en) Network failure detection method, data communication network system, and node device
JPS61125252A (en) Transition and interruption system of medium access control state
JP2001067299A (en) Interface controller and computer system
JPS61125249A (en) Address bit transmitting/receiving system
JP3374628B2 (en) Token pass data transfer system
JPH047620B2 (en)
JPH04156655A (en) Communication system between processors
JPS61125251A (en) Repeat-function control system
JPH0292043A (en) Data reception system
JPH02234534A (en) Contention control system between network tentative master stations
JPS6021651A (en) Network system
JPS5917751A (en) Data communication system
JP2000347712A (en) Programmable controller
JPH0439819B2 (en)
JPS60226246A (en) Data transmission equipment
JPH0239753A (en) Fault processing method
JPH0413898B2 (en)