Abstract:
In communication which uses a communication line which allows the determination of a communication protocol in a communication port prior to the communication like in an ISDN network, a communication program corresponding to the determined communication protocol is dynamically linked and initialized to allow dynamic selection of the communication protocol.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to a communication control unit which allows the effective utilization of a single communication line by dynamically selecting various types of communication protocols, and more particularly to a protocol selector and a protocol selection method in a communication control unit which allows the selection of a communication protocol by negotiation with a communicating communication control unit. 
     In the past, the communication between terminal devices or between a host and a terminal device has been done by utilizing a closed area network or an exclusive line network which operates with a switching system connecting those terminal devices or host. Accordingly, the communication protocol used for each equipment is fixedly determined for each equipment. As a result, communication between equipments having different communication protocols is in fact not attained or possible in such systems. 
     A prior art for solving the above problem is disclosed in JP-A-61-263352 and JP-A-61-127251. In the system disclosed in JP-A-61-263352, where a plurality of types of different terminal devices are connected on a subscriber line, means for indicating the usage status of the respective terminal devices to a calling terminal device when the terminal devices receive a call is provided on the subscriber line so that the calling terminal device may execute a communicatable call set request. Namely, means for indicating a communicatable protocol from the receiving terminal device is used to select the protocol in the calling terminal device. 
     In the art disclosed in JP-A-61-127251, where a terminal device which can process a plurality of protocols is connected to a subscriber line, a program which corresponds to the protocol designated by a calling terminal device is loaded when the call is received so that a plurality of protocol processes can be executed on a single subscriber line. Namely, a communicatable protocol is recognized by the called terminal device which will then select and execute the protocol. 
     However, in the system disclosed in JP-A-61-263352, only means for allowing the calling terminal device to select the communicatable communication protocol unit of the called terminal device is available when the calling terminal device calls, and no consideration is given to the dynamic selection of the communication protocol of the calling terminal device by the protocol of the communication control unit of the destination terminal device when terminal device is called or calls. Accordingly, the type of destination terminal device which is communicatable with a calling terminal device is limited. 
     In the prior art communication control unit, the selection and initialization information of the protocols for the respective layers which process a communication frame is one which has been preset by a user prior to the communication. Such information stored in an auxiliary memory is fetched at the time of start of the communication program to effect an initialization. Accordingly, the generated port cannot operate in other than the initially set protocol. 
     Where the above system is applied to an ISDN in which the utilization format of the communication line is negotiable, the communication protocol is fixedly determined for each B channel which is the communication port, and it is not possible to select an optimum line utilization format in accordance with a request of an application program or effect communication in response to a communication request if a vacant generated B channel which matches a protocol of the destination terminal device is not available. 
     Further, in the system disclosed in JP-A-61-263352, only the means for dynamically selecting the protocol designated by the calling terminal device, in the called terminal device when it receives a call is provided, and no consideration is given to simultaneous operation of a plurality of protocols in one communication layer. Accordingly, during communication with a called terminal device, the communication in another protocol cannot be attained. 
     It is an object of the present invention to solve the problems encountered in the prior art units and provide a protocol selector and a protocol selection method in a communication control unit which can dynamically determine a protocol of a communication port, set a coupling point of an upper layer and a lower layer so that simultaneous communication with various communication control units is attained. 
     SUMMARY OF THE INVENTION 
     In accordance with the present invention, the above object is achieved in the communication which uses a communication line which allows the determination of a communication protocol in a communication port prior to the communication, such as in an ISDN network, by dynamically linking a communication control program which corresponds to the determined communication protocol and initializing it to allow the dynamic selection of the communication protocol. 
     When a communication is conducted by using an ISDN network, the communication control program determines the communication protocol of the communication with the destination terminal device through the B channel, by using the D channel, which is a calling control communication port, in response to a command from the application program or a communication request from the destination terminal device, and it is linked and initialized when the communication protocol is determined. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 shows a block diagram of one embodiment of the present invention; 
     FIG. 2 shows a logical structure of a program; 
     FIG. 3 illustrates a connection sequence of a B channel; and 
     FIG. 4 shows a format of a SETUP frame which is a call set message. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     One embodiment of a protocol selection method in accordance with the present invention now will be explained. In FIG. 1, numeral 101 denotes a central processing unit, numeral 102 denotes a main memory, numeral 103 denotes an ISDN network, numeral 104 denotes an auxiliary memory, numeral 105 denotes a communication control processor, numeral 106 denotes a telephone set and numeral 107 denotes a bus controller. 
     In the embodiment of the present invention shown in FIG. 1, the present invention is applied to the ISDN connected terminal devices. The software structure and operation thereof are logically expressed in FIG. 2. 
     In FIG. 1, the ISDN network 103 is a communication network for controlling switching of data and voice between the device shown in the embodiment of FIG. 1 and other devices. The main memory 102 contains a communication application program, a communication control program, various communication control programs, initialization information therefor and an I/O driver, fetched from the auxiliary memory 104. Those programs and driver are operated by the central processing unit (CPU) 101 under the control of an operating system (OS) core stored in the main memory 102. In an ISDN basic group interface, the line control processor 105 has one D channel port and two B channel ports, and has a separate voice data processor for the voice data to be handled in the B channel. The voice data is transmitted to and from the telephone set 106 through the voice data processor. 
     The operation of the embodiment of the present invention is now explained with reference to FIGS. 2 to 4. In the present embodiment, the communication protocol comprises layers 1 to 6, and the communication control programs of the layers 1 and 2 which are low order layers of the communication control program for the respective layers corresponding to the respective layer protocols, are loaded into a B 1  channel control unit and a B 2  channel control unit in an I/O space. Each layer communication protocol has a plurality of protocols, and communication control programs corresponding to the respective communication protocols are stored in the auxiliary memory 104. The communication control programs, one from each layer, are combined so that they function as one communication protocol as a whole. 
     (1) When the unit is powered on, the communication control program and the I/O driver programs are loaded from the auxiliary memory 104 into the main memory 102 by the operating system core and they are initialized. The communication control program then fetches the D channel control program from the auxiliary memory 104 and loads it into a dual port memory of the line control processor 105 and opens a communication port between the D channel call control unit and the communication control program. As a result, the communication application program is ready to initiate the communication setting through the ISDN network 103 (201). 
     (2) When a start of communication request by the B channel is issued to the communication control program by the communication application program by designating the B channel protocol, the communication control program issues a B channel connection request to the D channel call control unit (201, 202). 
     (3) The D channel call control unit thus sets the connection of the ISDN network, sends a SETUP message to the connection destination station, the host computer in this case, and recognizes the protocol for the destination station. The SETUP message comprises a port indicating transmission ability of the B channel, and an identifier for designating one of the parameters of the high order layers and the low order layers of the communication protocol, that is, the layer communication control programs, and it has a format as shown in FIG. 4. When the receiving station receives the SETUP message, it determines whether it is able to communicate in the communication protocol designated by the received SETUP message. If it is able to communicate, it sends back a CONNECT message, but if it is not able to communicate, it sends back a RELEASE COMPLETE message to the sending station through the D channel. When the sending station receives the RELEASE COMPLETE message from the destination station, it changes the parameter of the protocol and resends the SETUP message, and repeats the above process until the destination station sends back the CONNECT message. When the sending station receives the CONNECT message from the destination station, the selection and setting of the protocol through the D channel is terminated (203). 
     (4) When the setting of the communication protocol for the B channel is completed through the above process, the communication control program of the sending station instructs the I/O driver program to load the second layer communication control program selected above from the auxiliary memory 104 to the main memory 102 and store it into the designated B channel control unit of the dual port memory. In the present embodiment, it is assumed that the layer 1 communication control program is the only one which has previously been stored in the B channel control unit (204, 205, 206). 
     (5) The communication control program further reads in the initial information and requests the initialization to the layer 2 communication control program (207, 208, 209). 
     (6) Then, the communication control program loads the determined layer 3 communication control program from the auxiliary memory 104 to the main memory 102 in the same manner as that described above, and issues the initialization request to the layer 3 communication control program by the initialization information. Further, a necessary number of service access points (SAP) are opened to the communication control programs of the higher order than the layer 3 to link them to the low order programs (210, 211, 212). 
     (7) The communication control program further loads, initializes and links the selected layers 4 to 6 communication control programs to finally provide a communication port to the communication application program (213, 214, 215, 216). 
     (8) On the other hand, when the receiving station sends the CONNECT message, it receives a CONNECT ACK message from the ISDN network 103, sends a data link set message SNRM (set normal response mode) to the sending station, and sets, links and initializes the B channel protocol in the receiving station in the same manner as that of the sending station. The receiving station may have only one available communicatable protocol. 
     (9) When the sending station receives the SNRM message, it sends an unnumbered acknowledge (UA) to the receiving station. 
     Through the above process, the sending station and the receiving station can determine the mutually acceptable communication protocol by selecting the communication control programs, one for each layer, and linking them. In this manner, the mutual communication through the B channel is attained. 
     In the above embodiment, the communication protocol comprises six layers, although it may comprise any number of layers, for example, one layer. 
     In the embodiment of the present invention, the communication line is the ISDN network. The ISDN network usually has two channels. 
     Accordingly, in FIG. 2, a coupling point may be set between the respective sets of a plurality of protocols in the layer 2 communication control program of a B 1  channel and a B 2  channel which operate in a data link layer which is an I/O space, and the layer 3 communication program which operates in the lowermost layer of the system space, and the coupling point may be dynamically switched. 
     In this manner, in a communication which uses the ISDN network, even if one of the B channels is busy, the communication by any protocol may be attained through the same communication control unit by using the other B channel so that the B channels can be efficiently utilized. 
     The present configuration may be applicable to not only the communication which utilizes the ISDN network but also the communication which utilizes a plurality of B channels. In the latter case, as many coupling points as the product of the number of sets of the protocols which are operable in the uppermost layer of the data link layers and the number of B channels are provided between the communication control program of the lowermost layer which operates in the system space and the communication control program of the uppermost layer of the data link layers so that it can be dynamically switched. 
     In accordance with the present invention, since the communication protocol may be dynamically selected prior to the start of communication, communication with many communication media is simply attained. Particularly, the communication protocol when the B channel is used can be dynamically selected by a command from the communication application program so that the B channel can be efficiently utilized.