CN100512474C - Automatic synchronization method for master-slave board storage version of the communication system - Google Patents
Automatic synchronization method for master-slave board storage version of the communication system Download PDFInfo
- Publication number
- CN100512474C CN100512474C CNB200710097617XA CN200710097617A CN100512474C CN 100512474 C CN100512474 C CN 100512474C CN B200710097617X A CNB200710097617X A CN B200710097617XA CN 200710097617 A CN200710097617 A CN 200710097617A CN 100512474 C CN100512474 C CN 100512474C
- Authority
- CN
- China
- Prior art keywords
- version
- board
- storage
- slave board
- standby
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Hardware Redundancy (AREA)
Abstract
本发明公开了一种通讯系统主备板存储版本自动同步的方法,包括如下步骤:(1)备板上电后,向主板发送准备就绪消息;(2)所述主板收到所述准备就绪消息后,查询所述备板的存储版本是否与其一致,如果不一致并且所述主板的存储版本处于正常状态时,则所述主板向所述备板发送自动同步请求;(3)所述备板收到所述自动同步请求后,从所述主板获取相应的版本文件,直至所有版本文件自动同步完成。采用本发明所述自动同步的方法,以解决使用手动方式,从主板向备板同步存储版本时,因为大量的人工操作带来不便性和人工操作失误带来不可靠性。
The invention discloses a method for automatically synchronizing the storage versions of the main and standby boards of a communication system, which comprises the following steps: (1) after the standby board is powered on, it sends a ready message to the main board; (2) the main board receives the ready message; After the message, query whether the storage version of the backup board is consistent with it, if inconsistent and the storage version of the main board is in a normal state, then the main board sends an automatic synchronization request to the backup board; (3) the backup board After receiving the automatic synchronization request, obtain the corresponding version files from the main board until the automatic synchronization of all version files is completed. The automatic synchronization method of the present invention is adopted to solve the inconvenience caused by a large number of manual operations and the unreliability caused by manual operation errors when using a manual method to synchronize the storage version from the main board to the backup board.
Description
技术领域 technical field
本发明涉及通讯领域,尤其涉及一种通讯系统主备板存储版本自动同步的方法。The invention relates to the field of communication, in particular to a method for automatically synchronizing the storage versions of the main and standby boards of the communication system.
背景技术 Background technique
通讯系统设备都由多个不同的子系统构成,而每个子系统中又存在着大量的单板,按照其功能我们可以将其分为主控板和受控板,受控单板的版本软件存放在主控单板的存储设备上。受控单板复位后可以从主控单板的存储设备上读取需要运行的版本。有些重要的受控板上也存放着存储版本。Communication system equipment is composed of many different subsystems, and there are a large number of single boards in each subsystem. According to their functions, we can divide them into main control boards and controlled boards, and the version software of the controlled single boards Stored on the storage device on the main control board. After the controlled single board is reset, the version to be run can be read from the storage device of the main control single board. Stored versions are also stored on some important controlled boards.
由于通讯系统对可靠性的高要求,对系统运行影响较大的单板,都要求存在备板作为备份,以保证主板发生异常时,作为备份的备板仍然可以保证系统正常运行。为了保证主板发生异常时,备板可以完全代替主板,就需要提供一种方法保证主板和备板上存储的受控版本软件完全一致。Due to the high reliability requirements of the communication system, the single board that has a great impact on the system operation requires a backup board as a backup to ensure that when the main board is abnormal, the backup board can still ensure the normal operation of the system. In order to ensure that the standby board can completely replace the main board when an exception occurs on the main board, it is necessary to provide a method to ensure that the controlled versions of software stored on the main board and the standby board are completely consistent.
在存在大量主备单板的商用局中,使用手动方式,从主板向备板同步存储版本时,因为大量的人工操作易带来不便性和人工操作失误易带来不可靠性。In a commercial office where there are a large number of active and standby boards, when using the manual method to synchronize the storage version from the main board to the standby board, a large number of manual operations will easily bring inconvenience and manual operation errors will easily lead to unreliability.
发明内容 Contents of the invention
本发明要解决的技术问题是提供一种通讯系统主备板存储版本自动同步的方法,以解决使用手动方式,从主板向备板同步存储版本时,因为大量的人工操作带来不便性和人工操作失误带来不可靠性。The technical problem to be solved by the present invention is to provide a method for automatically synchronizing the storage version of the main board and the standby board of the communication system, so as to solve the inconvenience caused by a large number of manual operations when using a manual method to synchronize the storage version from the main board to the backup board. Operational error brings unreliability.
为了解决上述技术问题,本发明提供一种通讯系统主备板存储版本自动同步的方法,包括如下步骤:In order to solve the above-mentioned technical problems, the present invention provides a method for automatically synchronizing storage versions of the main and standby boards of the communication system, including the following steps:
(1)备板上电后,向主板发送准备就绪消息;(1) After the backup board is powered on, it sends a ready message to the main board;
(2)所述主板收到所述准备就绪消息后,查询所述备板的存储版本是否与其一致,如果不一致并且所述主板的存储版本处于正常状态时,则所述主板向所述备板发送自动同步请求;(2) After the main board receives the ready message, it inquires whether the storage version of the standby board is consistent with it. If it is not consistent and the storage version of the main board is in a normal state, the main board sends Send an automatic synchronization request;
(3)所述备板收到所述自动同步请求后,从所述主板获取相应的版本文件,直至所有版本文件自动同步完成;(3) After the backup board receives the automatic synchronization request, it obtains the corresponding version file from the main board until the automatic synchronization of all version files is completed;
若同步失败,则在所述备板上设置同步失败标志;当设置了同步失败标志的单板作为主板时,不执行自动同步。If the synchronization fails, a synchronization failure flag is set on the standby board; when the single board with the synchronization failure flag set is used as the main board, automatic synchronization is not performed.
本发明所述方法,其中,所述步骤(1)中包括如下步骤:The method of the present invention, wherein, the step (1) comprises the following steps:
所述备板上电完成,先检查该板上的资源都处于可用状态后,再向主板发送准备就绪消息。After the backup board is powered on, first check that all the resources on the board are available, and then send a ready message to the main board.
进一步地,所述备板上的资源包括内存,系统数据库,主备板的通讯链路。Further, the resources on the standby board include memory, a system database, and a communication link of the main board and the standby board.
本发明所述方法,其中,所述步骤(2)中,如果所述主备板上的存储版本一致,则流程结束。The method of the present invention, wherein, in the step (2), if the storage versions on the master and slave boards are consistent, the process ends.
本发明所述方法,其中,所述步骤(3)一旦开始,就不允许所述主备板上的存储版本发生改变。The method of the present invention, wherein, once the step (3) starts, the storage versions on the master and slave boards are not allowed to change.
进一步地,所述存储版本发生改变包括版本添加、版本删除、版本下载、激活、去激活。Further, the change of the stored version includes version addition, version deletion, version download, activation, and deactivation.
本发明所述方法,其中,所述主备板是所有存在存储版本并且有主备配置的单板。In the method of the present invention, the master and slave boards are all single boards with storage versions and master and slave configurations.
本发明所述方法,其中,所述主备板包括主控板。In the method of the present invention, the main and standby boards include a main control board.
本发明所述方法,其中,所述步骤(3)中,所述版本文件包括所述主板上存储的受控板的版本文件,以及与所述版本文件相关的信息文件。The method of the present invention, wherein, in the step (3), the version file includes a version file of the controlled board stored on the main board, and information files related to the version file.
本发明所述方法,其中,所述步骤(3)中,所述备板从所述主板获取文件的方式,包括文件传输协议传送方式。The method of the present invention, wherein, in the step (3), the manner in which the backup board acquires files from the main board includes a file transfer protocol transmission manner.
本发明所述方法,其中,所述步骤(2)中,所述主板查询所述备板的存储版本是否与其一致是向所述备板发送存储版本查询消息并收到所述备板的返回的查询应答后,比较两个板上的存储版本是否一致。The method of the present invention, wherein, in the step (2), the main board inquires whether the storage version of the backup board is the same as sending a storage version query message to the backup board and receiving a return from the backup board After the query is answered, compare whether the storage versions on the two boards are consistent.
与现有技术相比,本发明的优点在于提供一种通讯系统主备板存储版本自动同步的方法,以解决使用手动方式,从主板向备板同步存储版本时,因为大量的人工操作带来不便性和人工操作失误带来不可靠性。可以给操作人员带来极大的便利。必将有效提高整个商用局的版本升级效率。Compared with the prior art, the present invention has the advantage of providing a method for automatically synchronizing the storage version of the main board and the standby board of the communication system, so as to solve the problem of manually synchronizing the storage version from the main board to the standby board due to a large number of manual operations. Inconvenience and human error create unreliability. It can bring great convenience to the operator. It will effectively improve the version upgrade efficiency of the entire commercial office.
附图说明 Description of drawings
图1是本发明通讯系统主备板存储版本自动同步的方法实施例流程示意图;Fig. 1 is a schematic flow chart of an embodiment of a method for automatically synchronizing storage versions of the main and standby boards of the communication system of the present invention;
图2是本发明CDMA移动通讯系统CCM单板主备版本自动同步应用实施例流程图。Fig. 2 is a flow chart of an embodiment of the automatic synchronization application of the main and backup versions of the CCM single board of the CDMA mobile communication system of the present invention.
具体实施方式 Detailed ways
以下通过附图和具体实施方式对本发明进行详细描述。The present invention will be described in detail below with reference to the drawings and specific embodiments.
本发明所述的主备板存储版本的自动同步方法,是指当备板正常启动后,主板通过查询备板的存储版本,得知目前的主板备板的存储版本是否一致。如果不一致则将主板的版本传送到备板,从而保证主备板存储版本的一致性。The method for automatically synchronizing the storage versions of the main and standby boards in the present invention refers to that after the standby board starts up normally, the main board learns whether the storage versions of the current main board and the standby board are consistent by querying the storage versions of the standby board. If they are not consistent, the version of the main board is transmitted to the standby board, so as to ensure the consistency of the storage versions of the main board and the standby board.
如图1所示是本发明通讯系统主备板存储版本自动同步的方法实施例流程示意图,包括如下步骤:As shown in Figure 1, it is a schematic flow chart of an embodiment of the method for automatically synchronizing storage versions of the main and standby boards of the communication system of the present invention, including the following steps:
步骤101,备板上电完成后,首先检查备板上的各种资源(包括内存,系统数据库,主备板的通讯链路等)都处于可用状态,如果一切正常则向主板发送准备就绪消息。发送这条消息说明备板的各种资源都处于可用状态。随时可以接受主板发起的版本自动同步请求;
步骤102,主板收到准备就绪消息后,向备板发送存储版本查询消息并接收备板的返回的查询应答消息,该应答消息包括备板存储版本信息;
步骤103,主板比较两个板上的存储版本是否一致,如不一致,则转步骤104;如果一致,则流程结束;
步骤104,如果不一致并且主板的存储版本处于正常状态时,则主板逐个文件向备板发送自动同步请求,该文件包括但不限于主板上存储的受控板的版本文件,还可以包括与版本文件相关的信息文件或者其他文件;
步骤105,备板收到主板发来的自动同步请求后,通过FTP(文件传输协议)或其它传送方式从主板获取相应的版本文件,直到所有版本文件同步完成。
上述主备板存储版本自动同步流程中,如果自动同步失败,则在备板上设置同步失败标志。因为备板此时的存储版本已经处于不正常状态,所以这块单板如果成为主板,作为同步的发起者,有可能破坏一个存储版本正常的单板,因此设置同步失败标志,表示这块单板的存储版本处于异常状态。当设置了同步失败标志的单板作为主板时,不会发生自动同步。In the above-mentioned automatic synchronization process of the storage versions of the active and standby boards, if the automatic synchronization fails, a synchronization failure flag is set on the standby board. Because the storage version of the standby board is already in an abnormal state at this time, if this board becomes the main board, as the initiator of synchronization, it may destroy a board with a normal storage version, so the synchronization failure flag is set to indicate that the The stored version of the board is in an abnormal state. When the board whose synchronization failure flag is set is used as the main board, automatic synchronization will not occur.
上述主备板存储版本自动同步流程中,其自动同步一旦开始,就不允许主备板上的存储版本发生改变,其改变可以包括版本添加、版本删除、版本下载、激活、去激活等。否则即使自动完成,也无法保证主控板主备单板完全一致。因此自动同步进行时,需要禁止一切可能引起主备板存储版本改变的其他操作。In the above-mentioned automatic synchronization process of the storage versions of the main and standby boards, once the automatic synchronization starts, the storage version on the main and standby boards is not allowed to change, and the changes may include version addition, version deletion, version download, activation, deactivation, etc. Otherwise, even if it is done automatically, it cannot guarantee that the active and standby boards of the main control board are completely consistent. Therefore, when automatic synchronization is in progress, it is necessary to prohibit all other operations that may cause the storage version of the master and slave boards to change.
上述主备板存储版本自动同步流程中,其自动同步应用的场所包括但不限于主控板,所有存在存储版本并且有主备配置的单板都可以应用。In the automatic synchronization process of the storage version of the main and standby boards mentioned above, the place where the automatic synchronization is applied includes but is not limited to the main control board, and all single boards with storage versions and active and standby configurations can be applied.
下面结合附图2,通过CDMA移动通讯系统CCM单板主备版本自动同步的应用实施例流程图来说明本发明的具体实施方式。Below in conjunction with accompanying drawing 2, through the flow chart of the application embodiment of the automatic synchronization of the active and standby versions of the CCM single board of the CDMA mobile communication system, the specific implementation manner of the present invention will be described.
根据CDMA移动通讯根据系统的结构可分为以下几个模块:BSC(BaseStation Controller,基站控制器)子系统,BDS(Baseband Digital Subsystem,基带)子系统,RFS(Radio Frequency Systems,射频)子系统。其中OMP(Operation & Maintenance Processor,运行维护处理器)单板(BSC子系统主控单板),CCM(Communication Control Module,通讯控制模块)单板(BDS子系统主控单板),RMM(read-only memory,只读存储器)单板(RFS子系统主控单板)都存放着自身单板和受控单板的存储版本。并且都存在备板,需要保证主备板存储版本的完全一致。According to the structure of the system, CDMA mobile communication can be divided into the following modules: BSC (BaseStation Controller, base station controller) subsystem, BDS (Baseband Digital Subsystem, baseband) subsystem, RFS (Radio Frequency Systems, radio frequency) subsystem. Among them, OMP (Operation & Maintenance Processor, operation and maintenance processor) single board (BSC subsystem main control single board), CCM (Communication Control Module, communication control module) single board (BDS subsystem main control single board), RMM (read -only memory, read-only memory) single board (RFS subsystem main control single board) stores the storage version of its own single board and controlled single board. And there are standby boards, it is necessary to ensure that the storage versions of the main board and the standby board are completely consistent.
CDMA移动通讯系统CCM单板主备版本自动同步包括如下步骤:The automatic synchronization of the main and standby versions of the CCM single board of the CDMA mobile communication system includes the following steps:
步骤201,当CCM的备板上电后,首先检查是否有发起自动同步所需的内存资源,消息收发所需要数据库资源是否可用,主备板通讯是否正常,如果一切正常,则向对应的主板发送准备就绪消息。等待主板发送版本自动同步请求消息;
步骤202,当CCM主板收到来自备板的就绪消息后,向备板发送存储版本查询消息,并接收备板返回的查询应答消息,该应答消息包括备板存储版本信息;
步骤203,CCM主板比较主备版上的存储版本是否一致,如不一致,则转步骤204;如果一致,则流程结束;
步骤204,如果不一致且CCM主板的存储版本处于正常状态时,则逐个文件向CCM备板发送自动同步请求。请求消息的数据结构中包含了文件名,长度,IP地址等必要信息。因为CCM上的存储版本是以目录的方式存放的,因此需要逐个目录的进行版本同步。同时还需要将记录目录信息的信息文件也同步到备板;
步骤205,CCM备板收到主板发来的自动同步请求后,根据消息所带信息,通过FTP方式从主板获取相应的文件,直到所有版本文件同步完成。
上述CCM主备板存储版本自动同步流程中,如果自动同步失败,则在CCM备板上设置同步失败标志。因为CCM备板此时的存储版本已经处于不正常状态,所以这块单板如果成为主板,作为同步的发起者,有可能破坏一个存储版本正常的单板,因此设置同步失败标志,表示这块单板的存储版本处于异常状态。当设置了同步失败标志的CCM单板作为主板时,不会发生自动同步。In the above-mentioned automatic synchronization process of the storage version of the main and standby CCM boards, if the automatic synchronization fails, a synchronization failure flag is set on the CCM and standby boards. Because the storage version of the CCM backup board is already in an abnormal state at this time, if this board becomes the main board, as the initiator of synchronization, it may destroy a board with a normal storage version, so the synchronization failure flag is set to indicate that the The storage version of the board is in an abnormal state. When the CCM board whose synchronization failure flag is set is used as the main board, automatic synchronization will not occur.
上述CCM主备板存储版本自动同步流程中,其自动同步一旦开始,就不允许CCM主备板上的存储版本发生改变,其改变可以包括版本添加、版本删除、版本下载、激活、去激活等。否则即使自动完成,也无法保证CCM主控板主备单板完全一致。因此自动同步进行时,需要禁止一切可能引起CCM主备板存储版本改变的其他操作。In the above-mentioned automatic synchronization process of the storage version of the main and standby CCM boards, once the automatic synchronization starts, the storage version on the main and standby CCM boards is not allowed to change. The changes may include version addition, version deletion, version download, activation, deactivation, etc. . Otherwise, even if it is done automatically, it cannot guarantee that the active and standby boards of the CCM main control board are completely consistent. Therefore, when automatic synchronization is in progress, it is necessary to prohibit all other operations that may cause changes in the storage version of the main and standby boards of the CCM.
另外,CDMA移动通讯其他模块OMP或者RMM主备板存储版本自动同步流程与上述CCM主备板版本自动流程一样。In addition, the automatic synchronization process of the OMP or RMM main and standby board storage versions of other CDMA mobile communication modules is the same as the above-mentioned automatic process of the CCM main and standby board versions.
本发明所述的一种通讯系统主备板存储版本自动同步的方法,并不仅仅限于说明书和实施方式中所列运用。对本发明技术所属领域的普通技术人员来说,可根据本发明作出各种相应的改变和变形,而所有这些相应的改变和变形都属于本发明权利要求的保护范围。The method for automatically synchronizing the storage versions of the main and standby boards of the communication system described in the present invention is not limited to the applications listed in the instructions and implementation methods. For those of ordinary skill in the art to which the technology of the present invention belongs, various corresponding changes and modifications can be made according to the present invention, and all these corresponding changes and modifications belong to the protection scope of the claims of the present invention.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB200710097617XA CN100512474C (en) | 2007-04-24 | 2007-04-24 | Automatic synchronization method for master-slave board storage version of the communication system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB200710097617XA CN100512474C (en) | 2007-04-24 | 2007-04-24 | Automatic synchronization method for master-slave board storage version of the communication system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101035326A CN101035326A (en) | 2007-09-12 |
| CN100512474C true CN100512474C (en) | 2009-07-08 |
Family
ID=38731576
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB200710097617XA Expired - Fee Related CN100512474C (en) | 2007-04-24 | 2007-04-24 | Automatic synchronization method for master-slave board storage version of the communication system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100512474C (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101483576B (en) * | 2008-01-11 | 2012-07-25 | 上海博达数据通信有限公司 | Version management implementing method in distributed system |
| CN101515861B (en) * | 2008-02-20 | 2011-06-22 | 中兴通讯股份有限公司 | Method and system for downloading base station single-board bootstrap program module based on MCU |
| CN101964820B (en) * | 2010-10-08 | 2014-04-09 | 中兴通讯股份有限公司 | Method and system for keeping data consistency |
| CN102073523B (en) * | 2011-01-19 | 2016-07-06 | 中兴通讯股份有限公司 | Realize the method and device of software version synchronization |
| CN103853623A (en) | 2012-11-30 | 2014-06-11 | 华为技术有限公司 | Data migration method and device |
| CN108920164A (en) * | 2018-07-11 | 2018-11-30 | 郑州云海信息技术有限公司 | The management method and device of host in cloud computing system |
| CN111966386A (en) * | 2020-07-28 | 2020-11-20 | 苏州浪潮智能科技有限公司 | A controller upgrade method and related device of a storage system |
| CN113760607A (en) * | 2021-08-31 | 2021-12-07 | 云尖信息技术有限公司 | A dual-BMC master-slave and data synchronization method |
-
2007
- 2007-04-24 CN CNB200710097617XA patent/CN100512474C/en not_active Expired - Fee Related
Non-Patent Citations (1)
| Title |
|---|
| 面向通信领域的主备倒换与数据同步技术. 何先波,李志蜀,唐宁九,殷锋,吴云波.计算机应用,第25卷第10期. 2005 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101035326A (en) | 2007-09-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100512474C (en) | Automatic synchronization method for master-slave board storage version of the communication system | |
| CN103200026B (en) | The upgrade method and system of firmware | |
| CN100488123C (en) | Software and hardware version management method and system of communication equipment | |
| CN103618627B (en) | A kind of manage the method for virtual machine, Apparatus and system | |
| CN101483576B (en) | Version management implementing method in distributed system | |
| WO2017024688A1 (en) | Control method and system capable of system upgrade without interrupting services | |
| TW201709081A (en) | Automatic image recovery method and server system | |
| CN101442764A (en) | Method for updating far-end node version | |
| CN103780417A (en) | Database failure transfer method based on cloud hard disk and device thereof | |
| CN112925612A (en) | Monitoring service static configuration management method based on Kubernetes | |
| CN109445988B (en) | Heterogeneous disaster recovery method, device, system, server and disaster recovery platform | |
| JP2013529820A (en) | Self-relief method and self-relief device for damaged file system | |
| CN103024782A (en) | Base station software version management method and system | |
| CN103324554A (en) | Standby system device, a control method, and a program thereof | |
| WO2005046120A1 (en) | A method for data redundancy of hlr | |
| CN103761131A (en) | Multi-board-card automatic updating method and system based on internal storage sharing | |
| CN112966046B (en) | Data synchronization method and device, electronic equipment and storage medium | |
| CN105827740A (en) | A contact information backup method, device and system | |
| CN110096226B (en) | Disk array deployment method and device | |
| CN118673078A (en) | A method for synchronizing a logical replication slot and a related device | |
| WO2012171346A1 (en) | Telephone number mapping-domain name system (enum-dns) and disaster tolerance method thereof | |
| CN101631044B (en) | Smooth upgrading method and system for communication equipment | |
| CN111241200B (en) | Master-slave synchronous processing method and device based on SQLite database | |
| CN117931522A (en) | Database switching control method and device, storage medium and electronic device | |
| CN104503811B (en) | Upgrade method for communication device and system based on single memory block |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090708 Termination date: 20150424 |
|
| EXPY | Termination of patent right or utility model |