[ndnSIM] About simulation outputs and logging info

Sirapop Theeranantachai sirapop741 at gmail.com
Sat Mar 23 13:19:06 PDT 2024


Did you try this before running NS_LOG=ndn.Consumer ./waf --run ndn-first
--visualize?
./waf configure -d optimized
https://ndnsim.net/2.2/intro.html


On Sat, Mar 23, 2024 at 5:54 AM 李怿曈 Yitong LI <yitongli at hkust-gz.edu.cn>
wrote:

> Hi,
>
> I’ve tried it. And it gives me the same output. I can start and stop
> simulation. I wonder whether the result looks good ? Will it generate a
> report for the simulation or do I need to add sth to the source code?
> Here’s the log.
>
> *caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Consumer ./waf --run ndn-first
> --visualize*
> *Waf: Entering directory `/home/caster/ndnSim/ns-3/build'*
> *Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'*
> *Build commands will be stored in build/compile_commands.json*
> *'build' finished successfully (2.131s)*
> *Could not load plugin 'show_last_packets.py': No module named 'kiwi.ui'*
> *Could not load icon applets-screenshooter due to missing gnomedesktop
> Python module*
> *scanning topology: 3 nodes...*
> *scanning topology: calling graphviz layout*
> *scanning topology: all done.*
> */home/caster/ndnSim/ns-3/src/visualizer/visualizer/core.py:1505: Warning:
> Source ID 368 was not found when attempting to remove it*
> *  GLib.source_remove(self._update_timeout_id)*
>
>
> Thanks,
> Caster
>
> 2024年3月23日 下午7:47,Sirapop Theeranantachai <sirapop741 at gmail.com> 写道:
>
> Hi,
> Your command needs to look like this
> NS_LOG=ndn.Consumer ./waf --run ndn-first --visualize
>
> Alternatively, you can set environment variable with commands such as
> export.
>
> On Sat, Mar 23, 2024, 1:10 AM 李怿曈 Yitong LI <yitongli at hkust-gz.edu.cn>
> wrote:
>
>> I’ve attached here, I’m currently using the simple scenario given in the
>> documentation. After running “./waf” and “./waf —run ndn-simple”, I got the
>> outputs below.
>> *caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-first --visualize*
>> *Waf: Entering directory `/home/caster/ndnSim/ns-3/build'*
>> *Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'*
>> *Build commands will be stored in build/compile_commands.json*
>> *'build' finished successfully (1.699s)*
>> *Could not load plugin 'show_last_packets.py': No module named 'kiwi.ui'*
>> *Could not load icon applets-screenshooter due to missing gnomedesktop
>> Python module*
>> *scanning topology: 3 nodes...*
>> *scanning topology: calling graphviz layout*
>> *scanning topology: all done.*
>>
>> From the documentation, I also noticed that “logging” and “debug” mode
>> can be set using “./waf configure —logging/—debug”. But it gave me error
>> showing no such option.
>>
>>
>>
>>
>> Thanks,
>> Caster
>>
>> 2024年3月23日 下午3:48,Sirapop Theeranantachai <sirapop741 at gmail.com> 写道:
>>
>> Could you send us your source code? You should be able to see some
>> output.
>>
>> On Fri, Mar 22, 2024, 8:04 PM 李怿曈 Yitong LI <yitongli at hkust-gz.edu.cn>
>> wrote:
>>
>> Hi,
>>
>> I want to run my own simulation, after using ./waf —run xx command, I
>> can’t see any outputs.
>>
>> I’ve tried the solution in the template, which uses *./waf configure
>> —debug/./waf configure —logging*. But it’s not working, it shows “*waf:
>> error: no such option*”. “*NS_LOG=ndn.Consumer ./waf --run=ndn-simple*”
>> is not working as well. I wonder if I need to add some command in the
>> source file to see the outputs?
>>
>> Thanks,
>> Caster
>>
>>
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20240323/6df7f44e/attachment.html>


More information about the ndnSIM mailing list