Pcap output empty in "dce-ccn-linear-multiple" example with Linux Stack

22 views
Skip to first unread message

Alessio

unread,
Apr 13, 2015, 10:54:00 AM4/13/15
to ns-3-...@googlegroups.com
Hi all, I'm here with the need for another explanation.
I'm exercising with some simulations with DCE and CCN and I'm using the "dce-ccn-linear-multiple.cc" example where I tried to add "EnablePcap" to the point-to-point helper:

  ...
  PointToPointHelper pointToPoint;
  ...
  ...
  pointToPoint.EnablePcapAll("ccnx-node",false);
  ...

The problem is that simulation runs correctly, but the output pcap files that I found are empty for all devices in all nodes. This happens only when I launch the simulation with value "--useKernel=1" to use Linux kernel stack, while with ns3 Internet stack there are no problems and it generates right and complete output pcap; so at first I've thought that it was a problem with Linux kernel.
My doubts, however, have increased when I've run another example, "dce-ccn-exp1.cc", with the same "useKernel" option and I've seen that it generates complete pcap file. So, my question is: why this? This two simulations use the same function,same channel, same kernel and similar structure, but I can't have pcap output from "dce-ccn-linear-multiple" if I use Linux kernel.
Can someone explain it to me and how to solve it?

Thanks in advance.

Richard

unread,
Apr 15, 2015, 9:31:17 AM4/15/15
to ns-3-...@googlegroups.com
Hajime posted a fix for this here a while ago; basically the pcap file isn't getting flushed and the patch forces it. I don't know if the underlying issue has been fixed yet.


Alternatively I have forked the patch and included CSMA and WiFi; 

Reply all
Reply to author
Forward
0 new messages