摘要
针对多级多域视频监控系统中多个分布式数据库对数据一致性的要求,提出了基于同步标识轮转的数据同步方法。在对多级多域视频监控系统的结构进行分析后,介绍了同步数据表的设计方法,指出如何利用同步标识字段标识一条记录的同步状态。通过在各区域子系统设置同步模块,完成待同步数据的筛选、封装、解析和处理。上下级同步模块间的通信利用会话初始化协议(SIP),数据格式的转换遵照扩展标记语言(XML)。当发生添加、修改、删除操作时立即进行同步,如果同步失败,可触发批量同步直至所有记录都同步成功。实验结果表明,该方案能够准确地将下级数据的变化情况同步到上级数据库中。
Focusing on the demand of data consistency in distributed databases of multi-level & multi-domain video surveillance system, a method based on synchronized identifier cycle was proposed. After analyzing system structure, synchronized table design was introduced, and how to use the synchronized identifier to record state was elaborated. Synchronized module was set in each subsystem. It was used to extract data from database, package data in specific format, analyze and process the received data. In the interaction process of upper and lower subsystem, Session Initiation Protocol ( SIP) was used to carry commands, and Extensible Markup Language ( XML) was used to unify data format. When adding, modifying or deleting operation occurred, data would synchronize immediately. If the synchronization failed, lower subsystem could trigger the bulk synchronization until all records were successfully synchronized. The experimental result shows that this proposed scheme can accurately synchronize change from lower subsystem to upper subsystem.
出处
《计算机应用》
CSCD
北大核心
2015年第A01期74-77,共4页
journal of Computer Applications
关键词
视频监控
数据库
分布式
数据同步
会话初始化协议
扩展标记语言
video surveillance
database
distributed
data synchronization
Session Initiation Protocol (SIP)
Extensible Markup Language (XML)