From harshadshirwadkar at gmail.com Sat May 2 11:48:56 2015 From: harshadshirwadkar at gmail.com (harshad shirwadkar) Date: Sat, 2 May 2015 14:48:56 -0400 Subject: [ndnSIM] PIT Stats Message-ID: Hello all, I am trying to find out size of PIT periodically. It looks like somebody had the same problem back in 2013 and it was possible to track PIT size as PIT was implemented inside ndnSIM. Now, it looks like ndnSIM uses NFD's PIT. I am not sure how can I track PIT size now. How can I do that? Thanks, Harshad. From hishamfarahat at gmail.com Sat May 2 18:59:30 2015 From: hishamfarahat at gmail.com (Hisham Farahat) Date: Sat, 2 May 2015 21:59:30 -0400 Subject: [ndnSIM] ndnSIM Performance Message-ID: Hi, I'm trying to profile ndnSIM 1.0, because My simulation scenarios are taking too long to finish. This was the results: CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000 samples % app name symbol name 610808 49.4017 ndn ns3::Ptr::~Ptr() 268401 21.7081 python2.7 /usr/bin/python2.7 107633 8.7053 ndn ns3::Ptr::~Ptr() 76617 6.1967 ndn ns3::Ptr::~Ptr() 23462 1.8976 ndn ns3::Ptr::~Ptr() ..... is this normal? 50% on ~Ptr() ? Am i doing something wrong? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From wuzhen_mail at 163.com Sun May 3 20:27:58 2015 From: wuzhen_mail at 163.com (Zhen Wu) Date: Mon, 4 May 2015 11:27:58 +0800 (CST) Subject: [ndnSIM] To get interest packet real-time rate Message-ID: <22cd12c2.b8c1.14d1cf74b2a.Coremail.wuzhen_mail@163.com> Dear, I want to get a face's received interest packet real-time rate. I have calulate it by counting the number of received interest in a second.But i find this method is not accurate. In simulation with --visual, we can see the real-time flow rate?how does it get ? thanks for all the researchers. i am wating... Wu -------------- next part -------------- An HTML attachment was scrubbed... URL: From wuzhen_mail at 163.com Mon May 4 00:37:17 2015 From: wuzhen_mail at 163.com (Zhen Wu) Date: Mon, 4 May 2015 15:37:17 +0800 (CST) Subject: [ndnSIM] To get real-time interest packet rate Message-ID: <242bc787.acb5.14d1ddb8dbc.Coremail.wuzhen_mail@163.com> Dear, I want to get a face's received interest packet real-time rate. I have calulate it by counting the number of received interest in a second.But i find this method is not accurate. In simulation with --visual, we can see the real-time flow rate?how does it get ? thanks for all the researchers. i am wating for your reply... Wu -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.kreuzberger at itec.aau.at Mon May 4 05:10:27 2015 From: christian.kreuzberger at itec.aau.at (Christian Kreuzberger) Date: Mon, 4 May 2015 14:10:27 +0200 Subject: [ndnSIM] Potential Bug/Problem with ndn-cxx Message-ID: <007801d08663$4ed412f0$ec7c38d0$@itec.aau.at> Hi, (sorry for the "sloppy bug report" in advance, I am on tight schedule today) It seems that I am having a segfault with the latest "version" of ndn-cxx on github [1] (eaa15f76838caa3fd741b049482ed2d1fc9d3667 ) in conjunction with ndnsim. Not posting this as a bug yet, as I am looking for other having the same issues (it could be that my codebase has a bug). The revision before that (f0da789bd232d408da62ff6d30f4fcf24474bcf7) works fine for me. The problem occurs BEFORE the simulation actually starts when populating FIB entries, therefore it should be easily reproducible with the existing ndnSIM examples. I will provide gdb stacktraces when I have some more time (this evening hopefully), and verify that the problem exists on my other machine as well. [1] https://github.com/named-data/ndn-cxx/commits/master -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.kreuzberger at itec.aau.at Mon May 4 13:22:00 2015 From: christian.kreuzberger at itec.aau.at (Christian Kreuzberger) Date: Mon, 04 May 2015 22:22:00 +0200 Subject: [ndnSIM] Potential Bug/Problem with ndn-cxx In-Reply-To: <007801d08663$4ed412f0$ec7c38d0$@itec.aau.at> References: <007801d08663$4ed412f0$ec7c38d0$@itec.aau.at> Message-ID: Never mind, I solve it. The problem is due to something going wrong when merging my code-base with the current ndn-SIM code-base. On 2015-05-04 14:10, Christian Kreuzberger wrote: > Hi, > > (sorry for the ?sloppy bug report" in advance, I am on tight > schedule today) > > It seems that I am having a segfault with the latest ?version" of > ndn-cxx on github [1] (eaa15f76838caa3fd741b049482ed2d1fc9d3667 ) in > conjunction with ndnsim. > > Not posting this as a bug yet, as I am looking for other having the > same issues (it could be that my codebase has a bug). > > The revision before that (f0da789bd232d408da62ff6d30f4fcf24474bcf7) > works fine for me. > > The problem occurs BEFORE the simulation actually starts when > populating FIB entries, therefore it should be easily reproducible > with the existing ndnSIM examples. > > I will provide gdb stacktraces when I have some more time (this > evening hopefully), and verify that the problem exists on my other > machine as well. > > [1] https://github.com/named-data/ndn-cxx/commits/master [1] > > Links: > ------ > [1] https://github.com/named-data/ndn-cxx/commits/master > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From alexni1992 at gmail.com Mon May 4 18:36:25 2015 From: alexni1992 at gmail.com (Alexander Ni) Date: Tue, 5 May 2015 10:36:25 +0900 Subject: [ndnSIM] Fib Message-ID: Hi everyone, I work with ndnSIM 2.0 and I still not so close with ns-3 and ndnSIM. Can somebody help me? I want to make Fib modification in runtime and don't really know how I should bettter do this. Also I want to implement some additional message types but don't know from where I should better start. -- Sincerely, Alexander Ni -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucasavs at id.uff.br Mon May 4 18:41:18 2015 From: lucasavs at id.uff.br (Lucas De Azevedo Vaccari Simao) Date: Mon, 4 May 2015 22:41:18 -0300 Subject: [ndnSIM] pit size Message-ID: Is there any way to change the size of the pit? Since the ndnSim changed to NFD i can't find a way to change it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue May 5 08:24:39 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 5 May 2015 08:24:39 -0700 Subject: [ndnSIM] Fib In-Reply-To: References: Message-ID: <53188C35-556E-4E75-B48F-C430532395C6@gmail.com> Hi, you could either use the FibHelper: http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper or (this is a more informal and dirty way to do it) use directly the API of NFD?s FIB: http://ndnsim.net/2.0/doxygen/classnfd_1_1Fib.html#a1ed3dd88fe19112ce99be346e87cecbf Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 4, 2015, at 6:36 PM, Alexander Ni wrote: > > Hi everyone, > > I work with ndnSIM 2.0 and I still not so close with ns-3 and ndnSIM. > Can somebody help me? I want to make Fib modification in runtime and don't really know how I should bettter do this. Also I want to implement some additional message types but don't know from where I should better start. > > -- > Sincerely, > Alexander Ni > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Tue May 5 08:26:18 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 5 May 2015 08:26:18 -0700 Subject: [ndnSIM] pit size In-Reply-To: References: Message-ID: Hello, the PIT of NFD does not have size limits. You could achieve that by slightly modifying the PIT class of NFD. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 4, 2015, at 6:41 PM, Lucas De Azevedo Vaccari Simao wrote: > > Is there any way to change the size of the pit? Since the ndnSim changed to NFD i can't find a way to change it. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From alexni1992 at gmail.com Tue May 5 22:09:41 2015 From: alexni1992 at gmail.com (Alexander Ni) Date: Wed, 6 May 2015 14:09:41 +0900 Subject: [ndnSIM] Fib In-Reply-To: <53188C35-556E-4E75-B48F-C430532395C6@gmail.com> References: <53188C35-556E-4E75-B48F-C430532395C6@gmail.com> Message-ID: Hello, Thanks for your answer. I tried to use the FibHelper but have some trouble with metric variable. I don't really understand how to use it with AddRoute function. Can you please help me, Best Regards, Alexander Ni On Wed, May 6, 2015 at 12:24 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi, > > you could either use the FibHelper: > > http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper > > or (this is a more informal and dirty way to do it) use directly the API > of NFD?s FIB: > > > http://ndnsim.net/2.0/doxygen/classnfd_1_1Fib.html#a1ed3dd88fe19112ce99be346e87cecbf > > Hope that this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On May 4, 2015, at 6:36 PM, Alexander Ni wrote: > > > > Hi everyone, > > > > I work with ndnSIM 2.0 and I still not so close with ns-3 and ndnSIM. > > Can somebody help me? I want to make Fib modification in runtime and > don't really know how I should bettter do this. Also I want to implement > some additional message types but don't know from where I should better > start. > > > > -- > > Sincerely, > > Alexander Ni > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -- Sincerely, Alexander Ni -------------- next part -------------- An HTML attachment was scrubbed... URL: From lizhengyin1115 at 163.com Mon May 11 07:11:08 2015 From: lizhengyin1115 at 163.com (lzy) Date: Mon, 11 May 2015 22:11:08 +0800 (CST) Subject: [ndnSIM] change Data rate in 802.11a Message-ID: <3e767007.196d2.14d4350a50e.Coremail.lizhengyin1115@163.com> in my script?i use 802.11a for my wifi rate?it highest speed is 54mbps?but actually the top rate is 6Mbps (or lower) when i run my script,it seems that wifi station can mostly handle 350 packet/s. is there anyone who can help me to solve this problem?here are my defination. std::string phyMode ("OfdmRate54Mbps"); WifiHelper wifi; wifi.SetStandard (WIFI_PHY_STANDARD_80211a); YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO); wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode",StringValue (phyMode), "ControlMode",StringValue (phyMode)); -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexni1992 at gmail.com Mon May 11 19:09:58 2015 From: alexni1992 at gmail.com (Alexander Ni) Date: Tue, 12 May 2015 11:09:58 +0900 Subject: [ndnSIM] AddRoute Message-ID: Hi all, I don't know am I understand right or not, but can Schedule be used with AddRoute. Because I triyng to modify fib in some certain time. And have some errors with use of void expression. Can somebody answer me. -- Sincerely, Alexander Ni -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Tue May 12 01:07:11 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Tue, 12 May 2015 01:07:11 -0700 Subject: [ndnSIM] Relationship between ndnSIM (2.0) and NFD. Message-ID: Hi, In ndnSIM 2.0, is it required to run the NFD in the background for the simulator to run? I want to understand the relationship of NFD wrt ndnSIM. The release notes of ndnSIM 2.0 says that NDN forwarding and management is implemented using NFD source. What does this really mean? For example, when we configure the face-uri of the link between the nodes in the scenario, do we have to provide a real IP address and port or just any arbitrary name (e.g. udp://cs.com) would work? The initial 3 node scenario that I am currently testing, I am getting the following exception. Installing NDN stack on nodes Installing global routing interface on nodes terminate called after throwing an instance of 'ndn::Transport::Error' what(): error while connecting to the forwarder Thread [1] 4723 [core: 2] (Suspended : Signal : SIGABRT:Aborted) __GI_raise() at raise.c:56 0x7fffe90a1cc9 __GI_abort() at abort.c:89 0x7fffe90a50d8 __gnu_cxx::__verbose_terminate_handler() at 0x7fffe99ac6b5 0x7fffe99aa836 std::terminate() at 0x7fffe99aa863 __cxa_rethrow() at 0x7fffe99aaaf6 ndn::Face::processEvents() at face.cpp:445 0x7ffff5ac9572 ns3::ndn::NlsrApp::startEventLoop() at ndn-nlsr-app.cpp:288 0x7ffff58b47da ns3::ndn::NlsrApp::StartApplication() at ndn-nlsr-app.cpp:346 0x7ffff58b4e6c ns3::EventMemberImpl0::Notify() at make-event.h:94 0x7fffef3643b6 <...more frames...> I looked for references the error, and it says (according to this note), that NFD is not running. I have configured the node as follows. 0s 0 ConfParameter:writeLog(): [DEBUG] Router Name: /cs/memphis/rtr0 0s 0 ConfParameter:writeLog(): [DEBUG] Site Name: /edu/memphis 0s 0 ConfParameter:writeLog(): [DEBUG] Network: /ndn 0s 0 ConfParameter:writeLog(): [DEBUG] Router Prefix: /ndn/edu/memphis/cs/memphis/rtr0 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync sync Prefix: /ndn/NLSR/sync 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync LSA prefix: /ndn/NLSR/LSA 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest retry number: 10 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest resend second: 1 0s 0 ConfParameter:writeLog(): [DEBUG] Info Interest interval: 60 0s 0 ConfParameter:writeLog(): [DEBUG] LSA refresh time: 1800 0s 0 ConfParameter:writeLog(): [DEBUG] LSA Interest lifetime: 4 seconds 0s 0 ConfParameter:writeLog(): [DEBUG] Router dead interval: 3600 0s 0 ConfParameter:writeLog(): [DEBUG] Max Faces Per Prefix: 3 0s 0 ConfParameter:writeLog(): [DEBUG] Hyperbolic Routing: 0 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp R: 123.45 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp theta: 1.45 0s 0 ConfParameter:writeLog(): [DEBUG] Log Directory: 0s 0 ConfParameter:writeLog(): [DEBUG] Seq Directory: 0s 0 ConfParameter:writeLog(): [DEBUG] Adjacency LSA build interval: 5 0s 0 ConfParameter:writeLog(): [DEBUG] First Hello Interest interval: 10 0s 0 ConfParameter:writeLog(): [DEBUG] Routing calculation interval: 15 0s 0 AdjacencyList:writeLog(): [DEBUG] -------Adjacency List-------- 0s 0 AdjacencyList:writeLog(): [DEBUG] Number of neighbors: 1 0s 0 Adjacent:writeLog(): [DEBUG] Adjacent : /toNode 0s 0 Adjacent:writeLog(): [DEBUG] Connecting FaceUri: udp://cs.com 0s 0 Adjacent:writeLog(): [DEBUG] Link Cost: 20 0s 0 Adjacent:writeLog(): [DEBUG] Status: 0 0s 0 Adjacent:writeLog(): [DEBUG] Interest Timed out: 0 0s 0 NlsrApp:initialize(): [DEBUG] Default NLSR identity: / 0s 0 NlsrApp:setInfoInterestFilter(): [DEBUG] Setting interest filter for name: /ndn/edu/memphis/cs/memphis/rtr0 0s 0 NlsrApp:setLsaInterestFilter(): [DEBUG] Setting interest filter for name: /ndn/NLSR/LSA/ Can you please elaborate. /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue May 12 07:58:48 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 12 May 2015 07:58:48 -0700 Subject: [ndnSIM] AddRoute In-Reply-To: References: Message-ID: <6FBBDC5E-3B75-41B2-8C79-7C06F7B5178F@gmail.com> Hi Alexander, the easiest way that you can do that is to create a method in your application (which would call the AddRoute method) and invoke callbacks to this method from another method of your application. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 11, 2015, at 7:09 PM, Alexander Ni wrote: > > Hi all, > > I don't know am I understand right or not, but can Schedule be used with AddRoute. Because I triyng to modify fib in some certain time. And have some errors with use of void expression. Can somebody answer me. > > -- > Sincerely, > Alexander Ni > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Tue May 12 08:18:54 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 12 May 2015 08:18:54 -0700 Subject: [ndnSIM] Relationship between ndnSIM (2.0) and NFD. In-Reply-To: References: Message-ID: <686E161B-A88D-4E80-BFF8-3A16F31A28D3@gmail.com> Hi Anil, currently the code of NFD version 0.2.0 (or at least a big part of it including all the forwarding pipelines, CS, FIB, PIT etc) is a part of the ndnSIM 2.0 codebase. The near future plan is to decouple NFD from ndnSIM, so that we can port new versions of NFD in an easy way (actually this has already been done, since I have a workable version of ndnSIM 2.0 using NFD 0.3.1 as a submodule. I am not sure, though, when these changes would be merged). In the current ndnSIM codebase, you can see how we ported NFD to ndnSIM by looking for 4 or 5 commits, the title of which starts with ?NFD:?. For example: https://github.com/NDN-Routing/ndnSIM/commit/542a62381aa36bdf6d936893270f2cb60f9f6ea9 Currently, the NFD ported in ndnSIM is being started by ndnSIM itself: https://github.com/NDN-Routing/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L156 You cannot start a NFD instance externally to the simulator, since NFD is currently a part of the simulator and is controlled by the simulator. You cannot set up any IP addresses or UDP/TCP transport, since this NFD works ?locally? on each simulated node. Did you try to port NLSR directly to the simulator? Or you are working on a custom NLSR version? From the logs, I guess that the first one is the case. I can see that you are trying to use ndn::Face, however, this is not currently supported by ndnSIM. The plan is to be supported in the near future. Here is the redmine issue for that: http://redmine.named-data.net/issues/2370 When this task is done, you will be able to port directly real-world applications to ndnSIM. Please let me know if you need anything else. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 12, 2015, at 1:07 AM, Anil Jangam wrote: > > Hi, > > In ndnSIM 2.0, is it required to run the NFD in the background for the simulator to run? I want to understand the relationship of NFD wrt ndnSIM. > > The release notes of ndnSIM 2.0 says that NDN forwarding and management is implemented using NFD source. What does this really mean? For example, when we configure the face-uri of the link between the nodes in the scenario, do we have to provide a real IP address and port or just any arbitrary name (e.g. udp://cs.com) would work? > > The initial 3 node scenario that I am currently testing, I am getting the following exception. > > Installing NDN stack on nodes > Installing global routing interface on nodes > terminate called after throwing an instance of 'ndn::Transport::Error' > what(): error while connecting to the forwarder > > Thread [1] 4723 [core: 2] (Suspended : Signal : SIGABRT:Aborted) > __GI_raise() at raise.c:56 0x7fffe90a1cc9 > __GI_abort() at abort.c:89 0x7fffe90a50d8 > __gnu_cxx::__verbose_terminate_handler() at 0x7fffe99ac6b5 > 0x7fffe99aa836 > > std::terminate() at 0x7fffe99aa863 > __cxa_rethrow() at 0x7fffe99aaaf6 > ndn::Face::processEvents() at face.cpp:445 0x7ffff5ac9572 > ns3::ndn::NlsrApp::startEventLoop() at ndn-nlsr-app.cpp:288 0x7ffff58b47da > ns3::ndn::NlsrApp::StartApplication() at ndn-nlsr-app.cpp:346 0x7ffff58b4e6c > ns3::EventMemberImpl0::Notify() at make-event.h:94 0x7fffef3643b6 > > <...more frames...> > > I looked for references the error, and it says (according to this note), that NFD is not running. > > I have configured the node as follows. > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Name: /cs/memphis/rtr0 > 0s 0 ConfParameter:writeLog(): [DEBUG] Site Name: /edu/memphis > 0s 0 ConfParameter:writeLog(): [DEBUG] Network: /ndn > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Prefix: /ndn/edu/memphis/cs/memphis/rtr0 > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync sync Prefix: /ndn/NLSR/sync > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync LSA prefix: /ndn/NLSR/LSA > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest retry number: 10 > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest resend second: 1 > 0s 0 ConfParameter:writeLog(): [DEBUG] Info Interest interval: 60 > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA refresh time: 1800 > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA Interest lifetime: 4 seconds > 0s 0 ConfParameter:writeLog(): [DEBUG] Router dead interval: 3600 > 0s 0 ConfParameter:writeLog(): [DEBUG] Max Faces Per Prefix: 3 > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyperbolic Routing: 0 > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp R: 123.45 > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp theta: 1.45 > 0s 0 ConfParameter:writeLog(): [DEBUG] Log Directory: > 0s 0 ConfParameter:writeLog(): [DEBUG] Seq Directory: > 0s 0 ConfParameter:writeLog(): [DEBUG] Adjacency LSA build interval: 5 > 0s 0 ConfParameter:writeLog(): [DEBUG] First Hello Interest interval: 10 > 0s 0 ConfParameter:writeLog(): [DEBUG] Routing calculation interval: 15 > 0s 0 AdjacencyList:writeLog(): [DEBUG] -------Adjacency List-------- > 0s 0 AdjacencyList:writeLog(): [DEBUG] Number of neighbors: 1 > 0s 0 Adjacent:writeLog(): [DEBUG] Adjacent : /toNode > 0s 0 Adjacent:writeLog(): [DEBUG] Connecting FaceUri: udp://cs.com > 0s 0 Adjacent:writeLog(): [DEBUG] Link Cost: 20 > 0s 0 Adjacent:writeLog(): [DEBUG] Status: 0 > 0s 0 Adjacent:writeLog(): [DEBUG] Interest Timed out: 0 > 0s 0 NlsrApp:initialize(): [DEBUG] Default NLSR identity: / > 0s 0 NlsrApp:setInfoInterestFilter(): [DEBUG] Setting interest filter for name: /ndn/edu/memphis/cs/memphis/rtr0 > 0s 0 NlsrApp:setLsaInterestFilter(): [DEBUG] Setting interest filter for name: /ndn/NLSR/LSA/ > > Can you please elaborate. > > /anil. > From anilj.mailing at gmail.com Tue May 12 11:54:26 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Tue, 12 May 2015 11:54:26 -0700 Subject: [ndnSIM] Relationship between ndnSIM (2.0) and NFD. In-Reply-To: <686E161B-A88D-4E80-BFF8-3A16F31A28D3@gmail.com> References: <686E161B-A88D-4E80-BFF8-3A16F31A28D3@gmail.com> Message-ID: Hello Spyros, Thanks for the detailed elaboration! I have ported the NLSR to ndnSIM already, and doing some basic tests right now. For this porting, I have taken ndnSIM code into my own git repo (its an independent one, and not a branch) . So for now, focus is on porting, and getting it up. So far, I was not clear and assuming that NFD needed to be running from outside. Now, I will stop my NFD instance before I launch ndnSIM. AFA ndn::Face in ndnSIM is concerned, what workaround would you suggest? I read the redmine 2370, and it does not appear to be a quick change. Also I am not sure of its timelines. Alex perhaps can comment on this. /anil. On Tue, May 12, 2015 at 8:18 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Anil, > > currently the code of NFD version 0.2.0 (or at least a big part of it > including all the forwarding pipelines, CS, FIB, PIT etc) is a part of the > ndnSIM 2.0 codebase. The near future plan is to decouple NFD from ndnSIM, > so that we can port new versions of NFD in an easy way (actually this has > already been done, since I have a workable version of ndnSIM 2.0 using NFD > 0.3.1 as a submodule. I am not sure, though, when these changes would be > merged). In the current ndnSIM codebase, you can see how we ported NFD to > ndnSIM by looking for 4 or 5 commits, the title of which starts with > ?NFD:?. For example: > > > https://github.com/NDN-Routing/ndnSIM/commit/542a62381aa36bdf6d936893270f2cb60f9f6ea9 > > Currently, the NFD ported in ndnSIM is being started by ndnSIM itself: > > > https://github.com/NDN-Routing/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L156 > > You cannot start a NFD instance externally to the simulator, since NFD is > currently a part of the simulator and is controlled by the simulator. You > cannot set up any IP addresses or UDP/TCP transport, since this NFD works > ?locally? on each simulated node. > > Did you try to port NLSR directly to the simulator? Or you are working on > a custom NLSR version? From the logs, I guess that the first one is the > case. I can see that you are trying to use ndn::Face, however, this is not > currently supported by ndnSIM. The plan is to be supported in the near > future. Here is the redmine issue for that: > > http://redmine.named-data.net/issues/2370 > > When this task is done, you will be able to port directly real-world > applications to ndnSIM. > > Please let me know if you need anything else. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On May 12, 2015, at 1:07 AM, Anil Jangam > wrote: > > > > Hi, > > > > In ndnSIM 2.0, is it required to run the NFD in the background for the > simulator to run? I want to understand the relationship of NFD wrt ndnSIM. > > > > The release notes of ndnSIM 2.0 says that NDN forwarding and management > is implemented using NFD source. What does this really mean? For example, > when we configure the face-uri of the link between the nodes in the > scenario, do we have to provide a real IP address and port or just any > arbitrary name (e.g. udp://cs.com) would work? > > > > The initial 3 node scenario that I am currently testing, I am getting > the following exception. > > > > Installing NDN stack on nodes > > Installing global routing interface on nodes > > terminate called after throwing an instance of 'ndn::Transport::Error' > > what(): error while connecting to the forwarder > > > > Thread [1] 4723 [core: 2] (Suspended : Signal : SIGABRT:Aborted) > > __GI_raise() at raise.c:56 0x7fffe90a1cc9 > > __GI_abort() at abort.c:89 0x7fffe90a50d8 > > __gnu_cxx::__verbose_terminate_handler() at 0x7fffe99ac6b5 > > 0x7fffe99aa836 > > > > std::terminate() at 0x7fffe99aa863 > > __cxa_rethrow() at 0x7fffe99aaaf6 > > ndn::Face::processEvents() at face.cpp:445 0x7ffff5ac9572 > > ns3::ndn::NlsrApp::startEventLoop() at ndn-nlsr-app.cpp:288 > 0x7ffff58b47da > > ns3::ndn::NlsrApp::StartApplication() at ndn-nlsr-app.cpp:346 > 0x7ffff58b4e6c > > ns3::EventMemberImpl0::Notify() at make-event.h:94 0x7fffef3643b6 > > > > <...more frames...> > > > > I looked for references the error, and it says (according to this note), > that NFD is not running. > > > > I have configured the node as follows. > > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Name: /cs/memphis/rtr0 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Site Name: /edu/memphis > > 0s 0 ConfParameter:writeLog(): [DEBUG] Network: /ndn > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Prefix: > /ndn/edu/memphis/cs/memphis/rtr0 > > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync sync Prefix: > /ndn/NLSR/sync > > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync LSA prefix: > /ndn/NLSR/LSA > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest retry number: 10 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest resend second: 1 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Info Interest interval: 60 > > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA refresh time: 1800 > > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA Interest lifetime: 4 seconds > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router dead interval: 3600 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Max Faces Per Prefix: 3 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyperbolic Routing: 0 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp R: 123.45 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp theta: 1.45 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Log Directory: > > 0s 0 ConfParameter:writeLog(): [DEBUG] Seq Directory: > > 0s 0 ConfParameter:writeLog(): [DEBUG] Adjacency LSA build interval: 5 > > 0s 0 ConfParameter:writeLog(): [DEBUG] First Hello Interest interval: 10 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Routing calculation interval: 15 > > 0s 0 AdjacencyList:writeLog(): [DEBUG] -------Adjacency List-------- > > 0s 0 AdjacencyList:writeLog(): [DEBUG] Number of neighbors: 1 > > 0s 0 Adjacent:writeLog(): [DEBUG] Adjacent : /toNode > > 0s 0 Adjacent:writeLog(): [DEBUG] Connecting FaceUri: udp://cs.com > > 0s 0 Adjacent:writeLog(): [DEBUG] Link Cost: 20 > > 0s 0 Adjacent:writeLog(): [DEBUG] Status: 0 > > 0s 0 Adjacent:writeLog(): [DEBUG] Interest Timed out: 0 > > 0s 0 NlsrApp:initialize(): [DEBUG] Default NLSR identity: / > > 0s 0 NlsrApp:setInfoInterestFilter(): [DEBUG] Setting interest filter > for name: /ndn/edu/memphis/cs/memphis/rtr0 > > 0s 0 NlsrApp:setLsaInterestFilter(): [DEBUG] Setting interest filter for > name: /ndn/NLSR/LSA/ > > > > Can you please elaborate. > > > > /anil. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue May 12 19:29:53 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 12 May 2015 19:29:53 -0700 Subject: [ndnSIM] Relationship between ndnSIM (2.0) and NFD. In-Reply-To: References: <686E161B-A88D-4E80-BFF8-3A16F31A28D3@gmail.com> Message-ID: Unfortunately, I am not sure whether there is such a simple workaround for this thing. There are currently some suggestions/thoughts on the table, but they are not so trivial. I am afraid that I do not have a clear timeline for this task right now. It should be done, though, in the near future. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 12, 2015, at 11:54 AM, Anil Jangam wrote: > > Hello Spyros, > > Thanks for the detailed elaboration! I have ported the NLSR to ndnSIM already, and doing some basic tests right now. For this porting, I have taken ndnSIM code into my own git repo (its an independent one, and not a branch) . So for now, focus is on porting, and getting it up. > > So far, I was not clear and assuming that NFD needed to be running from outside. Now, I will stop my NFD instance before I launch ndnSIM. AFA ndn::Face in ndnSIM is concerned, what workaround would you suggest? I read the redmine 2370, and it does not appear to be a quick change. Also I am not sure of its timelines. Alex perhaps can comment on this. > > /anil. > > > > > On Tue, May 12, 2015 at 8:18 AM, Spyridon (Spyros) Mastorakis wrote: > Hi Anil, > > currently the code of NFD version 0.2.0 (or at least a big part of it including all the forwarding pipelines, CS, FIB, PIT etc) is a part of the ndnSIM 2.0 codebase. The near future plan is to decouple NFD from ndnSIM, so that we can port new versions of NFD in an easy way (actually this has already been done, since I have a workable version of ndnSIM 2.0 using NFD 0.3.1 as a submodule. I am not sure, though, when these changes would be merged). In the current ndnSIM codebase, you can see how we ported NFD to ndnSIM by looking for 4 or 5 commits, the title of which starts with ?NFD:?. For example: > > https://github.com/NDN-Routing/ndnSIM/commit/542a62381aa36bdf6d936893270f2cb60f9f6ea9 > > Currently, the NFD ported in ndnSIM is being started by ndnSIM itself: > > https://github.com/NDN-Routing/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L156 > > You cannot start a NFD instance externally to the simulator, since NFD is currently a part of the simulator and is controlled by the simulator. You cannot set up any IP addresses or UDP/TCP transport, since this NFD works ?locally? on each simulated node. > > Did you try to port NLSR directly to the simulator? Or you are working on a custom NLSR version? From the logs, I guess that the first one is the case. I can see that you are trying to use ndn::Face, however, this is not currently supported by ndnSIM. The plan is to be supported in the near future. Here is the redmine issue for that: > > http://redmine.named-data.net/issues/2370 > > When this task is done, you will be able to port directly real-world applications to ndnSIM. > > Please let me know if you need anything else. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On May 12, 2015, at 1:07 AM, Anil Jangam wrote: > > > > Hi, > > > > In ndnSIM 2.0, is it required to run the NFD in the background for the simulator to run? I want to understand the relationship of NFD wrt ndnSIM. > > > > The release notes of ndnSIM 2.0 says that NDN forwarding and management is implemented using NFD source. What does this really mean? For example, when we configure the face-uri of the link between the nodes in the scenario, do we have to provide a real IP address and port or just any arbitrary name (e.g. udp://cs.com) would work? > > > > The initial 3 node scenario that I am currently testing, I am getting the following exception. > > > > Installing NDN stack on nodes > > Installing global routing interface on nodes > > terminate called after throwing an instance of 'ndn::Transport::Error' > > what(): error while connecting to the forwarder > > > > Thread [1] 4723 [core: 2] (Suspended : Signal : SIGABRT:Aborted) > > __GI_raise() at raise.c:56 0x7fffe90a1cc9 > > __GI_abort() at abort.c:89 0x7fffe90a50d8 > > __gnu_cxx::__verbose_terminate_handler() at 0x7fffe99ac6b5 > > 0x7fffe99aa836 > > > > std::terminate() at 0x7fffe99aa863 > > __cxa_rethrow() at 0x7fffe99aaaf6 > > ndn::Face::processEvents() at face.cpp:445 0x7ffff5ac9572 > > ns3::ndn::NlsrApp::startEventLoop() at ndn-nlsr-app.cpp:288 0x7ffff58b47da > > ns3::ndn::NlsrApp::StartApplication() at ndn-nlsr-app.cpp:346 0x7ffff58b4e6c > > ns3::EventMemberImpl0::Notify() at make-event.h:94 0x7fffef3643b6 > > > > <...more frames...> > > > > I looked for references the error, and it says (according to this note), that NFD is not running. > > > > I have configured the node as follows. > > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Name: /cs/memphis/rtr0 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Site Name: /edu/memphis > > 0s 0 ConfParameter:writeLog(): [DEBUG] Network: /ndn > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Prefix: /ndn/edu/memphis/cs/memphis/rtr0 > > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync sync Prefix: /ndn/NLSR/sync > > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync LSA prefix: /ndn/NLSR/LSA > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest retry number: 10 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest resend second: 1 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Info Interest interval: 60 > > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA refresh time: 1800 > > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA Interest lifetime: 4 seconds > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router dead interval: 3600 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Max Faces Per Prefix: 3 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyperbolic Routing: 0 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp R: 123.45 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp theta: 1.45 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Log Directory: > > 0s 0 ConfParameter:writeLog(): [DEBUG] Seq Directory: > > 0s 0 ConfParameter:writeLog(): [DEBUG] Adjacency LSA build interval: 5 > > 0s 0 ConfParameter:writeLog(): [DEBUG] First Hello Interest interval: 10 > > 0s 0 ConfParameter:writeLog(): [DEBUG] Routing calculation interval: 15 > > 0s 0 AdjacencyList:writeLog(): [DEBUG] -------Adjacency List-------- > > 0s 0 AdjacencyList:writeLog(): [DEBUG] Number of neighbors: 1 > > 0s 0 Adjacent:writeLog(): [DEBUG] Adjacent : /toNode > > 0s 0 Adjacent:writeLog(): [DEBUG] Connecting FaceUri: udp://cs.com > > 0s 0 Adjacent:writeLog(): [DEBUG] Link Cost: 20 > > 0s 0 Adjacent:writeLog(): [DEBUG] Status: 0 > > 0s 0 Adjacent:writeLog(): [DEBUG] Interest Timed out: 0 > > 0s 0 NlsrApp:initialize(): [DEBUG] Default NLSR identity: / > > 0s 0 NlsrApp:setInfoInterestFilter(): [DEBUG] Setting interest filter for name: /ndn/edu/memphis/cs/memphis/rtr0 > > 0s 0 NlsrApp:setLsaInterestFilter(): [DEBUG] Setting interest filter for name: /ndn/NLSR/LSA/ > > > > Can you please elaborate. > > > > /anil. > > > > From anilj.mailing at gmail.com Thu May 14 01:18:24 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Thu, 14 May 2015 01:18:24 -0700 Subject: [ndnSIM] Relationship between ndnSIM (2.0) and NFD. In-Reply-To: References: <686E161B-A88D-4E80-BFF8-3A16F31A28D3@gmail.com> Message-ID: Hello Alex, Can you please share your opinions on this problem? Thanks. /anil. On May 12, 2015 7:29 PM, "Spyridon (Spyros) Mastorakis" < spiros.mastorakis at gmail.com> wrote: > Unfortunately, I am not sure whether there is such a simple workaround for > this thing. There are currently some suggestions/thoughts on the table, but > they are not so trivial. > > I am afraid that I do not have a clear timeline for this task right now. > It should be done, though, in the near future. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On May 12, 2015, at 11:54 AM, Anil Jangam > wrote: > > > > Hello Spyros, > > > > Thanks for the detailed elaboration! I have ported the NLSR to ndnSIM > already, and doing some basic tests right now. For this porting, I have > taken ndnSIM code into my own git repo (its an independent one, and not a > branch) . So for now, focus is on porting, and getting it up. > > > > So far, I was not clear and assuming that NFD needed to be running from > outside. Now, I will stop my NFD instance before I launch ndnSIM. AFA > ndn::Face in ndnSIM is concerned, what workaround would you suggest? I read > the redmine 2370, and it does not appear to be a quick change. Also I am > not sure of its timelines. Alex perhaps can comment on this. > > > > /anil. > > > > > > > > > > On Tue, May 12, 2015 at 8:18 AM, Spyridon (Spyros) Mastorakis < > spiros.mastorakis at gmail.com> wrote: > > Hi Anil, > > > > currently the code of NFD version 0.2.0 (or at least a big part of it > including all the forwarding pipelines, CS, FIB, PIT etc) is a part of the > ndnSIM 2.0 codebase. The near future plan is to decouple NFD from ndnSIM, > so that we can port new versions of NFD in an easy way (actually this has > already been done, since I have a workable version of ndnSIM 2.0 using NFD > 0.3.1 as a submodule. I am not sure, though, when these changes would be > merged). In the current ndnSIM codebase, you can see how we ported NFD to > ndnSIM by looking for 4 or 5 commits, the title of which starts with > ?NFD:?. For example: > > > > > https://github.com/NDN-Routing/ndnSIM/commit/542a62381aa36bdf6d936893270f2cb60f9f6ea9 > > > > Currently, the NFD ported in ndnSIM is being started by ndnSIM itself: > > > > > https://github.com/NDN-Routing/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L156 > > > > You cannot start a NFD instance externally to the simulator, since NFD > is currently a part of the simulator and is controlled by the simulator. > You cannot set up any IP addresses or UDP/TCP transport, since this NFD > works ?locally? on each simulated node. > > > > Did you try to port NLSR directly to the simulator? Or you are working > on a custom NLSR version? From the logs, I guess that the first one is the > case. I can see that you are trying to use ndn::Face, however, this is not > currently supported by ndnSIM. The plan is to be supported in the near > future. Here is the redmine issue for that: > > > > http://redmine.named-data.net/issues/2370 > > > > When this task is done, you will be able to port directly real-world > applications to ndnSIM. > > > > Please let me know if you need anything else. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > > > On May 12, 2015, at 1:07 AM, Anil Jangam > wrote: > > > > > > Hi, > > > > > > In ndnSIM 2.0, is it required to run the NFD in the background for the > simulator to run? I want to understand the relationship of NFD wrt ndnSIM. > > > > > > The release notes of ndnSIM 2.0 says that NDN forwarding and > management is implemented using NFD source. What does this really mean? For > example, when we configure the face-uri of the link between the nodes in > the scenario, do we have to provide a real IP address and port or just any > arbitrary name (e.g. udp://cs.com) would work? > > > > > > The initial 3 node scenario that I am currently testing, I am getting > the following exception. > > > > > > Installing NDN stack on nodes > > > Installing global routing interface on nodes > > > terminate called after throwing an instance of 'ndn::Transport::Error' > > > what(): error while connecting to the forwarder > > > > > > Thread [1] 4723 [core: 2] (Suspended : Signal : SIGABRT:Aborted) > > > __GI_raise() at raise.c:56 0x7fffe90a1cc9 > > > __GI_abort() at abort.c:89 0x7fffe90a50d8 > > > __gnu_cxx::__verbose_terminate_handler() at 0x7fffe99ac6b5 > > > 0x7fffe99aa836 > > > > > > std::terminate() at 0x7fffe99aa863 > > > __cxa_rethrow() at 0x7fffe99aaaf6 > > > ndn::Face::processEvents() at face.cpp:445 0x7ffff5ac9572 > > > ns3::ndn::NlsrApp::startEventLoop() at ndn-nlsr-app.cpp:288 > 0x7ffff58b47da > > > ns3::ndn::NlsrApp::StartApplication() at ndn-nlsr-app.cpp:346 > 0x7ffff58b4e6c > > > ns3::EventMemberImpl0::Notify() at make-event.h:94 0x7fffef3643b6 > > > > > > <...more frames...> > > > > > > I looked for references the error, and it says (according to this > note), that NFD is not running. > > > > > > I have configured the node as follows. > > > > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Name: /cs/memphis/rtr0 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Site Name: /edu/memphis > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Network: /ndn > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router Prefix: > /ndn/edu/memphis/cs/memphis/rtr0 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync sync Prefix: > /ndn/NLSR/sync > > > 0s 0 ConfParameter:writeLog(): [DEBUG] ChronoSync LSA prefix: > /ndn/NLSR/LSA > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest retry number: 10 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hello Interest resend second: 1 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Info Interest interval: 60 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA refresh time: 1800 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] LSA Interest lifetime: 4 seconds > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Router dead interval: 3600 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Max Faces Per Prefix: 3 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyperbolic Routing: 0 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp R: 123.45 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Hyp theta: 1.45 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Log Directory: > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Seq Directory: > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Adjacency LSA build interval: 5 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] First Hello Interest interval: > 10 > > > 0s 0 ConfParameter:writeLog(): [DEBUG] Routing calculation interval: 15 > > > 0s 0 AdjacencyList:writeLog(): [DEBUG] -------Adjacency List-------- > > > 0s 0 AdjacencyList:writeLog(): [DEBUG] Number of neighbors: 1 > > > 0s 0 Adjacent:writeLog(): [DEBUG] Adjacent : /toNode > > > 0s 0 Adjacent:writeLog(): [DEBUG] Connecting FaceUri: udp://cs.com > > > 0s 0 Adjacent:writeLog(): [DEBUG] Link Cost: 20 > > > 0s 0 Adjacent:writeLog(): [DEBUG] Status: 0 > > > 0s 0 Adjacent:writeLog(): [DEBUG] Interest Timed out: 0 > > > 0s 0 NlsrApp:initialize(): [DEBUG] Default NLSR identity: / > > > 0s 0 NlsrApp:setInfoInterestFilter(): [DEBUG] Setting interest filter > for name: /ndn/edu/memphis/cs/memphis/rtr0 > > > 0s 0 NlsrApp:setLsaInterestFilter(): [DEBUG] Setting interest filter > for name: /ndn/NLSR/LSA/ > > > > > > Can you please elaborate. > > > > > > /anil. > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ehsan at SOE.UCSC.EDU Fri May 15 00:17:20 2015 From: ehsan at SOE.UCSC.EDU (Ehsan Hemmati) Date: Fri, 15 May 2015 00:17:20 -0700 Subject: [ndnSIM] Name Append Number Message-ID: Hi, Whenever I use appendNumber(46), it appends "....." instead of number 46! How should I solve the problem. Best, Ehsan -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri May 15 11:01:03 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 15 May 2015 11:01:03 -0700 Subject: [ndnSIM] Name Append Number In-Reply-To: References: Message-ID: Hi Ehsan, When you use appendNumber, this number is added in binary form according to current NDN naming conventions (http://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions/ ). To get the number, you just need to use .toNumber() method on the name component (e.g., if it is the last component, then name.get(-1).toNumber()) ? Alex > On May 15, 2015, at 12:17 AM, Ehsan Hemmati wrote: > > Hi, > > Whenever I use appendNumber(46), it appends "....." instead of number 46! > How should I solve the problem. > Best, > Ehsan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at UCLA.EDU Fri May 15 15:34:23 2015 From: alexander.afanasyev at UCLA.EDU (Alex Afanasyev) Date: Fri, 15 May 2015 15:34:23 -0700 Subject: [ndnSIM] change Data rate in 802.11a In-Reply-To: <3e767007.196d2.14d4350a50e.Coremail.lizhengyin1115@163.com> References: <3e767007.196d2.14d4350a50e.Coremail.lizhengyin1115@163.com> Message-ID: <97F5495F-C5E8-420D-A3CE-7C37BA1D83C0@ucla.edu> Hi Izy, Unfortunately, I don?t have an answer to your question. Consider asking on a general NS-3 mailing list, as users there could be much more familiar with wifi simulation model. ? Alex > On May 11, 2015, at 7:11 AM, lzy wrote: > > in my script?i use 802.11a for my wifi rate?it highest speed is 54mbps?but actually the top rate is 6Mbps (or lower) when i run my script,it seems that wifi station can mostly handle 350 packet/s. is there anyone who can help me to solve this problem?here are my defination. > > std::string phyMode ("OfdmRate54Mbps"); > WifiHelper wifi; > wifi.SetStandard (WIFI_PHY_STANDARD_80211a); > YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); > wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO); > wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", > "DataMode",StringValue (phyMode), > "ControlMode",StringValue (phyMode)); -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at UCLA.EDU Fri May 15 15:42:31 2015 From: alexander.afanasyev at UCLA.EDU (Alex Afanasyev) Date: Fri, 15 May 2015 15:42:31 -0700 Subject: [ndnSIM] Fib In-Reply-To: References: <53188C35-556E-4E75-B48F-C430532395C6@gmail.com> Message-ID: Hi ALexander, Metric is just an arbitrary ?cost? value that you would like to associate with the specific link. The value is really up to you. The only logic in ndnSIM/NFD is that strategy may prefer a next hop that has lower metric value. ? Alex > On May 5, 2015, at 10:09 PM, Alexander Ni wrote: > > Hello, > > Thanks for your answer. I tried to use the FibHelper but have some trouble with metric variable. I don't really understand how to use it with AddRoute function. Can you please help me, > > Best Regards, > Alexander Ni > > On Wed, May 6, 2015 at 12:24 AM, Spyridon (Spyros) Mastorakis > wrote: > Hi, > > you could either use the FibHelper: > > http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper > > or (this is a more informal and dirty way to do it) use directly the API of NFD?s FIB: > > http://ndnsim.net/2.0/doxygen/classnfd_1_1Fib.html#a1ed3dd88fe19112ce99be346e87cecbf > > Hope that this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On May 4, 2015, at 6:36 PM, Alexander Ni > wrote: > > > > Hi everyone, > > > > I work with ndnSIM 2.0 and I still not so close with ns-3 and ndnSIM. > > Can somebody help me? I want to make Fib modification in runtime and don't really know how I should bettter do this. Also I want to implement some additional message types but don't know from where I should better start. > > > > -- > > Sincerely, > > Alexander Ni > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > > -- > Sincerely, > Alexander Ni > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Fri May 15 15:48:26 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 15 May 2015 15:48:26 -0700 Subject: [ndnSIM] To get real-time interest packet rate In-Reply-To: <242bc787.acb5.14d1ddb8dbc.Coremail.wuzhen_mail@163.com> References: <242bc787.acb5.14d1ddb8dbc.Coremail.wuzhen_mail@163.com> Message-ID: <27356B55-E000-4C7D-A6E8-0353F069E7BE@ucla.edu> Hi Zhen, What you see in the visualizer it is not real real-time flow rate. It is estimation of this rate using exponentially weighted moving averaging (http://en.wikipedia.org/wiki/Moving_average ), which is general technique for such estimation. You can try it and see if it would fit in your case. ? Alex > On May 4, 2015, at 12:37 AM, Zhen Wu wrote: > > Dear, > I want to get a face's received interest packet real-time rate. > I have calulate it by counting the number of received interest in a second.But i find this method is not accurate. > In simulation with --visual, we can see the real-time flow rate?how does it get ? > thanks for all the researchers. i am wating for your reply... > Wu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at UCLA.EDU Fri May 15 16:21:10 2015 From: alexander.afanasyev at UCLA.EDU (Alex Afanasyev) Date: Fri, 15 May 2015 16:21:10 -0700 Subject: [ndnSIM] ndnSIM Performance In-Reply-To: References: Message-ID: <00FF109B-76DC-4EB0-A8FA-1E644374A381@ucla.edu> Hi Hisham, I hope you?re compiling and running code in optimized mode (./waf configure -d optimized). In optimized mode, ~Ptr() should just decrement a counter, in debug mode there could be more complex things happening, though I?m not sure why would it take 50% of time. ? Alex > On May 2, 2015, at 6:59 PM, Hisham Farahat wrote: > > Hi, > I'm trying to profile ndnSIM 1.0, because My simulation scenarios are taking too long to finish. This was the results: > CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated) > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000 > samples % app name symbol name > 610808 49.4017 ndn ns3::Ptr::~Ptr() > 268401 21.7081 python2.7 /usr/bin/python2.7 > 107633 8.7053 ndn ns3::Ptr::~Ptr() > 76617 6.1967 ndn ns3::Ptr::~Ptr() > 23462 1.8976 ndn ns3::Ptr::~Ptr() > ..... > > is this normal? 50% on ~Ptr() ? > Am i doing something wrong? > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Fri May 15 17:06:31 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 15 May 2015 17:06:31 -0700 Subject: [ndnSIM] Route L2 frames with NDN (ndnSIM environment) In-Reply-To: <245053862.5265.1431734391607.JavaMail.yahoo@mail.yahoo.com> References: <449280069.364034.1431424799217.JavaMail.yahoo@mail.yahoo.com> <245053862.5265.1431734391607.JavaMail.yahoo@mail.yahoo.com> Message-ID: <9086743C-31AE-4A01-B6CD-09D7C921BB36@ucla.edu> Hi Armin, ndnSIM already works directly on top of L2 frames, be it PPP frames with PointToPoint channels and network devices or any other type of channels. Take a look into model/ndn-net-device-face.cpp for more details. ? Alex > On May 15, 2015, at 4:59 PM, Science Mart wrote: > > Dear friends and Alexander, > > > I have a network working in layer 2 by Ethernet frames. Now, I want to route frames with NDN in ndnSIM. > Could you please help me to how can I provide "Encapsulation and Decapsulation" properties by Ethernet frames (L2) and NDN packets (L3) by ndnSIM? > > > Thank you very much for any contribution in advance. > Armin > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From science.mart at yahoo.com Fri May 15 16:59:51 2015 From: science.mart at yahoo.com (Science Mart) Date: Fri, 15 May 2015 23:59:51 +0000 (UTC) Subject: [ndnSIM] Route L2 frames with NDN (ndnSIM environment) In-Reply-To: <449280069.364034.1431424799217.JavaMail.yahoo@mail.yahoo.com> References: <449280069.364034.1431424799217.JavaMail.yahoo@mail.yahoo.com> Message-ID: <245053862.5265.1431734391607.JavaMail.yahoo@mail.yahoo.com> Dear friends and Alexander, I have a network working in layer 2 by Ethernet frames. Now, I want to route frames with NDN in ndnSIM.Could you please help me to how can I provide "Encapsulation and Decapsulation" properties by Ethernet frames (L2) and NDN packets (L3) by ndnSIM? Thank you very much for any contribution in advance.Armin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kanin at inl.ics.keio.ac.jp Sat May 16 09:22:44 2015 From: kanin at inl.ics.keio.ac.jp (Kanin Assantachai) Date: Sun, 17 May 2015 01:22:44 +0900 Subject: [ndnSIM] Modify/Read payload content & Read the content in cache Message-ID: <55576ED4.7000306@inl.ics.keio.ac.jp> Dear Alex / Spyridon, Currently I am working with various parts of the simulator (version 1.1) related to its caching mechanism. I need your kind help for the following questions. 1. I would like to modify the payload of packets sent by the producer app. My current approach is to change this part of code in the OnInterest() function of ndn-producer.cc: Ptr data = Create (Create (m_virtualPayloadSize)); to std::string string = "Hello"; Ptr data = Create (Create (reinterpret_cast(&string[0]), 5)); I want to firstly check if this simple way works. Even though the code is compiled without an error, I have a difficulty checking whether the payload of the packet really carries this string "Hello". So far, I add this code to the OnData() function of ndn-consumer.cc to try to read the content of the payload: data->GetPayload ()->Print (std::cout); It only outputs the size of the payload in the terminal. I have tried reading this previous archive about reading the content of payload but still cannot solve this problem: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-January/001501.html In summary, my questions are whether my simple method in adding a specific string to the payload works, and which function (or other approach) can I use to really see the real content (string) of the payload? 2. I would like to get the latest content which has just been added to the LRU cache. So in the file "lru-policy.h", after this line of code in the insert() function: policy_container::push_back (*item); I tried adding this line of code to read the newly added content: std::cout << "Item added: " << policy_container::end ()->payload()->GetName() << std::endl; When I compile the file, I get an error saying that the compiler cannot recognize the GetName() function. I wonder if I need to #include other files. My reference is this archive: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2014-July/001329.html Thank you for your help in advance. Sincerely, Kanin Assantachai From kanin at inl.ics.keio.ac.jp Mon May 18 08:21:57 2015 From: kanin at inl.ics.keio.ac.jp (Kanin Assantachai) Date: Tue, 19 May 2015 00:21:57 +0900 Subject: [ndnSIM] Getting "Face" in PIT of node in simulator version 1.1 & Sending extra interest message Message-ID: <555A0395.9080302@inl.ics.keio.ac.jp> Dear Spyridon / Alex, These are the follow-up questions to the email I sent a few days ago. But since they are not quite related to the previous questions, I would like to create another email for a separate series of archived email. 1. I would like to print out the list of "Face" stored in the PIT of a node. Even though it was asked before in this archived email: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-February/001693.html , the suggested method only applies to the simulator version 2.0 since it uses nfd library in the code. However as I am still working with version 1.1 (I tried to upgrade to version 2.0 earlier, but the BRITE integration component somehow does not compile with the new version), may I ask for possible solutions to do this task in version 1.1? 2. I would like to make a node along the content retrieving path sends another copy of the same interest message to its neighbor node instead of the original intended destination. Please suggest some approaches for this feature. For example, let's say there is Node "A" which is connected to Node "B". Node B also connects to both Node C and Node D. If I install a consumer app on node A, and producer apps on both node C and D, how can I make node B sends extra copy of interest message to node D when its original destination of the original interest is node C? I have tried reading through the code of the functions SendPacket() and ScheduleNextPacket() of ndn-consumer.cc, but I am not quite sure if they are the correct place to modify the code. Thank you for your kind suggestions in advance. Sincerely, Kanin Assantachai From hishamfarahat at gmail.com Wed May 20 11:22:07 2015 From: hishamfarahat at gmail.com (Hisham Farahat) Date: Wed, 20 May 2015 14:22:07 -0400 Subject: [ndnSIM] Upgrading to Ubuntu 15.04 Message-ID: Hi, Is it ok to upgrade to Ubuntu 15.04? is ndnSIM compatible with the new version? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Wed May 20 14:36:51 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 20 May 2015 14:36:51 -0700 Subject: [ndnSIM] Upgrading to Ubuntu 15.04 In-Reply-To: References: Message-ID: <391E8C33-310D-4086-A71F-E19D54331B5B@ucla.edu> Hi Hisham, Yes, we have tested that ndnSIM compiles on 15.04 and it should work normally. ? Alex > On May 20, 2015, at 11:22 AM, Hisham Farahat wrote: > > Hi, > Is it ok to upgrade to Ubuntu 15.04? is ndnSIM compatible with the new version? > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From kanin at inl.ics.keio.ac.jp Wed May 20 19:12:09 2015 From: kanin at inl.ics.keio.ac.jp (Kanin Assantachai) Date: Thu, 21 May 2015 11:12:09 +0900 Subject: [ndnSIM] Getting "Face" in PIT of node in simulator version 1.1 & Sending extra interest message In-Reply-To: <555A0395.9080302@inl.ics.keio.ac.jp> References: <555A0395.9080302@inl.ics.keio.ac.jp> Message-ID: <555D3EF9.6090801@inl.ics.keio.ac.jp> Dear Alex / Spyridon, I would like to give some update that I have figured out the solution to my first question in another email already. However, I still would like to receive some suggestions on these 2 issues below. Sorry in advance if my email seems like rushing on you. It could take some time to answer my questions. Kanin Assantachai On 19-May-15 12:21 AM, Kanin Assantachai wrote: > Dear Spyridon / Alex, > > These are the follow-up questions to the email I sent a few days ago. > But since they are not quite related to the previous questions, I > would like to create another email for a separate series of archived > email. > > 1. I would like to print out the list of "Face" stored in the PIT of a > node. Even though it was asked before in this archived email: > http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-February/001693.html , > the suggested method only applies to the simulator version 2.0 since > it uses nfd library in the code. However as I am still working with > version 1.1 (I tried to upgrade to version 2.0 earlier, but the BRITE > integration component somehow does not compile with the new version), > may I ask for possible solutions to do this task in version 1.1? > > 2. I would like to make a node along the content retrieving path sends > another copy of the same interest message to its neighbor node instead > of the original intended destination. Please suggest some approaches > for this feature. For example, let's say there is Node "A" which is > connected to Node "B". Node B also connects to both Node C and Node D. > If I install a consumer app on node A, and producer apps on both node > C and D, how can I make node B sends extra copy of interest message to > node D when its original destination of the original interest is node > C? I have tried reading through the code of the functions SendPacket() > and ScheduleNextPacket() of ndn-consumer.cc, but I am not quite sure > if they are the correct place to modify the code. > > Thank you for your kind suggestions in advance. > > Sincerely, > > Kanin Assantachai > From anilj.mailing at gmail.com Fri May 22 18:18:49 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Fri, 22 May 2015 18:18:49 -0700 Subject: [ndnSIM] Application specific ndn::Scheduler instance and its behavior. Message-ID: Hi, Section 2.3.2 of ndnSIM2.0 guide says, "The scheduler of NFD was redirected to ns3::Simulator, so that NFD can schedule events that will be executed by the simulator." My application schedules events using its own ndn::Scheduler instance. - I am not clear how this application specific scheduler is going to behave. Do we need to use ndnSIM's scheduler? Currently, I do not see any events posted to simulator's queue and it terminates after its time is done. - This is specially more important when I have two nodes with application installed on them, and both using different ndn::Scheduler instance. With respect to the above note from ndnSIM guide, how does application specific ndn::Scheduler instance behave? /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rim.chabbi at gmail.com Sat May 23 16:11:35 2015 From: rim.chabbi at gmail.com (rim chabbi) Date: Sun, 24 May 2015 00:11:35 +0100 Subject: [ndnSIM] (no subject) Message-ID: Hello, I want to add some information into the interest packet. So that i will use the ns3::tag. usBut I dont know how to use the fuction serialize and deserialize() -- *Best Regards* * Rim CHEBBI * * Telecommunication & Networks Engineering * -------------- next part -------------- An HTML attachment was scrubbed... URL: From trade20122012 at gmail.com Sun May 24 03:38:26 2015 From: trade20122012 at gmail.com (Trade) Date: Sun, 24 May 2015 03:38:26 -0700 Subject: [ndnSIM] installation error ndnsim 2.0 Message-ID: <5561AA22.80204@gmail.com> under the directory ndn-cxx, after ./waf, getting this error: [119/123] Linking build/libndn-cxx.a [120/123] Linking build/bin/ndncatchunks3 [121/123] Linking build/bin/ndnsec [122/123] Linking build/bin/ndnputchunks3 [123/123] Linking build/bin/tlvdump Undefined symbols for architecture x86_64: "vtable for CryptoPP::SHA256", referenced from: ndn::SecTpmFile::Impl::transformName(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::DL_SignerImpl, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256, int>, CryptoPP::DL_Keys_ECDSA, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256> >::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::TF_ObjectImplBase, CryptoPP::RSA, CryptoPP::PKCS1v15_SignatureMessageEncodingMethod, CryptoPP::SHA256>, CryptoPP::InvertibleRSAFunction>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) ndn::ndn_digestSha256(unsigned char const*, unsigned long, unsigned char*) in libndn-cxx.a(crypto.cpp.2.o) ndn::crypto::sha256(unsigned char const*, unsigned long) in libndn-cxx.a(crypto.cpp.2.o) CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(crypto.cpp.2.o) ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Undefined symbols for architecture x86_64: "vtable for CryptoPP::SHA256", referenced from: ndn::SecTpmFile::Impl::transformName(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::DL_SignerImpl, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256, int>, CryptoPP::DL_Keys_ECDSA, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256> >::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::TF_ObjectImplBase, CryptoPP::RSA, CryptoPP::PKCS1v15_SignatureMessageEncodingMethod, CryptoPP::SHA256>, CryptoPP::InvertibleRSAFunction>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) ndn::ndn_digestSha256(unsigned char const*, unsigned long, unsigned char*) in libndn-cxx.a(crypto.cpp.2.o) ndn::crypto::sha256(unsigned char const*, unsigned long) in libndn-cxx.a(crypto.cpp.2.o) CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(crypto.cpp.2.o) ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Undefined symbols for architecture x86_64: "vtable for CryptoPP::SHA256", referenced from: ndn::ndn_digestSha256(unsigned char const*, unsigned long, unsigned char*) in libndn-cxx.a(crypto.cpp.2.o) ndn::crypto::sha256(unsigned char const*, unsigned long) in libndn-cxx.a(crypto.cpp.2.o) CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(crypto.cpp.2.o) ndn::SecTpmFile::Impl::transformName(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::DL_SignerImpl, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256, int>, CryptoPP::DL_Keys_ECDSA, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256> >::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(sec-tpm-file.cpp.2.o) CryptoPP::TF_ObjectImplBase, CryptoPP::RSA, CryptoPP::PKCS1v15_SignatureMessageEncodingMethod, CryptoPP::SHA256>, CryptoPP::InvertibleRSAFunction>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) -------------- next part -------------- An HTML attachment was scrubbed... URL: From anselme333 at gmail.com Sun May 24 07:14:57 2015 From: anselme333 at gmail.com (NDIKUMANA ANSELME) Date: Sun, 24 May 2015 23:14:57 +0900 Subject: [ndnSIM] ConsumerWindow trace Message-ID: Dear All, I would like to use WindowTrace and InFlight for getting details about the number of outstanding Interests. Any hint on how I can use WindowTrace and InFlight trace, will be appreciate. Thank you in advance for your help. Anselme NDIKUMANA -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Sun May 24 09:50:52 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 24 May 2015 09:50:52 -0700 Subject: [ndnSIM] installation error ndnsim 2.0 In-Reply-To: <5561AA22.80204@gmail.com> References: <5561AA22.80204@gmail.com> Message-ID: <7E645378-19B2-4350-BB4C-A598362285AA@gmail.com> Hi, this is not related to ndnSIM, but ndn-cxx. I forwarded your email to the appropriate mailing list. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 24, 2015, at 3:38 AM, Trade wrote: > > under the directory ndn-cxx, after ./waf, getting this error: > > > [119/123] Linking build/libndn-cxx.a > [120/123] Linking build/bin/ndncatchunks3 > [121/123] Linking build/bin/ndnsec > [122/123] Linking build/bin/ndnputchunks3 > [123/123] Linking build/bin/tlvdump > Undefined symbols for architecture x86_64: > "vtable for CryptoPP::SHA256", referenced from: > ndn::SecTpmFile::Impl::transformName(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::DL_SignerImpl, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256, int>, CryptoPP::DL_Keys_ECDSA, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256> >::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::TF_ObjectImplBase, CryptoPP::RSA, CryptoPP::PKCS1v15_SignatureMessageEncodingMethod, CryptoPP::SHA256>, CryptoPP::InvertibleRSAFunction>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > ndn::ndn_digestSha256(unsigned char const*, unsigned long, unsigned char*) in libndn-cxx.a(crypto.cpp.2.o) > ndn::crypto::sha256(unsigned char const*, unsigned long) in libndn-cxx.a(crypto.cpp.2.o) > CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(crypto.cpp.2.o) > ... > NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > Undefined symbols for architecture x86_64: > "vtable for CryptoPP::SHA256", referenced from: > ndn::SecTpmFile::Impl::transformName(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::DL_SignerImpl, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256, int>, CryptoPP::DL_Keys_ECDSA, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256> >::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::TF_ObjectImplBase, CryptoPP::RSA, CryptoPP::PKCS1v15_SignatureMessageEncodingMethod, CryptoPP::SHA256>, CryptoPP::InvertibleRSAFunction>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > ndn::ndn_digestSha256(unsigned char const*, unsigned long, unsigned char*) in libndn-cxx.a(crypto.cpp.2.o) > ndn::crypto::sha256(unsigned char const*, unsigned long) in libndn-cxx.a(crypto.cpp.2.o) > CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(crypto.cpp.2.o) > ... > NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > Undefined symbols for architecture x86_64: > "vtable for CryptoPP::SHA256", referenced from: > ndn::ndn_digestSha256(unsigned char const*, unsigned long, unsigned char*) in libndn-cxx.a(crypto.cpp.2.o) > ndn::crypto::sha256(unsigned char const*, unsigned long) in libndn-cxx.a(crypto.cpp.2.o) > CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(crypto.cpp.2.o) > ndn::SecTpmFile::Impl::transformName(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::DL_SignerImpl, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256, int>, CryptoPP::DL_Keys_ECDSA, CryptoPP::DL_Algorithm_ECDSA, CryptoPP::DL_SignatureMessageEncodingMethod_DSA, CryptoPP::SHA256> >::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::ClonableImpl, 64u, CryptoPP::HashTransformation>, CryptoPP::SHA256> >::Clone() const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > CryptoPP::TF_ObjectImplBase, CryptoPP::RSA, CryptoPP::PKCS1v15_SignatureMessageEncodingMethod, CryptoPP::SHA256>, CryptoPP::InvertibleRSAFunction>::NewSignatureAccumulator(CryptoPP::RandomNumberGenerator&) const in libndn-cxx.a(sec-tpm-file.cpp.2.o) > ... > NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) From kanin at inl.ics.keio.ac.jp Sun May 24 22:23:03 2015 From: kanin at inl.ics.keio.ac.jp (Kanin Assantachai) Date: Mon, 25 May 2015 14:23:03 +0900 Subject: [ndnSIM] Modify/Read payload content & Read the content in cache In-Reply-To: <55576ED4.7000306@inl.ics.keio.ac.jp> References: <55576ED4.7000306@inl.ics.keio.ac.jp> Message-ID: <5562B1B7.7080904@inl.ics.keio.ac.jp> Dear everyone, As I have figured out the solutions to my own questions already, I would like to contribute some knowledge back to the community as well since I have received a lot of suggestions here. Feel free to modify these to suit your needs. :) 1. Modify packet payload (implemented in ndn-producer.cc) std::string string = "payloadString"; // payload content to be added data = Create (Create (reinterpret_cast(&string[0]), string.size())); // create data packet using the value of "string" variable 2. Read payload content (implemented in ndn-consumer.cc) int payloadSize = data->GetPayload ()->GetSize (); std::string content = ""; for (int i=0; iGetPayload ()->CopyData(reinterpret_cast(&content[0]), content.size()); std::cout << "Received payload content: " << content << std::endl; 3. Read name of content in cache (actually implemented in ndn-producer.cc not lru-policy.h) Ptr cs = GetNode ()->GetObject (); Ptr current = cs->Begin (); // can iterate to another content store entry before printing its name std::string string; string = string + current->GetName ().toUri (); std::cout << "Content name: " << string << std::endl; Hope this helps those who are looking to do something similar! Kanin Assantachai On 17-May-15 1:22 AM, Kanin Assantachai wrote: > Dear Alex / Spyridon, > > Currently I am working with various parts of the simulator (version > 1.1) related to its caching mechanism. I need your kind help for the > following questions. > > 1. I would like to modify the payload of packets sent by the producer > app. My current approach is to change this part of code in the > OnInterest() function of ndn-producer.cc: > > Ptr data = Create (Create (m_virtualPayloadSize)); > > to > > std::string string = "Hello"; > Ptr data = Create (Create (reinterpret_cast uint8_t*>(&string[0]), 5)); > > I want to firstly check if this simple way works. Even though the code > is compiled without an error, I have a difficulty checking whether the > payload of the packet really carries this string "Hello". So far, I > add this code to the OnData() function of ndn-consumer.cc to try to > read the content of the payload: > > data->GetPayload ()->Print (std::cout); > > It only outputs the size of the payload in the terminal. I have tried > reading this previous archive about reading the content of payload but > still cannot solve this problem: > http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-January/001501.html > In summary, my questions are whether my simple method in adding a > specific string to the payload works, and which function (or other > approach) can I use to really see the real content (string) of the > payload? > > 2. I would like to get the latest content which has just been added to > the LRU cache. So in the file "lru-policy.h", after this line of code > in the insert() function: > > policy_container::push_back (*item); > > I tried adding this line of code to read the newly added content: > > std::cout << "Item added: " << policy_container::end > ()->payload()->GetName() << std::endl; > > When I compile the file, I get an error saying that the compiler > cannot recognize the GetName() function. I wonder if I need to > #include other files. My reference is this archive: > http://www.lists.cs.ucla.edu/pipermail/ndnsim/2014-July/001329.html > > Thank you for your help in advance. > > Sincerely, > > Kanin Assantachai > From kanin at inl.ics.keio.ac.jp Sun May 24 22:44:27 2015 From: kanin at inl.ics.keio.ac.jp (Kanin Assantachai) Date: Mon, 25 May 2015 14:44:27 +0900 Subject: [ndnSIM] Getting "Face" in PIT of node in simulator version 1.1 & Sending extra interest message In-Reply-To: <555A0395.9080302@inl.ics.keio.ac.jp> References: <555A0395.9080302@inl.ics.keio.ac.jp> Message-ID: <5562B6BB.8000307@inl.ics.keio.ac.jp> Dear everyone, As in my another email, I have figured out the solutions to my own questions, so I would like to share how I implemented these features as well. Here they are! 1. Get the "Face" connected to neighbor nodes (implemented in ndn-forwarding-strategy.cc) Reference: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000238.html Ptr tempNode = inFace->GetNode (); for (uint32_t deviceId = 0; deviceId < tempNode->GetNDevices (); deviceId ++) { Ptr device = tempNode->GetDevice (deviceId); // get channel, to which device is connected (a "wire") Ptr channel = device->GetChannel (); for (uint32_t channelDeviceId = 0; channelDeviceId < channel->GetNDevices (); channelDeviceId ++) { Ptr channelDevice = channel->GetDevice (channelDeviceId); if (channelDevice == device){ tempNode->GetObject()->GetFaceByNetDevice(channelDevice); // modify this part on your own to keep this "Face" continue; // channelDevice is a "neighbor" } } } 2. Send extra interest message to another destination (implemented in ndn-forwarding-strategy.cc) // Clear the list of outgoing face in the pitEntry first, add the outgoing face you want, then send the interest again pitEntry->ClearOutgoing (); pitEntry->AddOutgoing (); PropagateInterest (inFace, interest, pitEntry); Again, hope this is helpful to the community. Kanin Assantachai On 19-May-15 12:21 AM, Kanin Assantachai wrote: > Dear Spyridon / Alex, > > These are the follow-up questions to the email I sent a few days ago. > But since they are not quite related to the previous questions, I > would like to create another email for a separate series of archived > email. > > 1. I would like to print out the list of "Face" stored in the PIT of a > node. Even though it was asked before in this archived email: > http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-February/001693.html , > the suggested method only applies to the simulator version 2.0 since > it uses nfd library in the code. However as I am still working with > version 1.1 (I tried to upgrade to version 2.0 earlier, but the BRITE > integration component somehow does not compile with the new version), > may I ask for possible solutions to do this task in version 1.1? > > 2. I would like to make a node along the content retrieving path sends > another copy of the same interest message to its neighbor node instead > of the original intended destination. Please suggest some approaches > for this feature. For example, let's say there is Node "A" which is > connected to Node "B". Node B also connects to both Node C and Node D. > If I install a consumer app on node A, and producer apps on both node > C and D, how can I make node B sends extra copy of interest message to > node D when its original destination of the original interest is node > C? I have tried reading through the code of the functions SendPacket() > and ScheduleNextPacket() of ndn-consumer.cc, but I am not quite sure > if they are the correct place to modify the code. > > Thank you for your kind suggestions in advance. > > Sincerely, > > Kanin Assantachai > From anilj.mailing at gmail.com Sun May 24 23:05:34 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Sun, 24 May 2015 23:05:34 -0700 Subject: [ndnSIM] Incompatibility between ndnSIM EventId and NLSR EventId. Message-ID: Hi, I am facing an incompatibility between the EventId used by scheduler in ndnSIM and EventId used by scheduler in NLSR. The background to this problem is as follows: - I am porting NLSR to the ndnSIM and trying to replace the NLSR specific event scheduler with that of ndnSIM event scheduler. - ndnSIM provides a single scheduler interface so that all the event generated by the ndn application can be put into the event queue for processing. - Now, there is a difference between the EventId in simulator and the one used in NLSR NLSR EventID implementation is: namespace ndn { namespace util { namespace scheduler { struct EventIdImpl; typedef shared_ptr EventId; } // scheduler } // util } // ndn ndnSIM EventId implementation is: namespace ns3 { class EventImpl; class EventId { } } // ns3 Using the scheduler in ndnSIM to replace the scheduler in NLSR, perhaps may not be a correct approach. Or perhaps it is the right approach, and we might have to change NLSR code. I am not able to decide. Right now, I am getting the following compile error: nlsr/lsdb.cpp:80:9: error: could not convert ?event? from ?ns3::EventId? to ?ndn::util::scheduler::EventId {aka std::shared_ptr}? Assuming the change is correct, and both the EventId implementations are different from other, appears to be large impact on the NLSR code. Can you provide your comments on this and what is the correct approach? /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Mon May 25 00:10:54 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 25 May 2015 00:10:54 -0700 Subject: [ndnSIM] ConsumerWindow trace In-Reply-To: References: Message-ID: <80D34695-E73E-408F-9EAD-C6B7942819DB@gmail.com> Hi, a quick way, if you run ndnSIM in debug mode, is to enable the logging component of the ConsumerWindow application (so that to print the logs on your standard output) and save the output to a file. If you run ndnSIM in optimized mode, a quick way is to slightly modify the code of the ConsumerWindow application, so that to write in a file directly from the application. Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 24, 2015, at 7:14 AM, NDIKUMANA ANSELME wrote: > > Dear All, > > I would like to use WindowTrace and InFlight for getting details about the number of outstanding Interests. > > Any hint on how I can use WindowTrace and InFlight trace, will be appreciate. > > Thank you in advance for your help. > > Anselme NDIKUMANA > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Mon May 25 12:28:08 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 25 May 2015 12:28:08 -0700 Subject: [ndnSIM] (no subject) In-Reply-To: References: Message-ID: <0F22B2F7-E58A-4161-9D4F-D3CBAFC98995@gmail.com> Hi, You will need to implement a logic similar to the one of the hop count tag: https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.cpp I would also suggest that you consider extending the Interest class of ndn-cxx directly. Probably you will find this solution easier than messing with NS3 tags. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 23, 2015, at 4:11 PM, rim chabbi wrote: > > Hello, > I want to add some information into the interest packet. So that i will use the ns3::tag. usBut I dont know how to use the fuction serialize and deserialize() > > -- > > Best Regards > Rim CHEBBI > > Telecommunication & Networks Engineering > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From xdlisjtu at gmail.com Tue May 26 01:40:06 2015 From: xdlisjtu at gmail.com (Xingdong Li) Date: Tue, 26 May 2015 16:40:06 +0800 Subject: [ndnSIM] Strategy substitution not take effect Message-ID: Hi, all. I have already modified interest rate in ndn-grid.cpp and use L2Tracer/L3RateTracer to record the change. And there are some changes. But the problem arose when I change the strategy. When I substitute best-route strategy by broadcast or others, the rate or the drop stayed the same! That was really ridiculous. Is the topology too simple? I am looking for any advise on how to change the strategy. Thanks for replying. -------------- next part -------------- An HTML attachment was scrubbed... URL: From poschdaniel2 at gmail.com Tue May 26 01:50:19 2015 From: poschdaniel2 at gmail.com (Daniel Posch) Date: Tue, 26 May 2015 10:50:19 +0200 Subject: [ndnSIM] Strategy substitution not take effect In-Reply-To: References: Message-ID: <556433CB.7080900@gmail.com> Hi, I am pretty sure that you have to modify line 61 in ndn-grid.cpp too. From: ndn::GlobalRoutingHelper::CalculateRoutes(); To: ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(); Otherwise the FIB considers only the shortest path. Greetings, Daniel On 05/26/2015 10:40 AM, Xingdong Li wrote: > Hi, all. > > I have already modified interest rate in ndn-grid.cpp and use > L2Tracer/L3RateTracer to record the change. And there are some changes. > > But the problem arose when I change the strategy. When I substitute > best-route strategy by broadcast or others, the rate or the drop > stayed the same! That was really ridiculous. Is the topology too simple? > > I am looking for any advise on how to change the strategy. > > Thanks for replying. > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue May 26 08:14:07 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 26 May 2015 08:14:07 -0700 Subject: [ndnSIM] (no subject) In-Reply-To: References: <0F22B2F7-E58A-4161-9D4F-D3CBAFC98995@gmail.com> Message-ID: <3371729D-9D5F-446F-B260-22CB483EF652@gmail.com> Hi, please use the ?reply to all? option, so that our comments are visible to all the users. That should work as well. However, I would suggest that you consider modifying the Interest class directly. I think that it is probably easier than messing with NS3 tags. Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 26, 2015, at 2:27 AM, rim chabbi wrote: > > hello, > thank you Spyridon for the answer > I try to use the NS3 TAG but it is working for the Data packet and not for the Interest Packet because the payload of interest is zero, so that I think to use the header class and add the information to it using the AddHeader and PeekHeader. > > 2015-05-25 20:28 GMT+01:00 Spyridon (Spyros) Mastorakis : > Hi, > > You will need to implement a logic similar to the one of the hop count tag: > > https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.cpp > > I would also suggest that you consider extending the Interest class of ndn-cxx directly. Probably you will find this solution easier than messing with NS3 tags. > > > From anilj.mailing at gmail.com Tue May 26 20:54:26 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Tue, 26 May 2015 20:54:26 -0700 Subject: [ndnSIM] Incompatibility between ndnSIM EventId and NLSR EventId. In-Reply-To: References: Message-ID: Hi Vince, For now, I have replaced the EventId in NLSR with that of used in ndnSIM. I am able to continue with this for now, and shall look into more generic solution as you mentioned later. Will keep a note of it. After this, I could see the events getting scheduled in the debug logs. /anil. On Tue, May 26, 2015 at 8:30 AM, Vince Lehman (vslehman) < vslehman at memphis.edu> wrote: > Hi Anil, > > I don?t have any experience with ndnSim, but it looks like NFD uses a > wrapper around the ndnSim scheduler. One option would be making a generic > interface for the scheduler in NLSR that can be used in both the real NLSR > implementation as well as the ndnSim version. The implementation file for > the scheduler can then differ between the versions; the simulator version > uses the ns3 scheduler and the real version uses the ndn-cxx scheduler. > > -- > Vince Lehman > > On May 25, 2015, at 1:05 AM, Anil Jangam wrote: > > Hi, > > I am facing an incompatibility between the EventId used by scheduler in > ndnSIM and EventId used by scheduler in NLSR. > > The background to this problem is as follows: > > - I am porting NLSR to the ndnSIM and trying to replace the NLSR > specific event scheduler with that of ndnSIM event scheduler. > - ndnSIM provides a single scheduler interface so that all the event > generated by the ndn application can be put into the event queue for > processing. > - Now, there is a difference between the EventId in simulator and the > one used in NLSR > > NLSR EventID implementation is: > > namespace ndn { > namespace util { > namespace scheduler { > > struct EventIdImpl; > > typedef shared_ptr EventId; > } // scheduler > } // util > } // ndn > > > ndnSIM EventId implementation is: > > namespace ns3 { > > class EventImpl; > > class EventId { > } > } // ns3 > > > Using the scheduler in ndnSIM to replace the scheduler in NLSR, perhaps > may not be a correct approach. Or perhaps it is the right approach, and we > might have to change NLSR code. I am not able to decide. > > Right now, I am getting the following compile error: > > nlsr/lsdb.cpp:80:9: error: could not convert ?event? from ?ns3::EventId? > to ?ndn::util::scheduler::EventId {aka > std::shared_ptr}? > > > Assuming the change is correct, and both the EventId implementations are > different from other, appears to be large impact on the NLSR code. > > Can you provide your comments on this and what is the correct approach? > > /anil. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Tue May 26 21:48:38 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Tue, 26 May 2015 21:48:38 -0700 Subject: [ndnSIM] Command line option to enable debug logs from all modules. Message-ID: Hi, Right now when I run my simulator application, I provide the modules on command line from which I enable the debug logs. This list of argument is increasing now. Is there any way, I can just enable the logs from every module in my application without having to specify them on command line? NS_LOG=NlsrApp:ConfParameter:AdjacencyList:Adjacent:HelloProtocol ./waf --run=ndn-nlsr-simple /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rim.chabbi at gmail.com Wed May 27 00:59:13 2015 From: rim.chabbi at gmail.com (rim chabbi) Date: Wed, 27 May 2015 08:59:13 +0100 Subject: [ndnSIM] Fwd: (no subject) In-Reply-To: References: <0F22B2F7-E58A-4161-9D4F-D3CBAFC98995@gmail.com> Message-ID: ---------- Forwarded message ---------- From: rim chabbi Date: 2015-05-26 10:27 GMT+01:00 Subject: Re: [ndnSIM] (no subject) To: "Spyridon (Spyros) Mastorakis" hello, thank you Spyridon for the answer I try to use the NS3 TAG but it is working for the Data packet and not for the Interest Packet because the payload of interest is zero, so that I think to use the header class and add the information to it using the AddHeader and PeekHeader. 2015-05-25 20:28 GMT+01:00 Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com>: > Hi, > > You will need to implement a logic similar to the one of the hop count tag: > > > https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.cpp > > I would also suggest that you consider extending the Interest class of > ndn-cxx directly. Probably you will find this solution easier than messing > with NS3 tags. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On May 23, 2015, at 4:11 PM, rim chabbi wrote: > > > > Hello, > > I want to add some information into the interest packet. So that i will > use the ns3::tag. usBut I dont know how to use the fuction serialize and > deserialize() > > > > -- > > > > Best Regards > > Rim CHEBBI > > > > Telecommunication & Networks Engineering > > > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -- *Best Regards* * Rim CHEBBI * * Telecommunication & Networks Engineering * -- *Best Regards* * Rim CHEBBI * * Telecommunication & Networks Engineering * -------------- next part -------------- An HTML attachment was scrubbed... URL: From shishanshan at cstnet.cn Thu May 28 01:40:00 2015 From: shishanshan at cstnet.cn (=?GBK?B?yq/Juuap?=) Date: Thu, 28 May 2015 16:40:00 +0800 (GMT+08:00) Subject: [ndnSIM] questions about AppDelayTrace Message-ID: <8b3d06.3a0ca.14d99ad980f.Coremail.shishanshan@cstnet.cn> hi?i have ran ndnsim 1.0 on TCP/UDP protocol using the Helpers of IpFacesHelper. And i use the ndn::AppDelayTrace to get the trace file ,but when it runs, i can?t get the ndn::AppDelayTrace file ?namely the ndn::AppDelayTrace file is empty. the error code: msg="Unknown NDN header. Should not happen", file=../src/ndnSIM/model/ndn.cc, line=196 > terminate called after throwing an instance of 'ns3::ndn::UnknownHeaderException? actually?i am not sure whether i use the IpFacesHelper correctly or not?and if need?i can send you the daemon ,can you help me?thank you. -- ??? ?????????????? ????????? ????????????????? ?? ??????????????? ?? ?100190 Tel ?010-58812537 Email?shishanshan at cstnet.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From science.mart at yahoo.com Thu May 28 04:04:14 2015 From: science.mart at yahoo.com (Science Mart) Date: Thu, 28 May 2015 11:04:14 +0000 (UTC) Subject: [ndnSIM] questions about AppDelayTrace In-Reply-To: <5566F583.1070905@ac.upc.edu> References: <5566F583.1070905@ac.upc.edu> Message-ID: <1377091968.345265.1432811054135.JavaMail.yahoo@mail.yahoo.com> Hi,Could you please share your scenario coding for cooperation?Maybe, I can find your answer. /Armin On Thursday, May 28, 2015 1:01 PM, Amin Karami wrote: hi??i have ran ndnsim 1.0 on TCP/UDP protocol using the Helpers of IpFacesHelper. And i use the ndn::AppDelayTrace to get the trace file ,but when it runs, i can??t get the ndn::AppDelayTrace file ??namely the??ndn::AppDelayTrace file is empty. the error code: msg="Unknown NDN header. Should not happen", file=../src/ndnSIM/model/ndn.cc, line=196 > terminate called after throwing an instance of 'ns3::ndn::UnknownHeaderException?? actually??i am not sure whether i use the IpFacesHelper correctly or not??and if need??i can send you the daemon ,can you help me??thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucasavs at id.uff.br Thu May 28 14:36:51 2015 From: lucasavs at id.uff.br (Lucas De Azevedo Vaccari Simao) Date: Thu, 28 May 2015 18:36:51 -0300 Subject: [ndnSIM] Different pits Message-ID: I was wondering if is possible to work with different pits in this version of the simulator. More precisely, i need to change an size attribute (the pit class was modified) in one consumer, or at least install different pits in different nodes. Whenever i try to change the attribute of one specific node in the simulator, the same attribute is changed in all nodes. btw, i'm trying to use consumerWhoNeedPITSizeChanged->GetObjectgetForwarder()->getPit() to get the pit i need to change. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu May 28 14:42:44 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 28 May 2015 14:42:44 -0700 Subject: [ndnSIM] Different pits In-Reply-To: References: Message-ID: <8661FDEA-98F8-4AA6-B707-0398BA40ADD0@gmail.com> Hi, NFD does not limit the size of a PIT. If you want to control the incoming Interest rate, you could code a forwarding strategy for this purpose. May I ask why would you like to limit the size of a PIT? -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 28, 2015, at 2:36 PM, Lucas De Azevedo Vaccari Simao wrote: > > I was wondering if is possible to work with different pits in this version of the simulator. More precisely, i need to change an size attribute (the pit class was modified) in one consumer, or at least install different pits in different nodes. > Whenever i try to change the attribute of one specific node in the simulator, the same attribute is changed in all nodes. > > btw, i'm trying to use > consumerWhoNeedPITSizeChanged->GetObjectgetForwarder()->getPit() to get the pit i need to change. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From lucasavs at id.uff.br Thu May 28 15:54:16 2015 From: lucasavs at id.uff.br (Lucas De Azevedo Vaccari Simao) Date: Thu, 28 May 2015 19:54:16 -0300 Subject: [ndnSIM] Different pits In-Reply-To: <8661FDEA-98F8-4AA6-B707-0398BA40ADD0@gmail.com> References: <8661FDEA-98F8-4AA6-B707-0398BA40ADD0@gmail.com> Message-ID: I'm trying to emulate some denial of services attacks, and for that i needed set the size of the pit from each node. And i wanted to show how the attacks would behave in different strategies. Actually i just need to set the value in the node that i expect the attack to happen, but for that i need install different pits in differents nodes. Or change the pit size inside each one someway. And i was using the value of m_nItems to check if the pit is full or not. Is that a good idea? 2015-05-28 18:42 GMT-03:00 Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com>: > Hi, > > NFD does not limit the size of a PIT. If you want to control the incoming > Interest rate, you could code a forwarding strategy for this purpose. May I > ask why would you like to limit the size of a PIT? > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > On May 28, 2015, at 2:36 PM, Lucas De Azevedo Vaccari Simao < > lucasavs at id.uff.br> wrote: > > > > I was wondering if is possible to work with different pits in this > version of the simulator. More precisely, i need to change an size > attribute (the pit class was modified) in one consumer, or at least install > different pits in different nodes. > > Whenever i try to change the attribute of one specific node in the > simulator, the same attribute is changed in all nodes. > > > > btw, i'm trying to use > > > consumerWhoNeedPITSizeChanged->GetObjectgetForwarder()->getPit() > to get the pit i need to change. > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu May 28 16:01:28 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 28 May 2015 16:01:28 -0700 Subject: [ndnSIM] Different pits In-Reply-To: References: <8661FDEA-98F8-4AA6-B707-0398BA40ADD0@gmail.com> Message-ID: <51B10B9C-E86B-4ECC-9EB0-1C28EC2D8FA9@gmail.com> This value will show you the number of PIT entries. An easy way to achieve the desired behavior would be to slightly modify the PIT class. Specifically, you can define an attribute for each PIT instance that would express the maximum number of entries that you can have. After that, in the method that you insert an entry to a PIT, you can make a simple check and insert a new entry only if the number of PIT entries is smaller than the maximum defined one. You can take a look here: https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/table/pit.cpp#L65 Please let me know shall you need anything else. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On May 28, 2015, at 3:54 PM, Lucas De Azevedo Vaccari Simao wrote: > > I'm trying to emulate some denial of services attacks, and for that i needed set the size of the pit from each node. And i wanted to show how the attacks would behave in different strategies. > Actually i just need to set the value in the node that i expect the attack to happen, but for that i need install different pits in differents nodes. Or change the pit size inside each one someway. > And i was using the value of m_nItems to check if the pit is full or not. Is that a good idea? > > 2015-05-28 18:42 GMT-03:00 Spyridon (Spyros) Mastorakis : > Hi, > > NFD does not limit the size of a PIT. If you want to control the incoming Interest rate, you could code a forwarding strategy for this purpose. May I ask why would you like to limit the size of a PIT? > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > On May 28, 2015, at 2:36 PM, Lucas De Azevedo Vaccari Simao wrote: > > > > I was wondering if is possible to work with different pits in this version of the simulator. More precisely, i need to change an size attribute (the pit class was modified) in one consumer, or at least install different pits in different nodes. > > Whenever i try to change the attribute of one specific node in the simulator, the same attribute is changed in all nodes. > > > > btw, i'm trying to use > > consumerWhoNeedPITSizeChanged->GetObjectgetForwarder()->getPit() to get the pit i need to change. > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > >