JPH03201743A - Method for sharing clock in common in ring type lan - Google Patents
Method for sharing clock in common in ring type lanInfo
- Publication number
- JPH03201743A JPH03201743A JP34229289A JP34229289A JPH03201743A JP H03201743 A JPH03201743 A JP H03201743A JP 34229289 A JP34229289 A JP 34229289A JP 34229289 A JP34229289 A JP 34229289A JP H03201743 A JPH03201743 A JP H03201743A
- Authority
- JP
- Japan
- Prior art keywords
- timer
- communication station
- frame
- sequence number
- station
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 5
- 238000004891 communication Methods 0.000 claims abstract description 85
- 230000005540 biological transmission Effects 0.000 claims abstract description 47
- 238000012546 transfer Methods 0.000 abstract description 10
- 238000012937 correction Methods 0.000 abstract description 6
- 238000012545 processing Methods 0.000 description 12
- 238000001514 detection method Methods 0.000 description 9
- 239000013598 vector Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 241000186514 Warburgia ugandensis Species 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
【発明の詳細な説明】
「産業上の利用分野」
この発明は複数の通信局を伝送路によってリング状に接
続してこれらの局間でデータ通信を行うリング型LAN
(構内情報通信網)において、複数の通信局間でクロッ
クを共有する場合に用いられるリング型LANにおける
クロック共有方法に関する。[Detailed Description of the Invention] "Industrial Application Field" This invention relates to a ring-type LAN in which a plurality of communication stations are connected in a ring shape through a transmission path and data communication is performed between these stations.
The present invention relates to a clock sharing method in a ring type LAN used when a clock is shared between a plurality of communication stations in a local area information communication network.
「従来の技術」
従来のリング型LANにおいて、複数の通信局間でクロ
ックを共有して同期をとる場合には、1つのクロック源
が基本クロックをリアルタイムで複数の通信局に1対多
の回報通信によって行っていた。"Conventional Technology" In a conventional ring-type LAN, when multiple communication stations share a clock to achieve synchronization, one clock source broadcasts the basic clock to multiple communication stations in real time in a one-to-many manner. This was done by communication.
「発明が解決しようとする課題」
ところで、上述した従来のリング型LANにおいては、
クロックはリアルタイムで転送されなければならないた
め、エラーがあってもりロックを送り直すことができな
い。"Problem to be solved by the invention" By the way, in the conventional ring type LAN mentioned above,
Since the clock must be transferred in real time, it is not possible to retransmit the lock due to an error.
従って、いままで効率よくエラー訂正、主にクロックの
取りこぼし対策をする手段がなかった。Therefore, until now, there has been no means to efficiently correct errors, mainly to take measures against missed clocks.
この発明は上述した事情に鑑みてなされたもので、共有
されるクロックのエラー訂正を簡単に効率よくすること
ができるリング型LANにおけるクロック共有方法を提
供することを目的としている。The present invention has been made in view of the above-mentioned circumstances, and it is an object of the present invention to provide a clock sharing method in a ring-type LAN that can easily and efficiently correct errors in a shared clock.
「課題を解決するための手段」
この発明は、複数の通信局を伝送路によってリング状に
接続してこれらの局間でデータ転送を行うリング型LA
Nにおいて、前記複数の通信局にそれぞれタイマを接続
し、前記タイマの内、いずれか1つを基本クロックを発
生する基本タイマとし、前記基本タイマが接続された通
信局は、前記基本クロックに対応したシーケンス番号の
データを送出し、その送出毎に前記シーケンス番号の値
をインクリメントし、前記基本タイマが接続された通信
局以外の通信局は、前記シーケンス番号に対して予め期
待値を持ち、前記期待値と受信された前記シーケンス番
号の値との差により前記データの受信エラーが発生した
と判断して自局に接続された前記タイマのカウント値を
前記差に応じて訂正することを特徴としている。"Means for Solving the Problem" The present invention provides a ring-type LA in which a plurality of communication stations are connected in a ring shape through a transmission path and data is transferred between these stations.
In N, a timer is connected to each of the plurality of communication stations, one of the timers is used as a basic timer that generates a basic clock, and the communication station to which the basic timer is connected corresponds to the basic clock. The communication station other than the communication station to which the basic timer is connected has an expected value for the sequence number in advance, and the value of the sequence number is incremented each time it is sent. It is characterized by determining that a reception error of the data has occurred due to a difference between an expected value and the value of the received sequence number, and correcting the count value of the timer connected to the local station according to the difference. There is.
「作用」
この発明によれば、基本タイマが接続された通信局は、
基本クロックに対応したシーケンス番号のデータを送出
し、その送出毎にシーケンス番号の値をインクリメント
する。"Operation" According to this invention, the communication station to which the basic timer is connected,
Data with a sequence number corresponding to the basic clock is sent out, and the value of the sequence number is incremented each time it is sent out.
一方、基本タイマが接続された通信局以外の通信局は、
期待値と受信されたシーケンス番号の値とに差かある場
合には、データの受信エラーが発生したと判断して自局
に接続されたタイマのカウント値を差に応じて訂正する
。On the other hand, communication stations other than the communication station to which the basic timer is connected,
If there is a difference between the expected value and the value of the received sequence number, it is determined that a data reception error has occurred, and the count value of the timer connected to the own station is corrected according to the difference.
また、基本タイマが接続された通信局は、シーケンス番
号をリセットした初期化フレームを転送する。Further, the communication station to which the basic timer is connected transfers an initialization frame in which the sequence number has been reset.
そして、基本タイマが接続された通信局以外の通信局は
、初期化フレームを受信することにより、自局に接続さ
れたタイマのカウント値をリセットする。Then, communication stations other than the communication station to which the basic timer is connected reset the count value of the timer connected to itself by receiving the initialization frame.
「実施例」
この発明の一実施例について説明する前に、上述した課
題を解決するための基本的な考え方について説明する。"Embodiment" Before describing an embodiment of the present invention, the basic idea for solving the above-mentioned problem will be explained.
まず、第2図に従来のリング型LANの構成の一例を示
す。この図において、11〜!8は相互にデータ通信を
行う通信局、2は通信局1.〜1.間をシールド付きツ
イストペア線あるいは光フアイバーケーブル等によって
リング状に接続する伝送路、3.〜38はそれぞれ各通
信局■1〜16に接続されたタイマである。First, FIG. 2 shows an example of the configuration of a conventional ring type LAN. In this figure, 11~! 8 is a communication station that performs data communication with each other, and 2 is a communication station 1. ~1. 3. A transmission line connected in a ring shape between shielded twisted pair wires or optical fiber cables; 3. -38 are timers connected to each communication station (1) to (16), respectively.
尚、タイマ3.は基本クロックを発生し、他のタイマ3
.〜36は後述するティックMACフレームの働きによ
り、基本クロックに同期できるのである。Furthermore, timer 3. generates the basic clock and other timer 3
.. 36 can be synchronized with the basic clock by the function of the tick MAC frame, which will be described later.
また、各通信局1.〜16を同一の基本クロックを要求
する複数の通信局毎に同一のアドレスを持ったいくつか
のグループに分ける。例えば、第2図の通信局I3〜l
、を1つのグループとし、そのグループに1つのアドレ
スをつける。そして、通信局11は、そのアドレスを持
つグループに対してクロックに関するデータからフレー
ムを生成して転送する。In addition, each communication station 1. .about.16 are divided into several groups having the same address for each of a plurality of communication stations that require the same basic clock. For example, communication stations I3 to l in FIG.
, is treated as one group, and one address is assigned to that group. Then, the communication station 11 generates a frame from the clock-related data and transfers it to the group having that address.
この時、通信局11は、フレームにクロックのシーケン
ス番号を付け、1回毎にその値をインクリメントして転
送する。一方、フレームを受信する通信局13〜l、に
おいては、自局に接続されるタイマ33〜3.のカウン
ト値の方がタイマ31のカウント値より遅れており、上
述したシーケンス番号に対して予め期待値を持つものと
する。At this time, the communication station 11 attaches a clock sequence number to the frame, increments the value each time, and transfers the frame. On the other hand, in the communication stations 13-l that receive the frame, timers 33-3.l connected to the own stations are used. It is assumed that the count value of is behind the count value of the timer 31 and has an expected value in advance for the above-mentioned sequence number.
従って、通信局13〜15は、例えば、シーケンス番号
の期待値が「3」である時、転送されたフレームから検
出されたシーケンス番号が「3」である場合には、正常
なりロックの転送がされたと判断する。Therefore, for example, when the expected value of the sequence number is "3" and the sequence number detected from the transferred frame is "3", the communication stations 13 to 15 can determine whether the lock transfer is normal or not. judge that it has been done.
また、期待値がr3Jであるにもかかわらず、転送され
たフレームから検出されたシーケンス番号が「4」であ
る場合には、1つデータを落としたと判断して、通信局
l、〜15側でクロックのエラー訂正ができる。In addition, if the sequence number detected from the transferred frame is "4" even though the expected value is r3J, it is determined that one data has been dropped, and the communication station l, ~15 side can correct clock errors.
さらに、同一のグループ内において、通信局l、だけが
データを落とした場合にも個別にクロックのエラー訂正
ができる。Furthermore, even if only communication station l drops data within the same group, clock errors can be corrected individually.
以上の考え方を用いることにより、共有されるクロック
のエラー訂正を簡単に効率よくすることができる。By using the above concept, error correction of a shared clock can be easily and efficiently performed.
次に、リング型−LANの管理に使用されるMAC(メ
ディア・アクセス制御)フレームの内、上述したタイマ
の同期をとる場合に用いられるティックMACフレーム
のフォーマットを以下に示す。Next, among the MAC (media access control) frames used for ring-type LAN management, the format of the tick MAC frame used for synchronizing the above-mentioned timers is shown below.
尚、ティックとは、各通信局に接続されたタイマのクロ
ックを同期させるためのタイミングのことをいう。Note that a tick refers to a timing for synchronizing the clocks of timers connected to each communication station.
SD ACFCDA SA INFOFC3ED PS
ここで、SDはフレームの開始を示すスターティングデ
リミタ(1オクテツト)、ACはフレームの優先度や他
の通信局からの予約の受付などの情報を持つと共に、ト
ークンとフレームを区別するための情報も持つアクセス
制御(lオクテツト)、FCはフレームのタイプなどの
情報を持つフレーム制御(lオクテツト)である。尚、
ティックMACフレームのフレーム制御(PC)は、0
0Hである。SD ACFCDA SA INFOFC3ED PS
Here, SD is a starting delimiter (1 octet) indicating the start of a frame, and AC has information such as frame priority and reception of reservations from other communication stations, as well as information for distinguishing between tokens and frames. FC is a frame control (1 octet) containing information such as frame type. still,
The frame control (PC) of the tick MAC frame is 0.
It is 0H.
また、DAおよびSAはそれぞれデータの送信先や送信
元のアドレスの情報を持つ送信先アドレスおよび送信元
アドレス(2オクテツト)、INFOは送信すべきデー
タの部分であり、一つのフレームで0〜136オクテツ
トのデータを転送することができる情報である。In addition, DA and SA are the destination address and source address (2 octets) that contain information about the destination and source address of the data, respectively, and INFO is the data part to be transmitted, which is 0 to 136 in one frame. This is information that can transfer octets of data.
さらに、FCSはフレーム試験シーケンス(2オクテツ
ト)である。これはフレーム転送中に情報が脱落したり
変化が起こらなかったかを試験するための情報であり、
フレームのうちスタートフレームシーケンスとエンドフ
レームシーケンスを除外したPC,DA、SA、INF
Oの部分が検査対象である。Additionally, the FCS is a frame test sequence (2 octets). This information is used to test whether information has been dropped or changed during frame transfer.
PC, DA, SA, and INF excluding the start frame sequence and end frame sequence among frames
The part O is the object of inspection.
加えて、EDはフレームの終了を示すエンディングデリ
ミタ(1オクテツト)、FSはフレームが読まれたか否
かなどの情報を保持し、異常の判定などに利用されるフ
レームステータス(1オクテツト)である。In addition, ED is an ending delimiter (1 octet) indicating the end of the frame, and FS is a frame status (1 octet) that holds information such as whether the frame has been read or not and is used for determining abnormalities.
次に、上述したフォーマットの内、この発明に特に関係
する送信先アドレス(DA)および情報(INFO)の
それぞれのフィールドについてより詳細に説明する。Next, of the above formats, the destination address (DA) and information (INFO) fields, which are particularly relevant to the present invention, will be explained in more detail.
(a)送信先アドレス(DA)
GFAAAAAAAAAAAAA^
G−”O”でFおよび14個のAが個々の通信局のアド
レス、G=”l”、かつ、F−′0”で14個のAがグ
ループアドレス、G=”I“、かつ、F”l”で14個
のAがネットワーク管理機能および付加機能に対して割
り当てられた機能アドレスとしてそれぞれ解釈される。(a) Destination address (DA) GFAAAAAAAAAAAAA^ G-"O" indicates F and 14 A's are addresses of individual communication stations, G="l" and F-'0" indicates 14 A's. In the group address G="I" and F"l", the 14 A's are interpreted as functional addresses assigned to the network management function and the additional function, respectively.
送信先アドレスとして機能アドレスが使われた場合、指
定した機能部を持つ通信局の機能部にデータが転送され
る。When a functional address is used as the destination address, data is transferred to the functional unit of the communication station that has the specified functional unit.
そして、上述したティックMACフレームの場合は、以
下に示す機能アドレスが割り当てられる。In the case of the tick MAC frame described above, the following functional addresses are assigned.
即ち、基本クロックは、最大8個まで定義できる。That is, up to eight basic clocks can be defined.
機能 機能アドレス DA
ティックl 0OIHC00IH
テイツク2 0028 COO2Hテイツク3
004 HC004H
ティック4 008HCOO8H
テイツク5 0108 C0IOHテイツク6
0208 CO20Hテイツク7 040HC
040H
テイツク8 080HC080H
(’b)情報(INFO)
MACフレームの情報フィールドは、メディア・アクセ
ス層の管理を行うために転送される命令、応答などの情
報(以下、これをベクタという)を含み、以下に示すフ
ォーマットで構成される。Function Function Address DA Tick 0OIHC00IH Take 2 0028 COO2H Take 3
004 HC004H Tick 4 008HCOO8H Take 5 0108 C0IOH Take 6
0208 CO20H take 7 040HC
040H Take 8 080HC080H ('b) Information (INFO) The information field of the MAC frame contains information such as commands and responses (hereinafter referred to as vectors) transferred to manage the media access layer. It consists of the format shown below.
VL MI SVL SVI 5VV−−−3VL S
VI 5VV(i)VLは16ビツトバイナリであり、
ベクタのオクテツト数、即ち、ベクタ長を表す。VL MI SVL SVI 5VV---3VL S
VI 5VV(i)VL is 16-bit binary,
Represents the number of octets in the vector, that is, the vector length.
0004H≦VL≦FFFFH
(ii)Vlは2オクテツトのベクタIDであり、3つ
のフィールドに分かれる。0004H≦VL≦FFFFH (ii) Vl is a 2-octet vector ID divided into three fields.
ddddsssscccccccc
ddddは送信先クラスであり、フレームの行き先の通
信局にあるどの機能部に渡すかを示す識別子を入れる。ddddsssscccccccc dddd is a destination class, and contains an identifier indicating which functional unit in the destination communication station the frame is to be passed to.
5sssは送信元クラスであり、送信側の通信局におけ
る機能部識別子を入れる。5sss is the transmission source class, and contains the functional unit identifier of the communication station on the transmission side.
また、CCCCCCC,Cは機能を示すベクタコードを
入れる。尚、ティックMACフレームのベクタID(V
l)は、8860 Hである。Further, CCCCCCCC,C contains a vector code indicating the function. Note that the tick MAC frame vector ID (V
l) is 8860H.
(iii)SVLはサブベクタ長である。サブベクタは
、ベクタにさらに詳しい情報を加えるための情報である
。但し、サブベクタはない場合がある。(iii) SVL is the subvector length. A subvector is information for adding more detailed information to a vector. However, there may be no subvectors.
また、ザブベクタ長は、サブベクタのオクテツト数で表
した長さを8ビツトバイナリで表現する。Further, the subvector length is expressed in 8-bit binary as the length expressed in the number of octets of the subvector.
長さにはSVLも含まれる。The length also includes SVL.
(iv)SVIはlオクテツトのサブベクタ【Dである
。尚、ティックMACフレームのサブベクタID(SV
I)は、6511である。(iv) SVI is an l-octet subvector [D]. Note that the tick MAC frame subvector ID (SV
I) is 6511.
(v )S V Vはサブベクタ値であり、サブベクタ
のパラメータである。サブベクタIDがあってもサブベ
クタ値がない場合もある。長さ、書式はサブベクタID
により定まる。尚、ティックMACフレームのサブベク
タ値(SVV)は、reset 、 5equence
である。resetはlビットであり、指定された基本
クロックと同期するタイマのリセットに利用され、5e
quenceは7ビツトであり、通信エラーによる上述
したクロックのずれを補正するために利用するものであ
る。(v) S V V is a subvector value and a parameter of the subvector. Even if there is a subvector ID, there may be no subvector value. Length and format are subvector ID
Determined by Note that the subvector value (SVV) of the tick MAC frame is reset, 5equence
It is. reset is the l bit, which is used to reset the timer that is synchronized with the specified basic clock.
quence is 7 bits and is used to correct the above-mentioned clock deviation due to communication errors.
次に、図面を参照してこの発明の一実施例について説明
する。第1図はこの発明の一実施例による通信局!の構
成を示すブロック図であり、この図において、第2図の
各部に対応する部分には同一の符号を付け、その説明を
省略する。第1図において、4はLAN接続部であり、
伝送路2に接続され、他の通信局Iから転送された信号
SFTの受信と、他の通信局!へ転送する信号SFTの
送信とを制御する。5はデータ処理部であり、LAN接
続部4が受信し、復号した受信データDRの処理と、他
の通信局1に送信すべき送信データDTの処理とを行う
。Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows a communication station according to an embodiment of the present invention! FIG. 2 is a block diagram showing the configuration of FIG. 2. In this figure, parts corresponding to those in FIG. In FIG. 1, 4 is a LAN connection part,
Reception of signal SFT connected to transmission line 2 and transferred from other communication station I, and other communication station! control the transmission of the signal SFT to be transferred to. Reference numeral 5 denotes a data processing unit, which processes the received data DR received and decoded by the LAN connection unit 4 and the transmitted data DT to be transmitted to other communication stations 1.
また、LAN接続部4において、6は伝送路2を介して
転送された信号SFTを受信する受信部、7は信号SF
Tからフレーム/トークンビット列F/T B Aを復
号する復号部、8は受信ビット解析部であり、フレーム
/トークンビット列F/TBAを常時検査し、フレーム
/トークンビット列F/TB6の開始・終了等に関する
タイミング信号STHの検出と、リング優先度Pr並び
に予約優先度Rrの検出および生成と、フレームビット
列FBAの出力とを行う。Further, in the LAN connection unit 4, 6 is a receiving unit that receives the signal SFT transferred via the transmission path 2, and 7 is a receiving unit that receives the signal SF.
A decoding unit decodes the frame/token bit string F/TBA from T, and 8 is a received bit analysis unit, which constantly inspects the frame/token bit string F/TBA and determines the start and end of the frame/token bit string F/TB6, etc. Detection of the timing signal STH related to the ring priority, detection and generation of the ring priority Pr and reservation priority Rr, and output of the frame bit string FBA are performed.
さらに、9は受信制御部であり、フレームビット列F
B Aを入力し、このフレームビット列FBAが自局宛
か否かの判断をして自局宛の受信データDRを出力する
。IOは受信データDRを入力し、データ処理部5から
出力される受信制御信号RCTLに基づいてデータ処理
部5へ出力する受信データ出力部である。Furthermore, 9 is a reception control unit, and the frame bit string F
BA is input, it is determined whether this frame bit string FBA is addressed to the local station, and the received data DR addressed to the local station is output. IO is a received data output unit that inputs the received data DR and outputs it to the data processing unit 5 based on the reception control signal RCTL output from the data processing unit 5.
加えて、11はフレーム/トークンビット列F/T B
Aを中継する途中でビットの書き換えを行うビット遅
延部、12はデータ処理部5から出力される送信すべき
送信データDTおよび送信制御信号TCTLを入力し、
送信制御信号TCTLに基づいて送信データD7を出力
する送信データ入力部、13は送信制御部であり、トー
クンビット列TBAを生成すると共に、送信データ入力
部12から出力される送信指示信号TSおよび送信終了
信号TEに基づいて送信データ人力部12に対してデー
タ要求信号DRを出力することにより、送信データDT
を入力し、フレームビット列FBAを生成してトークン
リングのプロトコルに従って出力する。このフレームビ
ット列FBAの生成は、送信データDTから抽出される
データ自体の優先度P、と、受信ビット解析部8から出
力されるリング上の現在のトークンあるいはフレームの
優先度(以下、リング優先度Prという)、他の通信局
において自局内のデータ優先度P、、、に基づいて行わ
れた予約の優先度Rrおよびタイミング信号St、とに
基づいて行う。In addition, 11 is a frame/token bit string F/T B
A bit delay unit 12 rewrites bits while relaying A, and inputs the transmission data DT to be transmitted and the transmission control signal TCTL output from the data processing unit 5,
A transmission data input unit 13 outputs transmission data D7 based on a transmission control signal TCTL, and 13 is a transmission control unit that generates a token bit string TBA and also outputs a transmission instruction signal TS and transmission end output from the transmission data input unit 12. By outputting the data request signal DR to the transmission data manual unit 12 based on the signal TE, the transmission data DT is
is input, a frame bit string FBA is generated and output according to the token ring protocol. The generation of this frame bit string FBA is based on the priority P of the data itself extracted from the transmission data DT and the priority of the current token or frame on the ring output from the reception bit analysis unit 8 (hereinafter referred to as ring priority). Pr), the priority Rr of reservations made based on the data priorities P, . . . in other communication stations, and the timing signal St.
ますこ、I4は送信予約部であり、送信制御部I3から
出力される予約優先度Rrとデータ優先度P、とのどち
らか大きい方(以下、max [Rr 、 P m]と
表す)を入力し、その優先度の3ビツトの内、最も左側
のビットに対応したビット遅延部If通過中のフレーム
/トークンビット列F/TBAの予約指標のビットR,
をセットする。15はビット遅延部IIから出力される
フレーム/トークンビット列F/TBAと送信制御部I
3から出力されるフレーム/トークンビット列F /T
B Aのどちらか一方を選択して出力する送信選択部
である。尚、この選択は、送信制御部!3から出力され
る選択信号S saLに基づいて行う。Masuko, I4 is a transmission reservation unit, which inputs the larger of the reservation priority Rr and the data priority P output from the transmission control unit I3 (hereinafter expressed as max [Rr, P m]). The bit R of the reservation index of the frame/token bit string F/TBA that is passing through the bit delay unit If, which corresponds to the leftmost bit among the three priority bits,
Set. 15 is the frame/token bit string F/TBA output from the bit delay unit II and the transmission control unit I
Frame/token bit string F/T output from 3
This is a transmission selection section that selects and outputs either B or A. Note that this selection is made by the transmission control section! This is performed based on the selection signal SsaL output from 3.
さらに、16は送信選択部!5から出力されるフレーム
/トークンビット列F/TBAを符号化する符号化部、
17は符号化部I6の出力信号SFTを伝送路2を介し
て他の通信局Iに送信する送信部である。Furthermore, 16 is a transmission selection section! an encoding unit that encodes the frame/token bit string F/TBA output from 5;
A transmitter 17 transmits the output signal SFT of the encoder I6 to another communication station I via the transmission path 2.
また、データ処理部5において、18は受信データDl
lからティックMACフレームを検出し、シーケンス番
号あるいはリセットパルスR,を出力するティックフレ
ーム検出部、19はシーケンス番号を保持するラッチ、
20はフリーランのカウンタ、21はラッチ19の出力
値とカウンタ20の値とを比較し、これらの値が異なっ
ている場合にカウンタの値に1をインクリメントするパ
ルスP、を出力するコンパレータである。尚、カウンタ
20は、リセットパルスR1によってその値がクリアさ
れる。In the data processing unit 5, 18 is the received data Dl.
a tick frame detection unit that detects a tick MAC frame from l and outputs a sequence number or a reset pulse R; 19 a latch that holds the sequence number;
20 is a free run counter, and 21 is a comparator that compares the output value of the latch 19 and the value of the counter 20, and outputs a pulse P that increments the counter value by 1 if these values are different. . Note that the value of the counter 20 is cleared by the reset pulse R1.
さらに、22はティックフレーム生成部であり、タイマ
3から出力されるパルスP、を入力して、所定の機能ア
ドレス、reset−”0”およびタイマ3の現在のカ
ウント値の下位7ビツトからなるシーケンス番号のティ
ックMACフレームを生成すると共に、パルスP3を出
力してフリーランのカウンタ23の値、即ち、シーケン
ス番号にIをインクリメントする。また、カウンタ23
は、上位層から入力されるリセットパルスR2によって
その値がクリアされ、同時に、ティックフレーム生成部
22は、初期化フレームを生成する。Furthermore, 22 is a tick frame generation unit which inputs the pulse P output from the timer 3 and generates a sequence consisting of a predetermined functional address, reset-“0” and the lower 7 bits of the current count value of the timer 3. A tick MAC frame of the number is generated, and a pulse P3 is outputted to increment the value of the free run counter 23, that is, the sequence number by I. In addition, the counter 23
The value is cleared by the reset pulse R2 input from the upper layer, and at the same time, the tick frame generation unit 22 generates an initialization frame.
尚、通信局13〜I、がティック11即ち、機能アドレ
スが001 Hであると仮定する。It is assumed that the communication stations 13 to I have tick 11, that is, the functional address is 001H.
このような構成において、まず、通信局11にタイマ3
1からパルスP、が入力されると、ティックフレーム生
成部22は、機能アドレスが001H、reset =
”0”およびタイマ31の現在のカウント値の下位7ビ
ツトからなるシーケンス番号のティックMACフレーム
を生成すると共に、パルスP3を出力してフリーランの
カウンタ゛23の値、即ち、シーケンス番号lをインク
リメントする。In such a configuration, first, a timer 3 is installed in the communication station 11.
1 to pulse P, the tick frame generation unit 22 sets the function address to 001H and reset =
It generates a tick MAC frame with a sequence number consisting of "0" and the lower 7 bits of the current count value of the timer 31, and outputs a pulse P3 to increment the value of the free-run counter 23, that is, the sequence number l. .
これにより、伝送路2を回るトークンを獲得した通信局
11は、伝送路2にデータを送信する権fす、即ち、送
信権を得て、獲得したトークンを送信制御部13におい
てフレーム開始シーケンスに変更し、さらに、制御フィ
ールド、アドレス・フィールド、情報フィールド、フレ
ーム検査シーケンスおよびフレーム終了シーケンスを付
加した後、ティックMACフレームビット列FB^とし
て、選択信号S SELと共に出力する。As a result, the communication station 11 that has acquired the token circulating on the transmission path 2 has the right to transmit data on the transmission path 2, that is, the transmission right, and uses the acquired token in the frame start sequence in the transmission control unit 13. After adding a control field, an address field, an information field, a frame check sequence, and a frame end sequence, the data is output as a tick MAC frame bit string FB^ together with a selection signal SSEL.
そして、送信選択部15において送信制御部13から出
力されるティックMACフレームビット列FBAが選択
され、符号化部I6において符号化された後、送信部1
7を経て信号SFTとして送信される。Then, the transmission selection section 15 selects the tick MAC frame bit string FBA output from the transmission control section 13, and after encoding it in the encoding section I6, the transmission section 1
7 and is transmitted as a signal SFT.
これにより、信号SFTは、通信局IIから隣の通信局
1!に転送される。通信局l、は、伝送路2を介して転
送゛された信号SFTを受信部6において受信し、復号
部7において復号した後、受信ビット解析部8において
タイミング信号STHの検出と、リング優先度Pr並び
に予約優先度R,の検出および生成と、ティックMAC
フレームビット列FB^の出力とを行う。As a result, the signal SFT is transmitted from the communication station II to the neighboring communication station 1! will be forwarded to. The communication station l receives the signal SFT transferred via the transmission path 2 at the receiving unit 6, decodes it at the decoding unit 7, and then detects the timing signal STH and determines the ring priority at the received bit analysis unit 8. Detection and generation of Pr and reservation priority R, and tick MAC
The frame bit string FB^ is output.
さらに、受信制御部9は、入力されたティックMACフ
レームビット列FBAが自局宛か否かを判断する。今の
場合、自局宛ではないので、受信データDTの出力を行
わない。Furthermore, the reception control unit 9 determines whether the input tick MAC frame bit string FBA is addressed to the own station. In this case, since it is not addressed to the local station, the received data DT is not output.
次に、ビット遅延部11は、ティックMACフレームヒ
ツト列FBAを中継する途中でビットの書き換えを行う
。今、通信局I、にデータ優先度P、=”001”の通
信局14へ転送すべき送信データD7が存在する場合を
考える。これにより、送信予約部14は、送信制御部1
3から出力されるmax [’Rr 、 P 、]を入
力し、その優先度の3ビツトの内、最も左側にセットさ
れている値”1”をビット遅延部If通過中のフレーム
/トークンピット列F/TBAの予約指標を表すビット
R1の対応する位置をセットする。Next, the bit delay unit 11 rewrites the bits while relaying the tick MAC frame hit string FBA. Now, consider a case where communication station I has transmission data D7 to be transferred to communication station 14 with data priority P = "001". As a result, the transmission reservation section 14 controls the transmission control section 1.
max['Rr, P,] output from 3 is input, and the value "1" set to the leftmost among the 3 bits of that priority is set to the frame/token pit string passing through the bit delay section If. Set the corresponding position of bit R1 representing the F/TBA reservation index.
そして、今は自局からデータを送出していないため、送
信選択部I5においてビット遅延部11から出力される
ティックMACフレームビット列FBAが選択され、符
号化部16において符号化された後、送信部17を経て
信号SFTとして送信される。Since data is not being transmitted from the own station at the moment, the tick MAC frame bit string FBA output from the bit delay unit 11 is selected in the transmission selection unit I5, and after being encoded in the encoding unit 16, the transmission unit 17 and is transmitted as a signal SFT.
これにより、信号SFTは、通信局l、から隣の通信局
I3に転送さ、れる。通信局13は、伝送路2を介して
転送された信号S FTを受信部6において受信し、復
号部7において復号した後、受信ビット解析部8におい
てタイミング信号STMの検出と、リング優先度P1並
びに予約優先度Rrの検出および生成と、ティックMA
Cフレームビット列FBいの出力とを行う。As a result, the signal SFT is transferred from the communication station I to the adjacent communication station I3. The communication station 13 receives the signal SFT transferred via the transmission path 2 in the receiving unit 6, decodes it in the decoding unit 7, and then detects the timing signal STM in the received bit analysis unit 8 and determines the ring priority P1. and detection and generation of reservation priority Rr, and tick MA
The C frame bit string FB is output.
さらに、受信制御部9は、入力されたティックMACフ
レームビット列FBAが自局宛か否かを判断する。今の
場合、機能アドレスが001 Hであるので、自局宛の
受信データDBを出力する。Furthermore, the reception control unit 9 determines whether the input tick MAC frame bit string FBA is addressed to the own station. In this case, since the functional address is 001H, the received data DB addressed to the local station is output.
次に、受信データ出力部IOは、受信データDRを入力
し、データ処理部5から出力される受信制御信号RCT
Lに基づいてデータ処理部5へ出力する。Next, the reception data output unit IO inputs the reception data DR and outputs the reception control signal RCT from the data processing unit 5.
It outputs to the data processing section 5 based on L.
これにより、ティックフレーム検出部18は、受信デー
タDRからティックMACフレームを検出し、シーケン
ス番号を出力する。そして、シーケンス番号は、ラッチ
19に保持され、コンパレータ21においてカウンタ2
0の値とを比較される。この時、コンパレータ21は、
これらの値が等しい場合には、パルスP1を出力しない
が、これらの値が異なっている場合には、カウンタの値
に1をインクリメントするパルスP1を出力し、ラッチ
19に保持されたシーケンス番号の値とカウンタ20の
値とが一致するまでインクリメントを繰り返す。調整値
は、シーケンス番号が7ビツトであるので、l−127
の範囲である。Thereby, the tick frame detection unit 18 detects a tick MAC frame from the received data DR and outputs a sequence number. The sequence number is held in the latch 19, and is stored in the counter 2 in the comparator 21.
It is compared with a value of 0. At this time, the comparator 21 is
If these values are equal, pulse P1 is not output; however, if these values are different, pulse P1 is output that increments the counter value by 1, and the sequence number held in latch 19 is Incrementing is repeated until the value and the value of the counter 20 match. Since the sequence number is 7 bits, the adjustment value is l-127.
is within the range of
尚、基本クロックのシーケンス値より、各局の期待値の
方が大きい、つまり、送信部で送った量より多くのデー
タ量を受信することは考えられないので、調整値は0以
上となる。It should be noted that the expected value of each station is greater than the sequence value of the basic clock, that is, it is unthinkable that a larger amount of data will be received than the amount sent by the transmitter, so the adjustment value will be 0 or more.
例えば、通信局13のデータ処理部5におけるシーケン
ス番号に対する現在の期待値が「3」である、即ち、カ
ウンタ20の値が「3」である時、転送されたティック
MACフレームから検出されたシーケンス番号が「3」
である場合には、データの正常な転送がなされたので、
コンパレータ21はパルスP、を出力しないが、カウン
タ20の値が「3」であるにもかかわらず、転送された
ティックMACフレームから検出されたシーケンス番号
が「4」である場合には、1つデータが欠落したので、
コンパレータ2Iは差分針のパルスP0、今の場合、1
つのパルスP1を出力する。For example, when the current expected value for the sequence number in the data processing unit 5 of the communication station 13 is "3", that is, the value of the counter 20 is "3", the sequence detected from the transferred tick MAC frame The number is "3"
If , the data was successfully transferred;
The comparator 21 does not output a pulse P, but if the sequence number detected from the transferred tick MAC frame is "4" even though the value of the counter 20 is "3", one pulse is output. Due to missing data,
Comparator 2I is the pulse P0 of the differential hand, in this case 1
outputs one pulse P1.
これにより、通信局13に接続されたタイマ33は、パ
ルスP1を分周して内部で発生させてい、るクロックの
エラー訂正を行う。As a result, the timer 33 connected to the communication station 13 performs error correction on the internally generated clock by frequency-dividing the pulse P1.
また、受信局の判断で送信局にリングエラーモニタ(R
EM)フレームを送り、エラーの発生を報告する。Also, at the receiving station's discretion, the transmitting station may have a ring error monitor (R
EM) frame and report the occurrence of an error.
尚、上述したティックMACフレームの検出およびクロ
ックのエラー訂正の動作は、通信局14および!、にお
いても同様に行われる。Note that the above-described tick MAC frame detection and clock error correction operations are carried out by the communication station 14 and! , the same thing is done.
次に、通信局11のデータ処理部5.およびタイマ3.
に、上位層からリセットパルスR2が人力されると、カ
ウンタ23およびタイマ3.のカウント値がクリアされ
ると同時に、ティックフレーム生成部22において機能
アドレスが0OIH,reset=”l”およびシーケ
ンス番号”o o o o o o 。Next, the data processing section 5 of the communication station 11. and timer 3.
When the reset pulse R2 is manually applied from the upper layer, the counter 23 and the timer 3. At the same time as the count value of is cleared, the function address is 0OIH, reset="l" and sequence number "o o o o o o" in the tick frame generation unit 22.
”のティックMACフレーム、即ち、初期化フレームが
生成される。”, a tick MAC frame, ie, an initialization frame, is generated.
これにより、伝送路2を回るトークンを獲得した通信局
1.は、送信権を得て、上述した場合と同様、ティック
MACフレームを符号化部16において符号化した後、
送信部!7を経て信号SFTとして送信する。As a result, the communication station 1. which acquired the token circulating on the transmission path 2. obtains the transmission right and encodes the tick MAC frame in the encoding unit 16 as in the case described above, and then
Transmission part! 7 and then transmitted as a signal SFT.
これにより、信号SFTは、通信局1.を経て通信局1
3に転送される。通信局13は、伝送路2を介して転送
された信号SFTを受信部6において受信し、復号部7
において復号した後、受信ビット解析部8においてタイ
ミング信号STNの検出と、リング優先度Pr並びに゛
予約優先度R,の検出および生成と、ティックMACフ
レームビット列FBあの出力とを行う。As a result, the signal SFT is transmitted to the communication station 1. Communication station 1 via
Transferred to 3. The communication station 13 receives the signal SFT transferred via the transmission path 2 at the receiving section 6 and sends it to the decoding section 7.
After decoding, the received bit analysis unit 8 detects the timing signal STN, detects and generates the ring priority Pr and the reservation priority R, and outputs the tick MAC frame bit string FB.
さらに、受信制御部9は、入力されたティックMACフ
レーム□ビット列FBAが自局宛か否かを判断する。今
の場合、機能アドレスが001Hであるので、自局宛の
受信データDRを出力する。Further, the reception control unit 9 determines whether the input tick MAC frame □ bit string FBA is addressed to the own station. In this case, since the functional address is 001H, the received data DR addressed to the local station is output.
次に、受信データ出力部IOは、受信データDRを入力
し、データ処理部5から出力される受信制御信号RcT
Lに基づいてデータ処理部5へ出力する。Next, the reception data output unit IO inputs the reception data DR and receives the reception control signal RcT output from the data processing unit 5.
It outputs to the data processing section 5 based on L.
これにより、ティックフレーム検出部I8は、受信デー
タDRからティックMACフレーム、即ち、初期化フレ
ームを検出し、リセットパルスR1を出力する。そして
、カウンタ20およびタイマ33は共に、リセットパル
スR2によってその値がクリアされる。Thereby, the tick frame detection unit I8 detects a tick MAC frame, that is, an initialization frame, from the received data DR, and outputs a reset pulse R1. The values of both the counter 20 and the timer 33 are cleared by the reset pulse R2.
尚、上述したティックMACフレームの検出と、カウン
タ20およびタイマ3の値のクリアの動作とは、通信局
14および15においても同様に行われる。Note that the above-described operations of detecting a tick MAC frame and clearing the values of the counter 20 and timer 3 are performed in the communication stations 14 and 15 in the same manner.
以上説明したように、基本クロックに関するティックM
ACフレームを転送し、転送エラーが発生した場合には
、受信局からこの転送エラーに対応したパルスを出力す
るようにしたので、通信局に直接汎用のプログラマブル
タイマを接続することができる。また、タイマ自体を通
信局?こ組み入れるようにすることもできる。As explained above, tick M regarding the basic clock
When an AC frame is transferred and a transfer error occurs, the receiving station outputs a pulse corresponding to the transfer error, so a general-purpose programmable timer can be directly connected to the communication station. Also, is the timer itself a communication station? It is also possible to incorporate this.
従って、通信局に接続される他の装置において、アプリ
ケーションソフトを実行する場合にも、ティックMAC
フレームの転送は、アプリケーションソフトが基本クロ
ックのインターバル等のタイマに関する設定をするだけ
で自走的に行われる。Therefore, even when running application software on other devices connected to a communication station, the tick MAC
Frame transfer is performed automatically by application software simply by setting timers such as basic clock intervals.
また、ティックMACフレームを受信した通信局におい
ても、データ処理部5から出力されるパルスP1をタイ
マ3が分周するだけでクロックのエラー訂正が効率よく
行われる。Also, in the communication station that has received the tick MAC frame, clock errors can be efficiently corrected simply by having the timer 3 divide the pulse P1 output from the data processing section 5.
これにより、各通信局に存在するLANが見掛は上透明
になり、各通信局が外部クロックおよび内部クロックの
区別なく、直接1つのタイマを共有している様に動作で
きることになる。As a result, the LAN existing in each communication station appears to be transparent, and each communication station can operate as if it were directly sharing one timer, without distinguishing between an external clock and an internal clock.
また、上述した一実施例においては、タイマ3をハード
で構成する例を示したが、ソフトウェアで実現するよう
にしてもよい。この場合には、上述と同様な動作をする
ようにパラメータをセットする。Further, in the embodiment described above, an example was shown in which the timer 3 is configured by hardware, but it may also be implemented by software. In this case, parameters are set to perform the same operation as described above.
「発明の効果」
以上説明したように、この発明によれば、クロックのエ
ラー訂正を簡単に効率よくすることができるという効果
がある。"Effects of the Invention" As explained above, according to the present invention, there is an effect that clock error correction can be easily and efficiently performed.
第1図はこの発明の一実施例による通信局■の構成を示
すブロック図、第2図は従来のトークンリング型LAN
の構成の一例を示すブロック図である。
理部、18・・・・・・ティックフレーム検出部、19
・・・・・・ラッチ、20.23・・・・・・カウンタ
、21・・・・・・コンパレータ、22・・・・・・テ
ィックフレーム生成部。FIG. 1 is a block diagram showing the configuration of a communication station (2) according to an embodiment of the present invention, and FIG. 2 is a conventional token ring type LAN.
FIG. 2 is a block diagram showing an example of the configuration. Science department, 18... Tick frame detection section, 19
...Latch, 20.23 ...Counter, 21 ...Comparator, 22 ...Tick frame generation unit.
Claims (1)
らの局間でデータ転送を行うリング型LANにおいて、 前記複数の通信局にそれぞれタイマを接続し、前記タイ
マの内、いずれか1つを基本クロックを発生する基本タ
イマとし、 前記基本タイマが接続された通信局は、前記基本クロッ
クに対応したシーケンス番号のデータを送出し、その送
出毎に前記シーケンス番号の値をインクリメントし、 前記基本タイマが接続された通信局以外の通信局は、前
記シーケンス番号に対して予め期待値を持ち、前記期待
値と受信された前記シーケンス番号の値との差により前
記データの受信エラーが発生したと判断して自局に接続
された前記タイマのカウント値を前記差に応じて訂正す
る ことを特徴とするリング型LANにおけるクロック共有
方法。[Claims] In a ring type LAN in which a plurality of communication stations are connected in a ring shape through a transmission path and data is transferred between these stations, a timer is connected to each of the plurality of communication stations, and a timer is connected to each of the plurality of communication stations, , one of them is a basic timer that generates a basic clock, and the communication station to which the basic timer is connected sends data with a sequence number corresponding to the basic clock, and changes the value of the sequence number every time it is sent. A communication station other than the communication station to which the basic timer is connected has an expected value for the sequence number in advance, and receives the data based on the difference between the expected value and the received value of the sequence number. A clock sharing method in a ring type LAN, characterized in that it is determined that an error has occurred and the count value of the timer connected to the local station is corrected according to the difference.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP34229289A JP2683287B2 (en) | 1989-12-28 | 1989-12-28 | LAN clock sharing method |
| US07/636,090 US5274637A (en) | 1989-12-28 | 1990-12-28 | Token-ring-type local area network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP34229289A JP2683287B2 (en) | 1989-12-28 | 1989-12-28 | LAN clock sharing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03201743A true JPH03201743A (en) | 1991-09-03 |
| JP2683287B2 JP2683287B2 (en) | 1997-11-26 |
Family
ID=18352600
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP34229289A Expired - Lifetime JP2683287B2 (en) | 1989-12-28 | 1989-12-28 | LAN clock sharing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2683287B2 (en) |
-
1989
- 1989-12-28 JP JP34229289A patent/JP2683287B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP2683287B2 (en) | 1997-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA1204834A (en) | Protocol for determining physical order of active stations on a token ring | |
| US4500989A (en) | Digital communication system | |
| WO2019174406A1 (en) | Data transmission method and apparatus, network device, and storage medium | |
| US20050102419A1 (en) | Extended link monitoring channel for 10 Gb/s Ethernet | |
| US4561092A (en) | Method and apparatus for data communications over local area and small area networks | |
| CN1663201A (en) | Communication method and system for transmitting time-driven and event-driven Ethernet information | |
| US6754789B2 (en) | Distributed fault resilient shared memory | |
| US5235593A (en) | Ring latency timer | |
| JPS5810038B2 (en) | Communication exchange method | |
| JPH03174844A (en) | Frame erasing method | |
| US20100135310A1 (en) | Token bus communication system | |
| US7026949B2 (en) | Method for transmitting and receiving messages in home appliance networking system | |
| JPH03216042A (en) | Non-synchronous priority selection logic | |
| JPH03201743A (en) | Method for sharing clock in common in ring type lan | |
| JP3323002B2 (en) | Transmission quality monitoring method in digital communication network | |
| US7802150B2 (en) | Ensuring maximum reaction times in complex or distributed safe and/or nonsafe systems | |
| US20020126582A1 (en) | Network subscriber station having a feature that prevents inaccuracies in time messages | |
| EP2288058B1 (en) | System and method for detection of multiple timing masters in a network | |
| US6195365B1 (en) | Process for communicating over an optical bus simultaneously supporting different bit rates | |
| US4472711A (en) | Method and apparatus for synchronizing a station connected in a data line | |
| JP2009239450A (en) | Route change type network device and system | |
| KR100259281B1 (en) | System and method for controlling trunk in personal communication service | |
| EP0430053A2 (en) | Ring latency timer | |
| JPS5917751A (en) | Data communication system | |
| JPH03201744A (en) | Management method for communication station |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070808 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080808 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090808 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100808 Year of fee payment: 13 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100808 Year of fee payment: 13 |