计算机应用 ›› 2012, Vol. 32 ›› Issue (02): 566-568.DOI: 10.3724/SP.J.1087.2012.00566

• 计算机软件技术 • 上一篇    下一篇

一种远程文件同步方法

何骞,卓碧华   

  1. 武警警官学院 信息技术教研室,成都 610213
  • 收稿日期:2011-07-26 修回日期:2011-09-26 发布日期:2012-02-23 出版日期:2012-02-01
  • 通讯作者: 何骞
  • 作者简介:何骞(1979-),男,四川巴中人,讲师,硕士,主要研究方向:计算机网络安全;
    卓碧华(1974-),女,四川仁寿人,副教授,主要研究方向:计算机网络安全。

A remote file synchronization method

HE Qian,ZHUO Bi-hua   

  1. Information Technology Section, Armed Police College, Chengdu Sichuan 610213, China
  • Received:2011-07-26 Revised:2011-09-26 Online:2012-02-23 Published:2012-02-01
  • Contact: HE Qian

摘要: 为改进rsync算法在进行远程文件同步时Client和Server端差异数据量较大的缺点,提出一种新的远程文件同步方法。该方法在rsync算法的基础上,利用差异压缩技术,采用块移动技术和KMP算法查找Client和Server端的差异和匹配,使用滑动窗口压缩算法对差异数据进行压缩,能有效减少差异数据在网络中的流量。实验表明,该方法能将差异量降低97%以上,从而有效减少差异量在网络中的传输量,减小网络带宽消耗,提高远程文件的同步效率。

关键词: 远程文件同步, rsync算法, 差异压缩, 块移动, 滑动窗口压缩, KMP算法

Abstract: In remote file synchronization of rsync algorithm, to resolve the shortage of large delta data between Server and Client, a new method of remote file synchronization was proposed. On the basis of rsync algorithm, the proposed method adopted delta compression technology, using block-move and KMP algorithm to find out the delta and match between Client and Server and using sliding window compression algorithm to compress the delta data. It is effective in reducing the delta data in network traffic. The experimental results show that delta can be reduced more than 97%, thus reducing network bandwidth consumption and increasing the efficiency of remote file synchronization.

Key words: remote file synchronization, rsync algorithm, delta compression, block-move,, sliding window compression, KMP (Knuth-Morris-Pratt) algorithm

中图分类号: