JPH0458637A - Communication control method - Google Patents
Communication control methodInfo
- Publication number
- JPH0458637A JPH0458637A JP2170629A JP17062990A JPH0458637A JP H0458637 A JPH0458637 A JP H0458637A JP 2170629 A JP2170629 A JP 2170629A JP 17062990 A JP17062990 A JP 17062990A JP H0458637 A JPH0458637 A JP H0458637A
- Authority
- JP
- Japan
- Prior art keywords
- slave
- polling
- queue length
- queue
- sorting
- 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
Description
【発明の詳細な説明】
産業上の利用分野
本発明は複数の端末装置が共通の伝送路を介してデータ
の送受信を行う際に利用される通信制御方法に関するも
のである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a communication control method used when a plurality of terminal devices transmit and receive data via a common transmission path.
従来の技術
従来の通信システムの一例を第2図に示す、第2図にお
いてはlは主装置、28〜2nは従装置を示している。2. Description of the Related Art An example of a conventional communication system is shown in FIG. 2. In FIG. 2, l indicates a main device and 28 to 2n indicate slave devices.
主装置1と従装置2a〜2nはバス3を介して接続され
、従装置28〜2nにはそれぞれあらかじめ定められた
固有の端末番号が割り当てられている0図示するように
、主装置1はポーリング制御回路11とカウンタ12と
から構成されている。また、従装置28〜2nは互いに
同一の構成を有し、バス3を介して他装置へ送信すべき
送信情報を一時的に蓄えるバッフアメそり21と送信要
求の有無を示すフラグ情報を表示するレジスタ22とか
ら構成されている。The main device 1 and the slave devices 2a to 2n are connected via a bus 3, and each of the slave devices 28 to 2n is assigned a predetermined unique terminal number. It is composed of a control circuit 11 and a counter 12. The slave devices 28 to 2n each have the same configuration, and include a buffer 21 that temporarily stores transmission information to be transmitted to other devices via the bus 3, and a register that displays flag information indicating the presence or absence of a transmission request. It is composed of 22.
ポーリング制御回路11はカウンタ12の値を読み出し
、その値が示す端末番号を持つ従装置28〜2nのレジ
スタ22の内容を読み出し、送信要求の有無を調べる。The polling control circuit 11 reads the value of the counter 12, reads the contents of the register 22 of the slave devices 28 to 2n having the terminal number indicated by the value, and checks whether there is a transmission request.
送信要求がある場合には、主装置1はバス3の制御線を
用いて当該従装置28〜2nはバス3を介して送信情報
の転送を行う。カウンタ12は、ポーリング制御回路1
1が各従装置2a〜2nのレジスタ22の内容を読み出
すたびに、従装置台数を法としてインクリメントされる
。主装置1は上記の動作を繰り返すことにより、各従装
置2a〜2nの送信要求を順次処理してい(。When there is a transmission request, the main device 1 uses the control line of the bus 3, and the slave devices 28 to 2n transfer the transmission information via the bus 3. The counter 12 is the polling control circuit 1
Each time 1 reads the contents of the register 22 of each slave device 2a to 2n, it is incremented modulo the number of slave devices. By repeating the above operations, the main device 1 sequentially processes the transmission requests from each of the slave devices 2a to 2n (.
発明が解決しようとする課題
しかしながら、上記した従来の通信制御方法では、従装
置間でトラヒックに偏りがある場合や、各従装置へのト
ラヒックに時間による変動がある場合に、ある従装置に
送信要求が集中する事態が生じることがある。このよう
な事態においても、主装置は送信要求の有無にかかわら
ず、巡回的に各従装置を均等にポーリングして行くため
、待ち行列が長い従装置は待ち行列が短い従装置と同じ
ポーリング頻度しか与えられず、これが原因となって待
ち行列が緩和されに(いという問題があつた。Problems to be Solved by the Invention However, in the conventional communication control method described above, when there is a bias in traffic between slave devices or when traffic to each slave device varies over time, it is difficult to send data to a certain slave device. A situation may arise where requests are concentrated. Even in such a situation, the master device polls each slave device cyclically and evenly, regardless of whether there is a transmission request, so a slave device with a long queue will poll at the same frequency as a slave device with a short queue. This caused a problem in that the queue was not easily alleviated.
本発明は、このような従来の問題を解決するものであり
、一部従装置へのトラヒックの偏在等に際して、ポーリ
ング頻度を流動的に融通することにより伝送路を効率的
に使用できる優れた通信制御方法を提供することを目的
とするものである。The present invention solves such conventional problems, and provides excellent communication that allows efficient use of transmission paths by fluidly adjusting polling frequency when traffic is unevenly distributed among some slave devices. The purpose is to provide a control method.
課題を解決するための手段
本発明の通信制御方法は、主装置と複数の従装置から構
成され、主装置の集中制御によって各従装置との間で共
通の伝送路を介してデータの送受信を行うものであり、
特に従装置は主装置に対する送信要求の待ち行列長を記
憶し、主装置は各従装置と通信を行う際に、各従装置の
端末番号と送信要求の待ち行列長を記憶し、これに基づ
いて待ち行列長の長い従装置から順に送信許可を与える
とともに、定期的に各従装置に対して通信許可を与える
ことを特徴としている。Means for Solving the Problems The communication control method of the present invention is composed of a main device and a plurality of slave devices, and transmits and receives data between each slave device via a common transmission path by central control of the main device. It is something that is done;
In particular, the slave device stores the queue length of transmission requests to the master device, and when the master device communicates with each slave device, it stores the terminal number and transmission request queue length of each slave device, and based on this, the master device stores the terminal number and queue length of transmission requests of each slave device. The system is characterized in that transmission permission is granted in order from the slave device with the longest queue length, and communication permission is periodically granted to each slave device.
さらに、上記主装置が、定期的に各従装置に対して巡回
型の送信許可を与える際に、記憶している送信要求の待
ち行列長をクリアし、各従装置に記憶されている新たな
待ち行列長を記憶するようにしても良い。Furthermore, when the main device periodically grants cyclical transmission permission to each slave device, it clears the stored transmission request queue length and updates the queue length stored in each slave device. The queue length may also be stored.
作用
本発明は、上記のような構成により次のような効果を有
する。すなわち、待ち行列長の長い従装置に優先的に送
信許可を与えることにより、従装置間にトラヒックの偏
りがある場合にも、システム全体としては各送信要求に
均等な遅延品質での交換・転送を提供することができる
。上記優先的送信許可にまじえて通常の巡回型の送信許
可を定期的に与えることによって、優先処理の対象とさ
れない待ち行列の少ない従装置に対しても一定頻度以上
のポーリング処理機会を保証することができる。Operation The present invention has the following effects due to the above configuration. In other words, by giving transmission permission preferentially to a slave device with a long queue length, even if there is traffic imbalance between slave devices, the system as a whole can exchange and forward each transmission request with equal delay quality. can be provided. By periodically granting normal cyclic transmission permission in addition to the above-mentioned priority transmission permission, polling processing opportunities at a certain frequency or higher are guaranteed even to slave devices with small queues that are not subject to priority processing. I can do it.
また、主装置が定期的に各従装置に対して巡回型の送信
許可を与える際に、記憶している送信要求の待ち行列長
をクリアし、各従装置に記憶されている新たな待ち行列
長を記憶することにより、各従装置のトラヒックの短時
間での変動に対しても柔軟に対応することができる。Also, when the main device periodically grants cyclical transmission permission to each slave device, it clears the stored transmission request queue length and creates a new queue length stored in each slave device. By storing the length, it is possible to flexibly respond to short-term fluctuations in the traffic of each slave device.
実施例
第1図は本発明が適用された通信制御装置の一実施例を
示したものである。Embodiment FIG. 1 shows an embodiment of a communication control device to which the present invention is applied.
第1図において、lOは主装置、20a〜20nは従装
置を示す、主装置lOと従装置20a〜20nは、バス
30を介して接続されている。従装置20a〜20nに
は、それぞれあらかじめ定められた端末番号が割り当て
られている。主装置lOは、ポーリング制御回路101
と、ソーティング回路102と、ソーティングメモリ1
03と、第1カウンタ104と、第2カウンタ105と
から構成されている。ソーティングメモリ103は従装
置20a〜20nの端末番号と待ち行列長を1つのデー
タとして格納している。ソーティング回路102はソー
ティングメモリ103内の待ち行列長をその値の大小に
より並べかえる機能をもち、ハードウェアにより実現さ
れる。第1カウンタ104はソーティングメモリ103
を読み出すたびにインクリメントされ、予め設定された
閾値に達するとOクリアされる。第2カウンタ105は
巡回型ポーリングを行う際に、主装置10がポーリング
する従装置208〜20nの端末番号を保持する。第2
カウンタ105は従装置2Oa〜20nをポーリングす
るたびにインクリメントされ、全ての従装置20a〜2
0nを1通りポーリングし終えたらOクリアされる。従
装置20a〜20nは同一の構成を有し、送信要求を一
時的に蓄えるバッファメモリ201と待ち行列長を格納
するレジスタ202とから構成されている。In FIG. 1, IO indicates a main device, and 20a to 20n indicate slave devices.The main device IO and the slave devices 20a to 20n are connected via a bus 30. Each of the slave devices 20a to 20n is assigned a predetermined terminal number. The main device IO includes a polling control circuit 101
, sorting circuit 102 , and sorting memory 1
03, a first counter 104, and a second counter 105. The sorting memory 103 stores the terminal numbers and queue lengths of the slave devices 20a to 20n as one data. The sorting circuit 102 has a function of rearranging the queue lengths in the sorting memory 103 according to their values, and is realized by hardware. The first counter 104 is the sorting memory 103
It is incremented each time it is read, and is cleared to O when it reaches a preset threshold. The second counter 105 holds the terminal numbers of the slave devices 208 to 20n polled by the main device 10 when performing cyclic polling. Second
The counter 105 is incremented every time the slave devices 20a to 20n are polled, and the counter 105 is incremented every time the slave devices 20a to 20n are polled.
After polling 0n once, it is cleared to O. The slave devices 20a to 20n have the same configuration and are composed of a buffer memory 201 that temporarily stores transmission requests and a register 202 that stores the queue length.
次に、上記実施例の動作について説明する。Next, the operation of the above embodiment will be explained.
ポーリング制御回路101はソーティングメモリ103
の先頭アドレスから従装置20a〜20nの端末番号を
読み出し、その端末番号に従って従装置20a〜20n
のポーリングを行う、ポーリング処理終了後に、その従
装置の待ち行列長が予め設定された閾値以上であれば、
ポーリング制御回路101は従装置20a〜20nの端
末番号と待ち行列長を1つのデータとしてソーティング
メモリ103に書き込み、ソーティング回路102に対
しソーティングメモリ103のソーティングを指示する
。これと同時に第1カウンタ104をインクリメントす
る。The polling control circuit 101 is a sorting memory 103
The terminal numbers of the slave devices 20a to 20n are read from the first address of the slave devices 20a to 20n according to the terminal numbers.
After the polling process is completed, if the queue length of the slave device is greater than or equal to the preset threshold,
The polling control circuit 101 writes the terminal numbers and queue lengths of the slave devices 20a to 20n as one data in the sorting memory 103, and instructs the sorting circuit 102 to sort the sorting memory 103. At the same time, the first counter 104 is incremented.
ポーリング制御回路101はソーティングメモリ103
内の待ち行列長がソーティングされるまで待機し、第1
カウンタ104の係数値が予め設定された閾値未満であ
る場合には、上記動作を繰り返す。これを繰り返すこと
により待ち行列の長い従装置20a〜20口から優先的
にポーリングされる。The polling control circuit 101 is a sorting memory 103
Wait until the queue lengths in
If the coefficient value of the counter 104 is less than a preset threshold, the above operation is repeated. By repeating this, the slave devices 20a to 20 with the longest queues are polled preferentially.
第1カウンタ104の係数値が予め設定された閾値に達
すると、ソーティングメモ1月03内のデータを全て消
去する。When the coefficient value of the first counter 104 reaches a preset threshold value, all data in the sorting memo January 03 is erased.
ソーティングメモリ103にデータがない場合やソーテ
ィングメモリ103内のデータが消去されると、ポーリ
ング制御回路101は第2カウンタ105の値を読み出
し、その値に従って巡回的にポーリングを行なっていく
。ポーリング処理終了後、ポーリング制御回路101は
、その従装置20a〜20nの待ち行列長が予め設定さ
れた閾値以上であれば、上記したように従装置の端末番
号と待ち行列長を1つのデータとしてソーティングメモ
リ103に書き込む、全ての従装a 20a〜20nを
ポーリングし終えたら、ポーリング制御回路iotはソ
ーティング回路102にソーティングメモリ103内の
待ち行列長のソーティングを指示し、ふたたびソーティ
ングメモリ103の先頭から端末名号を読み出し、読み
出された端末番号に従いポーリングを行なう、従って、
ソーティングメモリ103内のデータは、第2カウンタ
105による通常のポーリング動作により、定期的に再
新されるので、方において待ち行列長が短い従装置20
a〜2Onでも定期的にポーリング処理を受けることが
でき。When there is no data in the sorting memory 103 or when the data in the sorting memory 103 is erased, the polling control circuit 101 reads the value of the second counter 105 and performs cyclic polling according to that value. After the polling process is finished, if the queue length of the slave devices 20a to 20n is greater than or equal to a preset threshold, the polling control circuit 101 converts the terminal number and queue length of the slave device into one data as described above. After polling all the slave devices A 20a to 20n to be written to the sorting memory 103, the polling control circuit iot instructs the sorting circuit 102 to sort the queue length in the sorting memory 103, and again starts from the beginning of the sorting memory 103. Read the terminal name and poll according to the read terminal number. Therefore,
Since the data in the sorting memory 103 is periodically refreshed by the normal polling operation by the second counter 105, the slave device 20 with a short queue length
A~2On can also receive polling processing periodically.
他方において短時間で集中的な送信要求の到着が特定の
従装置20a〜20nにあった場合にも、少ない遅延で
処理が可能である。On the other hand, even when specific slave devices 20a to 20n receive intensive transmission requests in a short period of time, processing can be performed with little delay.
発明の効果
本発明は上記実施例より明らかなように、待ち行列長の
長い従装置を優先的にポーリングするとともに、待ち行
列長の短い従装置でも定期的ポーリングするようにした
ものであり、トラヒックの偏りがある場合等においても
、システム全体として各送信要求に均等な遅延品質での
交換・転送を提供することができるとともに、伝送路を
効率的に使用できるといった効果を有する。Effects of the Invention As is clear from the above embodiments, the present invention is configured to preferentially poll slave devices with long queue lengths, and periodically poll slave devices with short queue lengths, thereby reducing traffic. Even in the case where there is a bias, the system as a whole can provide exchange and forwarding with equal delay quality for each transmission request, and has the effect that the transmission path can be used efficiently.
第1図は本発明が適用された通信制御装置の一実施例の
構成図、第2図は従来の通信制御装置の構成図である。
1.10・・・主装置、28〜2n、20a〜20n・
・・従装置、3.30・・・バス、101・・・ポーリ
ング制御回路、102・・・ソーティング回路、103
・・・ソーティングメモリ、104・・・第1カウンタ
、105・・・第2カウンタ、21.201・・・バッ
ファメモリ、22゜202・・・レジスタ。
代理人 弁理士 粟野重孝 ばか1名
i@1
図FIG. 1 is a block diagram of an embodiment of a communication control device to which the present invention is applied, and FIG. 2 is a block diagram of a conventional communication control device. 1.10...Main device, 28~2n, 20a~20n・
... Slave device, 3.30 ... Bus, 101 ... Polling control circuit, 102 ... Sorting circuit, 103
Sorting memory, 104 First counter, 105 Second counter, 21.201 Buffer memory, 22°202 Register. Agent Patent Attorney Shigetaka Awano Idiot 1 person i@1 Figure
Claims (2)
中制御によって各従装置との間で共通の伝送路を介して
データの送受信を行う通信制御方法において、従装置は
主装置に対する送信要求の待ち行列長を記憶し、主装置
は各従装置と通信を行う際に、各従装置の端末番号と送
信要求の待ち行列長を記憶し、これに基づいて待ち行列
長の長い従装置から順に送信許可を与えるとともに、定
期的に各従装置に対して巡回型の通信許可を与えること
を特徴とする通信制御方法。(1) In a communication control method that consists of a main device and a plurality of slave devices, and in which data is sent and received via a common transmission path between each slave device under the centralized control of the main device, the slave devices communicate with each other through a common transmission path. The queue length of transmission requests is memorized, and when the master device communicates with each slave device, it memorizes the terminal number of each slave device and the queue length of transmission requests, and based on this it stores the queue length of transmission requests. 1. A communication control method, characterized in that transmission permission is granted sequentially starting from the device, and cyclic communication permission is periodically granted to each slave device.
の送信許可を与える際に、記憶している送信要求の待ち
行列長をクリアし、各従装置に記憶されている新たな待
ち行列長を記憶することを特徴とする請求項1記載の通
信制御方法。(2) When the main device periodically grants cyclical transmission permission to each slave device, it clears the stored transmission request queue length and updates the queue length stored in each slave device. 2. The communication control method according to claim 1, further comprising storing a queue length.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2170629A JPH0458637A (en) | 1990-06-28 | 1990-06-28 | Communication control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2170629A JPH0458637A (en) | 1990-06-28 | 1990-06-28 | Communication control method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0458637A true JPH0458637A (en) | 1992-02-25 |
Family
ID=15908415
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2170629A Pending JPH0458637A (en) | 1990-06-28 | 1990-06-28 | Communication control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0458637A (en) |
-
1990
- 1990-06-28 JP JP2170629A patent/JPH0458637A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5175732A (en) | Method and apparatus for controlling data communication operations within stations of a local-area network | |
| EP1430405B1 (en) | Method and apparatus for distributed direct memory access for systems on chip | |
| US4916692A (en) | TDM bus controller | |
| JPH0748739B2 (en) | Multiple access control method and multiple access control system implementing the method | |
| US20050273564A1 (en) | Memory controller | |
| US7009996B1 (en) | Method and system for transmitting periodic and aperiodic data over a critical avionics databus | |
| US4907220A (en) | Process for the establishment of virtual connections passing through switching matrices of a multi-stage switching system | |
| WO1998037658A2 (en) | Channel aggregation having low latency and overhead | |
| US5347514A (en) | Processor-based smart packet memory interface | |
| US7113516B1 (en) | Transmit buffer with dynamic size queues | |
| KR102303424B1 (en) | Direct memory access control device for at least one processing unit having a random access memory | |
| US4796022A (en) | Double transit bus system | |
| JPH0458637A (en) | Communication control method | |
| JP3230339B2 (en) | Communication control device | |
| JP4125933B2 (en) | Processor system with common memory | |
| CA1235229A (en) | Double transit bus system | |
| JPS5936287B2 (en) | Data transfer method | |
| EP1347597A2 (en) | Embedded system having multiple data receiving channels | |
| KR20050052921A (en) | Multi-channel job schedule apparatus in the communication system and method thereof | |
| JPS6365509A (en) | Data transmission equipment for numerical controller | |
| CN121151337A (en) | A method and system for implementing a socket send buffer in an Ethernet communication node. | |
| JPH01192239A (en) | Polling system in communication circuit | |
| JPH05110568A (en) | Lan controller | |
| KR19980083753A (en) | Master-Slave Multiplexing Protocol | |
| JPH11331203A (en) | Cross bar switch device and control method thereof |