METHOD OF PREVENTING DATA INCONSISTENCY BETWEEN MASTER EXCHANGE DATA AND BACKUP EXCHANGE DATA

Abstract: The present invention relates to preventing inconsistency between the data maintained in a master exchange (DXT1) and a backup exchange (DXT2) in a telecommunication system. To ensure a data distribution which is even more reliable than before, the system maintains a copy in a slave exchange (DXT3). When the slave exchange receives data from the master exchange or the backup exchange: the received data or the corresponding data previously stored in the slave register is selected for use on the basis of the comparison of the information included in their update information, the data stored in the slave exchange is sent to the exchange having sent the received data if the data stored in the slave exchange is selected for use, the received data is sent to the master exchange if the data received from the backup exchange is selected for use, and the received data is stored in the slave exchange if the received data is selected for use.

Description: METHOD OF PREVENTING DATA INCONSISTENCY BETWEEN MASTER EXCHANGE DATA AND BACKUP EXCHANGE DATA. The present invention relates to a method of preventing inconsistency between data maintained in a master exchange and in its backup ex- change in a telecommunication system. The invention also relates to a telecommunication system comprising a master exchange including memory means for storing data and means for updating the stored data in response to data received from other parts of the system, a backup exchange having a data transmission connection with the master exchange, the backup exchange including means for receiving and storing in a memory means the data stored in the memory means of the master exchange for keeping a back-up copy of the data stored in the memory means of the master exchange. The present invention relates particularly to maintaining data in exchanges of mobile communication systems, although the invention can also be utilized in other connections. The invention can be utilized in a telecommunication system where a backup exchange is designated for a master exchange to ensure the operation of the system, the backup exchange keeping a backup copy of the data stored in a master exchange database. In some systems, the backup exchange can, if required, replace the master exchange by un- dertaking its tasks, whereby the operation of the entire system is not interrupted even if the master exchange is, for some reason, prevented from operation. The problem in such a communication system described above is that if a data transmission connection is for some reason cut off, updatings performed in different parts of the system are not necessarily transmitted to both exchanges, whereby databases in the master exchange and in the backup exchange can include deviant information (for example relating to a particular subscriber), i.e. their data is mutually inconsistent. The aim of the present invention is to solve the problem described above and provide a method of preventing data inconsistency between the master exchange and its backup exchange in a telecommunication system. This object is achieved by the method of the invention characterized by keeping a copy of the master exchange data in a slave exchange having a data transmission connection with the master exchange and the backup exchange, and when the slave exchange receives data from the master exchange or from the backup exchange: the received data or the corresponding data previously stored in the slave register is selected for use on the basis of a comparison of information included in the update information of said data, the data stored in the slave exchange is sent to the exchange that has sent the received data if the data stored in the slave exchange is selected for use, the received data is sent to the master exchange if the data received from the backup exchange is selected for use, and the received data is stored in the slave exchange if the received data is selected for use. The invention is based on the idea that when a copy of the master exchange data is kept in the backup exchange and also in the slave exchange having a data transmission connection with the master exchange and the backup exchange, the slave exchange can then detect a potential inconsistency between the master exchange and the backup exchange data on the basis of the update information in the data received by the slave exchange, and start eliminating the inconsistency. The method of the invention enables the prevention of the inconsistency in situations where disturbances occur in a telecommunication system. This improves the reliability of the system dramatically. In a preferred embodiment of the invention, the decision on the data the slave exchange selects for use is based on an age stamp included in the update information of the data. The slave exchange selects for use the data which has last been updated. Thus, updatings performed to the data during disturbance can also be taken into account, and situations do not occur where an updating is lost because of a system disturbance. In another preferred embodiment of the invention, the decision on the data the slave exchange selects for use depends on who has last updated data on the basis of the update information. Thus, it can be defined for example that the data updated by the operator is selected for use rather than the data updated by the subscriber himself. The invention also relates to a telecommunication system wherein the method of the invention can be applied. The system of the invention is characterized in that the system comprises at least one slave exchange having a data transmission connection with the master exchange and the backup exchange, the slave exchange comprising: communication means for receiving data from the master exchange and the backup exchange, comparison means for selecting for use either the received data or corresponding data stored in a memory means of the slave exchange on the basis of the update information of said data, and processing means arranged: - to send the data stored in the memory means of the slave exchange to the exchange having sent the received data when the comparison means have selected for use the data stored in the memory means of the slave exchange, - to store the received data in the memory means of the slave exchange when the comparison means have selected for use the received data, and - to send the received data to the master exchange when the comparison means have selected for use the data received from the backup exchange. The preferred embodiments of the method and telecommunication system are disclosed in the attached dependent claims 2 to 3 and 5 to 7. The invention will be described in more detail by means of a preferred embodiment with reference to the accompanying figures, of which Figure 1 shows a block diagram of a first preferred embodiment of the telecommunication system of the invention, Figure 2 shows a flow diagram of a first preferred embodiment of the method of the invention, and Figure 3 illustrates the operation of the system of the invention in disturbance situation. Figure 1 shows a block diagram of a first preferred embodiment of the telecommunication system of the invention. The mobile telephone system presented in Figure 1 can be for example a part of the TETRA network (Trans- European Trunked Radio system), although the invention can also be applied in other connections. A master exchange DXT1 in Figure 1 has a data transmission connection with a backup exchange DXT2 and with slave exchanges DXT3 to DXT6. A database DB2 in the backup exchange DXT2 keeps a back-up copy of the data in a database DB1 in the master exchange DXT1. The data to be maintained in the master exchange database DB1 contains information necessary for the operation of the system, such as subscriber information and/or group information. The individual subscriber infor- mation can include for example: - subscriber identity - subscriber location information, i.e. information indicating the cell in which the subscriber is registered, and - subscriber services information, such as information indicating types of calls the subscriber is entitled to. The subscriber information is always stored in the data base DB1 (the subscriber ' s home mobile telephone exchange) of the master exchange DXT1 and in the database DB2 of the backup exchange DXT2. Furthermore, if the subscriber is registered in some other exchange than the master exchange or the backup exchange, the information is also copied in said slave ex- change. The group information contains information regarding one or several groups of subscribers who, for example, often need to communicate with each other. Said subscribers have been defined as members of the same group in the system. Thus, it is very easy to make for example group calls, i.e. calls that all the group members can hear. The group information for a single group can include for example: - group identity - a list of group members (for example a list of subscriber identities), and - group area specification, i.e. information indicating the cells in the area of which the network supports the operation of the group. The group information is always stored in the master exchange (i.e. in the home mobile telephone exchange of the group) and in the backup exchange. In addition, the information is copied in all the slave exchanges con- taining even a single cell in their area supporting the operation of the group. In the case in Figure 1 , the data can be updated either in the master exchange DXT1 which transmits the updating to the backup exchange DXT2 and at least to the slave exchange DXT3, or in the slave exchange DXT3 which transmits the updating to the master exchange DXT1 which, in turn, transmits the updating onward. If the slave exchange DXT3 cannot contact the master exchange DXT1 , the slave exchange then transmits the updating to the backup exchange DXT2. In that case, the backup exchange operates like the master exchange. To avoid a situation where disturbances in a telecommunication system cause inconsistency between the data of the master exchange DXT1 and the backup exchange DXT2 (and possibly between the data of one or several slave exchanges), the slave exchange DXT3 is in the case in Figure 1 arranged to control the updatings it receives. In accordance with the invention, a comparison unit C in the slave exchange DXT3 thus compares the update information included in the data received from the master exchange or the backup exchange via a telecommunication unit T with the update information of data previously stored in a database DB3 in the slave exchange, and decides on the basis of the said comparison whether to employ the received data or the data in the database. The selection between the received data and the corresponding data stored in the database can be based on age stamps, the age stamps denoting the last updating of the data. If the slave exchange DXT3 detects that more recent data than the data it has just received is stored in its database, it is obvious that the system is disturbed and causes the data in different exchanges to be mutually inconsistent. A processing unit P in the slave ex- change then sends the data stored in the data base DB3 to the exchange having sent the obsolete data. The slave exchange DXT3 detects inconsistency if it in any situation receives updated data from the backup exchange DXT2, because if the system operates in a normal manner it should receive updatings only from the master exchange DXT1. In this case, the processing unit P sends the received data to the master exchange DXT1. The master exchange DXT1 and the backup exchange DXT2 are arranged to transmit all the data received from the slave exchange to all the exchanges with which they have a data transmission connection. The most recent data can thus be distributed to all the exchanges having a data transmission connection with the master exchange or the backup exchange. Instead of selecting the data for use by the comparison based on the above described age stamps, the slave exchange can select the data for use in some other alternative manner, for example by using information indi- eating the update performer. If the slave exchange has to select for use either the data updated by the operator or, alternatively, the data updated by the subscriber, the slave exchange can be programmed to select for use the data updated by the operator. Figure 2 shows a flow diagram of a first preferred embodiment of the invention. For example the slave exchange DXT3 in Figure 1 can be controlled in a manner presented in the flow diagram in Figure 2. In block A, the slave exchange receives data, i.e. a new updating. Depending on the case, the updating can comprise a whole database or, alternatively, one or a few records in a database (regarding for example individual subscriber information). In block B, the slave exchange compares the age stamp of the received data with the age stamp of the corresponding data previously maintained in its database. If the age stamp of the data in the slave exchange database is more recent than the age stamp of the received data, the received updating is ob- solete. In that case, the routine proceeds to block C, where the slave exchange sends the data maintained in its database to the exchange from where the obsolete data is received. In contrast, if the age stamp of the data in the slave exchange memory is older than the age stamp of the received data, the routine proceeds to block D where the origin of the received data is checked. If it is detected that a master exchange has sent the received data, the routine proceeds to block F. In contrast, if it is detected that the backup exchange has sent the received data, the routine proceeds to block G where the slave exchange sends the received data to the master exchange. Next, the routine proceeds to block F. In block F, the slave exchange updates the data maintained in its database with a new updating, i.e. with the received data. Figure 3 illustrates the operation of the system of the invention in disturbance situation. Since each slave exchange 3 to 5 in Figure 3 operates in a manner described in the flow diagram in Figure 2, updatings performed to the data of the slave exchange 5 are distributed to a master exchange 1 and up to its slave exchange 3 even if a connection 11 from the slave exchange 5 to the master exchange 1 , a connection 12 from a backup exchange 2 to the slave exchange 3, and a connection 10 between the master exchange 1 and the backup exchange 2 are cut off simultaneously (illustrated by a dashed line). When the backup exchange 2 detects that it is not able to transmit the data received from the slave exchange 5 to the master exchange (because of a defective connection) it operates like the master exchange, i.e. it transmits the received data to all the exchanges with which it has a data transmission connection. Consequently, the slave exchange 4 receives the data. The slave exchange 4, in turn, detects that it has received data from the backup exchange 2, whereby it selects said data (the most recent updating) for use, and, in addition, also transmits it to the master exchange 1. The master exchange 1 , in turn, sends the received data to all the exchanges with which it has a data transmission connection, i.e. also to the slave exchange 3. Thus, a break in the data transmission connection between the master exchange 1 and the backup exchange 2 does not significantly injure the operation of the system. It is obvious that the above description and the related figures are only intended to illustrate the present invention. Telecommunication systems also comprise other information besides the above mentioned subscriber information and group information presented by way of example, and to the transmission of which the present invention can be applied. A variety of modifications and variations will be apparent to those skilled in the art without devi- ating from the scope and spirit of the invention disclosed in the appended claims.

Claims: CLAIMS: 1. A method of preventing inconsistency between the data maintained in a master exchange (DXT1) and its backup exchange (DXT2) in a telecommunication system, characterized by keeping a copy of the master exchange data in a slave exchange (DXT3) having a data transmission connection with the master exchange (DXT1) and the backup exchange (DXT2), and when the slave exchange receives data (A) from the master exchange or from the backup exchange: the received data or the corresponding data previously stored in the slave register is selected for use on the basis of a comparison of information included in the update information (B) of said data, the data stored in the slave exchange is sent to the exchange that has sent the received data (C) if the data stored in the slave exchange is selected for use, the received data is sent to the master exchange (E) if the data received from the backup exchange is selected for use, and the received data is stored in the slave exchange (F) if the received data is selected for use. 2. A method as claimed in claim 1, characterized by selecting for use the data being last updated on the basis of the update information. 3. A method as claimed in claim 1, characterized by comparing the information included in the update information regarding update performers and by selecting for use the data whose update performer is highest in a predetermined hierarchy. 4. A telecommunication system comprising a master exchange (DXT1) including memory means (DB1) for storing data and means for updating the stored data in response to data received from other parts of the system, a backup exchange (DXT2) in data transmission connection with the master exchange, the backup exchange including means for receiving and storing in a memory means (DB2) the data stored in the memory means (DB1) of the master exchange for keeping a back-up copy of the data stored in the memory means of the master exchange, characterized in that the system comprises at least one slave exchange (DXT3) having a data trans- mission connection with the master exchange and the backup exchange, the slave exchange comprising: communication means (T) for receiving data from the master exchange and the backup exchange, comparison means (C) for selecting for use either the received data or corresponding data stored in a memory means (DB3) of the slave exchange on the basis of the update information of said data, and processing means (P) arranged: - to send the data stored in the memory means (DB3) of the slave exchange to the exchange having sent the received data when the comparison means (C) have selected for use the data stored in the memory means (DB3) of the slave exchange, - to store the received data in the memory means (DB3) of the slave exchange when the comparison means (C) have selected for use the received data, and - to send the received data to the master exchange (DXT1) when the comparison means (C) have selected for use the data received from the backup exchange (DXT2). 5. A system as claimed in claim 4, characterized in that the comparison means (C) are arranged to select for use the data being last updated on the basis of an age stamp included in the update information. 6. A system as claimed in claim 4, characterized in that the comparison means (C) are arranged to select for use the data whose update performer is highest in a predetermined hierarchy. 7. A system as claimed in claim 4, characterized in that said system is a mobile communication system, and that said data consists of the subscriber data of the system.

Inventors: PENTIKAEINEN JUKKA, PENTIKAEINEN, JUKKA
Applicants: NOKIA TELECOMMUNICATIONS OY, PENTIKAEINEN JUKKA, PENTIKAEINEN, JUKKA
Application year: 1998
Main classification: H04Q3
IPC codes: H04M3, H04Q3, H04Q11, H04W24