JP2000341287A - Communication management method and communication management device - Google Patents
Communication management method and communication management deviceInfo
- Publication number
- JP2000341287A JP2000341287A JP14646799A JP14646799A JP2000341287A JP 2000341287 A JP2000341287 A JP 2000341287A JP 14646799 A JP14646799 A JP 14646799A JP 14646799 A JP14646799 A JP 14646799A JP 2000341287 A JP2000341287 A JP 2000341287A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- data
- network
- amount
- time
- 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
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Computer And Data Communications (AREA)
Abstract
(57)【要約】
【課題】 一部のデータ通信業務の実行により回線が占
有されないようにネットワークの通信負荷を常に適正な
レベルに維持する。
【解決手段】 ネットワークを使用してデータを送受信
している全データ通信業務による単位時間当たりの通信
データ量を算出する。次に、この単位時間当たりの通信
データ量からネットワークの通信負荷を判定する。その
結果、ネットワークの通信負荷が大きいと判定された場
合には各データ通信業務において1ステップのデータ送
受信を実行した際の一時停止時間が長くなるように調整
し、ネットワークの通信負荷が小さいと判定された場合
には前記一時停止時間が短くなるように調整する。
(57) [Summary] PROBLEM TO BE SOLVED: To always maintain a network communication load at an appropriate level so that a line is not occupied by execution of some data communication tasks. SOLUTION: The amount of communication data per unit time by all data communication tasks transmitting and receiving data using a network is calculated. Next, the communication load of the network is determined from the communication data amount per unit time. As a result, when it is determined that the communication load of the network is large, the suspension time when performing one-step data transmission and reception in each data communication task is adjusted to be long, and it is determined that the communication load of the network is small. If so, the suspension time is adjusted to be shorter.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ネットワークを介
して相手コンピュータ機器とデータを送受信する業務を
有したコンピュータ機器の通信管理方法及び通信管理装
置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication management method and a communication management apparatus for a computer device having a task of transmitting and receiving data to and from a partner computer device via a network.
【0002】[0002]
【従来の技術】例えば流通小売業の1業種であるコンビ
ニエンス業界では、各チェーン店舗にPOS(Point Of
Sales:販売時点情報管理)システムを構築するととも
に、各チェーン店舗を統轄する本部にホストコンピュー
タを設置し、各POSシステムの上位コントローラであ
るストアコンピュータとホストコンピュータとを専用回
線でネットワーク接続して、各チェーン店舗での売上や
発注等を本部で一元的に管理できるようにしている。こ
のものにおいて、近年では、本部での管理項目の増加等
により各店舗と本部との間のデータ通信機会が増えてい
るばかりか、各店舗で取り扱う商品数の増加などに伴い
送信すべきデータ量が増えているため、ネットワークの
通信負荷が高まっている。その一方で、ネットワークの
回線容量には限度がある。このため、大量のデータを送
受信するデータ通信業務が同時期に複数実行されると、
これらの業務によってネットワークの回線が占有されて
しまい、その間に重要度の高いデータを送信する業務が
起動されてもこのデータをスムーズに送信できない場合
があった。2. Description of the Related Art For example, in the convenience industry, which is one type of distribution and retail business, each chain store has a POS (Point Of Point).
Sales: A point-of-sale information system), a host computer is installed at the headquarters that supervises each chain store, and the store computer, which is the upper controller of each POS system, is connected to the host computer via a dedicated line. The headquarters can centrally manage sales and orders at each chain store. In recent years, data communication opportunities between each store and the headquarters have increased due to an increase in management items at the headquarters, etc. , The communication load on the network is increasing. On the other hand, the line capacity of the network is limited. For this reason, if multiple data communication tasks that send and receive large amounts of data are executed at the same time,
These tasks occupy a network line, and even if a task of transmitting highly important data is activated during this time, the data may not be transmitted smoothly.
【0003】[0003]
【発明が解決しようとする課題】上述したように、従来
は一部のデータ通信業務の実行により相手コンピュータ
機器とのネットワークの回線が占有されてしまい、重要
度の高いデータの通信に支障を来たすおそれがあった。As described above, in the related art, the execution of some data communication tasks occupies a network line with a partner computer device, which hinders the communication of highly important data. There was a fear.
【0004】そこで本発明は、一部のデータ通信業務の
実行により回線が占有されないようにネットワークの通
信負荷を常に適正なレベルに維持できる通信管理方法を
提供しようとするものである。また本発明は、一部のデ
ータ通信業務の実行により回線が占有されるのを防止で
き、ネットワークの通信負荷を常に適正なレベルに維持
できる通信管理装置を提供しようとするものである。Accordingly, an object of the present invention is to provide a communication management method capable of always maintaining a communication load of a network at an appropriate level so that a line is not occupied by execution of a part of data communication business. Another object of the present invention is to provide a communication management apparatus which can prevent a line from being occupied by executing some data communication tasks, and can always maintain a network communication load at an appropriate level.
【0005】[0005]
【課題を解決するための手段】本願請求項1記載の発明
は、ネットワークを介してのデータ通信業務を同時に複
数実行可能なコンピュータ機器の通信管理方法であっ
て、先ず、ネットワークを使用してデータを送受信して
いる全データ通信業務による単位時間当たりの通信デー
タ量を算出する。次に、この単位時間当たりの通信デー
タ量からネットワークの通信負荷を判定する。その結
果、ネットワークの通信負荷が大きいと判定された場合
には各データ通信業務において1ステップのデータ送受
信を実行した際の一時停止時間が長くなるように調整
し、ネットワークの通信負荷が小さいと判定された場合
には前記一時停止時間が短くなるように調整する。以上
のステップを定期的に繰り返すことにより、ネットワー
クの通信負荷を常に適正なものとする。The invention according to claim 1 of the present application is a communication management method for a computer device capable of simultaneously executing a plurality of data communication tasks via a network. Calculates the amount of communication data per unit time by all data communication services that are transmitting and receiving data. Next, the communication load of the network is determined from the communication data amount per unit time. As a result, when it is determined that the communication load of the network is large, the suspension time when performing one-step data transmission and reception in each data communication task is adjusted to be long, and it is determined that the communication load of the network is small. If so, the suspension time is adjusted to be shorter. By repeating the above steps periodically, the communication load of the network is always made appropriate.
【0006】本願請求項2記載の発明は、ネットワーク
を介してのデータ通信業務を同時に複数実行可能なコン
ピュータ機器に実装される通信管理装置であって、記憶
手段,演算手段,比較手段及び停止時間調整手段を有す
る。記憶手段は、ネットワークを使用してデータを送受
信している全データ通信業務毎に単位時間当たりの通信
データ量を記憶する。演算手段は、記憶手段により各デ
ータ通信業務毎に記憶した単位時間当たりの通信データ
量の合計を算出する。比較手段は、演算手段により算出
した通信データ合計量と予め設定されている適性データ
量とを比較する比較手段。停止時間調整手段は、比較手
段により通信データ合計量が適性データ量を上回るとき
には各データ通信業務において1ステップのデータ送受
信を実行した際の一時停止時間が長くなるように調整
し、下回るときには一時停止時間が短くなるように調整
する。According to a second aspect of the present invention, there is provided a communication management apparatus mounted on a computer device capable of simultaneously executing a plurality of data communication operations via a network, comprising: a storage unit, a calculation unit, a comparison unit, and a stop time. It has adjusting means. The storage unit stores the amount of communication data per unit time for every data communication task that transmits and receives data using the network. The calculating means calculates the total amount of communication data per unit time stored for each data communication task by the storage means. The comparing means is a comparing means for comparing the total amount of communication data calculated by the calculating means with a predetermined appropriate data amount. The suspension time adjusting means adjusts the suspension time when executing one-step data transmission / reception in each data communication operation when the total amount of communication data exceeds the appropriate data amount by the comparing means, and suspends when the total amount of communication data falls below the appropriate data amount. Adjust so that the time is shorter.
【0007】[0007]
【発明の実施の形態】以下、本発明の一実施の形態を図
面を用いて説明する。なお、この実施の形態は、図1に
示すように、通信回線1を介してホストコンピュータ2
にネットワーク接続された店舗POSシステムのストア
コンピュータ3に、本発明の通信管理装置4を実装させ
た場合である。DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. In this embodiment, a host computer 2 is connected via a communication line 1 as shown in FIG.
Is a case where the communication management device 4 of the present invention is mounted on the store computer 3 of the store POS system connected to the network.
【0008】図1において、通信回線1は、例えばTC
P/IP(Transmission Control Protocol/Internet P
rotocol)を使用したコンピュータ間ネットワークの専
用回線である。ストアコンピュータ3は、マルチタスク
のOS(Operating System)として例えばUNIX(商
標)を常駐しており、このOSの制御下で、前記ホスト
コンピュータ2とデータ伝送を行う各種のデータ通信業
務を実行する。また、インライン回線5を介して接続さ
れた複数台のPOSターミナル6を集中制御して、店舗
内での各商品の売上や在庫などを管理する。In FIG. 1, a communication line 1 is, for example, a TC
P / IP (Transmission Control Protocol / Internet P
rotocol) is a dedicated line for a computer-to-computer network. The store computer 3 resides, for example, UNIX (trademark) as a multitasking OS (Operating System), and executes various data communication tasks for performing data transmission with the host computer 2 under the control of the OS. In addition, centralized control of a plurality of POS terminals 6 connected via the in-line line 5 is used to manage sales and inventory of each product in the store.
【0009】前記通信管理装置4は、当該ストアコンピ
ュータ3で実行される各種データ通信業務の稼働状況か
ら前記通信回線1の通信負荷を監視し、一部のデータ通
信業務の実行により回線が占有されないように各種デー
タ通信業務の動作を制御するものである。The communication management device 4 monitors the communication load of the communication line 1 based on the operation status of various data communication operations executed by the store computer 3, and the line is not occupied by executing some data communication operations. Thus, the operation of various data communication tasks is controlled.
【0010】図2は前記通信管理装置4のプロセス構成
図であり、通信管理装置4は、通信ライブラリ41と、
通信管理メモリ42と、通信管理プロセス43とで構成
している。前記通信ライブラリ41は、当該ストアコン
ピュータ3に実装されたOS31の制御下で同ストアコ
ンピュータ3に実装された各種のデータ通信業務(アプ
リケーション)32を実行することにより、前記OS3
1から提供されるシステム関数に従い、前記通信回線1
を介してのデータ送信及び受信を実行するものである。FIG. 2 is a process configuration diagram of the communication management device 4. The communication management device 4 includes a communication library 41,
It comprises a communication management memory 42 and a communication management process 43. The communication library 41 executes various data communication tasks (applications) 32 mounted on the store computer 3 under the control of the OS 31 mounted on the store computer 3 to execute the OS 3
According to the system function provided from the communication line 1
And data transmission and reception via the.
【0011】ここで、データ通信業務32の実行により
データの送信が発生した場合には、前記OS31は、図
4(a)に示すように、先ず、ソケットの作成を指示す
るシステム関数[socketX]を提供する。これにより、
通信ライブラリ41によってシステム関数[socketX]
が実行され、通信の端子となるソケットが作成されるの
で、次に、回線のコネクトを指示するシステム関数[co
nnectX]を提供する。これにより、通信ライブラリ41
によってシステム関数[connectX]が実行され、当該ス
トアコンピュータ3とホストコンピュータ2との間で通
信回線1を介してソケット間のコネクションが成立しリ
ンクが形成されるので、次に、データの送信を指示する
システム関数[sendX]を提供する。これにより、通信
ライブラリ41によってシステム関数[sendX]が実行
され、当該ストアコンピュータ3からホストコンピュー
タ2に通信回線1を介してデータ伝文が送信される。な
お、1伝文当りのデータ容量には制限があるため、1伝
文で送信しきれないデータは複数のステップに区分して
送信するが、この場合、1ステップの送信毎に上記シス
テム関数[sendX]を提供する。こうして、データの送
信を終了したならば、最後に、ソケットのクローズを指
示するシステム関数[closeX]を提供する。これによ
り、通信ライブラリ41によってシステム関数[close
X]が実行され、前記ソケットがクローズされる。Here, when data transmission occurs due to execution of the data communication service 32, the OS 31 firstly issues a system function [socketX] to instruct creation of a socket, as shown in FIG. I will provide a. This allows
System function [socketX] by communication library 41
Is executed to create a socket that serves as a communication terminal. Next, the system function [co
nnectX]. Thereby, the communication library 41
Executes a system function [connectX], and a connection between sockets is established between the store computer 3 and the host computer 2 via the communication line 1 to form a link. Next, data transmission is instructed. Provide a system function [sendX] to perform As a result, the system function [sendX] is executed by the communication library 41, and the data message is transmitted from the store computer 3 to the host computer 2 via the communication line 1. Since the data capacity per message is limited, data that cannot be transmitted in one message is divided into a plurality of steps and transmitted. In this case, the system function [ sendX]. When data transmission is completed in this way, finally, a system function [closeX] for instructing closing of the socket is provided. As a result, the communication library 41 uses the system function [close
X] is executed and the socket is closed.
【0012】一方、データ通信業務32の実行によりデ
ータの受信が発生した場合には、前記OS31は、図4
(b)に示すように、先ず、ソケットの作成を指示する
システム関数[socketX]を提供する。これにより、ソ
ケットが作成されるので、次に、回線の拘束を指示する
システム関数[bindX]を提供する。これにより、通信
ライブラリ41によってシステム関数[bindX]が実行
され、当該ストアコンピュータ3とホストコンピュータ
2との間の通信回線1が拘束されるので、次に、待ち行
列を指定するシステム関数[listenX]を提供する。こ
れにより、通信ライブラリ41によってシステム関数
[listenX]が実行され、拘束された回線での待ち行列
が指定されるので、コネクト要求待ちを指示するシステ
ム関数[acceptX]を提供する。これにより、通信ライ
ブラリ41によってシステム関数[acceptX]が実行さ
れ、コネクト待ちの状態となる。そして、ホストコンピ
ュータ2とのリンクが形成されると、データの受信を指
示するシステム関数[recvX]を提供する。これによ
り、通信ライブラリ41によってシステム関数[recv
X]が実行され、通信回線1を介してホストコンピュー
タ2から送信されてくるデータ伝文を受信する。なお、
1伝文で受信しきれないデータの場合は、1伝文を受信
する毎に上記システム関数[recvX]を提供する。こう
して、データの受信を終了したならば、最後に、ソケッ
トのクローズを指示するシステム関数[closeX]を提供
して、ソケットをクローズさせる。On the other hand, when data is received by execution of the data communication service 32, the OS 31
As shown in (b), first, a system function [socketX] for instructing creation of a socket is provided. As a result, a socket is created. Next, a system function [bindX] for instructing to lock the line is provided. As a result, the system function [bindX] is executed by the communication library 41, and the communication line 1 between the store computer 3 and the host computer 2 is restricted. Next, the system function [listenX] for specifying a queue I will provide a. As a result, the system function [listenX] is executed by the communication library 41, and the queue in the restricted line is specified. Therefore, the system function [acceptX] for instructing to wait for a connect request is provided. As a result, the system function [acceptX] is executed by the communication library 41, and the connection library waits. When a link with the host computer 2 is established, a system function [recvX] for instructing data reception is provided. As a result, the communication library 41 uses the system function [recv
X] is executed, and the data message transmitted from the host computer 2 via the communication line 1 is received. In addition,
In the case of data that cannot be received in one message, the system function [recvX] is provided each time one message is received. When data reception is completed in this way, finally, a system function [closeX] for instructing closing of the socket is provided to close the socket.
【0013】ところで、前記通信ライブラリ41は、前
記各システム関数のうち、[socketX],[sendX],
[recvX]及び[closeX]が提供される毎に、通信管理
共有メモリ42を自動的にアクセスするようになってい
る。前記通信管理共有メモリ42のレコードフォーマッ
トを図3に示す。同図において項目「番号」はレコード
固有のレコード番号である。項目「使用」は当該レコー
ドが使用中なのか未使用なのかを識別するフラグ(1:
使用中,0:未使用)である。項目「PID」は当該レ
コードによって管理されるデータ通信業務32のプログ
ラムIDコードである。項目「ソケット番号」は当該レ
コードによって管理されるデータ通信業務32で使用す
るソケットの番号である。項目「送信量」は当該レコー
ドによって管理されるデータ通信業務32で送信された
データのバイト数である。項目「受信量」は当該レコー
ドによって管理されるデータ通信業務32で受信された
データのバイト数である。項目「スリープ時間」は当該
レコードによって管理されるデータ通信業務32におい
て1ステップのデータ送受信を実行した際の一時停止時
間(ミリ秒単位)である。The communication library 41 includes, among the system functions, [socketX], [sendX],
Each time [recvX] and [closeX] are provided, the communication management shared memory 42 is automatically accessed. FIG. 3 shows a record format of the communication management shared memory 42. In the figure, the item “number” is a record number unique to the record. The item “use” is a flag (1 :) for identifying whether the record is in use or unused.
In use, 0: unused). The item “PID” is a program ID code of the data communication service 32 managed by the record. The item “socket number” is a socket number used in the data communication service 32 managed by the record. The item “transmission amount” is the number of bytes of data transmitted in the data communication service 32 managed by the record. The item “reception amount” is the number of bytes of data received by the data communication service 32 managed by the record. The item “sleep time” is a pause time (in milliseconds) when data transmission / reception of one step is executed in the data communication task 32 managed by the record.
【0014】すなわち、前記通信ライブラリ41は、O
S31よりシステム関数[socketX]の提供を受ける
と、図5に示すように、先ず、ST1として通信管理共
有メモリ42から未使用のレコード(項目「使用」のフ
ラグ=0)を1レコード確保する。次に、ST2として
実行対象のデータ通信業務42のプログラムIDコード
をOS31から取得し、確保したレコードの項目「PI
D」にセットとする。次に、ST3としてシステム関数
[socketX]を実行し、ソケットを作成する。そして、
ST4としてソケットを正常に作成できたならば、ST
5としてその作成したソケットの番号を、確保したレコ
ードの項目「ソケット番号」にセットする。また、ST
6として同レコードの項目「使用」に使用中を示すフラ
グ=1をセットする。これに対し、ST4にてソケット
を正常に作成できなかった場合には、ST7として確保
した未使用のレコードを開放する。That is, the communication library 41
When the system function [socketX] is provided from S31, as shown in FIG. 5, first, as ST1, one unused record (the flag of the item "use" = 0) is secured from the communication management shared memory 42. Next, as ST2, the program ID code of the data communication service 42 to be executed is acquired from the OS 31, and the item “PI
D ". Next, a system function [socketX] is executed as ST3 to create a socket. And
If the socket has been successfully created as ST4, ST
As 5, the number of the created socket is set in the item "socket number" of the secured record. ST
As 6, the flag “in use” = 1 is set in the item “use” of the same record. On the other hand, if the socket cannot be created normally in ST4, the unused record secured in ST7 is released.
【0015】また、前記通信ライブラリ41は、OS3
1よりシステム関数[sendX]の提供を受けると、図6
に示すように、先ず、ST1としてシステム関数[send
X]を実行してデータの送信を行う。そして、ST2と
してデータを正常に送信できたならば、ST3として実
行対象のデータ通信業務42のプログラムIDコードを
取得するとともに、データを送信したソケットの番号を
取得し、このプログラムIDコードとソケット番号とを
検索キーとして通信管理共有メモリ42を検索する。そ
して、ST4として項目「PID」と項目「ソケット番
号」とが検索キーと一致するレコードを検出したなら
ば、ST5として該当レコードの項目「送信量」に今回
の1ステップで送信したデータのバイト数を加算する。
しかる後、ST6として該当レコードの項目「スリープ
時間」にセットされている時間だけ、動作を一時停止す
る。The communication library 41 is an OS3
When the system function [sendX] is provided by
As shown in FIG. 1, first, a system function [send
X] to transmit data. If the data has been successfully transmitted in ST2, the program ID code of the data communication service 42 to be executed is obtained in ST3, the number of the socket to which the data was transmitted is obtained, and the program ID code and the socket number are obtained. Is used as a search key to search the communication management shared memory 42. If a record in which the item “PID” and the item “socket number” match the search key is detected in ST4, the number of bytes of data transmitted in the current step in the item “transmission amount” of the record is determined in ST5. Is added.
Thereafter, the operation is temporarily stopped for the time set in the item "sleep time" of the corresponding record in ST6.
【0016】また、前記通信ライブラリ41は、OS3
1よりシステム関数[recvX]の提供を受けると、図7に
示すように、先ず、ST1としてシステム関数[recv
X]を実行してデータの受信を行う。そして、ST2と
してデータを正常に受信できたならば、ST3として実
行対象のデータ通信業務42のプログラムIDコードを
取得するとともに、データを送信したソケットの番号を
取得し、このプログラムIDコードとソケット番号とを
検索キーとして通信管理共有メモリ42を検索する。そ
して、ST4として項目「PID」と項目「ソケット番
号」とが検索キーと一致するレコードを検出したなら
ば、ST5として該当レコードの項目「受信量」に今回
の1ステップで送信したデータのバイト数を加算する。
しかる後、ST6として該当レコードの項目「スリープ
時間」にセットされている時間だけ、動作を一時停止す
る。The communication library 41 is an OS3
7, when the system function [recvX] is provided from ST1, as shown in FIG.
X] to receive data. Then, if the data has been normally received in ST2, the program ID code of the data communication service 42 to be executed is obtained as well as the number of the socket to which the data was transmitted in ST3, and the program ID code and the socket number are obtained. Is used as a search key to search the communication management shared memory 42. If a record in which the item "PID" and the item "socket number" match the search key is detected in ST4, the number of bytes of data transmitted in the current step in the item "reception amount" of the record is determined in ST5. Is added.
Thereafter, the operation is temporarily stopped for the time set in the item "sleep time" of the corresponding record in ST6.
【0017】また、前記通信ライブラリ41は、OS3
1よりシステム関数[closeX]の提供を受けると、図8
に示すように、先ず、ST1として実行対象のデータ通
信業務42のプログラムIDコードを取得するととも
に、使用したソケットの番号を取得し、このプログラム
IDコードとソケット番号とを検索キーとして通信管理
共有メモリ42を検索する。そして、ST2として項目
「PID」と項目「ソケット番号」とが検索キーと一致
するレコードを検出したならば、ST3として該当レコ
ードの項目「使用」に未使用を示すフラグ=0をセット
する。しかる後、システム関数[closeX]を実行してソ
ケットのクローズを行う。Further, the communication library 41 is an OS 3
When the system function [closeX] is provided from FIG.
First, as ST1, the program ID code of the data communication service 42 to be executed is acquired, the number of the socket used is acquired, and the program ID code and the socket number are used as search keys to obtain the communication management shared memory. Search for 42. If a record in which the item "PID" and the item "socket number" match the search key is detected in ST2, a flag = 0 indicating unused is set in the item "use" of the record in ST3. Then, the system function [closeX] is executed to close the socket.
【0018】前記通信管理プロセス43は、図示しない
タイマから一定時間(例えば1秒)を計時する毎に入力
される割込み信号に応動して、図9の流れ図に示す処理
を繰り返し実行するものとなっている。すなわち通信管
理プロセス43は、タイマからの割込みがあると、ST
1として前記通信管理共有メモリ42から使用中のレコ
ード(項目「使用」のフラグ=1)を全て抽出し、その
抽出したレコードの項目「送信量」及び「受信量」のデ
ータ(バイト数)を全て加算して、上記一定時間当たり
の送受信合計バイト数Aを算出する。The communication management process 43 repeatedly executes the processing shown in the flowchart of FIG. 9 in response to an interrupt signal input every time a predetermined time (for example, one second) is counted from a timer (not shown). ing. That is, when there is an interrupt from the timer, the communication management process 43
As 1, all in-use records (the flag of the item “use” = 1) are extracted from the communication management shared memory 42, and the data (the number of bytes) of the items “transmission amount” and “reception amount” of the extracted record are extracted. By adding all of them, the total number A of transmitted / received bytes per fixed time is calculated.
【0019】次に、ST2として上記一定時間当たりの
送受信合計バイト数Aと、予め設定されている理想バイ
ト数Bとを比較する。ここで、理想バイト数Bとは、通
信回線1の回線容量に余裕を持たせるために単位時間当
たりの最大回線容量の約80%を算出し、理想バイト数
Bとして設定している。Next, as ST2, the total number A of transmitted / received bytes per fixed time is compared with a preset ideal number B of bytes. Here, the ideal byte number B is set as the ideal byte number B by calculating about 80% of the maximum line capacity per unit time in order to give a margin to the line capacity of the communication line 1.
【0020】ST2にて送受信合計バイト数Aが理想バ
イト数Bを超えている場合には、通信回線1の通信負荷
が高負荷状態なので、ST3として1ステップのデータ
送受信を実行した際の一時停止時間T(スリープ時間)
を長くするべく、次の(1)式の計算を実行する。 T=(A÷B)×T …(1) ST2にて送受信合計バイト数Aが理想バイト数Bを超
えていない場合には、通信回線1の通信負荷が低負荷状
態なので、ST4として1ステップのデータ送受信を実
行した際の一時停止時間T(スリープ時間)を短くする
べく、次の(2)式の計算を実行する。 T=(1−(A÷B))×T …(2) なお、ST3及びST4において、計算値が1.0ミリ
秒を下回った場合には、一時停止時間T=1.0ミリ秒
を設定する。If the total number of transmitted / received bytes A exceeds the ideal number of bytes B in ST2, the communication load on the communication line 1 is in a high load state. Time T (sleep time)
In order to lengthen, the calculation of the following equation (1) is executed. T = (A ÷ B) × T (1) If the total number of transmitted / received bytes A does not exceed the ideal number of bytes B in ST2, the communication load of the communication line 1 is in a low load state, so one step is performed in ST4. In order to shorten the pause time T (sleep time) when the data transmission / reception is executed, the following equation (2) is calculated. T = (1− (A ÷ B)) × T (2) In ST3 and ST4, if the calculated value falls below 1.0 ms, the pause time T = 1.0 ms is set. Set.
【0021】ST3またはST4にて新たな一時停止時
間Tを算出したならば、ST5として前記通信管理共有
メモリ42上の使用中レコードの項目「スリープ時間」
の値を上記一時停止時間Tに更新する。しかる後、上記
使用中レコードの項目「送信量」及び「受信量」の値を
“0”に初期化したならば、今回のタイマ割込処理を終
了する。When the new pause time T is calculated in ST3 or ST4, the item "sleep time" of the in-use record on the communication management shared memory 42 is used as ST5.
Is updated to the above pause time T. Thereafter, if the values of the items “transmission amount” and “reception amount” of the in-use record are initialized to “0”, the current timer interrupt processing is terminated.
【0022】このように、本実施の形態においては、ス
トアコンピュータ3においてデータ通信業務32の1つ
が起動されると、通信管理共有メモリ42に当該データ
通信業務32に対するレコードが確保される。そして、
このレコードに当該データ通信業務32の実行により送
信または受信されたデータ量(バイト)が累積格納され
る。ただし、このデータ量は、定期的に実行される通信
管理プロセス43の処理においてクリアされるので、通
信管理メモリ42で記憶管理される通信データ量は、上
記通信管理プロセス43の実行間隔に相当する単位時間
当たりの通信データ量[バイト/秒]となる。As described above, in the present embodiment, when one of the data communication services 32 is activated in the store computer 3, a record for the data communication service 32 is secured in the communication management shared memory 42. And
In this record, the data amount (byte) transmitted or received by execution of the data communication service 32 is accumulated and stored. However, since this data amount is cleared in the processing of the communication management process 43 that is periodically executed, the communication data amount stored and managed in the communication management memory 42 corresponds to the execution interval of the communication management process 43. The amount of communication data per unit time [bytes / second].
【0023】そして、上記通信管理プロセス43が実行
されると、通信管理メモリ42にて記憶管理されている
レコードのうち現在使用中,つまり実行中のデータ通信
業務32に対応したレコードの通信データ量が合算され
る。これにより、通信回線1を使用してデータを送受信
している全データ通信業務32による単位時間当たりの
通信データ量Aが算出される。次に、この通信データ量
Aと予め設定された理想値Bとの比較により通信回線1
の通信負荷が判定される。例えば、通信回線1の回線最
大容量が64Kbyte/秒であり、理想値Bをその約80
%の50Kbyte/秒に設定したとする。そうすると、通
信データ量Aが理想値Bを上回っている場合、つまり単
位時間当たりの送受信データバイト数の合計が50Kbyt
e/秒を上回っている場合には、通信負荷が高いと判定
され、各データ通信業務32において1ステップのデー
タ送受信を実行した際の一時停止時間(スリープ時間)
が長くなるように調整される。これに対し、通信データ
量Aが理想値Bを上回っていない場合、つまり単位時間
当たりの送受信データバイト数の合計が50Kbyte/秒
を上回っていない場合には、通信負荷が低いと判定さ
れ、各データ通信業務32において1ステップのデータ
送受信を実行した際の一時停止時間(スリープ時間)が
短くなるように調整される。When the communication management process 43 is executed, the communication data amount of the record currently used, that is, the record corresponding to the data communication service 32 being executed among the records stored and managed in the communication management memory 42 is executed. Are added. As a result, the communication data amount A per unit time by all data communication services 32 transmitting and receiving data using the communication line 1 is calculated. Next, the communication line 1 is determined by comparing the communication data amount A with a preset ideal value B.
Is determined. For example, the maximum line capacity of the communication line 1 is 64 Kbyte / sec, and the ideal value B is set to about 80
Suppose that it is set to 50 Kbyte / sec. Then, when the communication data amount A exceeds the ideal value B, that is, the total number of transmission / reception data bytes per unit time is 50 Kbyt.
If e / sec is exceeded, it is determined that the communication load is high, and a pause time (sleep time) when performing one-step data transmission / reception in each data communication service 32
Is adjusted to be longer. On the other hand, when the communication data amount A does not exceed the ideal value B, that is, when the total number of transmitted and received data bytes per unit time does not exceed 50 Kbyte / sec, it is determined that the communication load is low, and In the data communication service 32, adjustment is made so that the temporary stop time (sleep time) when performing one-step data transmission / reception is reduced.
【0024】したがって、通信回線1を介して送受信さ
れているデータ量が多く、通信負荷が高いときには、各
データ通信業務32において1ステップのデータ送受信
を実行した際の一時停止時間が長くなるように自動調整
されるので、通信負荷が低減される。その結果、一部の
データ通信業務32によって回線が占有されてしまうこ
とがないので、仮に重要度の高いデータの通信業務が発
生してもそのデータの通信をスムーズに行うことができ
る。Therefore, when the amount of data transmitted / received via the communication line 1 is large and the communication load is high, the pause time when one-step data transmission / reception is executed in each data communication service 32 is extended. Since the automatic adjustment is performed, the communication load is reduced. As a result, since the line is not occupied by a part of the data communication service 32, even if a data communication service of high importance occurs, the data communication can be performed smoothly.
【0025】また、通信回線1を介して送受信されてい
るデータ量が少なく、通信負荷が低いときには、各デー
タ通信業務32において1ステップのデータ送受信を実
行した際の一時停止時間が短くなるように自動調整され
るので、通信負荷が上昇する。その結果、無駄な停止時
間が少なくなり、通信効率が高められる。When the amount of data transmitted / received via the communication line 1 is small and the communication load is low, the pause time when executing one-step data transmission / reception in each data communication service 32 is shortened. Since the automatic adjustment is performed, the communication load increases. As a result, unnecessary stoppage time is reduced, and communication efficiency is improved.
【0026】また、前記通信管理共有メモリ42にて記
憶管理されている各レコードの内容を例えばディスプレ
イに表示させることによって、通信回線1を使用したデ
ータ通信の状況を適時確認できる利点もある。Further, by displaying the contents of each record stored and managed in the communication management shared memory 42, for example, on a display, there is an advantage that the status of data communication using the communication line 1 can be confirmed in a timely manner.
【0027】なお、前記一実施の形態では、通信回線1
の回線容量に余裕を持たせるための理想バイト数Bを最
大回線容量の約80%としたが、この値に限定されない
のは言うまでもないことである。In the embodiment, the communication line 1
Although the ideal byte number B for giving a margin to the line capacity is set to about 80% of the maximum line capacity, it is needless to say that the present invention is not limited to this value.
【0028】[0028]
【発明の効果】以上詳述したように、本願請求項1記載
の発明によれば、一部のデータ通信業務の実行により回
線が占有されないようにネットワークの通信負荷を常に
適正なレベルに維持し、かつ通信効率も高め得る通信管
理方法を提供できる。また本願請求項2記載の発明によ
れば、一部のデータ通信業務の実行により回線が占有さ
れるのを防止でき、ネットワークの通信負荷を常に適正
なレベルに維持できる上、通信効率も高められる通信管
理装置を提供できる。As described above in detail, according to the first aspect of the present invention, the communication load of the network is always maintained at an appropriate level so that the line is not occupied by the execution of some data communication services. And a communication management method capable of improving communication efficiency. According to the second aspect of the present invention, it is possible to prevent a line from being occupied by executing a part of data communication business, to maintain a network communication load at an appropriate level at all times, and to enhance communication efficiency. A communication management device can be provided.
【図1】 本発明の一実施の形態における全体構成のブ
ロック図。FIG. 1 is a block diagram of an overall configuration according to an embodiment of the present invention.
【図2】 同実施の形態における通信管理装置のプロセ
ス構成を示すブロック図。FIG. 2 is an exemplary block diagram showing a process configuration of the communication management apparatus according to the embodiment;
【図3】 図2に示す通信管理共有メモリのレコードフ
ォーマットを示す図。FIG. 3 is a view showing a record format of a communication management shared memory shown in FIG. 2;
【図4】 同実施の形態においてデータ送受信時にOS
から提供されるシステム関数を説明する流れ図。FIG. 4 is a diagram showing an OS when transmitting and receiving data in the embodiment.
4 is a flowchart for explaining a system function provided by the system.
【図5】 図2に示す通信ライブラリのシステム関数
[socketX]受信時の要部処理手順を流れ図。5 is a flowchart showing a main part processing procedure when a system function [socketX] of the communication library shown in FIG. 2 is received.
【図6】 同通信ライブラリのシステム関数[sendX]
受信時の要部処理手順を流れ図。Fig. 6 System function [sendX] of the communication library
5 is a flowchart showing a main part processing procedure at the time of reception.
【図7】 同通信ライブラリのシステム関数[recvX]
受信時の要部処理手順を流れ図。Fig. 7 System function [recvX] of the same communication library
5 is a flowchart showing a main part processing procedure at the time of reception.
【図8】 同通信ライブラリのシステム関数[closeX]
受信時の要部処理手順を流れ図。FIG. 8: System function [closeX] of the communication library
5 is a flowchart showing a main part processing procedure at the time of reception.
【図9】 図2に示す通信管理プロセスが実行するタイ
マ割込処理の要部を示す流れ図。FIG. 9 is a flowchart showing a main part of a timer interruption process executed by the communication management process shown in FIG. 2;
1…通信回線 2…ホストコンピュータ 3…ストアコンピュータ 4…通信管理装置 41…通信ライブラリ 42…通信管理メモリ 43…通信管理プロセス DESCRIPTION OF SYMBOLS 1 ... Communication line 2 ... Host computer 3 ... Store computer 4 ... Communication management device 41 ... Communication library 42 ... Communication management memory 43 ... Communication management process
───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B049 BB11 CC22 CC31 EE01 EE03 EE56 FF03 FF04 GG01 GG04 GG07 5B089 GA04 JA04 KA07 KE10 MA07 5K030 GA13 JT06 MA01 MA06 MB09 5K033 BA04 BA08 CB06 DA01 EA03 9A001 CC07 JJ58 LL09 ──────────────────────────────────────────────────続 き Continued on the front page F-term (reference)
Claims (2)
を同時に複数実行可能なコンピュータ機器の通信管理方
法において、 前記ネットワークを使用してデータを送受信している全
データ通信業務による単位時間当たりの通信データ量を
算出し、 この単位時間当たりの通信データ量から前記ネットワー
クの通信負荷を判定し、 前記ネットワークの通信負荷が大きいと判定された場合
には各データ通信業務において1ステップのデータ送受
信を実行した際の一時停止時間が長くなるように、前記
ネットワークの通信負荷が小さいと判定された場合には
前記一時停止時間が短くなるようにそれぞれ調整するこ
とを特徴とする通信管理方法。1. A communication management method for a computer device capable of simultaneously executing a plurality of data communication tasks via a network, wherein the communication data per unit time by all data communication tasks transmitting and receiving data using the network. The communication load of the network is determined from the communication data amount per unit time, and when it is determined that the communication load of the network is large, one-step data transmission / reception is executed in each data communication business. A communication management method characterized in that, when it is determined that the communication load of the network is small, the suspension time is adjusted so that the suspension time becomes short.
を同時に複数実行可能なコンピュータ機器に実装される
通信管理装置において、 前記ネットワークを使用してデータを送受信している全
データ通信業務毎に単位時間当たりの通信データ量を記
憶する記憶手段と、 この記憶手段により各データ通信業務毎に記憶した単位
時間当たりの通信データ量の合計を算出する演算手段
と、 この演算手段により算出した通信データ合計量と予め設
定されている適性データ量とを比較する比較手段と、 この比較手段により前記通信データ合計量が前記適性デ
ータ量を上回るときには各データ通信業務において1ス
テップのデータ送受信を実行した際の一時停止時間が長
くなるように調整し、下回るときには前記一時停止時間
が短くなるように調整する停止時間調整手段と、を具備
したことを特徴とする通信管理装置。2. A communication management apparatus mounted on a computer device capable of simultaneously executing a plurality of data communication tasks via a network, wherein a unit time is set for every data communication task transmitting and receiving data using the network. Storage means for storing the amount of communication data per unit; calculating means for calculating the total amount of communication data per unit time stored for each data communication operation by the storage means; and total amount of communication data calculated by the calculating means And a comparing means for comparing the communication data with the predetermined suitable data amount. When the communication data total amount exceeds the proper data amount, the comparing means temporarily compares the total amount of the communication data when performing one-step data transmission / reception in each data communication business. Adjust so that the stop time becomes longer, and if it falls below, adjust so that the pause time becomes shorter Communication management apparatus being characterized in that includes the stop time adjustment means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14646799A JP2000341287A (en) | 1999-05-26 | 1999-05-26 | Communication management method and communication management device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14646799A JP2000341287A (en) | 1999-05-26 | 1999-05-26 | Communication management method and communication management device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000341287A true JP2000341287A (en) | 2000-12-08 |
Family
ID=15408308
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14646799A Pending JP2000341287A (en) | 1999-05-26 | 1999-05-26 | Communication management method and communication management device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000341287A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002300075A (en) * | 2001-03-30 | 2002-10-11 | Toshiba Corp | Wireless communication device |
| JP2017085645A (en) * | 2017-01-10 | 2017-05-18 | 三菱電機株式会社 | Control server, monitoring control server, and control method |
-
1999
- 1999-05-26 JP JP14646799A patent/JP2000341287A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002300075A (en) * | 2001-03-30 | 2002-10-11 | Toshiba Corp | Wireless communication device |
| JP2017085645A (en) * | 2017-01-10 | 2017-05-18 | 三菱電機株式会社 | Control server, monitoring control server, and control method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2515075B2 (en) | Local area network for digital data processing system | |
| JP2002324047A (en) | A method and system for automated session resource cleanup in a distributed client / server environment. | |
| CN110515748B (en) | Message processing method and related device | |
| US6622167B1 (en) | Document shadowing intranet server, memory medium and method | |
| EP1895712A2 (en) | System for monitoring the state of apparatuses in a communication network | |
| US20050047418A1 (en) | Packet receiving method of mobile terminal | |
| US6687221B1 (en) | Communication management control system, communication control unit therefor and computer program product | |
| US7240043B2 (en) | Method of controlling storage control apparatus, storage control apparatus, and computer readable program for controlling the same | |
| JP2000341287A (en) | Communication management method and communication management device | |
| JP2921458B2 (en) | Load distribution method for transaction processing | |
| US20050265362A1 (en) | Message relay program and message relay device | |
| JP3738701B2 (en) | System setting method in transaction processing system | |
| JPH0962624A (en) | Online transaction processing method and processing system | |
| JP2003316678A (en) | Method and system for providing data | |
| JP4149240B2 (en) | Electrical device management method, management apparatus, program thereof, and electrical device management system | |
| JP2001184240A (en) | Storage capacity management device, storage capacity management method, and storage medium | |
| CN119225800B (en) | Construction method, device, storage medium, electronic device and storage medium | |
| JP3082704B2 (en) | Communication device management method | |
| JPH02109315A (en) | Circuit board processing system | |
| US20050162424A1 (en) | Computer product, session management method, and session management apparatus | |
| JPH11316717A (en) | Data transfer system | |
| CN119537698A (en) | In-station message push method and system | |
| JP3770168B2 (en) | Network connection control device, network connection control method, and program thereof | |
| JP2003143591A (en) | Communication system and remote monitor system | |
| JPH10340241A (en) | Device and method for controlling multiplex request in client server system |