首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于哈希树的分布式目录同步方法
引用本文:鲍爱华,袁晓萍,陈锋,刘鹏.基于哈希树的分布式目录同步方法[J].解放军理工大学学报,2013,0(6):608-616.
作者姓名:鲍爱华  袁晓萍  陈锋  刘鹏
作者单位:1.解放军理工大学 指挥信息系统学院,江苏 南京 210007;
2.第二军医大学 网络信息中心,上海 200433;
3.国防科技大学 信息系统与管理学院,湖南 长沙 410073
基金项目:江苏省自然科学基金资助项目(BK2010131)
摘    要:在云存储应用中,用户通常需要在多个终端上对其工作目录副本进行修改,如何在分布式目录副本之间进行高效的数据同步是一个重要问题。设计实现了一个面向私有云存储的分布式目录同步系统HTD2Sync。系统以文件哈希值为依据进行并发同步冲突检测,能够在文件同步过程中过滤大量伪冲突;针对目录副本同步中的2种冲突类型和6种冲突场景,给出了对应的冲突消解方法;引入有序哈希树对用户目录副本的内容和结构进行建模,给出了有序哈希树的创建和更新方法。提出了一种基于有序哈希树的分布式目录副本同步方法,对其流程和核心操作步骤进行了说明,给出了有序哈希树比对算法COMPARE_OHT。实验表明,HTD2Sync系统能够快速感知私有云存储终端的文件变化,在云端文件变化感知方面也具有较高的效率。

关 键 词:哈希树  目录同步  冲突检测  最终一致性
收稿时间:2013-04-08
修稿时间:2013-04-08

Distributed directories synchronization method based on Hash tree
BAO Aihu,YUAN Xiaoping,CHEN Feng and LIU Peng.Distributed directories synchronization method based on Hash tree[J].Journal of PLA University of Science and Technology(Natural Science Edition),2013,0(6):608-616.
Authors:BAO Aihu  YUAN Xiaoping  CHEN Feng and LIU Peng
Institution:1.College of Command Information System, PLA Univ.of Sci.&Tech., Nanjing 210007,China;
2.Network Information Center,The Second Military Medical University, Shanghai 200433,China;
3.School of Information System and Management,National University of Defense Technology,Changsha 410073,China
Abstract:In cloud storage application scenarios, users usually need to modify their working directory copies in different terminals, and then it becomes an important issue for efficient data synchronization between distributed replications of the working directory. Optimistic replication and the eventual consistency theory was used as reference, a distributed working directory synchronization system named HTD2Sync was designed and implemented. In HTD2Sync, file hash value was imported as foundation to detect conflicts in concurrent file synchronization, so that most of the pseudo conflicts were filtered; two conflict types and six conflict scenarios in directory replication synchronization were analyzed, and the corresponding resolution methods were proposed; Ordered Hash Tree (OHT) was used to represent the character of user working directory replication, and the create and update methods of OHT were introduced; the distributed directory synchronization method based on OHT was proposed, and meanwhile, its progress and core operation steps were elaborated, and algorithm to compare OHT named COMPARE_OHT was also proposed. Experiments show that HTD2Sync can detect client file changes quickly, and also has a good performance in detecting cloud file changes.
Keywords:Hash tree  directory synchronization  conflict detection  eventual consistency
点击此处可从《解放军理工大学学报》浏览原始摘要信息
点击此处可从《解放军理工大学学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号