+0.000000000s 0 ndn.Consumer:StartApplication()
hellocount is 2
+0.000000000s 2 ndn.Producer:StartApplication()
+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,90,70,0,1from0
0is equent with 0nt's size is 0
hellocount is 2
node 1 get interest with field value 1,123,456,90,70,0,1from0
receiver a hello from0
nt's size is 1
node1which had received info,which NLis:
Neighbor ID is:0,x=123
node 2 get interest with field value 1,123,456,90,70,0,1from0
receiver a hello from0
nt's size is 2
node2which had received info,which NLis:
Neighbor ID is:0,x=123
Neighbor ID is:0,x=123
+0.021327998s 2 ndn.Producer:OnInterest(0x92c400, 0x967b20)
+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
0号节点作为消费者,首先发送HELLO包,forwarder.cpp
发现节点willsendinterest,输出0号节点收到来自0号兴趣包,此时,当前节点与兴趣包中的节点序号一直,此时不需要进行任何处理,可以理解为是节点内部操作。因此不需要将任容记录在表中。脚本中实现MULITCAST策略节点1,2回收到0节点的HELLO包,并记录在表中,此后表中记录2条。
Neighbor ID is:0,x=123
Neighbor ID is:0,x=123
作为生产者的2号节点在收到兴趣包后调用oninterest();检测道当前为HELLO包,不做任何处理。
+0.100000000s 0 ndn.Consumer:SendHello()
currently node is 0
+0.100000000s 0 ndn.Consumer:SendHello(): [INFO ] Requesting Interest:
/prefix/%FE%01?ndn.InterestLifetime=2000&ndn.Nonce=2606383082&ndn.Hello=1
+0.100000000s 0 ndn.Consumer:SendHello(): [INFO ] > Interest for 1
+0.100000000s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 1 with +100000000.0ns. already 1 items
node 0 get interest with field value 1,123,456,90,70,0,1from0
0is equent with 0nt's size is 2
hellocount is 3
node 1 get interest with field value 1,123,456,90,70,0,1from0
receiver a hello from0
nt's size is 3
node1which had received info,which NLis:
Neighbor ID is:0,x=123
Neighbor ID is:0,x=123
Neighbor ID is:0,x=123
node 2 get interest with field value 1,123,456,90,70,0,1from0
receiver a hello from0
nt's size is 4
node2which had received info,which NLis:
Neighbor ID is:0,x=123
Neighbor ID is:0,x=123
Neighbor ID is:0,x=123
Neighbor ID is:0,x=123
+0.121327998s 2 ndn.Producer:OnInterest(0x92c400, 0x946e60)
+0.121327998s 2 ndn.Producer:OnInterest(): [INFO ] Received content object: /prefix/%FE%01?ndn.InterestLifetime=2000&ndn.Nonce=2606383082&ndn.Hello=1
+0.121327998s 2 ndn.Producer:OnInterest(): [DEBUG] receiver a interest not hello
同上
+0.200000000s 0 ndn.Consumer:SendPacket()
+0.200000000s 0 ndn.Consumer:SendPacket(): [INFO ] > Interest for 2
+0.200000000s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 2 with +200000000.0ns. already 2 items
node 0 get interest with field value 0,123,456,90,70,0,1from0
0is equent with 0nt's size is 4
hellocount is 4
node 1 get interest with field value 0,123,456,90,70,0,1from0
sx123sy456r100
deitance=2
dis ==98
40 decisiontable is:0,x=270
1 decisiontable is:0,x=270
2 decisiontable is:0,x=270
3 decisiontable is:0,x=270
node 2 get interest with field value 0,123,456,90,70,0,1from0
sx123sy456r100
deitance=2
dis ==98
80 decisiontable is:0,x=270
1 decisiontable is:0,x=270
2 decisiontable is:0,x=270
3 decisiontable is:0,x=270
4 decisiontable is:0,x=270
5 decisiontable is:0,x=270
6 decisiontable is:0,x=270
7 decisiontable is:0,x=270
+0.221327998s 2 ndn.Producer:OnInterest(0x92c400, 0x941750)
+0.221327998s 2 ndn.Producer:OnInterest(): [INFO ] Received content object: /prefix/%FE%02?ndn.InterestLifetime=2000&ndn.Nonce=2128476235
+0.221327998s 2 ndn.Producer:OnInterest(): [INFO ] node(2) responding with Data: /prefix/%FE%02
node 2 get data with field value 0,2,3,4,5,6
node 1 get data with field value 0,2,3,4,5,6
node 0 get data with field value 0,2,3,4,5,6
+0.258719998s 0 ndn.Consumer:OnData(0x92d4a0, 0x92e330)
+0.258719998s 0 ndn.Consumer:OnData(): [INFO ] Received content object: Name: /prefix/%FE%02
MetaInfo: ContentType: 0
Content: (size: 1024)
Signature: (type: Unknown Signature Type, value_length: 1)
+0.258719998s 0 ndn.Consumer:OnData(): [INFO ] < DATA for 2
+0.258719998s 0 ndn.Consumer:OnData(): [DEBUG] Hop count: 2