1. Field of the Invention
The present invention relates to a method and system for distributing the same data to a plurality of nodes constructing a PBX (Private Branch Exchange) network.
2. Description of the Related Art
Hitherto, when the same local data is desired to be used by nodes in a PBX network constructed by a plurality of nodes, it is troublesome since a maintenance terminal has to access each of the nodes and enter the same data to each node. As the number of nodes increases, it becomes more troublesome.
It is an object of the invention to provide a data distributing method and system which can efficiently distribute local data supplied from a single maintenance terminal to all of nodes and certainly synchronize data among the nodes in a PBX network comprised of a plurality of nodes.
According to a data distributing method of the invention, one of a plurality of nodes constructing the PBX network is set as a master node and the other nodes are set as slave nodes, and local data supplied from a data input unit to the master node is retained in a data retaining unit in the master node. In the master node, the local data is formed in a transfer format by adding a checksum and a destination node designated to each slave node to the local data, and the local data in the transfer format is transferred to the slave node. In each slave node, the local data is retained into a data retaining unit in the slave node after checking whether the designated destination node is the slave node itself or not and checking the checksum.
The data transfer from the master node to each of the slave nodes is performed by broadcast transfer through a transmission line which can perform broadcast transfer.
Each of the slave nodes retains the local data in its data retaining unit, after that, returns reply data formed in a reply format in which the node number of the slave node is set as a transmission source and the node number of the master node is set as a destination to the master node, and the master node receives the reply data and transfers it to the data input unit.
The master node makes the data length of the local data included in the transfer format and transfers the local data in the transfer format.
The master node divides the local data every predetermined length into blocks, makes a serial number of each block included in the transfer format, and transfers the data in the transfer format.
The same data as the local data which is transferred to the slave node and stored in the data retaining unit in the slave node is similarly transferred for data collation from the master node, and each of the slave nodes collates the local data newly transferred with the local data which has been already retained in its data retaining unit and returns a collation result in a reply format in which the node number of the slave node is set as a transmission source and the node number of the master node is set as a destination to the master node.
According to a data distributing system of the invention, one of a plurality of nodes constructing a PBX network is set as a master node and the other nodes are set as slave nodes, the master node comprises a master data retaining unit, data writing means for writing local data supplied from a data input unit into the master data retaining unit, data editing means for editing the supplied local data together with a checksum of the local data and a destination node designated to each of the slave nodes into a transfer format, and data transfer means for broadcast transferring the edited data through a transmission line which can perform broadcast transfer to the slave node. Each of the slave nodes comprises a slave data retaining unit, data receiving means for checking whether data transferred from the master node is addressed to the slave node itself or not and receiving the data, and data writing means for writing the local data into the slave data retaining unit when the checksum of the received transfer data is checked and matched.
Each of the slave nodes comprises data return means for forming the data in a reply format in which the node number of the slave node itself is set as a transmission source and the node number of the master node is set as a destination after the local data is retained in the slave data retaining unit of the slave node and returning reply data in the format to the master node, and the master node has data receiving means for receiving the data returned from the slave node and transferring the data to the data input unit.
The data editing means in the master node makes the data length of the local data included in the transfer format.
The data editing means in the master node divides the local data into blocks on a predetermined length unit basis and makes a serial number of each block included in the transfer format.
The data transfer means in the master node similarly transfers the local data for data collation, which is the same as the local data transferred to the slave node and stored in the slave data retaining unit in the slave node. Each of the slave nodes is further provided with a data buffer unit for storing the local data newly transferred and data collating means for collating the local data stored in the data buffer unit with the local data which has been already retained in the data retaining unit, and the data returning means in each of the slave nodes returns a collation result in a reply format in which the node number of the slave node itself is set as a transmission source and the node number of the master node is set as a destination to the master node.