JPH0895901A - Bus switching method and bus switching device - Google Patents

Bus switching method and bus switching device

Info

Publication number
JPH0895901A
JPH0895901A JP22634194A JP22634194A JPH0895901A JP H0895901 A JPH0895901 A JP H0895901A JP 22634194 A JP22634194 A JP 22634194A JP 22634194 A JP22634194 A JP 22634194A JP H0895901 A JPH0895901 A JP H0895901A
Authority
JP
Japan
Prior art keywords
bus
input
port
logical
initiator
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
Application number
JP22634194A
Other languages
Japanese (ja)
Inventor
Yoshihiro Chiyousokabe
嘉博 長曽我部
Koji Masui
晃二 桝井
Hideji Ishikura
秀司 石倉
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 JP22634194A priority Critical patent/JPH0895901A/en
Publication of JPH0895901A publication Critical patent/JPH0895901A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

(57)【要約】 【目的】SCSIバスプロトコルで、定められた識別子
数以上の入出力制御装置を接続できるバス切替方法およ
び装置を提供する。 【構成】入出力制御装置21〜2n、入出力装置31〜
37は、個別にバスケーブル20、30によってバス切
替装置10に接続される。バス切替装置10のポート制
御装置60は、信号70、71からポート回路41〜4
n、51〜57に接続している装置のバス獲得・装置選
択動作を監視し、信号80、81でバス信号を操作し、
信号90、91でバス信号の接続、切り離しを制御し、
内部バス100からバスの状態変化を監視する。
(57) [Summary] [PROBLEMS] To provide a bus switching method and device capable of connecting input / output control devices having a predetermined number of identifiers or more by a SCSI bus protocol. [Structure] Input / output control devices 21 to 2n, input / output devices 31 to 31
37 is individually connected to the bus switching device 10 by the bus cables 20 and 30. The port controller 60 of the bus switching apparatus 10 receives the port circuits 41 to 4 from the signals 70 and 71.
monitor the bus acquisition / device selection operation of the device connected to n, 51 to 57, and operate the bus signal with signals 80 and 81,
Control the connection and disconnection of bus signals with signals 90 and 91,
The internal bus 100 is monitored for changes in the state of the bus.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数の計算機と入出力
装置がバス接続されてなる計算機システムに係り、特に
複数の入出力装置(外部記憶装置)を共有するためのバ
ス切替方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system in which a plurality of computers and input / output devices are bus-connected, and more particularly to a bus switching system for sharing a plurality of input / output devices (external storage devices).

【0002】[0002]

【従来の技術】計算機システムにおいて、入出力制御装
置(以下、イニシエータと呼ぶ)と入出力装置(以下、
ターゲットと呼ぶ)間で、情報交信するバスプロトコル
の1つにANSIX3.131−1986で規定されて
いるスモール・コンピュータ・システム・インターフェ
ース(以下、SCSIと呼ぶ)がある。
2. Description of the Related Art In a computer system, an input / output control device (hereinafter referred to as "initiator") and an input / output device (hereinafter referred to as "initiator")
There is a small computer system interface (hereinafter referred to as SCSI) defined in ANSI X3.131-1986 as one of bus protocols for communicating information between the target and the target).

【0003】SCSIは、バスフリー、バス獲得(アー
ビトレーション)、装置選択(セレクション)/再選択
(リセレクション)及び情報転送の4つのフェーズから
なり、図7に示すように複数の装置を同一バスケーブル
でディジーチェイン接続し、両端に終端抵抗を設けて構
成される。
SCSI consists of four phases: bus-free, bus acquisition (arbitration), device selection (selection) / reselection (reselection), and information transfer. As shown in FIG. 7, a plurality of devices are connected to the same bus cable. It is configured by daisy chain connection with terminating resistors at both ends.

【0004】バス上に接続された各イニシエータとター
ゲットには識別子(以下、IDと呼ぶ)が設定され、そ
のIDに選択元と選択先を指定してアービトレーション
やセレクション/リセレクションを行う。SCSIのI
Dは0から7の8個に限定され、バス使用優先順位はI
D=7が最高でID=0が最低となる。アービトレーシ
ョンは、IDの優先順位で決まる。セレクション/リセ
レクションは、選択元を示すIDと選択先を示すIDが
同時にバス上に出力され、選択先IDに対応する装置が
選択元に対して応答することで完了する。
An identifier (hereinafter referred to as an ID) is set for each initiator and target connected on the bus, and a selection source and a selection destination are designated for the ID to perform arbitration and selection / reselection. SCSI I
D is limited to 8 from 0 to 7, and the bus use priority is I
D = 7 is the highest and ID = 0 is the lowest. Arbitration is determined by the priority of ID. The selection / reselection is completed when the ID indicating the selection source and the ID indicating the selection destination are simultaneously output on the bus, and the device corresponding to the selection destination ID responds to the selection source.

【0005】各ターゲットは、イニシエータからのコマ
ンドを受付け、コマンドに従い情報転送を行う。応答準
備に時間がかかる時は、バス使用効率を上げるため、速
やかにバスを解放し(ディスコネクト)、準備ができし
だいバスをアービトレーション後、イニシエータをリセ
レクションし、情報転送を再開する。ディスコネクト中
は、自ID以外の他のIDのイニシエータからのコマン
ドを順次受付、記憶し、コマンドに従って情報転送を行
う。
Each target receives a command from the initiator and transfers information according to the command. When it takes a long time to prepare a response, the bus is released (disconnect) promptly in order to improve the bus usage efficiency, the bus is arbitrated when it is ready, the initiator is reselected, and the information transfer is restarted. During disconnection, commands from initiators with other IDs other than the own ID are sequentially received and stored, and information is transferred according to the commands.

【0006】このように、SCSIのバスプロトコルで
はID数が限定されているため、接続可能なイニシエー
タの数が限られる。また、優先順位が高い装置が連続し
てアービトレーションを始めると、他の装置はバスを使
用出来なくなるという問題がある。
Since the number of IDs is limited in the SCSI bus protocol, the number of connectable initiators is limited. Further, if a device with a high priority starts arbitration continuously, another device cannot use the bus.

【0007】これらの問題を解決する方式の一つに、特
開昭63−150753号公報(引用例)に開示されて
いるバス切替装置がある。これによれば、IDが同じイ
ニシエータを個別に接続し、1つのイニシエータがター
ゲットからの情報転送を終了するまでバスを独占し、そ
の間、他のイニシエータのアービトレーションやセレク
ションに応答しないようにすることで、複数イニシエー
タからのターゲット共有を可能にしている。
One of the methods for solving these problems is a bus switching device disclosed in Japanese Patent Laid-Open No. 63-150753 (cited example). According to this, by connecting the initiators with the same ID individually, and monopolizing the bus until one initiator finishes transferring information from the target, while not responding to the arbitration and selection of other initiators, , Allows sharing of targets from multiple initiators.

【0008】[0008]

【発明が解決しようとする課題】しかし、引用例の方式
によってバス接続すると、同じIDのイニシエータが複
数接続されているので、ディスコネクト時に他のイニシ
エータからのコマンドをターゲットが受付、記憶ができ
ないという問題があった。
However, when the bus connection is made by the method of the cited example, since a plurality of initiators having the same ID are connected, the target cannot accept and store a command from another initiator at the time of disconnection. There was a problem.

【0009】本発明の第1の目的は、使用する全識別子
数よりも多い装置間の伝送を可能にするバス切替方法と
装置を提供することにある。
It is a first object of the present invention to provide a bus switching method and device which enables transmission between devices which is larger than the total number of identifiers used.

【0010】本発明の第2の目的は、SCSIのバスプ
ロトコルに則って動作する情報伝送システムにおいて、
SCSIの全ID数よりも多数のイニシエータを接続で
きるバス切替方法と装置を提供することにある。
A second object of the present invention is to provide an information transmission system which operates according to the SCSI bus protocol,
It is an object of the present invention to provide a bus switching method and apparatus capable of connecting a larger number of initiators than the total number of SCSI IDs.

【0011】本発明の第3の目的は、バス使用効率の高
いバス切替方法と装置を提供することにある。
A third object of the present invention is to provide a bus switching method and device with high bus usage efficiency.

【0012】本発明の第4の目的は、SCSIでバス占
有が特定の装置に偏ることを排し、各装置の機会を均等
にするバス切替方法と装置を提供することにある。
A fourth object of the present invention is to provide a bus switching method and apparatus which eliminates bias of bus occupation to a specific device in SCSI and equalizes opportunities of each device.

【0013】本発明のその余の目的は、以下の記載を通
じて明らかになる。
The other objects of the present invention will become clear through the following description.

【0014】[0014]

【課題を解決するための手段】本発明の第1の目的は、
イニシエータ側のポートに接続されている複数の装置
(イニシエータ)とターゲット側のポートに接続されて
いる1または複数の装置(ターゲット)間で、交信相手
と動的にバス接続して情報を伝送する際に、送信元及び
送信先を示す装置の識別子(ID)にしたがってバス接
続を制御するバス切替方法において、予め各装置に共通
の物理IDと、各ターゲット側ポートに固定のターゲッ
ト論理IDが付与されている場合に、イニシエータから
のターゲット論理IDを含むコマンドの選択動作に応じ
て当該イニシエータ側ポートにイニシエータ論理IDを
動的に付与し、これらの物理IDと論理IDの間で所定
のID変換を行って送信先ターゲットの選択を行い、送
信元と送信先の装置間をバス接続することにより達成さ
れる。
The first object of the present invention is to:
Dynamically connect a bus to a communication partner to transmit information between multiple devices (initiators) connected to the port on the initiator side and one or more devices (target) connected to the port on the target side At this time, in the bus switching method of controlling the bus connection according to the identifier (ID) of the device indicating the transmission source and the transmission destination, a physical ID common to each device and a fixed target logical ID are assigned to each target side port in advance. In case of the above, the initiator logical ID is dynamically given to the initiator side port according to the selection operation of the command including the target logical ID from the initiator, and the predetermined ID conversion is performed between these physical ID and logical ID. This is achieved by selecting the transmission destination target and connecting the transmission source device and the transmission destination device by a bus.

【0015】本発明の第2の目的は、利用可能な識別子
(ID)の最大数がnの場合に、その内の1個を各装置
に共通の物理IDとし、残るn−1個の識別子の一部ま
たは全部をターゲット側のポートに固定的に付与すると
共に、前記n−1個の識別子をイニシエータ側の論理I
Dとしてイニシエータの選択動作に応じて動的に付与
し、これらの物理IDと論理ID間で所定のID変換を
行って送信先ターゲットの選択を行い、送信元と送信先
の装置間をバス接続することにより達成される。
A second object of the present invention is that when the maximum number of available identifiers (IDs) is n, one of them is used as a physical ID common to each device and the remaining n-1 identifiers are used. A part or all of the above is fixedly attached to the port on the target side, and the n-1 identifiers are assigned to the logic I on the initiator side.
It is dynamically assigned as D according to the selection operation of the initiator, a predetermined ID conversion is performed between these physical ID and logical ID to select a destination target, and a bus connection is made between the source and destination devices. It is achieved by

【0016】本発明の第3の目的は、前記バス接続が行
われた後に、データ送信のディスコネネクトが検出され
る場合には、前記物理IDと論理ID対応関係の登録を
保持したまま前記バス接続を切り離すことにより達成さ
れる。
A third object of the present invention is that, when a disconnection of data transmission is detected after the bus connection is made, the bus is maintained while the registration of the physical ID and the logical ID correspondence is held. This is achieved by breaking the connection.

【0017】本発明の第4の目的は、前記選択動作は、
前回バス接続を実行した次のポートから所定順に監視す
ることにより達成される。
A fourth object of the present invention is that the selection operation is
This is achieved by monitoring in a predetermined order from the next port where the bus connection was executed last time.

【0018】[0018]

【作用】本発明によれば、IDが固定されていないイニ
シエータ側とIDが固定されているターゲット側との間
にバス切替装置を接続し、選択動作をしているイニシエ
ータに論理IDを動的に割当る。これらIDとポート番
号を含む対応関係を管理すると共に、対応関係より変換
したIDからターゲットを選択してバス接続を可能にす
る。
According to the present invention, a bus switching device is connected between the initiator side where the ID is not fixed and the target side where the ID is fixed, and the logical ID is dynamically assigned to the initiator performing the selection operation. Assign to. The correspondence relationship including the ID and the port number is managed, and the target is selected from the ID converted from the correspondence relationship to enable the bus connection.

【0019】これによれば、イニシエータに付与される
IDが動的に変更可能な論理IDを用いているので、シ
ステムに使用可能なID数以上の装置間の情報伝送がで
き、特にSCSI動作におけるシステムの構成を自由に
拡張できる。
According to this, since the ID assigned to the initiator is a dynamically changeable logical ID, information can be transmitted between devices whose number is equal to or larger than the number of IDs available in the system, especially in SCSI operation. The system configuration can be expanded freely.

【0020】[0020]

【実施例】以下、本発明の実施例について図面を参照し
て詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0021】図1は、本発明の一実施例による情報処理
システムの機能ブロック図である。情報処理システム
は、計算機を利用する入出力制御装置のイニシエータ2
0(21〜2n)と、入出力装置のターゲット30(3
1〜37)がバス切替装置10を介して接続される。
FIG. 1 is a functional block diagram of an information processing system according to an embodiment of the present invention. The information processing system includes an initiator 2 of an input / output control device that uses a computer.
0 (21 to 2n) and the target 30 (3 of the input / output device)
1 to 37) are connected via the bus switching device 10.

【0022】イニシエータ20とターゲット30は、S
CSIプロトコルによって情報転送する。即ち、バス獲
得(アービトレーション)、装置選択(イニシエータ側
のセレクション)/再選択(ターゲット側のリセレクシ
ョン)、情報転送及びバスフリーの4つのフェーズから
なる。イニシエータ20はターゲット30に対しコマン
ドを発行し、ターゲット30はID毎にコマンドを受付
けて順次、コマンドの処理を実行する。
The initiator 20 and the target 30 are S
Information is transferred by the CSI protocol. That is, it consists of four phases: bus acquisition (arbitration), device selection (selection on the initiator side) / reselection (reselection on the target side), information transfer, and bus-free. The initiator 20 issues a command to the target 30, and the target 30 receives the command for each ID and sequentially executes the command processing.

【0023】バス切替装置10は、イニシエータ20と
ターゲット30の交信時に、同一バス上に接続されてい
るようにバスを切り替える装置である。イニシエータ2
0の各々は、バスケーブル200を介して、バス切替装
置10のイニシエータ側ポートのポート回路40(41
〜4n)と接続されている。同様に、ターゲット30の
各々は、バスケーブル300を介して、ターゲット側ポ
ートのポート回路50(51〜5n)と接続されてい
る。内部バス100は、各ポート回路40、50を介し
て全バスケーブル200、300と接続できるように構
成され、これによってSCSIバスを構成している。
The bus switching device 10 is a device for switching the buses so that they are connected on the same bus when the initiator 20 and the target 30 communicate with each other. Initiator 2
0 of each port circuit 40 (41) of the initiator side port of the bus switching device 10 via the bus cable 200.
~ 4n). Similarly, each of the targets 30 is connected to the port circuit 50 (51 to 5n) of the target side port via the bus cable 300. The internal bus 100 is configured so that it can be connected to all the bus cables 200 and 300 via the port circuits 40 and 50, and thereby constitutes a SCSI bus.

【0024】ポート制御装置60は、CPU61、RA
M62、ROM63と各信号線からのI/Oポート64
〜66から構成される。CPU61は、ROM63に記
憶されている制御プログラムにより、各ポート回路4
0、50や内部バス100とのI/Oポート64〜66
及び各ポートのIDを管理しているRAM62をアクセ
スして、バス状態監視と操作及びポートの切替制御を行
う。即ち、各ポート回路のバスを監視して、イニシエー
タ20やターゲット30のアービトレーションやセレク
ション/リセレクションの動作信号70、71を検出
し、バス操作するための信号80、81あるいはバスを
開閉する信号90、91を各ポート回路40、50に出
力する。
The port controller 60 includes a CPU 61 and RA.
M62, ROM 63 and I / O port 64 from each signal line
˜66. The CPU 61 controls each port circuit 4 according to the control program stored in the ROM 63.
I / O ports 64 to 66 with 0, 50 and internal bus 100
Also, the RAM 62 which manages the ID of each port is accessed to perform bus state monitoring and operation, and port switching control. That is, the bus of each port circuit is monitored to detect the operation signals 70 and 71 of arbitration and selection / reselection of the initiator 20 and the target 30, and the signals 80 and 81 for operating the bus or the signal 90 for opening and closing the bus 90. , 91 to the respective port circuits 40, 50.

【0025】図2は、イニシエータ側のポート回路の構
成図である。SCSI信号は、BSY,SEL、AT
N、RST、ACK、I/O、C/D、MSG、REQ
の各信号とID0〜7に対応するデータ信号DB0〜7
と、パリティー信号であるDBPによって構成されてい
る。ポート回路の構成と各信号は従来のSCSIと同じ
であり、その詳細は省略する。
FIG. 2 is a block diagram of the port circuit on the initiator side. SCSI signals are BSY, SEL, AT
N, RST, ACK, I / O, C / D, MSG, REQ
Data signals DB0 to DB7 corresponding to the respective signals of ID0 to ID7
And a DBP which is a parity signal. The configuration of the port circuit and each signal are the same as those of the conventional SCSI, and the details are omitted.

【0026】ポート制御装置60は、監視信号70より
選択したポートからアービトレーションを始めた装置の
IDを読みとり、記憶する。それと共に、バス操作信号
80をポート回路40に出力し、コマンドのID変換と
他のポートによるアービトレーションの抑制を行う。I
Dの変換はDB0〜7を操作し、アービトレーションの
抑制はDB7(133)とBSY(112)を操作して
行う。また、バス開閉信号90を出力し、ゲート11
1、121〜2、131〜2、140、150をオン/
オフして、ポート回路40の各SCSI信号を内部バス
100に接続/切り離しする。
The port control device 60 reads the ID of the device that has started arbitration from the port selected by the monitoring signal 70 and stores it. At the same time, the bus operation signal 80 is output to the port circuit 40 to perform command ID conversion and suppression of arbitration by other ports. I
The conversion of D is performed by operating DB0 to 7, and the arbitration is suppressed by operating DB7 (133) and BSY (112). In addition, the bus opening / closing signal 90 is output, and the gate 11
1, 121-2, 131-2, 140, 150 on /
Turn off to connect / disconnect each SCSI signal of the port circuit 40 to / from the internal bus 100.

【0027】RSTはリセット動作で、各装置内の未完
了コマンドのクリアとバスからの開放(バスフリー)を
行う。SCSI信号の規格上ではイニシエータ、ターゲ
ットの双方からリセットできるが、本実施例においては
イニシエータからターゲットに対してのみリセットを出
力するものとする。
RST is a reset operation that clears an incomplete command in each device and releases it from the bus (bus free). According to the standard of the SCSI signal, both the initiator and the target can reset, but in the present embodiment, the reset is output only from the initiator to the target.

【0028】ターゲット側のポート回路50は、イニシ
エータ側のポート回路40と基本構成は同じで、BS
Y,ATN、RST、ACK、I/O、C/D、MS
G、REQのゲート方向が逆になる。ポート制御装置6
0は、ポート回路50からのアービトレーションやリセ
レクション動作の監視信号71を受信し、バス操作信号
81やバス開閉信号91を出力する。
The target side port circuit 50 has the same basic configuration as the initiator side port circuit 40.
Y, ATN, RST, ACK, I / O, C / D, MS
The gate directions of G and REQ are reversed. Port control device 6
0 receives the monitoring signal 71 of the arbitration and reselection operation from the port circuit 50, and outputs the bus operation signal 81 and the bus opening / closing signal 91.

【0029】バス切替装置10はこのように構成され、
イニシエータ側のポート数はn、ターゲット側のポート
数は7で、それぞれに連続したポート番号(#41〜4
n、#51〜57)が付与されている。SCSIにおけ
る接続可能なIDは8個である。本実施例では、そのう
ちの1個(ID=0)を各イニシエータ20やターゲッ
トの物理IDとして割当、残る7個のIDを論理IDと
してその割当を選択動作に応じて動的に変更する。これ
によれば、SCSIのプロトコルに従うシステムの場合
にも、多数のイニシエータの接続が可能になる。以下、
その動作を説明する。
The bus switching device 10 is constructed in this way,
The number of ports on the initiator side is n, the number of ports on the target side is 7, and consecutive port numbers (# 41 to 4)
n, # 51 to 57) are added. There are eight connectable IDs in SCSI. In the present embodiment, one of them (ID = 0) is assigned as a physical ID of each initiator 20 or target, and the remaining seven IDs are assigned as logical IDs and the assignment is dynamically changed according to the selection operation. According to this, a large number of initiators can be connected even in the case of a system complying with the SCSI protocol. Less than,
The operation will be described.

【0030】図3、4は、バス切替装置のID変換処理
を説明する概念図である。前提として、イニシエータ2
1〜2n及びターゲット31〜37には全て物理ID=
0が付与され、バス切替装置10に知らせてあるものと
する。
3 and 4 are conceptual diagrams for explaining the ID conversion processing of the bus switching device. As a premise, the initiator 2
1 to 2n and targets 31 to 37 all have physical ID =
It is assumed that 0 is added and the bus switching device 10 is notified.

【0031】図3はイニシエータからターゲットをセレ
クションする処理である。ポート番号#42に接続され
ているイニシエータ22は、選択元物理ID=0,選択
先ターゲット論理ID=7のコマンドを出力して選択要
求を行う()。バス切替装置10はこの選択要求を検
出すると()、7個のイニシエータ論理IDの中から
空いているID(図ではID=1)を割当()、この
イニシエータID=1に対応してイニシエータポート番
号#42及びターゲット論理ID=7を、RAM62の
ID管理テーブル620に登録する(,)。
FIG. 3 shows a process of selecting a target from the initiator. The initiator 22 connected to the port number # 42 outputs a command of selection source physical ID = 0 and selection destination target logical ID = 7 to make a selection request (). When the bus switching device 10 detects this selection request (), it assigns a free ID (ID = 1 in the figure) from among the seven initiator logical IDs (), and the initiator port corresponds to this initiator ID = 1. The number # 42 and the target logical ID = 7 are registered in the ID management table 620 of the RAM 62 (,).

【0032】一方、ターゲット側は、7個のターゲット
論理IDとターゲットポート番号#51〜57の対応関
係を予め固定している。バス制御装置10は、上記コマ
ンドのIDを選択元イニシエータ論理ID=1,選択先
ターゲット物理ID=0に変換して、ターゲット論理I
D=7に対応するターゲットポート番号#57に出力し
(,)、ターゲット37からの応答を受けてバスの
接続を行い、交信を可能にする。
On the other hand, on the target side, the correspondence between the seven target logical IDs and the target port numbers # 51 to 57 is fixed in advance. The bus control device 10 converts the ID of the above command into the selection source initiator logical ID = 1 and the selection destination target physical ID = 0, and the target logical I
It outputs (,) to the target port number # 57 corresponding to D = 7, receives the response from the target 37, connects the bus, and enables communication.

【0033】図4は、選択されたターゲット側から選択
元のイニシエータをリセレクションする処理である。タ
ーゲット37は、選択元物理ID=0,選択先イニシエ
ータ論理ID=1のコマンドを出力して再選択要求を行
う()。バス切替装置10は再選択要求を検出すると
()、ID管理テーブル620参照して、ターゲット
論理ID=7とイニシエータ論理ID=1の対応関係を
読出し(,)、対応するイニシエータポート番号#
42を検索し()、上記コマンドのIDを選択元ター
ゲット論理ID=7,選択先イニシエータ物理ID=0
に変換して()、イニシエータポート番号42に出力
し()、イニシエータ22からの応答を受けてバスの
接続を行い、交信を可能にする。なお、同図のID管理
テーブルに示す他の登録は、図3に示したセレクション
以後リセレクションまでの期間に、他のターゲットによ
って実施された選択動作によるものである。
FIG. 4 shows a process of reselecting the selected initiator from the selected target side. The target 37 outputs a command of selection source physical ID = 0 and selection destination initiator logical ID = 1 to request reselection (). When the bus switching device 10 detects the reselection request (), it refers to the ID management table 620 and reads the correspondence between the target logical ID = 7 and the initiator logical ID = 1 (,), and the corresponding initiator port number #
42 is searched (), and the ID of the above command is selected source target logical ID = 7, selection destination initiator physical ID = 0
It is converted to () and output to the initiator port number 42 (), and upon receiving a response from the initiator 22, the bus is connected and communication is enabled. Note that other registrations shown in the ID management table in the figure are due to the selection operation performed by another target during the period from the selection shown in FIG. 3 to the reselection.

【0034】次に、本実施例の動作を詳細に説明する。
図5は、バス切替装置の動作を示すフローチャートであ
る。ポート制御装置60は、I/O64、66を介し
て、各イニシエータ20、ターゲット30から各ポート
40、50に出力される「選択動作」を周期的に監視し
ている(s101)。この「選択動作」はポート回路の
BSY信号とデータ信号がオンとなるアービトレーショ
ンにより検出される。
Next, the operation of this embodiment will be described in detail.
FIG. 5 is a flowchart showing the operation of the bus switching device. The port control device 60 periodically monitors the “selection operation” output from the initiator 20 and the target 30 to the ports 40 and 50 via the I / O 64 and 66 (s101). This "selection operation" is detected by arbitration in which the BSY signal and the data signal of the port circuit are turned on.

【0035】選択動作の監視は、前回使用したポートの
次のポートから行って、特定の装置にバス獲得の優先順
位が固定されないようにしている。もちろん、各装置に
所定の優先順位を与えることも可能である。また、ター
ゲット側を先に監視して、ID管理テーブル620に空
いているイニシエータ論理IDがないときは、無用なイ
ニシエータ側の監視を省略するようにしてもよい。
The selection operation is monitored from the port next to the previously used port so that the priority of bus acquisition is not fixed to a specific device. Of course, it is also possible to give each device a predetermined priority. Further, the target side may be monitored first, and when there is no free initiator logical ID in the ID management table 620, unnecessary monitoring of the initiator side may be omitted.

【0036】あるポート回路にアービトレーションが検
出されると、他の全てのポートのBSYとDB7をオン
にして他の装置のアービトレーションを抑え、バス切替
時の競合をコントロールする。
When arbitration is detected in a certain port circuit, the BSY and DB7 of all the other ports are turned on to suppress the arbitration of other devices and control the conflict at the time of bus switching.

【0037】さて、選択動作が検出されると、その動作
はイニシエータ側かターゲット側かを判定する(s10
2)。イニシエータ側からの動作であれば、アービトレ
ーションからセレクションへの移行を確認し(本実施例
にとってこの遷移は本質的ではなく、アービトレーショ
ンまたはセレクションに対し、単に「選択動作」として
説明している)、空いているイニシエータ論理IDを割
当て、イニシエータポート番号、選択先ターゲット論理
IDを対応付けてID管理テーブルに登録する(s10
3)。なお、既に論理IDを割当られているイニシエー
タ(=ポート番号)が、更に他のターゲットを選択して
いるときは、別のイニシエータ論理IDを割当ることが
できる。
Now, when the selection operation is detected, it is judged whether the operation is the initiator side or the target side (s10).
2). If it is the operation from the initiator side, the transition from arbitration to selection is confirmed (this transition is not essential to this embodiment, and it is simply described as “selection operation” for arbitration or selection). The assigned initiator logical ID is registered in the ID management table in association with the initiator port number and the selected target logical ID (s10).
3). Note that when an initiator (= port number) to which a logical ID has already been assigned has selected another target, another initiator logical ID can be assigned.

【0038】次いで、信号81を出力してコマンドのI
Dを変換して、コマンドの当初の選択先ターゲット論理
IDと対応するターゲットポート番号(物理ID=0)
のバスに出力する(s104)。そして、該当ターゲッ
トからの応答を確認後、信号90、91を出力して選択
元イニシエータと選択先ターゲットとの間のバスを接続
する(s105)。即ち、イニシエータ側ポート回路4
0では、イニシエータ物理ID(=0)とターゲット論
理IDに対応するデータ信号DBとDBPのゲートをオ
ン、ターゲット側ポート回路50では、イニシエータ論
理IDとターゲット物理IDに対応するデータ信号DB
とDBPのゲートがオンして、それぞれ内部バス100
と接続される。
Then, the signal 81 is output to output the command I
The target port number (physical ID = 0) corresponding to the original selected target logical ID of the command after converting D
To the bus (s104). After confirming the response from the target, signals 90 and 91 are output to connect the bus between the selection source initiator and the selection destination target (s105). That is, the port circuit 4 on the initiator side
At 0, the gates of the data signals DB and DBP corresponding to the initiator physical ID (= 0) and the target logical ID are turned on, and at the target side port circuit 50, the data signal DB corresponding to the initiator logical ID and the target physical ID.
The gates of DBP and DBP turn on, and the internal bus 100
Connected to

【0039】一方、ステップs102で、選択動作がタ
ーゲット側からのリセレクションであれば、ID管理テ
ーブルを参照して、当該ターゲット論理IDと選択先イ
ニシエータ論理IDの組みに対応するイニシエータポー
ト番号を検索し(s106)、信号80を出力してコマ
ンドのIDを変換して当該ポート番号のバスに出力し
(s107)、該当イニシエータからの応答を確認後、
信号90、91を出力して選択元ターゲットと選択先イ
ニシエータ間のバスを接続する(s108)。
On the other hand, if the selection operation is reselection from the target side in step s102, the ID management table is referred to search for the initiator port number corresponding to the combination of the target logical ID and the selected destination initiator logical ID. (S106), the signal 80 is output, the ID of the command is converted and output to the bus of the relevant port number (s107), and after confirming the response from the corresponding initiator,
The signals 90 and 91 are output to connect the bus between the selection source target and the selection destination initiator (s108).

【0040】ポート制御装置60は、BSY信号及び内
部バス100から読み込んだI/O、C/M、MSG信
号を監視して、I/O、C/M、MSG信号が全て真に
なる情報伝送フェーズ時に、バス上のデータ信号(DB
0〜7)からステータスを監視する(s109)。ステ
ータスが正常終了のときはバス接続を切り離し(s11
0)、ID管理テーブルに登録しているイニシエータ論
理IDを消去する(s111)。
The port controller 60 monitors the BSY signal and the I / O, C / M, and MSG signals read from the internal bus 100, and transmits information that makes the I / O, C / M, and MSG signals all true. During the phase, the data signal (DB
The status is monitored from 0 to 7) (s109). If the status is normal, disconnect the bus connection (s11
0), the initiator logical ID registered in the ID management table is deleted (s111).

【0041】なお、ステータスがチエックコンディショ
ン又はチエックコンディションwithフラッグのときは
(s109でNO)、バス切り離し(s112)後も、
イニシエータ論理IDは解放せず保存する。これによっ
て、ターゲットが持つ障害情報を、送信元のイニシエー
タに転送できるようにしている。
When the status is the check condition or the check condition with flag (NO in s109), even after disconnecting the bus (s112),
The initiator logical ID is saved without being released. This makes it possible to transfer the failure information of the target to the initiator of the transmission source.

【0042】また、ステップs105、108後に、ポ
ート制御装置60はBSY信号を監視してデータ信号の
ディスコネクトを判定し(s113)、BSYがオフに
なりしだい(ディスコネクト)一時的にバスを解放する
(s114)。この場合も、イニシエータ論理IDは解
放せずに保存する。そして、ターゲット側の準備ができ
しだい、リセレクションを行う。これによって、ターゲ
ットが入力動作を開始するまでに時間がかかる場合等
に、他の装置のバス使用を可能にしてバスの使用効率を
向上する。
After steps s105 and s108, the port controller 60 monitors the BSY signal to determine the disconnection of the data signal (s113), and temporarily releases the bus as soon as BSY is turned off (disconnect). (S114). Also in this case, the initiator logical ID is saved without being released. Then, when the target side is ready, reselection is performed. As a result, when it takes a long time for the target to start the input operation, the bus of another device can be used and the bus usage efficiency is improved.

【0043】このように、本実施例のバス切替装置によ
れば、イニシエータから見てもターゲットから見ても、
全ID数は8となっているので、SCSIの規格による
動作を保障しながら、SCSIのID=8の制約を越え
る多数の装置を接続可能にしている。したがって、SC
SIのように接続可能なIDに制限のある情報入出力シ
ステムの構成を柔軟に変更、拡張できる。
As described above, according to the bus switching device of this embodiment, both the initiator and the target see
Since the total number of IDs is 8, it is possible to connect a large number of devices that exceed the constraint of SCSI ID = 8 while guaranteeing the operation according to the SCSI standard. Therefore, SC
It is possible to flexibly change and expand the configuration of the information input / output system having a limited connectable ID such as SI.

【0044】また、前回バスを使用したポートを記憶
し、その次のポートからターゲット側を先に順次監視す
るようにしているので、通常のSCSIのようにバスを
獲得する装置の優先順位が固定にならず、使い勝手がよ
い。
Further, since the port that used the bus last time is stored and the target side is sequentially monitored from the next port, the priority order of the device that acquires the bus is fixed like normal SCSI. It is not easy to use.

【0045】さらに、データ信号のディスコネクト時に
は、IDの対応関係を保持してバスを切離し、ターゲッ
ト側からのリセレクションで再接続を可能にしているの
で、バスの無駄な占有がなくバス使用効率が向上でき
る。
Further, at the time of disconnecting the data signal, the bus is disconnected while maintaining the ID correspondence, and the reconnection can be performed by the reselection from the target side, so that the bus is not occupied and the bus is used efficiently. Can be improved.

【0046】なお、本実施例は、SCSIのプロトコル
に則って動作するシステムに好適ではあるが、システム
内IDの制限を越えて接続される多数の装置間の情報の
伝送制御に広く適用可能である。
Although this embodiment is suitable for a system that operates in accordance with the SCSI protocol, it can be widely applied to control the transmission of information between a number of devices that are connected beyond the limit of the ID in the system. is there.

【0047】次に、本発明の他の実施例を説明する。図
6は、そのバス制御装置の構成と選択動作を説明する概
念図である。
Next, another embodiment of the present invention will be described. FIG. 6 is a conceptual diagram illustrating the configuration and selection operation of the bus control device.

【0048】本実施例では、ID管理テーブルをターゲ
ットポート番号毎に設けている。上述の実施例と同様
に、ターゲット論理IDはターゲットポート50に固定
的に対応し、イニシエータ論理IDは要求のあるイニシ
エータポート40に対し動的に割当られる。
In this embodiment, an ID management table is provided for each target port number. Similar to the above-described embodiment, the target logical ID fixedly corresponds to the target port 50, and the initiator logical ID is dynamically assigned to the requested initiator port 40.

【0049】いま、イニシエータ#22がターゲット論
理ID7を選択すると()、ターゲット論理ID7に
対応するターゲットポート#57のID管理テーブル6
27で管理しているイニシエータ論理ID(図ではID
=1)を割当、ポート番号と共に登録する()。さら
に、イニシエータ#23がターゲット論理ID6を選択
すると()、ターゲットポート#56のID管理テー
ブル626で管理しているイニシエータ論理ID(図で
はID=1)を割当る()。
Now, when the initiator # 22 selects the target logical ID7 (), the ID management table 6 of the target port # 57 corresponding to the target logical ID7.
Initiator logical ID managed by 27 (ID in the figure
= 1) is assigned and registered together with the port number (). Further, when the initiator # 23 selects the target logical ID 6 (), the initiator logical ID (ID = 1 in the figure) managed by the ID management table 626 of the target port # 56 is assigned ().

【0050】この結果、選択が並行的に行われた場合
に、同一のイニシエータ論理IDが複数のイニシエータ
ポートに割当られるが、これらのポートが同時にバス接
続されることはないので競合は生じない。
As a result, when selections are made in parallel, the same initiator logical ID is assigned to a plurality of initiator ports, but since these ports are not connected to the bus at the same time, no conflict occurs.

【0051】これによれば、イニシエータの論理IDを
見かけ上、全イニシエータ論理ID数×ターゲット側ポ
ート数に増加でき、選択、再選択動作が錯綜する場合に
効率良く処理できる。また、イニシエータからの複数の
コマンドを並列的に発行する場合にも、上記見かけ上の
論理IDだけのコマンドを取り扱うことができる。
According to this, the logical IDs of the initiators can be apparently increased to (total initiator logical ID number) × (target port number), and efficient processing can be performed when the selection and reselection operations are complicated. Further, even when a plurality of commands from the initiator are issued in parallel, it is possible to handle the command having only the apparent logical ID.

【0052】[0052]

【発明の効果】本発明によれば、使用可能なID数に制
限がある場合も、論理IDを利用するバス切替を介し
て、ID数以上の装置間での情報伝送が可能になり、特
にSCSI動作するシステムに適用してその構成を自由
に拡張できる効果がある。
According to the present invention, even when the number of usable IDs is limited, information can be transmitted between devices having the number of IDs or more through bus switching using logical IDs. There is an effect that the configuration can be freely expanded by applying it to a system that operates in SCSI.

【0053】さらに、SCSIの固定優先順位を解決で
き、ディスコネクト時の一時バスフリー等によってバス
を効率よく使用することができる。
Furthermore, the fixed priority of SCSI can be solved, and the bus can be used efficiently by temporarily freeing the bus during disconnection.

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

【図1】本発明のバス切替装置の一実施例を示す構成
図。
FIG. 1 is a configuration diagram showing an embodiment of a bus switching device of the present invention.

【図2】バス切替装置のポート回路の詳細を示す論理
図。
FIG. 2 is a logic diagram showing details of a port circuit of the bus switching device.

【図3】イニシエータの選択動作におけるIDの対応関
係と変換を説明する概念図。
FIG. 3 is a conceptual diagram illustrating ID correspondence and conversion in an initiator selection operation.

【図4】ターゲットの再選択動作におけるIDの対応関
係と変換を説明する概念図。
FIG. 4 is a conceptual diagram illustrating ID correspondence and conversion in a target reselection operation.

【図5】本発明の一実施例の動作を示すフローチャー
ト。
FIG. 5 is a flowchart showing the operation of the embodiment of the present invention.

【図6】本発明の他の実施例を示し、バス制御装置の構
成と選択動作を説明する概念図。
FIG. 6 is a conceptual diagram illustrating another embodiment of the present invention and illustrating the configuration and selection operation of the bus control device.

【図7】従来のSCSIの構成図。FIG. 7 is a block diagram of a conventional SCSI.

【符号の説明】[Explanation of symbols]

10…バス切替装置、20(21〜2n)…イニシエー
タ(入出力制御装置)、30(31〜37)…ターゲッ
ト(入出力装置)、40(41〜4n)…イニシエータ
側ポート回路、50(51〜57)…ターゲット側ポー
ト回路、60…ポート制御装置、70…アービトレーシ
ョン・セレクション監視信号、71…アービトレーショ
ン・リセレクション監視信号、80(81)…バス操作
信号、90(91)…バス開閉信号、100…内部バ
ス、200…イニシエータ側バスケーブル、300…タ
ーゲット側バスケーブル、620…ID管理テーブル。
10 ... Bus switching device, 20 (21-2n) ... Initiator (input / output control device), 30 (31-37) ... Target (input / output device), 40 (41-4n) ... Initiator side port circuit, 50 (51) ... 57) ... Target side port circuit, 60 ... Port control device, 70 ... Arbitration / selection monitoring signal, 71 ... Arbitration / reselection monitoring signal, 80 (81) ... Bus operation signal, 90 (91) ... Bus opening / closing signal, 100 ... Internal bus, 200 ... Initiator side bus cable, 300 ... Target side bus cable, 620 ... ID management table.

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 イニシエータ側のポートに接続されてい
る複数の装置(イニシエータ)とターゲット側のポート
に接続されている1または複数の装置(ターゲット)間
で、交信相手と動的にバス接続して情報を伝送する際
に、送信元及び送信先を示す装置の識別子(ID)にし
たがってバス接続を制御するバス切替方法において、 予め各装置に共通の物理IDと、各ターゲット側ポート
に固定のターゲット論理IDが付与されている場合に、
イニシエータからのターゲット論理IDを含むコマンド
の選択動作に応じて当該イニシエータ側ポートにイニシ
エータ論理IDを動的に付与し、これらの物理IDと論
理IDの間で所定のID変換を行って送信先ターゲット
の選択を行い、送信元と送信先の装置間をバス接続する
ことを特徴とするバス切替方法。
1. A bus is dynamically connected to a communication partner between a plurality of devices (initiators) connected to a port on the initiator side and one or a plurality of devices (targets) connected to a port on the target side. In a bus switching method for controlling bus connection according to an identifier (ID) of a device indicating a transmission source and a transmission destination when transmitting information by using a physical ID common to each device and a fixed port for each target side port in advance. If the target logical ID is given,
The initiator logical ID is dynamically given to the port on the initiator side according to the selection operation of the command including the target logical ID from the initiator, and a predetermined ID conversion is performed between these physical ID and logical ID to make the destination target. The bus switching method is characterized in that a bus connection is made between the transmission source device and the transmission destination device.
【請求項2】 イニシエータ側のポートに接続されてい
る複数の装置(イニシエータ)とターゲット側のポート
に接続されている1または複数の装置(ターゲット)の
間で、交信相手を動的にバス接続して情報を伝送する際
に、情報の送信元及び送信先の装置に付与されている識
別子(ID)にしたがってバス接続を変更するバス切替
方法において、 利用可能な識別子(ID)の最大数がnの場合に、その
内の1個を各装置に共通の物理IDとし、残るn−1個
の識別子の一部または全部をターゲット側のポートに固
定的に付与すると共に、前記n−1個の識別子をイニシ
エータ側の論理IDとしてイニシエータの選択動作に応
じて動的に付与し、これらの物理IDと論理IDの間で
所定のID変換を行って送信先ターゲットの選択を行
い、送信元と送信先の装置間をバス接続することを特徴
とするバス切替方法。
2. A communication partner is dynamically connected to a bus between a plurality of devices (initiators) connected to a port on the initiator side and one or a plurality of devices (target) connected to a port on the target side. In the bus switching method in which the bus connection is changed according to the identifiers (IDs) given to the source and destination devices of information when transmitting information, the maximum number of identifiers (IDs) that can be used is In the case of n, one of them is used as a physical ID common to each device, and a part or all of the remaining n-1 identifiers are fixedly assigned to the target side port, and the n-1 Is dynamically assigned as an initiator-side logical ID in accordance with the initiator's selection operation, and a predetermined target is converted between these physical IDs and logical IDs to select a destination target, Bus switching method characterized by between Xinyuan and destination device for bus connection.
【請求項3】 請求項1または2において、 前記選択動作は、前回バス接続を実行した次のポートか
ら所定順に監視することを特徴とするバス切替方法。
3. The bus switching method according to claim 1, wherein the selection operation is to monitor from a port next to a bus connection that was executed last time in a predetermined order.
【請求項4】 請求項1、2または3において、 前記所定のID変換は、イニシエータの選択動作のコマ
ンドに含まれる送信元の物理IDと送信先のターゲット
論理IDを、前記動的に割当られた論理IDと前記物理
IDにそれぞれ変換することを特徴とするバス切替方
法。
4. The predetermined ID conversion according to claim 1, 2 or 3, wherein the physical ID of a transmission source and the target logical ID of a transmission destination, which are included in a command of an initiator selection operation, are dynamically assigned. And a logical ID and the physical ID are respectively converted.
【請求項5】 請求項4において、 前記所定のID変換は、ターゲットの再選択動作のコマ
ンドに含まれる送信元の物理IDと送信先のイニシエー
タ論理IDであって前記動的に割当られた論理IDを、
前記ターゲット論理IDと前記物理IDにそれぞれ変換
することを特徴とするバス切替方法。
5. The predetermined ID conversion according to claim 4, wherein the predetermined physical ID conversion is a physical ID of a transmission source and an initiator logical ID of a transmission destination which are included in a command for a target reselection operation. ID
A bus switching method, characterized in that the target logical ID and the physical ID are respectively converted.
【請求項6】 請求項1、2、3、4または5におい
て、 前記イニシエータ側に割当られた論理IDは、該当する
イニシエータ側ポート番号及びターゲット側の論理ID
と対応して登録され、ターゲット側からの応答時のID
変換に参照されることを特徴とするバス切替方法。
6. The logical ID assigned to the initiator side according to claim 1, 2, 3, 4, or 5, wherein the initiator-side port number and the target-side logical ID are applicable.
Corresponding ID is registered when responding from the target side
A bus switching method characterized by being referred to for conversion.
【請求項7】 請求項6において、 前記登録は、当該送信元と送信先の情報伝送が正常に終
了し、バスが切離しされた後に消去されることを特徴と
するバス切替方法。
7. The bus switching method according to claim 6, wherein the registration is erased after information transmission between the transmission source and the transmission destination is normally completed and the bus is disconnected.
【請求項8】 請求項6または7において、 前記登録は、当該送信元と送信先が情報伝送が正常に終
了しなかった場合には保持されることを特徴とするバス
切替方法。
8. The bus switching method according to claim 6, wherein the registration is held when the transmission source and the transmission destination do not normally complete the information transmission.
【請求項9】 請求項6、7または8において、 前記バス接続が行われた後に、データ送信のディスコネ
ネクトが検出される場合には、前記登録を保持したまま
前記バス接続を切り離すことを特徴とするバス切替方
法。
9. The bus connection according to claim 6, 7 or 8, wherein when the disconnection of data transmission is detected after the bus connection is made, the bus connection is disconnected while holding the registration. How to change the bus.
【請求項10】 請求項1、2、3、4、5、6、7、
8または9において、 前記バス切替方法は、SCSIのプロトコルに則って行
われることを特徴とするバス切替方法。
10. The method according to claim 1, 2, 3, 4, 5, 6, 7,
8 or 9, wherein the bus switching method is performed according to a SCSI protocol.
【請求項11】 複数の装置(イニシエータ)を接続す
るイニシエータ側の各ポートと、1または複数の装置
(ターゲット)を接続するターゲット側の各ポートと、
交信相手のポート間を接続するバスを備え、送信元及び
送信先を示す装置の識別子(ID)にしたがってバス接
続を切替るバス切替装置において、 装置毎のバスを接続するポート端子と、装置の信号から
選択動作を検出する選択動作検出部と、ポート端子と内
部バスを接続/切離する切替部を有し、各ポートに設け
られるポート回路と、 各装置に共通の物理ID、各ターゲット側ポートに固定
のターゲット論理IDを予め付与すると共に、各イニシ
エータの選択動作に応じて該当するポートにイニシエー
タ論理IDを動的に付与し、これらIDの対応関係を登
録するID管理機能と、前記IDの対応関係にしたがっ
て前記送信元と送信先の応答コマンドに含まれるIDを
応答可能に変換するID変換機能と、前記送信元のポー
ト回路と前記ID変換により選択された送信先のポート
回路の切替部に接続信号/切離し信号を出力するバス制
御機能を有するポート回路制御手段と、を備えることを
特徴とするバス切替装置。
11. Each port on the initiator side for connecting a plurality of devices (initiators) and each port on the target side for connecting one or a plurality of devices (targets),
In a bus switching device that has a bus connecting between ports of a communication partner and switches the bus connection according to an identifier (ID) of a device indicating a transmission source and a transmission destination, a port terminal for connecting a bus for each device and a device A selection operation detection unit that detects a selection operation from a signal, a switching unit that connects / disconnects a port terminal and an internal bus, a port circuit provided for each port, a physical ID common to each device, each target side A fixed target logical ID is given to the port in advance, and an initiator logical ID is dynamically given to the corresponding port according to the selection operation of each initiator, and an ID management function for registering the correspondence relationship between these IDs, and the ID An ID conversion function for converting the IDs included in the response commands of the transmission source and the transmission destination into a response according to the correspondence relationship between the transmission source and the transmission destination; Bus switching device characterized by and a port circuit control means having a bus control function of outputting a connection signal / disconnection signal to the switching portion of the port circuit of the selected destination D converter.
【請求項12】 複数の装置(イニシエータ)を接続す
るイニシエータ側の各ポートと、1または複数の装置
(ターゲット)を接続するターゲット側の各ポートと、
情報を伝送するポート間を接続するバスを備え、送信元
及び送信先を示す装置の識別子(ID)にしたがってバ
ス接続を切替るバス切替装置において、装置に付与でき
る識別子(ID)の最大数がnの場合に、その内の1個
を各装置に共通の物理IDとし、残るn−1個の識別子
をターゲット側のポートに固定的に付与すると共に、イ
ニシエータ側の論理IDとして各イニシエータの選択動
作に応じて動的に付与し、これらIDの対応関係を登録
するID管理手段と、前記IDの対応関係にしたがって
前記送信元と送信先の応答コマンドに含まれるIDを応
答可能に変換するID変換手段と、前記IDの対応関係
から定まる送信元と送信先に対応するポート間を内部バ
スを介して接続/切離しするバス切替手段を備えること
を特徴とするバス切替装置。
12. An initiator-side port for connecting a plurality of devices (initiators), and a target-side port for connecting one or a plurality of devices (targets),
In a bus switching device that includes a bus that connects ports for transmitting information and that switches a bus connection according to an identifier (ID) of a device that indicates a transmission source and a transmission destination, the maximum number of identifiers (ID) that can be given to the device is In the case of n, one of them is used as a physical ID common to each device, the remaining n-1 identifiers are fixedly assigned to the target side port, and each initiator is selected as a logical ID on the initiator side. ID management means that dynamically assigns the IDs according to the operation and registers the correspondence relationship between these IDs, and an ID that converts the IDs included in the response commands of the sender and the destination according to the ID correspondences so that the IDs can be responded. A bus comprising: a conversion unit; and a bus switching unit that connects / disconnects a port corresponding to a transmission source and a transmission destination determined from the correspondence relationship of the IDs via an internal bus. Changing apparatus.
【請求項13】 請求項12において、 前記イニシエータ側のポート数はn個以上で、IDの最
大数を越える装置間の情報伝送を可能にすることを特徴
とするバス切替装置。
13. The bus switching device according to claim 12, wherein the number of ports on the initiator side is n or more, and information transmission between devices exceeding the maximum number of IDs is possible.
【請求項14】 請求項12または13において、 前記選択動作、接続/切離及び情報伝送はSCSIプロ
トコルに則って行われることを特徴とするバス切替装
置。
14. The bus switching device according to claim 12, wherein the selection operation, connection / disconnection, and information transmission are performed according to a SCSI protocol.
【請求項15】 互いに異なる識別子を有する複数の入
出力制御装置(イニシエータ)と複数の入出力装置(タ
ーゲット)を同一バスに接続し、前記入出力制御装置が
バス獲得後、前記識別子により入出力装置を選択して入
出力動作を行い、入出力動作がディスコネクト時は一時
的にバスを解放し、しかる後に該入出力装置から前記入
出力制御装置の再選択を行った後、入出力動作を再開す
るプロトコルによりデータ転送を行う情報伝送システム
において、 複数の入出力制御装置と複数の入出力装置の間に、バス
獲得動作を開始した前記入出力制御装置または前記入出
力装置の中から1台を選択し、該入出力制御装置または
該入出力装置と情報送信先である入出力装置または入出
力制御装置との間のバスを接続する機能を持つバス切替
装置を接続し、 前記バス切替装置は、選択した入出力制御装置に対し
て、前記入出力制御装置にあらかじめ設定された識別
子、及び、前記入出力装置にあらかじめ設定した識別子
とは異なる識別子を論理識別子として一時的に割当る手
段と、割当た論理識別子と前記入出力制御装置の対応を
記憶する手段と、入出力装置の選択時には前記入出力制
御装置にあらかじめ設定された識別子を前記論理識別子
に変換して該入出力装置に伝達する手段と、前記入出力
装置が前記入出力制御装置を再選択する際には、バス上
から読みとった再選択すべき入出力制御装置の識別子を
論理識別子として扱い、前記論理識別子と入出力制御装
置の対応を記憶する手段を用いて、前記入出力制御装置
にあらかじめ設定された識別子を見つけだし、再選択先
の入出力制御装置に伝達する手段と、バスから入出力動
作を監視して入出力動作の完了を判断し、該論理識別子
を解放する手段を有することを特徴とするバス切替装
置。
15. A plurality of input / output control devices (initiators) and a plurality of input / output devices (targets) having different identifiers are connected to the same bus, and after the input / output control device acquires the bus, input / output is performed by the identifiers. I / O operation is performed by selecting a device and performing a I / O operation, temporarily releasing the bus when the I / O operation is disconnected, and then reselecting the I / O control device from the I / O device. In an information transmission system that transfers data according to a protocol for restarting the communication, between the plurality of input / output control devices and the plurality of input / output devices, one of the input / output control device or the input / output device that started the bus acquisition operation A bus switching device having a function of selecting a stand and connecting a bus between the input / output control device or the input / output device and the input / output device or the input / output control device that is the information transmission destination. Continuing, the bus switching device, for the selected input / output control device, an identifier preset in the input / output control device, and an identifier different from the preset identifier in the input / output device as a logical identifier. Means for temporarily assigning, means for storing the correspondence between the assigned logical identifier and the input / output control device, and converting the identifier preset in the input / output control device to the logical identifier when selecting the input / output device. Means for transmitting to the input / output device, and when the input / output device reselects the input / output controller, the identifier of the input / output controller to be reselected read from the bus is treated as a logical identifier, The means for storing the correspondence between the logical identifier and the input / output control device is used to find an identifier preset in the input / output control device, and the input / output control of the reselection destination is performed. And means for transmitting the location, to determine for the completion of the operation to monitor the input and output operations from the bus, the bus switching device, characterized in that it comprises a means for releasing the logical identifier.
【請求項16】 請求項15のバス切替装置において、 入出力の多重動作等により、使用可能な論理識別子を全
て入出力制御装置に割り当てた場合には、いずれかの入
出力動作が終了し少なくとも1個以上の論理識別子が解
放されるまでの間は、入出力制御装置のバス獲得動作を
抑え、入出力装置が入出力制御装置を再選択する動作を
監視する手段を追加を有することを特徴とするバス切替
装置。
16. The bus switching device according to claim 15, wherein when all usable logical identifiers are assigned to the input / output control device due to input / output multiplex operation or the like, at least one input / output operation is terminated. The method further comprises means for suppressing the bus acquisition operation of the I / O controller until the one or more logical identifiers are released and monitoring the operation of the I / O device reselecting the I / O controller. Bus switching device.
【請求項17】 請求項15バス切替装置において、 前記入出力制御装置を接続する複数のポートを有し、前
記入出力制御装置が選択動作を始めたときに割当た論理
識別子と前記入出力制御装置の対応を該入出力制御装置
の接続ポート毎に記憶する手段と、前記入出力装置が前
記入出力制御装置を再選択する際には、バス上から読み
とった再選択すべき入出力制御装置の識別子を論理識別
子として扱い、前記論理識別子と入出力制御装置の対応
を記憶する手段を用いて、前記入出力制御装置にあらか
じめ設定された識別子と前記入出力制御装置が接続され
ているポートを見つけだし、再選択先の入出力制御装置
に伝達する手段を設けたことを特徴とするバス切替装
置。
17. The bus switching device according to claim 15, further comprising a plurality of ports for connecting the input / output control device, the logical identifier assigned when the input / output control device starts a selection operation, and the input / output control. Means for storing device correspondence for each connection port of the input / output control device, and an input / output control device read from the bus when the input / output device reselects the input / output control device Is treated as a logical identifier, and a means for storing the correspondence between the logical identifier and the input / output control device is used to identify an identifier preset in the input / output control device and a port to which the input / output control device is connected. A bus switching device, which is provided with means for transmitting it to an input / output control device of a reselection destination.
【請求項18】 請求項15バス切替装置において、 入出力装置を接続するポートを使用可能な識別子数には
満たない数だけ有し、前記ポートに接続された入出力装
置を選択した入出力制御装置にあらかじめ設定された識
別子とは別に、前記入出力装置に設定した識別子と異な
る識別子を論理識別子として一時的に割当る手段と、割
当た論理識別子と前記入出力制御装置の対応を記憶する
手段を、前記ポート毎に有することを特徴とするバス切
替装置。
18. The bus switching device according to claim 15, wherein an input / output control is provided in which the number of ports for connecting the input / output devices is less than the number of usable identifiers, and the input / output device connected to the port is selected. Means for temporarily assigning, as a logical identifier, an identifier different from the one set for the input / output device in addition to the identifier preset for the device, and means for storing the correspondence between the assigned logical identifier and the input / output control device A bus switching device comprising:
JP22634194A 1994-09-21 1994-09-21 Bus switching method and bus switching device Pending JPH0895901A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22634194A JPH0895901A (en) 1994-09-21 1994-09-21 Bus switching method and bus switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22634194A JPH0895901A (en) 1994-09-21 1994-09-21 Bus switching method and bus switching device

Publications (1)

Publication Number Publication Date
JPH0895901A true JPH0895901A (en) 1996-04-12

Family

ID=16843656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22634194A Pending JPH0895901A (en) 1994-09-21 1994-09-21 Bus switching method and bus switching device

Country Status (1)

Country Link
JP (1) JPH0895901A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1253519A1 (en) 2001-04-23 2002-10-30 Hewlett-Packard Company A computer, a method of connecting devices to data bus controllers, a method of allocating the bandwidth of a plurality of data bus controllers and apparatus therefor
US7584070B2 (en) 2004-07-07 2009-09-01 Hitachi Global Storage Technologies Netherlands B.V. Testing/adjusting method and test control apparatus for rotating disk storage devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1253519A1 (en) 2001-04-23 2002-10-30 Hewlett-Packard Company A computer, a method of connecting devices to data bus controllers, a method of allocating the bandwidth of a plurality of data bus controllers and apparatus therefor
US6978341B2 (en) 2001-04-23 2005-12-20 Hewlett-Packard Development Company, L.P. Computer, a method of connecting devices to data bus controllers, a method of allocating the bandwidth of a plurality of data bus controllers and apparatus therefor
US7584070B2 (en) 2004-07-07 2009-09-01 Hitachi Global Storage Technologies Netherlands B.V. Testing/adjusting method and test control apparatus for rotating disk storage devices

Similar Documents

Publication Publication Date Title
JPH08265360A (en) Method and equipment for establishing and maintaining operation mode
JP2001189974A (en) Network operation method between Bluetooth equipped devices
US6449289B1 (en) Multi-processor bus protocol system
JPH0283757A (en) Communication control system
EP0230549A2 (en) Linear-space signalling for a circuit-switched network
JP2633900B2 (en) Common bus control method
US6657973B1 (en) Communications node, network system and method of controlling network system
JP2001282701A (en) Device and method for processing information
JPH08328991A (en) Interface device
JPH10308791A (en) Data communication method, data communication device, and data communication program recording medium
JPH0895901A (en) Bus switching method and bus switching device
US5987558A (en) Method and apparatus for resolving over lapping selection and reselection operations of SCSI bus protocols
JP3796415B2 (en) Media converter, failure detection system, and failure detection method
JP2809164B2 (en) Two-way data communication system
JPH04156655A (en) Communication system between processors
JP3140798B2 (en) Communication traffic control method between processors
JP2003037600A (en) Media converter with test manager, fault detection method, and system using the converter and method
JP2522847B2 (en) Programmable controller system
JPH089792Y2 (en) SCSI adapter circuit for host-to-host communication
JP3173959B2 (en) Local area network device
JPS61139868A (en) Broadcast bus control system
JPH10327176A (en) Multiplexed LAN switching method and system
JPH09130874A (en) Communication control device
JP2524601B2 (en) Communication control device
CN119544669A (en) A method for automatically assigning slave addresses based on resistor voltage drop