JPH0561820B2 - - Google Patents

Info

Publication number
JPH0561820B2
JPH0561820B2 JP62224072A JP22407287A JPH0561820B2 JP H0561820 B2 JPH0561820 B2 JP H0561820B2 JP 62224072 A JP62224072 A JP 62224072A JP 22407287 A JP22407287 A JP 22407287A JP H0561820 B2 JPH0561820 B2 JP H0561820B2
Authority
JP
Japan
Prior art keywords
cpu
port number
communication
transmitting
cpus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP62224072A
Other languages
Japanese (ja)
Other versions
JPS6468042A (en
Inventor
Wataru Sasaki
Sumihisa Saito
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62224072A priority Critical patent/JPS6468042A/en
Publication of JPS6468042A publication Critical patent/JPS6468042A/en
Publication of JPH0561820B2 publication Critical patent/JPH0561820B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、2個のCPUとその切換系を有した
二重化CPUがさらに通信路により複数台接続さ
れた高信頼マルチCPUシステムにおける、二重
化CPU間の通信方法に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a redundant CPU in a highly reliable multi-CPU system in which a plurality of redundant CPUs each having two CPUs and a switching system are further connected via a communication path. This relates to communication methods between

〔従来の技術〕[Conventional technology]

複数のCPUに対して同一の情報を伝達する通
信方式としては、特開昭58−10934号に記載のよ
うな同報通信方式がある。この同報通信方式の場
合問題になるのは、情報を受信した複数のCPU
のうちどのCPUが応答を返すかである。前記特
開昭58−10943号では、送信側で応答するステー
シヨン(本特許ではCPUに相当)を指定してい
る。
As a communication method for transmitting the same information to a plurality of CPUs, there is a broadcast communication method as described in Japanese Patent Laid-Open No. 10934/1983. The problem with this broadcast communication method is that the multiple CPUs that receive the information
Which CPU among them will return the response. In the above-mentioned Japanese Patent Laid-Open No. 58-10943, a station (corresponding to the CPU in this patent) that responds is specified on the transmitting side.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、二重化CPUをグループ同報
通信の対象にするようには考慮されていない。こ
のため、応答を返す単位CPUを送信側で指定す
ると、二重化CPUを一つの受信単位とした場合
には、応答を指定されたCPUが故障中及び待機
中の時、二重化CPUとしてはバツクアツプが働
いて正常に機能するにもかかわらず、応答が返ら
ないという問題がある。
The above-mentioned conventional technology does not consider making the duplex CPU the target of group broadcast communication. Therefore, if the unit CPU that returns a response is specified on the sending side, and if the redundant CPU is used as one receiving unit, if the CPU to which the response is specified is out of order or on standby, backup will be performed as the redundant CPU. The problem is that even though it is working properly, it does not return a response.

本発明の目的は、二重化CPUを一つの受信単
位とした通信も各単位CPUを一つの受信単位と
した通信も行え、かつ二重化CPUを対象とした
場合にも同報通信に対する正常な応答が得られる
二重化CPU間の通信方法を提供するにある。
The purpose of the present invention is to be able to perform communication using a duplex CPU as one reception unit and communication using each unit CPU as one reception unit, and to be able to obtain a normal response to broadcast communication even when the duplex CPU is targeted. The goal is to provide a communication method between dual CPUs.

〔問題点を解決するための手段〕[Means for solving problems]

上記の目的は、二重化CPUを一つの受信単位
とするための仮想ポート番号と、各CPUを一つ
の受信単位とするための物理ポート番号とを各
CPUに割り当てるとともに、各CPUと通信路と
を接続する通信装置において、データ送信時には
同報通信であるか否かとともに受信相手の指定を
上記各ポート番号の指定により行い、受信側では
この指定を受けたCPUが当該データを受信し、
二重化CPUに対する同報通信の応答時には、常
用系となつているCPUのみから応答を返すよう
に制御することにより達成される。
The purpose of the above is to set the virtual port number for each redundant CPU as one reception unit and the physical port number for each CPU as one reception unit.
In the communication device that connects each CPU and the communication path, in addition to assigning it to the CPU, when sending data, specify whether it is broadcast communication or not and the receiving party by specifying each port number above. The receiving CPU receives the data,
This is achieved by controlling so that only the regularly used CPU returns a response when responding to a broadcast communication to the redundant CPU.

(作用) 二重化CPUの各CPUが具備する通信装置は、
以下のように動作する。まず受信の場合、通信路
上のデータが仮想ポート番号を用いた同報通信の
場合、仮想ポート番号が自分の属する二重化
CPUのものと一致すれば各CPUとともにそのデ
ータを受信し、一致しなければ、受信しない。
(Function) The communication device included in each CPU of the redundant CPU is
It works as follows. First, in the case of reception, if the data on the communication path is broadcast communication using a virtual port number, the virtual port number is
If it matches that of the CPU, it will receive the data along with each CPU; if it does not match, it will not receive it.

通信路上のデータが、保守や立上げ等に用いら
れる物理ポート番号を用いた1対1通信の場合、
物理ポート番号が自分の接続するCPUのものと
一致すれば受信し、一致しなければ受信しない。
これにより1つのCPUに対してもデータを送る
ことができる。
If the data on the communication path is one-to-one communication using a physical port number used for maintenance or startup, etc.
If the physical port number matches that of the CPU you are connecting, it will receive data; if it does not, it will not receive data.
This allows data to be sent to even one CPU.

次に送信の場合、そのデータが、仮想ポート番
号を用いた同報通信の場合、当該通信装置を具備
するCPUが常用系ならば通信路へ送信し、待機
系ならば、CPUに対し送信終了報告のみ行う。
これにより、プログラムは常用系、待機系の区別
なく動作でき、かつ、二重化CPUの常用系CPU
からのみデータが送信される。尚、各CPUの常
用系、待機系の判断は、それを区別できる信号が
通信装置へ入力されるものとし、常用系、待機系
切り換えのしくみは本発明では問わない。
Next, in the case of transmission, if the data is broadcast communication using a virtual port number, if the CPU equipped with the communication device is a regular system, it will be sent to the communication path, and if it is a standby system, the data will be sent to the CPU. Report only.
As a result, programs can run without distinction between regular and standby systems, and the regular CPU of the redundant CPU
Data is sent only from It should be noted that to determine whether each CPU is a regular system or a standby system, a signal that can distinguish between them is input to the communication device, and the mechanism for switching between the regular system and the standby system is not concerned in the present invention.

送信するデータが物理ポート番号を用いた1対
1通信の場合は、常用系、待機系にかかわらず送
信を行う。これにより待機系CPUからもデータ
を得られる。
If the data to be sent is one-to-one communication using a physical port number, the data will be sent regardless of whether it is in the active system or the standby system. This allows data to be obtained from the standby CPU as well.

〔実施例〕〔Example〕

以下、本発明の一実施例を説明する。第3図
は、本発明の方法を適用する二重化CPUマルチ
システムの構成図であり、一つの通信路1に通信
装置52A,52B,53A,……を介して
CPU62A,62B,63A,……が接続され、
これらのCPUは切り換え装置7により常用系/
待機系が切り換えられる2台のCPUを1組みと
する二重系2,3,……を構成する。
An embodiment of the present invention will be described below. FIG. 3 is a configuration diagram of a redundant CPU multi-system to which the method of the present invention is applied.
CPU62A, 62B, 63A, ... are connected,
These CPUs are switched between the regular system and
Dual systems 2, 3, etc. are constructed, each pair consisting of two CPUs whose standby system can be switched.

このシステムの通信路1では、第4図に示す通
信フレームでデータが送られる。通信フレーム
は、オープニングフラグ11(OF)、機能コード
12(FN)、送信先ポート番号13(DP)、送信
元ポート番号14(SP)、データ15(DA)、フ
レームチエツクシーケンス16(FCS)、クロー
ズインフラグ17(CF)から構成される。機能
コード12は3ビツトで、これが“101”の場合、
送信先ポート番号13、送信元ポート番号14は
仮想ポート番号を示し、機能コード12が“001”
の場合はこれらがともに、物理ポート番号を示
す。
In the communication channel 1 of this system, data is sent in the communication frame shown in FIG. The communication frame includes opening flag 11 (OF), function code 12 (FN), destination port number 13 (DP), source port number 14 (SP), data 15 (DA), frame check sequence 16 (FCS), Consists of close flag 17 (CF). Function code 12 is 3 bits, and if this is “101”,
Destination port number 13 and source port number 14 indicate virtual port numbers, and function code 12 is “001”.
In this case, both indicate the physical port number.

以上の通信フレームを受信した通信装置の、本
発明の特徴とする受信処理を第1図に従い説明す
る。まずステツプ21にて機能コード12を判定
し、“001”ならば仮想ポート番号指定であるの
で、ステツプ22で送信先ポート番号13を判定
し、当該通信装置の仮想ポート番号と一致したな
らば、ステツプ23でデータを受信し、ステツプ24
で自装置に接続されたCPUに受信報告をする。
ステツプ22で仮想ポート番号の一致がみられない
ときはデータ受信及び受信報告はしない。ステツ
プ21にて機能コード12を判定し、“001”ならば
物理ポート指定であるので、ステツプ25で送信先
ポート番号13を判定し、当該通信装置の物理ポ
ート番号と一致したならば、ステツプ26でデータ
を受信し、ステツプ27でCPUに受信報告をする。
A reception process, which is a feature of the present invention, performed by a communication device that receives the above communication frame will be explained with reference to FIG. First, in step 21, function code 12 is determined, and if it is "001", the virtual port number is specified, so in step 22, destination port number 13 is determined, and if it matches the virtual port number of the communication device, Receive data in step 23, then proceed to step 24
The reception report is sent to the CPU connected to the own device.
If the virtual port numbers do not match in step 22, no data reception or reception report is made. The function code 12 is determined in step 21, and if it is "001", it is a physical port designation, so the destination port number 13 is determined in step 25, and if it matches the physical port number of the communication device, step 26 The data is received at step 27, and the reception report is sent to the CPU at step 27.

次に1つの二重系2から他の二重系3への送信
手順を述べる。先ず、二重系2内通信装置52
A,52BがCPU62A,62Bから第5図に
示すデータの送信要求を受けた場合の送信処理を
第2図に従い説明する。この第2図の処理は、通
信装置52A,52Bが独自に行う。先ずステツ
プ41にて機能コード32を判定し、“101”ならば
仮想ポート番号指定なので、ステツプ42で切り換
え装置72からの信号8A(又は8B)を判定し、
自己が常用系ならばステツプ43でデータを送信す
る。このときのフオーマツトは、第5図のものに
オープニングフラグ11等をつけた第4図の形で
ある。続いてステツプ45でCPU62Aまたは6
2Bの常用系の方へ送信終了報告を行う。ステツ
プ42で自己が待機系ならば、通信路1への送信は
せず、ステツプ45でCPU62Aまたは62Bに
送信終了報告のみを行う。ステツプ41で機能コー
ド32が“001”ならば物理ポート番号指定なの
で、ステツプ44でデータを送信し、ステツプ45で
CPU62Aまたは62Bに送信終了報告を行う。
Next, a transmission procedure from one duplex system 2 to another duplex system 3 will be described. First, the communication device 52 within the duplex system 2
The transmission process when A, 52B receives a request to transmit the data shown in FIG. 5 from CPU 62A, 62B will be explained with reference to FIG. The processing shown in FIG. 2 is independently performed by the communication devices 52A and 52B. First, in step 41, the function code 32 is determined, and if it is "101", the virtual port number is specified, so in step 42, the signal 8A (or 8B) from the switching device 72 is determined,
If the self is a regular system, data is transmitted in step 43. The format at this time is the one shown in FIG. 4 with the opening flag 11 etc. added to the one shown in FIG. 5. Next, in step 45, select CPU62A or 6.
Report the completion of transmission to the 2B regular system. If it is the standby system in step 42, it does not transmit to the communication path 1, but only reports the completion of transmission to the CPU 62A or 62B in step 45. If the function code 32 is "001" in step 41, the physical port number is specified, so the data is sent in step 44, and the data is sent in step 45.
A transmission completion report is sent to the CPU 62A or 62B.

以上により二重化CPUは仮想ポート番号指定
により二重系を単位とした通信を行い、又、個々
のCPUは物理ポート番号指定により通信を行え
るとともに、仮想ポート番号指定の場合、応答を
送信するのは自動的に常用系とされるから、送信
側では二重系(二重化CPU)のどちらが常用系
かを意識する必要がない。
As described above, duplex CPUs can communicate in units of duplex systems by specifying virtual port numbers, and individual CPUs can communicate by specifying physical port numbers.In the case of specifying virtual port numbers, the only one to send a response is Since it is automatically set as the regular system, there is no need for the sending side to be aware of which of the duplex systems (redundant CPUs) is the regular system.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、二重化されたCPUを1つの
CPUとして扱う通信ができ、二重化CPUの各
CPUには二重化のための処理プログラムは必要
とせず、しかも、メンテナンスには同一の伝送路
で個々のCPUに対して1対1で通信することが
できるので、高信頼性の二重化CPUマルチシス
テムのハードウエア構成及び処理プログラムを容
易に構築できるという効果がある。又、二重化の
ために通信データ量が増すということもないの
で、システムの処理能力が低下することはない。
According to the present invention, dual CPUs can be combined into one
Communication can be handled as a CPU, and each of the redundant CPUs
The CPU does not require a processing program for duplication, and for maintenance purposes, it is possible to communicate one-on-one with each CPU using the same transmission path, making it possible to create a highly reliable duplex CPU multi-system. This has the advantage that the hardware configuration and processing program can be easily constructed. Furthermore, since the amount of communication data does not increase due to duplication, the processing capacity of the system does not decrease.

【図面の簡単な説明】[Brief explanation of drawings]

第1図及び第2図は本発明の特徴とする通信装
置の受信処理及び送信処理の実施例を示すフロー
チヤート、第3図は本発明の方法を適用する二重
系CPUマルチシステムの構成例を示す図、第4
図は本発明で用いる通信フレームを示す図、第5
図は本発明におけるCPUから通信装置へ送信要
求をする時のデータフオーマツトを示す図であ
る。 1……通信路、2,3,4……二重化CPU、
52A,52B,53A,53B……通信装置、
62A,62B,63A,63B……CPU、7
2……切り換え装置、82A,82B……常用信
号、12,32……機能コード、13,33……
送信先ポート番号、14,34……送信元ポート
番号。
1 and 2 are flowcharts showing an embodiment of reception processing and transmission processing of a communication device, which is a feature of the present invention, and FIG. 3 is a configuration example of a dual CPU multi-system to which the method of the present invention is applied. Figure 4 showing
Figure 5 shows communication frames used in the present invention.
The figure is a diagram showing a data format when a transmission request is made from a CPU to a communication device according to the present invention. 1... Communication path, 2, 3, 4... Redundant CPU,
52A, 52B, 53A, 53B...communication device,
62A, 62B, 63A, 63B...CPU, 7
2...Switching device, 82A, 82B...Common signal, 12,32...Function code, 13,33...
Destination port number, 14, 34... Source port number.

Claims (1)

【特許請求の範囲】[Claims] 1 2台のCPUと、該CPUの各々を通信路と接
続する各CPU対応に設けられた通信装置と、上
記2台のCPUの一方を常用系、他方を待機系と
して指定する切り換え手段とからなる二重化処理
系を複数個設けて成るシステムのための通信方法
において、上記二重化処理系を1つの単位として
送受信を行うための仮想ポート番号と、各CPU
を別個の単位として送受信を行うための物理ポー
ト番号とを各CPU対応に定めるとともに、上記
仮想ポート番号を用いた二重化処理系単位の送受
信時には、データまたは受信に対する応答を送信
する送信側及びその受信側の双方の二重化処理系
において、対応する切り換え手段により常用系に
指定されたCPU側の通信装置のみが送信及び受
信処理を行い、上記物理ポート番号を用いた
CPU単位の送受信時には、データまたは受信に
たいする応答を送信する送信側及びその受信側の
各CPU対応の通信装置が送信及び受信処理を行
うことを特徴とする通信方法。
1. Two CPUs, a communication device provided for each CPU that connects each of the CPUs to a communication path, and a switching means for designating one of the two CPUs as a regular system and the other as a standby system. In a communication method for a system with multiple redundant processing systems, a virtual port number for transmitting and receiving data using the redundant processing systems as one unit, and each CPU
The physical port number for transmitting and receiving data as a separate unit is determined for each CPU, and when transmitting and receiving on a duplex processing system basis using the above virtual port number, the transmitting side that transmits data or a response to reception, and the receiving side In both redundant processing systems on both sides, only the communication device on the CPU side that is designated as the regular system by the corresponding switching means performs transmission and reception processing, and uses the above physical port number.
A communication method characterized in that when transmitting/receiving in units of CPUs, a communication device compatible with each CPU on a transmitting side that transmits data or a response to reception, and a communication device compatible with each CPU on the receiving side performs transmitting and receiving processing.
JP62224072A 1987-09-09 1987-09-09 Communication method Granted JPS6468042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62224072A JPS6468042A (en) 1987-09-09 1987-09-09 Communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62224072A JPS6468042A (en) 1987-09-09 1987-09-09 Communication method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP6211246A Division JPH07182190A (en) 1994-09-05 1994-09-05 Multi-duplex system

Publications (2)

Publication Number Publication Date
JPS6468042A JPS6468042A (en) 1989-03-14
JPH0561820B2 true JPH0561820B2 (en) 1993-09-07

Family

ID=16808122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62224072A Granted JPS6468042A (en) 1987-09-09 1987-09-09 Communication method

Country Status (1)

Country Link
JP (1) JPS6468042A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4836979B2 (en) * 2008-03-07 2011-12-14 三菱電機株式会社 Duplex programmable controller
BR102018003793A2 (en) 2018-02-26 2019-09-10 Tupy S A gray cast iron alloy, and internal combustion engine head

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53106535A (en) * 1977-02-28 1978-09-16 Fujitsu Ltd System control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53106535A (en) * 1977-02-28 1978-09-16 Fujitsu Ltd System control system

Also Published As

Publication number Publication date
JPS6468042A (en) 1989-03-14

Similar Documents

Publication Publication Date Title
JP2553193B2 (en) Protection line control method for network control path network
JPS63279633A (en) Multi-address communication system
CZ385391A3 (en) Communication system
JPH09130408A (en) Network interface device
JPH0561820B2 (en)
JPH0473178B2 (en)
JP3149047B2 (en) Redundant data processor
JPH07182190A (en) Multi-duplex system
JPH11127179A (en) Duplicate communication controller
JP2658129B2 (en) Data transmission equipment
JP2645433B2 (en) Computer system
JPS60190050A (en) Transmission system
JP2645134B2 (en) Message transmission control method to restoration signal link
JPS61287350A (en) Multiplex communication line data transmission system
JPH0486133A (en) Standby link synchronization detection system for duplicate data link
JPS6074848A (en) Serial data transfer system
JPH0738655B2 (en) Preliminary identification method of availability of access to line processing unit by standby processor
JPH03178234A (en) Transmission system for duplex transmission line
JPH0520242A (en) Message communication system between stand-by system controller and message device in duplexed system
JPS61204757A (en) Inter-processor communication system
JPS6159935A (en) Call identification system
JPS5858629A (en) Bus switching system
JPS6242644A (en) Communication controller
JPH04158648A (en) Dual lan control system
JPS63105547A (en) Data transfer request system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees