-
Notifications
You must be signed in to change notification settings - Fork 167
Description
Hi,
it seems that Content Store is not caching Data Packets in ndnSIM 2.8.
I ran two simulation based on the same scenario (ndn-tree-cs-tracers.cpp) in ndnSIM 2.7 (from ndnsim.net) and ndnSIM 2.8 (from ndnsim.net). As stated on the website, ndnSIM 2.7 uses the old content store structure, which it works (see later for logs and tracer file).
The topology used is topo-tree.txt (source).
Scenarios were placed in two different folder templates based on the provided scenario template.
I used in both versions the debug mode to be able to inspect logs along together the ndn::CsTracer output file.
ndnSIM 2.7 results:
- logs:
ns-3$ ./waf shell $ cd ~/simulation simulation$ ./waf configure --debug simulation$ ./waf build simulation$ NS_LOG=ndn.Consumer:ndn.Proucer PKG_LIBRARY_PATH=/usr/local/lib ./build/ndn-tree-cs-tracers-27_old [...] +19.920000000s 2 ndn.Consumer:SendPacket() +19.920000000s 2 ndn.Consumer:SendPacket(): [INFO ] > Interest for 199 +19.920000000s 2 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 199 with +19920000000.0ns. already 0 items +19.925790398s 2 ndn.Consumer:OnData(0x1c813d0, 0x1f0c270) +19.925790398s 2 ndn.Consumer:OnData(): [INFO ] < DATA for 199 +19.925790398s 2 ndn.Consumer:OnData(): [DEBUG] Hop count: 2 +19.929999999s 3 ndn.Consumer:SendPacket() +19.929999999s 3 ndn.Consumer:SendPacket(): [INFO ] > Interest for 199 +19.929999999s 3 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 199 with +19929999999.0ns. already 0 items +19.932895198s 3 ndn.Consumer:OnData(0x1bc1590, 0x1f0c270) +19.932895198s 3 ndn.Consumer:OnData(): [INFO ] < DATA for 199 +19.932895198s 3 ndn.Consumer:OnData(): [DEBUG] Hop count: 1 - CS Tracer file
Time Node Type Packets [...] 19 leaf-1 CacheHits 0 19 leaf-1 CacheMisses 10 19 leaf-2 CacheHits 0 19 leaf-2 CacheMisses 10 19 leaf-3 CacheHits 0 19 leaf-3 CacheMisses 10 19 leaf-4 CacheHits 0 19 leaf-4 CacheMisses 10 19 rtr-1 CacheHits 10 19 rtr-1 CacheMisses 10 19 rtr-2 CacheHits 10 19 rtr-2 CacheMisses 10 19 root CacheHits 10 19 root CacheMisses 10
ndnSIM 2.8 results:
- logs:
ns-3$ ./waf shell $ cd ~/simulation simulation$ ./waf configure --debug simulation$ ./waf build simulation$ NS_LOG=ndn.Consumer:ndn.Proucer PKG_LIBRARY_PATH=/usr/local/lib ./build/ndn-tree-cs-tracers-28 [...] +19.920000000s 2 ndn.Consumer:SendPacket() +19.920000000s 2 ndn.Consumer:SendPacket(): [INFO ] > Interest for 199 +19.920000000s 2 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 199 with +19920000000.0ns. already 0 items +19.925759998s 2 ndn.Consumer:OnData(0x55c4e0570830, 0x55c4e0826460) +19.925759998s 2 ndn.Consumer:OnData(): [INFO ] < DATA for 199 +19.925759998s 2 ndn.Consumer:OnData(): [DEBUG] Hop count: 2 +19.929999999s 3 ndn.Consumer:SendPacket() +19.929999999s 3 ndn.Consumer:SendPacket(): [INFO ] > Interest for 199 +19.929999999s 3 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 199 with +19929999999.0ns. already 0 items +19.932879998s 3 ndn.Consumer:OnData(0x55c4e053e650, 0x55c4e0596020) +19.932879998s 3 ndn.Consumer:OnData(): [INFO ] < DATA for 199 +19.932879998s 3 ndn.Consumer:OnData(): [DEBUG] Hop count: 2- Note: Hop count for host
3(but this happens for all the consumers for the whole simulation) is now 2 and not 1 as for ndnSIM 2.7 logs
- Note: Hop count for host
- CS Tracer file
Time Node Type Packets [...] 19 leaf-1 CacheHits 0 19 leaf-1 CacheMisses 0 19 leaf-2 CacheHits 0 19 leaf-2 CacheMisses 0 19 leaf-3 CacheHits 0 19 leaf-3 CacheMisses 0 19 leaf-4 CacheHits 0 19 leaf-4 CacheMisses 0 19 rtr-1 CacheHits 0 19 rtr-1 CacheMisses 0 19 rtr-2 CacheHits 0 19 rtr-2 CacheMisses 0 19 root CacheHits 0 19 root CacheMisses 0- Note: the column
Packetsis set at 0 for the entire file.
- Note: the column
I assume that Content Store is not properly working in ndnSIM 2.8. I don't know how to deeply investigate for the problem.
Installation info:
- ns-3 is using latest upstream commit
- ndnSIM is using
ndnSIM-2.8tag
Thanks