From surathmaloth555 at gmail.com Tue Apr 2 04:01:27 2024 From: surathmaloth555 at gmail.com (surath maloth) Date: Tue, 2 Apr 2024 16:31:27 +0530 Subject: [ndnSIM] Assistance for generation of Cache Pollution Attacks data generation in ndnSim Message-ID: Hello All, I am working on my project on mitigation of cache pollution attacks in ndn using machine learning. I am a newbie to ndnSim and I am not sure of which topology to use and how can we generate cache pollution attacks in ndnSim and feature selection from ndnSim. In which directory I should generate Cache pollution attacks and how can I extract data from it for my machine learning implementation. Please guide me on this. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yitongli at hkust-gz.edu.cn Wed Apr 3 01:25:38 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Wed, 3 Apr 2024 08:25:38 +0000 Subject: [ndnSIM] An error when running scenario Message-ID: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> Hi all, I?ve installed ndnSIM and tested it using example code. But when I tried to run some example codes from the online documentation and my own scenarios, it will appears the same error. For some programs, it will appear immediately when executing them, some other programs will show this error after visualization module is loaded and run for a few seconds. I?ve attached the log below and my source code. I appreciate your help! caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s) assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, line=834 terminate called without an active exception Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb?). Thanks, Caster -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-random.cc Type: application/octet-stream Size: 1656 bytes Desc: ndn-random.cc URL: From sirapop741 at gmail.com Wed Apr 3 02:30:29 2024 From: sirapop741 at gmail.com (Sirapop Theeranantachai) Date: Wed, 3 Apr 2024 02:30:29 -0700 Subject: [ndnSIM] An error when running scenario In-Reply-To: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> References: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> Message-ID: It appears that your code may have issue with ns3::RandomRectanglePositionAllocator. Which specific online example did you use, and are you sure it gives you exactly the same error? Would be great if you could provide the error message from the official documentation. On Wed, Apr 3, 2024, 1:26?AM ??? Yitong LI wrote: > Hi all, > > I?ve installed ndnSIM and tested it using example code. But when I tried > to run some example codes from the online documentation and my own > scenarios, it will appears the same error. For some programs, it will > appear immediately when executing them, some other programs will show this > error after visualization module is loaded and run for a few seconds. I?ve > attached the log below and my source code. I appreciate your help! > > *caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s)* > *assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: > 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, > line=834* > *terminate called without an active exception* > *Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', > '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with > signal SIGIOT. Run it under a debugger to get more information (./waf --run > <program> --gdb?).* > 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: From sirapop741 at gmail.com Wed Apr 3 12:32:21 2024 From: sirapop741 at gmail.com (Sirapop Theeranantachai) Date: Wed, 3 Apr 2024 12:32:21 -0700 Subject: [ndnSIM] An error when running scenario In-Reply-To: <0667B519-4487-44FA-AEAC-26AB76A30298@hkust-gz.edu.cn> References: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> <0667B519-4487-44FA-AEAC-26AB76A30298@hkust-gz.edu.cn> Message-ID: 1. The error is different from yours.6-node bottleneck shows that you lack some python module. The error is SIGSEGV which means segmentation fault (a type of crash). Your code in scratch fails assertion check (not really a crash). 2. In the example, you can either try without -visualize or try solving module issue by installing kiwi and gnomedesktop 3. If not solved, try to see which line is causing segmentation fault by eithrr using gdb (advanced) or printing out lines and see how far the code goes. On Wed, Apr 3, 2024, 4:01?AM ??? Yitong LI wrote: > Hi, > > I?ve regenerated the error from online example ?6-node bottleneck > topology? ( > https://ndnsim.net/current/examples.html#node-bottleneck-topology). When > I run it using ?./waf ?run xxx ?visualize?, then click simulate button in > the graphic interface, it will automatically exit and give errors below in > one second. > > *caster at ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck --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.930s)* > *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: 6 nodes...* > *scanning topology: calling graphviz layout* > *scanning topology: all done.* > *Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck', > '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with > signal SIGSEGV. Run it under a debugger to get more information (./waf > --run <program> --gdb").* > > Except for the error reason for this example, I?ll appreciate it very much > if you can give me some guidance on how to find out the problem when > running scenarios, as the errors normally don?t indicate where are they > occur. > > Many thanks, > Caster > > 2024?4?3? ??5:30?Sirapop Theeranantachai ??? > > It appears that your code may have issue with > ns3::RandomRectanglePositionAllocator. > Which specific online example did you use, and are you sure it gives you > exactly the same error? Would be great if you could provide the error > message from the official documentation. > > On Wed, Apr 3, 2024, 1:26?AM ??? Yitong LI > wrote: > >> Hi all, >> >> I?ve installed ndnSIM and tested it using example code. But when I tried >> to run some example codes from the online documentation and my own >> scenarios, it will appears the same error. For some programs, it will >> appear immediately when executing them, some other programs will show this >> error after visualization module is loaded and run for a few seconds. I?ve >> attached the log below and my source code. I appreciate your help! >> >> *caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s)* >> *assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: >> 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, >> line=834* >> *terminate called without an active exception* >> *Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', >> '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with >> signal SIGIOT. Run it under a debugger to get more information (./waf --run >> <program> --gdb?).* >> 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: From saifullah at uohyd.ac.in Wed Apr 3 14:06:12 2024 From: saifullah at uohyd.ac.in (Saifullah M A) Date: Thu, 4 Apr 2024 02:36:12 +0530 Subject: [ndnSIM] Assistance for generation of Cache Pollution Attacks data generation in ndnSim In-Reply-To: References: Message-ID: Surath, Take a look at: https://github.com/yogykwan/ndn-traffic. It does "Generate and transmit different types of traffic in the NDN network". On Tue, Apr 2, 2024 at 4:31?PM surath maloth wrote: > Hello All, > I am working on my project on mitigation of cache pollution attacks in ndn > using machine learning. > I am a newbie to ndnSim and I am not sure of which topology to use and how > can we generate cache pollution attacks in ndnSim and feature selection > from ndnSim. In which directory I should generate Cache pollution attacks > and how can I extract data from it for my machine learning implementation. > Please guide me on this. > > > -- With regards Saifulla -------------- next part -------------- An HTML attachment was scrubbed... URL: From saifullah at uohyd.ac.in Wed Apr 3 14:36:32 2024 From: saifullah at uohyd.ac.in (Saifullah M A) Date: Thu, 4 Apr 2024 03:06:32 +0530 Subject: [ndnSIM] Assistance Needed: Compilation Error in ns-3/ndnSIM Project In-Reply-To: References: Message-ID: Rajeev, You need to mention the version number you are trying. On Wed, Apr 3, 2024 at 11:21?AM Rajeev Kr Mandal < rajeevmandal17937 at gmail.com> wrote: > Dear Sir, > > I hope this email finds you well. I am writing to seek assistance with a > compilation error I encountered while working on a project involving ns-3 > and ndnSIM. > > While attempting to compile the project using the command "./waf > --run=rajeev_data", I encountered the following error: > > ../scratch/rajeev_data.cc:4:10: fatal error: ns3/ndn-face.h: No such file > or directory > 4 | #include > | ^~~~~~~~~~~~~~~~ > compilation terminated. > > This error suggests that the compiler is unable to locate the header file > "ns3/ndn-face.h". Despite my efforts, I have been unable to resolve this > issue. > > Could you please provide guidance on how to address this compilation > error? Any assistance or suggestions would be greatly appreciated. > > Thank you for your attention to this matter. > > Best regards, Rajeev Kr Mandal > > > -- With regards Saifulla -------------- next part -------------- An HTML attachment was scrubbed... URL: From yitongli at hkust-gz.edu.cn Thu Apr 4 20:24:31 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Fri, 5 Apr 2024 03:24:31 +0000 Subject: [ndnSIM] An error when running scenario In-Reply-To: References: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> <0667B519-4487-44FA-AEAC-26AB76A30298@hkust-gz.edu.cn> Message-ID: <40905077-CB4B-4F53-84FE-0BA50DFA46BC@hkust-gz.edu.cn> Many thanks. I?ve installed kiwi when configuring the environment. However, when I double checked the installation, it seems kiwi required matplotlib and scipy with earlier version as dependency, which are not compatible with my installed python 3.8. I would configure a new Ubuntu VM for it using earlier python3 version. May I ask which version do you suggest? Which python3 version has been tested to work successfully on ubuntu 20.04? Thanks, Caster 2024?4?4? ??3:32?Sirapop Theeranantachai ??? 1. The error is different from yours.6-node bottleneck shows that you lack some python module. The error is SIGSEGV which means segmentation fault (a type of crash). Your code in scratch fails assertion check (not really a crash). 2. In the example, you can either try without -visualize or try solving module issue by installing kiwi and gnomedesktop 3. If not solved, try to see which line is causing segmentation fault by eithrr using gdb (advanced) or printing out lines and see how far the code goes. On Wed, Apr 3, 2024, 4:01?AM ??? Yitong LI > wrote: Hi, I?ve regenerated the error from online example ?6-node bottleneck topology? (https://ndnsim.net/current/examples.html#node-bottleneck-topology). When I run it using ?./waf ?run xxx ?visualize?, then click simulate button in the graphic interface, it will automatically exit and give errors below in one second. caster at ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck --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.930s) 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: 6 nodes... scanning topology: calling graphviz layout scanning topology: all done. Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --gdb"). Except for the error reason for this example, I?ll appreciate it very much if you can give me some guidance on how to find out the problem when running scenarios, as the errors normally don?t indicate where are they occur. Many thanks, Caster 2024?4?3? ??5:30?Sirapop Theeranantachai > ??? It appears that your code may have issue with ns3::RandomRectanglePositionAllocator. Which specific online example did you use, and are you sure it gives you exactly the same error? Would be great if you could provide the error message from the official documentation. On Wed, Apr 3, 2024, 1:26?AM ??? Yitong LI > wrote: Hi all, I?ve installed ndnSIM and tested it using example code. But when I tried to run some example codes from the online documentation and my own scenarios, it will appears the same error. For some programs, it will appear immediately when executing them, some other programs will show this error after visualization module is loaded and run for a few seconds. I?ve attached the log below and my source code. I appreciate your help! caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s) assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, line=834 terminate called without an active exception Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb?). 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: From yitongli at hkust-gz.edu.cn Fri Apr 5 01:44:20 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Fri, 5 Apr 2024 08:44:20 +0000 Subject: [ndnSIM] An error when running scenario In-Reply-To: References: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> <0667B519-4487-44FA-AEAC-26AB76A30298@hkust-gz.edu.cn> Message-ID: <83C417F9-08CF-4108-98FF-5812780E1945@hkust-gz.edu.cn> I?m confused about kiwi, I?ve installed kiwi using ?pip3 install kiwi?, and it succeeded. When I checked using ?import kiwi.ui? in python3, it gave an error. I?ve checked many info online, no solution has been proved to work. I wonder if the error given is really caused by kiwi?s installation? Thanks, Caster 2024?4?4? ??3:32?Sirapop Theeranantachai ??? 1. The error is different from yours.6-node bottleneck shows that you lack some python module. The error is SIGSEGV which means segmentation fault (a type of crash). Your code in scratch fails assertion check (not really a crash). 2. In the example, you can either try without -visualize or try solving module issue by installing kiwi and gnomedesktop 3. If not solved, try to see which line is causing segmentation fault by eithrr using gdb (advanced) or printing out lines and see how far the code goes. On Wed, Apr 3, 2024, 4:01?AM ??? Yitong LI > wrote: Hi, I?ve regenerated the error from online example ?6-node bottleneck topology? (https://ndnsim.net/current/examples.html#node-bottleneck-topology). When I run it using ?./waf ?run xxx ?visualize?, then click simulate button in the graphic interface, it will automatically exit and give errors below in one second. caster at ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck --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.930s) 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: 6 nodes... scanning topology: calling graphviz layout scanning topology: all done. Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --gdb"). Except for the error reason for this example, I?ll appreciate it very much if you can give me some guidance on how to find out the problem when running scenarios, as the errors normally don?t indicate where are they occur. Many thanks, Caster 2024?4?3? ??5:30?Sirapop Theeranantachai > ??? It appears that your code may have issue with ns3::RandomRectanglePositionAllocator. Which specific online example did you use, and are you sure it gives you exactly the same error? Would be great if you could provide the error message from the official documentation. On Wed, Apr 3, 2024, 1:26?AM ??? Yitong LI > wrote: Hi all, I?ve installed ndnSIM and tested it using example code. But when I tried to run some example codes from the online documentation and my own scenarios, it will appears the same error. For some programs, it will appear immediately when executing them, some other programs will show this error after visualization module is loaded and run for a few seconds. I?ve attached the log below and my source code. I appreciate your help! caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s) assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, line=834 terminate called without an active exception Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb?). 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: From sirapop741 at gmail.com Fri Apr 5 02:57:20 2024 From: sirapop741 at gmail.com (Sirapop Theeranantachai) Date: Fri, 5 Apr 2024 02:57:20 -0700 Subject: [ndnSIM] An error when running scenario In-Reply-To: <83C417F9-08CF-4108-98FF-5812780E1945@hkust-gz.edu.cn> References: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> <0667B519-4487-44FA-AEAC-26AB76A30298@hkust-gz.edu.cn> <83C417F9-08CF-4108-98FF-5812780E1945@hkust-gz.edu.cn> Message-ID: Are you using Conda by any chance? I have never used kiwi before since my simulation doesn't need visualization. On Fri, Apr 5, 2024 at 1:44?AM ??? Yitong LI wrote: > I?m confused about kiwi, I?ve installed kiwi using ?pip3 install kiwi?, > and it succeeded. When I checked using ?import kiwi.ui? in python3, it gave > an error. I?ve checked many info online, no solution has been proved to > work. I wonder if the error given is really caused by kiwi?s installation? > > Thanks, > Caster > > 2024?4?4? ??3:32?Sirapop Theeranantachai ??? > > 1. The error is different from yours.6-node bottleneck shows that you lack > some python module. The error is SIGSEGV which means segmentation fault (a > type of crash). Your code in scratch fails assertion check (not really a > crash). > > 2. In the example, you can either try without -visualize or try solving > module issue by installing kiwi and gnomedesktop > > 3. If not solved, try to see which line is causing segmentation fault by > eithrr using gdb (advanced) or printing out lines and see how far the code > goes. > > > On Wed, Apr 3, 2024, 4:01?AM ??? Yitong LI > wrote: > >> Hi, >> >> I?ve regenerated the error from online example ?6-node bottleneck >> topology? ( >> https://ndnsim.net/current/examples.html#node-bottleneck-topology). When >> I run it using ?./waf ?run xxx ?visualize?, then click simulate button in >> the graphic interface, it will automatically exit and give errors below in >> one second. >> >> *caster at ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck --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.930s)* >> *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: 6 nodes...* >> *scanning topology: calling graphviz layout* >> *scanning topology: all done.* >> *Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck', >> '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with >> signal SIGSEGV. Run it under a debugger to get more information (./waf >> --run <program> --gdb").* >> >> Except for the error reason for this example, I?ll appreciate it very >> much if you can give me some guidance on how to find out the problem when >> running scenarios, as the errors normally don?t indicate where are they >> occur. >> >> Many thanks, >> Caster >> >> 2024?4?3? ??5:30?Sirapop Theeranantachai ??? >> >> It appears that your code may have issue with >> ns3::RandomRectanglePositionAllocator. >> Which specific online example did you use, and are you sure it gives you >> exactly the same error? Would be great if you could provide the error >> message from the official documentation. >> >> On Wed, Apr 3, 2024, 1:26?AM ??? Yitong LI >> wrote: >> >>> Hi all, >>> >>> I?ve installed ndnSIM and tested it using example code. But when I tried >>> to run some example codes from the online documentation and my own >>> scenarios, it will appears the same error. For some programs, it will >>> appear immediately when executing them, some other programs will show this >>> error after visualization module is loaded and run for a few seconds. I?ve >>> attached the log below and my source code. I appreciate your help! >>> >>> *caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s)* >>> *assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: >>> 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, >>> line=834* >>> *terminate called without an active exception* >>> *Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', >>> '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with >>> signal SIGIOT. Run it under a debugger to get more information (./waf --run >>> <program> --gdb?).* >>> 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: From yitongli at hkust-gz.edu.cn Fri Apr 5 03:12:05 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Fri, 5 Apr 2024 10:12:05 +0000 Subject: [ndnSIM] An error when running scenario In-Reply-To: <83C417F9-08CF-4108-98FF-5812780E1945@hkust-gz.edu.cn> References: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> <0667B519-4487-44FA-AEAC-26AB76A30298@hkust-gz.edu.cn> <83C417F9-08CF-4108-98FF-5812780E1945@hkust-gz.edu.cn> Message-ID: <7902759B-BC5D-4B58-B809-6F13A7A4C831@hkust-gz.edu.cn> I?m not using conda at the moment. Is there any chance we could solve this problem? 2024?4?5? ??4:44???? Yitong LI ??? I?m confused about kiwi, I?ve installed kiwi using ?pip3 install kiwi?, and it succeeded. When I checked using ?import kiwi.ui? in python3, it gave an error. I?ve checked many info online, no solution has been proved to work. I wonder if the error given is really caused by kiwi?s installation? Thanks, Caster 2024?4?4? ??3:32?Sirapop Theeranantachai ??? 1. The error is different from yours.6-node bottleneck shows that you lack some python module. The error is SIGSEGV which means segmentation fault (a type of crash). Your code in scratch fails assertion check (not really a crash). 2. In the example, you can either try without -visualize or try solving module issue by installing kiwi and gnomedesktop 3. If not solved, try to see which line is causing segmentation fault by eithrr using gdb (advanced) or printing out lines and see how far the code goes. On Wed, Apr 3, 2024, 4:01?AM ??? Yitong LI > wrote: Hi, I?ve regenerated the error from online example ?6-node bottleneck topology? (https://ndnsim.net/current/examples.html#node-bottleneck-topology). When I run it using ?./waf ?run xxx ?visualize?, then click simulate button in the graphic interface, it will automatically exit and give errors below in one second. caster at ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck --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.930s) 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: 6 nodes... scanning topology: calling graphviz layout scanning topology: all done. Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --gdb"). Except for the error reason for this example, I?ll appreciate it very much if you can give me some guidance on how to find out the problem when running scenarios, as the errors normally don?t indicate where are they occur. Many thanks, Caster 2024?4?3? ??5:30?Sirapop Theeranantachai > ??? It appears that your code may have issue with ns3::RandomRectanglePositionAllocator. Which specific online example did you use, and are you sure it gives you exactly the same error? Would be great if you could provide the error message from the official documentation. On Wed, Apr 3, 2024, 1:26?AM ??? Yitong LI > wrote: Hi all, I?ve installed ndnSIM and tested it using example code. But when I tried to run some example codes from the online documentation and my own scenarios, it will appears the same error. For some programs, it will appear immediately when executing them, some other programs will show this error after visualization module is loaded and run for a few seconds. I?ve attached the log below and my source code. I appreciate your help! caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s) assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, line=834 terminate called without an active exception Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb?). 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: From yitongli at hkust-gz.edu.cn Fri Apr 5 03:32:03 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Fri, 5 Apr 2024 10:32:03 +0000 Subject: [ndnSIM] An error when running scenario In-Reply-To: <7902759B-BC5D-4B58-B809-6F13A7A4C831@hkust-gz.edu.cn> References: <860D4CBA-E403-4180-9758-F1E891A4664A@hkust-gz.edu.cn> <0667B519-4487-44FA-AEAC-26AB76A30298@hkust-gz.edu.cn> <83C417F9-08CF-4108-98FF-5812780E1945@hkust-gz.edu.cn> <7902759B-BC5D-4B58-B809-6F13A7A4C831@hkust-gz.edu.cn> Message-ID: <8ED5B6B0-134B-4C52-A66A-C964FED86E23@hkust-gz.edu.cn> I haven?t tried any other version of python3 so far, I guess it might to configure the entire environment again. I?ve tried the second way (without ?visualize) it would show things below. I?m not very familiar with debugging, maybe try it later. Could you help me check what?s the following error? caster at ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck 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.947s) Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --gdb?). Thanks 2024?4?5? ??6:11???? Yitong LI ??? I?m not using conda at the moment. Is there any chance we could solve this problem? 2024?4?5? ??4:44???? Yitong LI ??? I?m confused about kiwi, I?ve installed kiwi using ?pip3 install kiwi?, and it succeeded. When I checked using ?import kiwi.ui? in python3, it gave an error. I?ve checked many info online, no solution has been proved to work. I wonder if the error given is really caused by kiwi?s installation? Thanks, Caster 2024?4?4? ??3:32?Sirapop Theeranantachai ??? 1. The error is different from yours.6-node bottleneck shows that you lack some python module. The error is SIGSEGV which means segmentation fault (a type of crash). Your code in scratch fails assertion check (not really a crash). 2. In the example, you can either try without -visualize or try solving module issue by installing kiwi and gnomedesktop 3. If not solved, try to see which line is causing segmentation fault by eithrr using gdb (advanced) or printing out lines and see how far the code goes. On Wed, Apr 3, 2024, 4:01?AM ??? Yitong LI > wrote: Hi, I?ve regenerated the error from online example ?6-node bottleneck topology? (https://ndnsim.net/current/examples.html#node-bottleneck-topology). When I run it using ?./waf ?run xxx ?visualize?, then click simulate button in the graphic interface, it will automatically exit and give errors below in one second. caster at ubuntu:~/ndnSim/ns-3$ ./waf --run test-bottleneck --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.930s) 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: 6 nodes... scanning topology: calling graphviz layout scanning topology: all done. Command ['/home/caster/ndnSim/ns-3/build/scratch/test-bottleneck', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --gdb"). Except for the error reason for this example, I?ll appreciate it very much if you can give me some guidance on how to find out the problem when running scenarios, as the errors normally don?t indicate where are they occur. Many thanks, Caster 2024?4?3? ??5:30?Sirapop Theeranantachai > ??? It appears that your code may have issue with ns3::RandomRectanglePositionAllocator. Which specific online example did you use, and are you sure it gives you exactly the same error? Would be great if you could provide the error message from the official documentation. On Wed, Apr 3, 2024, 1:26?AM ??? Yitong LI > wrote: Hi all, I?ve installed ndnSIM and tested it using example code. But when I tried to run some example codes from the online documentation and my own scenarios, it will appears the same error. For some programs, it will appear immediately when executing them, some other programs will show this error after visualization module is loaded and run for a few seconds. I?ve attached the log below and my source code. I appreciate your help! caster at ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-random --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 (3.593s) assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: 0:100 not found", +0.000000000s -1 file=../src/core/model/type-id.cc, line=834 terminate called without an active exception Command ['/home/caster/ndnSim/ns-3/build/scratch/ndn-random', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb?). 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: From surathmaloth555 at gmail.com Fri Apr 5 04:09:13 2024 From: surathmaloth555 at gmail.com (surath maloth) Date: Fri, 5 Apr 2024 16:39:13 +0530 Subject: [ndnSIM] Error while running GitHub cloned repository in ndnSim Message-ID: Hii All, I have installed ndnSIm in my system. I have cloned a repository from GitHub in a separate directory beside ns-3 and pybindgen. Now I want to simulate the GitHub scenarios but it's not linking to the ndnSim or ns-3. The waf file and wscript file are old versions. There is a error like:- aarif at aarif-VirtualBox:~/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios$ ./waf configure Setting top to : /home/aarif/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios Setting out to : /home/aarif/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios/build Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for 'g++' (C++ compiler) : /usr/bin/g++ Checking supported CXXFLAGS : -std=c++11 Checking supported CXXFLAGS : -Wall -O2 -g Checking for program 'pkg-config' : /usr/bin/pkg-config Checking for pkg-config version >= '0.0.0' : yes Checking for ns3-core : not found NS-3 or one of the required NS-3 modules not found NS-3 needs to be compiled and installed somewhere. You may need also to set PKG_CONFIG_PATH variable in order for configure find installed NS-3. For example: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf configure (complete log in /home/aarif/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios/build/config.log) Please guide me oh how to run GitHub repos in ndnSim -------------- next part -------------- An HTML attachment was scrubbed... URL: From saifullah at uohyd.ac.in Fri Apr 5 04:29:55 2024 From: saifullah at uohyd.ac.in (Saifullah M A) Date: Fri, 5 Apr 2024 16:59:55 +0530 Subject: [ndnSIM] Error while running GitHub cloned repository in ndnSim In-Reply-To: References: Message-ID: Surath, Did you see the below? 1. https://groups.google.com/g/ns-3-users/c/Nnicrk0IEMk?pli=1 2. https://www.lists.cs.ucla.edu/pipermail/ndnsim/2014-July/001341.html On Fri, Apr 5, 2024 at 4:39?PM surath maloth wrote: > Hii All, > > I have installed ndnSIm in my system. I have cloned a repository from > GitHub in a separate directory beside ns-3 and pybindgen. > Now I want to simulate the GitHub scenarios but it's not linking to the > ndnSim or ns-3. The waf file and wscript file are old versions. > There is a error like:- > > aarif at aarif-VirtualBox:~/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios$ > ./waf configure > Setting top to : > /home/aarif/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios > Setting out to : > /home/aarif/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios/build > Checking for 'gcc' (C compiler) : /usr/bin/gcc > Checking for 'g++' (C++ compiler) : /usr/bin/g++ > Checking supported CXXFLAGS : -std=c++11 > Checking supported CXXFLAGS : -Wall -O2 -g > Checking for program 'pkg-config' : /usr/bin/pkg-config > Checking for pkg-config version >= '0.0.0' : yes > Checking for ns3-core : not found > NS-3 or one of the required NS-3 modules not found > NS-3 needs to be compiled and installed somewhere. You may need also to > set PKG_CONFIG_PATH variable in order for configure find installed NS-3. > For example: > PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf > configure > > (complete log in > /home/aarif/ndnSIM/NDN-Original-Cache-Poisoning-Scenarios/build/config.log) > > Please guide me oh how to run GitHub repos in ndnSim > -- With regards Saifulla -------------- next part -------------- An HTML attachment was scrubbed... URL: From yitongli at hkust-gz.edu.cn Fri Apr 5 19:10:16 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Sat, 6 Apr 2024 02:10:16 +0000 Subject: [ndnSIM] About log output in ndnSim Message-ID: Hi, As there?s problem with kiwi, I tried using ndnSim without ??visualize? and added NS_LOG to see outputs on cmd. However, it gave me nothing when using ?NS_LOG=ndn.Producer:ndn.Consumer?, I?ve added testing print info in my program, it seems everything is fine. May I ask what?s the potential reason for this? I?ve attached log and source file below. caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3 Waf: Entering directory `/home/caster/ndnSim/ns-3/build' [2810/2875] Compiling scratch/grid3.cc [2833/2875] Linking build/scratch/grid3 Waf: Leaving directory `/home/caster/ndnSim/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (40.240s) Set default parameters for link and channels create topology install ndn stack install global routing interface get pointers of nodes define name prefix install different strategi for different prefix install consumer app install producer app calculate FIB Thanks, Caster -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: grid3.cc Type: application/octet-stream Size: 3265 bytes Desc: grid3.cc URL: From yitongli at hkust-gz.edu.cn Tue Apr 9 00:14:15 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Tue, 9 Apr 2024 07:14:15 +0000 Subject: [ndnSIM] Question about visualization and output Message-ID: Hi all, I?ve sent another question earlier, I just pasted it here with another relevant question regarding ndnSIM?s output. 1. What's the difference between running using "--visualize" or not. As the simulation can be started when activating visualization, what will happen if not using "?visualize?. I think that it should be possible to run the simulation and see the output report even without ??visualize? option? 2. As there?s problem with kiwi, I tried using ndnSim without ??visualize? and added NS_LOG to see outputs on cmd. However, it gave me nothing when using ?NS_LOG=ndn.Producer:ndn.Consumer?, I?ve added testing print info in my program, it seems everything is fine. May I ask what?s the potential reason for this? I?ve attached log and source file below. My problem is that I can?t see the log outputs now. caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3 Waf: Entering directory `/home/caster/ndnSim/ns-3/build' [2810/2875] Compiling scratch/grid3.cc [2833/2875] Linking build/scratch/grid3 Waf: Leaving directory `/home/caster/ndnSim/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (40.240s) Set default parameters for link and channels create topology install ndn stack install global routing interface get pointers of nodes define name prefix install different strategi for different prefix install consumer app install producer app calculate FIB Thanks, Caster -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: grid3.cc Type: application/octet-stream Size: 3265 bytes Desc: grid3.cc URL: From sirapop741 at gmail.com Tue Apr 9 11:11:00 2024 From: sirapop741 at gmail.com (Sirapop Theeranantachai) Date: Tue, 9 Apr 2024 11:11:00 -0700 Subject: [ndnSIM] Question about visualization and output In-Reply-To: References: Message-ID: Question 1: Yes, you don't really need to visualize to get any result. You can obtain metrics using these helper functions. https://ndnsim.net/2.2/metric.html Question 2: Seems like the ns-3 or ndnsim is compiled without the debug mode. Can you make sure everything is compiled with debugging enabled? On Tue, Apr 9, 2024, 12:14?AM ??? Yitong LI wrote: > Hi all, > > I?ve sent another question earlier, I just pasted it here with another > relevant question regarding ndnSIM?s output. > > 1. What's the difference between running using "--visualize" or not. As > the simulation can be started when activating visualization, what will > happen if not using "?visualize?. I think that it should be possible to run > the simulation and see the output report even without ??visualize? option? > > 2. As there?s problem with kiwi, I tried using ndnSim without ??visualize? > and added NS_LOG to see outputs on cmd. However, it gave me nothing when > using ?NS_LOG=ndn.Producer:ndn.Consumer?, I?ve added testing print info > in my program, it seems everything is fine. May I ask what?s the potential > reason for this? I?ve attached log and source file below. My problem is > that I can?t see the log outputs now. > > *caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf --run > grid3* > *Waf: Entering directory `/home/caster/ndnSim/ns-3/build'* > *[2810/2875] Compiling scratch/grid3.cc * > *[2833/2875] Linking build/scratch/grid3* > *Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'* > *Build commands will be stored in build/compile_commands.json* > *'build' finished successfully (40.240s)* > *Set default parameters for link and channels* > *create topology* > *install ndn stack* > *install global routing interface* > *get pointers of nodes* > *define name prefix* > *install different strategi for different prefix* > *install consumer app* > *install producer app* > *calculate FIB* > > 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: From yitongli at hkust-gz.edu.cn Tue Apr 9 23:21:49 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Wed, 10 Apr 2024 06:21:49 +0000 Subject: [ndnSIM] Question about visualization and output In-Reply-To: References: Message-ID: <00C5207C-F978-4940-9065-CD4942BF569C@hkust-gz.edu.cn> I?ve configured them in the following steps. 1. ./waf configure -d optimized 2. ./waf 3. NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3 Do you think there?s any mistake with them? As according to the documentation, it says using ./waf configure -d optimized can make ndnSIM in debug mode. Thanks, Caster 2024?4?10? ??2:11?Sirapop Theeranantachai ??? Question 1: Yes, you don't really need to visualize to get any result. You can obtain metrics using these helper functions. https://ndnsim.net/2.2/metric.html Question 2: Seems like the ns-3 or ndnsim is compiled without the debug mode. Can you make sure everything is compiled with debugging enabled? On Tue, Apr 9, 2024, 12:14?AM ??? Yitong LI > wrote: Hi all, I?ve sent another question earlier, I just pasted it here with another relevant question regarding ndnSIM?s output. 1. What's the difference between running using "--visualize" or not. As the simulation can be started when activating visualization, what will happen if not using "?visualize?. I think that it should be possible to run the simulation and see the output report even without ??visualize? option? 2. As there?s problem with kiwi, I tried using ndnSim without ??visualize? and added NS_LOG to see outputs on cmd. However, it gave me nothing when using ?NS_LOG=ndn.Producer:ndn.Consumer?, I?ve added testing print info in my program, it seems everything is fine. May I ask what?s the potential reason for this? I?ve attached log and source file below. My problem is that I can?t see the log outputs now. caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3 Waf: Entering directory `/home/caster/ndnSim/ns-3/build' [2810/2875] Compiling scratch/grid3.cc [2833/2875] Linking build/scratch/grid3 Waf: Leaving directory `/home/caster/ndnSim/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (40.240s) Set default parameters for link and channels create topology install ndn stack install global routing interface get pointers of nodes define name prefix install different strategi for different prefix install consumer app install producer app calculate FIB 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: From sirapop741 at gmail.com Wed Apr 10 10:43:01 2024 From: sirapop741 at gmail.com (Sirapop Theeranantachai) Date: Wed, 10 Apr 2024 10:43:01 -0700 Subject: [ndnSIM] Question about visualization and output In-Reply-To: <00C5207C-F978-4940-9065-CD4942BF569C@hkust-gz.edu.cn> References: <00C5207C-F978-4940-9065-CD4942BF569C@hkust-gz.edu.cn> Message-ID: Can you try again with a fresh directory? https://ndnsim.net/current/best-practices.html Otherwise, I ran out of ideas, unfortunately. On Tue, Apr 9, 2024 at 11:21?PM ??? Yitong LI wrote: > I?ve configured them in the following steps. > *1. ./waf configure -d optimized* > *2. ./waf* > *3. NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3* > > Do you think there?s any mistake with them? As according to the > documentation, it says using ./waf configure -d optimized can make ndnSIM > in debug mode. > > Thanks, > Caster > > 2024?4?10? ??2:11?Sirapop Theeranantachai ??? > > Question 1: > Yes, you don't really need to visualize to get any result. You can obtain > metrics using these helper functions. > https://ndnsim.net/2.2/metric.html > > Question 2: > Seems like the ns-3 or ndnsim is compiled without the debug mode. Can you > make sure everything is compiled with debugging enabled? > > On Tue, Apr 9, 2024, 12:14?AM ??? Yitong LI > wrote: > >> Hi all, >> >> I?ve sent another question earlier, I just pasted it here with another >> relevant question regarding ndnSIM?s output. >> >> 1. What's the difference between running using "--visualize" or not. As >> the simulation can be started when activating visualization, what will >> happen if not using "?visualize?. I think that it should be possible to run >> the simulation and see the output report even without ??visualize? option? >> >> 2. As there?s problem with kiwi, I tried using ndnSim without >> ??visualize? and added NS_LOG to see outputs on cmd. However, it gave me >> nothing when using ?NS_LOG=ndn.Producer:ndn.Consumer?, I?ve added >> testing print info in my program, it seems everything is fine. May I ask >> what?s the potential reason for this? I?ve attached log and source file >> below. My problem is that I can?t see the log outputs now. >> >> *caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf >> --run grid3* >> *Waf: Entering directory `/home/caster/ndnSim/ns-3/build'* >> *[2810/2875] Compiling scratch/grid3.cc * >> *[2833/2875] Linking build/scratch/grid3* >> *Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'* >> *Build commands will be stored in build/compile_commands.json* >> *'build' finished successfully (40.240s)* >> *Set default parameters for link and channels* >> *create topology* >> *install ndn stack* >> *install global routing interface* >> *get pointers of nodes* >> *define name prefix* >> *install different strategi for different prefix* >> *install consumer app* >> *install producer app* >> *calculate FIB* >> >> 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: From yitongli at hkust-gz.edu.cn Wed Apr 10 20:21:19 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Thu, 11 Apr 2024 03:21:19 +0000 Subject: [ndnSIM] Question about visualization and output In-Reply-To: References: <00C5207C-F978-4940-9065-CD4942BF569C@hkust-gz.edu.cn> Message-ID: <7CD41DB8-C128-4DC9-AAF8-C56CA7D9A0AD@hkust-gz.edu.cn> I?ve tried it again. It seems nothing has changed. I?ve attached the entire log file except for the intermediate process of ./waf building process as it?s too long. May I ask if there?s any wrong operation? Caster 2024?4?11? ??1:43?Sirapop Theeranantachai ??? Can you try again with a fresh directory? https://ndnsim.net/current/best-practices.html Otherwise, I ran out of ideas, unfortunately. On Tue, Apr 9, 2024 at 11:21?PM ??? Yitong LI > wrote: I?ve configured them in the following steps. 1. ./waf configure -d optimized 2. ./waf 3. NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3 Do you think there?s any mistake with them? As according to the documentation, it says using ./waf configure -d optimized can make ndnSIM in debug mode. Thanks, Caster 2024?4?10? ??2:11?Sirapop Theeranantachai > ??? Question 1: Yes, you don't really need to visualize to get any result. You can obtain metrics using these helper functions. https://ndnsim.net/2.2/metric.html Question 2: Seems like the ns-3 or ndnsim is compiled without the debug mode. Can you make sure everything is compiled with debugging enabled? On Tue, Apr 9, 2024, 12:14?AM ??? Yitong LI > wrote: Hi all, I?ve sent another question earlier, I just pasted it here with another relevant question regarding ndnSIM?s output. 1. What's the difference between running using "--visualize" or not. As the simulation can be started when activating visualization, what will happen if not using "?visualize?. I think that it should be possible to run the simulation and see the output report even without ??visualize? option? 2. As there?s problem with kiwi, I tried using ndnSim without ??visualize? and added NS_LOG to see outputs on cmd. However, it gave me nothing when using ?NS_LOG=ndn.Producer:ndn.Consumer?, I?ve added testing print info in my program, it seems everything is fine. May I ask what?s the potential reason for this? I?ve attached log and source file below. My problem is that I can?t see the log outputs now. caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3 Waf: Entering directory `/home/caster/ndnSim/ns-3/build' [2810/2875] Compiling scratch/grid3.cc [2833/2875] Linking build/scratch/grid3 Waf: Leaving directory `/home/caster/ndnSim/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (40.240s) Set default parameters for link and channels create topology install ndn stack install global routing interface get pointers of nodes define name prefix install different strategi for different prefix install consumer app install producer app calculate FIB 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: -------------- next part -------------- caster at ubuntu:~$ mkdir ndnSIM-new caster at ubuntu:~$ cd ndnSIM-new/ caster at ubuntu:~/ndnSIM-new$ git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3 Cloning into 'ns-3'... remote: Enumerating objects: 171384, done. remote: Counting objects: 100% (46613/46613), done. remote: Compressing objects: 100% (2290/2290), done. remote: Total 171384 (delta 44561), reused 44323 (delta 44323), pack-reused 124771 Receiving objects: 100% (171384/171384), 126.18 MiB | 4.12 MiB/s, done. Resolving deltas: 100% (136462/136462), done. Updating files: 100% (3765/3765), done. caster at ubuntu:~/ndnSIM-new$ git clone https://github.com/named-data-ndnSIM/pybindgen.git pybindgen Cloning into 'pybindgen'... remote: Enumerating objects: 6271, done. remote: Counting objects: 100% (118/118), done. remote: Compressing objects: 100% (91/91), done. remote: Total 6271 (delta 58), reused 61 (delta 27), pack-reused 6153 Receiving objects: 100% (6271/6271), 11.32 MiB | 4.48 MiB/s, done. Resolving deltas: 100% (4268/4268), done. caster at ubuntu:~/ndnSIM-new$ git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM Cloning into 'ns-3/src/ndnSIM'... remote: Enumerating objects: 15899, done. remote: Counting objects: 100% (77/77), done. remote: Compressing objects: 100% (51/51), done. remote: Total 15899 (delta 22), reused 71 (delta 21), pack-reused 15822 Receiving objects: 100% (15899/15899), 8.87 MiB | 3.77 MiB/s, done. Resolving deltas: 100% (9975/9975), done. Submodule 'NFD' (https://github.com/named-data-ndnSIM/NFD) registered for path 'NFD' Submodule 'ndn-cxx' (https://github.com/named-data-ndnSIM/ndn-cxx) registered for path 'ndn-cxx' Cloning into '/home/caster/ndnSIM-new/ns-3/src/ndnSIM/NFD'... remote: Enumerating objects: 18463, done. remote: Counting objects: 100% (811/811), done. remote: Compressing objects: 100% (285/285), done. remote: Total 18463 (delta 528), reused 665 (delta 521), pack-reused 17652 Receiving objects: 100% (18463/18463), 8.09 MiB | 4.44 MiB/s, done. Resolving deltas: 100% (14429/14429), done. Cloning into '/home/caster/ndnSIM-new/ns-3/src/ndnSIM/ndn-cxx'... remote: Enumerating objects: 31679, done. remote: Counting objects: 100% (4145/4145), done. remote: Compressing objects: 100% (580/580), done. remote: Total 31679 (delta 3739), reused 3565 (delta 3565), pack-reused 27534 Receiving objects: 100% (31679/31679), 9.89 MiB | 3.48 MiB/s, done. Resolving deltas: 100% (25364/25364), done. Submodule path 'NFD': checked out '361b381b9b552ff3341aa160858bea1d470d2122' Submodule 'websocketpp' (https://github.com/cawka/websocketpp.git) registered for path 'NFD/websocketpp' Cloning into '/home/caster/ndnSIM-new/ns-3/src/ndnSIM/NFD/websocketpp'... remote: Enumerating objects: 12253, done. remote: Counting objects: 100% (1514/1514), done. remote: Compressing objects: 100% (200/200), done. remote: Total 12253 (delta 1479), reused 1314 (delta 1314), pack-reused 10739 Receiving objects: 100% (12253/12253), 8.25 MiB | 4.58 MiB/s, done. Resolving deltas: 100% (7582/7582), done. Submodule path 'NFD/websocketpp': checked out 'ac4e021333675fc80b96eb7be45d218581c897e2' Submodule path 'ndn-cxx': checked out '2b51e5796415b5d41fe268b35250b9453f16d3d6' caster at ubuntu:~/ndnSIM-new$ cd ns-3/ caster at ubuntu:~/ndnSIM-new/ns-3$ ./waf configure -d optimized Setting top to : /home/caster/ndnSIM-new/ns-3 Setting out to : /home/caster/ndnSIM-new/ns-3/build Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for cc version : 9.4.0 Checking for 'g++' (C++ compiler) : /usr/bin/g++ Checking supported compiler CXXFLAGS : -std=c++17 Checking supported optimizations CXXFLAGS : -O3 Checking supported debug CXXFLAGS : -g Checking supported warnings CXXFLAGS : -Wall -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing Checking for compilation flag -march=native support : ok Checking for compilation flag -Wl,--soname=foo support : ok Checking for compilation flag -std=c++17 support : ok Checking boost includes : 1_71 /usr/include Checking boost libs : ok /usr/lib/x86_64-linux-gnu Checking for boost linkage : ok Checking for program 'python' : /usr/bin/python3 Checking for python version >= 2.3 : 3.8.10 python-config : /usr/bin/python3-config Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags : yes Testing pyembed configuration : yes Asking python-config for pyext '--cflags --libs --ldflags' flags : yes Testing pyext configuration : yes Checking for compilation flag -fvisibility=hidden support : ok Checking for compilation flag -Wno-array-bounds support : ok Checking for pybindgen location : ../pybindgen (guessed) Checking for python module 'pybindgen' : ok /home/caster/ndnSIM-new/pybindgen/.eggs/setuptools_scm-8.0.4-py3.8.egg/setuptools_scm/_integration/setuptools.py:30: RuntimeWarning: ERROR: setuptools==45.2.0 is used in combination with setuptools_scm>=8.x Your build configuration is incomplete and previously worked by accident! setuptools_scm requires setuptools>=61 Suggested workaround if applicable: - migrating from the deprecated setup_requires mechanism to pep517/518 and using a pyproject.toml to declare build dependencies which are reliably pre-installed before running the build tools warnings.warn( WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section' Checking for pybindgen version : 0.22.1.post1+ga619e22 Checking for code snippet : yes Checking for types uint64_t and unsigned long equivalence : no Checking for code snippet : no Checking for types uint64_t and unsigned long long equivalence : yes Checking for the apidefs that can be used for Python bindings : gcc-LP64 Checking for internal GCC cxxabi : complete Checking for python module 'pygccxml' : 2.4.0 Checking for pygccxml version : 2.4.0 Checking for program 'castxml' : /usr/bin/castxml Checking for castxml version : 0.2 Checking for click location : not found Checking for program 'pkg-config' : /usr/bin/pkg-config Checking for 'gtk+-3.0 >= 3.22' : yes Checking for 'libxml-2.0 >= 2.7' : yes /home/caster/ndnSIM-new/ns-3/waf-tools/versioning.py:40: DeprecationWarning: invalid escape sequence \d matches = re.match("ns-(\d+)\.(\d+)(?:.(\d+))?(?:-(RC.+))?.*", safe_tag) /home/caster/ndnSIM-new/ns-3/waf-tools/versioning.py:112: DeprecationWarning: invalid escape sequence \d matches = re.match('(.+)-(\d+)-(g[a-fA-F0-9]+)(?:-(dirty))?', out) checking for uint128_t : not found checking for __uint128_t : yes Checking high precision implementation : 128-bit integer (default) Checking for header stdint.h : yes Checking for header inttypes.h : yes Checking for header sys/inttypes.h : not found Checking for header sys/types.h : yes Checking for header sys/stat.h : yes Checking for header dirent.h : yes Checking for header signal.h : yes Checking for header pthread.h : yes Checking for header stdint.h : yes Checking for header inttypes.h : yes Checking for header sys/inttypes.h : not found Checking for library rt : yes Checking for header sys/ioctl.h : yes Checking for header net/if.h : yes Checking for header net/ethernet.h : yes Checking for 'libdpdk' : yes Checking for header linux/if_tun.h : yes Checking for header netpacket/packet.h : yes Checking for header net/netmap_user.h : not found Checking for NSC location : not found Checking for program 'doxygen' : /usr/bin/doxygen Checking for program 'tar' : /usr/bin/tar Checking for program 'sphinx-build' : /usr/bin/sphinx-build Checking for std::to_string : yes Checking for library pthread : yes Checking for 'sqlite3' : yes Checking for OpenSSL version : OpenSSL 1.1.1f 31 Mar 2020 Checking if OpenSSL library works : yes Checking for OpenFlow location : not found Checking for 'sqlite3' : yes Checking for header semaphore.h : yes Checking for header linux/if_tun.h : yes Checking for python module 'gi' : 3.36.0 Checking for python module 'gi.repository.GObject' : ok Checking for python module 'cairo' : ok Checking for python module 'pygraphviz' : 1.5 Checking for python module 'gi.repository.Gtk' : ok Checking for python module 'gi.repository.Gdk' : ok Checking for python module 'gi.repository.Pango' : ok Checking for python module 'gi.repository.GooCanvas' : ok Checking for program 'sudo' : /usr/bin/sudo Checking for program 'valgrind' : /usr/bin/valgrind Checking for 'gsl' : yes libgcrypt-config : /usr/bin/libgcrypt-config Checking for libgcrypt : yes Checking for program 'doxygen' : /usr/bin/doxygen ---- Summary of optional NS-3 features: Build profile : optimized Build directory : BRITE Integration : not enabled (BRITE not enabled (see option --with-brite)) DES Metrics event collection : not enabled (defaults to disabled) DPDK NetDevice : enabled Emulation FdNetDevice : enabled Examples : not enabled (defaults to disabled) File descriptor NetDevice : enabled GNU Scientific Library (GSL) : enabled Gcrypt library : enabled GtkConfigStore : enabled MPI Support : not enabled (option --enable-mpi not selected) NS-3 Click Integration : not enabled (nsclick not enabled (see option --with-nsclick)) NS-3 OpenFlow Integration : not enabled (OpenFlow not enabled (see option --with-openflow)) Netmap emulation FdNetDevice : not enabled (needs net/netmap_user.h) Network Simulation Cradle : not enabled (NSC not found (see option --with-nsc)) PlanetLab FdNetDevice : not enabled (PlanetLab operating system not detected (see option --force-planetlab)) PyViz visualizer : enabled Python API Scanning Support : enabled Python Bindings : enabled Real Time Simulator : enabled SQLite stats support : enabled Tap Bridge : enabled Tap FdNetDevice : enabled Tests : not enabled (defaults to disabled) Threading Primitives : enabled Use sudo to set suid bit : not enabled (option --enable-sudo not selected) XmlIo : enabled ndnSIM : enabled 'configure' finished successfully (1m30.565s) caster at ubuntu:~/ndnSIM-new/ns-3$ ./waf Waf: Entering directory `/home/caster/ndnSIM-new/ns-3/build' Waf: Leaving directory `/home/caster/ndnSIM-new/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (1h21m53.296s) Modules built: antenna aodv applications bridge buildings config-store core csma csma-layout dsdv dsr energy fd-net-device flow-monitor internet internet-apps lr-wpan lte mesh mobility ndnSIM netanim network nix-vector-routing olsr point-to-point point-to-point-layout propagation sixlowpan spectrum stats tap-bridge test (no Python) topology-read traffic-control uan virtual-net-device visualizer wave wifi wimax Modules not built (see ns-3 tutorial for explanation): brite click mpi openflow caster at ubuntu:~/ndnSIM-new/ns-3$ ls AUTHORS CONTRIBUTING.md __pycache__ test.py waf bindings doc README.md testpy.supp waf.bat build examples RELEASE_NOTES utils waf-tools CHANGES.html LICENSE scratch utils.py wscript contrib Makefile src VERSION.info wutils.py caster at ubuntu:~/ndnSIM-new/ns-3$ cd scratch/ caster at ubuntu:~/ndnSIM-new/ns-3/scratch$ ls scratch-simulator.cc subdir caster at ubuntu:~/ndnSIM-new/ns-3/scratch$ vim scratch-simulator.cc caster at ubuntu:~/ndnSIM-new/ns-3/scratch$ cd .. caster at ubuntu:~/ndnSIM-new/ns-3$ cd .. caster at ubuntu:~/ndnSIM-new$ cd .. caster at ubuntu:~$ cd ndn ndn-nlsr/ ndnSim/ ndnSIM-new/ caster at ubuntu:~$ cd ndnSIM bash: cd: ndnSIM: No such file or directory caster at ubuntu:~$ ls Desktop Downloads ndn-nlsr ndnSIM-new Public Videos Documents Music ndnSim Pictures Templates caster at ubuntu:~$ cd ndnSim/ caster at ubuntu:~/ndnSim$ cd ns-3/ caster at ubuntu:~/ndnSim/ns-3$ cd scratch/ caster at ubuntu:~/ndnSim/ns-3/scratch$ ls grid3.cc ndn-random.cc scratch-simulator.cc test-bottleneck.cc ndn-first.cc ndnSIM-bottleneck-6.cc subdir caster at ubuntu:~/ndnSim/ns-3/scratch$ ls grid3.cc ndn-random.cc scratch-simulator.cc test-bottleneck.cc ndn-first.cc ndnSIM-bottleneck-6.cc subdir caster at ubuntu:~/ndnSim/ns-3/scratch$ sudo cp grid3.cc /home/caster/ndnSIM-new/ns-3/scratch/ [sudo] password for caster: caster at ubuntu:~/ndnSim/ns-3/scratch$ cd .. caster at ubuntu:~/ndnSim/ns-3$ cd .. caster at ubuntu:~/ndnSim$ cd .. caster at ubuntu:~$ cd ndnSIM-new/ caster at ubuntu:~/ndnSIM-new$ cd ns-3/ caster at ubuntu:~/ndnSIM-new/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3 Waf: Entering directory `/home/caster/ndnSIM-new/ns-3/build' [2780/2862] Compiling scratch/grid3.cc [2821/2862] Linking build/scratch/grid3 Waf: Leaving directory `/home/caster/ndnSIM-new/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (56.298s) Set default parameters for link and channels create topology install ndn stack install global routing interface get pointers of nodes define name prefix install different strategy for different prefix install consumer app install producer app calculate FIB caster at ubuntu:~/ndnSIM-new/ns-3$ From asim.alhimsya at gmail.com Thu Apr 11 05:14:20 2024 From: asim.alhimsya at gmail.com (Asim ALHIMSYA) Date: Thu, 11 Apr 2024 15:14:20 +0300 Subject: [ndnSIM] Question about visualization and output In-Reply-To: <7CD41DB8-C128-4DC9-AAF8-C56CA7D9A0AD@hkust-gz.edu.cn> References: <00C5207C-F978-4940-9065-CD4942BF569C@hkust-gz.edu.cn> <7CD41DB8-C128-4DC9-AAF8-C56CA7D9A0AD@hkust-gz.edu.cn> Message-ID: Dear Caster As you are a researcher, Depend on yourself to research and reach the results. Get your inspiration from this: https://www.ndnsim.com/howtoinstallndnsim.html Regards On Thu, 11 Apr 2024, 6:21?am ??? Yitong LI, wrote: > I?ve tried it again. It seems nothing has changed. I?ve attached the > entire log file except for the intermediate process of ./waf building > process as it?s too long. May I ask if there?s any wrong operation? > > Caster > > 2024?4?11? ??1:43?Sirapop Theeranantachai ??? > > Can you try again with a fresh directory? > https://ndnsim.net/current/best-practices.html > Otherwise, I ran out of ideas, unfortunately. > > On Tue, Apr 9, 2024 at 11:21?PM ??? Yitong LI > wrote: > > I?ve configured them in the following steps. > *1. ./waf configure -d optimized* > *2. ./waf* > *3. NS_LOG=ndn.Producer:ndn.Consumer ./waf --run grid3* > > Do you think there?s any mistake with them? As according to the > documentation, it says using ./waf configure -d optimized can make ndnSIM > in debug mode. > > Thanks, > Caster > > 2024?4?10? ??2:11?Sirapop Theeranantachai ??? > > Question 1: > Yes, you don't really need to visualize to get any result. You can obtain > metrics using these helper functions. > https://ndnsim.net/2.2/metric.html > > Question 2: > Seems like the ns-3 or ndnsim is compiled without the debug mode. Can you > make sure everything is compiled with debugging enabled? > > On Tue, Apr 9, 2024, 12:14?AM ??? Yitong LI > wrote: > > Hi all, > > I?ve sent another question earlier, I just pasted it here with another > relevant question regarding ndnSIM?s output. > > 1. What's the difference between running using "--visualize" or not. As > the simulation can be started when activating visualization, what will > happen if not using "?visualize?. I think that it should be possible to run > the simulation and see the output report even without ??visualize? option? > > 2. As there?s problem with kiwi, I tried using ndnSim without ??visualize? > and added NS_LOG to see outputs on cmd. However, it gave me nothing when > using ?NS_LOG=ndn.Producer:ndn.Consumer?, I?ve added testing print info > in my program, it seems everything is fine. May I ask what?s the potential > reason for this? I?ve attached log and source file below. My problem is > that I can?t see the log outputs now. > > *caster at ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Producer:ndn.Consumer ./waf --run > grid3* > *Waf: Entering directory `/home/caster/ndnSim/ns-3/build'* > *[2810/2875] Compiling scratch/grid3.cc * > *[2833/2875] Linking build/scratch/grid3* > *Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'* > *Build commands will be stored in build/compile_commands.json* > *'build' finished successfully (40.240s)* > *Set default parameters for link and channels* > *create topology* > *install ndn stack* > *install global routing interface* > *get pointers of nodes* > *define name prefix* > *install different strategi for different prefix* > *install consumer app* > *install producer app* > *calculate FIB* > > Thanks, > Caster > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > _______________________________________________ > 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: From salwa201067 at gmail.com Fri Apr 12 03:05:35 2024 From: salwa201067 at gmail.com (Salwa Abdelwahed) Date: Fri, 12 Apr 2024 11:05:35 +0100 Subject: [ndnSIM] 802.15.4 in ndnSIM Message-ID: Hi all , I'd like to integrate 802.15.4 in ndnSIM. Is there any available topology. How can i proceed. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From salwa201067 at gmail.com Fri Apr 12 06:43:17 2024 From: salwa201067 at gmail.com (Salwa Abdelwahed) Date: Fri, 12 Apr 2024 14:43:17 +0100 Subject: [ndnSIM] Gnerating data with different prefixes Message-ID: Hello all , I tried to generate name prefixes by configuring consumer and equivalent producers in an ndn-wifi topology, the delay files (app-delays-trace) and traces (rate-trace), did not generate any thing . I don't know if it's a prefix configuration problem or something else. here is my code. Can someone guides me how can i proceed. Thanks. using namespace std; namespace ns3 { NS_LOG_COMPONENT_DEFINE("ndn.WifiExample"); int main(int argc, char* argv[]) { // disable fragmentation Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200")); Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200")); Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue("OfdmRate24Mbps")); CommandLine cmd; cmd.Parse(argc, argv); ////////////////////// ////////////////////// ////////////////////// WifiHelper wifi; // wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); wifi.SetStandard(WIFI_STANDARD_80211a); wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", "DataMode", StringValue("OfdmRate24Mbps")); YansWifiChannelHelper wifiChannel; wifiChannel.SetPropagationDelay("ns3::ConstantSpeedPropagationDelayModel"); wifiChannel.AddPropagationLoss("ns3::ThreeLogDistancePropagationLossModel"); wifiChannel.AddPropagationLoss("ns3::NakagamiPropagationLossModel"); YansWifiPhyHelper wifiPhyHelper; wifiPhyHelper.SetChannel(wifiChannel.Create()); wifiPhyHelper.Set("TxPowerStart", DoubleValue(5)); wifiPhyHelper.Set("TxPowerEnd", DoubleValue(5)); WifiMacHelper wifiMacHelper; wifiMacHelper.SetType("ns3::AdhocWifiMac"); Ptr randomizer = CreateObject(); randomizer->SetAttribute("Min", DoubleValue(10)); randomizer->SetAttribute("Max", DoubleValue(100)); NodeContainer nodes; nodes.Create(2); //////////////// // 1. Install Wifi NetDeviceContainer wifiNetDevices = wifi.Install(wifiPhyHelper, wifiMacHelper, nodes); // 3. Install NDN stack NS_LOG_INFO("Installing NDN stack"); ndn::StackHelper ndnHelper; // ndnHelper.AddNetDeviceFaceCreateCallback (WifiNetDevice::GetTypeId (), MakeCallback // (MyNetDeviceFaceCallback)); ndnHelper.setPolicy("nfd::cs::lru"); ndnHelper.setCsSize(1000); ndnHelper.SetDefaultRoutes(true); ndnHelper.Install(nodes); // Set BestRoute strategy ndn::StrategyChoiceHelper::Install(nodes, "/", "/localhost/nfd/strategy/best-route"); // 4. Set up applications NS_LOG_INFO("Installing Applications"); ndn::AppHelper consumerHelperECG("ns3::ndn::ConsumerCbr"); consumerHelperECG.SetPrefix("/ECG"); consumerHelperECG.SetAttribute("Frequency", DoubleValue(10.0)); consumerHelperECG.Install(nodes.Get(0)); ndn::AppHelper producerHelperECG("ns3::ndn::Producer"); producerHelperECG.SetPrefix("/ECG"); producerHelperECG.SetAttribute("PayloadSize", StringValue("1200")); producerHelperECG.Install(nodes.Get(1)); // Configurer un deuxi?me consommateur avec le pr?fixe "/EEG" sur le premier n?ud ndn::AppHelper consumerHelperEEG("ns3::ndn::ConsumerCbr"); consumerHelperEEG.SetPrefix("/EEG"); // Utiliser le pr?fixe "/EEG" consumerHelperEEG.SetAttribute("Frequency", DoubleValue(10.0)); consumerHelperEEG.Install(nodes.Get(0)); // Installer sur le premier n?ud // Configurer un deuxi?me producteur avec le pr?fixe "/EEG" sur le deuxi?me n?ud ndn::AppHelper producerHelperEEG("ns3::ndn::Producer"); producerHelperEEG.SetPrefix("/EEG"); // Utiliser le pr?fixe "/EEG" producerHelperEEG.SetAttribute("PayloadSize", StringValue("1200")); producerHelperEEG.Install(nodes.Get(1)); // Installer sur le deuxi?me n?ud //////////////// Simulator::Stop(Seconds(30.0)); ndn::AppDelayTracer::InstallAll("app-delays-trace.csv"); ndn::L3RateTracer::InstallAll("rate-trace.csv", Seconds(0.5)); Simulator::Run(); Simulator::Destroy(); return 0; } } // namespace ns3 int main(int argc, char* argv[]) { return ns3::main(argc, argv); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From salwa201067 at gmail.com Sat Apr 13 03:13:45 2024 From: salwa201067 at gmail.com (Salwa Abdelwahed) Date: Sat, 13 Apr 2024 11:13:45 +0100 Subject: [ndnSIM] Fwd: Gnerating data with different prefixes In-Reply-To: References: Message-ID: Still generating an empty "app-delay-trace" file , as shown in figure . [image: Screenshot from 2024-04-13 11-12-12.png] Still searching for help. ---------- Forwarded message --------- De : Salwa Abdelwahed Date: ven. 12 avr. 2024 ? 14:43 Subject: Gnerating data with different prefixes To: Hello all , I tried to generate name prefixes by configuring consumer and equivalent producers in an ndn-wifi topology, the delay files (app-delays-trace) and traces (rate-trace), did not generate any thing . I don't know if it's a prefix configuration problem or something else. here is my code. Can someone guides me how can i proceed. Thanks. using namespace std; namespace ns3 { NS_LOG_COMPONENT_DEFINE("ndn.WifiExample"); int main(int argc, char* argv[]) { // disable fragmentation Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200")); Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200")); Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue("OfdmRate24Mbps")); CommandLine cmd; cmd.Parse(argc, argv); ////////////////////// ////////////////////// ////////////////////// WifiHelper wifi; // wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); wifi.SetStandard(WIFI_STANDARD_80211a); wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager", "DataMode", StringValue("OfdmRate24Mbps")); YansWifiChannelHelper wifiChannel; wifiChannel.SetPropagationDelay("ns3::ConstantSpeedPropagationDelayModel"); wifiChannel.AddPropagationLoss("ns3::ThreeLogDistancePropagationLossModel"); wifiChannel.AddPropagationLoss("ns3::NakagamiPropagationLossModel"); YansWifiPhyHelper wifiPhyHelper; wifiPhyHelper.SetChannel(wifiChannel.Create()); wifiPhyHelper.Set("TxPowerStart", DoubleValue(5)); wifiPhyHelper.Set("TxPowerEnd", DoubleValue(5)); WifiMacHelper wifiMacHelper; wifiMacHelper.SetType("ns3::AdhocWifiMac"); Ptr randomizer = CreateObject(); randomizer->SetAttribute("Min", DoubleValue(10)); randomizer->SetAttribute("Max", DoubleValue(100)); NodeContainer nodes; nodes.Create(2); //////////////// // 1. Install Wifi NetDeviceContainer wifiNetDevices = wifi.Install(wifiPhyHelper, wifiMacHelper, nodes); // 3. Install NDN stack NS_LOG_INFO("Installing NDN stack"); ndn::StackHelper ndnHelper; // ndnHelper.AddNetDeviceFaceCreateCallback (WifiNetDevice::GetTypeId (), MakeCallback // (MyNetDeviceFaceCallback)); ndnHelper.setPolicy("nfd::cs::lru"); ndnHelper.setCsSize(1000); ndnHelper.SetDefaultRoutes(true); ndnHelper.Install(nodes); // Set BestRoute strategy ndn::StrategyChoiceHelper::Install(nodes, "/", "/localhost/nfd/strategy/best-route"); // 4. Set up applications NS_LOG_INFO("Installing Applications"); ndn::AppHelper consumerHelperECG("ns3::ndn::ConsumerCbr"); consumerHelperECG.SetPrefix("/ECG"); consumerHelperECG.SetAttribute("Frequency", DoubleValue(10.0)); consumerHelperECG.Install(nodes.Get(0)); ndn::AppHelper producerHelperECG("ns3::ndn::Producer"); producerHelperECG.SetPrefix("/ECG"); producerHelperECG.SetAttribute("PayloadSize", StringValue("1200")); producerHelperECG.Install(nodes.Get(1)); // Configurer un deuxi?me consommateur avec le pr?fixe "/EEG" sur le premier n?ud ndn::AppHelper consumerHelperEEG("ns3::ndn::ConsumerCbr"); consumerHelperEEG.SetPrefix("/EEG"); // Utiliser le pr?fixe "/EEG" consumerHelperEEG.SetAttribute("Frequency", DoubleValue(10.0)); consumerHelperEEG.Install(nodes.Get(0)); // Installer sur le premier n?ud // Configurer un deuxi?me producteur avec le pr?fixe "/EEG" sur le deuxi?me n?ud ndn::AppHelper producerHelperEEG("ns3::ndn::Producer"); producerHelperEEG.SetPrefix("/EEG"); // Utiliser le pr?fixe "/EEG" producerHelperEEG.SetAttribute("PayloadSize", StringValue("1200")); producerHelperEEG.Install(nodes.Get(1)); // Installer sur le deuxi?me n?ud //////////////// Simulator::Stop(Seconds(30.0)); ndn::AppDelayTracer::InstallAll("app-delays-trace.csv"); ndn::L3RateTracer::InstallAll("rate-trace.csv", Seconds(0.5)); Simulator::Run(); Simulator::Destroy(); return 0; } } // namespace ns3 int main(int argc, char* argv[]) { return ns3::main(argc, argv); } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2024-04-13 11-12-12.png Type: image/png Size: 6832 bytes Desc: not available URL: From yitongli at hkust-gz.edu.cn Fri Apr 26 00:06:50 2024 From: yitongli at hkust-gz.edu.cn (=?utf-8?B?5p2O5oC/5puIIFlpdG9uZyBMSQ==?=) Date: Fri, 26 Apr 2024 07:06:50 +0000 Subject: [ndnSIM] About ndnSim-2.5's compatibility with ubuntu 20.04 Message-ID: Hi all, Due to some reasons, I want to try the earlier version ndnSim-2.5. But my ubuntu is 20.04. From the documentation, it hasn?t been claimed that ubuntu 20.04 was supported. I wonder if anyone know that? Cheers, Caster