Concurrent multi-protocol I/O controller

Abstract: The improved I/O controller includes a data processing element for executing a sequence of stored program instructions to control the transfer of data between respective ones of a plurality of I/O devices and the host computer. The controller further includes a memory element for storing the program instructions and parameter tables associated with the transfer of data. A first sequence of stored program instructions defines a first communications protocol and a second sequence of stored program instructions defines a second communications protocol. A first control table is associated with a first I/O device, for relating the first device to the first program instructions and a second control table is associated with a second I/O device, for relating the second I/O device to the second program instructions. The first table is invoked when first data is to be transferred between the first I/O device and a host computer, to call a first program instructions to impose the first communications protocol to govern the transfer of the first data. The second table is invoked when second data is to be transferred between a second, diverse I/O device and the host computer, to call the second program instructions to impose the second communications protocol to govern the transfer of the second data. In this manner, a plurality of communications protocols which are mutually incompatible, can be concurrently executed for communication between a host computer and a plurality of diverse I/O devices.

Description: The invention relates to an improved I/O controller according to the preamble of claim 1. Data communications networks which interconnect data processing nodes, are not only inherently complex, but have evolved into a variety of forms. Information flowing between I/O terminal devices and application programs residing on a remote host computer, require the coordination among the terminal design characteristics, the application requirements, the operating system in the main computer systems, and the characteristics of the communications link. General purpose communications controllers have been developed, containing a stored program front end that can attach to the I/O channel of a host data processor, to provide teleprocessing control functions. Another class of control functions, implemented with software and known as telecommunications access methods, are fundamentally of two types, direct control and queued. For example, the Basic Telecommunications Access Method (BTAM) provides for direct control over telecommunications operations while appropriately interfacing with the operating system of the host computer. The Virtual Telecommunications Access Method (VTAM) was later developed to match the technology advances of virtual memory machines and Synchronous Data Link Control (SDLC), along with having a compatibility with new programmable communications controllers and providing a facility for distributed processing. VTAM is described in the IBM publication "Virtual Telecommunications Access Method (VTAM) - Concepts and Planning," GC27-6998-3, June 1976. Additional description can be found in the article by H. R. Albrecht, et al., "The Virtual Telecommunications Access Method - A Systems Network Architecture Perspective," IBM Systems Journal , Vol. 15, No. 1, pp. 53-80, 1976. The US-A-4,261,033 discloses a communications controller comprising a data processing element, a memory element, a plurality of stored program instructions and control tables. The IBM 3274 control unit is described in the IBM publication "An Introduction to the IBM 3270 Information Display System," GA27-2739-11, July 1979. Additional description can be found in the IBM publication "IBM 3270 Information Display System, 3274 Control Unit Planning, Setup and Customizing Guide," GA27-2827-10, June 1982. The Defense Data Network (DDN) is described in the NTIS publication AD-A166324 entitled "DDN (Defense Data Network) Protocol Handbook," Vol. 1, DoD Military Standard Protocols, December 1985 by E. J. Feinler, et al., and its companion volumes 2 and 3. Additional information can be found in the NTIS publication AD-A137427 "Defense Data Network X.25 Host Interface Specification," December 1983. An overall telecommunications architecture plan known as Systems Network Architecture (SNA) significantly advanced the state of the art in teleprocessing software systems by providing a unified design for the functions and structure of data communications products. SNA and SDLC are described in detail in the book by R. J. Cypser, "Communications Architecture for Distributed Systems," Addison Wesley Publishing Co., Reading, Massachusetts, 1978. SNA is also described in the publication "SNA Technical Overview," order No. GC30-3073, published by the IBM Corporation and available through IBM branch offices. A second major communications network architecture has evolved, known as the Defense Data Network (DDN) which consists of a packet-switched network providing data communications services between remote data processing hosts and terminals. DDN is described in the IBM publication "Virtual Telecommunications Access Method (VTAM) - Concepts and Planning," GC27-6998-3, June 1976. Additional description can be found in the article by H. R. Albrecht, et al., "The Virtual Telecommunications Access Method - A Systems Network Architecture Perspective," IBM Systems Journal , Vol. 15, No. 1, pp. 53-80, 1976. The IBM 3274 control unit is described in the IBM publication "An Introduction to the IBM 3270 Information Display System," GA27-2739-11, July 1979. Additional description can be found in the IBM publication "IBM 3270 Information Display System, 3274 Control Unit Planning, Setup and Customizing Guide," GA27-2827-10, June 1982. The Defense Data Network (DDN) is described in the NTIS publication AD-A166324 entitled "DDN (Defense Data Network) Protocol Handbook," Vol. 1, DoD Military Standard Protocols, December 1985 by E. J. Feinler, et al., and its companion volumes 2 and 3. Additional information can be found in the NTIS publication AD-A137427 "Defense Data Network X.25 Host Interface Specification," December 1983. These two major data communications architectures have incompatible protocols which prevents communications between machines designed for either one or the other type of architecture. Prior art I/O control units attached to an I/O channel of a host computer using the SNA-type protocol, cannot communicate with the non-SNA-type protocols and methodologies. For example, a terminal user on an IBM 3270 terminal conventionally attaches to host applications over an IBM 3274 control unit, but IBM 3274 control units are not compatible with Defense Data Network communication protocols and cannot operate using them. It is therefore the object of the invention to provide an improved I/O controller which concurrently handles a plurality of communications protocols and which particularly concurrently handles a plurality of communications protocols between a host computer and a plurality of diverse I/O devices. The solution is described in the characterizing part of claim 1. These and other objects, features and advantages of the invention will be more fully appreciated with reference to the accompanying figures. Fig. 1 is a system block diagram of the overall structure of a host computer connected through its I/O channel to an I/O controller. Fig. 2 is a system block diagram of the interconnection of a host computer through its I/O channel to the programmable I/O controller, in accordance with the invention. Fig. 3 is a more detailed block diagram of the programmable I/O controller in accordance with the invention. Fig. 4 is a detailed block diagram of the programmable I/O controller in accordance with the invention, depicting the paths of connectivity. Fig. 5 is a block diagram of the interconnection of the programmable I/O controller with a host computer, where the programmable I/O controller is programmed to represent two different control units concurrently, and the host computer is operating under two different host access methods. Fig. 6 is an implementation example of the invention. Fig. 1 is an overall system block diagram of a prior art host data processor configuration where the host data processor (CPU) 20 communicates through its I/O channel 22 to one or more I/O control units 24 and 26 which connect to a data communications network 28. It permits the concurrent appearance of more than one control unit type to the host over its channel, using a single physical computer 30 such as an IBM Series/1, connected to the network 32, as shown in Fig. 2. The IBM Series/1 is described for example in the IBM publication "IBM Series/1 System Summary, GA34-0035-5," dated 1979. The System/370 architecture is described in the IBM publication "IBM System/370 Principles of Operation," GA22-7000, dated 1970. An additional description can be found in the article by R. P. Case, et al. entitled "Architecture of the IBM System/370," Communications of the ACM , 21, 73-96 (1978). Further, this should be done using only one physical connection to the host's channel 22, since only eight physical control units can be attached to a channel and every such connection can be regarded as consumption of a valuable resource in the customer's view, not to mention the additional cost. Specifically, we wish to emulate both IBM 3274 and IBM 37x5 control units; we should also allow, however, for additional control unit types not required at this time but which may become a requirement in the future (for example, the IBM 3088). The IBM 3274 control unit is described in the IBM publication "Virtual Telecommunications Access Method (VTAM) - Concepts and Planning," GC27-6998-3, June 1976. Additional description can be found in the article by H. R. Albrecht, et al., "The Virtual Telecommunications Access Method - A Systems Network Architecture Perspective," IBM Systems Journal , Vol. 15, No. 1, pp. 53-80, 1976. The IBM 3274 control unit is described in the IBM publication "An Introduction to the IBM 3270 Information Display System," GA27-2739-11, July 1979. Additional description can be found in the IBM publication "IBM 3270 Information Display System, 3274 Control Unit Planning, Setup and Customizing Guide," GA27-2827-10, June 1982. The Defense Data Network (DDN) is described in the NTIS publication AD-A166324 entitled "DDN (Defense Data Network) Protocol Handbook," Vol. 1, DoD Military Standard Protocols, December 1985 by E. J. Feinler, et al., and its companion volumes 2 and 3. Additional information can be found in the NTIS publication AD-A137427 "Defense Data Network X.25 Host Interface Specification," December 1983. The possibility of multi-control unit emulation is conditioned upon the fact that the IBM System/370 channel protocol in fact represents two distinct layers of protocol: the common protocol and the control unit level protocol. The IBM Series/1 is described for example in the IBM publication "IBM Series/1 System Summary, GA34-0035-5," dated 1979. The System/370 architecture is described in the IBM publication "IBM System/370 Principles of Operation," GA22-7000, dated 1970. An additional description can be found in the article by R. P. Case, et al. entitled "Architecture of the IBM System/370," Communications of the ACM , 21, 73-96 (1978). The common protocol includes signal sequences, generic meanings of commands and generic meanings of status representations. This protocol level is the same regardless of control unit type and is formally defined in IBM publication GA22-6974, "IBM System/360 and System/370 Channel to Control Unit Original Equipment Manufacturers' Information." The second, or control unit level protocol, operates on top of the first protocol but is unlike the first in that the second protocol differs for every different type of control unit. The control unit level of protocol defines exact meanings to channel commands codes, types, sizes and direction of data transfers, and specific meanings are attributed to status indications presented by the control unit. For example, the command encoded as hexadecimal 05 means to accept the following host data as an initial program load to an IBM 3705 control unit. The same command to an IBM 3274 control unit is used to pass configuration information as part of bringing that control unit online to VTAM. For an IBM 3272 control unit, x'05' commands the control unit to clear the screen of the addressed display terminal and then display the data which will follow. The other key attribute allowing for emulating multiple control units on the physical channel is the inability of the host's channel 22 to actually "see" a physical control unit; instead, the channel perceives only devices attached through control units, in the form of a one byte device address. The control unit has no address as such. It simply manages its one or more devices, responding on behalf of that or those devices which it sees selected by the channel 22. Thus, there is no electrical or low level logical significance to the fact that more than one control unit, represented to the channel by more than one device address, can be in fact supported through a single physical connection to the channel interface. The invention provides concurrent control unit emulation by accommodating both the common interface protocol as well as the disparate behavior of the various control units. To do this function in the IBM Series/1, computer 30 is partitioned along lines that represent the two levels of protocol, as shown in Fig. 3. The common level control handler 34 for the common protocol treats commands and status as generic, and operates the physical interface 36 to the channel 22. On its other side, the common level control 34 multiplexes I/O service from control unit level logic 38, represented by code and tables 40, 42 and 44 unique for each emulated control unit co-resident over the common handler 34. A common interface is supplied between the low level handler 34 and the control unit level logic 38 so that dependencies relating to specific and particular control unit characteristics reside only in the control unit level code 38. Control unit code 38 representing different control units may appear at that common interface any time after the system is initialized. It announces its existence to the always resident common code 34 by performing an open type function, identifying at that time over what address or addresses it wishes to communicate with the host 20, and establishing critical control block addresses to the common code 34 to allow for communication across the interface. Once this connectivity between control unit level code 34 and addresses on the physical channel interface has been established, the common code 34 will serve as an intermediary, passing host commands, data and control unit status over that connection, as shown in Fig. 4. Because there are 256 possible addresses on the channel 22 interface, there may be that many connections operating concurrently between control unit level logic 38 and host-resident logic in host 20, all handled equally by the single instance of the common level handler code 34. Thus the invention allows for as many as 256 control units to be represented by the Series/1 computer 30 for each physical attachment to the host's channel 22, if each emulated control unit represents one address on the channel 22. Provision is made for multiple use of a single instance of control unit level code 38. That is, an instance of 3274 control unit emulation code 40 can represent as many 3274 control units as need to be emulated on the physical channel interface. This reduces the storage consumption called for by control unit level code 38. The same is true for 37x5 emulation code 42 or any other control unit emulation code 44. As stated above, the common logic 34 has the function to manage the physical connection to the channel interface, turning control unit level I/O requests into I/O requests understood by the interfacing hardware on the Series/1 computer 30. It further manages the connections established between the control unit level logic 38, passing received channel commands to it and initiating responding I/O requests back to the channel 22 in response. The control unit logic 38 must be characterized to properly support the operations defined for the emulated control unit according to the rules established for that control unit. That is, if an instance of control unit level logic 40 represents an IBM 3274, receipt of the "05" channel command to it will result in performing the configuration operations normally performed by a real 3274, including setting the number of buffers and their size for subsequent communications with host access methods resident in the host 20. If this same "05" command were received by control unit level logic 42 representing an IBM 3705, the data to be received from the host 20 under the command would be treated as a bootstrap load module for it. The concurrent multi-protocol control unit function is implemented on the IBM Series/1 computer 30 under the Event Driven Executive (EDX) operating system 46. EDS is further described in the IBM publications SC34-0645, "Series/1 Event Driven Executive" and SC34-1705, "EDX Communications and Terminal Application Guide." The common level logic 34 is referred to herein as the Basic Channel Access Method (BCAM) 34. It is coded in Series/1 assembler language and is made an integral part of the EDX I/O control system. BCAM 34 provides an Application Program Interface (API) 48 to control unit level logic 38, in the form of new Event Driven Language (EDL) instructions. These instructions are "open," "close," "read," "write" and "I/O control." Control unit level logic 38 uses these instructions to establish connectivity to the channel 22 and to request the transfer of data and status information to the host 20. A wait/post interface exists on that API 48 and is used to inform the control unit level code 38 of events occurring on the channel interface, including receipt of channel commands directed toward the "owning" control unit logic 40, 42 or 44. Ownership of a path is determined at the time the control unit logic 38 performs the "open" instruction to BCAM 34. Subsequent to the "open," the issuing control unit logic 40, 42 or 44 has exclusive ownership of the path, including the specified device address on the channel interface. Thus an event such as receipt of a channel command is directed by BCAM 34 to the single instance of control unit level logic 38 which owns the channel address over which the command has arrived, and no other instance of control unit level logic is aware of that event. Control unit level logic, such as 3274 emulation logic 40 or 3705 emulation logic 42, can in turn supply an API 48 to an actual Series/1 device, communication line, or another program within the Series/1. For the DDN implementation, connection is made to application programs which provide the protocol conversion and adaptation required for connectivity to the Defense Data Network. Those programs in turn connect to the actual network communications lines, thereby completing the link between the host's access method to the DDN network. To establish an adaptive design, the implementation of the multi-protocol control unit in the Series/1 includes the means of configuring which control units are to be emulated and over which host channel addresses on each physical connection to the host. This is represented by a three-step process. First, the system programmer, when creating the EDX system for a particular machine, includes BCAM as a component of the operating system. Second, a table represented by a configuration dataset is created defining the physical connection(s) to the host channel(s) and how many paths (device addresses on those physical connections) are to be used. Third, the system user defines the specific values to be used for the addresses to be "owned" by each type of control unit level logic. This can either be encoded in another table constructed by the system user or can be embedded within the user's application code itself. Although either method is acceptable, the former is suggested to preserve the highly adaptive nature of the implementation. If the latter method is used, each different installation requires a recompilation of the user's code. On the host side, the system programmer follows conventional procedures for defining control units and access methods. Since we are emulating actual control units in the Series/1, no unusual action must be taken by the host system programmer in defining that system. That configuration action requires only that the control units and access methods defined on the host match the configuration as established within the Series/1. The flexibility and adaptability of the Series/1 in representing multiple control units concurrently brings with it a certain level of complexity that can be easily understood by the system programmer but may be confusing to an individual responsible for maintenance of the host system. This individual (a Customer Support Representative or CSR) may have difficulty correlating the host system definition which establishes control units such as 3274 and 3705 and nowhere defines a Series/1, while his or her eyes see only a Series/1 on the host's channel. To ease the CSR's problem, we define yet another control unit to operate in the Series/1, referred to numerically as 4950. This emulated control unit has only one function, viz., to serve as the maintenance point within the Series/1 against which the CSR executes control unit test programs. This is to allow a common maintenance strategy for the CSR irrespective of the number and types of "real" control units emulated by the channel-attached Series/1. That is, the CSR can execute a certain diagnostic program from the host to Series/1 regardless of control units it is emulating, and that diagnostic program will run successfully if the hardware components of the host, channel and Series/1 are operating correctly. The control unit called 4950 is made a permanent part of the EDX system in the Series/1 and its is always available for these CSR tests. An address on the channel interface is declared (as part of system configuration) for the 4950 connection, and it is this address to which the CSR directs the diagnostic tests. That address is made unavailable for any application oriented control unit paths that may be operating concurrently. The 4950 uses the same BCAM API as the other control unit level components which use BCAM. It has its own special understanding of channel commands which of course matches the intended meanings of those commands as implemented in the CSR's diagnostic programs. As part of the spirit of allowing the concurrent operation of different protocol control units, the CSR can exercise his or her diagnostic tests to the 4950 control unit while the "real" (i.e., 3274/3705) control unit applications continue to run within the same Series/1. An additional complication arises when more than one communications access method is operating in the host computer, as is illustrated in Fig. 5. The programmable I/O controller 30, in accordance with the invention, can communicate through a common channel interface with two or more different host access methods, for example VTAM 25 and BTAM 25′ operating on the host, while the controller represents two or more different control units concurrently communicating with two or more diverse and mutually incompatible communications network architectures. BTAM is IBM's Basic Telecommunications Access Method, a lower level acess method introduced in 1964 to provide more direct control of telecommunications devices. Detailed Description of the Preferred Embodiment The programmable I/O controller 30 can be referred to as a channel attachment device which connects an IBM Series/1 computer to an IBM System/370 I/O channel. In the following example, control blocks are disclosed for providing device descriptions, channel control tables, and buffer control to carry out concurrent multi-protocol operations. Introduction The programmable I/O controller channel attachment 30 is a two-card attachment which connects a Series/1 to a System/370 I/O channel. The programmable I/O controller is capable of emulating a variety of System/370 device types by means of appropriate Series/1 software. The Series/1 device driver for the programmable I/O controller will perform the functions required to control communications between the Series/1 and the attachment across the I/O interface. The device driver software will also provide a high-level EDL interface to enable Control Unit Emulation Software to use the programmable I/O controller channel attachment to communicate with the System/370 host. Emulation software for 3272, 3274, 3088 and DDN type control units is provided. Device Driver Software Components The Series/1 device driver for the programmable I/O controller channel attachment is comprised of the following components: Configuration Utility Device Initialization Routine I/O and Interrupt Handler Clean-up Routine EDL Application Interface The Configuration Utility is an application program which is invoked by the user to specify site specific information regarding the desired configuration and use of the programmable I/O controller devices on the Series/1 system. This configuration information is similar to that which would normally be provided in the $EDXDEFS dataset during system generation. This will allow changes to be made to the configuration of the programmable I/O controller devices for emulation of the various control unit types without requiring that an EDX sysgen be performed. A Series/1 IPL will be required following use of this utility to enable the Series/1 device driver and emulation software to reflect the desired configurations. The Device Initialization Routine is loaded at Series/1 IPL time to build various control blocks and initialize the programmable I/O controller devices. The Device Initialization Routine uses information provided via the Configuration Utility to perform these tasks. The Application Interface provides a set of EDL instructions which enable Series/1 programs to communicate with a host using the programmable I/O controller channel attachment. When a Series/1 program issues one of these instructions, the user's request is translated and passed to the I/O and Interrupt Handler for execution by the programmable I/O controller. A return code will be passed back to the issuing program indicating success or failure of the requested operation. The Clean-up Routine is passed control when the EDX operating system detects a PROGSTOP or performs a $C function. The Clean-up Routine will determine whether a terminating task was operating any of the subchannels on any of the programmable I/O controller devices and attempt to terminate pending operations and close the subchannel(s) being used. The I/O and Interrupt Handler, Clean-up Routine, and EDL Application Interface components of the programmable I/O controller device driver will be linked together and reside within the EDX supervisor. Configuration Utility The Configuration Utility prompts the user for site specific information concerning the desired configuration of the programmable I/O controller devices located in the Series/1. The input to the configuration utility is formatted and stored in a file for use by the programmable I/O controller Device Initialization Routine. The user may enter the following information using the utility: For each programmable I/O channel attachment device: The Series/1 device address. The Device Name, a unique 1-8 character symbolic name which will be assigned to the device. The EDX partition # where control blocks required for use by the programmable I/O controller software support will reside. Information concerning each of the control units to be configured on the device including: The unique 1-6 character symbolic name which will be assigned to the control unit. The type of control unit; supported control unit types are 3272, 3274, 3725, 3088 and DDN. The base subchannel address of the control unit in hex. The subchannel address range in decimal. Each subchannel configured for a particular control unit will be assigned a symbolic name by appending a two-digit hex number (00-1F) to the name of the corresponding control unit. The configured subchannels will be numbered in ascending order starting at the base address with '00'X. EDL Application Interface The following extensions to the EDL language will be supplied to allow applications to access the programmable I/O controller. CPBDEV CPBIOCB CPBOPEN CPBCLOSE CPBREAD CPBWRITE CPBIOCTL CPBDEV The CPBDEV statement is the programmable I/O controller device definition statement which is included in the $EDXDEFS dataset during EDX system generation. One CPBDEV statement should be coded for each programmable I/O controller attachment in the Series/1 system. Definitions of devices must be specified sequentially in the system definition dataset. CPBIOCB The CPBIOCB statement is used to allocate an I/O control block to be used for interactions with the programmable I/O controller device over the named subchannel. A unique CPBIOCB must be allocated for each opened subchannel. CPBOPEN The CPBOPEN instruction is used to reserve a System/370 subchannel for use by the issuing task. Execution of this instruction enables the specified subchannel and causes it to become responsive to selections on the System/370 interface. The issuing task should supply the Device Name, Subchannel Name, and Path Identifier information in the CPBIOCB before execution of the CPBOPEN instruction. The CPBCLOSE instruction is used to release a subchannel which was reserved for use with a CPBOPEN instruction. CPBREAD The CPBREAD instruction is used to pass data from the host to the Series/1. The issuing task must provide the address and key of the Buffer Control Block in the CPBIOCB before execution of the CPBREAD. The actual number of bytes transferred is stored in the B$TXTCNT field of the Buffer Control Block upon completion of the CPBREAD. CPBWRITE The CPBWRITE instruction used is to pass data from the Series/1 to the host. The issuing task must provide the address and key of the Buffer Control Block in the CPBIOCB before execution of the CPBWRITE. The actual number of bytes transferred is stored in the B$TXTCNT field of the Buffer Control Block upon completion of the CPBWRITE. CPBIOCTL The CPBIOCTL instruction is to present asynchronous status to the host. The issuing task must provide the Unit Status Byte to be passed, along with a Unit Sense Byte(s) where appropriate in the CPBIOCB before execution of the CPBIOCTL. Post Codes A task which has opened a subchannel for use will receive a post to the ECB specified in the CPBOPEN upon the driver's receipt of an async event affecting the owned subchannel. The Post Code will contain the Path Identifier specified in the CPBOPEN along with an indication of the event which has occurred. A task opening multiple subchannels for use may specify a unique Path Identifier for each subchannel and the address of a common ECB in the CPBOPEN requests. This will enable the task to wait for work on a common ECB and use the unique Path Identifier to distinguish over which of the owned subchannels the event has occurred. The Path Identifier may be any value in the range 1-255. Control Blocks: Device Descriptor Block During system generation, a Device Descriptor Block (CPBDDB) will be created for each programmable I/O controller device specified in the $EDXDEFS system definition dataset. This DDB has the following format: The address of the first CPBDDB will be placed in the EDX Communications Vector Table to enable programs outside the supervisor to locate the DDB. All device specific information will be maintained in a DDB Extension Control Block (CPBDEXB), one of which is allocated for each physical device by the programmable I/O controller device Initialization Routine. The Device Name is specified by the user via the Configuration Utility and installed in the DDB at initialization time as well DDB Extension Control Block The DDB Extension Control Block (CPBDEXB) has the following format: The Subchannel Control Table (SCCT) contains one Subchannel Control Entry (SCCE) for each of the subchannels configured for a particular programmable I/O controller device. Subchannel Control Entry Each Subchannel Control Entry (SCCE) contains the following information: I/O Control Block The I/O Control Block (CPBIOCB) has the following format: The Device Name field will be replaced by the following upon successful completion of a CPBOPEN: Buffer Control Block The Buffer Control Block used is compatible to the buffer and message headers of the EDX Communications Facility (CF). The format of the control block is as follows: Description of the Fields B$SIZE The size, in bytes, of the entire buffer. B$COUNT The count of the bytes of actual data in the buffer, beginning at B$ADDR. B$ADDR The address of the first byte of the buffer to be treated as data. B$DATA@ An address of some data within the buffer. B$TXTCNT The actual number of bytes transferred during the last CPBREAD or CPBWRITE operation performed using this Buffer Control Block. B$TEXT Normally, the start of text. B$ADDR normally points here. The Buffer Control Block must be located in the same partition as the data it addresses, but need not be contiguous to the data. Implementation Example In this example, a single Series/1 computer 30, representing a single physical connection to a hosting System/370 computer 20 over one of its I/O channels 22, is made to appear as two different types of emulated control unit. That is, any program in the host would see two individual and dissimilar control units and would be unable to recognize that these are in fact contained in a single machine using a single physical connection to the host's channel. The IBM Series/1 is described for example in the IBM publication "IBM Series/1 System Summary, GA34-0035-5," dated 1979. The System/370 architecture is described in the IBM publication "IBM System/370 Principles of Operation," GA22-7000, dated 1970. An additional description can be found in the article by R. P. Case, et al. entitled "Architecture of the IBM System/370," Communications of the ACM , 21, 73-96 (1978). A control unit's identity is in part established by the types of channel commands it executes and how it executes them. In addition, for any real case, it is further defined and known by the address or addresses it represents on the host's channel. Knowing both of these pieces of information, a program in the host can successfully cause I/O to be performed on the devices or over the communication lines that that control unit manages. Establishment of a multi-protocol unit therefore requires that the physical machine respond over different addresses, representing the different control units, and that it further execute channel commands in different ways over those different addresses as the desired emulated control units would. This should be done in a way that no interference between the operation of the emulated control units be detectable by the controlling program(s) in the hosting system, despite the fact that all operations are in fact being performed by the common hardware represented by the single physical control unit (which, in this case, is an IBM Series/1). The following conditions must be obtained for these criteria to be met: 1. The hosting channel uses separate paths (subchannels) in executing channel programs directed to the several addresses the Series/1 represents. 2. The hardware attachment tying the Series/1 to the channel be capable of concurrent operations over the several addresses the Series/1 represents. 3. That hardware attachment does not attempt to interpret the meaning or ultimate effects of commands directed to the Series/1 from the hosting channel. 4. The controlling program(s) in the Series/1 are structured such that the mechanics of operation of the standard channel interface are divorced from the unique behavior expected of the emulated control units. The example configuration is shown in Fig. 6. In the host CPU, two different access methods are operating the two emulated control units. VTAM 25 is controlling an emulated 3274A unit 40, a terminal control unit that channel attaches as a Physical Unit type 2 (PU2). DNAM 25″ is controlling a Defense Data Network control unit 44. The channel 22 is using three unshared subchannels, two for DNAM operations and one for the 3274A. Corresponding to this, the Series/1 uses three addresses in answering to 370 channel commands, two for the emulated DNAM control unit 44 and one for the emulated 3274A unit 40. A common device handler (BCAM) 34 operates the single channel attachment. It represents the access point for two control unit emulation programs, one emulating the DNAM control unit and the other the 3274A. The IBM 3274 control unit is described in the IBM publication "Virtual Telecommunications Access Method (VTAM) - Concepts and Planning," GC27-6998-3, June 1976. Additional description can be found in the article by H. R. Albrecht, et al., "The Virtual Telecommunications Access Method - A Systems Network Architecture Perspective," IBM Systems Journal , Vol. 15, No. 1, pp. 53-80, 1976. The IBM 3274 control unit is described in the IBM publication "An Introduction to the IBM 3270 Information Display System," GA27-2739-11, July 1979. Additional description can be found in the IBM publication "IBM 3270 Information Display System, 3274 Control Unit Planning, Setup and Customizing Guide," GA27-2827-10, June 1982. The Defense Data Network (DDN) is described in the NTIS publication AD-A166324 entitled "DDN (Defense Data Network) Protocol Handbook," Vol. 1, DoD Military Standard Protocols, December 1985 by E. J. Feinler, et al., and its companion volumes 2 and 3. Additional information can be found in the NTIS publication AD-A137427 "Defense Data Network X.25 Host Interface Specification," December 1983. In turn, the control unit program representing the DNAM control unit sends and receives data from a Series/1 attachment connecting to the Defense Data Network while the control unit program representing the 3274A sends and receives data from another Series/1 attachment serving as a primary station on an SNA SDLC line to a remotely attached real 3274. Systems Network Architecture (SNA) and Synchronous Data Link Control (SDLC) are described in the book by R. J. Cypser, "Communications Architecture for Distributed Systems," Addison Wesley Publishing Company, 1978. Control Unit Protocols VTAM/3274A: The path between VTAM and a 3274A for passing data and control information is over one subchannel in the channel and one device address in the control unit. Addressing information in the data allows the control unit in turn to select and control terminals 50 attached to it on line 32. This allows the control of, for example, 32 terminals over a single address on the channel. Data from the terminal to VTAM and data from VTAM to the terminal all must flow over the single device address on the channel. This implies a duplex flow on that address, with contention for direction of flow resolved via mutual agreement between the control unit and VTAM. (Contention exists because data cannot flow both ways under control of a single channel command, and only one channel command can be in execution on a subchannel at any one time.) To send data from VTAM to the control unit, VTAM starts a channel program in the subchannel comprised of a Write Start command (which carries no data) chained to one or more Write commands (each of which causes a block of data called a PIU, Path Information Unit) to be sent to the control unit. The control unit, having buffering to contain these PIUs, accepts them and then processes them individually. Each PIU is directed to a specific terminal, and several terminals may be the recipient of these several PIUs passed under the common single channel program that VTAM built. If the control unit cannot accept PIUs, a mechanism exists that allows it to tell VTAM (via control unit status presented when the channel command is executed) of this. Later, when the constraining condition has cleared, the control unit can signal VTAM that outbound flow can resume. Data inbound to VTAM can be retrieved from the control unit through the execution of another channel program which is comprised of a Read Start command chained to several Read data commands. Since a control unit cannot initiate a channel command, it must signal VTAM that read service is required. Once having signaled this fact, the control unit retains the inbound data until VTAM responds by executing the Read channel program. DNAM/DDN Control Unit Protocol The DDN control unit operates substantially differently than the 3274A. Instead of one, two subchannels and two device addresses are used. One is used for outbound data only, and the other is used for inbound data and control. To send data, DNAM builds a write channel program which is comprised solely of write commands. The channel program is directed to the device address representing the outbound flow path. One internet datagram is passed under each write command in the channel program. The control unit, being able to accept a datagram, buffers it and then queues it on an X.25 virtual circuit outbound to the network 32′. If unable to accept the data, the control unit signals DNAM, again using control unit status, that it is momentarily unable to accept data from DNAM, and it will later provide an asynchronous indication that the congestion condition has cleared. This is similar to 3274A outbound data operations, except that there is no contention to be resolved on the device relating to data direction. Data inbound to DNAM is presented by the control unit to a read channel program built by DNAM. One or more read commands may be present in the read channel program, and one internet datagram is passed against each read command. The read channel program is executed on the inbound subchannel. Since only read type commands exist on this subchannel, there is no contention for direction of data flow, and DNAM may leave a read program permanently in place on the subchannel. This then is a polled type of operation, rather than an attention (request for read) type of operation that must be used with the 3274A control unit. Operation In the Series/1, the control unit emulation program representing the 3274 executes an Open primitive which declares its readiness to operate on the channel. At that time, the device address over which it is to operate is also declared. BCAM intercepts this request and allocates a control block (a Subchannel Control Entry or SCCE) which it uses to administer the path between the control unit program and the device address it is acquiring. The SCCE contains information required by BCAM to identify what operations are in progress on that path and where critical addresses are located in the control unit program when indications are to be given relating to events on the specified device address on the channel. Thus, for example, if VTAM now executes a channel program directed to the acquired device address, BCAM will signal the owning program that this event has happened. The control unit program will in turn perform operations required to support the command directed to it, including developing information relating to where in Series/1 storage data is to be moved to or from, and how much is to be moved. It then executes a BCAM command which causes the actual data movement to be accomplished. Once the transfer is done, the control unit program is signaled, and it may proceed with whatever additional processing is required to forward the received data (if a channel write operation) or free buffers (if a channel read operation). This entire process operates independently of any other control unit programs which may be using BCAM's and the channel's services. In this example, the DNAM-emulating control unit program can independently Open to BCAM. If it attempts to specify a device address on the channel that is already claimed by another program, the request is denied by BCAM. Only one control unit emulation program can claim a device address at any one time. For DNAM, two addresses must be claimed, one for output and one for input. This is done with two Opens to those respective subchannels/device addresses. BCAM, as before, allocates and fills in the SCCE for each address; it is not cognizant of the fact that only one control unit is being represented over both these paths, in keeping with the strategy mentioned above of keeping its function independent of specific control unit characteristics. The DNAM control unit code is signaled by BCAM of occurrences on the channel directed to the addresses claimed in its Opens. Its behavior will differ from 3274's, however, in that no logic is necessary for contention resolution. In fact, the only similarities between the two different control units lies in the necessity that data be both sent and received.

Claims: Communications controller (30) for coupling a host computer (20) to a plurality of different input/output (I/O) devices (24, 26, 28; 32; 50) including a memory element for storing a plurality of sequences of program instructions and a plurality of control tables associated with the transfer of data between the host computer (20) and the plurality of different I/O devices (24, 26, 28; 32; 50), and a data processing element (34, 38) for executing the plurality of sequences of stored program instruction to control the transfer of data between the host computer (20) and the plurality of different I/O devices (24, 26, 28; 32; 50), whereby each of the plurality of sequences of stored program instructions defines a communications protocol, and each of the plurality of control tables is associated with one of the I/O devices (24, 26, 28; 32; 50) for relating the I/O device (24, 26, 28; 32; 50) with one of the sequences of program instructions; the associated control table being invoked when data is to be transferred between the I/O devices and the host computer (20) using the related sequence of program instructions to impose the defined communications protocol to govern the transfer of the data, characterised by a control unit level control logic means (38) being coupled to a common level control logic means (34) and to the plurality of I/O devices (24, 26, 28; 32; 50), the control unit level control logic means (38) including a plurality of emulated I/O controllers (40, 42, 44) each one controlling one of the plurality of I/O devices (24, 26, 28; 32; 50), the common level control logic means (34) including a device address translation table for directing a common command value to the emulated I/O controller (40, 42, 44) in response to an I/O device address value indicating the I/O device address of the controlled I/O device, the emulated I/O controller (40, 42, 44) including a command translation table for converting the common command value to an I/O device control command for the controlled I/O device using one of the sequence of stored program instructions and the associated control table, the emulated I/O controller (40, 42, 44) outputing the I/O device control command to the associated I/O device after conversion, whereby a plurality of communications protocols can be concurrently executed for communication between the host computer (20) and a plurality of I/O devices (24, 26, 28; 32; 50). The communications controller of claim 1 further characterized by a further sequence of stored program instructions for emulating the communications protocol of a testing I/O device; a testing I/O device connected to said data processing element for invoking the execution of the further sequence of program instructions to enable testing of the communications controller. Communications controller of claim 1 and/or claim 2, characterized in that a plurality of I/O devices (50) are connected to the same emulated I/O controller (40) whereby the device address translation table directs the common command value to the same emulated I/O controller for all the I/O device address values indicating the I/O devices (50) connected to the same emulated I/O controller (40), and the emulated I/O controller (40) directs the converted I/O device control command to the I/O device indicated by the I/O address value. Communications controller according to one of the above claims further characterised in that one of said I/O devices (32) is a communications network. Information processing system including the communications controller of claims 1 to 4 wherein the host computer (20) has a plurality of host access method programs (25), the host computer (20) and communications controller (30) being connected by means of a channel (22), the host access method programs being used to address different ones of the I/O devices.

Inventors: ESTRADA SUZANNE LOUISE, PLOGER RIIS ROBERT, ESTRADA, SUZANNE LOUISE, PLOGER, RIIS ROBERT
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1988
Main classification: G06F13
IPC codes: G06F13, H04L29