JPH0637775A - Token controller - Google Patents
Token controllerInfo
- Publication number
- JPH0637775A JPH0637775A JP19211192A JP19211192A JPH0637775A JP H0637775 A JPH0637775 A JP H0637775A JP 19211192 A JP19211192 A JP 19211192A JP 19211192 A JP19211192 A JP 19211192A JP H0637775 A JPH0637775 A JP H0637775A
- Authority
- JP
- Japan
- Prior art keywords
- transmission
- token
- station
- tokens
- control unit
- 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
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
(57)【要約】
【目的】 複数のトークンが周回するトークリングで、
ステーションの優先度に応じて伝送フレーム1周期での
獲得トークン数を制限し、伝送領域の利用効率を高め、
かつ、全データ送信時間を短縮するトークン制御装置を
得る。
【構成】 マスター局からの設定情報を監視して指定の
自局のトークン数を設定する制御情報領域監視手段と、
データ送信時には上記設定された自局のトークン数を参
照し、同一伝送フレーム中の空きトークンを上記参照し
た自局のトークン数まで獲得制御するカウンタ・トーク
ン獲得制御手段を備えた。
(57) [Summary] [Purpose] A talk ring in which multiple tokens orbit,
Limit the number of tokens acquired in one cycle of the transmission frame according to the priority of the station to improve the utilization efficiency of the transmission area,
Also, a token control device that shortens the total data transmission time is obtained. [Configuration] Control information area monitoring means for monitoring the setting information from the master station and setting the number of tokens of the designated own station,
At the time of data transmission, the counter / token acquisition control means is provided for referencing the set number of tokens of the own station and controlling the acquisition of empty tokens in the same transmission frame up to the number of tokens of the own station referred to above.
Description
【0001】[0001]
【産業上の利用分野】この発明は、ループ型ネットワー
クの伝送制御方法に関し、特にトークンリング全体で複
数のトークンが周回する方式(以下、マルチトークン方
式と呼ぶ)に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transmission control method for a loop type network, and more particularly to a system in which a plurality of tokens circulates throughout a token ring (hereinafter referred to as a multi-token system).
【0002】[0002]
【従来の技術】図7は、例えば特開昭63−24014
8号公報に示された従来のマルチトークン方式によるト
ークンリングの構成である。図7において、複数のステ
ーション70a〜70n等70が、伝送路71を介して
ループ状に接続され、そのうちの一つ、例えば70aが
マスターステーションとなる。72は伝送路上を矢印に
示す方向に周回する伝送フレームであり、この伝送フレ
ーム72は先頭部に位置した同期パターン74と、これ
に続くn個の伝送領域、75、76、77とからなる。
各伝送領域75、76、77にはそれぞれ一つずつトー
クン73が割り当てられ、リング上を同時に複数のトー
クンが周回する。2. Description of the Related Art FIG. 7 shows, for example, Japanese Patent Laid-Open No. 63-24014.
This is a configuration of a token ring according to the conventional multi-token system shown in Japanese Patent No. 8 publication. In FIG. 7, a plurality of stations 70a to 70n and the like 70 are connected in a loop via a transmission line 71, and one of them, for example, 70a, becomes a master station. Reference numeral 72 is a transmission frame that circulates on the transmission path in the direction indicated by the arrow. This transmission frame 72 is composed of a synchronization pattern 74 located at the beginning and n transmission areas 75, 76 and 77 following the synchronization pattern 74.
One token 73 is assigned to each of the transmission areas 75, 76, 77, and a plurality of tokens circulate on the ring at the same time.
【0003】また、図8は従来のステーションの送信部
のみの伝送制御ブロック図である。図において、1は伝
送路、82はトークン獲得制御部、3はデータパケット
送信完了制御部、84はデータパケット送信制御部、5
は読み出し回路、86は送信バッファ、87は送信要求
部、8は内部バス90を介して送信部に接続されたCP
U、9と10はセレクタ、91はデータパケット送信許
可信号、92は相対番号、93はトークン送出要求信
号、94は送信要求信号である。FIG. 8 is a transmission control block diagram of only the transmission section of a conventional station. In the figure, 1 is a transmission path, 82 is a token acquisition control unit, 3 is a data packet transmission completion control unit, 84 is a data packet transmission control unit, 5
Is a read circuit, 86 is a transmission buffer, 87 is a transmission request unit, and 8 is a CP connected to the transmission unit via an internal bus 90.
U, 9 and 10 are selectors, 91 is a data packet transmission permission signal, 92 is a relative number, 93 is a token transmission request signal, and 94 is a transmission request signal.
【0004】次に、ステーションでのデータの送信動作
について説明する。送信すべきデータパケットが準備で
きたステーション70では、まずデータパケットを送信
バッファ86に格納し、送信バッファ86は送信する準
備ができたことを送信要求部87に通知する。それに応
じて、送信要求部87は送信要求94をトークン獲得制
御部82に送る。送信要求94を受けてトークン獲得制
御部82は、該ステーション70を通過する伝送フレー
ム72の中の各伝送領域75、76、77を順次監視
し、最初に検出したトークン73を獲得する。獲得した
ならば、データパケット送信制御部84及びデータパケ
ット送信完了制御部3に対して、データパケット送信許
可信号91と、該トークン73を含む伝送領域が伝送フ
レーム72上で占める位置(相対番号)92を通知す
る。その後、データパケット送信制御部84は、所定の
タイミングで読み出し回路5とセレクタ10を動作さ
せ、通知された伝送領域を使用して送信バッファ86内
のデータパケットを伝送路上に送信する。Next, the data transmission operation in the station will be described. The station 70, which has prepared the data packet to be transmitted, first stores the data packet in the transmission buffer 86, and the transmission buffer 86 notifies the transmission request unit 87 that the transmission packet is ready for transmission. In response to this, the transmission request unit 87 sends a transmission request 94 to the token acquisition control unit 82. In response to the transmission request 94, the token acquisition control unit 82 sequentially monitors the respective transmission areas 75, 76, 77 in the transmission frame 72 passing through the station 70, and acquires the first detected token 73. If acquired, the position (relative number) occupied by the data packet transmission permission signal 91 and the transmission area including the token 73 on the transmission frame 72 to the data packet transmission control unit 84 and the data packet transmission completion control unit 3 Notify 92. After that, the data packet transmission control unit 84 operates the read circuit 5 and the selector 10 at a predetermined timing, and transmits the data packet in the transmission buffer 86 on the transmission path by using the notified transmission area.
【0005】データパケットが送信されている期間中、
データパケット送信完了制御部3は、トークン獲得制御
部82から通知された伝送領域を監視し、データパケッ
トのエンディングデリミタや、それに続く該データパケ
ットのレスポンス情報を検出する。検出された時、デー
タパケット送信完了制御部3は、送信要求部87へ送信
完了を通知する。また、トークン獲得制御部82に対し
て、トークン送出要求93を通知し、これに応答してト
ークン獲得制御部82は、セレクタ9を動作させ今まで
データを送信していた伝送領域にトークン73を送出
し、データの送信動作が終了する。During the time that a data packet is being transmitted,
The data packet transmission completion control unit 3 monitors the transmission area notified by the token acquisition control unit 82, and detects the ending delimiter of the data packet and the response information of the data packet that follows. When detected, the data packet transmission completion control unit 3 notifies the transmission request unit 87 of the transmission completion. Further, the token acquisition control unit 82 is notified of the token transmission request 93, and in response to this, the token acquisition control unit 82 operates the selector 9 to place the token 73 in the transmission area where data has been transmitted until now. The data is transmitted, and the data transmission operation ends.
【0006】上記のような従来のマルチトークン方式で
は、伝送路上を周回している伝送フレームを複数の伝送
領域に分割し、上記各伝送領域にトークンを割り当てる
構成で、ステーションがデータを送出する際、ステーシ
ョンは通常、一つのトークンしか獲得できず、複数の上
記伝送領域の内一つの伝送領域しか占有できない。この
ため、上記伝送フレームの1回の周期で送れるデータ量
が制限されてしまう。これは伝送フレームを分割した伝
送領域の数(つまり、割り当てられたトークンの数)が
多くなればなるほど顕著となる。このため、一つのステ
ーションからデータを多量に送る場合、伝送時間が大き
くなってしまう。In the conventional multi-token system as described above, when a station sends data, the transmission frame circulating on the transmission path is divided into a plurality of transmission areas and the tokens are allocated to the respective transmission areas. The station can usually obtain only one token, and can occupy only one transmission area among the plurality of transmission areas. Therefore, the amount of data that can be sent in one cycle of the transmission frame is limited. This becomes more remarkable as the number of transmission areas obtained by dividing the transmission frame (that is, the number of allocated tokens) increases. Therefore, when sending a large amount of data from one station, the transmission time becomes long.
【0007】一方、他のトークン方式として、トークン
の割当を全く廃止し、どのステーションからでも任意の
空きトークンに対して任意の数だけこれを獲得し、従っ
て任意の数だけ伝送領域を占有してデータを送れるよう
にした方式がある。この方式だと多量のデータを送るス
テーションが最初にトークンを獲得できる接続であれ
ば、データを連続して送れ、待たされることはない。送
信量が少ないステーションはトークンの獲得動作を行う
回数が少なく、従ってフレームあたりの全トークン平均
の利用効率が向上する。しかし、多量のデータを送るス
テーションが論理的に下流に接続され、その上流に他の
多量にデータを送るステーションが接続されていると、
下流のステーションはトークンを獲得する機会が少なく
なり、多量の送信データがステーションで待たされてオ
ーバーフローしてしまう。On the other hand, as another token system, the allocation of tokens is completely abolished, and an arbitrary number of free tokens are acquired from any station, so that an arbitrary number of transmission areas are occupied. There is a method that allows you to send data. With this method, if the station that sends a large amount of data is a connection that can obtain the token first, the data can be sent continuously and there is no need to wait. A station with a small amount of transmission has a small number of token acquisition operations, and thus the utilization efficiency of all tokens per frame is improved. However, if a station that sends a large amount of data is logically connected downstream and another station that sends a large amount of data is connected upstream of it,
Downstream stations have less chances to obtain tokens, and large amounts of transmission data are kept waiting at the stations and overflow.
【0008】[0008]
【発明が解決しようとする課題】従来のマルチトークン
方式は以上のように構成されていたので、割当が固定の
マルチトークン方式では、多量のデータを送信するステ
ーションからのデータ伝送時間が長くなり、かつフレー
ム平均での伝送効率が低下するという課題があった。ま
たトークンのチャネルの割当をしないトークン方式で
は、全体の伝送効率は向上しても、論理的に上流のステ
ーションが優先され、下流のステーションは待たされて
必要な伝送ができなくなるという課題があった。Since the conventional multi-token system is configured as described above, in the multi-token system with fixed allocation, the data transmission time from the station transmitting a large amount of data becomes long, In addition, there is a problem that the transmission efficiency at the frame average is reduced. In addition, the token system that does not allocate token channels has a problem that although the overall transmission efficiency is improved, the upstream station is logically prioritized and the downstream station is kept waiting to perform necessary transmission. .
【0009】この発明は上記の課題を解決するためにな
されたもので、マルチトークン方式において、全体のト
ラフィックの量と、優先度を勘案して、各ステーション
のフレーム中の割り当てトークンの数を可変にし、各ス
テーションがマスター局からの割り当て情報によりトー
クン獲得数を可変に設定して、伝送領域の利用効率を高
め、同時に各ステーションの伝送時間を短縮するトーク
ン制御装置を得ることを目的とする。The present invention has been made to solve the above problems, and in the multi-token system, the number of assigned tokens in the frame of each station is variable in consideration of the total traffic volume and priority. It is an object of the present invention to obtain a token control device in which each station variably sets the number of token acquisitions according to allocation information from the master station to improve the utilization efficiency of the transmission area and at the same time shorten the transmission time of each station.
【0010】[0010]
【課題を解決するための手段】この発明に係わるトーク
ン制御装置は、マスター局からの設定情報を監視して指
定の自局のトークン数を設定する制御情報領域監視手段
と、データ送信時には上記設定された自局のトークン数
を参照し、同一伝送フレーム中の空きトークンを上記参
照した自局のトークン数まで獲得制御するカウンタ・ト
ークン獲得制御手段を備えた。A token control device according to the present invention comprises a control information area monitoring means for monitoring setting information from a master station and setting the number of tokens of its own station, and the above setting when transmitting data. A counter / token acquisition control means is provided for referring to the number of tokens of the own station, and controlling acquisition of the empty tokens in the same transmission frame up to the number of tokens of the own station referred to above.
【0011】[0011]
【作用】この発明におけるトークン制御装置は、送られ
てきた設定情報により自局のトークン数を設定し、デー
タ送信時には、この自局の設定トークン数まで空きトー
クンを獲得しながら送信する。The token control device according to the present invention sets the number of tokens of its own station based on the transmitted setting information, and at the time of data transmission, it acquires and transmits the number of empty tokens up to the number of tokens of its own station.
【0012】[0012]
【実施例】実施例1.図1は、この発明の一実施例を示
す、ステーション側の送信部の伝送制御ブロック図であ
る。図において、2はトークン獲得制御部、4はデータ
パケット送信制御部、6は送信バッファ、7は送信要求
部で、94は送信要求信号で、カウンタF制御部のカウ
ンタFの値を初期値tに設定する。95はトークン連続
獲得要求信号である。さらに、96はデータ量通知線
で、データ量を通知する。97は連続獲得要求線で、複
数トークンが必要な場合に、通知をするためのものであ
る。98は伝送領域制限線で、使用トークン数から使用
可能な伝送領域制限を通知する線である。99はトーク
ン獲得最大数通知線で、設定された最大トークン数を通
知する。100はトークン獲得通知線で、情報伝送のた
めに現在確保した空きトークンを知らせ、カウンタFの
値をカウントダウンさせる。11は制御情報領域監視部
であり、多局から送られてくる自端局に割り当てられた
トークン設定数を検出し、これをカウンタF制御部に通
知して獲得可能な最大トークン数を定める。12はカウ
ンタF制御部で、設定トークン数になるまで空きトーク
ンを確保する毎にカウントダウンすると共に、後に述べ
るt1とt2の比較を行って使用トークン数の制御をす
る。13は相対番号制御部であり、相対番号の小さい順
にデータを送出する制御を行う。14は連続獲得判定部
で、送信すべきデータ量から複数のトークンが必要かど
うかを判定する。EXAMPLES Example 1. FIG. 1 is a transmission control block diagram of a transmitter on the station side, showing an embodiment of the present invention. In the figure, 2 is a token acquisition control unit, 4 is a data packet transmission control unit, 6 is a transmission buffer, 7 is a transmission request unit, 94 is a transmission request signal, and the value of the counter F of the counter F control unit is the initial value t. Set to. Reference numeral 95 is a token continuous acquisition request signal. Furthermore, 96 is a data amount notification line, which notifies the data amount. Reference numeral 97 is a continuous acquisition request line for notifying when a plurality of tokens are required. Reference numeral 98 is a transmission area limit line, which is a line for notifying the available transmission area limit from the number of used tokens. Reference numeral 99 denotes a token acquisition maximum number notification line, which notifies the set maximum token number. Reference numeral 100 denotes a token acquisition notification line, which informs an empty token currently reserved for information transmission and counts down the value of the counter F. Reference numeral 11 denotes a control information area monitoring unit, which detects the number of token settings assigned to the own terminal station sent from multiple stations and notifies the counter F control unit of this to determine the maximum number of tokens that can be acquired. A counter F control unit 12 counts down each time a free token is secured until the set number of tokens is reached, and controls the number of used tokens by comparing t1 and t2 described later. Reference numeral 13 is a relative number control unit, which performs control to send data in ascending order of relative numbers. A continuous acquisition determination unit 14 determines whether or not a plurality of tokens are necessary based on the amount of data to be transmitted.
【0013】図2は、マスター局の新規付加部分を示す
図である。マスター局またはシステム全体情報量管理局
では、図1のSEL 9の前に図2の付加部分が設けら
れる。図1において、21はトラヒック監視部、22は
M判定部、23はM設定・通知部、20はセレクタであ
る。なお、本実施例でのシステム・ネットワークは、従
来例の図7と同様である。また図3は、図2に示すマス
ターステーションのトラヒック(システム全体の情報
量)を調べ、各ステーション(端局)にそのステーショ
ンの設定トークン数Mを通知をする動作を示すフローチ
ャート図である。図4はマスターステーションから各ス
テーション宛に設定Mを通知する伝送フレーム中の制御
情報領域41の使用例を説明する伝送フレームの構成図
である。FIG. 2 is a diagram showing a newly added portion of the master station. In the master station or the system-wide information amount management station, the additional portion of FIG. 2 is provided before the SEL 9 of FIG. In FIG. 1, 21 is a traffic monitoring unit, 22 is an M determination unit, 23 is an M setting / notification unit, and 20 is a selector. The system network in this embodiment is the same as that in FIG. 7 of the conventional example. FIG. 3 is a flow chart showing the operation of checking the traffic (information amount of the entire system) of the master station shown in FIG. 2 and notifying each station (terminal station) of the set token number M of that station. FIG. 4 is a configuration diagram of a transmission frame for explaining a usage example of the control information area 41 in the transmission frame for notifying the setting M from the master station to each station.
【0014】まず、マスターステーションのトラヒック
制御方法について説明する。図2において、マスタステ
ーションのトラヒック監視部21は、図3のフローチャ
ートで示すように、伝送フレームが到着するのを待ち、
伝送フレームが到着したならば制御情報領域41を監視
し、各ステーションの現在設定されているトークン設定
最大数Mと使用伝送領域数Dを把握する。トラヒック監
視部21は、使用伝送領域数DをM判定部22へ、トー
クン設定最大数MをM設定・通知部23に通知する。使
用伝送領域数Dを通知されたM判定部22は、使用伝送
領域数DからM変更するかどうかを判定し、変更する場
合はどう変更するかをM設定・通知部23へ通知する。
伝送領域数がある一定値以上の場合はMを小さくし、一
定値以下ではMを大きくする。M判定部22から通知を
受けたM判定・通知部23はMを設定し、セレクタ20
を動作させ、図4の伝送フレーム中の制御情報領域41
に決定したトークン設定最大数Mを書き込み、各スレー
ブステーションに通知する。また、トークン設定最大数
Mを変更する必要がないと判断した場合、制御情報領域
41の内容はそのままにして各スレーブステーションに
通知する。これで図3に示すマスターステーションのト
ラヒック監視とM通知動作は終わる。First, the traffic control method of the master station will be described. In FIG. 2, the traffic monitoring unit 21 of the master station waits for a transmission frame to arrive, as shown in the flowchart of FIG.
When the transmission frame arrives, the control information area 41 is monitored, and the currently set maximum number M of token settings and the number D of used transmission areas of each station are grasped. The traffic monitoring unit 21 notifies the M determination unit 22 of the number of used transmission areas D and the M setting / notification unit 23 of the maximum number of token settings M. The M determination unit 22 that has been notified of the number of used transmission areas D determines whether to change the number of used transmission areas D to M, and when changing, notifies the M setting / notification unit 23 of how to change.
When the number of transmission areas is equal to or larger than a certain value, M is reduced, and when the number of transmission areas is equal to or less than the certain value, M is increased. The M determination / notification unit 23 that has received the notification from the M determination unit 22 sets M, and the selector 20
Control information area 41 in the transmission frame of FIG.
The maximum number M of tokens determined in step S1 is written and notified to each slave station. When it is determined that it is not necessary to change the maximum token setting number M, the content of the control information area 41 is left as it is and the slave stations are notified. This completes the traffic monitoring and M notification operation of the master station shown in FIG.
【0015】次に各ステーション(端局)側の動作を説
明する。その前に、各スレーブステーション(端局)の
構成中で、従来のステーションの構成と異なる部分につ
いて整理し、説明する。本実施例のステーション側の特
徴は、マスタ局からの制御情報41を監視して最大トー
クン数を指示する制御情報領域監視部11を設けたこ
と、トークン獲得制御部2とカウンタF制御部12によ
る可変設定トークンtと比較しての空きトークンの獲得
数を制御するようにしたことである。これに付随して、
データパケット送信制御部4には、相対番号を複数記憶
したり、伝送領域数を制御したり、相対番号の小さい順
に送出制御する機能が付加されている。送信バッファ6
には、データ量を監視し、一度に送信する量が多くて複
数の伝送領域を使用する必要があるときは、そのデータ
量を通知する機能が付加されている。さらに送信要求部
7では、トークンを連続獲得するかどうかの判定と、連
続獲得が必要な場合に要求信号を生成する機能が付加さ
れている。Next, the operation of each station (terminal station) will be described. Before that, in the configuration of each slave station (terminal station), a portion different from the configuration of the conventional station will be summarized and described. The feature of the station side of this embodiment is that the control information area monitoring unit 11 that monitors the control information 41 from the master station and indicates the maximum number of tokens is provided, and that the token acquisition control unit 2 and the counter F control unit 12 are provided. This is to control the number of free tokens to be acquired in comparison with the variable setting token t. Accompanying this,
The data packet transmission control unit 4 is provided with a function of storing a plurality of relative numbers, controlling the number of transmission areas, and controlling transmission in ascending order of relative numbers. Send buffer 6
Has a function of monitoring the data amount and notifying the data amount when a large amount of data is transmitted at one time and a plurality of transmission areas need to be used. Further, the transmission requesting unit 7 is provided with a function of determining whether tokens are continuously acquired and a function of generating a request signal when continuous acquisition is required.
【0016】トークン設定最大数Mを通知された各スレ
ーブステーションでは、トークン獲得最大数tをトーク
ン設定最大数Mに対する相対的な値で、優先度に応じて
設定する。例えば、M,M−1,M−2等のように設定
しておく。各ステーションのトークン獲得制御部2は、
順次通過する伝送フレーム中の制御情報領域41の内容
(トークン設定最大数M)を読みとる。トークン獲得制
御部2は、読みとったトークン設定最大数Mにしたがっ
て、上記例のようにトークン獲得最大数tを設定する。
但し、t<1のときt=1とする。トークン獲得制御部
2は、データ送信の際、新たに設定された上記トークン
獲得最大数tまでトークンを獲得できる。Each slave station notified of the maximum token setting number M sets the maximum token acquisition number t as a value relative to the maximum token setting number M in accordance with the priority. For example, it is set as M, M-1, M-2, etc. The token acquisition control unit 2 of each station
The contents (maximum number of token settings M) of the control information area 41 in the transmission frames that sequentially pass are read. The token acquisition control unit 2 sets the maximum token acquisition number t as in the above example according to the read maximum token setting number M.
However, when t <1, t = 1. When transmitting data, the token acquisition control unit 2 can acquire tokens up to the newly set maximum token acquisition number t.
【0017】また、トークン設定最大数Mを通知された
ステーションがデータ送出中の場合について説明する。
変更前のトークン獲得最大数をt1とし、変更後のトー
クン獲得最大数をt2とする。トークン獲得制御部2
は、t1とt2を比較し、t1>t2の場合、t1−t
2個のトークンを解放し、現在使用中の伝送領域をt1
−t2個放棄し、データパケット送信制御部4は、t2
個の伝送領域を使用してデータを送出する。t1<t2
の場合、トークン獲得制御部2は、t2−t1個のトー
クンが獲得でき、新たにt2−t1個の伝送領域が使用
でき、データパケット送信制御部4は、t2個の伝送領
域を使用してデータを送出する。The case where the station notified of the maximum token setting number M is transmitting data will be described.
The maximum number of tokens acquired before the change is t1, and the maximum number of acquired tokens after the change is t2. Token acquisition control unit 2
Compares t1 and t2, and when t1> t2, t1-t
Release the two tokens and t1 the transmission area currently in use
-T2 is abandoned, and the data packet transmission control unit 4 sets t2
Data is transmitted using the transmission areas. t1 <t2
In this case, the token acquisition control unit 2 can acquire t2-t1 tokens and can newly use t2-t1 transmission areas, and the data packet transmission control unit 4 uses t2 transmission areas. Send data.
【0018】図5はスレーブステーションの、上記で説
明したカウンタ制御部12の初期設定が終わった後の、
カウンタFの変更動作を説明するフローチャート図であ
る。送信すべきデータパケットが準備できたステーショ
ン70では、データパケットを送信バッファ6に格納
し、送信バッファ6は送信する準備ができたことを送信
要求部7に通知する。それに応じて、送信要求部7は送
信要求94をトークン獲得制御部2に送る。トークン獲
得制御部2が送信要求94を受けた時(ステップ5
0)、カウンタFの値を初期値tに設定する(ステップ
51)。また、送信要求部7は送信バッファ6のデータ
量を見て、複数のトークン(この例の場合t個)獲得が
必要と判断したならば、トークン連続獲得要求95をト
ークン獲得制御部2に送る。トークン獲得制御部2は送
信要求94に応じて、ステーション70を通過する伝送
フレーム72中の各伝送領域75、76、77から順番
にトークン73を探索し(ステップ52)、最初に発見
したトークン73を獲得し、トークン獲得制御部2がデ
ータパケット送信制御部4へデータパケット送信許可信
号91及び獲得したトークン73を含む伝送領域が伝送
フレーム72上で占める位置(相対番号)92を通知す
る。また、トークンを獲得した時カウンタFの値を1減
少させる(ステップ53)。そして、データパケット送
信制御部4は、所定のタイミングで読み出し回路5とセ
レクタ10を動作させ、送信バッファ6内のデータパケ
ットを伝送フレーム72中の所定の領域(例えば伝送領
域75とする)に送出する。FIG. 5 shows the slave station after the counter controller 12 has been initialized as described above.
It is a flowchart figure explaining the change operation of the counter F. The station 70, which has prepared the data packet to be transmitted, stores the data packet in the transmission buffer 6, and the transmission buffer 6 notifies the transmission request unit 7 that the data packet is ready to be transmitted. In response to this, the transmission request unit 7 sends a transmission request 94 to the token acquisition control unit 2. When the token acquisition control unit 2 receives the transmission request 94 (step 5
0), the value of the counter F is set to the initial value t (step 51). Further, the transmission requesting unit 7 looks at the amount of data in the transmission buffer 6, and if it determines that a plurality of tokens (t in this example) need to be acquired, it sends a token continuous acquisition request 95 to the token acquisition control unit 2. . In response to the transmission request 94, the token acquisition control unit 2 sequentially searches for the token 73 from the respective transmission areas 75, 76, 77 in the transmission frame 72 passing through the station 70 (step 52), and finds the first token 73. The token acquisition control unit 2 notifies the data packet transmission control unit 4 of the data packet transmission permission signal 91 and the position (relative number) 92 occupied by the transmission area including the acquired token 73 on the transmission frame 72. When the token is acquired, the value of the counter F is decremented by 1 (step 53). Then, the data packet transmission control unit 4 operates the read circuit 5 and the selector 10 at a predetermined timing to send the data packet in the transmission buffer 6 to a predetermined area (for example, the transmission area 75) in the transmission frame 72. To do.
【0019】次に、トークン獲得制御部2はトークン連
続獲得要求信号95に応じて(ステップ54)、最初に
獲得したトークンを含む伝送フレームと同一周期の伝送
フレーム72中の各伝送領域76、77を続いて監視す
る(ステップ55)。上記伝送領域76、77からトー
クン73が見つかったならば、トークン獲得制御部2は
それを獲得し、データパケット送信制御部4にデータパ
ケット送信許可信号91及び相対番号92を通知する。
また、トークンを獲得した時カウンタFの値を1減少さ
せる(ステップ56)。データパケット送信制御部4
は、通知された伝送領域(例えば伝送領域76とする)
に続いてデータパケットを送信する。カウンタFの値が
0になるまで続いて上記伝送フレーム中の各伝送領域7
7からトークンを探索し、獲得する(ステップ57)。
そして上記動作を繰り返し、データパケットを送信す
る。もし、最初に獲得したトークンを含む伝送フレーム
72と同一周期の伝送フレーム中でトークンがt個より
少ない数(例えばs(<t)個)しか獲得できない場合
(ステップ55のNOの場合)は、そのs個の伝送領域
を使って次周期もデータを伝送し続ける。Next, the token acquisition control unit 2 responds to the token continuous acquisition request signal 95 (step 54), and each transmission area 76, 77 in the transmission frame 72 having the same cycle as the transmission frame containing the token acquired first. Are subsequently monitored (step 55). When the token 73 is found in the transmission areas 76 and 77, the token acquisition control unit 2 acquires it and notifies the data packet transmission control unit 4 of the data packet transmission permission signal 91 and the relative number 92.
When the token is acquired, the value of the counter F is decremented by 1 (step 56). Data packet transmission controller 4
Is the notified transmission area (for example, transmission area 76)
Then, the data packet is transmitted. Each transmission area 7 in the transmission frame continues until the value of the counter F becomes 0.
The token is searched from 7 and obtained (step 57).
Then, the above operation is repeated to transmit the data packet. If only a smaller number of tokens than t tokens (for example, s (<t) tokens) can be acquired in the transmission frame having the same cycle as the transmission frame 72 including the first token (NO in step 55), Data is continuously transmitted in the next cycle using the s transmission areas.
【0020】以上のように、各ステーションではマスタ
局から指定されたMにしたがってカウンタF制御部のカ
ウンタ初期値を設定し、以後、この設定トークン値の範
囲内で伝送領域を占有できるようにしたので、各ステー
ションの送信データ量と優先度に応じた伝送領域の割り
当てが可能となる。さらに、これはシステム運用の時間
とともに変化させることもできる。従って、従来の固定
割り当て方式と違って伝送路の利用効率を向上させ、ま
た、トークンを全く自由に利用させていた従来方式とも
違って、真に優先度が高く送信量の多いステーションを
優遇してシステム運用の効率をも向上させることができ
る。As described above, in each station, the counter initial value of the counter F controller is set according to M designated by the master station, and thereafter, the transmission area can be occupied within the range of the set token value. Therefore, the transmission area can be assigned according to the transmission data amount and priority of each station. In addition, this can change over time of system operation. Therefore, unlike the conventional fixed allocation method, the usage efficiency of the transmission line is improved, and unlike the conventional method in which tokens are completely used freely, stations with high priority and high transmission volume are preferentially treated. The efficiency of system operation can also be improved.
【0021】実施例2.上記実施例1では、最初に獲得
したトークンを含む伝送フレームと同一周期の伝送フレ
ーム中で、トークンがトークン獲得最大数tより少ない
数(例えばs)しか獲得できない場合は、次周期もその
s個の伝送領域を使ってデータを伝送し続けるようにし
ているが、本実施例では、上記のように上記伝送フレー
ム中でトークン獲得最大数より少ない数しかトークンを
獲得できなかった場合、データ送出が完了しない限り次
周期もトークンを探索し続けるようにする。Example 2. In the first embodiment, when the number of tokens that can be acquired is less than the maximum token acquisition number t (for example, s) in the transmission frame having the same cycle as the transmission frame including the first acquired token, the next cycle also has s pieces. However, in the present embodiment, when the number of tokens that can be acquired is less than the maximum number of token acquisition in the transmission frame as described above, the data is not transmitted. Unless it is completed, it will continue to search for tokens in the next cycle.
【0022】図6は実施例2を実現するカウンタFの動
作を示すフローチャートである。ステーション(端局)
の構成は図1と同様である。トークン獲得制御部の動作
が、次周期にわたって保持される。次に、図1、図6を
用いて実施例2における送信動作を説明する。ステップ
50からステップ54までは実施例1の図2の同一符号
を付した部分と同様の動作をするので説明は省略する。FIG. 6 is a flow chart showing the operation of the counter F which realizes the second embodiment. Station
Is the same as that of FIG. The operation of the token acquisition control unit is retained for the next cycle. Next, a transmission operation according to the second embodiment will be described with reference to FIGS. Since steps 50 to 54 operate in the same manner as the parts denoted by the same reference numerals in FIG. 2 of the first embodiment, description thereof will be omitted.
【0023】トークン獲得制御部2に送信要求部7から
トークン連続獲得要求95が通知されているならば(ス
テップ54)、データ送出が完了して、トークン送出要
求93をデータパケット送信完了制御部3がトークン獲
得制御部2に通知していないことを確認し(ステップ5
5のNOの場合)、最初に獲得したトークンを含む伝送
フレームと同一周期の伝送フレームの中からトークンを
探索する(ステップ56)。トークンを獲得したなら
ば、カウンタFの値を1減少させる(ステップ57)。
カウンタFの値が0になるまで(ステップ58)上記伝
送フレーム中のトークンを探索し、ステップ55からス
テップ58までを繰り返す。上記伝送フレーム中でトー
クン獲得最大数tまで獲得できなかった場合は(ステッ
プ56のNOの場合)、次周期に移って(ステップ5
9)トークンを探索する。但し、トークン探索中にデー
タ送出を完了して、トークン送出要求93をデータパケ
ット送信完了制御部3がトークン獲得制御部2に通知し
ていたならば、トークン探索を完了する(ステップ55
のYESの場合)。また、データパケット送信制御部4
では、トークン獲得制御部2から通知されたいくつかの
相対番号92の小さい順に、各伝送領域に送信バッファ
6内のデータパケットをセレクタ10と読み出し回路5
を動作させて送出する。If the token acquisition control unit 2 is notified of the token continuous acquisition request 95 from the transmission request unit 7 (step 54), the data transmission is completed and the token transmission request 93 is transmitted to the data packet transmission completion control unit 3. Has not notified the token acquisition control unit 2 (step 5
If NO in step 5), the token is searched for in the transmission frame having the same cycle as the transmission frame including the token acquired first (step 56). When the token is acquired, the value of the counter F is decremented by 1 (step 57).
The token in the transmission frame is searched until the value of the counter F reaches 0 (step 58), and steps 55 to 58 are repeated. If the token acquisition maximum number t cannot be acquired in the above-mentioned transmission frame (in the case of NO in step 56), the next cycle is started (step 5).
9) Search for tokens. However, if the data transmission is completed during the token search and the data packet transmission completion control unit 3 notifies the token acquisition control unit 2 of the token transmission request 93, the token search is completed (step 55).
If YES). In addition, the data packet transmission control unit 4
Then, the data packets in the transmission buffer 6 are transferred to the respective transmission areas in the ascending order of the relative numbers 92 notified from the token acquisition control unit 2 by the selector 10 and the reading circuit 5.
And send it.
【0024】以上のような送信動作の結果、各ステーシ
ョンでは同一の伝送フレームで複数の伝送領域にデータ
を送信できる。As a result of the above-described transmission operation, each station can transmit data to a plurality of transmission areas in the same transmission frame.
【0025】実施例3.上記実施例では、トークン獲得
最大数をマスタステーションからの制御情報中の数値M
(最大設定数)で指定し、各ステーションではこれを検
出して各ステーション毎に設定するようにした。本実施
例では、運用中に可変にカウンタFの初期設定値を変更
せず、定められた運用の期間、例えば毎朝等にマスタ局
当からの情報に基づいてF値を設定する。さらに、F値
の指示は電話等によるものであってもよく、その場合、
F値の設定は手動設定の数値を設定するものであっても
よい。いったんF値が設定された後のステーションでの
送信動作は、上記実施例1、実施例2で説明した図5、
図6のフローチャートで説明した動作となる。Example 3. In the above embodiment, the maximum number of tokens acquired is the numerical value M in the control information from the master station.
(Maximum number of settings) is specified, and each station detects this and sets it for each station. In this embodiment, the initial setting value of the counter F is not variably changed during operation, and the F value is set based on the information from the master station during a predetermined operation period, for example, every morning. Further, the F value instruction may be made by telephone or the like, in which case,
The F value may be set manually. The transmission operation in the station once the F value is set is shown in FIG. 5 described in the first and second embodiments.
The operation described in the flowchart of FIG. 6 is performed.
【0026】[0026]
【発明の効果】以上のようにこの発明によれば、マスタ
ー局からの設定情報を監視して、トークン数を設定する
制御情報領域監視手段と、データ送信時には上記設定ト
ークン数を参照し、空きトークンを設定トークン数まで
獲得制御するカウンタ・トークン獲得制御手段を備えた
ので、伝送フレームの複数の伝送領域の中から複数のト
ークンを獲得して、そのステーションデータ送出量を増
加させて、伝送時間を短縮できる効果がある。また、ト
ラヒック量が少ないとき、優先度の高いステーションは
十分な使用伝送領域数が得られるので、伝送領域使用率
の向上につながる効果があり、トラヒック量が多いと
き、優先度の高いステーションは使用伝送領域数が抑え
られるので、未使用伝送領域数が増加し、優先度の低い
ステーションのトークン待ち時間の短縮ができる効果が
ある。As described above, according to the present invention, the control information area monitoring means for monitoring the setting information from the master station and setting the number of tokens, and the above-mentioned number of setting tokens at the time of data transmission are referred to as a free space. Since a counter / token acquisition control means for controlling acquisition of tokens up to a set number of tokens is provided, a plurality of tokens are acquired from a plurality of transmission areas of a transmission frame to increase the station data transmission amount and transmission time. There is an effect that can shorten. In addition, when the traffic volume is low, a station with a high priority can obtain a sufficient number of transmission areas to be used, which has the effect of improving the transmission area usage rate.When the traffic volume is high, a station with a high priority can be used. Since the number of transmission areas is suppressed, the number of unused transmission areas is increased, and the token waiting time of a station with low priority can be shortened.
【図1】この発明の一実施例であるステーションの送信
部の構成図である。FIG. 1 is a configuration diagram of a transmission unit of a station that is an embodiment of the present invention.
【図2】この発明の一実施例であるマスターステーショ
ンの送信付加部の構成図である。FIG. 2 is a configuration diagram of a transmission addition unit of a master station according to an embodiment of the present invention.
【図3】図2のマスターステーションの動作フローチャ
ート図である。FIG. 3 is an operation flowchart of the master station of FIG.
【図4】伝送フレームの構成図である。FIG. 4 is a configuration diagram of a transmission frame.
【図5】この発明の実施例1による獲得できるトークン
の残り数を示すカウンタFの動作を示すフローチャート
図である。FIG. 5 is a flowchart showing the operation of the counter F indicating the remaining number of tokens that can be acquired according to the first embodiment of the present invention.
【図6】この発明の実施例2によるカウンタFの動作を
示すフローチャート図である。FIG. 6 is a flowchart showing the operation of the counter F according to the second embodiment of the present invention.
【図7】従来のマルチトークン方式によるトークンリン
グのネットワーク構成図である。FIG. 7 is a network configuration diagram of a token ring according to a conventional multi-token system.
【図8】従来のステーションの送信部の伝送制御ブロッ
ク図である。FIG. 8 is a transmission control block diagram of a transmitter of a conventional station.
2 トークン獲得制御部 4 データパケット送信制御部 6 伝送バッファ 7 送信要求部 11 制御情報領域監視部 12 カウンタF制御部 13 相対番号制御部 14 連続獲得判定部 21 トラヒック監視部 22 M判定部 23 M設定通知部 41 制御情報領域 2 token acquisition control unit 4 data packet transmission control unit 6 transmission buffer 7 transmission request unit 11 control information area monitoring unit 12 counter F control unit 13 relative number control unit 14 continuous acquisition determination unit 21 traffic monitoring unit 22 M determination unit 23 M setting Notification section 41 Control information area
Claims (1)
定の自局のトークン数を設定する制御情報領域監視手段
と、 データ送信時には上記設定された自局のトークン数を参
照し、同一伝送フレーム中の空きトークンを上記参照し
た自局のトークン数まで獲得制御するカウンタ・トーク
ン獲得制御手段を備えたトークン制御装置。1. A control information area monitoring means for monitoring setting information from a master station and setting the number of tokens of its own station, and the same transmission by referring to the set number of tokens of its own station when transmitting data. A token control device comprising counter / token acquisition control means for acquiring and controlling empty tokens in a frame up to the number of tokens of its own station referred to above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19211192A JPH0637775A (en) | 1992-07-20 | 1992-07-20 | Token controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19211192A JPH0637775A (en) | 1992-07-20 | 1992-07-20 | Token controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0637775A true JPH0637775A (en) | 1994-02-10 |
Family
ID=16285849
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19211192A Pending JPH0637775A (en) | 1992-07-20 | 1992-07-20 | Token controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0637775A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6965933B2 (en) | 2001-05-22 | 2005-11-15 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for token distribution |
| JP6075518B1 (en) * | 2016-04-14 | 2017-02-08 | 三菱電機株式会社 | Communication processing apparatus and network system |
-
1992
- 1992-07-20 JP JP19211192A patent/JPH0637775A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6965933B2 (en) | 2001-05-22 | 2005-11-15 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for token distribution |
| JP6075518B1 (en) * | 2016-04-14 | 2017-02-08 | 三菱電機株式会社 | Communication processing apparatus and network system |
| WO2017179170A1 (en) * | 2016-04-14 | 2017-10-19 | 三菱電機株式会社 | Communication processing device and network system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5884040A (en) | Per-packet jamming in a multi-port bridge for a local area network | |
| CA1269438A (en) | Packet data communication system with ring type transmission line | |
| HUT69354A (en) | Method for controlling the scheduling of multiple acces to communication resourches | |
| CN111836370B (en) | Resource reservation method and equipment based on competition | |
| JPH09121217A (en) | Burst transfer method | |
| JPH021671A (en) | Load control system for packet switchboard | |
| JPH0439941B2 (en) | ||
| CN113904762B (en) | Full duplex 485 bus communication system with annular buffer zone and method | |
| US6108347A (en) | Non-polled dynamic slot time allocation protocol | |
| CN117750552A (en) | Communication resource management method and node of wireless network | |
| JPH0637775A (en) | Token controller | |
| JPH05336141A (en) | Loop network | |
| JP3496471B2 (en) | Sharing protocol control memory | |
| JP2687745B2 (en) | Retry wait time setting device | |
| JPH03179850A (en) | Common bus token control system | |
| JP2705686B2 (en) | Wireless data communication system | |
| JPH07135502A (en) | Time slot allocation control method and apparatus | |
| JP2564298B2 (en) | Transmission control method in communication network | |
| JPS6228917B2 (en) | ||
| EP4583463A1 (en) | Apparatuses and methods for priority transmission scheme | |
| JP2000151622A (en) | Medium access control method and system | |
| US20240243946A1 (en) | Physical layer collision avoidance device and method for performing emergency transmission thereof | |
| JP2658972B2 (en) | Bus arbitration equipment | |
| CN121793088A (en) | Method and system for distributing transmission bandwidth | |
| JP3539224B2 (en) | Communication bandwidth control method |