Notification and verification of state changes in a data processing input/output system

Abstract: A computer I/O system which includes a dynamic switch (10) having a plurality of ports (P) and a plurality of link-level facilities, with each link-level facility being attached to an individual one of the ports (P). Whenever the state of a port (P) or its attached link-level facility is changed in such a way that the attached link-level facility's ability to communicate with another link-level facility might be affected, this fact is recognized by a dynamic switch control unit (20) which causes a state change notification (SCN) frame to be transmitted to all other link-level facilities which might be affected. The link-level facilities receiving such a state change notification then determine if any of the associations or potential associations with the link-level facility which caused the state change notification are affected.

Description: Background of the Invention The present invention is related to a data processing system having input/output channels, control units each for controlling peripheral devices, and a dynamic switch between the channels and the control units, and is more particularly related to reporting state changes through the dynamic switch from particular ones of the control units to the channels or from particular ones of the channels to the control units. Various switches such as cross-point switches are known for establishing connections between data lines. Such switches are useful in establishing point-to-point connections between an input/output (I/O) channel of a data processing system and an I/O peripheral device or control unit. Georgiou, Parallel Interface Switching Mechanism, pp 4690-4692, IBM Technical Disclosure Bulletin, Vol. 27, No. 8, January, 1985, discloses utilizing high-speed cross-point switching chips in multiple parallel interface switching mechanisms. A controller is referred to but not shown which is used to set up connections on the switching chips in order to establish paths between channels and control units. U. S. Patent No. 4,074,142 to Jackson for Optical Cross-Point Switch issued February 14, 1978 and discloses an optical cross-point switch for connecting any of a multiplicity of input signals to any of a multiplicity of output lines. Electrical signals are converted to optical signals by light emitting diodes. The light from each light emitting diode is focused on photosensor means to convert the optical signals back to electrical signals. An input and output address decoding circuit selects one light emitting diode to be coupled to one photosensor to make a switch connection. The address information is transmitted to the optical switch via an address bus. U. S. Patent No. 4,562,533 to Hodel et al. for Data Communications System to System Adapter issued December 31, 1985 and discloses a data processing system having a dynamic channel exchange and a plurality of central systems. Each of the central systems has at least one serial channel control processor. The dynamic channel exchange provides switching logic for permitting each of the plurality of central systems access to a plurality of peripherals coupled to the dynamic channel exchange. The data processing system further includes an adapter which is connected to the dynamic channel exchange for providing communications between any pair of central systems. U. S. Patent No. 4,605,928 to Georgiou for Fault-Tolerant Array of Cross-Point Switching Matrices issued August 12, 1986 and discloses a cross-point switch in which it is possible to have bi-directional operation for allowing data flow in both directions. U. S. Patent No. 4,630,045 to Georgiou for Controller for a Cross-Point Switching Matrix issued December 16, 1986 and discloses a switching matrix controller which interprets a request for connection or disconnection, determines if it is possible, selects a path through the matrix and sends control signals to the matrix to make the connection or disconnection. The status of the switching array is checked when making the connection or disconnection. U. S. Patent No. 4,635,250 to Georgiou for Full-Duplex One-Sided Cross-Point Switch issued January 6, 1987 and discloses a one-sided cross-point switching chip which may be operated in a full duplex mode wherein the direction of information flow or electrical signals on the internal vertical lines or the interconnection lines can be in different directions, depending upon which external lines are to be interconnected. U. S. Patent No. 4,641,302 to Miller for High Speed Packet Switching Arrangement issued February 3, 1987 and discloses a circuit arrangement for switching serial data packets through a network to one of a plurality of possible outgoing lines. The incoming serial data is in packets wherein each packet includes a header portion containing an address indicative of which one of a plurality of outgoing lines the data packet should be routed to. U. S. Patent No. 4,692,917 to Fujioka for Packet Switching System issued September 8, 1987 and discloses a packet switching system having a packet handler for analyzing a header of each incoming packet and deciding the outgoing route of the packet. The packet also includes a packet closing flag which causes the packet handler to release the connection. U. S. Patent No. 4,703,487 to Haselton et al. for Burst-Switching Method for an Integrated Communications System issued October 27, 1987 and U. S. Patent No. 4,771,419 to Graves et al. for Method of and Switch for Switching Information issued September 13, 1988. Both of these patents disclose switching networks for switching data wherein a header contains an address for making a connection and a termination character or characters for breaking the connection. Systems are known in which the status of one element is sent to a remote location. U. S. Patent No. 4,225,918 to Beadle et al for "System for Entering Information Into and Taking it From a Computer From a Remote Location" issued September 30, 1980 and discloses a system for transmitting binary instruction or data words to or from a computer by control from a home base remote from the computer site. The system includes a special purpose microcomputer directly connected to the main computer console which returns to the home base a rapidly integrated and updated pulse train representative of the status of all console lights. U. S. Patent No. 4,257,100 to Syrbe et al for "Electronic Data Processing System for Real Time Data Processing" issued March 17, 1981 and discloses an electronic data processing system having a ring bus. In the case of a fault, the operability of all bus line segments, each of which connects two neighboring stations, is tested by means of test messages. The bus line status is determined and reported to all stations still connected together. U. S. Patent No. 4,490,785 to Strecker et al for "Dual Path Bus Structure for Computer Interconnection" issued December 25, 1984 and discloses a bus structure for use in a computer network wherein each host device in the network connects to the bus paths through a port. Path selection is carried out by the port which, when a path failure is detected, automatically switches to an alternate good path upon detection of the failure, all without host involvement. U. S. Patent No. 4,494,241 to Mayoux for "Installation For the Transmission of Information by an Optical Bus Line" issued January 15, 1985 and discloses a bus line installation for the transmission of information between a plurality of transmitters and a plurality of receivers. U. S. Patent No. 4,551,718 to Cookson et al for "Method and Apparatus for Transmitting Status Information Between Remote Locations" issued November 5, 1985 and discloses a system for transmitting status information from a first location to a remote second location and includes a monitoring device at the first location for monitoring the state of a plurality of relays or other devices that are capable of being in either an active or inactive state. A processor produces a first signal indicative of a change of state of any relay from the inactive to the active state. U. S. Patent No. 4,654,784 to Campanini for "Circuit Arrangement for Routing Signals Between a Master-Slave Pair of Controlling Processors and Several Master-Slave Pairs of Controlled Processing Units" issued March 31, 1987 and discloses a plurality of switching modules in a telecommunication system wherein the switch modules switch to alternate links in the event of a malfunction. In M. I. Lilie: "Computer Controlled I/O Switch", IBM Technical Disclosure Bulletin, Vol. 15, No. 6, November 1972, page 1814 and 1815, a computer controlled I/O switch is described which enables several computer systems to access and share files at the device level. For performing the switching functions, there is employed a combined capability of a small computer sensor based system and a cross-point switch which may suitably be of the solid-state type. In the operation of the described arrangement, the computer maintains a state table of each device with respect to each channel which is capable of accessing it. Summary of the Invention The present invention as set forth in independent claims 1 and 17 is use in conjunction with a computer I/O system which includes a dynamic switch having a plurality of ports and a plurality of link-level facilities, with each link-level facility being attached to an individual one of the ports. Whenever the state of a port or its attached link-level facility is changed in such a way that the attached link-level facility's ability to communicate with another link-level facility might be affected, this fact is recognized by a dynamic-switch control unit which causes a state change notification (SCN) frame to be transmitted to all of the other link-level facilities which might be affected. The link-level facilities receiving such a state change notification then determine if any of the associations or potential associations with the link-level facility which caused the state change notification are affected. It is therefore a primary object of the present invention to provide a means for making state change notifications to each link-level facility which might be affected by a change in state in a computer I/O system. It is another object of the present invention to provide a dynamic-switch control unit in which a state change notification initiative is created by a change in state or a change in connectability of a link-level facility in a computer I/O system. It is a further object of the present invention to provide a state change notification mechanism which provides for a state change notice being sent on behalf of a specific link-level facility in the event of: 1. a state change notice being received with a to-whom-it-may-concern destination address from that specific link-level facility; 2. the specific link-level facility has requested that it be assigned a link address during initialization time; 3. the port to which that specific link-level facility is attached has entered the link failure, off-line, or static state at a time when that link-level facility was identified by its own link address; and 4. The capability of making dynamic connections between two dynamic-switch ports, one of which is connected to that specific link-level facility, is altered. The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular description of the preferred embodiment of the invention as illustrated in the drawings. Brief Description of the Drawings Fig. 1 is a block diagram of an I/O system having channels connected to control units through a dynamic switch; Fig. 2 is a diagrammatic representation of a frame sent over the I/O system of Fig. 1; Fig. 3 is a diagrammatic representation of a link header of the frame of Fig. 2; Fig. 4 is a diagrammatic representation of a link trailer of the frame of Fig. 2; Fig. 5 is a diagrammatic representation of an acknowledge frame sent over the I/O system of Fig. 1; Fig. 6 is a block diagram of a dynamic switch and a dynamic-switch control unit, wherein the dynamic switch has ports, a matrix, and a matrix controller; Figs. 7a and 7b, joined along line a-a, form a block diagram of the matrix controller of Fig. 6; Fig. 8 is a block diagram of the I/O system of Fig. 1 wherein each channel and control unit has an attachment table, and the dynamic-switch control unit has a connection table; and Fig. 9 is a flow chart for a routine to determine link-level facility connections in response to the receipt of a state change notification frame. Description of the Preferred Embodiment Fig. 1 is a block diagram of the I/O system of a data processing system for making dynamic connections between the channel subsystem of the data processing system and control units. The I/O system includes a dynamic switch 10 having a plurality of ports P, each port P attached to one end of a plurality of links 12-18. One of the links 18 is attached to a dynamic-switch control unit 20, and each of the other links 12-17 is attached to either a channel, such as channel A designated 22 or channel B designated 24, or to one of the control units 26-29. Each of the control units 26-29 control a plurality 30-33 of peripheral devices D, respectively. Each of the channels 22 and 24 is a single interface on a channel subsystem, such as, for instance, a System/370, 370-XA or ESA/370 channel subsystem. The channels 22 and 24 direct the transfer of information between I/O devices of the pluralities 30-33 of devices D and main storage (not shown) of the data processing system and provide the common controls for the attachment of different I/O devices D by means of a channel path (to be defined). The channels 22 and 24 are channels wherein data is transmitted and received in a format, as will be explained. Each of the links 12-17 is a point-to-point pair of conductors that may physically interconnect a control unit 26-29 and a channel 22, 24, a channel 22, 24 and a dynamic switch 10 (such as links 12 and 13), a control unit 26-29 and a dynamic switch 10 (such as links 14-17), or, in some cases, a dynamic switch 10 and another dynamic switch 10. The two conductors of a link provide a simultaneous two-way communication path, one conductor for transmitting information and the other conductor for receiving information. When a link attaches to a channel 22, 24 or a control unit 26-29, it is said to be attached to the I/O interface of that channel 22, 24 or control unit 26-29. When a link is attached to a dynamic switch 10, it is said to be attached to a port P on that dynamic switch 10. When the dynamic switch 10 makes a connection between two dynamic switch ports, the link attached to one port P is considered physically connected to the link attached to the other port P, and the equivalent of one continuous link is produced for the duration of the connection. The dynamic switch 10 provides the capability to physically interconnect any two links that are attached to it. The link attachment point on the dynamic switch 10 is the dynamic switch port P. Only two dynamic switch ports P may be interconnected in a single connection, but multiple physical connections may exist simultaneously within the same dynamic switch. The dynamic switch 10 may be constructed as disclosed in the aforementioned U. S. Patents 4,605,928; 4,630,045; and 4,635,250, incorporated by reference herein. In one preferred embodiment, the dynamic switch 10 is a double sided switch, that is a two-sided cross-point switch, as described in the background of the aforementioned U. S. Patent No. 4,635,250. The interconnection of two dynamic-switch ports P established by the dynamic switch 10 does not affect the existing interconnection of any other pair of dynamic switch ports, nor does it affect the ability of the dynamic switch to remove those connections. When a connection is established, two dynamic switch ports P and their respective point-to-point links are interconnected by a switch matrix within the dynamic switch 10, as explained in the aforementioned switch patents, such that the two links are treated and appear as one continuous link for the duration of the connection. When frames are received by one of two connected switch ports P, the frames are normally passed from one port to the other for transmission on the other port's link. The dynamic switch 10 can form a connection between two ports P in one of two ways: dynamic or static. The connection is termed a dynamic connection or static connection, accordingly. The dynamic switch 10 can establish or remove a dynamic connection between two ports P based on the information provided by certain frame delimiters in the serial frames transmitted over the links and based on conditions present at each of these ports P as disclosed in copending patent application EP 90 115 515.0 filed 13 August 1990, entitled "Switch and Its Protocol for Making Dynamic Connections". The dynamic switch can establish or remove a static connection between two ports P as a result of commands received by means of the local or remote facilities of the dynamic switch control unit 20. Frame delimiters or other sequences received at the port P have no effect on the static connection. When a static connection exists between two ports P, the ports are said to be in the static state. The static state is not affected by any information received from the link or from the statically connected port. If a sequence (to be explained) is received by one of two statically connected ports, the received sequence is normally retransmitted on the connected port's link. Frames may be received and transmitted simultaneously by statically connected ports. In one embodiment, the dynamic switch 10 may have a maximum of 254 ports P. Since it takes two ports to make a connection, the maximum number of possible simultaneous connections is equal to half the number of ports P implemented. It will be understood that if the quantity of ports P is an odd number, then the maximum is half of the maximum number of ports P less one. A port P does not have a link address and, therefore, is not uniquely addressable. However, an association between a port P and either a destination link address or a source link address is provided by the dynamic switch, as will be explained. The dynamic switch 10 has a matrix controller 156, discussed herein in connection with Fig. 6, which contains the information used to make and break connections between the ports P. The dynamic switch 10 has one dynamic switch control unit 20, which is assigned the unique link address of its link 18. The dynamic switch control unit 20 is connected to the dynamic switch 10 as though it were attached to the dynamic switch by means of a port P and is available for dynamic connections like any other control unit attached to the dynamic switch 10. Through facilities provided by the dynamic switch control unit 20, changes can be made to information in the matrix controller 156 (to be explained) of the dynamic switch 10 concerning an individual port P which alters the ability of that port to be dynamically connected with another port. As previously mentioned, information is transferred on the serial-I/O interface in a frame. A frame is a unit of information that is sent or received according to a prescribed format. This format delineates the start and end of the unit of information and prescribes the placement of the information within these boundaries. Fig. 2 shows the basic format of a frame 38 which consists of a fixed-length link-header field 40, a variable-length information field 42, and a fixed-length link-trailer field 44. Communications using the switch are governed by link-level protocols which provide for making the connection through the dynamic switch 10 and for other control functions. Each channel 22, 24 and each control unit 26-29 contains a link-level facility, which is the embodiment of the link protocols. Each link-level facility is assigned a unique address, called the link address. The assignment of a link address to a link-level facility occurs when the link-level facility performs initialization. Every frame sent through the switch contains link-level addressing which identifies the source and destination of the frame. Specifically, this addressing information consists of the link addresses of the sending link-level facility (source link address) and receiving link-level facility (destination link address). The switch uses this addressing information in order to make a connection from the port receiving the frame to the correct port for sending the frame to the specified destination. The dynamic switch control unit 20 has a link address assigned to it for the purpose of communicating with the channels 22, 24 and control units 26-29 attached to the switch. With the configuration of Fig. 1, contention created by two or more switch ports P receiving a frame requiring a dynamic connection to the same switch port P and its respective link is resolved by the facilities within the dynamic switch based on the conditions present. This contention is resolved, independent of whether a channel 22, 24 or control unit 26-29 is attached to the link from each port P involved. When the contention is resolved, only one of the contending ports P becomes dynamically connected to the required port P, while the other contending ports P indicate on their respective links that a destination port-busy condition exists at the dynamic switch 10. If the desired connection cannot be made, the dynamic switch 10 returns a link-control response frame containing a reason code giving the reason why the connection was not made. For example, when a switch port P receives a frame that requires a dynamic connection to a port P that already has a dynamic connection with another port P, the dynamic switch 10 sends a link-control frame response (referred to herein as a response frame) called a port-busy frame, including a response code which indicates that the intended destination port is busy. Similarly, when a switch port P receives a frame that requires a dynamic connection to another port P, and the destination link address in that frame is not defined to the dynamic switch 10, the dynamic switch 10 sends a link control frame response called a port-reject frame, including a reason code which indicates that the frame contains an undefined destination address. Fig. 3 shows the link header field 40, and Fig. 4 shows the link trailer field 44. Every frame 38 is bounded by a start-of-frame (SOF) delimiter 46 which is found in the link header 40, and an end-of-frame (EOF) delimiter 48, which is found in the link trailer 44. Frame delimiters 46 and 48 are composed of combinations of special transmission characters which do not have equivalent eight-bit data codes. In the preferred embodiment, the transmission codes used are those disclosed in U. S. Patent No. 4,486,739 issued December 4, 1984 to Franaszek et al. for Byte Oriented DC Balanced (0.4) 8B/10B Partitioned Block Transmission Code, assigned by the assignee of the present invention and incorporated herein by reference. The information contained between the frame delimiters 46 and 48 consist of data characters which have equivalent eight-bit codes as explained in the aforementioned Franaszek et al. patent. In addition to the SOF 46, the link header 40 of Fig. 3 includes a destination-address field 50, a source-address field 52, and a link-control field 54. As previously mentioned, the SOF 46 is a special string of transmission characters that cannot appear in the contents of an error-free frame. There are two types of SOF delimiters, the connect-SOF (CSOF) delimiter, which is used as an initiate connection control to initiate the making of a dynamic connection, and passive-SOF (PSOF) delimiter, which causes no action with respect to making a dynamic connection. The destination-address field 50 is the first field of the contents of a frame and immediately follows the SOF delimiter 46. The destination-address field 50 identifies the link-level facility of a channel or control unit that is the destination for the frame, and is used to route the frame to the link-level facility that is the intended receiver. The destination link address 50 is used to determine which physical connection is to be made, and the destination to which the frame is to be routed through the dynamic switch 10. If no connection exists, that is, if the port P is in the inactive state, and no busy or port-reject conditions are present, the connection is made and the frame is routed to the destination port. The source-address field 52 immediately follows the destination address field 50, and identifies the sending link-level facility. A link-level facility provides its identity as the source of a frame by inserting its assigned link address in the source-address field 52 of any frame that it sends. After a frame is received with a valid source address in the source-address field 52, the source address in the source-address field 52 is used in most cases as the destination address in any subsequent response frame of future request frames to the same link-level facility. The link-control field 54 indicates the type and format of the frame. The link-control field 54, which is the last field of the link header 40, immediately follows the source-address field 52. For the purposes of the present invention, the link-control field 54 indicates whether the frame 38 is a link control frame or a device frame. When the frame 38 is a link control frame, the link-control field 54 also indicates the function of the frame 38. Some of these functions are port reject, link-level reject, link-level busy, port busy, the state change notification (SCN) function of the present invention and other functions necessary to report the status for link-level facilities. The information field 42 is the first field following the link header 40. The size of the information field depends on the function performed by the particular frame. The aforementioned reason code, for instance, is transmitted in the information field 42 of response frames. The information field 42 may be or include a link address affected (LAA) field 43 for use in the SCN frame of the present invention, as will be explained. The link trailer 44 includes a cyclic-redundancy-check (CRC) field 56 just before the EOF delimiter 48. The CRC field 56 contains a redundancy-check code that is used by the receiving link-level facility to detect most frame errors which affect the bit integrity of a frame. The destination address 50, source 52, link-control 54 and information 42 fields are used to generate the CRC 56 and are, therefore, protected by the CRC 56. The end-of-frame (EOF) delimiter 48 is the last string of transmission characters of a frame. Again, it is a specific sequence of transmission characters that cannot appear in the contents of an error-free frame. When the EOF delimiter 48 is encountered during the reception of a frame, it signals the end of the frame and identifies the two transmission characters immediately preceding the EOF delimiter 48 as the CRC 56 at the end of the contents of the frame. The EOF delimiter 48 also indicates the extent of the frame for purposes of any applicable frame-length checks. There are two types of EOF delimiters 48, the disconnect-EOF (DEOF) delimiter, which is used to initiate the removal of a dynamic connection, and the passive-EOF (PEOF) delimiter, which causes no action with respect to removing a dynamic connection. Idle characters are sent over the links when frames are not being transmitted. These idle characters, which are special characters not having data values, maintain the links in synchronism. Sequences of special idle characters are also transmitted to provide limited communication of special commands such as unconditional-disconnect and unconditional-disconnect response. Fig. 5 shows an acknowledge (ACK) frame 70 which is made up of the link header field 40 and the link trailer field 44 previously described. The ACK frame 70 does not include an information field 42 and is used to acknowledge to a link-level facility that a previously sent frame was received without a link error. Since the ACK frame 70 includes the source address field 52, the link-level facility receiving the ACK frame 70 will know, upon receipt, which link-level facility is acknowledging receipt of the previously sent out frame. This is important in those instances in which a link-level facility sends out a frame which is addressed to no one in particular by a to-whom-it-may-concern destination address, as will be discussed further. The to-whom-it-may-concern address may be designated by placing a special character in the destination address field 50 which is a unique, recognizable character. Fig. 6 is a block diagram of the dynamic switch 10 of Fig. 1, and includes only two dynamic-switch ports PA 150 and PB 151. The ports PA 150 and PB 151 are connected through a double sided matrix 152. The matrix 152 is made up of a plurality of parallel horizontal conductors A-D and a plurality of parallel vertical conductors A'-D'. Switches 154 and 155 at the cross-points of conductors A and B' and B and A', respectively, have been closed by initiate-connection controls to make the two way connection of the ports 150 and 151, as previously described. The actual connections of the matrix 152 are controlled by a matrix controller 156 over a matrix address output bus 158. The matrix controller 156 contains storage for storing the connections of the ports of the dynamic switch 10, the allowable connections which may be made, whether the connections are dynamic or static, and other information for the operation of the dynamic switch 10, as will be explained in connection with Fig. 1. The matrix controller 156 is connected to the matrix 152 by the mentioned matrix address output bus 158, receives data from the ports 150 and 151 via a port input bus 160, and sends data to the ports 150 and 151 via a port output bus 162. Control signals over the bus 158 control the cross-point switches of the matrix 152, such as the switches 154 and 155. Information needed to request dynamic connections is sent by the ports P to the matrix controller via bus 160, and the matrix controller 156 responds to the ports P with information saying the requested connections are rejected or allowed, as applicable. Each port P contains storage 166 for storing a port number assigned to the port at initialization, and the port's status. Thus, the port can send a port-busy frame back to a requesting port if the source port is busy, or if the source port is not busy, inform the matrix controller 156 of a requested connection to see if the request is allowed. As will be explained, when a port P sends a request to the matrix controller 156, the port number from the storage 166 in the port P is included so that the matrix controller knows which port sent the request. The dynamic switch control unit 20 is connected to the matrix controller 156 by a dynamic switch control unit input bus 168 for such purposes as making static connections in the matrix 152, blocking access to or fencing a port P, and grouping ports together into partitions such that a port P may only be connected to another port P in the same partition. An operator console 169 is part of the dynamic switch control unit 20 for inputting the mentioned information, or the information may be sent to the dynamic switch control unit 20 via the link 18, which is connected to one of the ports P of the dynamic switch 10, as discussed in connection with Fig. 1. Each port may include an idle generator (IG) 165 which generates idle characters for transmission over the port's link, as previously described. The idle generator 165 may be constructed as described in the patent application EP 90 115 753.7 filed 17 August 1990 entitled "Transmitting Commands Over a Serial Link", which application is herein incorporated by reference. It will be understood that idle characters for transmission over the ports' link may be passed through the matrix 152 from the dynamically connected port instead of coming from the idle generator 165. Each port determines its own state based on the state in its storage 166 and the delimiters of frames from either its link or from its dynamically connected port by means of a state machine (SM) 167 which determines the state of its port P. In the preferred embodiment, the state machine 107 may be implemented in hardware, or may be implemented by microprocessor executed microcode, if desired. Figs. 7A and 7B, joined along line a-a, form a block diagram of the matrix controller 156 of Fig. 6. The port input bus 160 is connected to a source port number register 170 for storing the source port number sent by the port P to the matrix controller 156. The port input bus 160 is also connected to a destination and source link register 172 for receiving and storing, in different bus cycles, the destination and source link addresses as received by the port P from destination field address 50 and source address 52 of the frame 38 respectively. The destination link address is stored in the destination link register 174, and the source link address is stored in the source link register 176, and the contents of these registers 174 and 176 are compared by a comparator 177. The comparator 177 generates an error interrupt if the destination link address is the same as the source link address. A partition and address check table 180 provides a translation function for translating the destination and source link addresses to a port number used by the matrix controller to address the cross-point switches of the matrix 152. The partition and address check table 180 also includes partition bits to indicate which partition, if any, the port P is in. All link addresses which go into the partition and address check table 180 pass through the address in register 182, and the port data from the table 180 goes to the data-out register 184. A comparator 186 is provided to insure that the source port number from the register 170 is the same as the port number translated by the partition and address check table 180 for the source link address from register 172. A comparator 188 is also provided to insure that the partition of the source port, which is a part of the source port number from the port input bus 160 to the register 170, is the same as the partition from the partition and address check table 180. An activity table 190 is an addressable storage device which contains the connections of the ports P of the dynamic switch 10, and an indication if the ports are busy, their status, if the ports are unavailable such as in port fencing, and if the connection of a port is static or dynamic. The entries in the activity table 190 contain the port number and connections bits which indicate the connection data. A destination port number register 192 is connected to the data out register 184 for receiving the destination port number from the partition and address check table 180, and provides the destination port number to an address in register 194 for the activity table 190. A data in register 196 receives the port number and connection bits for storage in the activity table 190, and a data out register 198 receives data from the activity table 190 and supplies the data to busy, available and reject logic 200 along with the results of the partition comparison of comparator 188. The busy, available and reject logic 200 provides a message over the port output bus 162 to the requesting port P indicating if the requested connection is allowable, or if not, if the port P to which connection is requested is busy, fenced and unavailable, in the wrong partition, one port of a static connection, or in the wrong state for the requested connection. If the connection is not allowed, the information supplied by the busy, available and reject logic 200 over bus 162 is used by the source port P to return a suitable response frame to the source link with the proper reason code in the information field 42. Feedback paths 201 and 202 are provided to allow the activity table 190 to be modified in a read, modify, write mode. If the connection is allowed, the matrix controller 156 makes the requested connection, and the frame 38 is transmitted from the source port P to the now connected destination port P for transmission over the destination port's link. The address in register 182 is connected to the dynamic-switch control unit input bus 168, the source port number register 170, the destination port number register 192, and the destination and source link register 172 such that the partition bits of the source and destination ports may be modified using the port number, and the destination and source link addresses may be translated to port numbers as described. The data in register 196 for the activity table 190 is connected to the dynamic-switch control unit input bus 168, the source port number register 170, and the destination port number register 192 such that modifications to the connection data and inquiries regarding the connections to the ports may be made to the activity table 190. The source port number register 170 and the destination port number register 192 are connected to a matrix register 204, which is connected to the matrix address output bus 158 for controlling the cross-point switches of the matrix 152 of Fig. 6 if the connections are to be made or broken by the matrix controller 156. The system of the present invention includes a state-change-notification (SCN) function which reports to the link-level facilities of a data processing system that a state change has occurred which may have affected the associations between the link-level facilities. These affected associations may include logical paths and power-control associations. Turning now to Fig. 8, a portion of the I/O system of Fig. 1 is shown which illustrates how the mentioned associations are established. As illustrated in Fig. 8, the channel A 22 is given the link address of 1, and the channel B 24 is given the link address 2. In the initialization process, link addresses 3, 4, 5 and 6 are assigned to control units 26, 27, 28 and dynamic switch control unit 20, respectively. As discussed earlier, the link addresses of the link-level facilities are associated with the ports to which the link-level facilities are attached. Thus, in Fig. 8, the associated link address is shown for each port P of the switch 10. Each of the link-level facilities in the channels 22 and 24 and the control units 26-28 has a frame generator for generating frames 38 and transmitting them over the outbound conductor of its link, and a receiver for receiving frames from the inbound conductor of its link, and further has access to an association table (AT) in the data processing system which indicates facility-to-facility associations such as logical paths. In the example of Fig. 8, channel 22 has an association table (AT) including entries 3 and 4 for logical paths to control unit 26, link address 3, and control unit 27, link address 4. Channel 24 has an AT table including 4, 5 and 6 for logical paths to control unit 27, link address 4, control unit 28, link address 5, and dynamic-switch control unit 20, link address 6. The switch control unit 20 has access to a connection table (CT) which indicates which other ports a given port may connect with. The connection table CT of Fig. 8 is illustrated as a matrix having an "x" at each location in the lower half of the matrix where a connection might be allowed. A connection between ports is allowed if a corresponding connection is shown in the connection table CT. The connection table is kept in partition and address check table 180 of Fig. 7B. For instance, the connection table of Fig. 8 indicates that link address 3 may connect to link address 1 and 2 (row 3) and link addresses 4-6 (column 3). Whenever the state of a port or its attached link-level facility is changed in such a way that the attached link-level facility's ability to communicate with another link-level facility might be affected, this fact is recognized by the dynamic-switch control unit 20 which causes an SCN frame to be transmitted to all of the other link-level facilities which might be affected. An ACK frame 70 is the normal response to an SCN frame. A link-level facility which receives an SCN frame sends an ACK frame 70 back to the originator of the SCN frame, and then determines if any of its associations or potential associations have been affected. If an SCN frame is transmitted by one of the channels 22, 24 or one of the control units 26-29, the destination address contains the to-whom-it-may-concern character and the LAA field 43 contains the link address of the affected link-level facility (usually its own link address). When the dynamic switch 10 receives an SCN frame with a to-whom-it-may-concern character in the destination address, the dynamic-switch control unit 20 returns an ACK frame of Fig. 5, and, after consulting the connection table, sends an SCN frame with the LAA field 43 containing the link address it received to each of the identified link-level facilities which are able to be connected to the affected link. Thus, the dynamic switch 10 always sends SCN frames to specific destination addresses. It will be understood that analyzing SCN frames received by the dynamic switch 10, and the sending of SCN frames by the dynamic switch 10 to the proper link addresses according to the connection table CT may be accomplished by a microcode controlled microprocessor in either the dynamic-switch control unit 20 or the matrix controller 156, as described. In the present embodiment this function is performed by a microprocessor in the dynamic switch control unit 20. Each of the following events will cause the microcode controlled microprocessor in the dynamic switch 10 to create initiative to report a state change on behalf of a specific link-level facility: 1. The dynamic-switch control unit 20 has received an SCN frame with a to-whom-it-may-concern destination address from that specific link-level facility. 2. That specific link-level facility is coming on line for the first time and has requested that it be assigned a link address. This typically occurs at initialization time and is disclosed in copending patent application "Acquiring a Link Address in an I/O System", US application Serial No. 576557. 3. The dynamic switch port P to which that specific link-level facility is attached has entered the link-failure, off-line, or static mode at a time when that link-level facility was identified with its own link address. This indicates that a link-failure has occurred in the link between the port and that specific link-level facility, or that that specific link-level facility or attached switch port P has been taken out of service, or that a static connection has been made between the port P connected to that specific link-level facility and another port P. 4. The capability of making dynamic connections between two dynamic switch ports P is altered. This is provided by the partition function as recorded in the partition and address check table 180 of Fig. 7B. In the first three of these items, the dynamic-switch control unit 20 reports the state change by sending an SCN frame to each identified link-level facility attached to a port P that is capable of having a dynamic connection to the port P to which the link-level facility affected by the state change is attached. As previously mentioned, this is determined by the connection table CT of the dynamic switch 10. In the last item, the dynamic-switch control unit 20 reports the state change by sending an SCN frame to the link-level facilities attached to the two affected ports P, provided that both link-level facilities are identified by link addresses. The channels 22, 24 or control units 26-29 may report a state change which is caused by an event which affects existing associations, or, in the case of the control units 26-29, which affects the ability of the control unit 26-29 to accept new associations. The channels 22, 24 or control units 26-29 report a state change by sending an SCN frame with either a to-whom-it-may-concern destination address or with the destination link address of one of the specific channels 22, 24 or control units 26-29, if known. However, the channel 22, 24 or control unit 26-29 does not issue an SCN frame if it is aware that it has already signalled a condition which would cause the dynamic switch 10, if present, to issue an SCN frame on behalf of the attached link. If a dynamic-switch control unit 20 receives an SCN frame with a destination link address equal to its assigned link address (for instance 6 in Fig. 8) it is being informed that an association with it may have been changed. In this case, the dynamic-switch control unit 20 uses the information in the SCN frame to update its association table (AT), but does not send the SCN frame to any other link-level facility. Once the dynamic switch control unit 20 receives initiative to send an SCN frame to a particular link-level facility concerning a specific affected link-level facility, subsequent state changes of the affected link-level facility or dynamic switch port P do not create initiatives to send another SCN frame to that particular link-level facility if the initiative to send the first SCN frame has not been discharged. Thus, if a change of state occurs for a particular LAA 43, and, before the sending of the first SCN is completed, a new state change for that LAA 43 occurs, only the first SCN is sent. This may happen, for example, when an LAA's port P enters the link-failure state but returns to normal before the first SCN is sent. In this case, only one SCN is sent. Once the initiative to send the first SCN frame has been discharged, a subsequent state change creates a new initiative. Once the channels 22, 24 or control units 26-29 receive an initiative to send an SCN frame, subsequent state changes in that channel 22, 24 or control unit 26-29 do not create initiatives to send another SCN frame if the initiative to send the first SCN frame has not been discharged. Once the initiative to send the first SCN frame has been discharged, a subsequent state change creates a new initiative. If the channels 22, 24 or control units 26-29 are sending SCN frames with specific destination link addresses, this rule applies separately to each destination link address. If the channels 22, 24 or control units 26-29 receive either a busy frame or a reject frame as a response to an SCN frame, they will retry by sending another SCN frame until the initiative is discharged. Initiative to send an SCN frame is discharged when one of the following takes place: 1. An ACK frame 70 response to the SCN frame is recognized. 2. A condition is recognized for which retry of an SCN frame, if previously sent, is not performed. 3. A set number of retries, for a condition for which retry is not required to be performed indefinitely, is exhausted without success. Fig. 9 is a flowchart for a link-level facility determining routine. It will be understood that the described routine is carried out by a microcode controlled microprocessor which controls the link-level facility. At 300, a receiving means in the link-level facility receives a SCN frame, as previously discussed. At 301, the link-level facility returns an ACK frame 70, also as discussed. A check is made at 302 to see if the LAA 43 of the SCN frame is in the association table (AT) of the link-level facility. If it is, the association is tested by sending a test initialization (TIN) frame to the LAA link address at 304. The TIN frame is similar in structure to the frame 70 of Fig. 5 except that its start of frame delimiter is a CSOF to make a connection through the dynamic switch 10 to the affected link address reported by the SCN frame. In response to the TIN frame, the frame generator of the link-level facility addressed by the TIN frame will send back a response frame. If at 306, the response frame is received by the sender of the TIN frame, the routine goes to 312 where the results of the test are reflected in the AT, as will be discussed. If the response frame is a link-busy frame or port-busy frame at 308, the routine returns to 304 and sends another TIN frame. If the response frame is a reject frame reporting a port intervention or port malfunction at 310, the routine goes to 312 to disable this entry in the AT to indicate that the TIN addressed link-level facility is no longer associated with the sender of the TIN frame. If the response frame is none of the frames tested for at 306, 308 and 310, an appropriate recovery action is started at 311. The frame returned from the TIN addressed link-level facility which reports the test association results from the LAA link address at 306 is a test initialization results (TIR) frame. The TIR frame is similar in structure to the frame 38 of Fig. 2, and contains data in the information field 42 which indicates if the TIN addressed link-level facility continues to be associated with the sender of the TIN frame. If not, the corresponding entry in the Association Table (AT) is disabled at 312. The TIR frame may also contain the status of logical link addresses carried by this link. If the LAA is not in the AT as determined at 302, the SCN may be providing initiative to add an entry into the AT. A check is made at 313 to see if any association are desired. If yes, a frame requesting that an association be established is sent at 314 to the link-level facility having the LAA address for each desired association. If a desired association is allowed, a frame is received back affirming that the association is established. The association containing the LAA address is then added or enabled in the AT. The logical link addresses which may be used in communicating with the addressed link-level facility are contained in the affirming frame. It will be understood that the attempt to establish desired association(s) block 314 includes provisions for link or port busy and port intervention or port malfunction tests, as previously described.

Claims: A state change notification mechanism in a computer I/O system, wherein said computer I/O system including a plurality of link-level facilities and a dynamic switch (10) having a plurality of ports (P), and each link-level facility being attached to an individual one of said ports (P), said state change notification mechanism comprising: a dynamic-switch control unit (20) connected to said dynamic switch (10), wherein said dynamic-switch control unit (20) having: a connection table means (CT) for storing a table of all the allowed interconnections of said ports (P) of said dynamic switch (10), a state change initiative means for creating an initiative to report a state change on behalf of a specific link-level facility attached to one of said ports (P) of said dynamic switch (10), and a frame generator for generating a state change notification (SCN) frame responsive to said connection table means and said state change initiative means, said state change notification (SCN) frame being transmitted to each link-level facility which may be affected by said state change. The state change notification mechanism of claim 1, wherein said frame generator transmits, within said state change notification (SCN) frame, an identification of said specific link-level facility on whose behalf said state change notification is being sent. The state change notification mechanism of claim 2, wherein each link-level facility includes a receiver for receiving a state change notification (SCN) frame from said dynamic-switch control unit (20), association table (AT) means for storing a list of associations which contain identifications of other link-level facilities to which associations have been made, and determining association means for sending an association message to said specific link-level facility for determining associations in said association table means. The state change notification mechanism of claim 3, wherein each link-level facility includes a frame generator for transmitting a state change notification (SCN) frame having a destination address field (50) which may be one of a specific destination address or a to-whom-it-may-concern destination address. The state change notification mechanism of claim 4, wherein said state change initiative means of said dynamic-switch control unit (20) includes means to create an initiative reporting a state change on behalf of said specific link-level facility in response to one of: the receipt by said dynamic-switch control unit of a state change notification (SCN) frame with a to-whom-it-may-concern destination address from said frame generator of said specific link-level facility, said specific link-level facility has requested that it be assigned a link-level facility identification, said port (P) to which said specific link-level facility is connected enters one of said link-failure, off-line, or static states, and entries in said connection table means (CT) for said interconnection of ports with said port connected to said specific link-level facility have been altered. The state change notification of claim 5 further comprising: discharging means in said state change initiative discharging means for discharging said initiative to report a state change upon one of: recognizing an acknowledgment (ACK) response frame (70) in response to an state change notification (SCN) frame, recognizing a condition for which retry of an state change notification (SCN) frame, if previously sent, is not performed, and exhausting without success, a set number of retries for a condition for which retry is not required to be performed indefinitely. The state change notification mechanism of claim 6, wherein said state change initiative means includes means for preventing the creation of a new initiative on behalf of said specific link-level facility prior to the discharging of an earlier initiative by said discharging means. The state change notification mechanism of claim 5, wherein said frame generator of each of said link-level facilities further includes response means for transmitting a response frame to said source of a received frame. The state change notification mechanism of claim 8, wherein said response frame is one of a busy (BSY) frame, or an acknowledgment (ACK) frame (70). The state change notification mechanism of claim 9, wherein each of said ports (P) includes means for transmitting a reject (RJT) frame or a busy (BSY) frame to said source of a received frame, said reject (RJT) frame reporting one of a port intervention or a port malfunction. The state change notification mechanism of claim 10, wherein each of said link-level facilities includes means for transmitting an additional state change notification (SCN) frame upon receipt of a busy (BSY) frame or a reject (RJT) frame transmitted in response to said state change notification (SCN) frame. The state change notification mechanism of claim 10, wherein each of said determining association means includes means for transmitting a test initialization (TIN) frame after transmission of an acknowledgment (ACK) frame (70). The state change notification mechanism of claim 12, wherein each of said determining association means includes means for transmitting an additional test initialization (TIN) frame to said source of said state change notification (SCN) frame upon receipt of a busy (BSY) frame transmitted in response to said test initialization (TIN) frame. The state change notification mechanism of claim 12, wherein each of said determining association means includes means for transmitting one of a test initiation response (TIR) frame or a busy (BSY) frame to said source of said test initialization (TIN) frame upon receipt of said test initialization (TIN) frame, and each of said ports include means for transmitting a reject (RJT) frame or a busy (BSY) frame to said source of said test initialization (TIN) frame upon receipt of said test initialization (TIN) frame. The state change notification mechanism of claim 14, wherein each of said determining association means includes means for altering said association table means (AT) upon receipt of one of a TIR frame or a reject (RJT) frame sent in response to said test initialization (TIN) frame. The state change notification mechanism of claim 15, wherein said means for altering said association table means (AT) includes means for one of adding or deleting an entry in said association table means (AT). A method of providing a state change notification in a computer I/O system, wherein said computer I/O system including a plurality of link-level facilities and a dynamic switch (10) having a plurality of ports (P), and each link-level facility being attached to an individual one of said ports (P), said method is comprising the steps of: storing in said dynamic switch (10), a connection table (CT) of all allowed interconnections of ports of said said dynamic switch (10), transmitting a state change notification (SCN) frame having a to-whom-it-may-concern destination address from a specific link-level facility to said dynamic switch (10), creating an initiative to report a state change on behalf of said specific link-level facility, and responsive to said allowed interconnection stored in said connection table, transmitting a second state change notification (SCN) frame through each port (P) to each link-level facility which may be affected by said state change. The method of claim 17, wherein said creating initiative step is in response to one of: the receipt by a control unit controlling said dynamic switch of a state change notification (SCN) frame with a to-whom-it-may-concern destination address from said specific link-level facility, said specific link-level facility has requested that it be assigned a link-level facility identification, said port (P) to which said specific link-level facility is attached enters one of said link-failure, off-line, or static states, and entries in said connection table (CT) for said interconnection of ports with said port connected to said specific link-level facility have been altered. The method of claim 18, further comprising the step of: discharging said initiative to report a state change upon one of: recognizing an acknowledgment (ACK) response frame (70) in response to said second state change notification (SCN) frame, recognizing a condition for which retry of an state change notification (SCN) frame, if previously sent, is not performed, and exhausting without success, a set number of retries for a condition for which retry is not required to be performed indefinitely. The method of claim 19, further comprising the step of: preventing the creating of a new initiative on behalf of said specific link-level facility prior to the discharging of an earlier initiative. The method of claim 18, further comprising the step of: transmitting within said second state change notification (SCN) frame, an identification of said specific link-level facility on whose behalf said state change notification is being sent. The method of claim 21, further comprising the steps of: storing in an association table means (AT) in said, one of said link-level facilities, a list of associations which contain identifications of other link-level facilities to which associations have been made, receiving at said one link-level facility, said second state change notification (SCN) frame, and sending an association message from said one link-level facility to said specific link-level facility for determining its association in said association table means (AT). The method of claim 22, further comprising the step of: transmitting (301) from said one link-level facility a response frame to said source of a received frame. The method of claim 23, wherein said response frame is one of a busy (BSY) frame, or an acknowledgment (ACK) frame (70). The method of claim 24, wherein said association message includes transmitting (304) a test initialization (TIN) frame after transmission (301) of an acknowledgment (ACK) frame (70). The method of claim 25, further comprising the step of: transmitting from said one link-level facility, an additional test initialization (TIN) frame to said specific link-level facility upon receipt (308) of a busy (BSY) frame transmitted in response to said test initialization (TIN) frame. The method of claim 25, further comprising the step of: transmitting from said specific link-level facility, one of a test initiation response (TIR) frame or a busy (BSY) frame to said source of said test initialization (TIN) frame upon receipt of said test initialization (TIN) frame. The method of claim 27, further comprising the step of: transmitting to said source of a received frame, a reject (RJT) frame when said port (P) attached to said one link-level facility is in a port intervention or port malfunction state, or a busy (BSY) frame when said port (P) attached to said one link-level facility is busy. The method of claim 28, further comprising the step of: transmitting an additional state change notification (SCN) frame upon receipt of a busy (BSY) frame or a reject (RJT) frame transmitted in response to said second state change notification (SCN) frame. The method of claim 28, further comprising the step of: altering (312, 313, 314) said association table (AT) in said one link-level facility upon receipt of one of said TIR frame or said reject (RJT) frame sent in response to said test initialization (TIN) frame. The method of claim 30, wherein said altering of said association table (AT) includes one of adding or deleting an entry in said association table means (AT).

Inventors: BROWN PAUL JOSEPH, ELLIOTT JOSEPH CHARLES, HOPPE KARL HELMUTH, LYNCH KENNETH ROBERT, SACHS MARTIN WILLIAM, BROWN, PAUL JOSEPH, ELLIOTT, JOSEPH CHARLES, HOPPE, KARL HELMUTH, LYNCH, KENNETH ROBERT, SACHS, MARTIN WILLIAM
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1991
Main classification: G06F13
IPC codes: G06F13