电子科技 ›› 2022, Vol. 35 ›› Issue (7): 52-57.doi: 10.16180/j.cnki.issn1007-7820.2022.07.009

• • 上一篇    下一篇

基于BSDiff的改进远程增量更新方案

陈迪荣,包晓安,杜鹏,胡逸飞,苏鸿斌   

  1. 浙江理工大学 信息学院,浙江 杭州 310018
  • 收稿日期:2021-01-27 出版日期:2022-07-15 发布日期:2022-08-16
  • 作者简介:陈迪荣(1996-),男,硕士研究生。研究方向:嵌入式与物联网技术。|包晓安(1973-),男,教授。研究方向:自适应软件、软件测试与智能信息处理。
  • 基金资助:
    国家自然科学基金(6207050141);浙江省自然科学基金青年基金(LQ20F050010);浙江省重点研发计划项目(2020C03094)

Improved Remote Incremental Update Scheme Based on BSDiff

CHEN Dirong,BAO Xiaoan,DU Peng,HU Yifei,SU Hongbin   

  1. School of Information Science and Technology,Zhejiang Sci-Tech University,Hangzhou 310018,China
  • Received:2021-01-27 Online:2022-07-15 Published:2022-08-16
  • Supported by:
    National Natural Science Foundation of China(6207050141);Natural Science Foundation of Zhejiang(LQ20F050010);Key R&D Program of Zhejiang(2020C03094)

摘要:

传统的增量更新方案跨版本更新性能弱,需要生成并下发多个增量更新包,导致终端设备更新效率低。针对这一问题,文中提出一种基于BSDiff的改进远程增量更新方案。该方案优化了更新服务端的固件管理方式,利用BSDiff差分算法即时生成唯一增量更新包,以减少需要传输的更新数据量,并通过对BSDiff算法进行改进,加快增量更新包的生成。仿真实验结果表明,改进的增量更新方案具有与传统增量更新方案相同的压缩性能,在生成增量更新包时可以减少31.19%的时间,并在跨版本更新时减少了2.07%的数据传输量。

关键词: 服务端, 终端, 固件, 更新, 增量, BSDiff, 后缀数组, 压缩

Abstract:

The traditional incremental update solution has weak cross-version update performance, and multiple incremental update packages need to be generated and issued, resulting in low terminal device update efficiency. In view of this problem, an improved remote incremental update scheme based on BSDiff is proposed in the present study. The scheme optimizes the firmware management method of the update server, and uses the BSDiff algorithm to instantly generate a unique incremental update package to reduce the amount of update data that needs to be transmitted. The BSDiff algorithm is improved to speed up the generation of incremental update packages. The simulation experiments show that the improved incremental update scheme has the same compression performance as the traditional incremental update scheme. It can reduce the time by 31.19% on average when generating incremental update packages and reduce the data transfer amount by 2.07% on average when updating across versions.

Key words: server, terminal, firmware, update, incremental, BSDiff, suffix array, compression

中图分类号: 

  • TP319