结果输出

记录节点产生的数据

+0.000000000s 0 ndn.Consumer:SendHello()
currently node is 0
+0.000000000s 0 ndn.Consumer:SendHello(): [INFO ] Requesting Interest: 
/prefix/%FE%00?ndn.InterestLifetime=2000&ndn.Nonce=3506978425&ndn.Hello=1
+0.000000000s 0 ndn.Consumer:SendHello(): [INFO ] > Interest for 0
+0.000000000s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 0 with +0.0ns. already 0 items
node 0 get interest with field value 1,123,456,70,0,1,1from0
TODO::------------------------ctbs[node]==NULL----------------------------
#-------------------current Cnode is :0--------------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
hellocount is  2
+0.000000000s 1 ndn.Consumer:SendHello()
currently node is 1
+0.000000000s 1 ndn.Consumer:SendHello(): [INFO ] Requesting Interest: 
/prefix/%FE%00?ndn.InterestLifetime=2000&ndn.Nonce=3586942252&ndn.Hello=1
+0.000000000s 1 ndn.Consumer:SendHello(): [INFO ] > Interest for 0
+0.000000000s 1 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 0 with +0.0ns. already 0 items
node 1 get interest with field value 1,27,22,0,0,1,0from1
TODO::------------------------ctbs[node]==NULL----------------------------
#-------------------current Cnode is :1--------------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
hellocount is  2
+0.000000000s 2 ndn.Consumer:SendHello()
currently node is 2
+0.000000000s 2 ndn.Consumer:SendHello(): [INFO ] Requesting Interest: 
/prefix/%FE%00?ndn.InterestLifetime=2000&ndn.Nonce=4054013042&ndn.Hello=1
+0.000000000s 2 ndn.Consumer:SendHello(): [INFO ] > Interest for 0
+0.000000000s 2 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 0 with +0.0ns. already 0 items
node 2 get interest with field value 1,4,5,80,0,1,1from2
TODO::------------------------ctbs[node]==NULL----------------------------
#-------------------current Cnode is :2--------------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#

系统内错误的数据

node 0 get interest with field value 1,0,0,1,0,35861808,32614from0
TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :0--------------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=0	x=0	y=0	speed1---------------#

第一次交互后各节点情况

node 1 get interest with field value 1,123,456,70,0,1,1from0
TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :1--------------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
node 0 get interest with field value 1,27,22,0,0,1,0from1
TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :0--------------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=0	x=0	y=0	speed1---------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
node 1 get interest with field value 1,4,5,80,0,1,1from2
TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :1--------------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
node 2 get interest with field value 1,123,456,70,0,1,1from0
TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :2--------------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
+0.021327998s 2 ndn.Producer:OnInterest(0x1c5c9f0, 0x1c9ef90)
+0.021327998s 2 ndn.Producer:OnInterest(): [INFO ] Received content object: /prefix/%FE%00?ndn.InterestLifetime=2000&ndn.Nonce=3506978425&ndn.Hello=1
+0.021327998s 2 ndn.Producer:OnInterest(): [DEBUG] receiver a interest not hello 

第二次交互后各节点情况

TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :1--------------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
node 0 get interest with field value 1,27,22,0,0,1,0from1
TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :0--------------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=0	x=0	y=0	speed1---------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
node 2 get interest with field value 1,123,456,70,0,1,1from0
TODO::------------------------ELSE::::::ctbs[node]==NULL----------------------------
#-------------------current Cnode is :2--------------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#

收到一个兴趣包后

node 1 get interest with field value 0,49,79,98,0,1,11from0
#-------------------current Cnode is :1--------------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:@@@@@@@@@@@@@@nbl table's content is : id=1	dis=61	speed=0@@@@@@@@@@@@@@#
#output:@@@@@@@@@@@@@@nbl table's content is : id=2	dis=86	speed=80@@@@@@@@@@@@@@#
#output:@@@@@@@@@@@@@@nbl table's content is : id=1	dis=61	speed=0@@@@@@@@@@@@@@#

#-------------------current Cnode is :0--------------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=0	x=0	y=0	speed1---------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=1	x=27	y=22	speed0---------------#
#output:@@@@@@@@@@@@@@nbl table's content is : id=0	dis=92	speed=1@@@@@@@@@@@@@@#
#output:@@@@@@@@@@@@@@nbl table's content is : id=1	dis=61	speed=0@@@@@@@@@@@@@@#
#output:@@@@@@@@@@@@@@nbl table's content is : id=1	dis=61	speed=0@@@@@@@@@@@@@@#
#-------------------current Cnode is :2--------------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:-------------nt table's content is : id=2	x=4	y=5	speed80---------------#
#output:-------------nt table's content is : id=0	x=123	y=456	speed70---------------#
#output:@@@@@@@@@@@@@@nbl table's content is : id=2	dis=86	speed=80@@@@@@@@@@@@@@#
#output:@@@@@@@@@@@@@@nbl table's content is : id=2	dis=86	speed=80@@@@@@@@@@@@@@#

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值