JP3531469B2 - Transaction control method and its relay device - Google Patents
Transaction control method and its relay deviceInfo
- Publication number
- JP3531469B2 JP3531469B2 JP08607398A JP8607398A JP3531469B2 JP 3531469 B2 JP3531469 B2 JP 3531469B2 JP 08607398 A JP08607398 A JP 08607398A JP 8607398 A JP8607398 A JP 8607398A JP 3531469 B2 JP3531469 B2 JP 3531469B2
- Authority
- JP
- Japan
- Prior art keywords
- transaction
- cpu
- terminal
- state
- branch
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Communication Control (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、負荷分散を実現す
るためのトランザクションパラレル技術に関するもので
ある。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transaction parallel technique for realizing load distribution.
【0002】[0002]
【従来の技術】単一CPUを有するCPU処理装置から
なる従来のオンライン処理システムを移行して、複数C
PUにトランザクションを負荷分散する場合、端末から
の業務処理が複数トランザクションに分割されている
と、各トランザクションを別CPUで処理することにな
り、CPU間でトランザクションの順序制御や処理情報
の引き継ぎを行うため、共用メモリが必要であった。2. Description of the Related Art A conventional online processing system consisting of a CPU processing unit having a single CPU is migrated to a plurality of Cs.
When transaction load is distributed to PUs, if the business process from the terminal is divided into multiple transactions, each transaction will be processed by another CPU, and transaction order control and processing information transfer between CPUs will be performed. Therefore, shared memory was required.
【0003】また、端末からのトランザクションを複数
CPUに対して負荷分散をするためには、特開平5−2
74261のように振り分け先のパラメタ情報の設定
や、特開平7−221754のように負荷分散のための
制御情報データの付加など、トランザクションとは別に
追加情報が必要であり、従来のオンライン処理、端末処
理をそのまま使用することはできなかった。Further, in order to distribute the load of transactions from a terminal to a plurality of CPUs, Japanese Patent Laid-Open No. 5-2 is known.
Additional information is required in addition to the transaction, such as setting of parameter information of distribution destination like 74261, addition of control information data for load distribution like Japanese Patent Laid-Open No. 7-221754, and conventional online processing and terminals. The treatment could not be used as is.
【0004】[0004]
【発明が解決しようとする課題】従来のオンライン処理
システムにおいて複数CPUへのトランザクションの負
荷分散を実現するには、CPU間でトランザクションの
順序を制御する必要があり、そのためのオーバーヘッド
が発生したり、共用メモリを持ったCPU処理装置が必
要であった。In order to realize the load distribution of transactions among a plurality of CPUs in a conventional online processing system, it is necessary to control the order of transactions among the CPUs, which causes overhead and A CPU processor with shared memory was needed.
【0005】また、従来の単一CPUを有するCPU処
理装置のオンライン処理システムで使用していたトラン
ザクションを移行して、端末からのトランザクションを
複数CPUに負荷分散する場合には、振り分け先のパラ
メタ情報を追加したり、負荷分散のための制御データを
追加するなどの作業が発生していた。Further, when the transaction used in the conventional online processing system of the CPU processing unit having a single CPU is migrated to distribute the load of the transaction from the terminal to a plurality of CPUs, the parameter information of the distribution destination is used. And the control data for load balancing had to be added.
【0006】さらに、トランザクションパラレル処理が
複数のCPU処理装置、複数のオンライン処理を前提と
した技術であることから、複数のオンラインで独立に発
生する端末への分岐トランザクションが競合することの
影響は、従来技術では配慮されていなかった。Further, since the transaction parallel processing is a technology premised on a plurality of CPU processing devices and a plurality of online processings, the influence of competition of branch transactions to a plurality of online independent terminals is as follows. It was not considered in the prior art.
【0007】本発明の目的は、複数CPU間でのトラン
ザクションの順序制御によるオーバーヘッドをなくし、
オンライン処理システム全体としてのトランザクション
処理の高速化をはかるとともに、障害発生時に仕掛かり
中の業務処理のみに障害を局所化し、さらに従来の単一
CPUを有するCPU処理装置からなるオンライン処理
システムにおいて使用していた端末処理、オンライン処
理に影響を与えないで、トランザクションパラレルを実
現することにある。An object of the present invention is to eliminate the overhead due to order control of transactions among a plurality of CPUs,
In addition to speeding up the transaction processing of the entire online processing system, the failure is localized only to the business processing in progress when the failure occurs, and it is used in the conventional online processing system consisting of a CPU processing device having a single CPU. The purpose of this is to realize transaction parallelization without affecting the terminal processing and online processing that were previously used.
【0008】前記課題を改善するために、本発明の複数
のCPUを有するCPU処理装置と端末とを中継する中
継装置におけるトランザクション制御方法は、前記CP
Uから分岐トランザクションの最初を示す閉塞要求トラ
ンザクションの受信に応じて、他のCPUに対応する仕
掛かり状態が分岐中状態である場合は前記閉塞要求を保
留し、分岐中状態でない場合は該閉塞要求を送信したC
PUに対応する仕掛かり状態を分岐中とし、前記端末か
ら前記分岐トランザクションの最後を示す分岐応答最終
トランザクションの受信に応じて、前記閉塞要求を送信
したCPUに対応する仕掛かり状態を初期状態とする。 In order to solve the above problems, a transaction control method in a relay device for relaying a CPU processing device having a plurality of CPUs and a terminal of the present invention is the CP control method described above.
In response to the reception of a block request transaction indicating the beginning of a branch transaction from U, the block request is suspended if the in-progress state corresponding to another CPU is the branching state, and the block request is not in the branching state. Sent C
The WIP state corresponding to the PU and in the branch, in response to said receiving branch response last transaction indicating the end of the branch transaction from the terminal, the WIP initial state corresponding to the CPU that sent the closure request .
【0009】また、各CPUからオンライン処理の負荷
情報を通信手段により入手することで負荷の少ないCP
Uを特定し、業務処理単位にトランザクションを振り分
けるものである。Further, the load of online processing is obtained from each CPU through the communication means, so that the CP having a small load can be obtained.
U is specified, and the transaction is distributed to each business processing unit.
【0010】また、CPU処理装置障害、CPU処理装
置との通信障害及びオンライン処理障害等の場合の影響
を端末に対して最小限にするためには、端末の仕掛かり
状態の管理を行うものである。In order to minimize the influence on the terminal in the case of a CPU processing device failure, a communication failure with the CPU processing apparatus, an online processing failure, etc., the in-process status of the terminal is managed. is there.
【0011】また、複数CPUで独立に発生した端末へ
の分岐トランザクションがある場合、端末では複数CP
Uを意識せず、単一CPUを有するCPU処理装置から
なるオンライン処理システムにおける端末処理、オンラ
イン処理をそのまま使用できるようにするために、他の
分岐トランザクションがあれば中継プロセッサにおいて
待ち合わせるなどの競合制御をするものである。Further, when there is a branch transaction to a terminal independently generated by a plurality of CPUs, a plurality of CPs are executed at the terminal.
Contention control such as waiting in the relay processor if there is another branch transaction so that the terminal processing and online processing in the online processing system consisting of a CPU processing device having a single CPU can be used without being aware of U Is what you do.
【0012】さらに、TCP/IPプロトコルを使用
し、中継プロセッサを通してCPU処理装置と通信する
場合には、業務処理単位が認識できることによって、業
務処理単位にTCPフレームを作成し、複数CPUに負
荷分散することも考えられる。Further, when the TCP / IP protocol is used to communicate with the CPU processing unit through the relay processor, the business processing unit can be recognized, so that a TCP frame is created for each business processing unit and the load is distributed to a plurality of CPUs. It is also possible.
【0013】[0013]
【発明の実施の形態】以下、本発明の一実施例を図面を
用いて説明する。BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings.
【0014】図1は、本発明を適用したオンライン処理
システムのトランザクション振り分けの概要を示す図で
ある。本適用例は、CPU11〜13を有するCPU処
理装置1と中継プロセッサ2を介して通信回線4に接続
された端末からのトランザクションを処理するオンライ
ン処理システムとなっている。端末3から、トランザク
ションT11〜T13からなる業務処理G1とトランザ
クションT14〜T16からなる業務処理G2を送信さ
れると、中継プロセッサには、トランザクションT11
→T12→T14→T15→T13→T16のような順
番に入ってくる場合がある。本発明では、中継プロセッ
サ2においてトランザクションを解析して送信元端末と
業務処理を認識することにより、トランザクション単位
ではなく業務処理G1、G2の単位に処理の振り分け先
CPUを決定し、業務処理G1のトランザクションT1
1〜T13はCPU11へ、業務処理G2のトランザク
ションT14〜T16はCPU13へというように、業
務処理単位で負荷分散をする。FIG. 1 is a diagram showing an outline of transaction distribution in an online processing system to which the present invention is applied. This application example is an online processing system that processes a transaction from a terminal connected to a communication line 4 via a CPU processing device 1 having CPUs 11 to 13 and a relay processor 2. When the business process G1 including the transactions T11 to T13 and the business process G2 including the transactions T14 to T16 are transmitted from the terminal 3, the relay processor receives the transaction T11.
→ T12 → T14 → T15 → T13 → T16 may be entered in order. According to the present invention, the relay processor 2 analyzes the transaction and recognizes the transmission source terminal and the business process, so that the CPU to which the process is distributed is determined in the unit of the business process G1 or G2 instead of the transaction unit. Transaction T1
1 to T13 are distributed to the CPU 11, transactions T14 to T16 of the business processing G2 are distributed to the CPU 13, and the load is distributed in business processing units.
【0015】図2は、従来のオンライン処理システムに
おいて使用している通信プロトコルに準拠したトランザ
クションフォーマットの一例である。本発明では、中継
プロセッサにおいて、端末から送信されたトランザクシ
ョンフォーマット5を解析し、端末識別情報(D2)よ
り送信元端末、業務種別(D3)より業務処理を特定
し、トランザクション種別(D1)により問合せ、応
答、分岐などのトランザクションの種別と先頭/中間/
最終を判断し、トランザクション通番(D4)によりト
ランザクションの順序を認識する。FIG. 2 shows an example of a transaction format based on the communication protocol used in the conventional online processing system. According to the present invention, in the relay processor, the transaction format 5 transmitted from the terminal is analyzed, the transmission source terminal is identified from the terminal identification information (D2), the transaction processing is identified from the transaction type (D3), and the inquiry is transmitted by the transaction type (D1). Transaction type such as, response, branch, etc. and start / intermediate /
The final is judged, and the order of transactions is recognized by the transaction serial number (D4).
【0016】図3は、本発明による中継プロセッサにお
けるトランザクション振り分けの流れ図である。中継プ
ロセッサは、端末から受信した図2に示すようなトラン
ザクションフォーマットのトランザクションを解析し
て、流れ図に従ってCPUにトランザクションの振り分
けを行う。FIG. 3 is a flow chart of transaction distribution in the relay processor according to the present invention. The relay processor analyzes the transaction having the transaction format as shown in FIG. 2 received from the terminal and distributes the transaction to the CPU according to the flowchart.
【0017】図4は、端末からの問合せ応答トランザク
ションを送信する場合の代表的な通信シーケンスの一例
である。端末3から問合せトランザクションが単独ある
いは分割されて先頭T21、中間T22、最終T23の
順に送信される。問合せトランザクションを受信したC
PU処理装置1は、応答を単独あるいは分割して先頭T
24、中間T25、最終T26の順に送信する。応答を
受信した端末3は、問合せ応答処理が完了したことを完
了確認トランザクションT27としてCPU処理装置1
に送信する。FIG. 4 is an example of a typical communication sequence for transmitting an inquiry response transaction from a terminal. From the terminal 3, the inquiry transaction is sent individually or divided and sent in order of the head T21, the intermediate T22, and the last T23. C that received the inquiry transaction
The PU processor 1 separates the response or divides it into the first T
24, intermediate T25, and final T26 are transmitted in this order. Upon receipt of the response, the terminal 3 determines that the inquiry response process has been completed as a completion confirmation transaction T27, and the CPU processing device 1
Send to.
【0018】図5は、図4に示す問合せ応答トランザク
ションを送信する場合の従来のトランザクション振り分
けと本発明によるトランザクション振り分けの例であ
る。従来のオンライン処理システムでは、(a)のよう
に、従来は単一CPUを有するCPU処理装置6からな
る構成であったため、中継プロセッサ2は、端末からの
トランザクションT21〜T23をそのままCPU処理
装置6に渡していた。FIG. 5 shows an example of the conventional transaction distribution and the transaction distribution according to the present invention when transmitting the inquiry response transaction shown in FIG. In the conventional online processing system, as shown in (a), the relay processor 2 has the configuration including the CPU processing device 6 having a single CPU in the related art. Therefore, the relay processor 2 processes the transactions T21 to T23 from the terminal as they are. I was passing to.
【0019】(b)のように、(a)のオンライン処理
システムを複数CPUを有するCPU処理装置1に適用
した場合、端末からのトランザクションT21〜T23
を中継プロセッサでトランザクション単位に負荷分散す
ると、CPU11にトランザクションT21、CPU1
2にトランザクションT22、CPU13にトランザク
ションT23のように振り分けてしまうことがあり、共
用メモリ7を使用してトランザクションの順序制御を行
わなければならなかった。When the online processing system of (a) is applied to the CPU processing device 1 having a plurality of CPUs as shown in (b), transactions T21 to T23 from the terminal.
When the load is distributed in transaction units by the relay processor, the transaction T21, CPU1
In some cases, the transaction T22 may be assigned to the transaction T2 and the transaction T23 may be assigned to the CPU 13, and the transaction order must be controlled using the shared memory 7.
【0020】(c)のように、本発明では、業務処理を
意識したトランザクション振り分けを行うため、トラン
ザクションの順序制御を行う必要はない。As in (c), according to the present invention, transaction allocation is performed in consideration of business processing, so that it is not necessary to control transaction order.
【0021】図6は、図4で示した端末からの問合せ応
答トランザクション処理を業務処理単位に負荷分散する
場合の中継プロセッサでのテーブル構造の一例である。
中継プロセッサ2には、端末からの業務処理毎に作成す
るCPU処理装置側管理テーブル8と振り分け管理テー
ブル9がある。FIG. 6 is an example of a table structure in the relay processor when the load of the inquiry response transaction processing from the terminal shown in FIG. 4 is distributed in business processing units.
The relay processor 2 has a CPU processing device side management table 8 and a distribution management table 9 which are created for each business process from the terminal.
【0022】端末からの問合せ応答トランザクション処
理を、図3の流れ図及び図4のシーケンス図を用いて説
明する。問合せ先頭トランザクションT21を中継プロ
セッサが受信する(101)と、問合せ応答シーケンス
の最初のトランザクションである(102)ため、振り
分け管理テーブル9の振り分け先を参照し、振り分け先
が決定されていないため、CPU処理装置側管理テーブ
ル8の負荷情報を全て参照し、負荷の最も軽いCPUで
あるCPU13を選択して(104)仕掛かり状態に問
合せ中を書き込み、さらに振り分け管理テーブル9の振
り分け先にCPU13、仕掛かり状態に問合せ中を書き
込み(106)、選択したCPU13に対して送信する
(107)。送信したトランザクションは最終シーケン
スではないため(108)次の受信処理を待つ。次に、
問合せ応答トランザクションシーケンスに従い、問合せ
中間トランザクションT22を受信する(101)と、
問合せ応答シーケンスの最初のトランザクションではな
い(102)ため、振り分け管理テーブル9の振り分け
先を参照し(103)、書き込まれているCPU名称の
CPU13を選択し(105)、選択したCPU13に
対して送信する(107)。送信したトランザクション
は最終シーケンスではないので(108)次の受信処理
を待つ。問合せ最終トランザクションT23を受信した
場合も、問合せ中間トランザクションの受信処理と同様
の処理を行う。問合せ応答先頭トランザクションT2
4、中間トランザクションT25、最終トランザクショ
ンT26をCPU処理装置1のCPU13から受信した
場合には、CPU処理装置側管理テーブル8のCPU1
3の仕掛かり状態を参照し、問合せ処理中であるため、
端末にそれぞれの応答トランザクションを送信する。完
了確認トランザクションT27を端末側から受信した場
合には、図3の流れ図に従ってCPU処理装置側に送信
し、問合せ応答シーケンスの最後のトランザクションで
ある(108)ため、振り分け管理テーブル9の振り分
け先とCPU処理装置側管理テーブル8のCPU13の
仕掛かり状態を初期状態にクリアする(109)。この
ようにして、業務処理ごとにトランザクションが順に同
一のCPUに送られるため、CPU間で別CPUが処理
しているトランザクションの完了を待つ必要はなく、C
PU間での共用メモリを用いた順序制御は不要である。The inquiry response transaction process from the terminal will be described with reference to the flowchart of FIG. 3 and the sequence diagram of FIG. When the relay processor receives the inquiry leading transaction T21 (101), since it is the first transaction in the inquiry response sequence (102), the distribution destination in the distribution management table 9 is referred to, and the distribution destination is not determined. All the load information in the processing device side management table 8 is referred to, the CPU 13 with the lightest load is selected, (104) Inquiry is written in the in-process status, and the CPU 13 and Inquiry is written in the hanging state (106) and transmitted to the selected CPU 13 (107). Since the transmitted transaction is not the final sequence (108), it waits for the next receiving process. next,
According to the inquiry response transaction sequence, when the inquiry intermediate transaction T22 is received (101),
Since it is not the first transaction in the inquiry response sequence (102), the distribution destination of the distribution management table 9 is referred to (103), the CPU 13 having the written CPU name is selected (105), and the selected CPU 13 is transmitted. (107). Since the transmitted transaction is not the final sequence (108), it waits for the next reception process. Even when the inquiry final transaction T23 is received, the same processing as the reception processing of the inquiry intermediate transaction is performed. Inquiry response head transaction T2
4. When the intermediate transaction T25 and the final transaction T26 are received from the CPU 13 of the CPU processing device 1, the CPU1 of the CPU processing device side management table 8
Refer to the work-in-progress status of 3 and query processing is in progress.
Send each response transaction to the terminal. When the completion confirmation transaction T27 is received from the terminal side, it is transmitted to the CPU processing unit side according to the flowchart of FIG. 3 and is the last transaction in the inquiry response sequence (108). Therefore, the distribution destination of the distribution management table 9 and the CPU The in-process state of the CPU 13 in the processing device side management table 8 is cleared to the initial state (109). In this way, the transactions are sequentially sent to the same CPU for each business process, so there is no need to wait for the completion of the transaction being processed by another CPU between the CPUs.
Sequence control using a shared memory between PUs is unnecessary.
【0023】図7は、CPUから分岐トランザクション
を送信する場合の代表的な通信シーケンスの一例であ
る。CPU処理装置1側から、端末3からの送信を抑止
するための閉塞要求トランザクションT31を送信す
る。端末3は閉塞要求を受諾する場合、閉塞応答トラン
ザクションT32を送信する。閉塞応答を受信したCP
U処理装置は、分岐トランザクションを単独あるいは分
割して先頭T33、中間T34、最終T35の順に送信
する。応答を受信した端末3は、分岐応答トランザクシ
ョンを単独あるいは分割して先頭T36、中間T37、
最終T38の順に送信する。FIG. 7 is an example of a typical communication sequence when a branch transaction is transmitted from the CPU. The CPU processing device 1 side transmits a blocking request transaction T31 for suppressing transmission from the terminal 3. When accepting the blocking request, the terminal 3 transmits a blocking response transaction T32. CP that received the block response
The U processor singly or divides the branch transaction and sends the branch T33, the intermediate T34, and the final T35 in this order. The terminal 3 which has received the response singly or divides the branch response transaction into a head T36, an intermediate T37,
Transmit in the order of the final T38.
【0024】図8は、図7に示すCPU処理装置からの
分岐トランザクションを送信する場合の従来の処理と本
発明による処理の一例である。(a)のように、従来の
オンライン処理システムでは単一CPUを有するCPU
処理装置6の構成であるため、トランザクションT31
が同時に複数発生することはなく、中継プロセッサ2は
トランザクションT31をそのまま端末に渡していた。FIG. 8 shows an example of a conventional process and a process according to the present invention when transmitting a branch transaction from the CPU processing device shown in FIG. As shown in (a), a CPU having a single CPU in the conventional online processing system
Because of the configuration of the processing device 6, the transaction T31
However, the relay processor 2 passes the transaction T31 as it is to the terminal.
【0025】(b)のように、(a)のオンライン処理
システムを複数CPUを有するCPU処理装置1の構成
とした場合、トランザクションT31が同時に複数発生
することがあるにも関わらず、中継プロセッサ2では競
合制御が行われていないため、端末3においてトランザ
クション31が同時に送信された場合の対応が必要だっ
た。In the case where the online processing system of (a) is configured of the CPU processing device 1 having a plurality of CPUs as shown in (b), a plurality of transactions T31 may occur simultaneously, but the relay processor 2 However, since the contention control is not performed, it is necessary to deal with the case where the transaction 31 is simultaneously transmitted in the terminal 3.
【0026】(c)のように、本発明では、トランザク
ションT31が同時に複数発生した場合、中継プロセッ
サ2で2つめのトランザクションT31を保留して競合
を制御しているため、端末3では従来の処理をそのまま
使用できる。As shown in (c), in the present invention, when a plurality of transactions T31 occur simultaneously, the relay processor 2 holds the second transaction T31 and controls the competition, so that the terminal 3 performs the conventional processing. Can be used as is.
【0027】図9は、図8で示したCPU処理装置から
の分岐トランザクション処理の場合の中継プロセッサの
テーブル構造の一例である。中継プロセッサ2には、端
末からの業務処理毎に作成するCPU処理装置側管理テ
ーブル8と振り分け管理テーブル9がある。FIG. 9 is an example of a table structure of the relay processor in the case of branch transaction processing from the CPU processing device shown in FIG. The relay processor 2 has a CPU processing device side management table 8 and a distribution management table 9 which are created for each business process from the terminal.
【0028】CPU処理装置からの分岐トランザクショ
ン処理を、図7のシーケンス図を用いて説明する。CP
U処理装置1のCPU13から、分岐トランザクション
シーケンスの最初のシーケンスである閉塞要求トランザ
クションT31を受信すると、CPU処理装置側管理テ
ーブル8の全CPUのテーブルの仕掛かり状態を参照
し、他に分岐中状態がないため、CPU処理装置側管理
テーブル8のCPU13のテーブルの仕掛かり状態に分
岐中を書き込み、さらに振り分け管理テーブル9の振り
分け先にCPU名称としてCPU13、仕掛かり状態に
分岐中を書き込み、端末に対して送信する。さらに、C
PU処理装置1のCPU12からも分岐トランザクショ
ンシーケンスの最初のシーケンスである閉塞要求トラン
ザクションT31を受信した時は、他に分岐中状態があ
るため、CPU処理装置側管理テーブル8のCPU12
のテーブルの仕掛かり状態に分岐送信待ちを書き込み、
閉塞要求トランザクションT31を中継プロセッサ内に
保留する。分岐トランザクションシーケンスの最後であ
る分岐応答最終トランザクションT38を端末から受信
したら、振り分け管理テーブル9の振り分け先とCPU
処理装置側管理テーブル8のCPU13のテーブルの仕
掛かり状態を初期状態にクリアしてCPU13に分岐応
答最終トランザクションT38を送信し、CPU処理装
置側管理テーブル8のクリアしたCPU以外のテーブル
の仕掛かり状態を参照し、CPU12で分岐送信待ちが
あるため、CPU処理装置側管理テーブル8のCPU1
2のテーブルの仕掛かり状態に分岐中を書き込み、振り
分け管理テーブル9の振り分け先には分岐送信待ちであ
ったCPU12、仕掛かり状態には分岐中を書き込み、
端末に対して中継プロセッサ内に保留していた閉塞要求
トランザクションT31を送信することにより、複数の
CPUで同時に発生した同一端末に対する複数の分岐ト
ランザクションを競合制御する。このようにして、端末
側は1つのCPUのみからの分岐トランザクションが送
られてくることを保証されるため、従来の単一CPUを
有するCPU処理装置からなるオンライン処理システム
で使用していた端末処理やオンライン処理をそのまま移
行できる。Branch transaction processing from the CPU processing unit will be described with reference to the sequence diagram of FIG. CP
When the blocking request transaction T31 which is the first sequence of the branch transaction sequence is received from the CPU 13 of the U processing device 1, the in-progress state of the tables of all the CPUs in the CPU processing device side management table 8 is referred to and the other branching state Therefore, the branching state is written in the work-in-progress state of the CPU 13 table of the CPU processing device side management table 8, and the CPU 13 as the CPU name and the branching state in the work-in-progress state are written in the distribution destination of the distribution management table 9 to the terminal To send. Furthermore, C
When the blocking request transaction T31, which is the first sequence of the branch transaction sequence, is also received from the CPU 12 of the PU processing device 1, there is another branching state, so the CPU 12 of the CPU processing device side management table 8
Write the branch transmission wait in the work in progress table of
The blocking request transaction T31 is suspended in the relay processor. When the branch response final transaction T38, which is the end of the branch transaction sequence, is received from the terminal, the distribution destination of the distribution management table 9 and the CPU
The in-process status of the CPU 13 table of the processing device side management table 8 is cleared to the initial state, the branch response final transaction T38 is transmitted to the CPU 13, and the in-process status of the CPU processing device side management table 8 other than the cleared CPU is executed. , There is a branch transmission wait in the CPU 12, so the CPU 1 of the CPU processing device side management table 8
2 is written in the work-in-progress state of the table 2, the CPU 12 which has been waiting for branch transmission is written in the distribution destination of the distribution management table 9, and the branch is written in the work-in-progress state.
By transmitting the blocking request transaction T31 held in the relay processor to the terminal, a plurality of branch transactions for the same terminal that occur simultaneously in a plurality of CPUs are competitively controlled. In this way, the terminal side is guaranteed that the branch transaction is sent from only one CPU, so that the terminal processing used in the conventional online processing system including the CPU processing device having the single CPU is executed. And online processing can be transferred as is.
【0029】[0029]
【発明の効果】本発明によれば、複数のCPUで処理さ
れる複数の分岐トランザクションにおける端末に対する
競合制御が可能となる。 According to the present invention, processing is performed by a plurality of CPUs.
For terminals in multiple branch transactions
Competitive control is possible.
【0030】[0030]
【0031】[0031]
【0032】[0032]
【0033】[0033]
【図1】本発明によるオンライン処理システムでのトラ
ンザクション振り分けの概要を示す図である。FIG. 1 is a diagram showing an outline of transaction distribution in an online processing system according to the present invention.
【図2】通信プロトコルに準拠したトランザクションフ
ォーマットの一例である。FIG. 2 is an example of a transaction format based on a communication protocol.
【図3】本発明による中継プロセッサにおけるトランザ
クション振り分けの流れ図である。FIG. 3 is a flow chart of transaction distribution in the relay processor according to the present invention.
【図4】端末からの問合せ応答トランザクションを送信
する場合の代表的な通信シーケンス図である。FIG. 4 is a typical communication sequence diagram when transmitting an inquiry response transaction from a terminal.
【図5】端末からの問合せ応答トランザクションを送信
する場合の従来のトランザクション振り分けと本発明に
よるトランザクション振り分けの例である。FIG. 5 shows an example of conventional transaction allocation and a transaction allocation according to the present invention when transmitting a query response transaction from a terminal.
【図6】本発明による端末からの問合せ応答トランザク
ション処理を業務処理単位に負荷分散する場合の中継プ
ロセッサでのテーブル構造図である。FIG. 6 is a table structure diagram in the relay processor when the load of the inquiry response transaction processing from the terminal according to the present invention is distributed in business processing units.
【図7】CPU処理装置からの分岐トランザクションを
送信する場合の代表的な通信シーケンス図である。FIG. 7 is a typical communication sequence diagram when transmitting a branch transaction from a CPU processing device.
【図8】CPU処理装置からの分岐トランザクションを
送信する場合の従来の処理と本発明による処理の例であ
る。FIG. 8 is an example of a conventional process and a process according to the present invention when a branch transaction is transmitted from a CPU processing device.
【図9】本発明によるCPU処理装置からの分岐トラン
ザクション処理の場合の中継プロセッサでのテーブル構
造図である。FIG. 9 is a table structure diagram in the relay processor in the case of branch transaction processing from the CPU processing device according to the present invention.
1・・・複数CPUを有するCPU処理装置 2・・・中継プロセッサ 3・・・端末 4・・・通信回線 5・・・トランザクションフォーマット 6・・・単一CPUを有するCPU処理装置 7・・・共用メモリ 8・・・CPU処理装置側管理テーブル 9・・・振り分け管理テーブル 11〜13・・・CPU 1 ... CPU processing device having a plurality of CPUs 2 ... Relay processor 3 ... Terminal 4 ... communication line 5 ... Transaction format 6 ... CPU processing device having a single CPU 7: Shared memory 8 ... CPU processing device side management table 9: Sorting management table 11-13 ... CPU
───────────────────────────────────────────────────── フロントページの続き (72)発明者 恒川 正浩 神奈川県横浜市戸塚区戸塚町5030番地 株式会社日立製作所 ソフトウェア開発 本部内 (72)発明者 津田 政彦 神奈川県横浜市戸塚区戸塚町5030番地 株式会社日立製作所 ソフトウェア開発 本部内 (56)参考文献 特開 平7−249003(JP,A) 特開 平6−266597(JP,A) 特許2555920(JP,B1) (58)調査した分野(Int.Cl.7,DB名) G06F 15/16 - 15/177 G06F 15/00 G06F 12/00 G06F 9/46 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Masahiro Tsunekawa, Inventor Masahiro Tsunekawa 5030 Totsuka-cho, Totsuka-ku, Yokohama, Kanagawa Software Development Division, Hitachi, Ltd. (72) Masahiko Tsuda 5030 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Hitachi, Ltd. Software Development Division (56) Reference JP-A-7-249003 (JP, A) JP-A-6-266597 (JP, A) Patent 2555920 (JP, B1) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 15/16-15/177 G06F 15/00 G06F 12/00 G06F 9/46
Claims (4)
末とを中継する中継装置におけるトランザクション制御
方法において、前記中継装置は、 前記CPUから分岐トランザクション
の最初を示す閉塞要求トランザクションの受信に応じ
て、他のCPUに対応する仕掛かり状態が分岐中状態で
ある場合は前記閉塞要求を保留し、分岐中状態でない場
合は該閉塞要求を送信したCPUに対応する仕掛かり状
態を分岐中とし、前記中継装置は、 前記端末から前記分岐トランザクショ
ンの最後を示す分岐応答最終トランザクションの受信に
応じて、前記閉塞要求を送信したCPUに対応する仕掛
かり状態を初期状態とすることを特徴とするトランザク
ション制御方法。1. A transaction control method in a relay device for relaying a CPU processing device having a plurality of CPUs and a terminal, wherein the relay device is responsive to receipt of a blocking request transaction indicating the beginning of a branch transaction from the CPU.
If the in-process state corresponding to the other CPU is the branching state, the blocking request is suspended, and if not in the branching state , the in-process state corresponding to the CPU that has transmitted the blocking request is set to branching, The relay device receives a branch response final transaction indicating the end of the branch transaction from the terminal.
In response, the transaction control method, characterized in that the work-in-process state corresponds to a CPU that sent the closure request and the initial state.
変更した場合、前記保留された閉塞要求を送信したCP
Uの仕掛かり状態を分岐中とすることを特徴とする請求
項1記載のトランザクション制御方法。2. The CP that has transmitted the suspended block request when the in-process state is changed from the branching state to the initial state .
2. The transaction control method according to claim 1, wherein the in-process state of U is branched.
PUの仕掛かり状態を分岐中とした場合、前記保留され
た前記閉塞要求を前記端末に送信することを特徴とした
請求項2記載のトランザクション制御方法。3. The C which has transmitted the pending request for blocking.
The transaction control method according to claim 2, wherein when the in-progress state of the PU is in the branching state, the suspended blocking request is transmitted to the terminal.
末とを中継する中継装置において、 前記CPUから分岐トランザクションの最初を示す閉塞
要求トランザクションの受信に応じて、他のCPUに対
応する仕掛かり状態が分岐中状態である場合は前記閉塞
要求を保留し、分岐中状態でない場合は該閉塞要求を送
信したCPUに対応する仕掛かり状態を分岐中とする手
段と、 前記端末から前記分岐トランザクションの最後を示す分
岐応答最終トランザクションの受信に応じて、前記閉塞
要求を送信したCPUに対応する仕掛かり状態を初期状
態とする手段とを備えたことを特徴とする中継装置。4. A relay device for relaying between a CPU processing device having a plurality of CPUs and a terminal, and a work-in-progress state corresponding to another CPU in response to reception of a blocking request transaction indicating the beginning of a branch transaction from the CPU. Is in the branching state, the blocking request is suspended, and if not in the branching state , the in-progress state corresponding to the CPU that has transmitted the blocking request is set to branching, and the terminal ends the branch transaction. the response to receiving the branch response last transaction shown, the relay apparatus, wherein a work-in-process state corresponds to a CPU that sent the closure request and means for the initial state.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP08607398A JP3531469B2 (en) | 1998-03-31 | 1998-03-31 | Transaction control method and its relay device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP08607398A JP3531469B2 (en) | 1998-03-31 | 1998-03-31 | Transaction control method and its relay device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11282813A JPH11282813A (en) | 1999-10-15 |
| JP3531469B2 true JP3531469B2 (en) | 2004-05-31 |
Family
ID=13876537
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP08607398A Expired - Lifetime JP3531469B2 (en) | 1998-03-31 | 1998-03-31 | Transaction control method and its relay device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3531469B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7472205B2 (en) | 2002-04-24 | 2008-12-30 | Nec Corporation | Communication control apparatus which has descriptor cache controller that builds list of descriptors |
| JP4645657B2 (en) * | 2008-02-15 | 2011-03-09 | 日本電気株式会社 | Telegram processing system, telegram processing method, program thereof, and recording medium thereof |
| US20120016949A1 (en) * | 2009-03-23 | 2012-01-19 | Junichi Higuchi | Distributed processing system, interface, storage device, distributed processing method, distributed processing program |
| JP5494354B2 (en) * | 2010-08-25 | 2014-05-14 | 富士通株式会社 | Association processing program, method and apparatus |
| US20140351362A1 (en) * | 2011-11-02 | 2014-11-27 | Hitachi, Ltd. | Computer system, data transfer method, and data transfer program |
-
1998
- 1998-03-31 JP JP08607398A patent/JP3531469B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH11282813A (en) | 1999-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5481681A (en) | Data transfer operations between two asynchronous buses | |
| JP3531469B2 (en) | Transaction control method and its relay device | |
| JPS622747A (en) | Reception control system | |
| JPH0553939A (en) | File transfer processing system | |
| JPS62172840A (en) | Transferring system for data | |
| KR100253790B1 (en) | How to interface medium and large computer controller boards | |
| JPS61848A (en) | Bus selection system for decentralized control system | |
| EP0781433B1 (en) | Bus assignment system for dsp processors | |
| JP2721290B2 (en) | Communication control device | |
| JPH0514365A (en) | Scan transmission system | |
| JPS6266360A (en) | Priority control system | |
| JPS60183659A (en) | Information transfer control system | |
| JP2569086B2 (en) | Data transmission control method | |
| JPH04274524A (en) | System for controlling inter-process communication | |
| JPH03288255A (en) | Network control system for multiprocessor | |
| JPH0365720A (en) | Print server | |
| JP3050131B2 (en) | Arbitration method | |
| JPS60205654A (en) | On-line processing system | |
| JPH0644153A (en) | Automatic file transfer system between terminals | |
| JPS61165167A (en) | Interruption controlling system | |
| JPH0282342A (en) | Data communication equipment | |
| JPH03255558A (en) | Communication processor control system | |
| JPH04137161A (en) | Bus arbitrating system | |
| JPS62120749A (en) | Communication control system | |
| JPS62214456A (en) | Data transfer schedule system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040119 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040210 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040223 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090312 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090312 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100312 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110312 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110312 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120312 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130312 Year of fee payment: 9 |