CN102111215A - Method and device for synchronizing configuration data - Google Patents
Method and device for synchronizing configuration data Download PDFInfo
- Publication number
- CN102111215A CN102111215A CN2010106031378A CN201010603137A CN102111215A CN 102111215 A CN102111215 A CN 102111215A CN 2010106031378 A CN2010106031378 A CN 2010106031378A CN 201010603137 A CN201010603137 A CN 201010603137A CN 102111215 A CN102111215 A CN 102111215A
- Authority
- CN
- China
- Prior art keywords
- configuration data
- data
- difference
- multiplexing equipment
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种配置数据同步的方法,该方法包括:实时读取主备复用设备发出的数据并解析,获取配置数据,确定配置数据差异,获取差异结果,根据差异结果配置备用复用设备的配置数据。本发明还公开了一种配置数据同步的装置,采用本发明所述的方法及装置,提高同步效率,降低同步成本,同时提高了主备复用设备的切换效果。
The invention discloses a method for synchronizing configuration data. The method includes: reading and analyzing the data sent by the master-standby multiplexing equipment in real time, obtaining the configuration data, determining the configuration data difference, obtaining the difference result, and configuring the standby multiplexing according to the difference result Configuration data for the device. The invention also discloses a device for configuring data synchronization. By adopting the method and device of the invention, the synchronization efficiency is improved, the synchronization cost is reduced, and at the same time, the switching effect of the active and standby multiplexing equipment is improved.
Description
技术领域technical field
本发明涉及中国移动多媒体广播(CMMB)领域,特别是指一种配置数据同步的方法及装置。The invention relates to the field of China Mobile Multimedia Broadcasting (CMMB), in particular to a method and device for configuring data synchronization.
背景技术Background technique
近年来,中国移动多媒体广播(CMMB)大规模商用。为了更好满足客户需求,对CMMB的可靠性要求越来越高。在现有CMMB技术中,为实现广播电视节目发送的可靠性,在广播电视节目输送时采用主备切换技术。正常工作状态下,由主用复用设备为系统提供包括广播电视节目源的输送等服务;当主用复用设备发生故障时,切换器切换到备用复用设备,由备用复用设备为系统提供包括广播电视节目源的输送等服务。这里的主备复用设备是个相对概念,两台主备复用设备之间可以互为备份,同时,主备复用设备的配置数据要保持一致。In recent years, China Mobile Multimedia Broadcasting (CMMB) has been commercialized on a large scale. In order to better meet customer needs, the reliability requirements for CMMB are getting higher and higher. In the existing CMMB technology, in order to realize the reliability of broadcast and TV program transmission, the main-standby switchover technology is adopted in the transmission of broadcast and TV programs. Under normal working conditions, the main multiplexing equipment provides the system with services including the transmission of radio and TV program sources; when the main multiplexing equipment fails, the switch switches to the standby multiplexing equipment, and the standby multiplexing equipment provides services for the system. Including services such as the delivery of radio and television program sources. The active/standby multiplexed device here is a relative concept. Two active/standby multiplexed devices can back up each other. At the same time, the configuration data of the active/standby multiplexed devices must be consistent.
当主备复用设备的配置数据不同时,切换器会对复用设备的配置数据进行同步。但是,如果是不同厂家的复用设备,各自同步的方法不一致,会造成同步后主备复用设备配置数据不同,当主备复用设备切换时,由于配置数据的不同,终端设备会出现卡屏或长时间循环的问题,导致切换效果较差。由人工完成复用设备的配置数据同步,会耗费大量的时间、人力成本,切换效率低下。When the configuration data of the active and standby multiplexing devices are different, the switcher will synchronize the configuration data of the multiplexing devices. However, if the multiplexed devices of different manufacturers have different synchronization methods, the configuration data of the active and standby multiplexed devices will be different after synchronization. Or the problem of long-term looping, resulting in poor switching effect. Manually completing the configuration data synchronization of multiplexing devices will consume a lot of time and labor costs, and the switching efficiency is low.
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种配置数据同步的方法及装置,提高同步效率,降低同步成本,同时提高主备复用设备的切换效果。In view of this, the main purpose of the present invention is to provide a method and device for configuring data synchronization, which improves synchronization efficiency, reduces synchronization costs, and improves the switching effect of active and standby multiplexing devices.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
本发明提供了一种配置数据同步的方法,该方法包括:The present invention provides a method for configuring data synchronization, the method comprising:
实时读取主备复用设备发出的数据并解析,获取配置数据,确定配置数据差异,获取差异结果,根据差异结果配置备用复用设备的配置数据。Read and analyze the data sent by the active and standby multiplexing equipment in real time, obtain the configuration data, determine the configuration data difference, obtain the difference result, and configure the configuration data of the standby multiplexing equipment according to the difference result.
上述方案中,所述实时读取主备复用设备发出的数据并解析包括:将主备复用设备发出的数据,转换为复帧数据,读取第0帧中的配置数据。In the above solution, the real-time reading and parsing of the data sent by the master-standby multiplexing device includes: converting the data sent by the master-standby multiplexing device into multi-frame data, and reading the configuration data in the 0th frame.
上述方案中,所述确定配置数据差异包括:比较主备复用设备配置数据中参数对应的参数值,确定有参数的参数值不同,则配置数据差异,配置数据中参数值不同的参数、所述参数对应的主用复用设备参数值以及备用复用设备参数值即为差异结果;确定所有参数的参数值均相同,则配置数据没有差异。In the above solution, the determination of the configuration data difference includes: comparing the parameter values corresponding to the parameters in the configuration data of the active and standby multiplexing equipment, and determining that the parameter values of the parameters are different, then the configuration data is different, and the parameters with different parameter values in the configuration data, all The parameter values of the main multiplexing equipment and the parameter values of the standby multiplexing equipment corresponding to the above parameters are the difference results; if the parameter values of all parameters are the same, there is no difference in the configuration data.
上述方案中,所述根据差异结果配置备用复用设备的配置数据包括:将备用复用设备配置数据中,与差异结果的参数对应的参数的参数值,用差异结果中的主用复用设备参数值覆盖。In the above scheme, configuring the configuration data of the standby multiplexing device according to the difference result includes: using the parameter value of the parameter corresponding to the parameter of the difference result in the configuration data of the standby multiplexing device, using the primary multiplexing device in the difference result Parameter value override.
本发明还提供了一种配置数据同步的装置,该装置包括:配置检测模块、配置分析模块、差异同步模块;The present invention also provides a configuration data synchronization device, which includes: a configuration detection module, a configuration analysis module, and a difference synchronization module;
配置检测模块,用于实时接收主备复用设备发送的数据并解析,获取配置数据发送给配置分析模块;The configuration detection module is used to receive and analyze the data sent by the active and standby multiplexing equipment in real time, and obtain the configuration data and send it to the configuration analysis module;
配置分析模块,用于对主备复用设备的配置数据进行比较,获取差异结果,发送给差异同步模块;The configuration analysis module is used to compare the configuration data of the active and standby multiplexing equipment, obtain the difference result, and send it to the difference synchronization module;
差异同步模块,用于根据差异结果配置备用复用设备的配置数据。A difference synchronization module, configured to configure the configuration data of the standby multiplexing device according to the difference result.
上述方案中,所述配置检测模块具体用于,将主备复用设备发送的二进制形式的数据,转换为复帧数据,读取第0帧中的配置数据。In the above solution, the configuration detection module is specifically configured to convert the data in binary form sent by the master/standby multiplexing device into multi-frame data, and read the configuration data in the 0th frame.
上述方案中,所述配置分析模块具体用于,比较主备复用设备配置数据中相同参数的参数值,确定有参数的参数值不同,则主备复用设备配置数据有差异,配置数据中参数值不同的参数、所述参数对应的主用复用设备参数值以及备用复用设备参数值即为差异结果;确定所有参数的参数值均相同,则配置数据没有差异。In the above scheme, the configuration analysis module is specifically used to compare the parameter values of the same parameters in the configuration data of the active and standby multiplexing equipment, and determine that if the parameter values of the parameters are different, then the configuration data of the active and standby multiplexing equipment is different, and in the configuration data The parameters with different parameter values, the parameter values of the main multiplexing equipment corresponding to the parameters, and the parameter values of the standby multiplexing equipment are the difference results; if the parameter values of all parameters are the same, there is no difference in the configuration data.
上述方案中,所述差异同步模块具体用于,将备用复用设备配置数据中,与差异结果的参数对应的参数的参数值,用差异结果中的主用复用设备参数值覆盖。In the above solution, the difference synchronization module is specifically used to overwrite the parameter value of the parameter corresponding to the parameter of the difference result in the standby multiplexing device configuration data with the parameter value of the primary multiplexing device in the difference result.
由此可见,采用本发明所述的方法及装置,实时获取配置数据,并确定配置数据差异,对备用复用设备进行配置,使主备复用设备的配置数据一致,相对于不同厂商的复用设备的手动同步,提高了同步效率,降低了同步成本,同时提高了主备复用设备的切换效果。It can be seen that, by adopting the method and device described in the present invention, the configuration data is obtained in real time, the configuration data difference is determined, and the standby multiplexing equipment is configured so that the configuration data of the active and standby multiplexing equipment are consistent. Manual synchronization of devices improves synchronization efficiency, reduces synchronization costs, and improves the switching effect of active and standby multiplexed devices.
附图说明Description of drawings
图1为本发明实现配置数据同步的方法流程示意图;Fig. 1 is a schematic flow diagram of a method for realizing configuration data synchronization in the present invention;
图2为本发明实现配置数据同步的装置组成示意图。FIG. 2 is a schematic diagram of the composition of the device for realizing configuration data synchronization according to the present invention.
具体实施方式Detailed ways
本发明的基本思想是:实时读取主备复用设备输出的数据并解析,获取配置数据,确定配置数据差异,获取差异结果,根据差异结果配置备用复用设备的配置数据。The basic idea of the present invention is: read and analyze the data output by the main and standby multiplexing equipment in real time, obtain the configuration data, determine the configuration data difference, obtain the difference result, and configure the configuration data of the standby multiplexing equipment according to the difference result.
下面通过附图与具体实施例来对本发明进行详细说明。The present invention will be described in detail below with reference to the drawings and specific embodiments.
一种配置数据同步的方法,如图1所示:A method for configuring data synchronization, as shown in Figure 1:
步骤101、实时读取主备复用设备输出的数据并解析,获取配置数据;
切换器实时接收主备复用设备输出的数据,即打包的复用流(PMS,Packetized Mutiplexing Stream)码流,解析接收的PMS码流,获取主备复用设备的配置数据,其中,所述PMS码流是二进制形式的数据流,包含主备复用设备的配置数据以及其他的媒体数据等,所述配置数据包括网络数据、业务数据等。The switcher receives in real time the data output by the active/standby multiplexing equipment, that is, the packaged multiplexing stream (PMS, Packetized Multiplexing Stream) code stream, parses the received PMS code stream, and obtains the configuration data of the active/standby multiplexing equipment, wherein the The PMS code stream is a data stream in binary form, including configuration data of active and standby multiplexing devices and other media data, and the configuration data includes network data, service data, and the like.
所述解析接收的PMS码流,获取主备复用设备的配置数据包括:切换器根据CMMB协议将二进制形式的PMS码流,转换成复帧数据;所述复帧数据是帧格式的数据流,其数据帧的编号是循环的,第0帧中保存配置数据。所述转换为复帧数据包括:每1秒钟的PMS码流中,第一个PMS包为时间数据,然后是包含复帧描述数据的PMS包与一定数量的包含数据的PMS包交替组成;所述复帧描述数据包括:组成一个复帧的PMS包的数量,所述一定数量即为复帧描述数据中的PMS包的数量。根据复帧描述数据,读取后续的与复帧描述数据相应数量的PMS包中的有效数据,然后根据CMMB协议规定的复帧的数据组成,组成一个复帧,然后读取下一个包含复帧描述数据的PMS包,组成下一个复帧,依次类推,将PMS码流转换为复帧数据,所述PMS包中的有效数据可根据CMMB协议规定的PMS包的固定位置读取。读取主备复用设备的0帧中的配置数据并保存。The PMS stream received by the parsing and obtaining the configuration data of the master/standby multiplexing device comprises: the switcher converts the PMS stream in binary form into multi-frame data according to the CMMB protocol; the multi-frame data is a data stream in a frame format , the number of its data frame is cyclic, and the configuration data is saved in the 0th frame. The conversion to multiframe data includes: in the PMS code stream of every 1 second, the first PMS packet is time data, and then PMS packets containing multiframe description data and a certain number of PMS packets containing data are alternately formed; The multiframe description data includes: the number of PMS packets forming a multiframe, and the certain number is the number of PMS packets in the multiframe description data. According to the multiframe description data, read the valid data in the subsequent PMS packets corresponding to the number of multiframe description data, and then form a multiframe according to the data composition of the multiframe specified by the CMMB protocol, and then read the next multiframe containing The PMS packet describing the data forms the next multiframe, and so on, the PMS code stream is converted into multiframe data, and the valid data in the PMS packet can be read according to the fixed position of the PMS packet specified by the CMMB protocol. Read and save the configuration data in frame 0 of the active/standby multiplexing device.
步骤102、确定主备复用设备配置数据差异,获取差异结果;
切换器依次比较主备复用设备配置数据中相同参数对应的参数值,若主备复用设备所有参数对应的参数值均相同,则配置数据没有差异,否则,主备复用设备配置数据有差异,获取差异结果,所述差异结果包括参数值不同的参数、所述参数对应的备用复用设备参数值及主用设备参数值。The switcher compares the parameter values corresponding to the same parameters in the configuration data of the active and standby multiplexed devices in turn. If the parameter values corresponding to all the parameters of the active and standby multiplexed devices are the same, there is no difference in the configuration data; otherwise, the configuration data of the active and standby multiplexed devices has The difference is to obtain a difference result, and the difference result includes parameters with different parameter values, the parameter values of the standby multiplexing equipment and the parameter values of the active equipment corresponding to the parameters.
步骤103、根据差异结果配置备用复用设备的配置数据。
切换器将差异结果发送给备用复用设备,备用复用设备接收差异结果,根据差异结果中的参数查询本地的配置数据,将差异结果中的主用复用设备参数值覆盖本地的配置数据,与所述差异结果中参数相同的参数的参数值。至此,主备复用设备中的配置数据一致。其中,可根据切换器本地的配置确定复用设备中的备用复用设备。The switcher sends the difference result to the standby multiplexing device, and the standby multiplexing device receives the difference result, queries the local configuration data according to the parameters in the difference result, and overwrites the local configuration data with the parameter value of the primary multiplexing device in the difference result, The parameter value for the same parameter as the parameter in the diff result. So far, the configuration data in the active and standby multiplexing devices are consistent. Wherein, the standby multiplexing equipment in the multiplexing equipment can be determined according to the local configuration of the switch.
基于以上方法,本发明还提供了一种配置数据同步的装置,如图2所示,该装置包括:配置检测模块201、配置分析模块202、差异同步模块203;Based on the above method, the present invention also provides a configuration data synchronization device, as shown in FIG. 2 , the device includes: a
配置检测模块201,用于实时接收主备复用设备发送的数据并解析,获取配置数据发送给配置分析模块202;The
配置分析模块202,用于对主备复用设备的配置数据进行比较,获取差异结果,发送给差异同步模块203;The
差异同步模块203,用于根据差异化结果配置备用复用设备的配置数据。The
所述配置检测模块201具体用于,接收主备复用设备发送的数据,即PMS码流,将二进制形式的PMS码流根据CMMB协议转换为复帧数据;所述复帧数据以数据帧的形式传输数据,数据帧为循环编码,其中,0帧的数据为配置数据,读取主备复用设备输出的数据中,第0帧中的配置数据,发送给配置分析模块202。The
所述配置分析模块202具体用于,比较主备复用设备配置数据中相同参数的参数值,若所有参数的参数值相同,则主备复用设备配置数据相同,不做任何处理;若有参数的参数值不同,将参数值不同的参数、所述参数对应的主用复用设备参数值及备用复用设备参数值,即差异结果发送给差异同步模块203。The
差异同步模块203,用于根据接收的差异结果中的参数,查询备用复用设备的配置数据,将差异结果中的主用复用设备参数值,覆盖备用复用设备配置数据,与所述差异结果中参数相同的参数的参数值。The
以上所述配置检测模块201和配置分析模块202可以位于切换器,所述差异同步模块203可以位于备用复用设备。The above-mentioned
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010106031378A CN102111215A (en) | 2010-12-23 | 2010-12-23 | Method and device for synchronizing configuration data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010106031378A CN102111215A (en) | 2010-12-23 | 2010-12-23 | Method and device for synchronizing configuration data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102111215A true CN102111215A (en) | 2011-06-29 |
Family
ID=44175255
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2010106031378A Pending CN102111215A (en) | 2010-12-23 | 2010-12-23 | Method and device for synchronizing configuration data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102111215A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102937909A (en) * | 2012-11-21 | 2013-02-20 | 上海爱数软件有限公司 | Method for deploying and upgrading Linux system |
| CN103501290A (en) * | 2013-09-18 | 2014-01-08 | 万达信息股份有限公司 | High-reliability service system establishment method based on dynamic-backup virtual machines |
| CN106452913A (en) * | 2016-11-22 | 2017-02-22 | 卡斯柯信号有限公司 | Fast switching method of terminal network device reuse |
| WO2019154121A1 (en) * | 2018-02-08 | 2019-08-15 | 中兴通讯股份有限公司 | Processing method and device for parameter configuration, storage medium and processor |
| CN111241047A (en) * | 2020-04-26 | 2020-06-05 | 北京信安世纪科技股份有限公司 | File synchronization method and device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1162474A2 (en) * | 2000-06-06 | 2001-12-12 | Pioneer Corporation | A portable terminal apparatus and the positional information communication method using it |
| CN1976477A (en) * | 2006-12-11 | 2007-06-06 | 中兴通讯股份有限公司 | Mobile multi-media broadcasting data transmitting method |
| CN101754024A (en) * | 2009-12-16 | 2010-06-23 | 中兴通讯股份有限公司 | Multiplexing device and multiplexing method |
| WO2010077222A1 (en) * | 2008-12-30 | 2010-07-08 | Thomson Licensing | Synchronization of configurations for display systems |
-
2010
- 2010-12-23 CN CN2010106031378A patent/CN102111215A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1162474A2 (en) * | 2000-06-06 | 2001-12-12 | Pioneer Corporation | A portable terminal apparatus and the positional information communication method using it |
| US6563459B2 (en) * | 2000-06-06 | 2003-05-13 | Pioneer Corporation | Portable terminal apparatus and the positional information communication method using it |
| CN1976477A (en) * | 2006-12-11 | 2007-06-06 | 中兴通讯股份有限公司 | Mobile multi-media broadcasting data transmitting method |
| WO2010077222A1 (en) * | 2008-12-30 | 2010-07-08 | Thomson Licensing | Synchronization of configurations for display systems |
| CN101754024A (en) * | 2009-12-16 | 2010-06-23 | 中兴通讯股份有限公司 | Multiplexing device and multiplexing method |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102937909A (en) * | 2012-11-21 | 2013-02-20 | 上海爱数软件有限公司 | Method for deploying and upgrading Linux system |
| CN102937909B (en) * | 2012-11-21 | 2015-11-18 | 上海爱数软件有限公司 | A kind of method of disposing and upgrading linux system |
| CN103501290A (en) * | 2013-09-18 | 2014-01-08 | 万达信息股份有限公司 | High-reliability service system establishment method based on dynamic-backup virtual machines |
| CN106452913A (en) * | 2016-11-22 | 2017-02-22 | 卡斯柯信号有限公司 | Fast switching method of terminal network device reuse |
| CN106452913B (en) * | 2016-11-22 | 2020-09-01 | 卡斯柯信号有限公司 | A method for multiplexing and fast switching of terminal network equipment |
| WO2019154121A1 (en) * | 2018-02-08 | 2019-08-15 | 中兴通讯股份有限公司 | Processing method and device for parameter configuration, storage medium and processor |
| CN111241047A (en) * | 2020-04-26 | 2020-06-05 | 北京信安世纪科技股份有限公司 | File synchronization method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10455260B2 (en) | Transmitting method, receiving method, transmitting device, and receiving device | |
| US11483601B2 (en) | Technique for transmitting and receiving system time information in broadcasting system | |
| US10349091B2 (en) | Transmitting method, receiving method, transmitting device, and receiving device | |
| CN104053014B (en) | Live broadcast system and method based on mobile terminal and mobile terminal | |
| US10547893B2 (en) | Receiving method, receiving device, and transmission and reception system | |
| JP6302274B2 (en) | Transmitting apparatus and receiving apparatus | |
| CN102447893A (en) | Method and system for collecting and releasing mobile phone video in real time | |
| US10327000B2 (en) | Transmitting method for transmitting a plurality of packets including header information including divided data information and a value of an invalidated fragment counter | |
| CN101237586A (en) | Synchronous playing method for audio and video buffer | |
| KR101874433B1 (en) | Method and apparatus for transmitting/receiving signalling information for receiving a broadcast service in a digital broadcast system | |
| US8699351B2 (en) | Method and system for detecting audio and video synchronization | |
| US11758201B2 (en) | Transmitting method, receiving method, transmitting device, and receiving device | |
| CN102111215A (en) | Method and device for synchronizing configuration data | |
| KR20180015614A (en) | System Time Frequency and Time Information | |
| CN106303661A (en) | A kind of live client realizes the method and system of self adaptation screen rotation | |
| CN105008004B (en) | Signal transmission and reception apparatus and signal transmission and reception method | |
| RU2491759C2 (en) | Multiplexer and multiplexing method | |
| US20260019659A1 (en) | Receiving method, receiving device, and transmission and reception system | |
| CN101179736B (en) | A method for converting a transport stream program into a China Mobile multimedia broadcasting program | |
| CN102176760A (en) | Method for implementing digital television technology and wireless fidelity hot spot device | |
| CN100536385C (en) | Method for clock synchronization of mobile multimedia broadcast receiving terminal | |
| CN100479529C (en) | Conversion method of multiplexing protocols in broadcast network | |
| CN104579625B (en) | DRM single-frequency network synchronization implementation methods based on ARM and CPLD | |
| KR100754627B1 (en) | Packet Type Retransmission Device for DMX Service | |
| CN217693549U (en) | AVS2 ultra-high definition professional decoder supporting transcoding |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110629 |