Rsync algorithm and protocol