**
前言
**
2013年,Zhenkai Zhu and Alexander Afanasyev提出了ChronoSync协议,最早部署在NDN的testbed上并开发了一系列去中心化应用,本文主要介绍如何在ndnsim中使用一种新的custom-app,也即chronosync-app, 此应用很好地在原NDN协议栈基础上实现了chronosync同步协议,允许ndnsim拓扑中任意两个节点实现数据的同步交换
基础知识补充
**
chronosync-app介绍
**
ndnsim中所有的应用都具有两方面的属性(attributes)
- 自身独有的属性(unique attributes)
- 从母类继承而来的公共属性(common attributes),这些公共属性很大一部分源自ns-3以及app::helper, 比如设置前缀(setprefix),设置负载大小(set payloadsize)
chronosync-app也继承了这一特点,其属性有以下几种
- SyncPrefix (同步包前缀,字符串型)
- UserPrefix(实际数据包前缀,字符串型)
- RoutingPrefix(路由前缀,字符串型)
- MinNumberMessages(最小包数,整型)
- MaxNumberMessage(最大包数,整型)
- PeriodicPublishing(是否周期性向外发送数据包,Boolean型)