From alubadyraaid at gmail.com Sun Jan 1 07:26:19 2017 From: alubadyraaid at gmail.com (raaid alubady) Date: Sun, 1 Jan 2017 23:26:19 +0800 Subject: [ndnSIM] NackTypes Message-ID: *Hello Alex and everyone, Currently, ndnSIM defines following NackTypes:* * 0: NORMAL_INTEREST 10: NACK_LOOP 11: NACK_CONGESTION 12: NACK_GIVEUP_PIT* * What does mean NACK_GIVEUP_PIT, how it is working in existing ndnSIM 1.0 code?* *Another question, how t conf. Interest NACK in order to be enable.* *Any help? **Kind regards,* *Raaid* ********************************************************** *Raaid Alubady*Doctoral Researcher InterNetWorks Research Lab, School of Computing, Universiti Utara Malaysia 06010 UUM Sintok, Kedah, M A L A Y S I A HP: +60129636379 , +601128408117 Emails: raaid.n.alubady at uobabylon.edu.iq *raaid.alubady at internetworks.my* *alubady.r.n at ieee.my* -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepehrabdous1375 at gmail.com Sun Jan 1 14:36:20 2017 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Mon, 2 Jan 2017 02:06:20 +0330 Subject: [ndnSIM] error In-Reply-To: <1984E68D-4F63-4610-91E3-735A881F4E27@cs.ucla.edu> References: <1984E68D-4F63-4610-91E3-735A881F4E27@cs.ucla.edu> Message-ID: it worked, Thank you very much On Fri, Dec 30, 2016 at 4:23 AM, Alex Afanasyev wrote: > If you're using Ubuntu 14.04, why would you install boost from source? > > Just create a new VM from scratch and install boost libraries using > apt-get as described in the instructions. > > Also, vagrant can be easily installed on windows ( > https://www.vagrantup.com/downloads.html) and can simplify creation of > VMs. > > -- > Alex > > On Dec 29, 2016, at 4:06 PM, sepehr abdous > wrote: > > sorry because my VMWare is installed on windows I couldn't use the > following commands: > vagrant init ubuntu/trusty64 > vagrant up > vagrant ssh > but about the steps I followed in installing is as bellow: > > 1) sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev libboost-all-dev libssl-dev git python-setuptools > 2) wget http://downloads.sourceforge.net/project/boost/boost/1.62.0/boost_1_62_0.tar.bz2 > tar jxf boost_1_62_0.tar.bz2 > cd boost_1_62_0 > ./bootstrap.sh > sudo ./b2 --prefix=/usr/local install > 3) sudo apt-get install python-dev python-pygraphviz python-kiwi python-pygoocanvas python-gnome2 python-rsvg ipython > 4) mkdir ndnSIMcd ndnSIM > git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3 > git clone https://github.com/named-data-ndnSIM/pybindgen.git pybindgen > git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM > 5) cd > ./waf configure --enable-examples > ./waf > > and while using command ./waf I got the following error: > > [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so > > > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > > >::construct_init(boost::basic_regex boost::cpp_regex_traits > > const&, boost::regex_constants::_match > _flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > > >::construct_init(boost::basic_regex boost::cpp_regex_traits > > const&, boost::regex_constants::_match > _flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > > > > On Mon, Dec 26, 2016 at 1:33 AM, Junxiao Shi > wrote: > >> Hi Sepehr >> >> To ensure others can reproduce your issue, can you start with a standard >> template >> vagrant init ubuntu/trusty64 >> vagrant up >> vagrant ssh >> and then post every command you have executed within the VM up to where >> you get the error? >> >> Yours, Junxiao >> >> On Sun, Dec 25, 2016 at 2:40 PM, sepehr abdous < >> sepehrabdous1375 at gmail.com> wrote: >> >>> as you suggested I started with a clean VM and I go over the steps again >>> completely and then I got this error. how can I handle it? >>> [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so >>> ./libns3-dev-ndnSIM-debug.so: undefined reference to >>> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator>> const*, std::__cxx11::basic_string, >>> std::allocator > >, std::allocator>> h<__gnu_cxx::__normal_iterator>> std::__cxx11::basic_string, >>> std::allocator > > > >, boost::regex_traits>> boost::cpp_regex_traits > >::construct_init(boost::basic_regex>> boost::regex_traits > > const&, >>> boost::regex_constants::_match_flags)' >>> ./libns3-dev-ndnSIM-debug.so: undefined reference to >>> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator>> const*, std::__cxx11::basic_string, >>> std::allocator > >, std::allocator>> h<__gnu_cxx::__normal_iterator>> std::__cxx11::basic_string, >>> std::allocator > > > >, boost::regex_traits>> boost::cpp_regex_traits > >::match()' >>> collect2: error: ld returned 1 exit status >>> >>> ./libns3-dev-ndnSIM-debug.so: undefined reference to >>> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator>> const*, std::__cxx11::basic_string, >>> std::allocator > >, std::allocator>> h<__gnu_cxx::__normal_iterator>> std::__cxx11::basic_string, >>> std::allocator > > > >, boost::regex_traits>> boost::cpp_regex_traits > >::construct_init(boost::basic_regex>> boost::regex_traits > > const&, >>> boost::regex_constants::_match_flags)' >>> ./libns3-dev-ndnSIM-debug.so: undefined reference to >>> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator>> const*, std::__cxx11::basic_string, >>> std::allocator > >, std::allocator>> h<__gnu_cxx::__normal_iterator>> std::__cxx11::basic_string, >>> std::allocator > > > >, boost::regex_traits>> boost::cpp_regex_traits > >::match()' >>> collect2: error: ld returned 1 exit status >>> >>> >>> > > > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 > School of computer engineering > Sharif University of Technology > Tehran, Iran > > > -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Mon Jan 2 04:12:42 2017 From: dhiabimen at gmail.com (Dhiab Imen) Date: Mon, 2 Jan 2017 13:12:42 +0100 Subject: [ndnSIM] Implementing a new cache policy Message-ID: Hi all, I need to implement a new cache policy called pseudo lru policy.I am currently using ndnSIM 1.0, referring to the source code of LRU policy (lru-policy.h), it seems to me that the "policy_container" in the code serves as a cache storage is a list. But in pseudo lru policy the policy container must be a tree where the left child are the most recently used items and the right child is the least recently used item. I'm new in using boost intrusive algorithms, I don't know if it is possible to use rbtree or splaytree and how can I initialize policy_hook_type, container_hook,policy_container and parent_trie. Thank you for your response in advance. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahsa.aghajani at gmail.com Mon Jan 2 22:27:40 2017 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Tue, 3 Jan 2017 09:57:40 +0330 Subject: [ndnSIM] Question about sending link state information only to neigbors Message-ID: Dear ndnSIM users I have a question about broadcasting messages in NLSR. As I have figured out broadcasting link state information means that a router sends LSAs to all of its neighbors and each neighbor receiving this LAS, sends it to all of its own neighbors too. if I have figured it correctly could you help me where is the implementation of this part in NLSR source code? Thanks for your attention and help. -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Tue Jan 3 00:02:46 2017 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Tue, 3 Jan 2017 11:32:46 +0330 Subject: [ndnSIM] Fwd: Question about sending link state information only to neigbors Message-ID: Mahsa, Nlsr uses ChronoSync mechanism for this purpose in its communication module . To the best of my knowledge, you may find communication module, which handles sync logic, in /src/communication/ and nsync (a copy of Chronosync for nlsr) in /nsync -- Sabet ????? ????? ?? ???? On Tue, Jan 3, 2017 at 9:57 AM, Mahsa Aghajani wrote: > Dear ndnSIM users > > I have a question about broadcasting messages in NLSR. > As I have figured out broadcasting link state information means that a > router sends LSAs to > all of its neighbors and each neighbor receiving this LAS, sends it to all > of its own neighbors too. > if I have figured it correctly could you help me where is the > implementation of this part > in NLSR source code? > > Thanks for your attention and help. > > -- > > Mahsa Aghajani > M.Sc. Student > Department of Computer Engineering > Sharif University of Technology > > > _______________________________________________ > 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 mahsa.aghajani at gmail.com Tue Jan 3 09:18:51 2017 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Tue, 3 Jan 2017 20:48:51 +0330 Subject: [ndnSIM] Question about sending link state information only to neigbors In-Reply-To: References: Message-ID: Thanks for your answer Mr.Abdollahi Sabet Therefore my interpretation of broadcasting is correct? Does ChronoSync also support sending LSAs only to straight neighbors and not flooding them through the whole network? On Tue, Jan 3, 2017 at 11:32 AM, Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com> wrote: > Mahsa, > > Nlsr uses ChronoSync > mechanism for this purpose in its communication module > . > To the best of my knowledge, you may find communication module, which > handles sync logic, in > /src/communication/ > and nsync (a copy of Chronosync for nlsr) in > /nsync > > -- > Sabet > > ????? ????? > ?? ???? > > On Tue, Jan 3, 2017 at 9:57 AM, Mahsa Aghajani > wrote: > >> Dear ndnSIM users >> >> I have a question about broadcasting messages in NLSR. >> As I have figured out broadcasting link state information means that a >> router sends LSAs to >> all of its neighbors and each neighbor receiving this LAS, sends it to >> all >> of its own neighbors too. >> if I have figured it correctly could you help me where is the >> implementation of this part >> in NLSR source code? >> >> Thanks for your attention and help. >> >> -- >> >> Mahsa Aghajani >> M.Sc. Student >> Department of Computer Engineering >> Sharif University of Technology >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahsa.aghajani at gmail.com Tue Jan 3 09:23:12 2017 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Tue, 3 Jan 2017 20:53:12 +0330 Subject: [ndnSIM] Question about sending link state information only to neigbors In-Reply-To: References: Message-ID: Thanks for your answer Mr.Abdollahi Sabet Therefore my interpretation of broadcasting is correct? Does ChronoSync also support sending LSAs only to straight neighbors and not flooding them through the whole network? On Tue, Jan 3, 2017 at 11:32 AM, Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com> wrote: > Mahsa, > > Nlsr uses ChronoSync > mechanism for this purpose in its communication module > . > To the best of my knowledge, you may find communication module, which > handles sync logic, in > /src/communication/ > and nsync (a copy of Chronosync for nlsr) in > /nsync > > -- > Sabet > > ????? ????? > ?? ???? > > On Tue, Jan 3, 2017 at 9:57 AM, Mahsa Aghajani > wrote: > >> Dear ndnSIM users >> >> I have a question about broadcasting messages in NLSR. >> As I have figured out broadcasting link state information means that a >> router sends LSAs to >> all of its neighbors and each neighbor receiving this LAS, sends it to >> all >> of its own neighbors too. >> if I have figured it correctly could you help me where is the >> implementation of this part >> in NLSR source code? >> >> Thanks for your attention and help. >> >> -- >> >> Mahsa Aghajani >> M.Sc. Student >> Department of Computer Engineering >> Sharif University of Technology >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Tue Jan 3 18:32:58 2017 From: jpbaugh at umich.edu (John Baugh) Date: Tue, 3 Jan 2017 21:32:58 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors Message-ID: ndnSIM friends, *I'm getting this:jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'[ 796/2944] Copying src/ndnSIM/model/ndn-common.hpp -> build/ns3/ndnSIM/model/ndn-common.hpp[2579/2944] Compiling examples/jpb-strategy1-test/jpb-strategy1-test.cppIn file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:23:0, from ./ns3/ndn-all.hpp:23, from ./ns3/ndnSIM-module.h:10, from ../examples/jpb-strategy1-test/jpb-strategy1-test.cpp:7:./ns3/ndnSIM/model/ndn-common.hpp:28:32: fatal error: ndn-cxx/interest.hpp: No such file or directorycompilation terminated.Waf: Leaving directory `/home/jpbaugh/ndnSIM/ns-3/build'Build failed* When I check in the directory ndn-cxx, there is in fact no interest.hpp. It is inside the src/ subdirectory. However, even if I modify ndn-common.hpp from inside the model directory, to include the /src subdirectory, it still doesn't seem like it's finding this file. This is making me a bit nervous as to whether I have a shoddy build or a legitimate build of ndnSIM. I'm just trying to restore everything to the point I had it before I switched to this new computer. And I'm really frustrated with some of the apparent changes, and would appreciate any help you can offer. Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Tue Jan 3 19:31:26 2017 From: jpbaugh at umich.edu (John Baugh) Date: Tue, 3 Jan 2017 22:31:26 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: Message-ID: Greetings again all, I tried commenting out... practically everything, and it can't even find my #include "ns3/ndnSIM/ndn-cxx/data.hpp", whether or not I put "/src/" before data.hpp or not. ALSO, it seems some of the actual ndnSIM files have major errors in them... Is 2.3 a dud, or am I simply doing something wrong? Thanks, John On Tue, Jan 3, 2017 at 9:32 PM, John Baugh wrote: > ndnSIM friends, > > > > > > > > > > > > > > > *I'm getting this:jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf > --run=jpb-strategy1-testWaf: Entering directory > `/home/jpbaugh/ndnSIM/ns-3/build'[ 796/2944] Copying > src/ndnSIM/model/ndn-common.hpp -> > build/ns3/ndnSIM/model/ndn-common.hpp[2579/2944] Compiling > examples/jpb-strategy1-test/jpb-strategy1-test.cppIn file included from > ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:23:0, from > ./ns3/ndn-all.hpp:23, from > ./ns3/ndnSIM-module.h:10, from > ../examples/jpb-strategy1-test/jpb-strategy1-test.cpp:7:./ns3/ndnSIM/model/ndn-common.hpp:28:32: > fatal error: ndn-cxx/interest.hpp: No such file or directorycompilation > terminated.Waf: Leaving directory `/home/jpbaugh/ndnSIM/ns-3/build'Build > failed* > > > When I check in the directory ndn-cxx, there is in fact no interest.hpp. > It is inside the src/ subdirectory. However, even if I modify > ndn-common.hpp from inside the model directory, to include the /src > subdirectory, it still doesn't seem like it's finding this file. > > This is making me a bit nervous as to whether I have a shoddy build or a > legitimate build of ndnSIM. > > I'm just trying to restore everything to the point I had it before I > switched to this new computer. And I'm really frustrated with some of the > apparent changes, and would appreciate any help you can offer. > > Thanks, > > John > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Jan 3 20:39:54 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 3 Jan 2017 20:39:54 -0800 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: Message-ID: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> Hi John, The headers are automatically copied into build/ns3/ndnSIM/ndn-cxx/ folder by the build system. ndnSIM folder is included (should be included) as part of -I compiler flags (you can check with ./waf -v invocation). What I noticed is that the file you're compiling is inside examples/ folder. This folder doesn't automatically add ndnSIM as a dependency. This most likely the reason of your problems, but wouldn't guarantee that it is... --- Alex > On Jan 3, 2017, at 7:31 PM, John Baugh wrote: > > Greetings again all, > > I tried commenting out... practically everything, and it can't even find my > > #include "ns3/ndnSIM/ndn-cxx/data.hpp", whether or not I put "/src/" before data.hpp or not. > > ALSO, it seems some of the actual ndnSIM files have major errors in them... > > Is 2.3 a dud, or am I simply doing something wrong? > > Thanks, > > John > > On Tue, Jan 3, 2017 at 9:32 PM, John Baugh > wrote: > ndnSIM friends, > > I'm getting this: > jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-test > Waf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/build' > [ 796/2944] Copying src/ndnSIM/model/ndn-common.hpp -> build/ns3/ndnSIM/model/ndn-common.hpp > [2579/2944] Compiling examples/jpb-strategy1-test/jpb-strategy1-test.cpp > In file included from ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:23:0, > from ./ns3/ndn-all.hpp:23, > from ./ns3/ndnSIM-module.h:10, > from ../examples/jpb-strategy1-test/jpb-strategy1-test.cpp:7: > ./ns3/ndnSIM/model/ndn-common.hpp:28:32: fatal error: ndn-cxx/interest.hpp: No such file or directory > compilation terminated. > > Waf: Leaving directory `/home/jpbaugh/ndnSIM/ns-3/build' > Build failed > > > When I check in the directory ndn-cxx, there is in fact no interest.hpp. It is inside the src/ subdirectory. However, even if I modify ndn-common.hpp from inside the model directory, to include the /src subdirectory, it still doesn't seem like it's finding this file. > > This is making me a bit nervous as to whether I have a shoddy build or a legitimate build of ndnSIM. > > I'm just trying to restore everything to the point I had it before I switched to this new computer. And I'm really frustrated with some of the apparent changes, and would appreciate any help you can offer. > > Thanks, > > John > > _______________________________________________ > 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 URL: From jpbaugh at umich.edu Tue Jan 3 21:31:11 2017 From: jpbaugh at umich.edu (John Baugh) Date: Wed, 4 Jan 2017 00:31:11 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> Message-ID: Alex, Thanks for the response. I'm finally tapping out and giving in. I'm going to try to do it with the template technique you recommended before. Please let me know if I did this correctly, as the instructions are a little bit vague in the README: 1.) Since I already had installed ndnSIM using the instructions in Getting Started on the main ndnSIM.net page, I don't have to perform another git clone on ns-3-dev-ndnSIM.git or any of those files right? It seems it's just downloading a separate copy of ndnSIM to put in a separate directory. *So, all I did per the instructions was a git clone on the ndnSIM-scenario-template-git.* 2.) I placed the downloaded branch (terminology might be off here) in my-simulations, *which in turn I have inside the ndnSIM folder*. So, my-simulations is a directory that is a sibling directory of ns-3 and pybindgen, all three being inside the top level ndnSIM folder. *Is this correct / ok?* 3.) I am very confused about the difference between the extensions and scenarios directories. I was under the impression I could put a subdirectory under extensions named as my scenario, so I named a subdirectory of extensions "jpb-strategy1-test", which contains jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they worked fine with ndnSIM 2.1.) *Is this correct?* 4.) Now, it cannot find the scenario, regardless of whether its inside extensions or scenarios. Does a .cpp or .cc file have to be at the top level or can I put a subdirectory? I just want to remain organized. I get the following: *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program 'jpb-strategy1-test' not found; available programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen', 'tap-device-creator', 'src/fd-net-device/tap-device-creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', 'src/tap-bridge/tap-creator']* Thanks, John On Tue, Jan 3, 2017 at 11:39 PM, Alex Afanasyev wrote: > Hi John, > > The headers are automatically copied into build/ns3/ndnSIM/ndn-cxx/ folder > by the build system. ndnSIM folder is included (should be included) as > part of -I compiler flags (you can check with ./waf -v invocation). > > What I noticed is that the file you're compiling is inside examples/ > folder. This folder doesn't automatically add ndnSIM as a dependency. > This most likely the reason of your problems, but wouldn't guarantee that > it is... > > --- > Alex > > On Jan 3, 2017, at 7:31 PM, John Baugh wrote: > > Greetings again all, > > I tried commenting out... practically everything, and it can't even find my > > #include "ns3/ndnSIM/ndn-cxx/data.hpp", whether or not I put "/src/" > before data.hpp or not. > > ALSO, it seems some of the actual ndnSIM files have major errors in > them... > > Is 2.3 a dud, or am I simply doing something wrong? > > Thanks, > > John > > On Tue, Jan 3, 2017 at 9:32 PM, John Baugh wrote: > >> ndnSIM friends, >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *I'm getting this:jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf >> --run=jpb-strategy1-testWaf: Entering directory >> `/home/jpbaugh/ndnSIM/ns-3/build'[ 796/2944] Copying >> src/ndnSIM/model/ndn-common.hpp -> >> build/ns3/ndnSIM/model/ndn-common.hpp[2579/2944] Compiling >> examples/jpb-strategy1-test/jpb-strategy1-test.cppIn file included from >> ./ns3/ndnSIM/helper/ndn-stack-helper.hpp:23:0, from >> ./ns3/ndn-all.hpp:23, from >> ./ns3/ndnSIM-module.h:10, from >> ../examples/jpb-strategy1-test/jpb-strategy1-test.cpp:7:./ns3/ndnSIM/model/ndn-common.hpp:28:32: >> fatal error: ndn-cxx/interest.hpp: No such file or directorycompilation >> terminated.Waf: Leaving directory `/home/jpbaugh/ndnSIM/ns-3/build'Build >> failed* >> >> >> When I check in the directory ndn-cxx, there is in fact no interest.hpp. >> It is inside the src/ subdirectory. However, even if I modify >> ndn-common.hpp from inside the model directory, to include the /src >> subdirectory, it still doesn't seem like it's finding this file. >> >> This is making me a bit nervous as to whether I have a shoddy build or a >> legitimate build of ndnSIM. >> >> I'm just trying to restore everything to the point I had it before I >> switched to this new computer. And I'm really frustrated with some of the >> apparent changes, and would appreciate any help you can offer. >> >> Thanks, >> >> John >> > > _______________________________________________ > 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 shijunxiao at email.arizona.edu Tue Jan 3 21:36:29 2017 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Tue, 3 Jan 2017 22:36:29 -0700 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> Message-ID: Hi John 1.) Since I already had installed ndnSIM using the instructions in Getting > Started on the main ndnSIM.net page, I don't have to perform another git > clone on ns-3-dev-ndnSIM.git or any of those files right? It seems it's > just downloading a separate copy of ndnSIM to put in a separate directory. > *So, all I did per the instructions was a git clone on the > ndnSIM-scenario-template-git.* > You don't need to clone ns-3 or ndnSIM again, as long as you have compatible version. 2.) I placed the downloaded branch (terminology might be off here) in > my-simulations, *which in turn I have inside the ndnSIM folder*. So, > my-simulations is a directory that is a sibling directory of ns-3 and > pybindgen, all three being inside the top level ndnSIM folder. > *Is this correct / ok?* > Yes, this is correct. scenario template must be outside of ns-3 folder. 3.) I am very confused about the difference between the extensions and > scenarios directories. I was under the impression I could put a > subdirectory under extensions named as my scenario, so I named a > subdirectory of extensions "jpb-strategy1-test", which contains > jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they > worked fine with ndnSIM 2.1.) > *Is this correct?* > You may place multiple files in extensions/ folder, which will be linked with every scenario. Every file in scenarios/ folder is an individual simulation which must have a main() function. Every file is linked with every object from extensions/ to create an executable. > 4.) Now, it cannot find the scenario, regardless of whether its inside > extensions or scenarios. Does a .cpp or .cc file have to be at the top > level or can I put a subdirectory? I just want to remain organized. I get > the following: > > > > *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: > Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program > 'jpb-strategy1-test' not found; available programs are: ['subdir', > 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', > 'test-runner', 'utils/test-runner', 'bench-simulator', > 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', > 'print-introspected-doxygen', 'utils/print-introspected-doxygen', > 'tap-device-creator', 'src/fd-net-device/tap-device-creator', > 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', > 'src/tap-bridge/tap-creator']* > You must first `sudo ./waf install` from ns-3 which installs ns-3 including ndnSIM system-wide (optimized build is recommended), and then `./waf configure` and `./waf` inside the scenario template. Yours, Junxiao -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Tue Jan 3 21:44:34 2017 From: jpbaugh at umich.edu (John Baugh) Date: Wed, 4 Jan 2017 00:44:34 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> Message-ID: Junxiao, By "./waf configure and ./waf inside the scenario template", I took that as the ./waf inside my my-simulations directory, correct? I performed the ./waf configure from inside there *after *doing a ./waf install (from inside ns-3 directory), and I get the following: jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure Setting top to : /home/jpbaugh/ndnSIM/my-simulations Setting out to : /home/jpbaugh/ndnSIM/my-simulations/build Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for 'g++' (C++ compiler) : /usr/bin/g++ Checking supported CXXFLAGS : -std=c++11 Checking supported CXXFLAGS : -pedantic -Wall -O2 -g Checking for program 'pkg-config' : /usr/bin/pkg-config Checking for 'libndn-cxx' : not found The configuration failed (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) My obvious assumption is that it cannot find the ndn-cxx library. But I am following the instructions by the letter. This is a fresh computer and a fresh install, so what might be the issue here? And what is the best / appropriate corrective measure, as I assume ndnSIM is already installed. Thanks, John On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi wrote: > Hi John > > 1.) Since I already had installed ndnSIM using the instructions in >> Getting Started on the main ndnSIM.net page, I don't have to perform >> another git clone on ns-3-dev-ndnSIM.git or any of those files right? It >> seems it's just downloading a separate copy of ndnSIM to put in a separate >> directory. >> *So, all I did per the instructions was a git clone on the >> ndnSIM-scenario-template-git.* >> > You don't need to clone ns-3 or ndnSIM again, as long as you have > compatible version. > > 2.) I placed the downloaded branch (terminology might be off here) in >> my-simulations, *which in turn I have inside the ndnSIM folder*. So, >> my-simulations is a directory that is a sibling directory of ns-3 and >> pybindgen, all three being inside the top level ndnSIM folder. >> *Is this correct / ok?* >> > Yes, this is correct. scenario template must be outside of ns-3 folder. > > 3.) I am very confused about the difference between the extensions and >> scenarios directories. I was under the impression I could put a >> subdirectory under extensions named as my scenario, so I named a >> subdirectory of extensions "jpb-strategy1-test", which contains >> jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they >> worked fine with ndnSIM 2.1.) >> *Is this correct?* >> > You may place multiple files in extensions/ folder, which will be linked > with every scenario. > Every file in scenarios/ folder is an individual simulation which must > have a main() function. Every file is linked with every object from > extensions/ to create an executable. > > >> 4.) Now, it cannot find the scenario, regardless of whether its inside >> extensions or scenarios. Does a .cpp or .cc file have to be at the top >> level or can I put a subdirectory? I just want to remain organized. I get >> the following: >> >> >> >> *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: >> Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program >> 'jpb-strategy1-test' not found; available programs are: ['subdir', >> 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', >> 'test-runner', 'utils/test-runner', 'bench-simulator', >> 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', >> 'print-introspected-doxygen', 'utils/print-introspected-doxygen', >> 'tap-device-creator', 'src/fd-net-device/tap-device-creator', >> 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', >> 'src/tap-bridge/tap-creator']* >> > You must first `sudo ./waf install` from ns-3 which installs ns-3 > including ndnSIM system-wide (optimized build is recommended), and then > `./waf configure` and `./waf` inside the scenario template. > > Yours, Junxiao > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Tue Jan 3 21:51:01 2017 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Tue, 3 Jan 2017 22:51:01 -0700 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> Message-ID: Hi John The scenario template, as of commit 2b5b6f55f04982273e62127082a19459ec68ff43 , is compatible with ndnSIM 2.1, and may or may not work with other versions. However, I do not see why the scenario template is looking for ndn-cxx, because there's no "ndn-cxx" token in its wscript. Yours, Junxiao On Tue, Jan 3, 2017 at 10:44 PM, John Baugh wrote: > Junxiao, > > By "./waf configure and ./waf inside the scenario template", I took that > as the ./waf inside my my-simulations directory, correct? > > I performed the ./waf configure from inside there *after *doing a ./waf > install (from inside ns-3 directory), and I get the following: > > jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure > Setting top to : /home/jpbaugh/ndnSIM/my-simulations > > Setting out to : /home/jpbaugh/ndnSIM/my-simulations/build > > Checking for 'gcc' (C compiler) : /usr/bin/gcc > Checking for 'g++' (C++ compiler) : /usr/bin/g++ > Checking supported CXXFLAGS : -std=c++11 > Checking supported CXXFLAGS : -pedantic -Wall -O2 -g > Checking for program 'pkg-config' : /usr/bin/pkg-config > Checking for 'libndn-cxx' : not found > The configuration failed > (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) > > > My obvious assumption is that it cannot find the ndn-cxx library. But I > am following the instructions by the letter. This is a fresh computer and > a fresh install, so what might be the issue here? And what is the best / > appropriate corrective measure, as I assume ndnSIM is already installed. > > Thanks, > > John > > On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi > wrote: > >> Hi John >> >> 1.) Since I already had installed ndnSIM using the instructions in >>> Getting Started on the main ndnSIM.net page, I don't have to perform >>> another git clone on ns-3-dev-ndnSIM.git or any of those files right? It >>> seems it's just downloading a separate copy of ndnSIM to put in a separate >>> directory. >>> *So, all I did per the instructions was a git clone on the >>> ndnSIM-scenario-template-git.* >>> >> You don't need to clone ns-3 or ndnSIM again, as long as you have >> compatible version. >> >> 2.) I placed the downloaded branch (terminology might be off here) in >>> my-simulations, *which in turn I have inside the ndnSIM folder*. So, >>> my-simulations is a directory that is a sibling directory of ns-3 and >>> pybindgen, all three being inside the top level ndnSIM folder. >>> *Is this correct / ok?* >>> >> Yes, this is correct. scenario template must be outside of ns-3 folder. >> >> 3.) I am very confused about the difference between the extensions and >>> scenarios directories. I was under the impression I could put a >>> subdirectory under extensions named as my scenario, so I named a >>> subdirectory of extensions "jpb-strategy1-test", which contains >>> jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they >>> worked fine with ndnSIM 2.1.) >>> *Is this correct?* >>> >> You may place multiple files in extensions/ folder, which will be linked >> with every scenario. >> Every file in scenarios/ folder is an individual simulation which must >> have a main() function. Every file is linked with every object from >> extensions/ to create an executable. >> >> >>> 4.) Now, it cannot find the scenario, regardless of whether its inside >>> extensions or scenarios. Does a .cpp or .cc file have to be at the top >>> level or can I put a subdirectory? I just want to remain organized. I get >>> the following: >>> >>> >>> >>> *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: >>> Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program >>> 'jpb-strategy1-test' not found; available programs are: ['subdir', >>> 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', >>> 'test-runner', 'utils/test-runner', 'bench-simulator', >>> 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', >>> 'print-introspected-doxygen', 'utils/print-introspected-doxygen', >>> 'tap-device-creator', 'src/fd-net-device/tap-device-creator', >>> 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', >>> 'src/tap-bridge/tap-creator']* >>> >> You must first `sudo ./waf install` from ns-3 which installs ns-3 >> including ndnSIM system-wide (optimized build is recommended), and then >> `./waf configure` and `./waf` inside the scenario template. >> >> Yours, Junxiao >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Tue Jan 3 21:56:33 2017 From: jpbaugh at umich.edu (John Baugh) Date: Wed, 4 Jan 2017 00:56:33 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> Message-ID: Junxiao, That is peculiar... perhaps I should ask a different question: *Should I be using ndnSIM 2.3*, even? Or should I just go back to 2.1? If so, how might I accomplish this to ensure I don't get the newest version? Thanks, John On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi wrote: > Hi John > > The scenario template, as of commit 2b5b6f55f04982273e62127082a194 > 59ec68ff43 > , > is compatible with ndnSIM 2.1, and may or may not work with other versions. > However, I do not see why the scenario template is looking for ndn-cxx, > because there's no "ndn-cxx" token in its wscript. > > Yours, Junxiao > > On Tue, Jan 3, 2017 at 10:44 PM, John Baugh wrote: > >> Junxiao, >> >> By "./waf configure and ./waf inside the scenario template", I took that >> as the ./waf inside my my-simulations directory, correct? >> >> I performed the ./waf configure from inside there *after *doing a ./waf >> install (from inside ns-3 directory), and I get the following: >> >> jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure >> Setting top to : /home/jpbaugh/ndnSIM/my-simulations >> >> Setting out to : /home/jpbaugh/ndnSIM/my-simulations/build >> >> Checking for 'gcc' (C compiler) : /usr/bin/gcc >> Checking for 'g++' (C++ compiler) : /usr/bin/g++ >> Checking supported CXXFLAGS : -std=c++11 >> Checking supported CXXFLAGS : -pedantic -Wall -O2 -g >> Checking for program 'pkg-config' : /usr/bin/pkg-config >> Checking for 'libndn-cxx' : not found >> The configuration failed >> (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) >> >> >> My obvious assumption is that it cannot find the ndn-cxx library. But I >> am following the instructions by the letter. This is a fresh computer and >> a fresh install, so what might be the issue here? And what is the best / >> appropriate corrective measure, as I assume ndnSIM is already installed. >> >> Thanks, >> >> John >> >> On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi < >> shijunxiao at email.arizona.edu> wrote: >> >>> Hi John >>> >>> 1.) Since I already had installed ndnSIM using the instructions in >>>> Getting Started on the main ndnSIM.net page, I don't have to perform >>>> another git clone on ns-3-dev-ndnSIM.git or any of those files right? It >>>> seems it's just downloading a separate copy of ndnSIM to put in a separate >>>> directory. >>>> *So, all I did per the instructions was a git clone on the >>>> ndnSIM-scenario-template-git.* >>>> >>> You don't need to clone ns-3 or ndnSIM again, as long as you have >>> compatible version. >>> >>> 2.) I placed the downloaded branch (terminology might be off here) in >>>> my-simulations, *which in turn I have inside the ndnSIM folder*. So, >>>> my-simulations is a directory that is a sibling directory of ns-3 and >>>> pybindgen, all three being inside the top level ndnSIM folder. >>>> *Is this correct / ok?* >>>> >>> Yes, this is correct. scenario template must be outside of ns-3 folder. >>> >>> 3.) I am very confused about the difference between the extensions and >>>> scenarios directories. I was under the impression I could put a >>>> subdirectory under extensions named as my scenario, so I named a >>>> subdirectory of extensions "jpb-strategy1-test", which contains >>>> jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they >>>> worked fine with ndnSIM 2.1.) >>>> *Is this correct?* >>>> >>> You may place multiple files in extensions/ folder, which will be linked >>> with every scenario. >>> Every file in scenarios/ folder is an individual simulation which must >>> have a main() function. Every file is linked with every object from >>> extensions/ to create an executable. >>> >>> >>>> 4.) Now, it cannot find the scenario, regardless of whether its inside >>>> extensions or scenarios. Does a .cpp or .cc file have to be at the top >>>> level or can I put a subdirectory? I just want to remain organized. I get >>>> the following: >>>> >>>> >>>> >>>> *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: >>>> Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program >>>> 'jpb-strategy1-test' not found; available programs are: ['subdir', >>>> 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', >>>> 'test-runner', 'utils/test-runner', 'bench-simulator', >>>> 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', >>>> 'print-introspected-doxygen', 'utils/print-introspected-doxygen', >>>> 'tap-device-creator', 'src/fd-net-device/tap-device-creator', >>>> 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', >>>> 'src/tap-bridge/tap-creator']* >>>> >>> You must first `sudo ./waf install` from ns-3 which installs ns-3 >>> including ndnSIM system-wide (optimized build is recommended), and then >>> `./waf configure` and `./waf` inside the scenario template. >>> >>> Yours, Junxiao >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Jan 3 22:38:07 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 3 Jan 2017 22:38:07 -0800 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> Message-ID: <98A20671-DAA0-474F-9FDC-B656AB762AE6@cs.ucla.edu> 2.3 should be ok. Which exactly repository you cloned for scenario-template? I just checked with the one listed on ndnSIM website (https://github.com/named-data-ndnSIM/scenario-template.git ) and everything is working. The correct template repository should not have this check: ... Checking for 'libndn-cxx' : not found ... The you should have directory structure something like this some-folder-for-simulations/ ??? ns-3/ ? ??? ... ? ??? src/ ? ? ??? ... ? ? ??? ndnSIM/ ? ? ? ??? ndn-cxx/ ? ? ? ??? NFD/ ? ? ? ??? model/ ? ? ? ??? ... ? ? ??? ... ? ??? ... ??? pybindgen/ ? ??? ... ??? scenario/ ??? README.md ??? extensions/ ? ??? README.md ? ??? some-code.hpp ? ??? some-code.cpp ??? graphs/ ? ??? ... ??? results/ ??? run.py ??? scenarios/ ? ??? README.md ? ??? scenario-name.cpp ??? waf ??? wscript When you're inside scenario/ folder, you can run `./waf --run scenario-name` (files in scenarios/ folder are getting compiled into individual scenarios). --- Alex > On Jan 3, 2017, at 9:56 PM, John Baugh wrote: > > Junxiao, > > That is peculiar... perhaps I should ask a different question: > > Should I be using ndnSIM 2.3, even? Or should I just go back to 2.1? > > If so, how might I accomplish this to ensure I don't get the newest version? > > Thanks, > > John > > On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi > wrote: > Hi John > > The scenario template, as of commit 2b5b6f55f04982273e62127082a19459ec68ff43 , is compatible with ndnSIM 2.1, and may or may not work with other versions. > However, I do not see why the scenario template is looking for ndn-cxx, because there's no "ndn-cxx" token in its wscript. > > Yours, Junxiao > > On Tue, Jan 3, 2017 at 10:44 PM, John Baugh > wrote: > Junxiao, > > By "./waf configure and ./waf inside the scenario template", I took that as the ./waf inside my my-simulations directory, correct? > > I performed the ./waf configure from inside there after doing a ./waf install (from inside ns-3 directory), and I get the following: > > jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure > Setting top to : /home/jpbaugh/ndnSIM/my-simulations > Setting out to : /home/jpbaugh/ndnSIM/my-simulations/build > Checking for 'gcc' (C compiler) : /usr/bin/gcc > Checking for 'g++' (C++ compiler) : /usr/bin/g++ > Checking supported CXXFLAGS : -std=c++11 > Checking supported CXXFLAGS : -pedantic -Wall -O2 -g > Checking for program 'pkg-config' : /usr/bin/pkg-config > Checking for 'libndn-cxx' : not found > The configuration failed > (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) > > > My obvious assumption is that it cannot find the ndn-cxx library. But I am following the instructions by the letter. This is a fresh computer and a fresh install, so what might be the issue here? And what is the best / appropriate corrective measure, as I assume ndnSIM is already installed. > > Thanks, > > John > > On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi > wrote: > Hi John > > 1.) Since I already had installed ndnSIM using the instructions in Getting Started on the main ndnSIM.net page, I don't have to perform another git clone on ns-3-dev-ndnSIM.git or any of those files right? It seems it's just downloading a separate copy of ndnSIM to put in a separate directory. So, all I did per the instructions was a git clone on the ndnSIM-scenario-template-git. > You don't need to clone ns-3 or ndnSIM again, as long as you have compatible version. > > 2.) I placed the downloaded branch (terminology might be off here) in my-simulations, which in turn I have inside the ndnSIM folder. So, my-simulations is a directory that is a sibling directory of ns-3 and pybindgen, all three being inside the top level ndnSIM folder. Is this correct / ok? > Yes, this is correct. scenario template must be outside of ns-3 folder. > > 3.) I am very confused about the difference between the extensions and scenarios directories. I was under the impression I could put a subdirectory under extensions named as my scenario, so I named a subdirectory of extensions "jpb-strategy1-test", which contains jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they worked fine with ndnSIM 2.1.) Is this correct? > You may place multiple files in extensions/ folder, which will be linked with every scenario. > Every file in scenarios/ folder is an individual simulation which must have a main() function. Every file is linked with every object from extensions/ to create an executable. > > 4.) Now, it cannot find the scenario, regardless of whether its inside extensions or scenarios. Does a .cpp or .cc file have to be at the top level or can I put a subdirectory? I just want to remain organized. I get the following: > > jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-test > Waf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/build' > program 'jpb-strategy1-test' not found; available programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen', 'tap-device-creator', 'src/fd-net-device/tap-device-creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', 'src/tap-bridge/tap-creator'] > You must first `sudo ./waf install` from ns-3 which installs ns-3 including ndnSIM system-wide (optimized build is recommended), and then `./waf configure` and `./waf` inside the scenario template. > > Yours, Junxiao > > > -------------- 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 URL: From jpbaugh at umich.edu Tue Jan 3 22:51:51 2017 From: jpbaugh at umich.edu (John Baugh) Date: Wed, 4 Jan 2017 01:51:51 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: <98A20671-DAA0-474F-9FDC-B656AB762AE6@cs.ucla.edu> References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> <98A20671-DAA0-474F-9FDC-B656AB762AE6@cs.ucla.edu> Message-ID: Alex, This is where I found the instructions: https://github.com/named-data-ndnSIM/scenario-template The README file on that page says to do: *git clone git://github.com/cawka/ndnSIM-scenario-template.git my-simulations* The wscript from this location does contain a reference to the libndn-cxx library. I think the README needs updated... It uses a different repository. I'm about to try the tests again. Thanks, John On Wed, Jan 4, 2017 at 1:38 AM, Alex Afanasyev wrote: > 2.3 should be ok. Which exactly repository you cloned for > scenario-template? I just checked with the one listed on ndnSIM website ( > https://github.com/named-data-ndnSIM/scenario-template.git) and > everything is working. > > The correct template repository should not have this check: > > ... > Checking for 'libndn-cxx' : not found > ... > > The you should have directory structure something like this > > some-folder-for-simulations/ > ??? ns-3/ > ? ??? ... > ? ??? src/ > ? ? ??? ... > ? ? ??? ndnSIM/ > ? ? ? ??? ndn-cxx/ > ? ? ? ??? NFD/ > ? ? ? ??? model/ > ? ? ? ??? ... > ? ? ??? ... > ? ??? ... > ??? pybindgen/ > ? ??? ... > ??? scenario/ > ??? README.md > ??? extensions/ > ? ??? README.md > ? ??? some-code.hpp > ? ??? some-code.cpp > ??? graphs/ > ? ??? ... > ??? results/ > ??? run.py > ??? scenarios/ > ? ??? README.md > ? ??? scenario-name.cpp > ??? waf > ??? wscript > > When you're inside scenario/ folder, you can run `./waf --run > scenario-name` (files in scenarios/ folder are getting compiled into > individual scenarios). > > --- > Alex > > On Jan 3, 2017, at 9:56 PM, John Baugh wrote: > > Junxiao, > > That is peculiar... perhaps I should ask a different question: > > *Should I be using ndnSIM 2.3*, even? Or should I just go back to 2.1? > > If so, how might I accomplish this to ensure I don't get the newest > version? > > Thanks, > > John > > On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi > wrote: > >> Hi John >> >> The scenario template, as of commit 2b5b6f55f04982273e62127082a194 >> 59ec68ff43 >> , >> is compatible with ndnSIM 2.1, and may or may not work with other versions. >> However, I do not see why the scenario template is looking for ndn-cxx, >> because there's no "ndn-cxx" token in its wscript. >> >> Yours, Junxiao >> >> On Tue, Jan 3, 2017 at 10:44 PM, John Baugh wrote: >> >>> Junxiao, >>> >>> By "./waf configure and ./waf inside the scenario template", I took that >>> as the ./waf inside my my-simulations directory, correct? >>> >>> I performed the ./waf configure from inside there *after *doing a ./waf >>> install (from inside ns-3 directory), and I get the following: >>> >>> jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure >>> Setting top to : /home/jpbaugh/ndnSIM/my-simulations >>> >>> Setting out to : /home/jpbaugh/ndnSIM/my-simulations/build >>> >>> Checking for 'gcc' (C compiler) : /usr/bin/gcc >>> Checking for 'g++' (C++ compiler) : /usr/bin/g++ >>> Checking supported CXXFLAGS : -std=c++11 >>> Checking supported CXXFLAGS : -pedantic -Wall -O2 -g >>> Checking for program 'pkg-config' : /usr/bin/pkg-config >>> Checking for 'libndn-cxx' : not found >>> The configuration failed >>> (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) >>> >>> >>> My obvious assumption is that it cannot find the ndn-cxx library. But I >>> am following the instructions by the letter. This is a fresh computer and >>> a fresh install, so what might be the issue here? And what is the best / >>> appropriate corrective measure, as I assume ndnSIM is already installed. >>> >>> Thanks, >>> >>> John >>> >>> On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi < >>> shijunxiao at email.arizona.edu> wrote: >>> >>>> Hi John >>>> >>>> 1.) Since I already had installed ndnSIM using the instructions in >>>>> Getting Started on the main ndnSIM.net page, I don't have to perform >>>>> another git clone on ns-3-dev-ndnSIM.git or any of those files right? It >>>>> seems it's just downloading a separate copy of ndnSIM to put in a separate >>>>> directory. >>>>> *So, all I did per the instructions was a git clone on the >>>>> ndnSIM-scenario-template-git.* >>>>> >>>> You don't need to clone ns-3 or ndnSIM again, as long as you have >>>> compatible version. >>>> >>>> 2.) I placed the downloaded branch (terminology might be off here) in >>>>> my-simulations, *which in turn I have inside the ndnSIM folder*. So, >>>>> my-simulations is a directory that is a sibling directory of ns-3 and >>>>> pybindgen, all three being inside the top level ndnSIM folder. >>>>> *Is this correct / ok?* >>>>> >>>> Yes, this is correct. scenario template must be outside of ns-3 folder. >>>> >>>> 3.) I am very confused about the difference between the extensions and >>>>> scenarios directories. I was under the impression I could put a >>>>> subdirectory under extensions named as my scenario, so I named a >>>>> subdirectory of extensions "jpb-strategy1-test", which contains >>>>> jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they >>>>> worked fine with ndnSIM 2.1.) >>>>> *Is this correct?* >>>>> >>>> You may place multiple files in extensions/ folder, which will be >>>> linked with every scenario. >>>> Every file in scenarios/ folder is an individual simulation which must >>>> have a main() function. Every file is linked with every object from >>>> extensions/ to create an executable. >>>> >>>> >>>>> 4.) Now, it cannot find the scenario, regardless of whether its >>>>> inside extensions or scenarios. Does a .cpp or .cc file have to be at the >>>>> top level or can I put a subdirectory? I just want to remain organized. I >>>>> get the following: >>>>> >>>>> >>>>> >>>>> *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: >>>>> Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program >>>>> 'jpb-strategy1-test' not found; available programs are: ['subdir', >>>>> 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', >>>>> 'test-runner', 'utils/test-runner', 'bench-simulator', >>>>> 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', >>>>> 'print-introspected-doxygen', 'utils/print-introspected-doxygen', >>>>> 'tap-device-creator', 'src/fd-net-device/tap-device-creator', >>>>> 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', >>>>> 'src/tap-bridge/tap-creator']* >>>>> >>>> You must first `sudo ./waf install` from ns-3 which installs ns-3 >>>> including ndnSIM system-wide (optimized build is recommended), and then >>>> `./waf configure` and `./waf` inside the scenario template. >>>> >>>> Yours, Junxiao >>>> >>> >>> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Tue Jan 3 23:02:32 2017 From: jpbaugh at umich.edu (John Baugh) Date: Wed, 4 Jan 2017 02:02:32 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> <98A20671-DAA0-474F-9FDC-B656AB762AE6@cs.ucla.edu> Message-ID: Alex, I'm getting closer. With the link to the scenarios you provided me, I was able to put my files in scenarios folder and try ./waf configure and ./waf from ndnSIM/my-simulations. I used a different, simpler scenario now, called jpb-4-print. I now get this error when I attempt to run it. It compiles now, but appears to have a linker issue: jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf Waf: Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build' [1/2] Compiling scenarios/jpb-4-print.cpp [2/2] Linking build/jpb-4-print Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-simulations/build' 'build' finished successfully (5.089s) *jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf --run=jpb-4-printWaf: Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build'Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-simulations/build''build' finished successfully (0.025s)build/jpb-4-print: error while loading shared libraries: libns3-dev-core-optimized.so: cannot open shared object file: No such file or directory* Thanks, John On Wed, Jan 4, 2017 at 1:51 AM, John Baugh wrote: > Alex, > > This is where I found the instructions: > > https://github.com/named-data-ndnSIM/scenario-template > > The README file on that page says to do: > > > *git clone git://github.com/cawka/ndnSIM-scenario-template.git > my-simulations* > > The wscript from this location does contain a reference to the libndn-cxx > library. > > I think the README needs updated... It uses a different repository. > > I'm about to try the tests again. > > Thanks, > > John > > On Wed, Jan 4, 2017 at 1:38 AM, Alex Afanasyev wrote: > >> 2.3 should be ok. Which exactly repository you cloned for >> scenario-template? I just checked with the one listed on ndnSIM website ( >> https://github.com/named-data-ndnSIM/scenario-template.git) and >> everything is working. >> >> The correct template repository should not have this check: >> >> ... >> Checking for 'libndn-cxx' : not found >> ... >> >> The you should have directory structure something like this >> >> some-folder-for-simulations/ >> ??? ns-3/ >> ? ??? ... >> ? ??? src/ >> ? ? ??? ... >> ? ? ??? ndnSIM/ >> ? ? ? ??? ndn-cxx/ >> ? ? ? ??? NFD/ >> ? ? ? ??? model/ >> ? ? ? ??? ... >> ? ? ??? ... >> ? ??? ... >> ??? pybindgen/ >> ? ??? ... >> ??? scenario/ >> ??? README.md >> ??? extensions/ >> ? ??? README.md >> ? ??? some-code.hpp >> ? ??? some-code.cpp >> ??? graphs/ >> ? ??? ... >> ??? results/ >> ??? run.py >> ??? scenarios/ >> ? ??? README.md >> ? ??? scenario-name.cpp >> ??? waf >> ??? wscript >> >> When you're inside scenario/ folder, you can run `./waf --run >> scenario-name` (files in scenarios/ folder are getting compiled into >> individual scenarios). >> >> --- >> Alex >> >> On Jan 3, 2017, at 9:56 PM, John Baugh wrote: >> >> Junxiao, >> >> That is peculiar... perhaps I should ask a different question: >> >> *Should I be using ndnSIM 2.3*, even? Or should I just go back to 2.1? >> >> If so, how might I accomplish this to ensure I don't get the newest >> version? >> >> Thanks, >> >> John >> >> On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi < >> shijunxiao at email.arizona.edu> wrote: >> >>> Hi John >>> >>> The scenario template, as of commit 2b5b6f55f04982273e62127082a194 >>> 59ec68ff43 >>> , >>> is compatible with ndnSIM 2.1, and may or may not work with other versions. >>> However, I do not see why the scenario template is looking for ndn-cxx, >>> because there's no "ndn-cxx" token in its wscript. >>> >>> Yours, Junxiao >>> >>> On Tue, Jan 3, 2017 at 10:44 PM, John Baugh wrote: >>> >>>> Junxiao, >>>> >>>> By "./waf configure and ./waf inside the scenario template", I took >>>> that as the ./waf inside my my-simulations directory, correct? >>>> >>>> I performed the ./waf configure from inside there *after *doing a >>>> ./waf install (from inside ns-3 directory), and I get the following: >>>> >>>> jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure >>>> Setting top to : >>>> /home/jpbaugh/ndnSIM/my-simulations >>>> Setting out to : >>>> /home/jpbaugh/ndnSIM/my-simulations/build >>>> Checking for 'gcc' (C compiler) : /usr/bin/gcc >>>> Checking for 'g++' (C++ compiler) : /usr/bin/g++ >>>> Checking supported CXXFLAGS : -std=c++11 >>>> Checking supported CXXFLAGS : -pedantic -Wall -O2 -g >>>> Checking for program 'pkg-config' : /usr/bin/pkg-config >>>> Checking for 'libndn-cxx' : not found >>>> The configuration failed >>>> (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) >>>> >>>> >>>> My obvious assumption is that it cannot find the ndn-cxx library. But >>>> I am following the instructions by the letter. This is a fresh computer >>>> and a fresh install, so what might be the issue here? And what is the best >>>> / appropriate corrective measure, as I assume ndnSIM is already installed. >>>> >>>> Thanks, >>>> >>>> John >>>> >>>> On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi < >>>> shijunxiao at email.arizona.edu> wrote: >>>> >>>>> Hi John >>>>> >>>>> 1.) Since I already had installed ndnSIM using the instructions in >>>>>> Getting Started on the main ndnSIM.net page, I don't have to perform >>>>>> another git clone on ns-3-dev-ndnSIM.git or any of those files right? It >>>>>> seems it's just downloading a separate copy of ndnSIM to put in a separate >>>>>> directory. >>>>>> *So, all I did per the instructions was a git clone on the >>>>>> ndnSIM-scenario-template-git.* >>>>>> >>>>> You don't need to clone ns-3 or ndnSIM again, as long as you have >>>>> compatible version. >>>>> >>>>> 2.) I placed the downloaded branch (terminology might be off here) in >>>>>> my-simulations, *which in turn I have inside the ndnSIM folder*. >>>>>> So, my-simulations is a directory that is a sibling directory of ns-3 and >>>>>> pybindgen, all three being inside the top level ndnSIM folder. >>>>>> *Is this correct / ok?* >>>>>> >>>>> Yes, this is correct. scenario template must be outside of ns-3 folder. >>>>> >>>>> 3.) I am very confused about the difference between the extensions >>>>>> and scenarios directories. I was under the impression I could put a >>>>>> subdirectory under extensions named as my scenario, so I named a >>>>>> subdirectory of extensions "jpb-strategy1-test", which contains >>>>>> jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they >>>>>> worked fine with ndnSIM 2.1.) >>>>>> *Is this correct?* >>>>>> >>>>> You may place multiple files in extensions/ folder, which will be >>>>> linked with every scenario. >>>>> Every file in scenarios/ folder is an individual simulation which must >>>>> have a main() function. Every file is linked with every object from >>>>> extensions/ to create an executable. >>>>> >>>>> >>>>>> 4.) Now, it cannot find the scenario, regardless of whether its >>>>>> inside extensions or scenarios. Does a .cpp or .cc file have to be at the >>>>>> top level or can I put a subdirectory? I just want to remain organized. I >>>>>> get the following: >>>>>> >>>>>> >>>>>> >>>>>> *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: >>>>>> Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program >>>>>> 'jpb-strategy1-test' not found; available programs are: ['subdir', >>>>>> 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', >>>>>> 'test-runner', 'utils/test-runner', 'bench-simulator', >>>>>> 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', >>>>>> 'print-introspected-doxygen', 'utils/print-introspected-doxygen', >>>>>> 'tap-device-creator', 'src/fd-net-device/tap-device-creator', >>>>>> 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', >>>>>> 'src/tap-bridge/tap-creator']* >>>>>> >>>>> You must first `sudo ./waf install` from ns-3 which installs ns-3 >>>>> including ndnSIM system-wide (optimized build is recommended), and then >>>>> `./waf configure` and `./waf` inside the scenario template. >>>>> >>>>> Yours, Junxiao >>>>> >>>> >>>> >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed Jan 4 00:37:59 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 4 Jan 2017 00:37:59 -0800 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> <98A20671-DAA0-474F-9FDC-B656AB762AE6@cs.ucla.edu> Message-ID: <41E8568A-C557-4B01-9262-CE9D8ADBF402@cs.ucla.edu> Ooops. The instructions in README pointing to wrong places. Will fix that. As for the shared library error. Assuming you're on Linux, restart or running `sudo ldconfig` should solve the problem. --- Alex > On Jan 3, 2017, at 11:02 PM, John Baugh wrote: > > Alex, > > I'm getting closer. With the link to the scenarios you provided me, I was able to put my files in scenarios folder and try ./waf configure and ./waf from ndnSIM/my-simulations. > > I used a different, simpler scenario now, called jpb-4-print. I now get this error when I attempt to run it. It compiles now, but appears to have a linker issue: > > jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf > Waf: Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build' > [1/2] Compiling scenarios/jpb-4-print.cpp > [2/2] Linking build/jpb-4-print > Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-simulations/build' > 'build' finished successfully (5.089s) > jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf --run=jpb-4-print > Waf: Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build' > Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-simulations/build' > 'build' finished successfully (0.025s) > build/jpb-4-print: error while loading shared libraries: libns3-dev-core-optimized.so: cannot open shared object file: No such file or directory > > > Thanks, > > John > > On Wed, Jan 4, 2017 at 1:51 AM, John Baugh > wrote: > Alex, > > This is where I found the instructions: > > https://github.com/named-data-ndnSIM/scenario-template > > The README file on that page says to do: > > git clone git://github.com/cawka/ndnSIM-scenario-template.git my-simulations > > The wscript from this location does contain a reference to the libndn-cxx library. > > I think the README needs updated... It uses a different repository. > > I'm about to try the tests again. > > Thanks, > > John > > On Wed, Jan 4, 2017 at 1:38 AM, Alex Afanasyev > wrote: > 2.3 should be ok. Which exactly repository you cloned for scenario-template? I just checked with the one listed on ndnSIM website (https://github.com/named-data-ndnSIM/scenario-template.git ) and everything is working. > > The correct template repository should not have this check: > > ... > Checking for 'libndn-cxx' : not found > ... > > The you should have directory structure something like this > > some-folder-for-simulations/ > ??? ns-3/ > ? ??? ... > ? ??? src/ > ? ? ??? ... > ? ? ??? ndnSIM/ > ? ? ? ??? ndn-cxx/ > ? ? ? ??? NFD/ > ? ? ? ??? model/ > ? ? ? ??? ... > ? ? ??? ... > ? ??? ... > ??? pybindgen/ > ? ??? ... > ??? scenario/ > ??? README.md > ??? extensions/ > ? ??? README.md > ? ??? some-code.hpp > ? ??? some-code.cpp > ??? graphs/ > ? ??? ... > ??? results/ > ??? run.py > ??? scenarios/ > ? ??? README.md > ? ??? scenario-name.cpp > ??? waf > ??? wscript > > When you're inside scenario/ folder, you can run `./waf --run scenario-name` (files in scenarios/ folder are getting compiled into individual scenarios). > > --- > Alex > >> On Jan 3, 2017, at 9:56 PM, John Baugh > wrote: >> >> Junxiao, >> >> That is peculiar... perhaps I should ask a different question: >> >> Should I be using ndnSIM 2.3, even? Or should I just go back to 2.1? >> >> If so, how might I accomplish this to ensure I don't get the newest version? >> >> Thanks, >> >> John >> >> On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi > wrote: >> Hi John >> >> The scenario template, as of commit 2b5b6f55f04982273e62127082a19459ec68ff43 , is compatible with ndnSIM 2.1, and may or may not work with other versions. >> However, I do not see why the scenario template is looking for ndn-cxx, because there's no "ndn-cxx" token in its wscript. >> >> Yours, Junxiao >> >> On Tue, Jan 3, 2017 at 10:44 PM, John Baugh > wrote: >> Junxiao, >> >> By "./waf configure and ./waf inside the scenario template", I took that as the ./waf inside my my-simulations directory, correct? >> >> I performed the ./waf configure from inside there after doing a ./waf install (from inside ns-3 directory), and I get the following: >> >> jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure >> Setting top to : /home/jpbaugh/ndnSIM/my-simulations >> Setting out to : /home/jpbaugh/ndnSIM/my-simulations/build >> Checking for 'gcc' (C compiler) : /usr/bin/gcc >> Checking for 'g++' (C++ compiler) : /usr/bin/g++ >> Checking supported CXXFLAGS : -std=c++11 >> Checking supported CXXFLAGS : -pedantic -Wall -O2 -g >> Checking for program 'pkg-config' : /usr/bin/pkg-config >> Checking for 'libndn-cxx' : not found >> The configuration failed >> (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) >> >> >> My obvious assumption is that it cannot find the ndn-cxx library. But I am following the instructions by the letter. This is a fresh computer and a fresh install, so what might be the issue here? And what is the best / appropriate corrective measure, as I assume ndnSIM is already installed. >> >> Thanks, >> >> John >> >> On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi > wrote: >> Hi John >> >> 1.) Since I already had installed ndnSIM using the instructions in Getting Started on the main ndnSIM.net page, I don't have to perform another git clone on ns-3-dev-ndnSIM.git or any of those files right? It seems it's just downloading a separate copy of ndnSIM to put in a separate directory. So, all I did per the instructions was a git clone on the ndnSIM-scenario-template-git. >> You don't need to clone ns-3 or ndnSIM again, as long as you have compatible version. >> >> 2.) I placed the downloaded branch (terminology might be off here) in my-simulations, which in turn I have inside the ndnSIM folder. So, my-simulations is a directory that is a sibling directory of ns-3 and pybindgen, all three being inside the top level ndnSIM folder. Is this correct / ok? >> Yes, this is correct. scenario template must be outside of ns-3 folder. >> >> 3.) I am very confused about the difference between the extensions and scenarios directories. I was under the impression I could put a subdirectory under extensions named as my scenario, so I named a subdirectory of extensions "jpb-strategy1-test", which contains jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they worked fine with ndnSIM 2.1.) Is this correct? >> You may place multiple files in extensions/ folder, which will be linked with every scenario. >> Every file in scenarios/ folder is an individual simulation which must have a main() function. Every file is linked with every object from extensions/ to create an executable. >> >> 4.) Now, it cannot find the scenario, regardless of whether its inside extensions or scenarios. Does a .cpp or .cc file have to be at the top level or can I put a subdirectory? I just want to remain organized. I get the following: >> >> jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-test >> Waf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/build' >> program 'jpb-strategy1-test' not found; available programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen', 'tap-device-creator', 'src/fd-net-device/tap-device-creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', 'src/tap-bridge/tap-creator'] >> You must first `sudo ./waf install` from ns-3 which installs ns-3 including ndnSIM system-wide (optimized build is recommended), and then `./waf configure` and `./waf` inside the scenario template. >> >> Yours, Junxiao >> >> >> > > > -------------- 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 URL: From bmohammadi at ce.sharif.edu Wed Jan 4 02:27:16 2017 From: bmohammadi at ce.sharif.edu (bmohammadi) Date: Wed, 04 Jan 2017 13:57:16 +0330 Subject: [ndnSIM] How to update FIBs after producer's handoff Message-ID: <8d17bd7e60123d7e4fda6c48577645f9@ce.sharif.edu> Dear ndnSIM users, I want to update routers' FIB after Producer's handoff. I have read something about RIB management but I do not know how I can use that in my code and I could not find any example. Can anyone help me? Thanks already in advance for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Wed Jan 4 04:54:04 2017 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Wed, 4 Jan 2017 16:24:04 +0330 Subject: [ndnSIM] How to update FIBs after producer's handoff In-Reply-To: <8d17bd7e60123d7e4fda6c48577645f9@ce.sharif.edu> References: <8d17bd7e60123d7e4fda6c48577645f9@ce.sharif.edu> Message-ID: B, In simulator you can use ndn::FibHelper ::AddRoute. Those are static member functions, so you don't need to have a fibhelper object to call them. In real environment you need to send commands using Interests, which I recommend you to use the first one if you are not working in real environment. Regards, Sabet ????? ????? ?? ???? On Wed, Jan 4, 2017 at 1:57 PM, bmohammadi wrote: > Dear ndnSIM users, > > I want to update routers' FIB after Producer's handoff. I have read > something about RIB management but I do not know how I can use that in my > code and I could not find any example. Can anyone help me? > > Thanks already in advance for your help. > > > _______________________________________________ > 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 mastorakis at CS.UCLA.EDU Wed Jan 4 10:01:46 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Wed, 4 Jan 2017 10:01:46 -0800 Subject: [ndnSIM] How to update FIBs after producer's handoff In-Reply-To: References: <8d17bd7e60123d7e4fda6c48577645f9@ce.sharif.edu> Message-ID: Hi, I agree with Sabet that the easiest way should be to use the FibHelper to manually install and uninstall routes. Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 4, 2017, at 4:54 AM, Muhammad Hosain Abdollahi Sabet wrote: > > B, > > In simulator you can use ndn::FibHelper ::AddRoute. Those are static member functions, so you don't need to have a fibhelper object to call them. In real environment you need to send commands using Interests, which I recommend you to use the first one if you are not working in real environment. > > Regards, > Sabet > > ????? ????? > ?? ???? > > On Wed, Jan 4, 2017 at 1:57 PM, bmohammadi > wrote: > Dear ndnSIM users, > > I want to update routers' FIB after Producer's handoff. I have read something about RIB management but I do not know how I can use that in my code and I could not find any example. Can anyone help me? > > Thanks already in advance for your help. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Wed Jan 4 21:51:39 2017 From: jpbaugh at umich.edu (John Baugh) Date: Thu, 5 Jan 2017 00:51:39 -0500 Subject: [ndnSIM] New Ubuntu machine - new bizarre errors In-Reply-To: <41E8568A-C557-4B01-9262-CE9D8ADBF402@cs.ucla.edu> References: <6263586E-7090-497D-9F5C-14F1B16D1A15@cs.ucla.edu> <98A20671-DAA0-474F-9FDC-B656AB762AE6@cs.ucla.edu> <41E8568A-C557-4B01-9262-CE9D8ADBF402@cs.ucla.edu> Message-ID: Alex, The *ldconfig *command worked. Restarting didn't. Everything seems to be running fairly smoothly now. Thanks for your help! John On Wed, Jan 4, 2017 at 3:37 AM, Alex Afanasyev wrote: > Ooops. The instructions in README pointing to wrong places. Will fix > that. > > As for the shared library error. Assuming you're on Linux, restart or > running `sudo ldconfig` should solve the problem. > > --- > Alex > > On Jan 3, 2017, at 11:02 PM, John Baugh wrote: > > Alex, > > I'm getting closer. With the link to the scenarios you provided me, I was > able to put my files in scenarios folder and try ./waf configure and ./waf > from ndnSIM/my-simulations. > > I used a different, simpler scenario now, called jpb-4-print. I now get > this error when I attempt to run it. It compiles now, but appears to have > a linker issue: > > jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf > Waf: Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build' > [1/2] Compiling scenarios/jpb-4-print.cpp > [2/2] Linking build/jpb-4-print > Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-simulations/build' > 'build' finished successfully (5.089s) > > > > > *jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf --run=jpb-4-printWaf: > Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build'Waf: Leaving > directory `/home/jpbaugh/ndnSIM/my-simulations/build''build' finished > successfully (0.025s)build/jpb-4-print: error while loading shared > libraries: libns3-dev-core-optimized.so: cannot open shared object file: No > such file or directory* > > > Thanks, > > John > > On Wed, Jan 4, 2017 at 1:51 AM, John Baugh wrote: > >> Alex, >> >> This is where I found the instructions: >> >> https://github.com/named-data-ndnSIM/scenario-template >> >> The README file on that page says to do: >> >> >> *git clone git://github.com/cawka/ndnSIM-scenario-template.git >> my-simulations* >> >> The wscript from this location does contain a reference to the libndn-cxx >> library. >> >> I think the README needs updated... It uses a different repository. >> >> I'm about to try the tests again. >> >> Thanks, >> >> John >> >> On Wed, Jan 4, 2017 at 1:38 AM, Alex Afanasyev wrote: >> >>> 2.3 should be ok. Which exactly repository you cloned for >>> scenario-template? I just checked with the one listed on ndnSIM website ( >>> https://github.com/named-data-ndnSIM/scenario-template.git) and >>> everything is working. >>> >>> The correct template repository should not have this check: >>> >>> ... >>> Checking for 'libndn-cxx' : not found >>> ... >>> >>> The you should have directory structure something like this >>> >>> some-folder-for-simulations/ >>> ??? ns-3/ >>> ? ??? ... >>> ? ??? src/ >>> ? ? ??? ... >>> ? ? ??? ndnSIM/ >>> ? ? ? ??? ndn-cxx/ >>> ? ? ? ??? NFD/ >>> ? ? ? ??? model/ >>> ? ? ? ??? ... >>> ? ? ??? ... >>> ? ??? ... >>> ??? pybindgen/ >>> ? ??? ... >>> ??? scenario/ >>> ??? README.md >>> ??? extensions/ >>> ? ??? README.md >>> ? ??? some-code.hpp >>> ? ??? some-code.cpp >>> ??? graphs/ >>> ? ??? ... >>> ??? results/ >>> ??? run.py >>> ??? scenarios/ >>> ? ??? README.md >>> ? ??? scenario-name.cpp >>> ??? waf >>> ??? wscript >>> >>> When you're inside scenario/ folder, you can run `./waf --run >>> scenario-name` (files in scenarios/ folder are getting compiled into >>> individual scenarios). >>> >>> --- >>> Alex >>> >>> On Jan 3, 2017, at 9:56 PM, John Baugh wrote: >>> >>> Junxiao, >>> >>> That is peculiar... perhaps I should ask a different question: >>> >>> *Should I be using ndnSIM 2.3*, even? Or should I just go back to >>> 2.1? >>> >>> If so, how might I accomplish this to ensure I don't get the newest >>> version? >>> >>> Thanks, >>> >>> John >>> >>> On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi < >>> shijunxiao at email.arizona.edu> wrote: >>> >>>> Hi John >>>> >>>> The scenario template, as of commit 2b5b6f55f04982273e62127082a194 >>>> 59ec68ff43 >>>> , >>>> is compatible with ndnSIM 2.1, and may or may not work with other versions. >>>> However, I do not see why the scenario template is looking for ndn-cxx, >>>> because there's no "ndn-cxx" token in its wscript. >>>> >>>> Yours, Junxiao >>>> >>>> On Tue, Jan 3, 2017 at 10:44 PM, John Baugh wrote: >>>> >>>>> Junxiao, >>>>> >>>>> By "./waf configure and ./waf inside the scenario template", I took >>>>> that as the ./waf inside my my-simulations directory, correct? >>>>> >>>>> I performed the ./waf configure from inside there *after *doing a >>>>> ./waf install (from inside ns-3 directory), and I get the following: >>>>> >>>>> jpbaugh at Janeway:~/ndnSIM/my-simulations$ ./waf configure >>>>> Setting top to : >>>>> /home/jpbaugh/ndnSIM/my-simulations >>>>> Setting out to : >>>>> /home/jpbaugh/ndnSIM/my-simulations/build >>>>> Checking for 'gcc' (C compiler) : /usr/bin/gcc >>>>> Checking for 'g++' (C++ compiler) : /usr/bin/g++ >>>>> Checking supported CXXFLAGS : -std=c++11 >>>>> Checking supported CXXFLAGS : -pedantic -Wall -O2 -g >>>>> Checking for program 'pkg-config' : /usr/bin/pkg-config >>>>> Checking for 'libndn-cxx' : not found >>>>> The configuration failed >>>>> (complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log) >>>>> >>>>> >>>>> My obvious assumption is that it cannot find the ndn-cxx library. But >>>>> I am following the instructions by the letter. This is a fresh computer >>>>> and a fresh install, so what might be the issue here? And what is the best >>>>> / appropriate corrective measure, as I assume ndnSIM is already installed. >>>>> >>>>> Thanks, >>>>> >>>>> John >>>>> >>>>> On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi < >>>>> shijunxiao at email.arizona.edu> wrote: >>>>> >>>>>> Hi John >>>>>> >>>>>> 1.) Since I already had installed ndnSIM using the instructions in >>>>>>> Getting Started on the main ndnSIM.net page, I >>>>>>> don't have to perform another git clone on ns-3-dev-ndnSIM.git or any of >>>>>>> those files right? It seems it's just downloading a separate copy of >>>>>>> ndnSIM to put in a separate directory. >>>>>>> *So, all I did per the instructions was a git clone on the >>>>>>> ndnSIM-scenario-template-git.* >>>>>>> >>>>>> You don't need to clone ns-3 or ndnSIM again, as long as you have >>>>>> compatible version. >>>>>> >>>>>> 2.) I placed the downloaded branch (terminology might be off here) >>>>>>> in my-simulations, *which in turn I have inside the ndnSIM folder*. >>>>>>> So, my-simulations is a directory that is a sibling directory of ns-3 and >>>>>>> pybindgen, all three being inside the top level ndnSIM folder. >>>>>>> *Is this correct / ok?* >>>>>>> >>>>>> Yes, this is correct. scenario template must be outside of ns-3 >>>>>> folder. >>>>>> >>>>>> 3.) I am very confused about the difference between the extensions >>>>>>> and scenarios directories. I was under the impression I could put a >>>>>>> subdirectory under extensions named as my scenario, so I named a >>>>>>> subdirectory of extensions "jpb-strategy1-test", which contains >>>>>>> jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they >>>>>>> worked fine with ndnSIM 2.1.) >>>>>>> *Is this correct?* >>>>>>> >>>>>> You may place multiple files in extensions/ folder, which will be >>>>>> linked with every scenario. >>>>>> Every file in scenarios/ folder is an individual simulation which >>>>>> must have a main() function. Every file is linked with every object from >>>>>> extensions/ to create an executable. >>>>>> >>>>>> >>>>>>> 4.) Now, it cannot find the scenario, regardless of whether its >>>>>>> inside extensions or scenarios. Does a .cpp or .cc file have to be at the >>>>>>> top level or can I put a subdirectory? I just want to remain organized. I >>>>>>> get the following: >>>>>>> >>>>>>> >>>>>>> >>>>>>> *jpbaugh at Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-testWaf: >>>>>>> Entering directory `/home/jpbaugh/ndnSIM/ns-3/build'program >>>>>>> 'jpb-strategy1-test' not found; available programs are: ['subdir', >>>>>>> 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', >>>>>>> 'test-runner', 'utils/test-runner', 'bench-simulator', >>>>>>> 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', >>>>>>> 'print-introspected-doxygen', 'utils/print-introspected-doxygen', >>>>>>> 'tap-device-creator', 'src/fd-net-device/tap-device-creator', >>>>>>> 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', >>>>>>> 'src/tap-bridge/tap-creator']* >>>>>>> >>>>>> You must first `sudo ./waf install` from ns-3 which installs ns-3 >>>>>> including ndnSIM system-wide (optimized build is recommended), and then >>>>>> `./waf configure` and `./waf` inside the scenario template. >>>>>> >>>>>> Yours, Junxiao >>>>>> >>>>> >>>>> >>>> >>> >>> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From philoliang at email.arizona.edu Wed Jan 4 23:15:44 2017 From: philoliang at email.arizona.edu (Teng Liang) Date: Thu, 5 Jan 2017 00:15:44 -0700 Subject: [ndnSIM] add delay before forwarding Data Message-ID: Hi everybody, How to add a short delay before forwarding Data in forwarding strategy? Thanks, Teng -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Wed Jan 4 23:42:55 2017 From: jpbaugh at umich.edu (John Baugh) Date: Thu, 5 Jan 2017 02:42:55 -0500 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? Message-ID: ndnSIM friends, I am continuing a previous attempt at creating a Custom Strategy, for the primary purpose of recording information on Interests as they arrive at a router. The three involved files, linked in my Google Drive are: 1. *The scenario file:* (jpb-strategy1-test.cpp) https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc 2. *The PopularityStrategy.hpp file* with my custom strategy specification https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc 3. *The PopularityStrategy.cpp file* with the implementation of the custom strategy class https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA Notes: - I have the scenario file in the *scenarios* directory (I'm using the template from GitHub) - I have the PopularityStrategy.[hpp,cpp] files in the *extensions * directory - I subclassed MulticastStrategy to create the PopularityStrategy - I did call NFD_REGISTER_STRATEGY at the top of the PopularityStrategy.cpp file Everything compiles just fine, but I get *no printout from the PopularityStrategy *class. I have cout<< inside both the constructor and the afterReceiveInterest function. It's as if it's not being used at all. I am very much at a loss, and would greatly appreciate assistance on this. It's close. I can feel it. :) Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed Jan 4 23:47:23 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 4 Jan 2017 23:47:23 -0800 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: References: Message-ID: I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. --- Alex > On Jan 4, 2017, at 11:42 PM, John Baugh wrote: > > ndnSIM friends, > > I am continuing a previous attempt at creating a Custom Strategy, for the primary purpose of recording information on Interests as they arrive at a router. > > The three involved files, linked in my Google Drive are: > > 1. The scenario file: (jpb-strategy1-test.cpp) > https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc > > 2. The PopularityStrategy.hpp file with my custom strategy specification > https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc > > 3. The PopularityStrategy.cpp file with the implementation of the custom strategy class > https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA > > > Notes: > - I have the scenario file in the scenarios directory (I'm using the template from GitHub) > - I have the PopularityStrategy.[hpp,cpp] files in the extensions directory > - I subclassed MulticastStrategy to create the PopularityStrategy > - I did call NFD_REGISTER_STRATEGY at the top of the PopularityStrategy.cpp file > > Everything compiles just fine, but I get no printout from the PopularityStrategy class. I have cout<< inside both the constructor and the afterReceiveInterest function. > > It's as if it's not being used at all. > > I am very much at a loss, and would greatly appreciate assistance on this. It's close. I can feel it. :) > > Thanks, > > John > > > _______________________________________________ > 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 URL: From shijunxiao at email.arizona.edu Thu Jan 5 03:40:48 2017 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Thu, 05 Jan 2017 11:40:48 +0000 Subject: [ndnSIM] add delay before forwarding Data In-Reply-To: References: Message-ID: Hi Teng You can't. Forwarding strategy only deals with Interest forwarding and Nack returning. Data returning is controlled directly in incoming Data pipeline and outgoing Data pipeline. Yours, Junxiao On Thu, Jan 5, 2017 at 00:16 Teng Liang wrote: > Hi everybody, > > How to add a short delay before forwarding Data in forwarding strategy? > > Thanks, > Teng > > > _______________________________________________ > > 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 lixia at CS.UCLA.EDU Thu Jan 5 08:14:34 2017 From: lixia at CS.UCLA.EDU (Lixia Zhang) Date: Thu, 5 Jan 2017 08:14:34 -0800 Subject: [ndnSIM] add delay before forwarding Data In-Reply-To: References: Message-ID: <245801DB-21BD-4D63-B133-C94A7C01C14D@cs.ucla.edu> > On Jan 5, 2017, at 3:40 AM, Junxiao Shi wrote: > > Hi Teng > > You can't. Forwarding strategy only deals with Interest forwarding and Nack returning. Data returning is controlled directly in incoming Data pipeline and outgoing Data pipeline. the above stated data packet handling is not forwarding strategy's job, but it sounds to me like one indeed can tweak outgoing data pipeline in ndnSIM to add the effect of some delay, right? Teng, wonder why you'd like to add delay for data? Just curious. (I know similar thing for IP experimentation, for dealing with the impact of long delay links, eg satellite, or in a local imitated environment for long haul networks) > > Yours, Junxiao > On Thu, Jan 5, 2017 at 00:16 Teng Liang > wrote: > Hi everybody, > > How to add a short delay before forwarding Data in forwarding strategy? > > Thanks, > Teng > > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > _______________________________________________ > 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 mhasabet at gmail.com Thu Jan 5 08:33:05 2017 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Thu, 5 Jan 2017 20:03:05 +0330 Subject: [ndnSIM] add delay before forwarding Data In-Reply-To: <245801DB-21BD-4D63-B133-C94A7C01C14D@cs.ucla.edu> References: <245801DB-21BD-4D63-B133-C94A7C01C14D@cs.ucla.edu> Message-ID: ?Teng, ? I've heard there have been some experiments for such modification at the time of cache hit, in order to hide the fact that some content has been retrieved from cache. So, if it is the matter, ? I guess? you may work with Forwarder::onContentStoreHit ?. But that would affect every ndn node.? -- Sabet On Jan 5, 2017 7:46 PM, "Lixia Zhang" wrote: > > On Jan 5, 2017, at 3:40 AM, Junxiao Shi > wrote: > > Hi Teng > > You can't. Forwarding strategy only deals with Interest forwarding and > Nack returning. Data returning is controlled directly in incoming Data > pipeline and outgoing Data pipeline. > > > the above stated data packet handling is not forwarding strategy's job, > but it sounds to me like one indeed can tweak outgoing data pipeline in > ndnSIM to add the effect of some delay, right? > > Teng, wonder why you'd like to add delay for data? Just curious. > > (I know similar thing for IP experimentation, for dealing with the impact > of long delay links, eg satellite, or in a local imitated environment for > long haul networks) > > > Yours, Junxiao > On Thu, Jan 5, 2017 at 00:16 Teng Liang > wrote: > >> Hi everybody, >> >> How to add a short delay before forwarding Data in forwarding strategy? >> >> Thanks, >> Teng >> >> >> _______________________________________________ >> >> ndnSIM mailing list >> >> ndnSIM at lists.cs.ucla.edu >> >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > _______________________________________________ > 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 philoliang at email.arizona.edu Thu Jan 5 10:58:58 2017 From: philoliang at email.arizona.edu (Teng Liang) Date: Thu, 5 Jan 2017 11:58:58 -0700 Subject: [ndnSIM] add delay before forwarding Data In-Reply-To: References: <245801DB-21BD-4D63-B133-C94A7C01C14D@cs.ucla.edu> Message-ID: On Thu, Jan 5, 2017 at 9:33 AM, Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com> wrote: > ?Teng, > ? > > > I've heard there have been some experiments for such modification at the > time of cache hit, in order to hide the fact that some content has been > retrieved from cache. So, if it is the matter, > ? I guess? > you may work with Forwarder::onContentStoreHit > ?. But that would affect every ndn node.? > Hi Sabet, Thanks for the message. This is a good point to add delay before entering outgoing Data pipeline. > On Jan 5, 2017 7:46 PM, "Lixia Zhang" wrote: > >> >> On Jan 5, 2017, at 3:40 AM, Junxiao Shi >> wrote: >> >> Hi Teng >> >> You can't. Forwarding strategy only deals with Interest forwarding and >> Nack returning. Data returning is controlled directly in incoming Data >> pipeline and outgoing Data pipeline. >> >> >> the above stated data packet handling is not forwarding strategy's job, >> but it sounds to me like one indeed can tweak outgoing data pipeline in >> ndnSIM to add the effect of some delay, right? >> >> Teng, wonder why you'd like to add delay for data? Just curious. >> >> (I know similar thing for IP experimentation, for dealing with the impact >> of long delay links, eg satellite, or in a local imitated environment for >> long haul networks) >> > Hi Lixia, The delay is to avoid collision in wireless ad hoc networks. I didn't tweak nfd forwarder, which is possible though. I added delay on ns3 NetDevice before sending ns3 packets. Thanks, Teng -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilyaslahmer93 at gmail.com Thu Jan 5 12:18:20 2017 From: ilyaslahmer93 at gmail.com (lahmer ilyas) Date: Thu, 5 Jan 2017 21:18:20 +0100 Subject: [ndnSIM] how can i tag interests ?? Message-ID: Hi, I am working on an application where I want to tag each interest sent by th consumer with a sequence number so that the producer will be able to know the interest sequence number. so is there a way to put a sequence number inside an interest? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Thu Jan 5 12:20:17 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 5 Jan 2017 12:20:17 -0800 Subject: [ndnSIM] how can i tag interests ?? In-Reply-To: References: Message-ID: <746F8846-873D-480E-B27E-567C11A6BDBF@cs.ucla.edu> > On Jan 5, 2017, at 12:18 PM, lahmer ilyas wrote: > > Hi, I am working on an application where I want to tag each interest sent by th consumer with a sequence number so that the producer will be able to know the interest sequence number. so is there a way to put a sequence number inside an interest? Can you Interest name for that? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP URL: From mhasabet at gmail.com Thu Jan 5 12:23:21 2017 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Thu, 5 Jan 2017 23:53:21 +0330 Subject: [ndnSIM] how can i tag interests ?? In-Reply-To: References: Message-ID: Hi Lahmer, Why don't you append sequence number to the name itself? -- Sabet On Thu, Jan 5, 2017 at 11:48 PM, lahmer ilyas wrote: > Hi, I am working on an application where I want to tag each interest sent > by th consumer with a sequence number so that the producer will be able to > know the interest sequence number. so is there a way to put a sequence > number inside an interest? > > _______________________________________________ > 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 jpbaugh at umich.edu Thu Jan 5 17:34:17 2017 From: jpbaugh at umich.edu (John Baugh) Date: Thu, 5 Jan 2017 20:34:17 -0500 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: References: Message-ID: Alex and others, I have updated the code: https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE I even included the PolicyToFile class that does successfully print content store related things to the file. But even after adding GlobalRoutingHelper functions, I cannot get this to work. I'll assume it's not a problem related to me subclassing MulticastStrategy rather than Strategy, is it? But, I'm doing everything that is in the example on ndnSIM's website. I used the RandomLoadBalancer as my example. It still isn't working. I'm not even at the point where I'm doing much with the actual interests... I just want to print out information when an interest is received, and when the object is created initially (i.e., when the ctor is called.) Any help would be greatly appreciated, as always. If anyone could run the code and see if you can figure out what's going on, I'd be very appeciative (make a umd subdirectory for the Policy class .hpp and .cpp, or change around the includes - doesn't matter, of course) Thanks, John On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev wrote: > I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. > > --- > Alex > > On Jan 4, 2017, at 11:42 PM, John Baugh wrote: > > ndnSIM friends, > > I am continuing a previous attempt at creating a Custom Strategy, for the > primary purpose of recording information on Interests as they arrive at a > router. > > The three involved files, linked in my Google Drive are: > > 1. *The scenario file:* (jpb-strategy1-test.cpp) > https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc > > 2. *The PopularityStrategy.hpp file* with my custom strategy specification > https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc > > 3. *The PopularityStrategy.cpp file* with the implementation of the > custom strategy class > https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA > > > Notes: > - I have the scenario file in the *scenarios* directory (I'm using the > template from GitHub) > - I have the PopularityStrategy.[hpp,cpp] files in the *extensions * > directory > - I subclassed MulticastStrategy to create the PopularityStrategy > - I did call NFD_REGISTER_STRATEGY at the top of the > PopularityStrategy.cpp file > > Everything compiles just fine, but I get *no printout from the > PopularityStrategy *class. I have cout<< inside both the constructor and > the afterReceiveInterest function. > > It's as if it's not being used at all. > > I am very much at a loss, and would greatly appreciate assistance on > this. It's close. I can feel it. :) > > Thanks, > > John > > > _______________________________________________ > 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 jpbaugh at umich.edu Thu Jan 5 19:00:48 2017 From: jpbaugh at umich.edu (John Baugh) Date: Thu, 5 Jan 2017 22:00:48 -0500 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: <0BE3FD2C-F6A5-4BF0-9087-CF00B5EA2776@cs.ucla.edu> References: <0BE3FD2C-F6A5-4BF0-9087-CF00B5EA2776@cs.ucla.edu> Message-ID: Alex, I think I've got this right. Let me know if you have any problems downloading the necessary files: https://github.com/profjpbaugh/ndnSIM-strategy1 Thanks, John On Thu, Jan 5, 2017 at 8:54 PM, Alex Afanasyev wrote: > If you can share you scenario repo on github, it would be much easier. As > I will be able to compile and try to run the code. > > -- > Alex > > On Jan 5, 2017, at 5:34 PM, John Baugh wrote: > > Alex and others, > > I have updated the code: > https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE > > I even included the PolicyToFile class that does successfully print > content store related things to the file. > > But even after adding GlobalRoutingHelper functions, I cannot get this to > work. I'll assume it's not a problem related to me subclassing > MulticastStrategy rather than Strategy, is it? > > But, I'm doing everything that is in the example on ndnSIM's website. I > used the RandomLoadBalancer as my example. It still isn't working. > > I'm not even at the point where I'm doing much with the actual > interests... I just want to print out information when an interest is > received, and when the object is created initially (i.e., when the ctor is > called.) > > Any help would be greatly appreciated, as always. If anyone could run the > code and see if you can figure out what's going on, I'd be very appeciative > (make a umd subdirectory for the Policy class .hpp and .cpp, or change > around the includes - doesn't matter, of course) > > Thanks, > > John > > On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev wrote: > >> I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. >> >> --- >> Alex >> >> On Jan 4, 2017, at 11:42 PM, John Baugh wrote: >> >> ndnSIM friends, >> >> I am continuing a previous attempt at creating a Custom Strategy, for the >> primary purpose of recording information on Interests as they arrive at a >> router. >> >> The three involved files, linked in my Google Drive are: >> >> 1. *The scenario file:* (jpb-strategy1-test.cpp) >> https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc >> >> 2. *The PopularityStrategy.hpp file* with my custom strategy >> specification >> https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc >> >> 3. *The PopularityStrategy.cpp file* with the implementation of the >> custom strategy class >> https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA >> >> >> Notes: >> - I have the scenario file in the *scenarios* directory (I'm using the >> template from GitHub) >> - I have the PopularityStrategy.[hpp,cpp] files in the *extensions * >> directory >> - I subclassed MulticastStrategy to create the PopularityStrategy >> - I did call NFD_REGISTER_STRATEGY at the top of the >> PopularityStrategy.cpp file >> >> Everything compiles just fine, but I get *no printout from the >> PopularityStrategy *class. I have cout<< inside both the constructor >> and the afterReceiveInterest function. >> >> It's as if it's not being used at all. >> >> I am very much at a loss, and would greatly appreciate assistance on >> this. It's close. I can feel it. :) >> >> Thanks, >> >> John >> >> >> _______________________________________________ >> 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 jpbaugh at umich.edu Fri Jan 6 13:37:53 2017 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 6 Jan 2017 16:37:53 -0500 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: References: <0BE3FD2C-F6A5-4BF0-9087-CF00B5EA2776@cs.ucla.edu> Message-ID: Alex and ndnSIM friends, Anyone get a chance to look at this? I am truly at a loss. On Jan 5, 2017 10:00 PM, "John Baugh" wrote: > Alex, > > I think I've got this right. Let me know if you have any problems > downloading the necessary files: > > https://github.com/profjpbaugh/ndnSIM-strategy1 > > Thanks, > > John > > On Thu, Jan 5, 2017 at 8:54 PM, Alex Afanasyev wrote: > >> If you can share you scenario repo on github, it would be much easier. >> As I will be able to compile and try to run the code. >> >> -- >> Alex >> >> On Jan 5, 2017, at 5:34 PM, John Baugh wrote: >> >> Alex and others, >> >> I have updated the code: >> https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE >> >> I even included the PolicyToFile class that does successfully print >> content store related things to the file. >> >> But even after adding GlobalRoutingHelper functions, I cannot get this to >> work. I'll assume it's not a problem related to me subclassing >> MulticastStrategy rather than Strategy, is it? >> >> But, I'm doing everything that is in the example on ndnSIM's website. I >> used the RandomLoadBalancer as my example. It still isn't working. >> >> I'm not even at the point where I'm doing much with the actual >> interests... I just want to print out information when an interest is >> received, and when the object is created initially (i.e., when the ctor is >> called.) >> >> Any help would be greatly appreciated, as always. If anyone could run >> the code and see if you can figure out what's going on, I'd be very >> appeciative (make a umd subdirectory for the Policy class .hpp and .cpp, or >> change around the includes - doesn't matter, of course) >> >> Thanks, >> >> John >> >> On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev wrote: >> >>> I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. >>> >>> --- >>> Alex >>> >>> On Jan 4, 2017, at 11:42 PM, John Baugh wrote: >>> >>> ndnSIM friends, >>> >>> I am continuing a previous attempt at creating a Custom Strategy, for >>> the primary purpose of recording information on Interests as they arrive at >>> a router. >>> >>> The three involved files, linked in my Google Drive are: >>> >>> 1. *The scenario file:* (jpb-strategy1-test.cpp) >>> https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc >>> >>> 2. *The PopularityStrategy.hpp file* with my custom strategy >>> specification >>> https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc >>> >>> 3. *The PopularityStrategy.cpp file* with the implementation of the >>> custom strategy class >>> https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA >>> >>> >>> Notes: >>> - I have the scenario file in the *scenarios* directory (I'm using the >>> template from GitHub) >>> - I have the PopularityStrategy.[hpp,cpp] files in the *extensions * >>> directory >>> - I subclassed MulticastStrategy to create the PopularityStrategy >>> - I did call NFD_REGISTER_STRATEGY at the top of the >>> PopularityStrategy.cpp file >>> >>> Everything compiles just fine, but I get *no printout from the >>> PopularityStrategy *class. I have cout<< inside both the constructor >>> and the afterReceiveInterest function. >>> >>> It's as if it's not being used at all. >>> >>> I am very much at a loss, and would greatly appreciate assistance on >>> this. It's close. I can feel it. :) >>> >>> Thanks, >>> >>> John >>> >>> >>> _______________________________________________ >>> 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 aa at CS.UCLA.EDU Fri Jan 6 16:39:56 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 6 Jan 2017 16:39:56 -0800 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: References: <0BE3FD2C-F6A5-4BF0-9087-CF00B5EA2776@cs.ucla.edu> Message-ID: Here is a quick patch to "fix" the issue. It is a requirement to have STRATEGY_NAME **as a static variable** in the strategy class. Otherwise, strategy is simply not being registered properly. Also, while possible right now, the strategies are not designed to be overridden. In the upcoming release, it would result in compilation error. -- Alex ================= begin patch ===================== diff --git a/extensions/PopularityStrategy.cpp b/extensions/PopularityStrategy.cpp index ecae694..36cc08a 100644 --- a/extensions/PopularityStrategy.cpp +++ b/extensions/PopularityStrategy.cpp @@ -5,11 +5,12 @@ using namespace std; namespace nfd { namespace fw { -//const ndn::Name PopularityStrategy::STRATEGY_NAME = "ndn:/localhost/nfd/strategy/popularity-strategy"; +const ndn::Name PopularityStrategy::STRATEGY_NAME = "ndn:/localhost/nfd/strategy/popularity-strategy"; NFD_REGISTER_STRATEGY(PopularityStrategy); -PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& name) : MulticastStrategy(forwarder, name) +PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& name) + : MulticastStrategy(forwarder, name) { cout<<"Inside ctor for PopularityStrategy"<& pitEntry) { //behave just like the multicast strategy - MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); + // MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); //also, maintain popularity eventually cout<<"In afterReceiveInterest, with interest: "<& pitEntry); - //static const ndn::Name STRATEGY_NAME("ndn:/localhost/nfd/strategy/popularity-strategy") + static const ndn::Name STRATEGY_NAME; ================== end patch ======================= > On Jan 6, 2017, at 1:37 PM, John Baugh wrote: > > Alex and ndnSIM friends, > > Anyone get a chance to look at this? I am truly at a loss. > > On Jan 5, 2017 10:00 PM, "John Baugh" > wrote: > Alex, > > I think I've got this right. Let me know if you have any problems downloading the necessary files: > > https://github.com/profjpbaugh/ndnSIM-strategy1 > > Thanks, > > John > > On Thu, Jan 5, 2017 at 8:54 PM, Alex Afanasyev > wrote: > If you can share you scenario repo on github, it would be much easier. As I will be able to compile and try to run the code. > > -- > Alex > >> On Jan 5, 2017, at 5:34 PM, John Baugh > wrote: >> >> Alex and others, >> >> I have updated the code: >> https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE >> >> I even included the PolicyToFile class that does successfully print content store related things to the file. >> >> But even after adding GlobalRoutingHelper functions, I cannot get this to work. I'll assume it's not a problem related to me subclassing MulticastStrategy rather than Strategy, is it? >> >> But, I'm doing everything that is in the example on ndnSIM's website. I used the RandomLoadBalancer as my example. It still isn't working. >> >> I'm not even at the point where I'm doing much with the actual interests... I just want to print out information when an interest is received, and when the object is created initially (i.e., when the ctor is called.) >> >> Any help would be greatly appreciated, as always. If anyone could run the code and see if you can figure out what's going on, I'd be very appeciative (make a umd subdirectory for the Policy class .hpp and .cpp, or change around the includes - doesn't matter, of course) >> >> Thanks, >> >> John >> >> On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev > wrote: >> I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. >> >> --- >> Alex >> >>> On Jan 4, 2017, at 11:42 PM, John Baugh > wrote: >>> >>> ndnSIM friends, >>> >>> I am continuing a previous attempt at creating a Custom Strategy, for the primary purpose of recording information on Interests as they arrive at a router. >>> >>> The three involved files, linked in my Google Drive are: >>> >>> 1. The scenario file: (jpb-strategy1-test.cpp) >>> https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc >>> >>> 2. The PopularityStrategy.hpp file with my custom strategy specification >>> https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc >>> >>> 3. The PopularityStrategy.cpp file with the implementation of the custom strategy class >>> https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA >>> >>> >>> Notes: >>> - I have the scenario file in the scenarios directory (I'm using the template from GitHub) >>> - I have the PopularityStrategy.[hpp,cpp] files in the extensions directory >>> - I subclassed MulticastStrategy to create the PopularityStrategy >>> - I did call NFD_REGISTER_STRATEGY at the top of the PopularityStrategy.cpp file >>> >>> Everything compiles just fine, but I get no printout from the PopularityStrategy class. I have cout<< inside both the constructor and the afterReceiveInterest function. >>> >>> It's as if it's not being used at all. >>> >>> I am very much at a loss, and would greatly appreciate assistance on this. It's close. I can feel it. :) >>> >>> Thanks, >>> >>> John >>> >>> >>> _______________________________________________ >>> 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 ilyaslahmer93 at gmail.com Fri Jan 6 17:26:33 2017 From: ilyaslahmer93 at gmail.com (lahmer ilyas) Date: Sat, 7 Jan 2017 02:26:33 +0100 Subject: [ndnSIM] error ?? Message-ID: Hi, I am getting an error when trying to simulate my strategy : terminate called after throwing an instance of 'ndn::tlv::Error' what(): Not enough data in the buffer to fully parse TLV what could be the reason of this error. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Fri Jan 6 17:29:34 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 6 Jan 2017 17:29:34 -0800 Subject: [ndnSIM] error ?? In-Reply-To: References: Message-ID: <60B51D1A-2F02-4BCE-AF5E-46EA289F5378@cs.ucla.edu> Hi, most probably, you do not create the data packet in the right way or probably you do not encode/decode it correctly. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 6, 2017, at 5:26 PM, lahmer ilyas wrote: > > Hi, I am getting an error when trying to simulate my strategy : > terminate called after throwing an instance of 'ndn::tlv::Error' > what(): Not enough data in the buffer to fully parse TLV > > what could be the reason of this error. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Fri Jan 6 19:14:44 2017 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 6 Jan 2017 22:14:44 -0500 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: References: <0BE3FD2C-F6A5-4BF0-9087-CF00B5EA2776@cs.ucla.edu> Message-ID: Alex, When you say that the strategies aren't intended to be overridden, do you mean those such as MulticastStrategy? I assume Strategy will still be overridable. My entire purpose for this code isn't to actually modify the strategy, but to be able to use an existing strategy, with some logging / data collection occurring. I'm ultimately going to use the data collected about interests in the Policy. So the classes will have to interact. Also, from your description, I now assume STRATEGY_NAME must have that exact name, and is used elsewhere besides just setting the default parameter? Is this behavior / requirement documented anywhere? Thanks, John On Jan 6, 2017 7:40 PM, "Alex Afanasyev" wrote: Here is a quick patch to "fix" the issue. It is a requirement to have STRATEGY_NAME **as a static variable** in the strategy class. Otherwise, strategy is simply not being registered properly. Also, while possible right now, the strategies are not designed to be overridden. In the upcoming release, it would result in compilation error. -- Alex ================= begin patch ===================== diff --git a/extensions/PopularityStrategy.cpp b/extensions/ PopularityStrategy.cpp index ecae694..36cc08a 100644 --- a/extensions/PopularityStrategy.cpp +++ b/extensions/PopularityStrategy.cpp @@ -5,11 +5,12 @@ using namespace std; namespace nfd { namespace fw { -//const ndn::Name PopularityStrategy::STRATEGY_NAME = "ndn:/localhost/nfd/strategy/popularity-strategy"; +const ndn::Name PopularityStrategy::STRATEGY_NAME = "ndn:/localhost/nfd/strategy/popularity-strategy"; NFD_REGISTER_STRATEGY(PopularityStrategy); -PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& name) : MulticastStrategy(forwarder, name) +PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& name) + : MulticastStrategy(forwarder, name) { cout<<"Inside ctor for PopularityStrategy"<& pitEntry) { //behave just like the multicast strategy - MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); + // MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); //also, maintain popularity eventually cout<<"In afterReceiveInterest, with interest: "<& pitEntry); - //static const ndn::Name STRATEGY_NAME("ndn:/localhost/ nfd/strategy/popularity-strategy") + static const ndn::Name STRATEGY_NAME; ================== end patch ======================= On Jan 6, 2017, at 1:37 PM, John Baugh wrote: Alex and ndnSIM friends, Anyone get a chance to look at this? I am truly at a loss. On Jan 5, 2017 10:00 PM, "John Baugh" wrote: > Alex, > > I think I've got this right. Let me know if you have any problems > downloading the necessary files: > > https://github.com/profjpbaugh/ndnSIM-strategy1 > > Thanks, > > John > > On Thu, Jan 5, 2017 at 8:54 PM, Alex Afanasyev wrote: > >> If you can share you scenario repo on github, it would be much easier. >> As I will be able to compile and try to run the code. >> >> -- >> Alex >> >> On Jan 5, 2017, at 5:34 PM, John Baugh wrote: >> >> Alex and others, >> >> I have updated the code: >> https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE >> >> I even included the PolicyToFile class that does successfully print >> content store related things to the file. >> >> But even after adding GlobalRoutingHelper functions, I cannot get this to >> work. I'll assume it's not a problem related to me subclassing >> MulticastStrategy rather than Strategy, is it? >> >> But, I'm doing everything that is in the example on ndnSIM's website. I >> used the RandomLoadBalancer as my example. It still isn't working. >> >> I'm not even at the point where I'm doing much with the actual >> interests... I just want to print out information when an interest is >> received, and when the object is created initially (i.e., when the ctor is >> called.) >> >> Any help would be greatly appreciated, as always. If anyone could run >> the code and see if you can figure out what's going on, I'd be very >> appeciative (make a umd subdirectory for the Policy class .hpp and .cpp, or >> change around the includes - doesn't matter, of course) >> >> Thanks, >> >> John >> >> On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev wrote: >> >>> I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. >>> >>> --- >>> Alex >>> >>> On Jan 4, 2017, at 11:42 PM, John Baugh wrote: >>> >>> ndnSIM friends, >>> >>> I am continuing a previous attempt at creating a Custom Strategy, for >>> the primary purpose of recording information on Interests as they arrive at >>> a router. >>> >>> The three involved files, linked in my Google Drive are: >>> >>> 1. *The scenario file:* (jpb-strategy1-test.cpp) >>> https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc >>> >>> 2. *The PopularityStrategy.hpp file* with my custom strategy >>> specification >>> https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc >>> >>> 3. *The PopularityStrategy.cpp file* with the implementation of the >>> custom strategy class >>> https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA >>> >>> >>> Notes: >>> - I have the scenario file in the *scenarios* directory (I'm using the >>> template from GitHub) >>> - I have the PopularityStrategy.[hpp,cpp] files in the *extensions * >>> directory >>> - I subclassed MulticastStrategy to create the PopularityStrategy >>> - I did call NFD_REGISTER_STRATEGY at the top of the >>> PopularityStrategy.cpp file >>> >>> Everything compiles just fine, but I get *no printout from the >>> PopularityStrategy *class. I have cout<< inside both the constructor >>> and the afterReceiveInterest function. >>> >>> It's as if it's not being used at all. >>> >>> I am very much at a loss, and would greatly appreciate assistance on >>> this. It's close. I can feel it. :) >>> >>> Thanks, >>> >>> John >>> >>> >>> _______________________________________________ >>> 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 jpbaugh at umich.edu Fri Jan 6 20:18:24 2017 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 6 Jan 2017 23:18:24 -0500 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: References: <0BE3FD2C-F6A5-4BF0-9087-CF00B5EA2776@cs.ucla.edu> Message-ID: Your patch works beautifully, by the way. Thank you. On Fri, Jan 6, 2017 at 10:14 PM, John Baugh wrote: > Alex, > > When you say that the strategies aren't intended to be overridden, do you > mean those such as MulticastStrategy? > > I assume Strategy will still be overridable. > > My entire purpose for this code isn't to actually modify the strategy, but > to be able to use an existing strategy, with some logging / data collection > occurring. > > I'm ultimately going to use the data collected about interests in the > Policy. So the classes will have to interact. > > Also, from your description, I now assume STRATEGY_NAME must have that > exact name, and is used elsewhere besides just setting the default > parameter? Is this behavior / requirement documented anywhere? > > Thanks, > > John > > > On Jan 6, 2017 7:40 PM, "Alex Afanasyev" wrote: > > Here is a quick patch to "fix" the issue. It is a requirement to have > STRATEGY_NAME **as a static variable** in the strategy class. Otherwise, > strategy is simply not being registered properly. > > Also, while possible right now, the strategies are not designed to be > overridden. In the upcoming release, it would result in compilation error. > > -- > Alex > > ================= begin patch ===================== > diff --git a/extensions/PopularityStrategy.cpp > b/extensions/PopularityStrategy.cpp > index ecae694..36cc08a 100644 > --- a/extensions/PopularityStrategy.cpp > +++ b/extensions/PopularityStrategy.cpp > @@ -5,11 +5,12 @@ using namespace std; > namespace nfd { > namespace fw { > > -//const ndn::Name PopularityStrategy::STRATEGY_NAME = > "ndn:/localhost/nfd/strategy/popularity-strategy"; > +const ndn::Name PopularityStrategy::STRATEGY_NAME = > "ndn:/localhost/nfd/strategy/popularity-strategy"; > > NFD_REGISTER_STRATEGY(PopularityStrategy); > > -PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& > name) : MulticastStrategy(forwarder, name) > +PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& > name) > + : MulticastStrategy(forwarder, name) > { > cout<<"Inside ctor for PopularityStrategy"< }//end ctor > @@ -20,7 +21,7 @@ PopularityStrategy::afterReceiveInterest(const Face& > inFace, > const shared_ptr& pitEntry) > { > //behave just like the multicast strategy > - MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); > + // MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); > > //also, maintain popularity eventually > cout<<"In afterReceiveInterest, with interest: > "< diff --git a/extensions/PopularityStrategy.hpp > b/extensions/PopularityStrategy.hpp > index 4a0e6b4..447be49 100644 > --- a/extensions/PopularityStrategy.hpp > +++ b/extensions/PopularityStrategy.hpp > @@ -9,8 +9,6 @@ > namespace nfd { > namespace fw { > > -const ndn::Name STRATEGY_NAME("ndn:/localhost/ > nfd/strategy/popularity-strategy"); > - > class PopularityStrategy : public MulticastStrategy { > > public: > @@ -20,7 +18,7 @@ public: > afterReceiveInterest(const Face& inFace, const Interest& interest, > const shared_ptr& pitEntry); > > - //static const ndn::Name STRATEGY_NAME("ndn:/localhost/ > nfd/strategy/popularity-strategy") > + static const ndn::Name STRATEGY_NAME; > > ================== end patch ======================= > > On Jan 6, 2017, at 1:37 PM, John Baugh wrote: > > Alex and ndnSIM friends, > > Anyone get a chance to look at this? I am truly at a loss. > > On Jan 5, 2017 10:00 PM, "John Baugh" wrote: > >> Alex, >> >> I think I've got this right. Let me know if you have any problems >> downloading the necessary files: >> >> https://github.com/profjpbaugh/ndnSIM-strategy1 >> >> Thanks, >> >> John >> >> On Thu, Jan 5, 2017 at 8:54 PM, Alex Afanasyev wrote: >> >>> If you can share you scenario repo on github, it would be much easier. >>> As I will be able to compile and try to run the code. >>> >>> -- >>> Alex >>> >>> On Jan 5, 2017, at 5:34 PM, John Baugh wrote: >>> >>> Alex and others, >>> >>> I have updated the code: >>> https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE >>> >>> I even included the PolicyToFile class that does successfully print >>> content store related things to the file. >>> >>> But even after adding GlobalRoutingHelper functions, I cannot get this >>> to work. I'll assume it's not a problem related to me subclassing >>> MulticastStrategy rather than Strategy, is it? >>> >>> But, I'm doing everything that is in the example on ndnSIM's website. I >>> used the RandomLoadBalancer as my example. It still isn't working. >>> >>> I'm not even at the point where I'm doing much with the actual >>> interests... I just want to print out information when an interest is >>> received, and when the object is created initially (i.e., when the ctor is >>> called.) >>> >>> Any help would be greatly appreciated, as always. If anyone could run >>> the code and see if you can figure out what's going on, I'd be very >>> appeciative (make a umd subdirectory for the Policy class .hpp and .cpp, or >>> change around the includes - doesn't matter, of course) >>> >>> Thanks, >>> >>> John >>> >>> On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev wrote: >>> >>>> I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. >>>> >>>> --- >>>> Alex >>>> >>>> On Jan 4, 2017, at 11:42 PM, John Baugh wrote: >>>> >>>> ndnSIM friends, >>>> >>>> I am continuing a previous attempt at creating a Custom Strategy, for >>>> the primary purpose of recording information on Interests as they arrive at >>>> a router. >>>> >>>> The three involved files, linked in my Google Drive are: >>>> >>>> 1. *The scenario file:* (jpb-strategy1-test.cpp) >>>> https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc >>>> >>>> 2. *The PopularityStrategy.hpp file* with my custom strategy >>>> specification >>>> https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc >>>> >>>> 3. *The PopularityStrategy.cpp file* with the implementation of the >>>> custom strategy class >>>> https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA >>>> >>>> >>>> Notes: >>>> - I have the scenario file in the *scenarios* directory (I'm using the >>>> template from GitHub) >>>> - I have the PopularityStrategy.[hpp,cpp] files in the *extensions * >>>> directory >>>> - I subclassed MulticastStrategy to create the PopularityStrategy >>>> - I did call NFD_REGISTER_STRATEGY at the top of the >>>> PopularityStrategy.cpp file >>>> >>>> Everything compiles just fine, but I get *no printout from the >>>> PopularityStrategy *class. I have cout<< inside both the constructor >>>> and the afterReceiveInterest function. >>>> >>>> It's as if it's not being used at all. >>>> >>>> I am very much at a loss, and would greatly appreciate assistance on >>>> this. It's close. I can feel it. :) >>>> >>>> Thanks, >>>> >>>> John >>>> >>>> >>>> _______________________________________________ >>>> 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 dyao at mail.ustc.edu.cn Sat Jan 7 20:06:58 2017 From: dyao at mail.ustc.edu.cn (dyao at mail.ustc.edu.cn) Date: Sun, 8 Jan 2017 12:06:58 +0800 (GMT+08:00) Subject: [ndnSIM] how can i tag for Interest and Data package Message-ID: <390cb4f.1384f.1597c4205d8.Coremail.dyao@mail.ustc.edu.cn> Hi, I am working on an application where I want to tag each interest sent by the consumer with a node'score so that when Data return, the node on the path will be able to know whether or not cache the data. so is there a way to put a socre(double) tag inside an interest and Data package? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sat Jan 7 20:18:39 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sat, 7 Jan 2017 20:18:39 -0800 Subject: [ndnSIM] how can i tag for Interest and Data package In-Reply-To: <390cb4f.1384f.1597c4205d8.Coremail.dyao@mail.ustc.edu.cn> References: <390cb4f.1384f.1597c4205d8.Coremail.dyao@mail.ustc.edu.cn> Message-ID: Hi, one solution would be to put the score into the name. Another way would be to use an NDNLP tag (take a look here for further details: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003250.html). A third way would be to modify the Data and Interest classes of the ndn-cxx library to add the score as a field of the Interest and Data packets. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 7, 2017, at 8:06 PM, dyao at mail.ustc.edu.cn wrote: > > Hi, I am working on an application where I want to tag each interest sent by the consumer with a node'score so that when Data return, the node on the path will be able to know whether or not cache the data. so is there a way to put a socre(double) tag inside an interest and Data package? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sat Jan 7 20:50:05 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sat, 7 Jan 2017 20:50:05 -0800 Subject: [ndnSIM] Custom Strategy for Interest data collection - not working? In-Reply-To: References: <0BE3FD2C-F6A5-4BF0-9087-CF00B5EA2776@cs.ucla.edu> Message-ID: <7A555700-5DA7-44C7-B35E-981242E88983@cs.ucla.edu> > On Jan 6, 2017, at 7:14 PM, John Baugh wrote: > > Alex, > > When you say that the strategies aren't intended to be overridden, do you mean those such as MulticastStrategy? > > I assume Strategy will still be overridable. Sorry for the confusion. Yes, I meant only strategy instances such as MulticastStrategy. Strategy is a base class and, of course, will be overridable. > My entire purpose for this code isn't to actually modify the strategy, but to be able to use an existing strategy, with some logging / data collection occurring. > > I'm ultimately going to use the data collected about interests in the Policy. So the classes will have to interact. You could just copy the code of the strategy and modify that. > Also, from your description, I now assume STRATEGY_NAME must have that exact name, and is used elsewhere besides just setting the default parameter? Is this behavior / requirement documented anywhere? I am not sure what you mean here. The upcoming changes (already pushed to master branch of official NFD repo) include a few changes on how strategy name can be used, including passing additional parameters. Though, not sure if this was your question. -- Alex > > Thanks, > > John > > > On Jan 6, 2017 7:40 PM, "Alex Afanasyev" > wrote: > Here is a quick patch to "fix" the issue. It is a requirement to have STRATEGY_NAME **as a static variable** in the strategy class. Otherwise, strategy is simply not being registered properly. > > Also, while possible right now, the strategies are not designed to be overridden. In the upcoming release, it would result in compilation error. > > -- > Alex > > ================= begin patch ===================== > diff --git a/extensions/PopularityStrategy.cpp b/extensions/PopularityStrategy.cpp > index ecae694..36cc08a 100644 > --- a/extensions/PopularityStrategy.cpp > +++ b/extensions/PopularityStrategy.cpp > @@ -5,11 +5,12 @@ using namespace std; > namespace nfd { > namespace fw { > > -//const ndn::Name PopularityStrategy::STRATEGY_NAME = "ndn:/localhost/nfd/strategy/popularity-strategy"; > +const ndn::Name PopularityStrategy::STRATEGY_NAME = "ndn:/localhost/nfd/strategy/popularity-strategy"; > > NFD_REGISTER_STRATEGY(PopularityStrategy); > > -PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& name) : MulticastStrategy(forwarder, name) > +PopularityStrategy::PopularityStrategy(Forwarder& forwarder, const Name& name) > + : MulticastStrategy(forwarder, name) > { > cout<<"Inside ctor for PopularityStrategy"< }//end ctor > @@ -20,7 +21,7 @@ PopularityStrategy::afterReceiveInterest(const Face& inFace, > const shared_ptr& pitEntry) > { > //behave just like the multicast strategy > - MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); > + // MulticastStrategy::afterReceiveInterest(inFace, interest, pitEntry); > > //also, maintain popularity eventually > cout<<"In afterReceiveInterest, with interest: "< diff --git a/extensions/PopularityStrategy.hpp b/extensions/PopularityStrategy.hpp > index 4a0e6b4..447be49 100644 > --- a/extensions/PopularityStrategy.hpp > +++ b/extensions/PopularityStrategy.hpp > @@ -9,8 +9,6 @@ > namespace nfd { > namespace fw { > > -const ndn::Name STRATEGY_NAME("ndn:/localhost/nfd/strategy/popularity-strategy"); > - > class PopularityStrategy : public MulticastStrategy { > > public: > @@ -20,7 +18,7 @@ public: > afterReceiveInterest(const Face& inFace, const Interest& interest, > const shared_ptr& pitEntry); > > - //static const ndn::Name STRATEGY_NAME("ndn:/localhost/nfd/strategy/popularity-strategy") > + static const ndn::Name STRATEGY_NAME; > > ================== end patch ======================= > >> On Jan 6, 2017, at 1:37 PM, John Baugh > wrote: >> >> Alex and ndnSIM friends, >> >> Anyone get a chance to look at this? I am truly at a loss. >> >> On Jan 5, 2017 10:00 PM, "John Baugh" > wrote: >> Alex, >> >> I think I've got this right. Let me know if you have any problems downloading the necessary files: >> >> https://github.com/profjpbaugh/ndnSIM-strategy1 >> >> Thanks, >> >> John >> >> On Thu, Jan 5, 2017 at 8:54 PM, Alex Afanasyev > wrote: >> If you can share you scenario repo on github, it would be much easier. As I will be able to compile and try to run the code. >> >> -- >> Alex >> >>> On Jan 5, 2017, at 5:34 PM, John Baugh > wrote: >>> >>> Alex and others, >>> >>> I have updated the code: >>> https://drive.google.com/open?id=0By9ufeKqmJYYY3Rzem5EN0ZyREE >>> >>> I even included the PolicyToFile class that does successfully print content store related things to the file. >>> >>> But even after adding GlobalRoutingHelper functions, I cannot get this to work. I'll assume it's not a problem related to me subclassing MulticastStrategy rather than Strategy, is it? >>> >>> But, I'm doing everything that is in the example on ndnSIM's website. I used the RandomLoadBalancer as my example. It still isn't working. >>> >>> I'm not even at the point where I'm doing much with the actual interests... I just want to print out information when an interest is received, and when the object is created initially (i.e., when the ctor is called.) >>> >>> Any help would be greatly appreciated, as always. If anyone could run the code and see if you can figure out what's going on, I'd be very appeciative (make a umd subdirectory for the Policy class .hpp and .cpp, or change around the includes - doesn't matter, of course) >>> >>> Thanks, >>> >>> John >>> >>> On Thu, Jan 5, 2017 at 2:47 AM, Alex Afanasyev > wrote: >>> I think you forgot to configure FIBs, e.g., using GlobalRoutingHelper. >>> >>> --- >>> Alex >>> >>>> On Jan 4, 2017, at 11:42 PM, John Baugh > wrote: >>>> >>>> ndnSIM friends, >>>> >>>> I am continuing a previous attempt at creating a Custom Strategy, for the primary purpose of recording information on Interests as they arrive at a router. >>>> >>>> The three involved files, linked in my Google Drive are: >>>> >>>> 1. The scenario file: (jpb-strategy1-test.cpp) >>>> https://drive.google.com/open?id=0By9ufeKqmJYYWXNpbEFYSEI2VWc >>>> >>>> 2. The PopularityStrategy.hpp file with my custom strategy specification >>>> https://drive.google.com/open?id=0By9ufeKqmJYYQm5BQVRSQzNjSnc >>>> >>>> 3. The PopularityStrategy.cpp file with the implementation of the custom strategy class >>>> https://drive.google.com/open?id=0By9ufeKqmJYYcTFXc1ZUcnpfQTA >>>> >>>> >>>> Notes: >>>> - I have the scenario file in the scenarios directory (I'm using the template from GitHub) >>>> - I have the PopularityStrategy.[hpp,cpp] files in the extensions directory >>>> - I subclassed MulticastStrategy to create the PopularityStrategy >>>> - I did call NFD_REGISTER_STRATEGY at the top of the PopularityStrategy.cpp file >>>> >>>> Everything compiles just fine, but I get no printout from the PopularityStrategy class. I have cout<< inside both the constructor and the afterReceiveInterest function. >>>> >>>> It's as if it's not being used at all. >>>> >>>> I am very much at a loss, and would greatly appreciate assistance on this. It's close. I can feel it. :) >>>> >>>> Thanks, >>>> >>>> John >>>> >>>> >>>> _______________________________________________ >>>> 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 jpbaugh at umich.edu Sat Jan 7 22:15:09 2017 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 8 Jan 2017 01:15:09 -0500 Subject: [ndnSIM] Per-interface (face?) statistics? Message-ID: ndnSIM friends, I'm mostly just mulling over some ideas about this for the time being, but I'd like to get some information from anyone reading this, with some insight. Consider several Consumers connected to a router, which is then connected to a Producer (or multiple producers - just consider one for now) 1. Is it correct for me to assume that each connection between a Consumer at the router is a Face (interface?) or is there any sharing? E.g., do consumers 1, 2, 3, 4, etc. ever connect to the Producer with the same face? 2. I'm trying to see what would happen if an attacker hijacked a node or nodes at focused their attack on an individual interface (face), so is this equivalent to compromising one or more consumers? --> In other words is there a one-to-one correspondence between the Face and the Consumer always? If not, when is this not the case and can it be controlled? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From lixia at CS.UCLA.EDU Sat Jan 7 22:26:15 2017 From: lixia at CS.UCLA.EDU (Lixia Zhang) Date: Sat, 7 Jan 2017 22:26:15 -0800 Subject: [ndnSIM] Per-interface (face?) statistics? In-Reply-To: References: Message-ID: <732916F0-D2ED-4F16-B6E4-62FB8CD1F24B@cs.ucla.edu> > On Jan 7, 2017, at 10:15 PM, John Baugh wrote: > > ndnSIM friends, > > I'm mostly just mulling over some ideas about this for the time being, but I'd like to get some information from anyone reading this, with some insight. > > Consider several Consumers connected to a router, I assume you meant consumers *physically* connected to a router (i.e. via a layer-2 connectivity) > which is then connected to a Producer (or multiple producers - just consider one for now) > > 1. Is it correct for me to assume that each connection between a Consumer at the router is a Face (interface?) or is there any sharing? E.g., do consumers 1, 2, 3, 4, etc. ever connect to the Producer with the same face? it is up to what is that layer-2 connection is, whether each consumer is connected by a separate wire, or all consumers share the same media (e.g. Ethernet) > 2. I'm trying to see what would happen if an attacker hijacked a node or nodes at focused their attack on an individual interface (face), so is this equivalent to compromising one or more consumers? > --> In other words is there a one-to-one correspondence between the Face and the Consumer always? If not, when is this not the case and can it be controlled? > > Thanks, > > John > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From jpbaugh at umich.edu Sat Jan 7 22:40:06 2017 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 8 Jan 2017 01:40:06 -0500 Subject: [ndnSIM] Per-interface (face?) statistics? In-Reply-To: <732916F0-D2ED-4F16-B6E4-62FB8CD1F24B@cs.ucla.edu> References: <732916F0-D2ED-4F16-B6E4-62FB8CD1F24B@cs.ucla.edu> Message-ID: Prof. Zhang, It is an honor to hear from you. Thank you for your reply. 1. What I mean by "connected" in the context of my simulation that I'm preparing is that, for a simple case, I have used the *AppHelper *to create *ConsumerCbr *nodes (although others, such as ZipfMandelbrot could be used in the future, I assume) --I install links using a *PointToPointHelper *in a configuration like so: [consumer] <---> [router] <---> [producer] [consumer] <--------^ Is the default behavior such that an individual Face is created between each consumer and the router? 2. I ask the above, because I don't explicitly designate a face when creating a link. Thanks, John On Sun, Jan 8, 2017 at 1:26 AM, Lixia Zhang wrote: > > > On Jan 7, 2017, at 10:15 PM, John Baugh wrote: > > > > ndnSIM friends, > > > > I'm mostly just mulling over some ideas about this for the time being, > but I'd like to get some information from anyone reading this, with some > insight. > > > > Consider several Consumers connected to a router, > > I assume you meant consumers *physically* connected to a router (i.e. via > a layer-2 connectivity) > > > which is then connected to a Producer (or multiple producers - just > consider one for now) > > > > 1. Is it correct for me to assume that each connection between a > Consumer at the router is a Face (interface?) or is there any sharing? > E.g., do consumers 1, 2, 3, 4, etc. ever connect to the Producer with the > same face? > > it is up to what is that layer-2 connection is, whether each consumer is > connected by a separate wire, or all consumers share the same media (e.g. > Ethernet) > > > > 2. I'm trying to see what would happen if an attacker hijacked a node > or nodes at focused their attack on an individual interface (face), so is > this equivalent to compromising one or more consumers? > > --> In other words is there a one-to-one correspondence between the > Face and the Consumer always? If not, when is this not the case and can it > be controlled? > > > > Thanks, > > > > John > > _______________________________________________ > > 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 mastorakis at CS.UCLA.EDU Sat Jan 7 22:46:19 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sat, 7 Jan 2017 22:46:19 -0800 Subject: [ndnSIM] Per-interface (face?) statistics? In-Reply-To: References: <732916F0-D2ED-4F16-B6E4-62FB8CD1F24B@cs.ucla.edu> Message-ID: <3F2EFC31-965C-4E91-8DE4-1B2F6F52C0E5@cs.ucla.edu> Hi John, > On Jan 7, 2017, at 10:40 PM, John Baugh wrote: > > Prof. Zhang, > > It is an honor to hear from you. Thank you for your reply. > > 1. What I mean by "connected" in the context of my simulation that I'm preparing is that, for a simple case, I have used the AppHelper to create ConsumerCbr nodes (although others, such as ZipfMandelbrot could be used in the future, I assume) --I install links using a PointToPointHelper in a configuration like so: > > [consumer] <---> [router] <---> [producer] > [consumer] <--------^ > > Is the default behavior such that an individual Face is created between each consumer and the router? > Yes, there is an individual face between each consumer and the router. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sat Jan 7 22:48:00 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sat, 7 Jan 2017 22:48:00 -0800 Subject: [ndnSIM] Per-interface (face?) statistics? In-Reply-To: References: <732916F0-D2ED-4F16-B6E4-62FB8CD1F24B@cs.ucla.edu> Message-ID: <2ABD51BF-50F5-4A4C-90F7-C13540C010DF@cs.ucla.edu> > On Jan 7, 2017, at 10:40 PM, John Baugh wrote: > > Prof. Zhang, > > It is an honor to hear from you. Thank you for your reply. > > 1. What I mean by "connected" in the context of my simulation that I'm preparing is that, for a simple case, I have used the AppHelper to create ConsumerCbr nodes (although others, such as ZipfMandelbrot could be used in the future, I assume) --I install links using a PointToPointHelper in a configuration like so: > > [consumer] <---> [router] <---> [producer] > [consumer] <--------^ > > Is the default behavior such that an individual Face is created between each consumer and the router? Hi John, If you're using PointToPointHelper (or the AnnotatedTopologyReader) then you have a one-to-one correspondence between the link and the created Face. However, you can use other links (and not yet implemented face implementations for ndnSIM) where one link may correspond to more than one face. This, for example, could be with WiFi links. > 2. I ask the above, because I don't explicitly designate a face when creating a link. > > Thanks, > > John > > On Sun, Jan 8, 2017 at 1:26 AM, Lixia Zhang > wrote: > > > On Jan 7, 2017, at 10:15 PM, John Baugh > wrote: > > > > ndnSIM friends, > > > > I'm mostly just mulling over some ideas about this for the time being, but I'd like to get some information from anyone reading this, with some insight. > > > > Consider several Consumers connected to a router, > > I assume you meant consumers *physically* connected to a router (i.e. via a layer-2 connectivity) > > > which is then connected to a Producer (or multiple producers - just consider one for now) > > > > 1. Is it correct for me to assume that each connection between a Consumer at the router is a Face (interface?) or is there any sharing? E.g., do consumers 1, 2, 3, 4, etc. ever connect to the Producer with the same face? > > it is up to what is that layer-2 connection is, whether each consumer is connected by a separate wire, or all consumers share the same media (e.g. Ethernet) > > > > 2. I'm trying to see what would happen if an attacker hijacked a node or nodes at focused their attack on an individual interface (face), so is this equivalent to compromising one or more consumers? > > --> In other words is there a one-to-one correspondence between the Face and the Consumer always? If not, when is this not the case and can it be controlled? > > > > Thanks, > > > > John > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > _______________________________________________ > 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 mhasabet at gmail.com Sat Jan 7 23:09:21 2017 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sun, 8 Jan 2017 10:39:21 +0330 Subject: [ndnSIM] Per-interface (face?) statistics? In-Reply-To: <2ABD51BF-50F5-4A4C-90F7-C13540C010DF@cs.ucla.edu> References: <732916F0-D2ED-4F16-B6E4-62FB8CD1F24B@cs.ucla.edu> <2ABD51BF-50F5-4A4C-90F7-C13540C010DF@cs.ucla.edu> Message-ID: John, Following Alex, I suppose it could be said that there are different cases. Face > Implements the NDN face abstraction on top of different lower level > transport mechanisms. You may have a multicast face which corresponds to multiple NICs with multicast capability. Or you may even have a unicast face on top of a broadcast channel(*lower level transport mechanism*) like wifi. -- Sabet ????? ????? ?? ???? On Sun, Jan 8, 2017 at 10:18 AM, Alex Afanasyev wrote: > > On Jan 7, 2017, at 10:40 PM, John Baugh wrote: > > Prof. Zhang, > > It is an honor to hear from you. Thank you for your reply. > > 1. What I mean by "connected" in the context of my simulation that I'm > preparing is that, for a simple case, I have used the *AppHelper *to > create *ConsumerCbr *nodes (although others, such as ZipfMandelbrot could > be used in the future, I assume) --I install links using a *PointToPointHelper > *in a configuration like so: > > [consumer] <---> [router] <---> [producer] > [consumer] <--------^ > > Is the default behavior such that an individual Face is created between > each consumer and the router? > > > Hi John, > > If you're using *PointToPointHelper* (or the AnnotatedTopologyReader) > then you have a one-to-one correspondence between the link and the created > Face. However, you can use other links (and not yet implemented face > implementations for ndnSIM) where one link may correspond to more than one > face. This, for example, could be with WiFi links. > > 2. I ask the above, because I don't explicitly designate a face when > creating a link. > > Thanks, > > John > > On Sun, Jan 8, 2017 at 1:26 AM, Lixia Zhang wrote: > >> >> > On Jan 7, 2017, at 10:15 PM, John Baugh wrote: >> > >> > ndnSIM friends, >> > >> > I'm mostly just mulling over some ideas about this for the time being, >> but I'd like to get some information from anyone reading this, with some >> insight. >> > >> > Consider several Consumers connected to a router, >> >> I assume you meant consumers *physically* connected to a router (i.e. via >> a layer-2 connectivity) >> >> > which is then connected to a Producer (or multiple producers - just >> consider one for now) >> > >> > 1. Is it correct for me to assume that each connection between a >> Consumer at the router is a Face (interface?) or is there any sharing? >> E.g., do consumers 1, 2, 3, 4, etc. ever connect to the Producer with the >> same face? >> >> it is up to what is that layer-2 connection is, whether each consumer is >> connected by a separate wire, or all consumers share the same media (e.g. >> Ethernet) >> >> >> > 2. I'm trying to see what would happen if an attacker hijacked a node >> or nodes at focused their attack on an individual interface (face), so is >> this equivalent to compromising one or more consumers? >> > --> In other words is there a one-to-one correspondence between >> the Face and the Consumer always? If not, when is this not the case and >> can it be controlled? >> > >> > Thanks, >> > >> > John >> > _______________________________________________ >> > ndnSIM mailing list >> > ndnSIM at lists.cs.ucla.edu >> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > > _______________________________________________ > 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 dyao at mail.ustc.edu.cn Sun Jan 8 07:17:09 2017 From: dyao at mail.ustc.edu.cn (dyao at mail.ustc.edu.cn) Date: Sun, 8 Jan 2017 23:17:09 +0800 (GMT+08:00) Subject: [ndnSIM] how can i use NDNLP tag to set a double type tage Message-ID: I want to tag each Interest/Data package with a number which is double type,how can i use NDNLP tag to set a double type tage -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sun Jan 8 08:30:16 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sun, 8 Jan 2017 08:30:16 -0800 Subject: [ndnSIM] how can i use NDNLP tag to set a double type tage In-Reply-To: References: Message-ID: <35420C07-DA13-4EF9-BEDB-EEC4985D4CB2@cs.ucla.edu> Hi, in my previous email, I mentioned an email exchange with links to commits on github, where I did something quite similar. Please read through the code of the commits. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 8, 2017, at 7:17 AM, dyao at mail.ustc.edu.cn wrote: > > I want to tag each Interest/Data package with a number which is double type,how can i use NDNLP tag to set a double type tage -------------- next part -------------- An HTML attachment was scrubbed... URL: From shahram2024 at gmail.com Sun Jan 8 13:39:34 2017 From: shahram2024 at gmail.com (Shahram Yousefi) Date: Mon, 9 Jan 2017 01:09:34 +0330 Subject: [ndnSIM] Change forwarding strategy during simulation time. Message-ID: How can I change forwarding strategy at specific time in NDN simulator? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sun Jan 8 15:46:23 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sun, 8 Jan 2017 15:46:23 -0800 Subject: [ndnSIM] Change forwarding strategy during simulation time. In-Reply-To: References: Message-ID: <225C91C2-7894-4EA7-8AB5-6B7700F9A674@cs.ucla.edu> Hi, you could take a look at the ScheduleWithContext method of NS3: https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a5ba9b2de598375791433f1bb9ba9ca83 With this method, you can determine the time that you want NS3 to execute a specific event for you and you should be able to specify a method of the strategy choice helper as that event. Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 8, 2017, at 1:39 PM, Shahram Yousefi wrote: > > How can I change forwarding strategy at specific time in NDN simulator? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dyao at mail.ustc.edu.cn Sun Jan 8 16:42:59 2017 From: dyao at mail.ustc.edu.cn (dyao) Date: Mon, 9 Jan 2017 08:42:59 +0800 Subject: [ndnSIM] how can i use NDNLP tag to set a double type tage In-Reply-To: <35420C07-DA13-4EF9-BEDB-EEC4985D4CB2@cs.ucla.edu> References: Message-ID: An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sun Jan 8 17:34:23 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sun, 8 Jan 2017 17:34:23 -0800 Subject: [ndnSIM] how can i use NDNLP tag to set a double type tage In-Reply-To: References: Message-ID: <61C471FC-F2BA-44FD-A966-4199CB92E1C4@cs.ucla.edu> You tried to declare your tag like I did here, but instead of uint64_t to use a double type and it did not work? https://github.com/named-data-ndnSIM/ndn-cxx/commit/e53204419c51356dab70e0e5450ff5dcf587827a Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 8, 2017, at 4:42 PM, dyao wrote: > > thanks,i already have.But the HopCount is a integer. i want a "double"or"float" number.When i use ./waf in terminal,some errors because of "double" > On 01/09/2017 00:30, Spyridon (Spyros) Mastorakis wrote: > Hi, > > in my previous email, I mentioned an email exchange with links to commits on github, where I did something quite similar. Please read through the code of the commits. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > >> On Jan 8, 2017, at 7:17 AM, dyao at mail.ustc.edu.cn wrote: >> >> I want to tag each Interest/Data package with a number which is double type,how can i use NDNLP tag to set a double type tage > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed Jan 11 08:37:45 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 11 Jan 2017 08:37:45 -0800 Subject: [ndnSIM] [CFP] 4th INFOCOM 2017 NOM Workshop Message-ID: ** Deadline extended until January 17, 2017 ** ========================================================= CALL FOR PAPERS The fourth INFOCOM 2017 Workshop on Name-Oriented Mobility: Architecture, Algorithms and Applications (INFOCOM 2017 NOM Workshop) Atlanta, GA, U.S.A. on May 1, 2017 http://infocom2017.ieee-infocom.org/workshop/nom ========================================================= The organizing committee is delighted to invite you to the fourth INFOCOM 2017 Workshop on Name-Oriented Mobility: Architecture, Algorithms and Applications (INFOCOM 2017 NOM Workshop) in Atlanta, GA, U.S.A. on May 1, 2017. Mobility support facing unprecedented challenges due to ever increasing number of mobile devices at global scale, ever increasing ranges of diversity of these devices, and ever increasing demand of both data volumes and security requirements by these devices; these challenges demand a new exploration of supporting architecture. Information-Centric Networking (ICN) is a promising direction to transition towards the data-oriented communication with one of the research focus targeting specifically mobile and wireless environments. In recent years, ICN is attracting a widespread interest from academia and industry, with involvements from industry forums, and consortiums. Instead of host-to-host communication model, as in the current Internet architecture, named-oriented networking shifts communication towards a data-centric model that focuses on retrieving named and secured data, instead of host-to-host connections. ICN secures named data directly, giving it an advantage over current Internet solutions that only secure the communication channels between hosts, a mismatch for wireless and mobile networks. Furthermore, ICN?s data-centricity (i.e., independence of specific attachment points in the underlying networks) makes it a promising direction for 5G networks which aim to utilizes multiple radios nodes with connectivity across multiple radio technologies Name-oriented networking offers a new mobility network paradigm to meet mobile device characters and mobile data routing, processing, storage, and retrieval. Thanks to its native design based on data naming (request for data forwarded based on data?s names and data is returned using the reverse path of the request), name-oriented networking enables user and devices mobility across multiple radio technologies and is a good candidate for mobile/wireless networks, including 5G networks. In addition, ICN technology is promising in offering a scalable networking layer for IoT applications, including massive sensor devices that suffer from the lack of mobility management in the IP architecture and the lack an efficient storage, security, and sharing means. ========================================================= IMPORTANT DATES Submission Deadline: January 17, 2017 11:59pm EDT (extended) Acceptance Notification: March 1, 2017 Workshop date: May 1st, 2017 ========================================================= Sincerely, Jun Bi (Tsinghua University, China), Bertrand Mathieu (Orange, France), and Alex Afanasyev (UCLA, USA) INFOCOM 2017 NOM Workshop Workshop Co-Chairs From 16111015 at bjtu.edu.cn Thu Jan 12 01:10:31 2017 From: 16111015 at bjtu.edu.cn (=?GBK?B?wfW41Q==?=) Date: Thu, 12 Jan 2017 17:10:31 +0800 (GMT+08:00) Subject: [ndnSIM] timeout value for PIT entry Message-ID: <3cc3fcbd.234cf.15991f15ef1.Coremail.16111015@bjtu.edu.cn> ndnSIM friends, I want to know how to set timeout value for PIT entry in ndnSIM2.0. Thanks, Gang -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Thu Jan 12 01:42:13 2017 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Thu, 12 Jan 2017 13:12:13 +0330 Subject: [ndnSIM] timeout value for PIT entry In-Reply-To: <3cc3fcbd.234cf.15991f15ef1.Coremail.16111015@bjtu.edu.cn> References: <3cc3fcbd.234cf.15991f15ef1.Coremail.16111015@bjtu.edu.cn> Message-ID: Hi Gang, You may use ndn::Interest::setInterestLifeime -- Sabet ????? ????? ?? ???? On Thu, Jan 12, 2017 at 12:40 PM, ?? <16111015 at bjtu.edu.cn> wrote: > ndnSIM friends, > > > I want to know how to set timeout value for PIT entry in ndnSIM2.0. > > Thanks, > > Gang > > _______________________________________________ > 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 shijunxiao at email.arizona.edu Thu Jan 12 11:11:53 2017 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Thu, 12 Jan 2017 12:11:53 -0700 Subject: [ndnSIM] how can i use NDNLP tag to set a double type tage In-Reply-To: <61C471FC-F2BA-44FD-A966-4199CB92E1C4@cs.ucla.edu> References: <61C471FC-F2BA-44FD-A966-4199CB92E1C4@cs.ucla.edu> Message-ID: Hi dyao & Spyros Declaring a *tag* with double type should work. However, declaring an *LpHeader* with double type needs additional work. LpPacket only knows how to decode and encode uint64_t, in addition to WireDecodable+WireEncodable and Buffer iterator range. You'll need to specialize DecodeHelper and EncodeHelper for double type, which involves defining the wire format for double type. Yours, Junxiao On Sun, Jan 8, 2017 at 6:34 PM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > You tried to declare your tag like I did here, but instead of uint64_t to > use a double type and it did not work? > > https://github.com/named-data-ndnSIM/ndn-cxx/commit/ > e53204419c51356dab70e0e5450ff5dcf587827a > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From junaidakhan88 at gmail.com Fri Jan 13 13:51:58 2017 From: junaidakhan88 at gmail.com (Junaid Ahmed Khan) Date: Fri, 13 Jan 2017 22:51:58 +0100 Subject: [ndnSIM] limiting interest forwarding scope. Message-ID: <988F63BF-2AE4-41E7-8C59-47B5FD8C21B3@gmail.com> Hi Alex, I am trying to limit interest scope to a set of say 3 hops, I found the GetScope and SetScope command, though it is mentioned that it limits the interest up to 3 host. Kindly let me know how can I limit my interest forwarding scope. An example would be greatly appreciated. Thanks in advance, Junaid From alubadyraaid at gmail.com Sat Jan 14 10:06:01 2017 From: alubadyraaid at gmail.com (raaid alubady) Date: Sun, 15 Jan 2017 02:06:01 +0800 Subject: [ndnSIM] app-delays-trace.txt Message-ID: Hi all and good day. I have confused, averagingPeriod parameter can be found in all metrics in ndnSIM (such as CsTracer, L3AggregateTracer and L3RateTracer), which is represented "How often data will be written into the trace file (default, every half second)". However, the AppDelayTracer metric does not include this parameter, even this parameter is highlighted on the website http://ndnsim.net/1.0/doxygen/classns3_1_1ndn_1_1_app_delay_tracer.html My question here, how can enable it, I mean I want to obtain data about for delays between issuing Interest and receiving corresponding Data packet every half second in app-delays-trace.txt. Thanks for help! Regards Raaid ********************************************************** *Raaid Alubady*Doctoral Researcher InterNetWorks Research Lab, School of Computing, Universiti Utara Malaysia 06010 UUM Sintok, Kedah, M A L A Y S I A HP: +60129636379 , +601128408117 Emails: raaid.n.alubady at uobabylon.edu.iq *raaid.alubady at internetworks.my* *alubady.r.n at ieee.my* -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Jan 14 19:42:02 2017 From: jpbaugh at umich.edu (John Baugh) Date: Sat, 14 Jan 2017 22:42:02 -0500 Subject: [ndnSIM] Communication between Strategy subclass and Policy subclasses Message-ID: Greetings ndnSIM friends, I need a way to communicate between the Strategy and Policy subclasses. I am creating a custom Strategy, and a custom Policy subclass. I need information about the interests coming in, which will affect decisions that the Policy makes. So, it stands to reason that I will need some sort of communication between the two. To do this, my idea is to obtain a reference/pointer to each, and then to have a custom method in one (or both) of the classes to setStrategy or setPolicy so that I can maintain an internal reference (using aggregation.) So, for the Policy, I can call getPolicy on the Content Store. But what about the Strategy object? Is there a way to obtain this? Either way it seems I'd need a reference to both. Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Jan 14 20:55:23 2017 From: jpbaugh at umich.edu (John Baugh) Date: Sat, 14 Jan 2017 23:55:23 -0500 Subject: [ndnSIM] Communication between Strategy subclass and Policy subclasses In-Reply-To: References: Message-ID: Also: I'm aware of the getStrategy() member function in the StrategyChoiceHelper. It returns a Name object, not a Strategy object. Obviously, the strategy would be for a particular node. I need it for my router node. If you have an alternative to this, I'd be very happy to entertain the idea. If there was a different "afterReceiveInterest" somewhere else, I would be very pleased to use it, but I apparently need the one in the Strategy. Thanks, John On Sat, Jan 14, 2017 at 10:42 PM, John Baugh wrote: > Greetings ndnSIM friends, > > I need a way to communicate between the Strategy and Policy subclasses. I > am creating a custom Strategy, and a custom Policy subclass. I need > information about the interests coming in, which will affect decisions that > the Policy makes. So, it stands to reason that I will need some sort of > communication between the two. > > To do this, my idea is to obtain a reference/pointer to each, and then to > have a custom method in one (or both) of the classes to setStrategy or > setPolicy so that I can maintain an internal reference (using aggregation.) > > > So, for the Policy, I can call getPolicy on the Content Store. > > But what about the Strategy object? Is there a way to obtain this? > > Either way it seems I'd need a reference to both. > > Thanks, > > John > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rihab.isims at gmail.com Thu Jan 19 02:19:10 2017 From: rihab.isims at gmail.com (rihab isims) Date: Thu, 19 Jan 2017 11:19:10 +0100 Subject: [ndnSIM] add functionality to ndn router Message-ID: hello, i need to add some functionalities, already existing in a customized consumer application, to be executed in the ndn router. For example the ndn router send interests on content and anticipate interests to be downloaded and cached before the client requests it. Any suggestion will be so appreciated. Thanks RS -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Jan 19 09:48:00 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 19 Jan 2017 09:48:00 -0800 Subject: [ndnSIM] add functionality to ndn router In-Reply-To: References: Message-ID: <3AA58666-CD38-42F4-BE4B-C2E252E96A4A@cs.ucla.edu> Hi, the easiest way would be to attach your custom consumer to each forwarder node (or to the forwarder nodes that you need) and let it send Interests towards the destination. In this way, the data packets would be cached by the local NFD. Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 19, 2017, at 2:19 AM, rihab isims wrote: > > hello, > > i need to add some functionalities, already existing in a customized consumer application, to be executed in the ndn router. For example the ndn router send interests on content and anticipate interests to be downloaded and cached before the client requests it. > Any suggestion will be so appreciated. > > Thanks > > RS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From junior.dongo at lacl.fr Fri Jan 20 03:21:02 2017 From: junior.dongo at lacl.fr (Junior DONGO) Date: Fri, 20 Jan 2017 12:21:02 +0100 Subject: [ndnSIM] How to fail a node Message-ID: Dear ndnSim users, Is there a way to simulate a node failure during simulation? Something like "kill the node" or deactivate the node. Also using "ndn::LinkControlHelper::FailLink", I observe something strange. In my scenario, I have something like this: node1:consumer node2:producer node4:producer node3: intermediate node node1-----------node2 | | | | | | node3---------node4 I use "ndn::LinkControlHelper::FailLink" to fail the link between node1 and node2, the interests from node1 timeout, which means that node1 tries to send the interests to node2 and not to node4 through node3. Any idea about this behavior? Is it related to the strategy(best route is used)? Thanks, Junior From mastorakis at CS.UCLA.EDU Fri Jan 20 09:03:50 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 20 Jan 2017 09:03:50 -0800 Subject: [ndnSIM] How to fail a node In-Reply-To: References: Message-ID: <1F1F3869-44DA-4A8F-8E6D-C2A79F40B5ED@cs.ucla.edu> Hi, my guess is that this is related to the forwarding strategy. Can you try to use the load balancing strategy? I would say that you can simulate a node failure by stoping the application running on the node for some time and then start it again (or use the LinkControlHelper, like you did, if it is more convenient to control the link between 2 nodes). Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 20, 2017, at 3:21 AM, Junior DONGO wrote: > > Dear ndnSim users, > > Is there a way to simulate a node failure during simulation? Something like "kill the node" or deactivate the node. > > Also using "ndn::LinkControlHelper::FailLink", I observe something strange. > > In my scenario, I have something like this: > > node1:consumer > > node2:producer > > node4:producer > > node3: intermediate node > > > node1-----------node2 > > | | > > | | > > | | > > node3---------node4 > > I use "ndn::LinkControlHelper::FailLink" to fail the link between node1 and node2, the interests from node1 timeout, which means that node1 tries to send the interests to node2 and not to node4 through node3. > > Any idea about this behavior? Is it related to the strategy(best route is used)? > > Thanks, > > Junior -------------- next part -------------- An HTML attachment was scrubbed... URL: From junior.dongo at lacl.fr Tue Jan 24 01:28:47 2017 From: junior.dongo at lacl.fr (Junior DONGO) Date: Tue, 24 Jan 2017 10:28:47 +0100 Subject: [ndnSIM] How to fail a node In-Reply-To: <1F1F3869-44DA-4A8F-8E6D-C2A79F40B5ED@cs.ucla.edu> References: <1F1F3869-44DA-4A8F-8E6D-C2A79F40B5ED@cs.ucla.edu> Message-ID: Hi Spyridon, Thank you for your help. I am trying what you suggest but when enabling the load balancing strategy using ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/random-load-balancer"), the result is the same. Also, how can I stop an application at runtime to simulate the node failure? I am trying something like this: "Simulator::Schedule(Seconds(3),ns3::ndn::ConsumerCbr::StopApplication,nodes.Get(2));", it doesn't work. Thank you for your help. Junior On 01/20/2017 06:03 PM, Spyridon (Spyros) Mastorakis wrote: > Hi, > > my guess is that this is related to the forwarding strategy. Can you > try to use the load balancing strategy? > > I would say that you can simulate a node failure by stoping the > application running on the node for some time and then start it again > (or use the LinkControlHelper, like you did, if it is more convenient > to control the link between 2 nodes). > > Thanks, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > >> On Jan 20, 2017, at 3:21 AM, Junior DONGO wrote: >> >> Dear ndnSim users, >> >> Is there a way to simulate a node failure during simulation? >> Something like "kill the node" or deactivate the node. >> >> Also using "ndn::LinkControlHelper::FailLink", I observe something >> strange. >> >> In my scenario, I have something like this: >> >> node1:consumer >> >> node2:producer >> >> node4:producer >> >> node3: intermediate node >> >> >> node1-----------node2 >> >> | | >> >> | | >> >> | | >> >> node3---------node4 >> >> I use "ndn::LinkControlHelper::FailLink" to fail the link between >> node1 and node2, the interests from node1 timeout, which means that >> node1 tries to send the interests to node2 and not to node4 through >> node3. >> >> Any idea about this behavior? Is it related to the strategy(best >> route is used)? >> >> Thanks, >> >> Junior > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15mcen21 at nirmauni.ac.in Tue Jan 24 01:39:38 2017 From: 15mcen21 at nirmauni.ac.in (ZALAKBEN PRAJAPATI) Date: Tue, 24 Jan 2017 15:09:38 +0530 Subject: [ndnSIM] help Message-ID: when i run ./waf configure -d optimized it showing error like Traceback (most recent call last): File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point run_commands() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 165, in run_commands parse_options() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 138, in parse_options Context.create_context('options').execute() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", line 146, in execute super(OptionsContext,self).execute() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 92, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/mtechcse/ndnSIM/ns-3/wscript", line 213, in options opt.recurse('src') File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/mtechcse/ndnSIM/ns-3/src/wscript", line 48, in options opt.recurse(module, mandatory=False) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/mtechcse/ndnSIM/ns-3/src/ndnSIM/wscript", line 19, in options tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 86, in load module=load_tool(t,path) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 342, in load_tool __import__(tool) ImportError: No module named doxygen mtechcse at pg011lab:~/ndnSIM/ns-3$ NS_LOG=DumbRequester:ndn.cs.Freshness.Lru ./waf --run=ndn-simple-with-content-freshness Traceback (most recent call last): File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point run_commands() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 165, in run_commands parse_options() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 138, in parse_options Context.create_context('options').execute() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", line 146, in execute super(OptionsContext,self).execute() File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 92, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/mtechcse/ndnSIM/ns-3/wscript", line 213, in options opt.recurse('src') File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/mtechcse/ndnSIM/ns-3/src/wscript", line 48, in options opt.recurse(module, mandatory=False) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/mtechcse/ndnSIM/ns-3/src/ndnSIM/wscript", line 19, in options tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 86, in load module=load_tool(t,path) File "/home/mtechcse/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 342, in load_tool __import__(tool) ImportError: No module named doxygen """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" how to resolve this error.. Thanks & Regards Prajapati Zalak Institute of Technology, Nirma University, Ahmedabad -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue Jan 24 09:55:22 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 24 Jan 2017 09:55:22 -0800 Subject: [ndnSIM] How to fail a node In-Reply-To: References: <1F1F3869-44DA-4A8F-8E6D-C2A79F40B5ED@cs.ucla.edu> Message-ID: Hi, in your simulation scenario, use something like the following (this refers to the Start method, there is also a Stop method that you can use): https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-tree-cs-tracers.cpp#L95 Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 24, 2017, at 1:28 AM, Junior DONGO wrote: > > Hi Spyridon, > > Thank you for your help. > > I am trying what you suggest but when enabling the load balancing strategy using ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/random-load-balancer"), the result is the same. > > Also, how can I stop an application at runtime to simulate the node failure? I am trying something like this: "Simulator::Schedule(Seconds(3),ns3::ndn::ConsumerCbr::StopApplication,nodes.Get(2));", it doesn't work. > > Thank you for your help. > > Junior > On 01/20/2017 06:03 PM, Spyridon (Spyros) Mastorakis wrote: >> Hi, >> >> my guess is that this is related to the forwarding strategy. Can you try to use the load balancing strategy? >> >> I would say that you can simulate a node failure by stoping the application running on the node for some time and then start it again (or use the LinkControlHelper, like you did, if it is more convenient to control the link between 2 nodes). >> >> Thanks, >> >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> Computer Science Department >> UCLA >> >>> On Jan 20, 2017, at 3:21 AM, Junior DONGO < junior.dongo at lacl.fr > wrote: >>> >>> Dear ndnSim users, >>> >>> Is there a way to simulate a node failure during simulation? Something like "kill the node" or deactivate the node. >>> >>> Also using "ndn::LinkControlHelper::FailLink", I observe something strange. >>> >>> In my scenario, I have something like this: >>> >>> node1:consumer >>> >>> node2:producer >>> >>> node4:producer >>> >>> node3: intermediate node >>> >>> >>> node1-----------node2 >>> >>> | | >>> >>> | | >>> >>> | | >>> >>> node3---------node4 >>> >>> I use "ndn::LinkControlHelper::FailLink" to fail the link between node1 and node2, the interests from node1 timeout, which means that node1 tries to send the interests to node2 and not to node4 through node3. >>> >>> Any idea about this behavior? Is it related to the strategy(best route is used)? >>> >>> Thanks, >>> >>> Junior >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Wed Jan 25 01:41:26 2017 From: dhiabimen at gmail.com (Dhiab Imen) Date: Wed, 25 Jan 2017 10:41:26 +0100 Subject: [ndnSIM] Implement a new cache policy Message-ID: Hi all, I need to implement a new cache policy.I am currently using ndnSIM 1.0, referring to the source code of LRU policy (lru-policy.h), it seems to me that the "policy_container" in the code serves as a cache storage is a list. But in my policy the policy container must be a tree where the left child are the most recently used items and the right child is the least recently used item. I'm new in using boost intrusive algorithms, I don't know if it is possible to use rbtree or splaytree and how can I initialize policy_hook_type, container_hook,policy_container and parent_trie. Thank you for your response in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilyaslahmer93 at gmail.com Thu Jan 26 10:46:47 2017 From: ilyaslahmer93 at gmail.com (lahmer ilyas) Date: Thu, 26 Jan 2017 19:46:47 +0100 Subject: [ndnSIM] mobility in ndnsim2.3 Message-ID: Can I still use mobility in latest version of ndnSim(2.3) ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Jan 26 11:07:27 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 26 Jan 2017 11:07:27 -0800 Subject: [ndnSIM] mobility in ndnsim2.3 In-Reply-To: References: Message-ID: <999E783B-AF85-41CD-AE9A-C9708E6C1466@cs.ucla.edu> Hi, yes, nothing has changed regarding mobility over the last few releases. Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 26, 2017, at 10:46 AM, lahmer ilyas wrote: > > Can I still use mobility in latest version of ndnSim(2.3) ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Thu Jan 26 11:27:45 2017 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Thu, 26 Jan 2017 22:57:45 +0330 Subject: [ndnSIM] mobility in ndnsim2.3 In-Reply-To: <999E783B-AF85-41CD-AE9A-C9708E6C1466@cs.ucla.edu> References: <999E783B-AF85-41CD-AE9A-C9708E6C1466@cs.ucla.edu> Message-ID: Hi lahmer, Be advised that you can have mobility and mobility models, but for handover events, since they are written for lte in ns3 and lte heavily relies on ip, therefore you cannot use those. -- Sabet ????? ????? ?? ???? On Thu, Jan 26, 2017 at 10:37 PM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi, > > yes, nothing has changed regarding mobility over the last few releases. > > Thanks, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > On Jan 26, 2017, at 10:46 AM, lahmer ilyas > wrote: > > Can I still use mobility in latest version of ndnSim(2.3) ?? > > > > _______________________________________________ > 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 anikety97 at gmail.com Fri Jan 27 07:34:35 2017 From: anikety97 at gmail.com (Aniket Yeole) Date: Fri, 27 Jan 2017 16:34:35 +0100 Subject: [ndnSIM] Tracing packets in the code Message-ID: Hello, I am running a code of ndn-tree-cs-tracers.cpp. I am able to see the last packets for a node in the "visualizer" (as in the screenshot below). However, i wish to know if this can be implemented directly in the program. i want to see the "data" and "interest packets". Please provide an example how it could be done. Thanks.. [image: Inline image 1] -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Fri Jan 27 12:52:49 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 27 Jan 2017 12:52:49 -0800 Subject: [ndnSIM] Tracing packets in the code In-Reply-To: References: Message-ID: Hi, I cannot see the image you attached, plus I am not sure I understand the issue here. With the visualizer, you can see the packets exchanged among the nodes. You could also use the packet tracers to output the packets received at each node to output files: http://ndnsim.net/2.3/metric.html Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 27, 2017, at 7:34 AM, Aniket Yeole wrote: > > Hello, > I am running a code of ndn-tree-cs-tracers.cpp. I am able to see the last packets for a node in the "visualizer" (as in the screenshot below). However, i wish to know if this can be implemented directly in the program. i want to see the "data" and "interest packets". Please provide an example how it could be done. > Thanks.. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Fri Jan 27 12:59:41 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 27 Jan 2017 12:59:41 -0800 Subject: [ndnSIM] Feedback Request on "Best Practices on Using ndnSIM" Message-ID: <61F71312-DD62-43DF-AA2C-E4E9E755E7EB@cs.ucla.edu> Hi guys, a couple weeks ago, we extended the current documentation available on the ndnSIM website with a page including a number of best practices on using ndnSIM: http://ndnsim.net/2.3/best-practices.html I feel that this piece of documentation will be very useful for new users to ramp up with ndnSIM and understand how to use it properly. I would like to ask you to take a few minutes and review this page and let us know your comments/suggestions on how to extend and improve it. Your time and feedback will be highly appreciated! On behalf of the ndnSIM team, Spyros Mastorakis Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA -------------- next part -------------- An HTML attachment was scrubbed... URL: From anikety97 at gmail.com Fri Jan 27 13:35:25 2017 From: anikety97 at gmail.com (Aniket Yeole) Date: Fri, 27 Jan 2017 22:35:25 +0100 Subject: [ndnSIM] Tracing packets in the code In-Reply-To: References: Message-ID: Hi, Sorry for the image problem. I am reattaching the screenshot. I wanted to filter the packets which are going through the nodes and save as .txt file. I have gone through the link which you have mentioned in your mail. In addition to this I wanted to know is it possible to aggregate the size of data passing through a particular node. Regards, Aniket On 27 January 2017 at 21:52, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi, > > I cannot see the image you attached, plus I am not sure I understand the > issue here. > > With the visualizer, you can see the packets exchanged among the nodes. > You could also use the packet tracers to output the packets received at > each node to output files: > > http://ndnsim.net/2.3/metric.html > > Hope that this helps, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot.jpg Type: image/jpeg Size: 46184 bytes Desc: not available URL: From md.taushif1614 at gmail.com Sun Jan 29 07:55:21 2017 From: md.taushif1614 at gmail.com (MD TAUSHIF) Date: Sun, 29 Jan 2017 16:55:21 +0100 Subject: [ndnSIM] Filtering of Traces Message-ID: Hello All, I am working with NDNSIM to get traces of PIT, FIB & CS from nodes and I am successful to get those traces. Now I want to use those traces and aggregate / filter (like which node is having highest flow, what is the total number of packet flow in my topology etc) them to get a compact form of workable information. Along with that I want to get the information about the processing time of the interest packets and actions taken after processing in the nodes. Please help me with examples. Thanks MD -------------- next part -------------- An HTML attachment was scrubbed... URL: From binbs.khan at gmail.com Sun Jan 29 08:23:43 2017 From: binbs.khan at gmail.com (Naveed Khan) Date: Sun, 29 Jan 2017 21:23:43 +0500 Subject: [ndnSIM] Router's Exchange information Message-ID: Hello All I am working on producer mobility in ndnsim. Is it is possible that ndn router can send each connecting device information to each other in ndnsim while device moving from one router to another? Please help me with example -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sun Jan 29 10:00:31 2017 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sun, 29 Jan 2017 11:00:31 -0700 Subject: [ndnSIM] Filtering of Traces In-Reply-To: References: Message-ID: Hi MD Usually I use grep, gawk, and similar command line utilities to process all kinds of traces and logs. Then, LibreOffice Calc or Microsoft Excel is used to analyze the numbers. Yours, Junxiao On Sun, Jan 29, 2017 at 8:55 AM, MD TAUSHIF wrote: > Hello All, > > I am working with NDNSIM to get traces of PIT, FIB & CS from nodes and I > am successful to get those traces. Now I want to use those traces and > aggregate / filter (like which node is having highest flow, what is the > total number of packet flow in my topology etc) them to get a compact form > of workable information. Along with that I want to get the information > about the processing time of the interest packets and actions taken after > processing in the nodes. > > Please help me with examples. > > Thanks > MD > > _______________________________________________ > 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 mahsa.aghajani at gmail.com Mon Jan 30 03:13:09 2017 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Mon, 30 Jan 2017 14:43:09 +0330 Subject: [ndnSIM] Problem in installing nlsrSIM alone Message-ID: Hello I want to install nlsrSIM alone instead of installing it together with ndnSIM-NLSR, but after the ./waf command, in face-Controller.cpp file, the installation process runs into some errors. I appreciate if you help me figure out why this happens so I can install this application. Thanks. -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Mon Jan 30 03:27:44 2017 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Mon, 30 Jan 2017 11:27:44 +0000 Subject: [ndnSIM] Problem in installing nlsrSIM alone In-Reply-To: References: Message-ID: Hi Mahsa Exactly what error? See http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-May/001748.html on how to effectively ask for help. Yours, Junxiao On Mon, Jan 30, 2017 at 04:13 Mahsa Aghajani wrote: > Hello > I want to install nlsrSIM alone instead of installing it together with > ndnSIM-NLSR, > but after the ./waf command, in face-Controller.cpp file, the > installation process runs into some errors. > I appreciate if you help me figure out why this happens so I can install > this application. > Thanks. > > -- > > Mahsa Aghajani > M.Sc. Student > Department of Computer Engineering > Sharif University of Technology > > _______________________________________________ > 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 mahsa.aghajani at gmail.com Mon Jan 30 03:31:10 2017 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Mon, 30 Jan 2017 15:01:10 +0330 Subject: [ndnSIM] Problem in installing nlsrSIM alone In-Reply-To: References: Message-ID: I am on ubuntu 14.04 64 bit, the error is this : [ 9/57] Compiling src/route/fib-entry.cpp ../src/utility/face-controller.cpp: In member function ?void nlsr::util::FaceController::createFaceInNfd(const ndn::util::FaceUri&, const CommandSuccessCallback&, const CommandFailureCallback&)?: ../src/utility/face-controller.cpp:76:87: error: no matching function for call to ?ndn::nfd::Controller::start(ndn::nfd::ControlParameters&, const CommandSuccessCallback&, const CommandFailureCallback&)? m_controller.start(faceParameters, onSuccess, onFailure); ^ ../src/utility/face-controller.cpp:76:87: note: candidate is: In file included from /usr/local/include/ndn-cxx/management/nfd-controller.hpp:25:0, from ../src/utility/face-controller.hpp:26, from ../src/utility/face-controller.cpp:22: /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: template void ndn::nfd::Controller::start(const ndn::nfd::ControlParameters&, const CommandSucceedCallback&, const CommandFailCallback&, const ndn::nfd::CommandOptions&) start(const ControlParameters& parameters, ^ /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: template argument deduction/substitution failed: ../src/utility/face-controller.cpp:76:87: note: cannot convert ?onFailure? (type ?const CommandFailureCallback {aka const std::function&)>}?) to type ?const CommandFailCallback& {aka const std::function&}? m_controller.start(faceParameters, onSuccess, onFailure); thanks for your attention. On Mon, Jan 30, 2017 at 2:57 PM, Junxiao Shi wrote: > Hi Mahsa > > Exactly what error? > See http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-May/001748.html > on how to effectively ask for help. > > Yours, Junxiao > > On Mon, Jan 30, 2017 at 04:13 Mahsa Aghajani > wrote: > >> Hello >> I want to install nlsrSIM alone instead of installing it together with >> ndnSIM-NLSR, >> but after the ./waf command, in face-Controller.cpp file, the >> installation process runs into some errors. >> I appreciate if you help me figure out why this happens so I can install >> this application. >> Thanks. >> >> -- >> >> Mahsa Aghajani >> M.Sc. Student >> Department of Computer Engineering >> Sharif University of Technology >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> > -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Mon Jan 30 03:38:36 2017 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Mon, 30 Jan 2017 11:38:36 +0000 Subject: [ndnSIM] Problem in installing nlsrSIM alone In-Reply-To: References: Message-ID: Hi Mahsa It appears that the installed ndn-cxx version is higher than what nlsrSIM expects. Either downgrade ndn-cxx or upgrade nlsrSIM until they are compatible with each other. Yours, Junxiao On Mon, Jan 30, 2017 at 04:31 Mahsa Aghajani wrote: > I am on ubuntu 14.04 64 bit, the error is this : > [ 9/57] Compiling src/route/fib-entry.cpp > ../src/utility/face-controller.cpp: In member function ?void > nlsr::util::FaceController::createFaceInNfd(const ndn::util::FaceUri&, > const CommandSuccessCallback&, const CommandFailureCallback&)?: > ../src/utility/face-controller.cpp:76:87: error: no matching function for > call to ?ndn::nfd::Controller::start(ndn::nfd::ControlParameters&, const > CommandSuccessCallback&, const CommandFailureCallback&)? > m_controller.start(faceParameters, > onSuccess, onFailure); > > ^ > ../src/utility/face-controller.cpp:76:87: note: candidate is: > In file included from > /usr/local/include/ndn-cxx/management/nfd-controller.hpp:25:0, > from ../src/utility/face-controller.hpp:26, > from ../src/utility/face-controller.cpp:22: > /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: > template void ndn::nfd::Controller::start(const > ndn::nfd::ControlParameters&, const CommandSucceedCallback&, const > CommandFailCallback&, const ndn::nfd::CommandOptions&) > start(const ControlParameters& parameters, > ^ > /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: template > argument deduction/substitution failed: > ../src/utility/face-controller.cpp:76:87: note: cannot convert > ?onFailure? (type ?const CommandFailureCallback {aka const > std::function&)>}?) to > type ?const CommandFailCallback& {aka const std::function ndn::mgmt::ControlResponse&)>&}? > m_controller.start(faceParameters, > onSuccess, onFailure); > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahsa.aghajani at gmail.com Mon Jan 30 03:52:28 2017 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Mon, 30 Jan 2017 15:22:28 +0330 Subject: [ndnSIM] Problem in installing nlsrSIM alone In-Reply-To: References: Message-ID: Dear Junxiao Thanks for you quick response. When I try to install nlsrSIM together with ndnSIM-NLSR no such error appears, I think the errors are because of trying to install nlsrSIM alone. On Mon, Jan 30, 2017 at 3:08 PM, Junxiao Shi wrote: > Hi Mahsa > > It appears that the installed ndn-cxx version is higher than what nlsrSIM > expects. Either downgrade ndn-cxx or upgrade nlsrSIM until they are > compatible with each other. > > Yours, Junxiao > > On Mon, Jan 30, 2017 at 04:31 Mahsa Aghajani > wrote: > >> I am on ubuntu 14.04 64 bit, the error is this : >> [ 9/57] Compiling src/route/fib-entry.cpp >> ../src/utility/face-controller.cpp: In member function ?void >> nlsr::util::FaceController::createFaceInNfd(const ndn::util::FaceUri&, >> const CommandSuccessCallback&, const CommandFailureCallback&)?: >> ../src/utility/face-controller.cpp:76:87: error: no matching function >> for call to ?ndn::nfd::Controller::start(ndn::nfd::ControlParameters&, >> const CommandSuccessCallback&, const CommandFailureCallback&)? >> m_controller.start(faceParameters, >> onSuccess, onFailure); >> >> ^ >> ../src/utility/face-controller.cpp:76:87: note: candidate is: >> In file included from /usr/local/include/ndn-cxx/ >> management/nfd-controller.hpp:25:0, >> from ../src/utility/face-controller.hpp:26, >> from ../src/utility/face-controller.cpp:22: >> /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: >> template void ndn::nfd::Controller::start(const >> ndn::nfd::ControlParameters&, const CommandSucceedCallback&, const >> CommandFailCallback&, const ndn::nfd::CommandOptions&) >> start(const ControlParameters& parameters, >> ^ >> /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: >> template argument deduction/substitution failed: >> ../src/utility/face-controller.cpp:76:87: note: cannot convert >> ?onFailure? (type ?const CommandFailureCallback {aka const >> std::function&)>}?) to >> type ?const CommandFailCallback& {aka const std::function> ndn::mgmt::ControlResponse&)>&}? >> m_controller.start(faceParameters, >> onSuccess, onFailure); >> > >> -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From md.taushif1614 at gmail.com Mon Jan 30 05:20:06 2017 From: md.taushif1614 at gmail.com (MD TAUSHIF) Date: Mon, 30 Jan 2017 14:20:06 +0100 Subject: [ndnSIM] Filtering of Traces In-Reply-To: References: Message-ID: Hi Junxiao. Thank you for your response. I aggregated the results of our simulation. Other then this I wanted to filter the packet flows according to the type of data (like video, audio, voice) in my topology. Can you help me with some ideas how can I push data's which have all video, audio and voice file in the flow in NDNSIM and then filter them according to their types? Thanks & regards MD On Sun, Jan 29, 2017 at 7:00 PM, Junxiao Shi wrote: > Hi MD > > Usually I use grep, gawk, and similar command line utilities to process > all kinds of traces and logs. > Then, LibreOffice Calc or Microsoft Excel is used to analyze the numbers. > > Yours, Junxiao > > On Sun, Jan 29, 2017 at 8:55 AM, MD TAUSHIF > wrote: > >> Hello All, >> >> I am working with NDNSIM to get traces of PIT, FIB & CS from nodes and I >> am successful to get those traces. Now I want to use those traces and >> aggregate / filter (like which node is having highest flow, what is the >> total number of packet flow in my topology etc) them to get a compact form >> of workable information. Along with that I want to get the information >> about the processing time of the interest packets and actions taken after >> processing in the nodes. >> >> Please help me with examples. >> >> Thanks >> MD >> >> _______________________________________________ >> 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 anilj.mailing at gmail.com Mon Jan 30 09:25:08 2017 From: anilj.mailing at gmail.com (Anil Jangam) Date: Mon, 30 Jan 2017 09:25:08 -0800 Subject: [ndnSIM] Problem in installing nlsrSIM alone In-Reply-To: References: Message-ID: Hi Mahsa, Sorry for late reply. Why you want to do that? nlsrSIM is a different code branch, and basically the NLSR renamed for its porting into ndnSIM. ndnSIM-NLSR is the actual ndnSIM code base. I agree, these names are bit confusing. Both these are the renamed repositories during hackathon for NLSR porting into ndnSIM. nlsrSIM can't exist without ndnSIM-NLSR so don't try it. If you really want to install nlsrSIM alone, you can install NLSR itself. /anil. On Jan 30, 2017 3:53 AM, "Mahsa Aghajani" wrote: Dear Junxiao Thanks for you quick response. When I try to install nlsrSIM together with ndnSIM-NLSR no such error appears, I think the errors are because of trying to install nlsrSIM alone. On Mon, Jan 30, 2017 at 3:08 PM, Junxiao Shi wrote: > Hi Mahsa > > It appears that the installed ndn-cxx version is higher than what nlsrSIM > expects. Either downgrade ndn-cxx or upgrade nlsrSIM until they are > compatible with each other. > > Yours, Junxiao > > On Mon, Jan 30, 2017 at 04:31 Mahsa Aghajani > wrote: > >> I am on ubuntu 14.04 64 bit, the error is this : >> [ 9/57] Compiling src/route/fib-entry.cpp >> ../src/utility/face-controller.cpp: In member function ?void >> nlsr::util::FaceController::createFaceInNfd(const ndn::util::FaceUri&, >> const CommandSuccessCallback&, const CommandFailureCallback&)?: >> ../src/utility/face-controller.cpp:76:87: error: no matching function >> for call to ?ndn::nfd::Controller::start(ndn::nfd::ControlParameters&, >> const CommandSuccessCallback&, const CommandFailureCallback&)? >> m_controller.start(faceParameters, >> onSuccess, onFailure); >> >> ^ >> ../src/utility/face-controller.cpp:76:87: note: candidate is: >> In file included from /usr/local/include/ndn-cxx/man >> agement/nfd-controller.hpp:25:0, >> from ../src/utility/face-controller.hpp:26, >> from ../src/utility/face-controller.cpp:22: >> /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: >> template void ndn::nfd::Controller::start(const >> ndn::nfd::ControlParameters&, const CommandSucceedCallback&, const >> CommandFailCallback&, const ndn::nfd::CommandOptions&) >> start(const ControlParameters& parameters, >> ^ >> /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: >> template argument deduction/substitution failed: >> ../src/utility/face-controller.cpp:76:87: note: cannot convert >> ?onFailure? (type ?const CommandFailureCallback {aka const >> std::function&)>}?) to >> type ?const CommandFailCallback& {aka const std::function> ndn::mgmt::ControlResponse&)>&}? >> m_controller.start(faceParameters, >> onSuccess, onFailure); >> > >> -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology _______________________________________________ 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 mahsa.aghajani at gmail.com Tue Jan 31 05:53:58 2017 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Tue, 31 Jan 2017 17:23:58 +0330 Subject: [ndnSIM] Problem in installing nlsrSIM alone In-Reply-To: References: Message-ID: Hi Anil Thanks for your reply. Actually I want to replace nlsrSIM in ndnSIM-NLSR with another application, While compiling my application together with ndnSIM-NLSR, I ran into some errors, so I thought maybe it would be a good idea to first compile my application and then compile it together with ndnSIM-NLSR, but as you said it is not possible. On Mon, Jan 30, 2017 at 8:55 PM, Anil Jangam wrote: > Hi Mahsa, > > Sorry for late reply. Why you want to do that? > > nlsrSIM is a different code branch, and basically the NLSR renamed for its > porting into ndnSIM. ndnSIM-NLSR is the actual ndnSIM code base. I > agree, these names are bit confusing. > > Both these are the renamed repositories during hackathon for NLSR porting > into ndnSIM. nlsrSIM can't exist without ndnSIM-NLSR so don't try it. If > you really want to install nlsrSIM alone, you can install NLSR itself. > > /anil. > > > On Jan 30, 2017 3:53 AM, "Mahsa Aghajani" > wrote: > > Dear Junxiao > > Thanks for you quick response. When I try to install nlsrSIM together with > ndnSIM-NLSR no such error appears, I think the errors are because of trying > to install nlsrSIM alone. > > > On Mon, Jan 30, 2017 at 3:08 PM, Junxiao Shi > wrote: > >> Hi Mahsa >> >> It appears that the installed ndn-cxx version is higher than what nlsrSIM >> expects. Either downgrade ndn-cxx or upgrade nlsrSIM until they are >> compatible with each other. >> >> Yours, Junxiao >> >> On Mon, Jan 30, 2017 at 04:31 Mahsa Aghajani >> wrote: >> >>> I am on ubuntu 14.04 64 bit, the error is this : >>> [ 9/57] Compiling src/route/fib-entry.cpp >>> ../src/utility/face-controller.cpp: In member function ?void >>> nlsr::util::FaceController::createFaceInNfd(const ndn::util::FaceUri&, >>> const CommandSuccessCallback&, const CommandFailureCallback&)?: >>> ../src/utility/face-controller.cpp:76:87: error: no matching function >>> for call to ?ndn::nfd::Controller::start(ndn::nfd::ControlParameters&, >>> const CommandSuccessCallback&, const CommandFailureCallback&)? >>> m_controller.start(faceParameters, >>> onSuccess, onFailure); >>> >>> ^ >>> ../src/utility/face-controller.cpp:76:87: note: candidate is: >>> In file included from /usr/local/include/ndn-cxx/man >>> agement/nfd-controller.hpp:25:0, >>> from ../src/utility/face-controller.hpp:26, >>> from ../src/utility/face-controller.cpp:22: >>> /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: >>> template void ndn::nfd::Controller::start(const >>> ndn::nfd::ControlParameters&, const CommandSucceedCallback&, const >>> CommandFailCallback&, const ndn::nfd::CommandOptions&) >>> start(const ControlParameters& parameters, >>> ^ >>> /usr/local/include/ndn-cxx/mgmt/nfd/controller.hpp:75:3: note: >>> template argument deduction/substitution failed: >>> ../src/utility/face-controller.cpp:76:87: note: cannot convert >>> ?onFailure? (type ?const CommandFailureCallback {aka const >>> std::function&)>}?) to >>> type ?const CommandFailCallback& {aka const std::function>> ndn::mgmt::ControlResponse&)>&}? >>> m_controller.start(faceParameters, >>> onSuccess, onFailure); >>> >> >>> > > > -- > > Mahsa Aghajani > M.Sc. Student > Department of Computer Engineering > Sharif University of Technology > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From maxpromindz at gmail.com Tue Jan 31 08:31:23 2017 From: maxpromindz at gmail.com (Saad SA) Date: Tue, 31 Jan 2017 18:31:23 +0200 Subject: [ndnSIM] Memory leaks Message-ID: Hi, I had an application on ndnSIM version 0.2.8, and it was working too fine. Now I'm using the latest version, I changed the old application to work over the new ndnSIM and noticed huge memory leaks that are proportional to the run-time; On some computer it took more time and consumed 10 GB of RAM !! and on another faster one, it took less, hence consumed less RAM (4 GB or less), both are still huge amounts of memory as I'm using a small topology with 18 nodes and an average frequency of 500 requests/s; and all of that was running fine on the older version of ndnSIM. Any ideas? Regards, Sa'd -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue Jan 31 09:51:53 2017 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 31 Jan 2017 09:51:53 -0800 Subject: [ndnSIM] Memory leaks In-Reply-To: References: Message-ID: <58EEEE12-7149-4865-A0B9-EA209A51C7AF@cs.ucla.edu> Hi, we have some clues that under some certain circumstances, there might be something wrong going on with the memory consumption. However, it is not clear to us yet why this is happening. We speculate that this has to do with NFD itself and the way it maintains and deletes its data structures (specifically, PIT and CS). I can get back to you with more details as soon as we are done with our investigation. Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Jan 31, 2017, at 8:31 AM, Saad SA wrote: > > Hi, > > I had an application on ndnSIM version 0.2.8, and it was working too fine. Now I'm using the latest version, I changed the old application to work over the new ndnSIM and noticed huge memory leaks that are proportional to the run-time; On some computer it took more time and consumed 10 GB of RAM !! and on another faster one, it took less, hence consumed less RAM (4 GB or less), both are still huge amounts of memory as I'm using a small topology with 18 nodes and an average frequency of 500 requests/s; and all of that was running fine on the older version of ndnSIM. > Any ideas? > > Regards, > Sa'd -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Jan 31 09:56:59 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 31 Jan 2017 09:56:59 -0800 Subject: [ndnSIM] Memory leaks In-Reply-To: References: Message-ID: > On Jan 31, 2017, at 8:31 AM, Saad SA wrote: > > Hi, > > I had an application on ndnSIM version 0.2.8, and it was working too fine. Now I'm using the latest version, I changed the old application to work over the new ndnSIM and noticed huge memory leaks that are proportional to the run-time; On some computer it took more time and consumed 10 GB of RAM !! and on another faster one, it took less, hence consumed less RAM (4 GB or less), both are still huge amounts of memory as I'm using a small topology with 18 nodes and an average frequency of 500 requests/s; and all of that was running fine on the older version of ndnSIM. > Any ideas? Can you clarify a bit (if you can share a simple scenario that highlights the issue, it would be even better). Was the memory consumption growing or got to a point of high utilization and stabilized (you said it is run-time, but then mentioned that simulation finished). The reason I'm asking is that the old version of ndnSIM had optimization of "virtual payloads", which is not available in the new version. This has impact on the amounts of memory used, but it should be just a constant factor increase, not continuous increase during runtime. -- Alex From maxpromindz at gmail.com Tue Jan 31 10:14:02 2017 From: maxpromindz at gmail.com (Saad SA) Date: Tue, 31 Jan 2017 20:14:02 +0200 Subject: [ndnSIM] Memory leaks In-Reply-To: References: Message-ID: No stabilization, it keeps growing up till the end of the simulation (Yes, it finishes). So if the same simulation ran on two different computers; the faster one would finish before, hence consuming less memory than the slower, the growing stops just when the simulation ends. (You have a rate of growing equal to X MB/s, so taking long time to finish would lead to consume more!) Sa'd On Tue, Jan 31, 2017 at 7:56 PM, Alex Afanasyev wrote: > > > On Jan 31, 2017, at 8:31 AM, Saad SA wrote: > > > > Hi, > > > > I had an application on ndnSIM version 0.2.8, and it was working too > fine. Now I'm using the latest version, I changed the old application to > work over the new ndnSIM and noticed huge memory leaks that are > proportional to the run-time; On some computer it took more time and > consumed 10 GB of RAM !! and on another faster one, it took less, hence > consumed less RAM (4 GB or less), both are still huge amounts of memory as > I'm using a small topology with 18 nodes and an average frequency of 500 > requests/s; and all of that was running fine on the older version of ndnSIM. > > Any ideas? > > Can you clarify a bit (if you can share a simple scenario that highlights > the issue, it would be even better). Was the memory consumption growing or > got to a point of high utilization and stabilized (you said it is run-time, > but then mentioned that simulation finished). The reason I'm asking is > that the old version of ndnSIM had optimization of "virtual payloads", > which is not available in the new version. This has impact on the amounts > of memory used, but it should be just a constant factor increase, not > continuous increase during runtime. > > -- > Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Jan 31 10:28:40 2017 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 31 Jan 2017 10:28:40 -0800 Subject: [ndnSIM] Memory leaks In-Reply-To: References: Message-ID: Got it. Can you share your scenario (a simplified version of your scenario), so we can try to debug? > On Jan 31, 2017, at 10:14 AM, Saad SA wrote: > > No stabilization, it keeps growing up till the end of the simulation (Yes, it finishes). So if the same simulation ran on two different computers; the faster one would finish before, hence consuming less memory than the slower, the growing stops just when the simulation ends. (You have a rate of growing equal to X MB/s, so taking long time to finish would lead to consume more!) > > Sa'd > > On Tue, Jan 31, 2017 at 7:56 PM, Alex Afanasyev > wrote: > > > On Jan 31, 2017, at 8:31 AM, Saad SA > wrote: > > > > Hi, > > > > I had an application on ndnSIM version 0.2.8, and it was working too fine. Now I'm using the latest version, I changed the old application to work over the new ndnSIM and noticed huge memory leaks that are proportional to the run-time; On some computer it took more time and consumed 10 GB of RAM !! and on another faster one, it took less, hence consumed less RAM (4 GB or less), both are still huge amounts of memory as I'm using a small topology with 18 nodes and an average frequency of 500 requests/s; and all of that was running fine on the older version of ndnSIM. > > Any ideas? > > Can you clarify a bit (if you can share a simple scenario that highlights the issue, it would be even better). Was the memory consumption growing or got to a point of high utilization and stabilized (you said it is run-time, but then mentioned that simulation finished). The reason I'm asking is that the old version of ndnSIM had optimization of "virtual payloads", which is not available in the new version. This has impact on the amounts of memory used, but it should be just a constant factor increase, not continuous increase during runtime. > > -- > Alex > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maxpromindz at gmail.com Tue Jan 31 10:39:51 2017 From: maxpromindz at gmail.com (Saad SA) Date: Tue, 31 Jan 2017 20:39:51 +0200 Subject: [ndnSIM] Memory leaks In-Reply-To: References: Message-ID: I have no problem, but I've made some customized apps in "src/ndnSIM/apps" (3 cpp and 3 headers) + 1 app in "scratch" + 1 txt file in the main directory. That would be OK? On Tue, Jan 31, 2017 at 8:28 PM, Alex Afanasyev wrote: > Got it. Can you share your scenario (a simplified version of your > scenario), so we can try to debug? > > On Jan 31, 2017, at 10:14 AM, Saad SA wrote: > > No stabilization, it keeps growing up till the end of the simulation (Yes, > it finishes). So if the same simulation ran on two different computers; the > faster one would finish before, hence consuming less memory than the > slower, the growing stops just when the simulation ends. (You have a rate > of growing equal to X MB/s, so taking long time to finish would lead to > consume more!) > > Sa'd > > On Tue, Jan 31, 2017 at 7:56 PM, Alex Afanasyev wrote: > >> >> > On Jan 31, 2017, at 8:31 AM, Saad SA wrote: >> > >> > Hi, >> > >> > I had an application on ndnSIM version 0.2.8, and it was working too >> fine. Now I'm using the latest version, I changed the old application to >> work over the new ndnSIM and noticed huge memory leaks that are >> proportional to the run-time; On some computer it took more time and >> consumed 10 GB of RAM !! and on another faster one, it took less, hence >> consumed less RAM (4 GB or less), both are still huge amounts of memory as >> I'm using a small topology with 18 nodes and an average frequency of 500 >> requests/s; and all of that was running fine on the older version of ndnSIM. >> > Any ideas? >> >> Can you clarify a bit (if you can share a simple scenario that highlights >> the issue, it would be even better). Was the memory consumption growing or >> got to a point of high utilization and stabilized (you said it is run-time, >> but then mentioned that simulation finished). The reason I'm asking is >> that the old version of ndnSIM had optimization of "virtual payloads", >> which is not available in the new version. This has impact on the amounts >> of memory used, but it should be just a constant factor increase, not >> continuous increase during runtime. >> >> -- >> Alex > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From philipp.moll at itec.aau.at Tue Jan 31 23:54:05 2017 From: philipp.moll at itec.aau.at (Philipp Moll) Date: Wed, 1 Feb 2017 08:54:05 +0100 Subject: [ndnSIM] Memory leaks In-Reply-To: References: Message-ID: <84c5e54b-e0fa-903f-819b-f7cb408df14f@itec.aau.at> Hi, I also recognized this memory leak. In some cases the memory consumption of my simulations increase linear over the time; at the end of the simulation they consume up to 60GB. This problem especially arises in scenarios where Multicast is used as FW-Strategy and many packets are sent. I?m currently working with ndnSIM-2.1 (Commit-Hash: a9d889b). Regards, Philipp Moll On 31/01/17 19:14, Saad SA wrote: > No stabilization, it keeps growing up till the end of the simulation > (Yes, it finishes). So if the same simulation ran on two different > computers; the faster one would finish before, hence consuming less > memory than the slower, the growing stops just when the simulation > ends. (You have a rate of growing equal to X MB/s, so taking long time > to finish would lead to consume more!) > > Sa'd > > On Tue, Jan 31, 2017 at 7:56 PM, Alex Afanasyev > wrote: > > > > On Jan 31, 2017, at 8:31 AM, Saad SA > wrote: > > > > Hi, > > > > I had an application on ndnSIM version 0.2.8, and it was working > too fine. Now I'm using the latest version, I changed the old > application to work over the new ndnSIM and noticed huge memory > leaks that are proportional to the run-time; On some computer it > took more time and consumed 10 GB of RAM !! and on another faster > one, it took less, hence consumed less RAM (4 GB or less), both > are still huge amounts of memory as I'm using a small topology > with 18 nodes and an average frequency of 500 requests/s; and all > of that was running fine on the older version of ndnSIM. > > Any ideas? > > Can you clarify a bit (if you can share a simple scenario that > highlights the issue, it would be even better). Was the memory > consumption growing or got to a point of high utilization and > stabilized (you said it is run-time, but then mentioned that > simulation finished). The reason I'm asking is that the old > version of ndnSIM had optimization of "virtual payloads", which is > not available in the new version. This has impact on the amounts > of memory used, but it should be just a constant factor increase, > not continuous increase during runtime. > > -- > Alex > > > > > _______________________________________________ > 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: