Netinfo Security ›› 2025, Vol. 25 ›› Issue (3): 425-437.doi: 10.3969/j.issn.1671-1122.2025.03.006

Previous Articles     Next Articles

Optimization of Real-Time Synchronization Model Based on Rsync Algorithm

QIN Jinlei(), SUN Shanshan, LI Zheng   

  1. Department of Computer, North China Electric Power University, Baoding 071003, China
  • Received:2025-01-10 Online:2025-03-10 Published:2025-03-26
  • Contact: QIN Jinlei E-mail:jlqin717@163.com

Abstract:

To address the problem of high overheads of computation and comparison of checksums and the complexity of synchronization during the executing of the remote synchronous (Rsync) algorithm, a remote synchronous algorithm with SipHash strong check (RSip_sync) was proposed. First, the SipHash algorithm was adopted while the strong check was calculated. Then the checksum calculation function was reconstructed and its internal structure was also segmented. Second, the verification logic of checksum was updated in order to adapt to the SipHash internal segmentation algorithm whose simple operation and fewer iteration rounds reduced the cost of checksum calculation and comparison. Finally, by the Inotify real-time monitoring file technology, the changes of files in the specified backup directory were monitored in real time so that the real-time automatic synchronization of data could be achieved. The simulation results based on two datasets show that, compared with the Rsync algorithm, RSip_Sync reduces the time by 40.28% for calculating differential data, reduces the synchronization time by 4.91% in overall data synchronization, and improves the synchronization speed by 8.86%. The experimental results have verified the effectiveness of the RSip_sync algorithm which uses strong checksum that is more suitable for remote synchronization, reduces the complexity of block comparison, and enables faster data synchronization.

Key words: Rsync, SipHash, real time data synchronization, cloud files

CLC Number: