JPH0773281B2 - Data transmission method - Google Patents
Data transmission methodInfo
- Publication number
- JPH0773281B2 JPH0773281B2 JP1005941A JP594189A JPH0773281B2 JP H0773281 B2 JPH0773281 B2 JP H0773281B2 JP 1005941 A JP1005941 A JP 1005941A JP 594189 A JP594189 A JP 594189A JP H0773281 B2 JPH0773281 B2 JP H0773281B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- transmission
- frame
- station
- line
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims description 117
- 238000000034 method Methods 0.000 title claims description 47
- 238000004891 communication Methods 0.000 claims description 29
- 238000012546 transfer Methods 0.000 claims description 9
- 238000011144 upstream manufacturing Methods 0.000 claims description 8
- 238000012544 monitoring process Methods 0.000 claims description 6
- 230000004913 activation Effects 0.000 claims 2
- 239000000872 buffer Substances 0.000 description 12
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000007726 management method Methods 0.000 description 8
- 230000002457 bidirectional effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000004092 self-diagnosis Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,ハイレベルデータリンク制御(HDLC)手順に
よるループ・モードを利用してデータの転送を行う際の
データ伝送方式に関する。Description: TECHNICAL FIELD The present invention relates to a data transmission method for transferring data using a loop mode based on a high level data link control (HDLC) procedure.
第2図にHDLCループ方式を用いた標準的なデータ伝送系
の基本構成を示す。ここで21は一次局,22,23及び24は二
次局,25はデータ回線でありデータの伝送方向を矢印で
示す。各一次局及び二次局は互いに別の局の送信端子と
受信端子とが接続され,所謂ディジー・チェーン接続に
なっている。そして,このデータ回線を伝送されるデー
タ・フレームはHDLCのデータ・フレームと同一の構成を
持っている。Figure 2 shows the basic configuration of a standard data transmission system using the HDLC loop method. Here, 21 is a primary station, 22, 23 and 24 are secondary stations, and 25 is a data line. Data transmission directions are indicated by arrows. The primary station and the secondary station are so-called daisy-chain connections in which the transmission terminal and the reception terminal of different stations are connected to each other. The data frame transmitted through this data line has the same structure as the HDLC data frame.
第3図に一次局21が送信するデータ・フレームの構造を
示す。31及び32は同期フラグで“01111110"のビット・
データである。データを受信した装置はこの同期フラグ
によってデータ・フレームの始めまたは終わりを検出す
る。FIG. 3 shows the structure of the data frame transmitted by the primary station 21. 31 and 32 are synchronization flags, which are bits of "01111110".
The data. The device which receives the data detects the start or end of the data frame by this synchronization flag.
33は送信データ部分で,この送信データ部分は通常,受
信局の番号を示すレシーブ・アドレスAと,データの転
送手順をコントロールするコントロール・フィールドC
と,実際の送信データであるI−フィールドとに分かれ
る。33 is a transmission data portion, which is normally a receive address A indicating the number of the receiving station and a control field C for controlling the data transfer procedure.
And the I-field which is the actual transmission data.
各局にはそれぞれ固有のアドレスが設定されており,各
局はレシーブ・アドレスAがこの固有アドレスと一致し
ない場合,データ・フレームを取り込まない所謂HDLCの
アドレス・サーチ機能を備えている。A unique address is set to each station, and each station has a so-called HDLC address search function that does not capture a data frame when the receive address A does not match this unique address.
ただし,レシーブ・アドレスがFF(16)(16進数表現)の
場合は,特別にグローバル・アドレッシングと呼び,局
の固有のアドレスの設定にかかわらずデータ・フレーム
を受信する。However, if the receive address is FF (16) (hexadecimal notation), it is called specially global addressing, and a data frame is received regardless of the unique address setting of the station.
34は送信データ部33のエラーを識別するためのCRCコー
ド部である。また,35は二次局の送信を起動する送信起
動フラグである。Reference numeral 34 is a CRC code portion for identifying an error in the transmission data portion 33. Further, 35 is a transmission start flag for starting the transmission of the secondary station.
送信時,この送信データ部分33とCRCコード部34のデー
タ部分で「1」が5ビット連続すると,「0」を挿入
し,また受信時には逆に「1」が5ビット連続すると次
の「0」を除く,0ビット挿入,除去を行う。このため送
信データ部2内のデータがスタート・フラグと同じ形に
なることがない。At the time of transmission, if the transmission data part 33 and the data part of the CRC code part 34 have five consecutive "1" s, a "0" is inserted. , And 0 bit insertion and removal. Therefore, the data in the transmission data section 2 does not have the same shape as the start flag.
各局は受信データを監視しつつ1ビット遅れで送信して
いて,ビット「1」が6ビット連続した場合,データ・
フレームの初め及び終わりを検出でき,その前の2バイ
トのCRCとデータ受信時作成したCRCとの照合を行ってデ
ータ・フレームにエラーが発生したかどうかを検出す
る。When each station is monitoring the received data and transmitting with a 1-bit delay, and if the bit "1" continues for 6 bits, the data
The beginning and end of a frame can be detected, and the CRC of the preceding 2 bytes and the CRC created when receiving data are compared to detect whether an error has occurred in the data frame.
さらに送信起動フラグ35において,ビット「1」が7ビ
ット連続した場合,これを送信起動フラグと見なし最後
の1ビットを「0」で置き換える,即ちデータ・フレー
ム開始フラグあるいは終了フラグに換えて送信し,自局
データ・フレームの送信を開始する。Further, in the transmission start flag 35, if seven bits "1" continue, it is regarded as a transmission start flag and the last one bit is replaced with "0", that is, the data frame start flag or end flag is transmitted. , Start transmitting local data frame.
二次局は自局データを送信し終るとデータ・フレームの
最後で,「0」の次に「1」が7ビット以上連続する送
信起動フラグを送信する。この結果一次局1の受信端子
にデータが一巡して戻ってくる際には第2図において,
一次局21,二次局22,23,24の順番に各装置のデータ・フ
レームがフラグで区切られて並んでくることになる。When the secondary station finishes transmitting its own data, at the end of the data frame, it transmits a transmission start flag in which “0” is followed by “1” for 7 bits or more. As a result, when the data returns to the receiving terminal of the primary station 1 in one cycle, in FIG.
The data frames of the respective devices are lined up in the order of the primary station 21, the secondary stations 22, 23, 24, separated by flags.
ここで,このデータ・フレームの流れを第4図に示す。The flow of this data frame is shown in FIG.
この方式の場合,データ送信の機動を掛けるのは常に一
次局21のみである。また,例えば第2図で二次局24から
二次局22へデータを転送する場合,一次局21を介し,一
次局21がデータの受渡しをコントロールする必要があ
る。このためループ回線上のデータ伝送装置間でのデー
タの引渡しには一次局が介入して管理することになる。In this system, only the primary station 21 always triggers data transmission. Further, for example, when transferring data from the secondary station 24 to the secondary station 22 in FIG. 2, the primary station 21 needs to control the delivery of data via the primary station 21. Therefore, the primary station intervenes and manages the delivery of data between the data transmission devices on the loop line.
ところが,一次局21に障害が発生するか,データ回線25
が劣化もしくは回線断状態となって送信起動フラグが受
け渡されなくなると,二次局22,23,24は正常に機能して
いてもデータ伝送が行えなくなってしまう。However, if the primary station 21 fails, the data line 25
If the transmission start flag is not passed due to deterioration or disconnection of the line, data transmission cannot be performed even if the secondary stations 22, 23, 24 are functioning normally.
この欠点を補うため,一次局モードと二次局モードとを
切り替えるデータ伝送方式を第5図に示す。To compensate for this drawback, Fig. 5 shows a data transmission system for switching between the primary station mode and the secondary station mode.
図中51,52,53,54はデータ伝送局であり,回線状態によ
りそれぞれ一次局または二次局となる。55は時計回りデ
ータ回線,56は反時計回りデータ回線である。このデー
タ伝送方式では,一次局及び二次局は互いにデータ転送
方向が異なる時計回りと反時計回りの2つのデータ回線
で環状に接続される。In the figure, 51, 52, 53, and 54 are data transmission stations, which are primary stations or secondary stations depending on the line status. 55 is a clockwise data line, and 56 is a counterclockwise data line. In this data transmission system, the primary station and the secondary station are connected in a ring by two clockwise and counterclockwise data lines whose data transfer directions are different from each other.
ここで,データ伝送局51を一次局モードとし,時計回り
及び反時計回りに送信起動フラグの送信を行い,データ
伝送局(二次局)52,53,54は各方向ともループ・モード
でデータの受信及び送信を行っているものとする。この
とき,環状回線上には各局の装置番号と各装置ごとに時
計回り,反時計回り双方向について回線の受信状態を示
す回線断識別フラグをデータ・フレームに付加して全局
に通報する。このデータ・フレームの送信断識別フラグ
により環状回線上の全ての局で回線の状態を知ることが
できる。Here, the data transmission station 51 is set to the primary station mode, the transmission start flag is transmitted in the clockwise and counterclockwise directions, and the data transmission stations (secondary stations) 52, 53, and 54 are in the loop mode in each direction. Is being received and transmitted. At this time, the device number of each station on the ring line and a line disconnection identification flag indicating the receiving state of the line for clockwise and counterclockwise bidirectional for each device are added to the data frame to notify all stations. The transmission state identification flag of this data frame enables all stations on the ring line to know the line state.
ここで第6図に番号61で示すように,回線に障害が発生
した場合,障害を検出したデータ伝送装置,即ち,第6
図では二次局52及び53がそれぞれ反時計回り,時計回り
について回線が復旧してデータ・フレームを受信するま
で回線断識別フラグを送信し,また一次局モードとなっ
てデータ伝送タイミングの起動を掛ける。Here, as indicated by numeral 61 in FIG. 6, when a failure occurs in the line, the data transmission device that has detected the failure, that is, the sixth
In the figure, the secondary stations 52 and 53 respectively transmit a line disconnection identification flag counterclockwise until the line is restored clockwise and a data frame is received, and the primary station mode is entered to activate the data transmission timing. Hang
一方この状態で各局は任意の局間でデータ・フレームに
コマンド要求を行う場合,時計回り,反時計回り各々か
ら受信するデータ列を検索し,回線がどの位置で切断さ
れているかを判断し,何れの方向に送信すべきかを確認
してデータ・フレームを転送することにより,固定的な
一次的な一次局なしに回線が接続されている範囲内であ
れば任意の局間でデータ・フレームを渡し合うことが可
能となる。On the other hand, in this state, when each station issues a command request for a data frame between arbitrary stations, it searches the data string received from each of the clockwise and counterclockwise directions to determine at which position the line is disconnected, By confirming in which direction the data frame should be transmitted and transferring the data frame, a data frame can be transmitted between arbitrary stations as long as the line is connected without a fixed primary station. It becomes possible to hand over.
ところが,上述した従来の伝送方式では回線上の各二次
局は自局で必要のないデータも含めて全てのデータ・フ
レームを受信することになり,その結果処理に無駄が生
じるという問題点がある。However, in the above-described conventional transmission method, each secondary station on the line receives all data frames including data that is not necessary for itself, resulting in waste of processing. is there.
また,データが正常に相手局に伝わったか,データ・フ
レームの列の順番に誤りがないかなど,データ転送の保
証をアプリケーションのレベルで行わねばならず,複雑
な手順を必要とするという問題点がある。In addition, it is necessary to guarantee data transfer at the application level, such as whether the data is normally transmitted to the partner station and whether the sequence of the data frame sequence is correct. This requires a complicated procedure. There is.
本発明は,HDLC通信手順のループ・モードによるデータ
通信機能を構えるデータ伝送装置が互いに逆方向にデー
タを伝送する2つの環状回線によって接続され,各デー
タ伝送装置には回線状態を監視する手段と,ループ・モ
ードでの送信を開始するための送信起動フラグを送信す
る手段とが備えられ,送信記動フラグを送信する一次局
モード及び環状回線の上流局より受信した信号をループ
送信し,送信起動フラグを検出するとこれをHDLCのフラ
グに替え,続いて自局データ・フレームを送信した後送
信起動フラグを送出する二次局モードを有し,これら一
次局モードと二次局モードとを切り替える切り替え手段
と,送信データ・フレーム中に回線断の識別フラグを送
信する手段が設けられ,この回線断識別フラグに基づい
て一次局モードと二次局モードを切り替えてデータ伝送
装置間でデータ通信を行うデータ伝送系において,各局
の状態を示すキャリア・フレームと呼ぶデータ・フレー
ムを定期的に各方向の伝送回線に送信し,キャリア・フ
レームに続いて各局間通信データ・フレームを付加して
送信し,通信を行う各局間で該データ・フレームごとに
フレーム転送手順を管理するようにしたことを特徴とす
るデータ伝送方式である。According to the present invention, a data transmission device having a data communication function according to a loop mode of an HDLC communication procedure is connected by two ring lines that transmit data in opposite directions, and each data transmission device has means for monitoring the line state. , Means for transmitting a transmission start flag for starting transmission in loop mode, loop transmission of the signal received from the primary station mode for transmitting the transmission notation flag and the upstream station of the loop line, and transmission When a startup flag is detected, it is replaced with an HDLC flag, and then there is a secondary station mode in which a local station data frame is transmitted and then a transmission startup flag is sent, and these primary station mode and secondary station mode are switched. Switching means and means for transmitting a line disconnection identification flag in the transmission data frame are provided, and the primary station mode and the secondary station are set based on the line disconnection identification flag. In a data transmission system in which data communication is performed between data transmission devices by switching modes, a data frame called a carrier frame indicating the state of each station is periodically transmitted to a transmission line in each direction, and the carrier frame is continued. This is a data transmission method characterized in that an inter-station communication data frame is added and transmitted, and a frame transfer procedure is managed for each data frame between communicating stations.
次に本発明について実施例によって説明する。 Next, the present invention will be described with reference to examples.
第1図に本発明によるデータ伝送装置の構成を示す。11
はデータ伝送装置,12,13はそれぞれ時計回りデータ回線
の受信側と送信側,14,15は反時計回りデータ回線の受信
側と送信側である。11a,11bはHDLCループ・データ通信
手段であり,二次局モードの場合には,ループ通信を行
い,一方,一次局モードの場合には,受信と送信を別々
に行う機能を有する。FIG. 1 shows the configuration of a data transmission device according to the present invention. 11
Is a data transmission device, 12 and 13 are a reception side and a transmission side of a clockwise data line, and 14 and 15 are a reception side and a transmission side of a counterclockwise data line. Reference numerals 11a and 11b are HDLC loop data communication means, which have a function of performing loop communication in the secondary station mode, and have a function of separately performing reception and transmission in the primary station mode.
11c,11dはそれぞれ時計回り,反時計回りの受信バッフ
ァ,11e,11fはそれぞれ時計回り,反時計回りの送信バッ
ファである。11gは送受信手順を管理する管理手段,11h
は送信データを時計回り,反時計回りいずれの方向に送
るかを制御する送信データ分配手段,11iは送受信手順を
管理する際に管理用データを保管しておくメモリ,11jは
アプリケーション・モジュールである。Reference numerals 11c and 11d are clockwise and counterclockwise receive buffers, respectively, and 11e and 11f are clockwise and counterclockwise transmit buffers, respectively. 11g is a management means for managing the transmission / reception procedure, 11h
Is a transmission data distribution means for controlling whether the transmission data is sent clockwise or counterclockwise, 11i is a memory for storing management data when managing transmission / reception procedures, and 11j is an application module .
本方式ではシステム全体の構成は二重の環状回線による
接続を使用しており,システム構成は第5図に従う。In this method, the entire system configuration uses a dual ring line connection, and the system configuration follows that shown in FIG.
第7図に各データ伝送装置が送出するデータ・フレーム
の構造を示す。FIG. 7 shows the structure of a data frame transmitted by each data transmission device.
図中7a,7b,7cは同期フラグ,71はキャリア・フレームの
データ部,71dはこのデータ・フレームのCRCコードであ
る。キャリア・フレーム71にはグローバル・アドレス71
aと,コントロール・フィールド71b及び回線断識別フラ
グを含んだI−フィールド71cを備えている。なお,こ
こでコントロール・フィールド71bにはキャリア・フレ
ーム71が送信手順の管理や再送要求等を行わない所謂垂
れ流しのデータ転送方式を用いているため番号無しの特
殊コードが付加されている。In the figure, 7a, 7b and 7c are synchronization flags, 71 is the data part of the carrier frame, and 71d is the CRC code of this data frame. Global address 71 for carrier frame 71
a, an I-field 71c including a control field 71b and a line disconnection identification flag. Incidentally, here, a special code without a number is added to the control field 71b because the carrier frame 71 uses a so-called non-stop data transfer method in which the transmission procedure is not managed and the retransmission request is not performed.
図中72は手順付きデータ・フレームのデータ部である。
手順付きデータ・フレーム72には転送先の局を示す受信
アドレス72aと,コントロール・フィールド72b,転送デ
ータであるI−フィールド72c及びこれらのエラー・チ
ェックを行うCRCコード72dを備えている。ここで手順付
きデータ・フレーム72のコントロール・フィールド72b
には手順付きデータ・フレーム72がHDLCの通信手順を行
い,データ・フレームの順番の管理や再送要求,通信モ
ードの設定を行うため,HDLCの通常のコントロールキャ
ラクタがセットされる。通常,手順付きデータ・フレー
ム72は非同期平衡モードで番号付き通信手順を用いてい
る。In the figure, 72 is the data portion of the data frame with procedure.
The procedure-provided data frame 72 is provided with a reception address 72a indicating a transfer destination station, a control field 72b, an I-field 72c which is transfer data, and a CRC code 72d for checking these errors. Where control field 72b of procedural data frame 72
In order to perform the HDLC communication procedure by the data frame with procedure 72, manage the order of the data frames, request retransmission, and set the communication mode, a normal HDLC control character is set. Normally, the procedural data frame 72 uses a numbered communication procedure in asynchronous balanced mode.
本発明では環状回線の接続を維持するため,キャリア・
フレームは各データ伝送装置で常に送信及び受信する
が,手順付きデータ・フレームはそれぞれのデータ伝送
装置で送信すべきデータを持たない場合は送信を行わな
い。In the present invention, in order to maintain the connection of the loop line,
A frame is always transmitted and received by each data transmission device, but a procedural data frame is not transmitted unless each data transmission device has data to be transmitted.
第8図に本発明によるデータ通信方式を確立する制御手
段の階層の構成について示す。FIG. 8 shows the hierarchical structure of the control means for establishing the data communication system according to the present invention.
第8図に示すように,本発明によるデータ通信はいくつ
かの機能の階層構造によって管理運営される。まず,第
1層81はデータ通信を行うハードウェアであり,これは
時計回り,反時計回りそれぞれにHDLCデータ・フレーム
の送信,受信機能を有し,それぞれ独立にループ通信モ
ードと通常の送受信を別々に行う通常通信モードを切り
替えて行う。As shown in FIG. 8, the data communication according to the present invention is managed and operated by a hierarchical structure of some functions. First, the first layer 81 is hardware for performing data communication, which has a function of transmitting and receiving HDLC data frames in clockwise and counterclockwise directions, respectively, and independently performs loop communication mode and normal transmission / reception. It is performed by switching the normal communication mode that is performed separately.
第1.5層82はファームウェアで送受信データ・フレーム
の種類をキャリア・フレームと手順付きデータ・フレー
ムで識別する。受信したデータ・フレームのうち手順付
きデータ・フレームは第2層83に処理を引き渡す。ま
た,第2層83から渡された自局の手順付き送信データ・
フレームは自局の送信タイミングでキャリア・フレーム
の送信後に第1層81に引き渡して送信を起動する制御を
行う。The 1.5th layer 82 uses a firmware to identify the type of transmitted / received data frame by a carrier frame and a procedural data frame. The procedure-provided data frame among the received data frames is handed over to the second layer 83. In addition, the transmission data with procedure of its own station passed from the second layer 83
The frame is delivered to the first layer 81 after the carrier frame is transmitted at the transmission timing of its own station, and control is performed to activate the transmission.
一方,第1.5層82は受信したキャリア・フレームから回
線の接続状態の管理のための回線断情報を回線接続管理
メモリ85に蓄積しておき、この情報をもとに一次局モー
ド/二次局モードのハードウェア切り替えを行ったり,
送信時に時計回り,反時計回りどちらの回線にデータ・
フレームを送信すべきかを判断してデータ・フレームを
分配する機能を有する。また,自局の回線断検出手段に
よる回線情報を自局キャリア・フレームにセットして環
状回線の双方向に送信する。On the other hand, the 1.5th layer 82 stores line disconnection information for managing the line connection state from the received carrier frame in the line connection management memory 85, and based on this information, the primary station mode / secondary station is stored. Switch hardware between modes,
Data is sent to either the clockwise or counterclockwise line during transmission.
It has a function of deciding whether to transmit a frame and distributing the data frame. Also, the line information by the line disconnection detecting means of the own station is set in the carrier frame of the own station and transmitted in both directions of the ring line.
第2層83は手順付きデータ・フレームの送受信手順のみ
を管理する。本送受信手順は第2層以上については通常
のHDLC通信手順と同様の動作を行う。The second layer 83 manages only the procedure of transmitting and receiving the data frame with the procedure. This transmission / reception procedure performs the same operation as the normal HDLC communication procedure for the second layer and above.
第3層84はアプリケーション・モジュールのファームウ
ェアおよびソフトウェアである。一般的には第3層84に
データ・リンクの確立を行うファームウェア,さらにそ
の上にアプリケーションを機能させるソフトウェアと言
った階層モデルを用いるが本発明では前記第2層以上は
他の一般的な通信手順と同様であるため,これらの機能
を第3層アプリケーション・モジュールとしてまとめて
説明してある。The third layer 84 is the application module firmware and software. Generally, a layered model such as firmware for establishing a data link on the third layer 84 and software for causing an application to function on the layered layer 84 is used. However, in the present invention, the second layer and above are other general communication. Since the procedure is similar, these functions are collectively described as the third layer application module.
第9図及び第10図を参照して第1.5層のファームウェア
の動作について説明する。The operation of the firmware of the layer 1.5 will be described with reference to FIGS. 9 and 10.
本発明によるデータ伝送装置はこの第1.5層ファームウ
ェアを時計回り,反時計回り双方について持っていて,
それぞれ独立に動作する。本発明のデータ通信方式では
各データ伝送装置は装置立ち上げ時,まず二次局モード
で立ち上がる。第9図が二次局モードの動作手順,第10
図が一次局モードの動作手順である。データ伝送装置は
装置立ち上げ後,自己診断,システム起動の各種の手続
きを行った後環状回線の通信系に参入する。The data transmission device according to the present invention has the 1.5-layer firmware both clockwise and counterclockwise,
Each works independently. In the data communication system of the present invention, each data transmission device first starts up in the secondary station mode when the device starts up. Figure 9 shows the operation procedure in secondary station mode, 10th
The figure shows the operation procedure in the primary station mode. After starting up the data transmission equipment, after performing various procedures such as self-diagnosis and system startup, the data transmission equipment will enter the communication system of the loop line.
二次局モードにおけるデータ・フレームの送信は第1層
のハードウェアで自動的に送信起動フラグの受信を検出
して送信を行っている。このため第1.5層のファームウ
ェアではいったんデータ・フレームを送信バッファにセ
ットしてループ通信モードとするとデータ・フレームの
送信完了を待つ。この間に上流局からのキャリア・フレ
ームや手順付きデータ・フレームを受信すると,1フレー
ム受信するごとに受信データのポインタと受信状態のス
テータスのみを管理用メモリにセーブしておく。これら
のポインタとステータスは送信起動フラグ受信後,キャ
リア・フレームからは回線断フラグを抽出して回線状態
管理情報を作成するとき,あるいは第2層ファームウェ
アにデータの処理を引き渡す場合に用いる。In the transmission of the data frame in the secondary station mode, the hardware of the first layer automatically detects the reception of the transmission start flag and transmits it. For this reason, the firmware of layer 1.5 waits for the completion of data frame transmission once the data frame is set in the transmission buffer and the loop communication mode is set. When a carrier frame or data frame with a procedure is received from the upstream station during this time, only the received data pointer and the status of the reception state are saved in the management memory each time one frame is received. These pointers and statuses are used when the line disconnection flag is extracted from the carrier frame after the transmission start flag is received to create the line state management information, or when the data processing is handed over to the second layer firmware.
送信バッファにセットしたキャリア・フレームの送信が
完了すると,第1.5層は自局に送信すべき手順付きデー
タ・フレームがあるかどうかを確認する。また送信を行
っていない手順付きデータ・フレームがある場合,デー
タ・フレームを送信バッファにセットし,送信を開始す
る。自局内に送信すべきデータ・フレームが無い場合,
第1.5層は送信起動フラグを出力する処理を行い,送信
完了後受信バッファの切り替えや受信バッファのリセッ
トなど,次の受信に待機するための処理を行い,さらに
自局の回線監視手段によって得られた回線断識別フラグ
をセットしたキャリア・フレームを作成し,送信バッフ
ァにセットする。When transmission of the carrier frame set in the transmission buffer is completed, layer 1.5 checks whether or not there is a procedure-oriented data frame to be transmitted to the local station. If there is a data frame with a procedure that has not been transmitted, the data frame is set in the transmission buffer and transmission is started. If there are no data frames to send in your station,
Layer 1.5 performs the process of outputting the transmission start flag, performs the process of waiting for the next reception such as switching the receiving buffer and resetting the receiving buffer after the completion of transmission, and further obtains it by the line monitoring means of the own station. Create a carrier frame with the line disconnection identification flag set and set it in the transmission buffer.
二次局モードにおいてデータ・フレームの送信完了待ち
には回線監視手段と共に送信完了のガードタイムがあ
り,回線断を検出するか一定時間以上に送信起動がかか
らない場合,自局を一次局モードに切り替える。In the secondary station mode, there is a transmission completion guard time waiting for the completion of data frame transmission together with the line monitoring means, and if a line disconnection is detected or transmission is not started for a certain period of time or more, the own station is switched to the primary station mode. .
一次局モードとなるとキャリア・フレームに回線断識別
フラグをセットして送信を行う。ここでもキャリア・フ
レーム送信後,自局に送信すべき手順付きデータ・フレ
ームがある場合,このデータ・フレームを送信バッファ
にセットして送信を起動する。送信データ・フレームが
無くなれば直ちに送信起動フラグの送信処理を行い,第
2層に対し送信バッファの解放を通知し,対局からのデ
ータ受信待機状態となる。When in the primary station mode, the line disconnection identification flag is set in the carrier frame and transmission is performed. Here again, if there is a data frame with a procedure to be transmitted to the local station after transmitting the carrier frame, this data frame is set in the transmission buffer and transmission is started. When the transmission data frame is exhausted, the transmission start flag is immediately transmitted, the second layer is notified of the release of the transmission buffer, and the standby state for receiving data from the opposite station is established.
ここで,対局からデータ・フレームを受信すれば1デー
タ・フレームごとに受信データのポインタとステータス
をセーブする。Here, if a data frame is received from the game, the pointer and status of the received data are saved for each data frame.
対局から送信起動フラグを受信したら,一連のデータ・
フレーム列の受信完了として受信データの解析と編集処
理を起動する。ここでは,受信したキャリア・フレーム
をもとに回線の接続状態の管理情報を作成し,手順付き
データ・フレームは第2層に処理を引き渡す。受信デー
タ解析後,同一方向回線の上流より受信したデータ・フ
レーム列の中に自局が送信したデータ・フレームがある
かどうかをチェックし自局データ・フレームがある場
合,環状回線が閉じているものと見なして自局を一次局
モードとして固定する。もしこのとき同一方向上流より
受信したデータ・フレーム列の中に自局データフレーム
が無い場合は,環状回線が自局以外の上流で切断してい
て,他の一次局があることを示しているので,同一方向
データ受信カウンタをカウントアップする。When the transmission start flag is received from the game, a series of data
When the reception of the frame sequence is completed, the analysis and editing process of the received data is started. Here, the management information of the connection state of the line is created based on the received carrier frame, and the process of the data frame with the procedure is handed over to the second layer. After analyzing the received data, it checks whether or not there is a data frame transmitted by the own station in the data frame sequence received from the upstream of the same direction line, and if there is the own station data frame, the loop line is closed. It is assumed that the station is fixed as the primary station mode. If there is no own data frame in the data frame sequence received from the upstream in the same direction at this time, it means that the ring line is disconnected upstream of other than the own station and there is another primary station. Therefore, the same direction data reception counter is incremented.
カウンタのカウント値nが一定のガード回数Nを越えた
場合,上流の回線が充分正常に機能していると判断して
自局第1.5層を二次局モードにセットし,回線断フラグ
をクリアして二次局モードに移行する。When the count value n of the counter exceeds a certain guard count N, it is determined that the upstream line is functioning properly and the layer 1.5 of the own station is set to the secondary station mode and the line disconnection flag is cleared. Then, it shifts to the secondary station mode.
これ以外,即ち,同一方向の上流からデータ・フレーム
を受信しなかった場合や受信したデータ・フレーム列の
中に自局の送信データがある場合,送信インターバル・
タイマーによるウェイト時間の後,次のキャリア・フレ
ームの送信を行う。In other cases, that is, when no data frame is received from the upstream in the same direction, or when there is transmission data of the own station in the received data frame sequence, the transmission interval
After the wait time by the timer, the next carrier frame is transmitted.
これら一連の第1.5層ファームウェアの動作により環状
回線にどのような切断形態で障害が発生しても,両端切
断点に一次局を発生することができ,また環状回線に障
害がなく閉じている場合でも一次局を固定して,接続で
きる局間でデータ通信を行うことが可能となる。When a series of 1.5 layer firmware operations causes a failure in the ring line in any disconnection mode, the primary station can be generated at both end disconnection points, and the ring line is closed without failure. However, it is possible to fix the primary station and perform data communication between the stations that can be connected.
また,第1.5層ファームウェアが回線の接続状態の管理
を行うことにより,第2層のデータ通信手順はデータ・
フレームの順番やデータの再送要求等の通常の手順のみ
行うように機能分割を行うことができる。In addition, the layer-1 firmware manages the connection status of the line so that the layer-2 data communication procedure is
It is possible to divide the functions so that only normal procedures such as the order of frames and a request for resending data are performed.
本発明によるデータ通信方式では,上記のようなファー
ムウェアを用いてキャリア・フレームによる回線接続の
管理を行いつつ,任意の局間でデータ通信手順を確立す
る。このため各データ伝送装置内の第2層以上のファー
ムウェア・モジュール,ソフトウェア・モジュールは回
線の切断状態,データ送信を行う方向等を考慮すること
なく通信を行うことになる。In the data communication system according to the present invention, the above-described firmware is used to manage the line connection by the carrier frame and establish the data communication procedure between arbitrary stations. For this reason, the firmware modules and software modules of the second layer and above in each data transmission device can communicate without considering the line disconnection state, the direction of data transmission, and the like.
以上説明したように各データ伝送装置の状態をループ回
線上の全データ伝送装置に知らせるキャリア・フレーム
を定期的に時計回り,反時計回り双方向の回線に転送し
ておき,キャリア・フレームの後ろに(に続いて)各局
間通信データ・フレームを付加して送信し,通信を行う
各局間で該データ・フレームごとにフレーム転送手順を
管理する事により任意の局間でデータを交換を効率よく
行うことが可能となる。As described above, a carrier frame that informs all the data transmission devices on the loop line of the status of each data transmission device is periodically transferred to the clockwise and counterclockwise bidirectional lines, and the (Following) the inter-station communication data frame is added and transmitted, and by managing the frame transfer procedure for each data frame between the communicating stations, data can be efficiently exchanged between arbitrary stations. It becomes possible to do.
第1図は本発明に用いられるデータ伝送装置の一実施例
を示す図,第2図は従来のデータ伝送系の一例を示す
図,第3図はデータ・フレームの構造を示す図,第4図
はデータフレームの流れを説明するための図,第5図は
従来のデータ伝送系の他の例を示す図,第6図は回線障
害が発生した際のデータの伝送を説明するための図,第
7図は第1図に示すデータ伝送装置が送出するデータ・
フレームの構造を示す図,第8図は制御手段の階層構成
を説明するための図,第9図は二次局モードの動作手順
を説明するための図,第10図は一次局モードの動作手順
を説明するための図である。 11……データ伝送装置,11a,11b……HDLC通信素子,11c,1
1d……受信バッファ,11e,11f……送信バッファ,11g……
送受信手順管理手段,11h……送信データ分配手段,11i…
…送受信手順管理メモリ,11j……アプリケーション・モ
ジュール。FIG. 1 is a diagram showing an embodiment of a data transmission device used in the present invention, FIG. 2 is a diagram showing an example of a conventional data transmission system, FIG. 3 is a diagram showing the structure of a data frame, and FIG. FIG. 5 is a diagram for explaining the flow of a data frame, FIG. 5 is a diagram showing another example of a conventional data transmission system, and FIG. 6 is a diagram for explaining data transmission when a line failure occurs. , FIG. 7 shows the data transmitted by the data transmission device shown in FIG.
FIG. 8 is a diagram showing the frame structure, FIG. 8 is a diagram for explaining the hierarchical structure of the control means, FIG. 9 is a diagram for explaining the operation procedure in the secondary station mode, and FIG. 10 is an operation in the primary station mode. It is a figure for demonstrating a procedure. 11 …… Data transmission device, 11a, 11b …… HDLC communication device, 11c, 1
1d …… Receive buffer, 11e, 11f …… Send buffer, 11g ……
Transmission / reception procedure management means, 11h ... Transmission data distribution means, 11i ...
… Transmission / reception procedure management memory, 11j …… Application module.
Claims (1)
のループ・モードによるデータ通信を行うデータ伝送装
置が互いに逆方向にデータを伝送する2つの環状回線に
よって接続され,各データ伝送装置には回線状態を監視
する監視手段と,前記ループ・モードでの送信を開始す
るための送信起動フラグを送信する手段とが備えられ,
送信記動フラグを送信する一次局モード及び前記環状回
線の上流局より受信した信号をループ送信し,送信起動
フラグを検出すると該送信起動フラグをHDLCのフラグに
替え,続いて自局データ・フレームを送信した後送信起
動フラグを送出する二次局モードを有し,該一次局モー
ドと二次局モードとを切り替える切り替え手段と,送信
データ・フレーム中に回線断の識別フラグを送信する手
段とが設けられ,該回線断識別フラグに基づいて一次局
モードと二次局モードとを切り替えてデータ伝送装置間
でデータ通信を行うデータ伝送系において,各局の状態
を示すキャリア・フレームを予め定められた間隔で伝送
回線に送信し,該キャリア・フレームに続いて各局間通
信データ・フレームを付加して送信する一方,通信各局
間で該データ・フレームごとにフレーム転送手順を管理
する手段を有し,予め定められた局間でデータを交換す
るようにしたことを特徴とするデータ伝送方式。1. A data transmission device for performing data communication in a loop mode of a high level data link control (HDLC) procedure is connected by two ring lines for transmitting data in opposite directions, and a line is connected to each data transmission device. Monitoring means for monitoring the state, and means for transmitting a transmission start flag for starting transmission in the loop mode,
When the signal received from the primary station mode for transmitting the transmission recording flag and the upstream station of the ring line is loop-transmitted, and the transmission activation flag is detected, the transmission activation flag is changed to the HDLC flag, and then the own data frame A switching means for switching between the primary station mode and the secondary station mode, which has a secondary station mode for transmitting a transmission start flag after transmitting the transmission, and means for transmitting the line disconnection identification flag in the transmission data frame. Is provided, and in a data transmission system for performing data communication between data transmission devices by switching between a primary station mode and a secondary station mode based on the line disconnection identification flag, a carrier frame indicating the state of each station is predetermined. The data is transmitted to the transmission line at regular intervals, the inter-station communication data frame is added after the carrier frame, and the data frame is transmitted between the communication stations. A data transmission method characterized in that it has a means for managing the frame transfer procedure for each frame and exchanges data between predetermined stations.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1005941A JPH0773281B2 (en) | 1989-01-17 | 1989-01-17 | Data transmission method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1005941A JPH0773281B2 (en) | 1989-01-17 | 1989-01-17 | Data transmission method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02188044A JPH02188044A (en) | 1990-07-24 |
| JPH0773281B2 true JPH0773281B2 (en) | 1995-08-02 |
Family
ID=11624928
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1005941A Expired - Fee Related JPH0773281B2 (en) | 1989-01-17 | 1989-01-17 | Data transmission method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0773281B2 (en) |
-
1989
- 1989-01-17 JP JP1005941A patent/JPH0773281B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02188044A (en) | 1990-07-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0055404B1 (en) | Method and system for data communication | |
| EP0324886B1 (en) | Control flow reduction in selective repeat protocols | |
| JPH05204804A (en) | High speed transmission line interface | |
| JPS5947906B2 (en) | loop transmission system | |
| JPH0683243B2 (en) | Data communication system and apparatus | |
| JPS63279633A (en) | Multi-address communication system | |
| Baratz et al. | Reliable link initialization procedures | |
| JPH0654911B2 (en) | Method and apparatus for transferring mastership | |
| KR920007099B1 (en) | System for internetwork communication between local area networks | |
| JP2001237889A (en) | Detour path control method and apparatus in data communication network | |
| JPH11341041A (en) | Relay communication system, its data transfer guarantee monitoring method and communication equipment used for the method | |
| JPH0773281B2 (en) | Data transmission method | |
| JP2000156707A (en) | Packet-switching station and packet-switching network system | |
| JP2526602B2 (en) | Data transmission method | |
| JP4127591B2 (en) | Loop type data transmission system | |
| JPH0218623B2 (en) | ||
| JPH0126213B2 (en) | ||
| JP2650317B2 (en) | Broadcast control method in wireless communication system | |
| JPH0683241B2 (en) | Data transmission method | |
| KR950001520B1 (en) | Signalling terminal group bus communication protocol of message transfer part using common channel signalling no.7 | |
| JPS6412144B2 (en) | ||
| JPH0193945A (en) | Data transmission system | |
| JPS6347023B2 (en) | ||
| JPS6062765A (en) | Transmission control method in loop transmission system | |
| JPH0568902B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |