From anilj.mailing at gmail.com Mon Feb 1 17:38:27 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Mon, 1 Feb 2016 17:38:27 -0800 Subject: [ndnSIM] Does P2P Link works on top of NFD faces? Message-ID: Hello, In my application scenario, since ndnSIM does not yet support the TCP/UDP face creation (http://redmine.named-data.net/issues/2371), I have built the network topology by establishing P2P links between the nodes. I then get the faceId from the P2P link using a NetDevice. Used a modified version of the function outlined here: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-December/002293.html uint32_t faceId = ndnStack->getFaceByNetDevice(netDevice)->getId(); To find the faceId for the next hop (adjacent node) using the configured faceUri, the NFD does not return anything since it does not recognize the faceUri. One way is to get this faceId from the P2P link again but I do not know if this will work. Does this also mean that it completely get away from the underlying NFD transport services? I want to know if P2P link works on top of NFD or not? As ndnSIM does not yet support TCP/UDP faces, what alternative does it provide to use the underlying NFD and its transport services? Thanks, /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aygunbengi at gmail.com Wed Feb 3 17:57:10 2016 From: aygunbengi at gmail.com (=?UTF-8?B?YmVuZ2kgYXlnw7xu?=) Date: Wed, 3 Feb 2016 17:57:10 -0800 Subject: [ndnSIM] NDNSIM Car2Car Compilation Error Message-ID: Dear All, Thank you very much to provide this comprehensive open source toolbox. I am trying to run *scenarios/car-relay.cc* provided in https://github.com/cawka/ndnSIM-nom-rapid-car2car . I am having an error for the extensions/ndn-v2v-net-device-face.h as * fatal error: ns3/ndn-header.h: No such file or directory.* I tried the followings: - Defining all path as #include "ndnSIM/model/ns3/ndn-header.h" - Installing ndnSIM in both the same directory with and different than ns-3's directory - Building car-relay.cc in ndnSIM/scratch and also in its own project folder The same issue is asked on April 2013 by Safdar Hussain Bouk but there was no reply. Thank you very much for time. bengi at bengi-VirtualBox:~/Desktop/ndnSIM/ns-3$ ./waf Waf: Entering directory `/home/bengi/Desktop/ndnSIM/ns-3/build' [1161/2256] Compiling scratch/ndn-v2v-net-device-face.cc In file included from ../scratch/ndn-v2v-net-device-face.cc:22:0: ../scratch/ndn-v2v-net-device-face.h:28:28: fatal error: ns3/ndn-header.h: No such file or directory #include "ns3/ndn-header.h" ^ compilation terminated. Waf: Leaving directory `/home/bengi/Desktop/ndnSIM/ns-3/build' Build failed -> task in 'ndn-v2v-net-device-face' failed (exit status 1): {task 140632244358288: cxx ndn-v2v-net-device-face.cc -> ndn-v2v-net-device-face.cc.1.o} ['/usr/bin/g++', '-std=c++0x', '-std=c++11', '-O3', '-g', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-march=native', '-fstrict-overflow', '-pthread', '-I.', '-I..', '-Ins3/ndnSIM/NFD', '-I../ns3/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/core', '-I../src/ndnSIM/NFD/core', '-Isrc/ndnSIM/NFD/daemon', '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/rib', '-I../src/ndnSIM/NFD/rib', '-Ins3/ndnSIM', '-I../ns3/ndnSIM', '-I/usr/include/libxml2', '-I/usr/include', '-DNS3_BUILD_PROFILE_OPTIMIZED', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_ASSIGNABLE=1', '-DHAVE_CXX_FRIEND_TYPENAME=1', '-DHAVE_CXX_OVERRIDE_FINAL=1', '-DHAVE_PTHREAD=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_LIBXML2=1', '../scratch/ndn-v2v-net-device-face.cc', '-c', '-o', '/home/bengi/Desktop/ndnSIM/ns-3/build/scratch/ndn-v2v-net-device-face.cc.1.o'] Best, Bengi -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sat Feb 6 22:11:47 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sat, 6 Feb 2016 22:11:47 -0800 Subject: [ndnSIM] help interest flooding In-Reply-To: References: Message-ID: <7411C833-043A-462F-AB90-054E601FB257@cs.ucla.edu> (I have moved this to ndnSIM mailing list) If you are referring to https://github.com/cawka/ndnSIM-ddos-interest-flooding simulation, you should follow the instructions in README, including installation of the specified version of base NS-3 and ndnSIM (**does not** work with the latest version of ndnSIM). Beyond that, you will probably need to define the countermeasure logic you are thinking about, implement it, and set up the scenario to evaluate it. -- Alex > On Feb 5, 2016, at 6:01 AM, abdou ben wrote: > > I successfully installed ndnSIM and build it > > But i now want to run the code for ddos attack and countermeasures in interest flooding > > Also want to do some changes and evaluate the result > > I m very new to ndnSIM > > Please help -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From monikabaraut at gmail.com Sun Feb 7 23:47:17 2016 From: monikabaraut at gmail.com (Monika Dangi) Date: Mon, 8 Feb 2016 02:47:17 -0500 Subject: [ndnSIM] ImportError: No module named doxygen while compiling ndnsim2.0 Message-ID: Hello, I am new to ndnsim, while installing ndnsim i got this error ImportError: No module named doxygen. Can anybody help me how to resolve it? i am installing ndnsim on Ubuntu 14.04. the command i ran is: ./waf configure ?disable-python ?enable-examples nd the error lines are: Traceback (most recent call last): File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point run_commands() File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 165, in run_commands parse_options() File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 138, in parse_options Context.create_context('options').execute() File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", line 146, in execute super(OptionsContext,self).execute() File "/home/monika/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/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/monika/ndnSIM/ns-3/wscript", line 213, in options opt.recurse('src') File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/monika/ndnSIM/ns-3/src/wscript", line 48, in options opt.recurse(module, mandatory=False) File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse user_function(self) File "/home/monika/ndnSIM/ns-3/src/ndnSIM/wscript", line 18, in options tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 86, in load module=load_tool(t,path) File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 342, in load_tool __import__(tool) ImportError: No module named doxygen it will be a great help. thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Sun Feb 7 23:57:14 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Mon, 8 Feb 2016 13:27:14 +0530 Subject: [ndnSIM] ImportError: No module named doxygen while compiling ndnsim2.0 In-Reply-To: References: Message-ID: HI Monika, I would suggest you try out the shell script we have prepared for the installation of latest version of ndnSIM. The link of the script is provided below. Hope it solves your problem. http://mohittahiliani.blogspot.in/2015/10/ns-3-installing-ndnsim-on-ubuntu.html *Regards,* *Ayush Agarwal* *Reseach Scholar, Computer Science* *National Institute of Technology, KarnatakaSurathkal, India* On Mon, Feb 8, 2016 at 1:17 PM, Monika Dangi wrote: > > Hello, > I am new to ndnsim, while installing ndnsim i got this error ImportError: > No module named doxygen. > Can anybody help me how to resolve it? > i am installing ndnsim on Ubuntu 14.04. > the command i ran is: ./waf configure ?disable-python ?enable-examples > nd the error lines are: > > Traceback (most recent call last): > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > line 108, in waf_entry_point > run_commands() > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > line 165, in run_commands > parse_options() > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > line 138, in parse_options > Context.create_context('options').execute() > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", > line 146, in execute > super(OptionsContext,self).execute() > File > "/home/monika/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/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 133, in recurse > user_function(self) > File "/home/monika/ndnSIM/ns-3/wscript", line 213, in options > opt.recurse('src') > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 133, in recurse > user_function(self) > File "/home/monika/ndnSIM/ns-3/src/wscript", line 48, in options > opt.recurse(module, mandatory=False) > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 133, in recurse > user_function(self) > File "/home/monika/ndnSIM/ns-3/src/ndnSIM/wscript", line 18, in options > tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 86, in load > module=load_tool(t,path) > File > "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 342, in load_tool > __import__(tool) > ImportError: No module named doxygen > > > it will be a great help. > thank you > > _______________________________________________ > 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 asifcsep at gmail.com Mon Feb 8 06:06:22 2016 From: asifcsep at gmail.com (Shahid Md. Asif Iqbal) Date: Mon, 8 Feb 2016 20:06:22 +0600 Subject: [ndnSIM] How to drop interest packets in the multicast-strategy.cpp file? Message-ID: Dear All, I have added a field in the interest packet, set and updated the value as it traverses upstream, now how can I drop an interest packet based on that filed int the multicast-strategy.cpp file? N.B. I want to drop application interest packets not management interests -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon Feb 8 09:14:07 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Feb 2016 09:14:07 -0800 Subject: [ndnSIM] ImportError: No module named doxygen while compiling ndnsim2.0 In-Reply-To: References: Message-ID: Hi Monika, please use the --recursive option when you clone ndnSIM from github. Thanks. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 7, 2016, at 11:47 PM, Monika Dangi wrote: > > > Hello, > I am new to ndnsim, while installing ndnsim i got this error ImportError: No module named doxygen. > Can anybody help me how to resolve it? > i am installing ndnsim on Ubuntu 14.04. > the command i ran is: ./waf configure ?disable-python ?enable-examples > nd the error lines are: > > Traceback (most recent call last): > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point > run_commands() > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 165, in run_commands > parse_options() > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 138, in parse_options > Context.create_context('options').execute() > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", line 146, in execute > super(OptionsContext,self).execute() > File "/home/monika/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/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse > user_function(self) > File "/home/monika/ndnSIM/ns-3/wscript", line 213, in options > opt.recurse('src') > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse > user_function(self) > File "/home/monika/ndnSIM/ns-3/src/wscript", line 48, in options > opt.recurse(module, mandatory=False) > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse > user_function(self) > File "/home/monika/ndnSIM/ns-3/src/ndnSIM/wscript", line 18, in options > tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 86, in load > module=load_tool(t,path) > File "/home/monika/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 342, in load_tool > __import__(tool) > ImportError: No module named doxygen > > > it will be a great help. > thank you > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon Feb 8 09:21:58 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Feb 2016 09:21:58 -0800 Subject: [ndnSIM] NDNSIM Car2Car Compilation Error In-Reply-To: References: Message-ID: Hi Bengi, the specific examples are based on a customized and old version of ndnSIM. I do not think that this version is available anymore. If you want to run these examples you will have to modify them and make them work with the latest version of ndnSIM. However, it is not clear to me what changes are needed. Another solution would be to write your own simulation scenarios and modify the latest version of ndnSIM if needed. Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 3, 2016, at 5:57 PM, bengi ayg?n wrote: > > Dear All, > > Thank you very much to provide this comprehensive open source toolbox. I am trying to run scenarios/car-relay.cc provided in https://github.com/cawka/ndnSIM-nom-rapid-car2car . I am having an error for the extensions/ndn-v2v-net-device-face.h as fatal error: ns3/ndn-header.h: No such file or directory. > > I tried the followings: > - Defining all path as #include "ndnSIM/model/ns3/ndn-header.h" > - Installing ndnSIM in both the same directory with and different than ns-3's directory > - Building car-relay.cc in ndnSIM/scratch and also in its own project folder > > The same issue is asked on April 2013 by Safdar Hussain Bouk but there was no reply. Thank you very much for time. > > bengi at bengi-VirtualBox:~/Desktop/ndnSIM/ns-3$ ./waf > Waf: Entering directory `/home/bengi/Desktop/ndnSIM/ns-3/build' > [1161/2256] Compiling scratch/ndn-v2v-net-device-face.cc > In file included from ../scratch/ndn-v2v-net-device-face.cc:22:0: > ../scratch/ndn-v2v-net-device-face.h:28:28: fatal error: ns3/ndn-header.h: No such file or directory > #include "ns3/ndn-header.h" > ^ > compilation terminated. > > Waf: Leaving directory `/home/bengi/Desktop/ndnSIM/ns-3/build' > Build failed > -> task in 'ndn-v2v-net-device-face' failed (exit status 1): > {task 140632244358288: cxx ndn-v2v-net-device-face.cc -> ndn-v2v-net-device-face.cc.1.o} > ['/usr/bin/g++', '-std=c++0x', '-std=c++11', '-O3', '-g', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-march=native', '-fstrict-overflow', '-pthread', '-I.', '-I..', '-Ins3/ndnSIM/NFD', '-I../ns3/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/core', '-I../src/ndnSIM/NFD/core', '-Isrc/ndnSIM/NFD/daemon', '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/rib', '-I../src/ndnSIM/NFD/rib', '-Ins3/ndnSIM', '-I../ns3/ndnSIM', '-I/usr/include/libxml2', '-I/usr/include', '-DNS3_BUILD_PROFILE_OPTIMIZED', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_ASSIGNABLE=1', '-DHAVE_CXX_FRIEND_TYPENAME=1', '-DHAVE_CXX_OVERRIDE_FINAL=1', '-DHAVE_PTHREAD=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_LIBXML2=1', '../scratch/ndn-v2v-net-device-face.cc', '-c', '-o', '/home/bengi/Desktop/ndnSIM/ns-3/build/scratch/ndn-v2v-net-device-face.cc.1.o'] > > Best, > Bengi > _______________________________________________ > 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 Mon Feb 8 09:27:43 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Feb 2016 09:27:43 -0800 Subject: [ndnSIM] How to drop interest packets in the multicast-strategy.cpp file? In-Reply-To: References: Message-ID: Hi, a quick and dirty way to do that is to check the name of every Interest packet. Assuming that application Interests and Management Interests would have different names, you can filter the ones that you like. Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 8, 2016, at 6:06 AM, Shahid Md. Asif Iqbal wrote: > > Dear All, > I have added a field in the interest packet, set and updated the value as it traverses upstream, now how can I drop an interest packet based on that filed int the multicast-strategy.cpp file? > N.B. I want to drop application interest packets not management interests > _______________________________________________ > 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 carlzu8 at gmail.com Mon Feb 8 15:10:19 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Tue, 9 Feb 2016 00:10:19 +0100 Subject: [ndnSIM] regarding block.hpp Message-ID: I think lack of documentation is a problem... I wanted to write some bytes in the interest message in ndnSIM. In ns3, thanks to their documentation, one can easily understand that in order to write some bytes, he should serialize a header. For doing the same thing in ndnSIM, I have had the impression that I should use "block". Moreover, It looks as though an interest message is a set of TLVs (based on the explanation in the NDN project website). So probably if I like to write eight bytes as four pieces of two-byte data, I should write four TLVs. But indeed, there are many constructors in block.hpp, and it's just about looking at one code after another to understand each of them due to lack of documentation... Can someone please give some guidance ???. thanks and rgds. C -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon Feb 8 16:50:04 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Feb 2016 16:50:04 -0800 Subject: [ndnSIM] regarding block.hpp In-Reply-To: References: Message-ID: Hi Carl, since this seems to be a documentation issue of ndn-cxx, but related to ndnSIM at the same time, I would like this email to be on the nfd-dev mailing list as well. The general guidance that I could give you is (as you correctly pointed out) that in NDN we follow the TLV format (that is, Type - Length - Value). To that end, you will have to create your own methods (or extend the existing ones) to encode and decode something to/from wire format. If you could be more specific on the things that you would like to achieve, I could provide more help. In general, the Block class of ndn-cxx, provides encoders and decoders for many different types of data in order to abstract the low layer details from the developer. As far as the documentation issue is concerned, thank you for bringing this up. We will try to address it in the near future. Thank you, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 8, 2016, at 3:10 PM, Carl Zu wrote: > > I think lack of documentation is a problem... > > I wanted to write some bytes in the interest message in ndnSIM. In ns3, thanks to their documentation, one can easily understand that in order to write some bytes, he should serialize a header. > > For doing the same thing in ndnSIM, I have had the impression that I should use "block". Moreover, It looks as though an interest message is a set of TLVs (based on the explanation in the NDN project website). So probably if I like to write eight bytes as four pieces of two-byte data, I should write four TLVs. But indeed, there are many constructors in block.hpp, and it's just about looking at one code after another to understand each of them due to lack of documentation... > > Can someone please give some guidance ???. > > thanks and rgds. > C -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Mon Feb 8 17:34:24 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Mon, 8 Feb 2016 17:34:24 -0800 Subject: [ndnSIM] regarding block.hpp In-Reply-To: References: Message-ID: <2EC501AC-9678-4D44-934E-EF87AEBBFE56@cs.ucla.edu> > On Feb 8, 2016, at 3:10 PM, Carl Zu wrote: > > I think lack of documentation is a problem... > > I wanted to write some bytes in the interest message in ndnSIM. In ns3, thanks to their documentation, one can easily understand that in order to write some bytes, he should serialize a header. > > For doing the same thing in ndnSIM, I have had the impression that I should use "block". Moreover, It looks as though an interest message is a set of TLVs (based on the explanation in the NDN project website). So probably if I like to write eight bytes as four pieces of two-byte data, I should write four TLVs. But indeed, there are many constructors in block.hpp, and it's just about looking at one code after another to understand each of them due to lack of documentation... Hi Carl, I think you're looking into a slightly wrong place. If you want to extend Interest, you need first define your own TLV (which type to use and specific content). For simple things you don't need to define your own class, you can simply store the actual value in some standard type, say char[8]. After doing so, the only part remain is to update serialization/deserialization methods of interest.cpp which are called wireEncode and wireDecode. I will agree that there is limited documentation, but there are many examples of this encoding. add variable to keep your data (and getter/setter methods when needed): char m_myValue[8]; Add the following to the wireEncode (note that encoding is done in reverse order): totalLength += encoder.prependByteArrayBlock(, m_myValue, 8); And the following to the wireDecode: val = m_wire.find(); if (val != m_wire.elements_end()) { memcpy(m_myValue, val->value(), val->value_size()); else memset(m_myValue, 0, 8); --- Alex > > Can someone please give some guidance ???. > > thanks and rgds. > C > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From carlzu8 at gmail.com Tue Feb 9 09:24:48 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Tue, 9 Feb 2016 18:24:48 +0100 Subject: [ndnSIM] regarding block.hpp In-Reply-To: <2EC501AC-9678-4D44-934E-EF87AEBBFE56@cs.ucla.edu> References: <2EC501AC-9678-4D44-934E-EF87AEBBFE56@cs.ucla.edu> Message-ID: On Tue, Feb 9, 2016 at 2:34 AM, Alex Afanasyev wrote: > > > On Feb 8, 2016, at 3:10 PM, Carl Zu wrote: > > > > I think lack of documentation is a problem... > > > > I wanted to write some bytes in the interest message in ndnSIM. In ns3, > thanks to their documentation, one can easily understand that in order to > write some bytes, he should serialize a header. > > > > For doing the same thing in ndnSIM, I have had the impression that I > should use "block". Moreover, It looks as though an interest message is a > set of TLVs (based on the explanation in the NDN project website). So > probably if I like to write eight bytes as four pieces of two-byte data, I > should write four TLVs. But indeed, there are many constructors in > block.hpp, and it's just about looking at one code after another to > understand each of them due to lack of documentation... > > Hi Carl, > > I think you're looking into a slightly wrong place. If you want to extend > Interest, you need first define your own TLV (which type to use and > specific content). For simple things you don't need to define your own > class, you can simply store the actual value in some standard type, say > char[8]. After doing so, the only part remain is to update > serialization/deserialization methods of interest.cpp which are called > wireEncode and wireDecode. > > I will agree that there is limited documentation, but there are many > examples of this encoding. > > Hi guys, thanks a lot for your replies. Alex, could you please mention more precisely to which examples you are referring? Thank you. C > add variable to keep your data (and getter/setter methods when needed): > > char m_myValue[8]; > > Add the following to the wireEncode (note that encoding is done in reverse > order): > > totalLength += encoder.prependByteArrayBlock(, m_myValue, > 8); > > And the following to the wireDecode: > > val = m_wire.find(); > if (val != m_wire.elements_end()) { > memcpy(m_myValue, val->value(), val->value_size()); > else > memset(m_myValue, 0, 8); > > --- > Alex > > > > Can someone please give some guidance ???. > > > > thanks and rgds. > > C > > _______________________________________________ > > 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 Thu Feb 11 18:00:13 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 11 Feb 2016 18:00:13 -0800 Subject: [ndnSIM] regarding block.hpp In-Reply-To: References: <2EC501AC-9678-4D44-934E-EF87AEBBFE56@cs.ucla.edu> Message-ID: > On Feb 9, 2016, at 9:24 AM, Carl Zu wrote: > > On Tue, Feb 9, 2016 at 2:34 AM, Alex Afanasyev > wrote: > > > On Feb 8, 2016, at 3:10 PM, Carl Zu > wrote: > > > > I think lack of documentation is a problem... > > > > I wanted to write some bytes in the interest message in ndnSIM. In ns3, thanks to their documentation, one can easily understand that in order to write some bytes, he should serialize a header. > > > > For doing the same thing in ndnSIM, I have had the impression that I should use "block". Moreover, It looks as though an interest message is a set of TLVs (based on the explanation in the NDN project website). So probably if I like to write eight bytes as four pieces of two-byte data, I should write four TLVs. But indeed, there are many constructors in block.hpp, and it's just about looking at one code after another to understand each of them due to lack of documentation... > > Hi Carl, > > I think you're looking into a slightly wrong place. If you want to extend Interest, you need first define your own TLV (which type to use and specific content). For simple things you don't need to define your own class, you can simply store the actual value in some standard type, say char[8]. After doing so, the only part remain is to update serialization/deserialization methods of interest.cpp which are called wireEncode and wireDecode. > > I will agree that there is limited documentation, but there are many examples of this encoding. > > Hi guys, > > thanks a lot for your replies. > > Alex, could you please mention more precisely to which examples you are referring? Hi Carl, I meant wireEncode/wireDecode methods of data structures implemented in ndn-cxx (Data, Interest, MetaInfo, etc.). -- Alex > > Thank you. > C > add variable to keep your data (and getter/setter methods when needed): > > char m_myValue[8]; > > Add the following to the wireEncode (note that encoding is done in reverse order): > > totalLength += encoder.prependByteArrayBlock(, m_myValue, 8); > > And the following to the wireDecode: > > val = m_wire.find(); > if (val != m_wire.elements_end()) { > memcpy(m_myValue, val->value(), val->value_size()); > else > memset(m_myValue, 0, 8); > > --- > Alex > > > > Can someone please give some guidance ???. > > > > thanks and rgds. > > C > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From youngroger64 at gmail.com Sat Feb 13 07:20:54 2016 From: youngroger64 at gmail.com (roger young) Date: Sat, 13 Feb 2016 15:20:54 +0000 Subject: [ndnSIM] video content Message-ID: Hi, i am new to ndnsim. I can run the simulations, but i would like to know if it is possible to send video content without using AMUS server.? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From asifcsep at gmail.com Mon Feb 15 03:59:31 2016 From: asifcsep at gmail.com (Shahid Md. Asif Iqbal) Date: Mon, 15 Feb 2016 17:59:31 +0600 Subject: [ndnSIM] How to drop interest packets in the multicast-strategy.cpp file? In-Reply-To: References: Message-ID: Dear Spyros, Thanks for the suggestion. And, can you (anyone) please tell how to find the number of outfaces or nexthops in case of multicast or broadcast forwarding strategy? On Mon, Feb 8, 2016 at 11:27 PM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi, > > a quick and dirty way to do that is to check the name of every Interest > packet. Assuming that application Interests and Management Interests would > have different names, you can filter the ones that you like. > > Hope that this helps. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > > > > On Feb 8, 2016, at 6:06 AM, Shahid Md. Asif Iqbal > wrote: > > Dear All, > I have added a field in the interest packet, set and updated the value as > it traverses upstream, now how can I drop an interest packet based on that > filed int the multicast-strategy.cpp file? > N.B. I want to drop application interest packets not management interests > _______________________________________________ > 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 don1559 at gmail.com Tue Feb 16 03:48:04 2016 From: don1559 at gmail.com (Ahmed Sadek) Date: Tue, 16 Feb 2016 12:48:04 +0100 Subject: [ndnSIM] Setting up link metric Message-ID: Dear All, What is the difference between setting up the metric in the simulation file : ndn::FibHelper::AddRoute("client", "/", "router1", 150); Or in the topology file: # srcNode dstNode bandwidth metric delay queue client router1 20Mbps 150 50ms 50 And which one take priority? Thanks! Ahmed -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlzu8 at gmail.com Tue Feb 16 23:22:01 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Wed, 17 Feb 2016 08:22:01 +0100 Subject: [ndnSIM] re-compiles everything after a very slight change Message-ID: Hi folks, A very simple problem: Imagine I commit a very slight change in the code (e.g., adding a variable to interest.hpp), and then I run ndn-simple.cpp (without changing anything). Then it first compiles ALL of codes. I do not know the reason, but this is very time consuming as one is supposed to commit a lot of changes before his code works properly, and it is normal to run almost after each and every change. Thank you for any guidance. Rgds, C -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed Feb 17 00:45:33 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 17 Feb 2016 00:45:33 -0800 Subject: [ndnSIM] re-compiles everything after a very slight change In-Reply-To: References: Message-ID: <4FFCECF1-A7E0-484B-941E-972A29E7F1DC@cs.ucla.edu> Hi Carl, It probably doesn't compile all the code, but it will compile a significant portion of the code, as change of interest affect a lot of things (i.e., many parts of ndn-cxx, basically everything in forwarding, etc). Changes in less impactful headers and .cpp files should not incur such large recompilation. Unfortunately, this is price of C++ for efficiency. --- Alex > On Feb 16, 2016, at 11:22 PM, Carl Zu wrote: > > Hi folks, > > A very simple problem: > > Imagine I commit a very slight change in the code (e.g., adding a variable to interest.hpp), and then I run ndn-simple.cpp (without changing anything). Then it first compiles ALL of codes. I do not know the reason, but this is very time consuming as one is supposed to commit a lot of changes before his code works properly, and it is normal to run almost after each and every change. > > Thank you for any guidance. > > Rgds, > C -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From ayush0071 at gmail.com Wed Feb 17 21:49:46 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Thu, 18 Feb 2016 11:19:46 +0530 Subject: [ndnSIM] Getting hold on the face object Message-ID: Hello everyone, I am trying to get hold of the* face* on which the currently used ns-3 queue is installed by creating its object as follows: *Ptr congface = this->GetObject(); uint32_t fid=congface->GetId();* But it is throwing the following error on building. *./libns3-dev-network-optimized.so: undefined reference to `ns3::ndn::Face::GetTypeId()'./libns3-dev-network-optimized.so: undefined reference to `typeinfo for ns3::ndn::Face'collect2: error: ld returned 1 exit status* Can I get an idea where I am making a mistake. Thanks & Regards, Ayush Agarwal Post Graduate Student, NITK- Surathkal, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Thu Feb 18 08:42:34 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Thu, 18 Feb 2016 22:12:34 +0530 Subject: [ndnSIM] Access to the queue inside OnData() in forwarding-strategy Message-ID: Hello everyone, I am using the following code to get hold of the queue object inside the forwarding strategy, OnData(....) function. Ptr netDeviceFace = DynamicCast (inFace); if (netDeviceFace == NULL) { } Ptr nd = netDeviceFace->GetNetDevice (); if (nd == NULL) { } PointerValue txQueueAttribute; nd->GetAttribute ("TxQueue", txQueueAttribute); Ptr txQueue = txQueueAttribute.Get (); if (txQueue == 0) { } But I am getting a segmentation fault SIGSEV error while fetching the NetDevice object and the following errors for accessing queue. ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: ?PointerValue? was not declared in this scope PointerValue txQueueAttribute; ^ ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: ?txQueueAttribute? was not declared in this scope nd->GetAttribute ("TxQueue", txQueueAttribute); ^ ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: expected primary-expression before ?>? token Ptr txQueue = txQueueAttribute.Get (); ^ ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: expected primary-expression before ?)? token Ptr txQueue = txQueueAttribute.Get (); Can you please point me out where I am going wrong. *Thanks & Regards,* *Ayush Agarwal* *Reseach Scholar, Computer Science* *National Institute of Technology, KarnatakaSurathkal, India* -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Thu Feb 18 22:02:28 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Fri, 19 Feb 2016 11:32:28 +0530 Subject: [ndnSIM] Access to the queue inside OnData() in forwarding-strategy In-Reply-To: References: Message-ID: Hi, I forgot to mention I am using ndnSIM version 1.0 On Thu, Feb 18, 2016 at 10:12 PM, Ayush Agarwal wrote: > Hello everyone, > > I am using the following code to get hold of the queue object inside the > forwarding strategy, OnData(....) function. > > Ptr netDeviceFace = DynamicCast (inFace); > if (netDeviceFace == NULL) { } > Ptr nd = netDeviceFace->GetNetDevice (); > if (nd == NULL) { } > PointerValue txQueueAttribute; > nd->GetAttribute ("TxQueue", txQueueAttribute); > Ptr txQueue = txQueueAttribute.Get (); > if (txQueue == 0) { } > > But I am getting a segmentation fault SIGSEV error while fetching the > NetDevice object and the following errors for accessing queue. > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: > ?PointerValue? was not declared in this scope > PointerValue txQueueAttribute; > ^ > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: > ?txQueueAttribute? was not declared in this scope > nd->GetAttribute ("TxQueue", txQueueAttribute); > ^ > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: expected > primary-expression before ?>? token > Ptr txQueue = txQueueAttribute.Get (); > ^ > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: expected > primary-expression before ?)? token > Ptr txQueue = txQueueAttribute.Get (); > > > Can you please point me out where I am going wrong. > > > *Thanks & Regards,* > > *Ayush Agarwal* > > *Reseach Scholar, Computer Science* > > *National Institute of Technology, KarnatakaSurathkal, India* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlzu8 at gmail.com Fri Feb 19 13:53:58 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Fri, 19 Feb 2016 22:53:58 +0100 Subject: [ndnSIM] How to get the ID of the node who has received an interest ? Message-ID: Hi folks, in forwarder::OnIncomingInterest, how to get the ID of the node who has received an interest ? Thanks very much. C -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Fri Feb 19 19:41:28 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Fri, 19 Feb 2016 20:41:28 -0700 Subject: [ndnSIM] How to get the ID of the node who has received an interest ? In-Reply-To: References: Message-ID: Simulator::GetContext() see http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-December/002285.html On Fri, Feb 19, 2016 at 2:53 PM, Carl Zu wrote: > Hi folks, > > in forwarder::OnIncomingInterest, how to get the ID of the node who has > received an interest ? > > Thanks very much. > C > > _______________________________________________ > 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 Fri Feb 19 19:49:52 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 19 Feb 2016 19:49:52 -0800 Subject: [ndnSIM] Setting up link metric In-Reply-To: References: Message-ID: <6F80F66C-F959-4ED0-A605-2AECBEA3B21F@cs.ucla.edu> Hi Ahmed, the first case refers to the establishment of a route that may be used for Interest forwarding. Specifically, the FibHelper will add the appropriate FIB entries on the routers across the specified path. The second case refers to the physical properties (bandwidth, delay, queue size) of a link between two adjacent nodes. Hope that this helps. Please let me know if you have any follow-up questions. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 16, 2016, at 3:48 AM, Ahmed Sadek wrote: > > Dear All, > > What is the difference between setting up the metric in the simulation file : > ndn::FibHelper::AddRoute("client", "/", "router1", 150); > > Or in the topology file: > # srcNode dstNode bandwidth metric delay queue > client router1 20Mbps 150 50ms 50 > > And which one take priority? > > Thanks! > Ahmed > _______________________________________________ > 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 don1559 at gmail.com Sat Feb 20 02:58:41 2016 From: don1559 at gmail.com (Ahmed Sadek) Date: Sat, 20 Feb 2016 11:58:41 +0100 Subject: [ndnSIM] Setting up link metric In-Reply-To: <6F80F66C-F959-4ED0-A605-2AECBEA3B21F@cs.ucla.edu> References: <6F80F66C-F959-4ED0-A605-2AECBEA3B21F@cs.ucla.edu> Message-ID: Hi Spyridon , Thank you for your reply. I still don't understand. If using the FibHelper I set the *metric *between client 1-> Router 1 to be 100 and in the topology file I set up the *metric *between client 1-> Router 1 to be 200, so which one takes effect and why ? Thanks! Ahmed On Sat, Feb 20, 2016 at 4:49 AM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi Ahmed, > > the first case refers to the establishment of a route that may be used for > Interest forwarding. Specifically, the FibHelper will add the appropriate > FIB entries on the routers across the specified path. > > The second case refers to the physical properties (bandwidth, delay, queue > size) of a link between two adjacent nodes. > > Hope that this helps. Please let me know if you have any follow-up > questions. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > > > > On Feb 16, 2016, at 3:48 AM, Ahmed Sadek wrote: > > Dear All, > > What is the difference between setting up the metric in the simulation > file : > ndn::FibHelper::AddRoute("client", "/", "router1", 150); > > Or in the topology file: > # srcNode dstNode bandwidth metric delay queue > client router1 20Mbps 150 50ms 50 > > And which one take priority? > > Thanks! > Ahmed > _______________________________________________ > 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 z.rezaiefar at yahoo.com Sun Feb 21 22:21:33 2016 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Mon, 22 Feb 2016 06:21:33 +0000 (UTC) Subject: [ndnSIM] how to access all of entries in PIT table in ndn-forwarding strategy function References: <1414315152.7937287.1456122093945.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1414315152.7937287.1456122093945.JavaMail.yahoo@mail.yahoo.com> Hello,I want to check all of entries in PIT tale without any specific name.?I mean after calling function OnInterest in ndn-forwarding-strategy.cc , I want to check that I have received any?Interest from this interface before or not. Then, I need to look at whole tale of PIT to check that? there is any interest with this interface or not. how can I write loop function to search whole of PIT table?Moreover , I?would like to mention that I use ndnsim version 1.any help will be appreciate .Thanks in advanceregards?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Sun Feb 21 23:19:40 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Mon, 22 Feb 2016 12:49:40 +0530 Subject: [ndnSIM] Accessing net device faces Message-ID: Hello everyone, I am trying to access all the net device interfaces associated to a face. Firstly I am getting the object of ndnNetDeviceFace and then with its help I am accessing the net devices associated to it. I am also handling the NULL cases for the ndnNetDeviceFace to avoid segmentation faults. But due to this I am unable to access the net devices with id 0. The code I am using is as follows: Ptr netDeviceFace = DynamicCast (inFace); //std::cout << "device id is" << netDeviceFace->GetTypeId() << "\n"; if (netDeviceFace == NULL) { std::cout<<"null\n" } if(netDeviceFace!=NULL) { Ptr nd = netDeviceFace->GetNetDevice (); ------------ ------------ } Please help me in a solution so that I can access all the net devices without any segmentation faults. *Thanks & Regards,* *Ayush Agarwal* *Reseach Scholar, Computer Science* *National Institute of Technology, KarnatakaSurathkal, India* -------------- next part -------------- An HTML attachment was scrubbed... URL: From monikabaraut at gmail.com Mon Feb 22 21:14:07 2016 From: monikabaraut at gmail.com (Monika Dangi) Date: Tue, 23 Feb 2016 00:14:07 -0500 Subject: [ndnSIM] Error compiling "Scenario" in ndnSIM Message-ID: Hello All, I am having problem while running real experiment from directory scenario, the script(ndn-simple) is in scenario folder but when i run the command- still the same output. please tell me where am i wrong. *./waf --run=ndn-simple* the output is: Waf: Entering directory `/home/monika/Desktop/ndnSIM/scenario/build' Waf: Leaving directory `/home/monika/Desktop/ndnSIM/scenario/build' 'build' finished successfully (0.015s) Traceback (most recent call last): File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Scripting.py", line 103, in waf_entry_point run_commands() File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Scripting.py", line 166, in run_commands run_command('shutdown') File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Scripting.py", line 155, in run_command ctx.execute() File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Context.py", line 92, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Context.py", line 133, in recurse user_function(self) File "/home/monika/Desktop/ndnSIM/scenario/wscript", line 122, in shutdown return subprocess.call (argv) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory i also read the previous conversation but still the same output, where m i wrong? -- Monika MTech CSE IIT Roorkee -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlzu8 at gmail.com Tue Feb 23 03:19:11 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Tue, 23 Feb 2016 12:19:11 +0100 Subject: [ndnSIM] meaning of certain nfd.Forwarder logs ? Message-ID: Hi folks, I am running ndn-simple.cpp with prefix "nfd.Forwarder", certain logs appear in the beginning of terminal that I cannot clearly understand. I copy them below and ask my questions: the first two logs: 0s -1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=1 data=/localhost/nfd/faces/events/%FE%00 0s -1 nfd.Forwarder:onDataUnsolicited(): [DEBUG] onDataUnsolicited face=1 data=/localhost/nfd/faces/events/%FE%00 cached who is node -1 ?! (I suppose it should not be a node...). One of the first and foremost claims in NDN is a "pull-based" data retrieval. Why then terminal starts with incoming data pipeline before to sending any interests ? And why it is mentioned "cached" ? Repeating the same pattern, it changes to: 0s -1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=1 data=/localhost/nfd/fib/add-nexthop/h%0C%07%00i%02%01%00j%04%7F%FF%FF%FF/%01/DF (and a lot more :-) 0s -1 nfd.Forwarder:onDataUnsolicited(): [DEBUG] onDataUnsolicited face=1 data=/localhost/nfd/fib/add-nexthop/h%0C%07%00i%02%01%00j%04%7F%FF%FF%FF/%01/DFa%82t%E8%13%C6/%164%1B%01%01%1C%2F%07-(and a lot more :-) *Is this for FIB population ? I would really like to understand this deeper...* Later it changes to: 0s -1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=1 data=/localhost/nfd/strategy-choice/set/h3%07%08%08%06prefixk%27%07%25%08%09localhost And : 0s -1 ndn.Consumer:Consumer() 0s -1 ndn.Producer:Producer() Any guidance would be highly appreciated. C -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlzu8 at gmail.com Tue Feb 23 06:29:21 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Tue, 23 Feb 2016 15:29:21 +0100 Subject: [ndnSIM] interest=/localhost/nfd/faces/events/%FE%05 ? Message-ID: Hi ! there are some interests that come in between ordinary interests. For example, look at the two types of interest messages in the following logs. Type 1 is clearly an interest sent for retrieving a content object with a certain prefix. What is interest type 2 ? *Type1: * 2s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/prefix/%FE%00 *Type2*: 2s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=257 interest=/localhost/nfd/faces/events/%FE%05 Thanks very much. C -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue Feb 23 09:21:30 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 23 Feb 2016 09:21:30 -0800 Subject: [ndnSIM] Error compiling "Scenario" in ndnSIM In-Reply-To: References: Message-ID: Hi Monika, could you please provide some specific steps (commands, what version of the simulator your are running, what commands you used to install it) for me to reproduce the error? Unfortunately, right now, I cannot reproduce it. Thank you, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 22, 2016, at 9:14 PM, Monika Dangi wrote: > > Hello All, > I am having problem while running real experiment from directory scenario, the script(ndn-simple) is in scenario folder but when i run the command- > still the same output. > > please tell me where am i wrong. > ./waf --run=ndn-simple > > the output is: > > Waf: Entering directory `/home/monika/Desktop/ndnSIM/scenario/build' > Waf: Leaving directory `/home/monika/Desktop/ndnSIM/scenario/build' > 'build' finished successfully (0.015s) > Traceback (most recent call last): > File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Scripting.py", line 103, in waf_entry_point > run_commands() > File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Scripting.py", line 166, in run_commands > run_command('shutdown') > File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Scripting.py", line 155, in run_command > ctx.execute() > File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Context.py", line 92, in execute > self.recurse([os.path.dirname(g_module.root_path)]) > File "/home/monika/Desktop/ndnSIM/scenario/.waf-1.8.5-d178df7a9bb732db109001d6b461550f/waflib/Context.py", line 133, in recurse > user_function(self) > File "/home/monika/Desktop/ndnSIM/scenario/wscript", line 122, in shutdown > return subprocess.call (argv) > File "/usr/lib/python2.7/subprocess.py", line 522, in call > return Popen(*popenargs, **kwargs).wait() > File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > i also read the previous conversation but still the same output, where m i wrong? > > -- > Monika > MTech CSE > IIT Roorkee > _______________________________________________ > 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 Tue Feb 23 09:32:41 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 23 Feb 2016 09:32:41 -0800 Subject: [ndnSIM] interest=/localhost/nfd/faces/events/%FE%05 ? In-Reply-To: References: Message-ID: <76A8DB9F-B792-4AEE-8A5F-217F38465E93@cs.ucla.edu> Hi Carl, the second interest indicates a command Interest sent to the Face manager of NFD. I guess that it was probably sent during the process of registering a new face for Interest forwarding. Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 23, 2016, at 6:29 AM, Carl Zu wrote: > > /localhost/nfd/faces -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Feb 23 10:25:25 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 23 Feb 2016 10:25:25 -0800 Subject: [ndnSIM] interest=/localhost/nfd/faces/events/%FE%05 ? In-Reply-To: References: Message-ID: <9110651B-D281-48FB-AF43-D9B45E19E2C4@cs.ucla.edu> > On Feb 23, 2016, at 6:29 AM, Carl Zu wrote: > > Hi ! > > there are some interests that come in between ordinary interests. For example, look at the two types of interest messages in the following logs. Type 1 is clearly an interest sent for retrieving a content object with a certain prefix. What is interest type 2 ? > > Type1: > 2s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/prefix/%FE%00 > > Type2: > 2s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=257 interest=/localhost/nfd/faces/events/%FE%05 Hi Carl, When NFD detects there is a new face (e.g., new application), it notifies its internal module and any other interested applications about the fact. You can learn more about this here: http://redmine.named-data.net/projects/nfd/wiki/Notification Does this mechanism affect your simulations? --- Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From carlzu8 at gmail.com Tue Feb 23 21:54:27 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Wed, 24 Feb 2016 06:54:27 +0100 Subject: [ndnSIM] interest=/localhost/nfd/faces/events/%FE%05 ? In-Reply-To: <9110651B-D281-48FB-AF43-D9B45E19E2C4@cs.ucla.edu> References: <9110651B-D281-48FB-AF43-D9B45E19E2C4@cs.ucla.edu> Message-ID: Hi Alex, Thanks for your reply. These notification streams are not only for new faces. They are for strategy choice, and in particular for FIB population (add-nexthop). The important question is that what shall I do if I like to implement my own FIB population method ? Minor questions (logs are for ndn-simple.cpp): 1. Why these notification streams start from node "-1" (I believe it should not be a node), and then they continue for real nodes. See here: 0s -1 nfd.Forwarder:onDataUnsolicited(): [DEBUG] onDataUnsolicited face=1 data=/localhost/nfd/fib/add-nexthop/h%0C%...... 2. Notification streams not only contain interests and data, but they contain "matching" as well (for add-nexthop and enable-local-control). What is that ?. See here: 0s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/localhost/nfd/fib/add-nexthop/h%1A OR 0s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/localhost/nfd/faces/enable-local-control/h%03........ 3. even if googled and read, have not understood well "enable-local-control". Small explanation would be appreciated. Thanks very much, C On Tue, Feb 23, 2016 at 7:25 PM, Alex Afanasyev wrote: > > On Feb 23, 2016, at 6:29 AM, Carl Zu wrote: > > Hi ! > > there are some interests that come in between ordinary interests. For > example, look at the two types of interest messages in the following logs. > Type 1 is clearly an interest sent for retrieving a content object with a > certain prefix. What is interest type 2 ? > > *Type1: * > 2s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest > face=256 interest=/prefix/%FE%00 > > *Type2*: > 2s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest > face=257 interest=/localhost/nfd/faces/events/%FE%05 > > > Hi Carl, > > When NFD detects there is a new face (e.g., new application), it notifies > its internal module and any other interested applications about the fact. > You can learn more about this here: > http://redmine.named-data.net/projects/nfd/wiki/Notification > > Does this mechanism affect your simulations? > > --- > Alex > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Feb 23 22:31:00 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 23 Feb 2016 22:31:00 -0800 Subject: [ndnSIM] interest=/localhost/nfd/faces/events/%FE%05 ? In-Reply-To: References: <9110651B-D281-48FB-AF43-D9B45E19E2C4@cs.ucla.edu> Message-ID: <9861A19A-9AD5-47E7-8A61-D3CB81716891@cs.ucla.edu> Hi Carl, In the beginning of simulation (time moment 0s), there are a few initial tasks that NFD performs internally. One of them is setting up internal RIB manager. RIB manager is separated from main forwarding and uses interest-data exchange to receive notifications that new face is created, face is destroyed, and few others. The LocalControl refer to LocalControlHeader protocol http://redmine.named-data.net/projects/nfd/wiki/LocalControlHeader, which allows additional meta information to be communicated alongside interest and data packets. You also may want to check http://named-data.net/wp-content/uploads/2015/10/ndn-0021-5-nfd-developer-guide.pdf for further explanation how RIB manager module works. Regarding your question. Most likely, you would want to populate RIB, not FIB: FIB is calculated from RIB, taking into account inheritance and capture flags. Though, if you like, you can still work directly with FIB and completely disable RIB manager module (http://ndnsim.net/2.1/doxygen/classns3_1_1ndn_1_1StackHelper.html#a1820acb048f802a6686dc92518a4a826). Either way, you have two options. One option is to use NFD management protocol and send register/unregister (for RIB management) and add-nexthop/remove-nexthop (for FIB management). For the latter, you can use FibHelper, for the former, you will need a little bit of code similar to FibHelper (we are overdue in adding RibHelper). Second option is a little bit hacky (it can be "faster", but I would recommend it) and will work only in the simulation: you can get direct access to Fib instance on the node and add entries directly: auto fib = node->GetObject()->getForwarder()->getFib(); ... (few comments inline) > On Feb 23, 2016, at 9:54 PM, Carl Zu wrote: > > Hi Alex, > > Thanks for your reply. These notification streams are not only for new faces. They are for strategy choice, and in particular for FIB population (add-nexthop). The important question is that what shall I do if I like to implement my own FIB population method ? > > Minor questions (logs are for ndn-simple.cpp): > 1. Why these notification streams start from node "-1" (I believe it should not be a node), and then they continue for real nodes. See here: > > 0s -1 nfd.Forwarder:onDataUnsolicited(): [DEBUG] onDataUnsolicited face=1 data=/localhost/nfd/fib/add-nexthop/h%0C%...... -1 means that this event was scheduled outside context of the simulation node. Most likely, it happened during scenario initialization. I wouldn't worry about this. > 2. Notification streams not only contain interests and data, but they contain "matching" as well (for add-nexthop and enable-local-control). What is that ?. See here: > > 0s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/localhost/nfd/fib/add-nexthop/h%1A > > OR > > 0s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/localhost/nfd/faces/enable-local-control/h%03........ You may get a better idea after reading the link I gave you above. Essentially, you see that RIB manager module requested "control-header" support on its face and was granted it by NFD. -- Alex > 3. even if googled and read, have not understood well "enable-local-control". Small explanation would be appreciated. > > Thanks very much, > C > > > > > > On Tue, Feb 23, 2016 at 7:25 PM, Alex Afanasyev wrote: > >> On Feb 23, 2016, at 6:29 AM, Carl Zu wrote: >> >> Hi ! >> >> there are some interests that come in between ordinary interests. For example, look at the two types of interest messages in the following logs. Type 1 is clearly an interest sent for retrieving a content object with a certain prefix. What is interest type 2 ? >> >> Type1: >> 2s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/prefix/%FE%00 >> >> Type2: >> 2s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=257 interest=/localhost/nfd/faces/events/%FE%05 > > Hi Carl, > > When NFD detects there is a new face (e.g., new application), it notifies its internal module and any other interested applications about the fact. You can learn more about this here: http://redmine.named-data.net/projects/nfd/wiki/Notification > > Does this mechanism affect your simulations? > > --- > Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From agnihotrirohit0 at gmail.com Wed Feb 24 03:20:29 2016 From: agnihotrirohit0 at gmail.com (Rohit Agnihotri) Date: Wed, 24 Feb 2016 16:50:29 +0530 Subject: [ndnSIM] ndnSIM Digest, Vol 38, Issue 22 In-Reply-To: References: Message-ID: Hello all, I am a beginner in ndnSIM and want to execute ndnSIM-ddos-interest-flooding project. when i execute the ./waf configure it gives build successful and when i run ./waf it shows following error. Build failed -> task in 'extensions' failed (exit status 1): {task 140558924801872: cxx satisfaction-based-interest-acceptance.cc -> satisfaction-based-interest-acceptance.cc.1.o} ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/strategies/satisfaction-based-interest-acceptance.cc', '-c', '-o', 'extensions/strategies/satisfaction-based-interest-acceptance.cc.1.o'] -> task in 'extensions' failed (exit status 1): {task 140558924801616: cxx stats.cc -> stats.cc.1.o} ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/stats.cc', '-c', '-o', 'extensions/stats.cc.1.o'] -> task in 'extensions' failed (exit status 1): {task 140558924801488: cxx load-stats-node.cc -> load-stats-node.cc.1.o} ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/stats/load-stats-node.cc', '-c', '-o', 'extensions/stats/load-stats-node.cc.1.o'] -> task in 'extensions' failed (exit status 1): {task 140558924801104: cxx ddos-app.cc -> ddos-app.cc.1.o} ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/ddos-app.cc', '-c', '-o', 'extensions/ddos-app.cc.1.o'] please help me to resolve the error...and to run the project. Thanks in advance. On Sat, Jan 30, 2016 at 1:06 AM, wrote: > Send ndnSIM mailing list submissions to > ndnsim at lists.cs.ucla.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > or, via email, send a message with subject or body 'help' to > ndnsim-request at lists.cs.ucla.edu > > You can reach the person managing the list at > ndnsim-owner at lists.cs.ucla.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ndnSIM digest..." > > > Today's Topics: > > 1. Re: Regarding Forwarding Strategies Best Route and NCC > (Spyridon (Spyros) Mastorakis) > 2. how to write (serialize) something in interest/data (Carl Zu) > 3. Re: Regarding Forwarding Strategies Best Route and NCC > (Ahmed Sadek) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 29 Jan 2016 09:11:17 -0800 > From: "Spyridon (Spyros) Mastorakis" > To: Ahmed Sadek > Cc: Junxiao Shi , ndnsim > > Subject: Re: [ndnSIM] Regarding Forwarding Strategies Best Route and > NCC > Message-ID: <27CE63C8-6ECC-433A-9E64-1108CC3D145F at cs.ucla.edu> > Content-Type: text/plain; charset="utf-8" > > Hi Ahmed, > > it would be a good idea to take a look at the NFD developer?s guide as > well. There is a section describing each strategy: > > > http://named-data.net/wp-content/uploads/2015/10/ndn-0021-5-nfd-developer-guide.pdf > < > http://named-data.net/wp-content/uploads/2015/10/ndn-0021-5-nfd-developer-guide.pdf > > > > Hope that this helps. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ < > http://cs.ucla.edu/~mastorakis/> > Internet Research Laboratory > Computer Science Department > UCLA > > > > > > On Jan 29, 2016, at 1:39 AM, Ahmed Sadek wrote: > > > > Hi Junxiao, > > > > Thank you for your reply. > > > > What routing metrics to use is an unsolved problem < > http://redmine.named-data.net/issues/2010>. > > NDN testbed is using round-trip time (in milliseconds) measured by IP > ping as its routing metrics. > > > > So hop count is not used as a metric ? > > > > See CcndStrategy < > http://redmine.named-data.net/projects/nfd/wiki/CcndStrategy> for > information on NCC strategy. > > > > I read it before sending the question and didn't understand it, how NCC > is measuring delay on interfaces and selecting the lowest delay ? Is it > sending IP ping messages broadcast flood on each interface each few seconds > and ranking the interfaces based on this values ? and does it take prefix > into account or only interfaces ? > > > > Thanks! > > Ahmed > > > > On Thu, Jan 28, 2016 at 9:47 PM, Junxiao Shi < > shijunxiao at email.arizona.edu > wrote: > > Hi Ahmed > > > > What routing metrics to use is an unsolved problem < > http://redmine.named-data.net/issues/2010>. > > NDN testbed is using round-trip time (in milliseconds) measured by IP > ping as its routing metrics. > > > > See CcndStrategy < > http://redmine.named-data.net/projects/nfd/wiki/CcndStrategy> for > information on NCC strategy. > > > > Yours, Junxiao > > > >> On Jan 28, 2016, at 9:00 AM, Ahmed Sadek don1559 at gmail.com>> wrote: > >> > >> Dear All, > >> > >> I am trying to understand better the two strategies of best route and > NCC. My understanding is: > >> > >> BestRoute: This strategy relies on routing information and forwards > Interests on the path with the lowest costs considering a specific metric. > >> So I was wondering what routing metrics options we can consider for > this strategy ? > >> > >> NCC: Interests are forwarded to the interface, that provides content > with the lowest delay. > >> So how is the delay is measured here on a low level for each interface? > and is it measured for each prefix for each interface or only for each > interface ? > >> > >> I really appreciate any explanation or if you point me to a link > explaining it. > >> > >> Thanks ! > >> > >> Ahmed Sadek > >> _______________________________________________ > >> ndnSIM mailing list > >> ndnSIM at lists.cs.ucla.edu > >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim < > 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: < > http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160129/4be63873/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Fri, 29 Jan 2016 20:34:09 +0100 > From: Carl Zu > To: ndnSIM at lists.cs.ucla.edu > Subject: [ndnSIM] how to write (serialize) something in interest/data > Message-ID: > < > CAFxAFZUgHMbaVFy2Hvf0wf-kqKK5V22TOjSyamZEo8ay9Fo8pQ at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Dear all, > > In ns-3, we could serialize something in packet header or tag. How we can > do this in ndnSIM, i.e., writing something in interest messages/data > objects ? > > I know that in ns-3 we were using ns3::Packet, while here we use a TLV NDN > packet. > > Thanks in advance for your guidance. > C > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160129/365e93a5/attachment-0001.html > > > > ------------------------------ > > Message: 3 > Date: Fri, 29 Jan 2016 20:36:13 +0100 > From: Ahmed Sadek > To: "Spyridon (Spyros) Mastorakis" > Cc: Junxiao Shi , ndnsim > > Subject: Re: [ndnSIM] Regarding Forwarding Strategies Best Route and > NCC > Message-ID: > < > CA+Wzd2DW3mjpJfZMnxPNkhZcZxWCvBYVRsrq7yc4dSqzFqDY2A at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi Spyros, > > Thank you for your reply. Honestly, I have checked the developer guide > before asking and this is what I found on NSS Strategy: > 6.2.4 NCC Strategy The NCC strategy 8 is an reimplementation of CCNx 0.7.2 > default strategy [16]. It has similar algorithm but is not guaranteed to be > equivalent. This strategy is implemented as nfd::NccStrategy class. > > And the citation lead to the same website provided above , which I have > check and didn't understand how it measures delay for each interface. > > Now I am checking the code here " > > https://github.com/0xbb/amus-ndnSIM/blob/master/NFD/daemon/fw/ncc-strategy.cpp > " > > If anyone can give few words explaining this strategy, I would be thankful. > > Thanks! > Ahmed > > On Fri, Jan 29, 2016 at 6:11 PM, Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu> wrote: > > > Hi Ahmed, > > > > it would be a good idea to take a look at the NFD developer?s guide as > > well. There is a section describing each strategy: > > > > > > > http://named-data.net/wp-content/uploads/2015/10/ndn-0021-5-nfd-developer-guide.pdf > > > > Hope that this helps. > > > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > Computer Science Department > > UCLA > > > > > > > > > > On Jan 29, 2016, at 1:39 AM, Ahmed Sadek wrote: > > > > Hi Junxiao, > > > > Thank you for your reply. > > > > What routing metrics to use is an unsolved problem > > . > > NDN testbed is using round-trip time (in milliseconds) measured by IP > ping > > as its routing metrics. > > > > *So hop count is not used as a metric ?* > > > > See CcndStrategy > > for > > information on NCC strategy. > > > > *I read it before sending the question and didn't understand it, how NCC > > is measuring delay on interfaces and selecting the lowest delay ? Is it > > sending IP ping messages broadcast flood on each interface each few > seconds > > and ranking the interfaces based on this values ? and does it take prefix > > into account or only interfaces ?* > > > > Thanks! > > Ahmed > > > > On Thu, Jan 28, 2016 at 9:47 PM, Junxiao Shi < > shijunxiao at email.arizona.edu > > > wrote: > > > >> Hi Ahmed > >> > >> What routing metrics to use is an unsolved problem > >> . > >> NDN testbed is using round-trip time (in milliseconds) measured by IP > >> ping as its routing metrics. > >> > >> See CcndStrategy > >> for > >> information on NCC strategy. > >> > >> Yours, Junxiao > >> > >> On Jan 28, 2016, at 9:00 AM, Ahmed Sadek wrote: > >> > >> Dear All, > >> > >> I am trying to understand better the two strategies of best route and > >> NCC. My understanding is: > >> > >> BestRoute: This strategy relies on routing information and forwards > >> Interests on the path with the lowest costs considering a specific > metric. > >> So I was wondering what routing metrics options we can consider for this > >> strategy ? > >> > >> NCC: Interests are forwarded to the interface, that provides content > with > >> the lowest delay. > >> So how is the delay is measured here on a low level for each interface? > >> and is it measured for each prefix for each interface or only for each > >> interface ? > >> > >> I really appreciate any explanation or if you point me to a link > >> explaining it. > >> > >> Thanks ! > >> > >> Ahmed Sadek > >> _______________________________________________ > >> 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: < > http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160129/f71afd8a/attachment.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > ------------------------------ > > End of ndnSIM Digest, Vol 38, Issue 22 > ************************************** > -- Regards Rohit Agnihotri -------------- next part -------------- An HTML attachment was scrubbed... URL: From srk130230 at utdallas.edu Wed Feb 24 14:12:39 2016 From: srk130230 at utdallas.edu (Komajwar, Sharvari) Date: Wed, 24 Feb 2016 22:12:39 +0000 Subject: [ndnSIM] Measuring a download time Message-ID: Hello, I am working on Multipath forwarding strategy for NDN. I am using ConsumerCbr application to generate interest packets. Can you please suggest me the way to measure a downloading time for a file of particular size? Regards, Sharvari -------------- next part -------------- An HTML attachment was scrubbed... URL: From fcampioni at algomau.ca Thu Feb 25 12:36:29 2016 From: fcampioni at algomau.ca (Fabio Campioni) Date: Thu, 25 Feb 2016 20:36:29 +0000 Subject: [ndnSIM] Getting hop count Message-ID: <1456432588.7992.4.camel@algomau.ca> I am trying to get the hop count from a packet in a custom content store implementation policy I am working on, in the latest version of ndnSIM (2.1). I have created my own policy_traits struct based on the ones already present. I have also instantiated a ContentStoreImpl class with the new policy traits. In the insert method, I have the following code: Ptr pkt = item->payload()->GetPacket(); FwHopCountTag tag; pkg->PeekPacketTag(tag); However, when compiling, I get an error message: ../src/ndnSIM/model/cs/../../utils/trie/hop-policy.hpp:105:60: error: ?class ns3::ndn::cs::EntryImpl >? has no member named ?GetPacket? Ptr pkt = item->payload()->GetPacket(); I have even made sure to include "ndn-fw-hop-count-tag.hpp" in the file, but it still has not made any difference. Not sure if that method has been depreciated or if I am overseeing something. If anyone has any advice I would greatly appreciate it. Thank you. From don1559 at gmail.com Thu Feb 25 13:55:02 2016 From: don1559 at gmail.com (Ahmed Sadek) Date: Thu, 25 Feb 2016 22:55:02 +0100 Subject: [ndnSIM] Getting hop count In-Reply-To: <1456432588.7992.4.camel@algomau.ca> References: <1456432588.7992.4.camel@algomau.ca> Message-ID: Is it pkt or pkg ? On Thu, Feb 25, 2016 at 9:36 PM, Fabio Campioni wrote: > I am trying to get the hop count from a packet in a custom content > store implementation policy I am working on, in the latest version of > ndnSIM (2.1). > > I have created my own policy_traits struct based on the ones already > present. I have also instantiated a ContentStoreImpl class with the new > policy traits. In the insert method, I have the following code: > > Ptr pkt = item->payload()->GetPacket(); > FwHopCountTag tag; > pkg->PeekPacketTag(tag); > > However, when compiling, I get an error message: > > ../src/ndnSIM/model/cs/../../utils/trie/hop-policy.hpp:105:60: error: > ?class > ns3::ndn::cs::EntryImpl ::hop_policy_traits> >? has no member named ?GetPacket? > Ptr pkt = item->payload()->GetPacket(); > > I have even made sure to include "ndn-fw-hop-count-tag.hpp" in the > file, but it still has not made any difference. Not sure if that method > has been depreciated or if I am overseeing something. If anyone has any > advice I would greatly appreciate it. Thank you. > > _______________________________________________ > 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 z.rezaiefar at yahoo.com Thu Feb 25 18:42:04 2016 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Fri, 26 Feb 2016 02:42:04 +0000 (UTC) Subject: [ndnSIM] access to content store data References: <211283923.10521871.1456454524070.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <211283923.10521871.1456454524070.JavaMail.yahoo@mail.yahoo.com> Dear Alex,if it does not mind, may I know how I can access the names of data sored in content store in ndn-forwarding-strategy.cc function?I would like to say that I?am using ndnsim version 1.Thanks in advance best regards? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Fri Feb 26 00:26:52 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 26 Feb 2016 00:26:52 -0800 Subject: [ndnSIM] Getting hop count In-Reply-To: <1456432588.7992.4.camel@algomau.ca> References: <1456432588.7992.4.camel@algomau.ca> Message-ID: > On Feb 25, 2016, at 12:36 PM, Fabio Campioni wrote: > > I am trying to get the hop count from a packet in a custom content > store implementation policy I am working on, in the latest version of > ndnSIM (2.1). > > I have created my own policy_traits struct based on the ones already > present. I have also instantiated a ContentStoreImpl class with the new > policy traits. In the insert method, I have the following code: > > Ptr pkt = item->payload()->GetPacket(); > FwHopCountTag tag; > pkg->PeekPacketTag(tag); Hi Fabio, It's a little bit more complicated than that: payload() corresponds to ns3::ndn::cs::Entry (model/cs/ndn-content-store.hpp). You need to call GetData(), and then try to get the tag (it may not exist). auto data = item->payload()->GetData(); auto dataTag = data->typename getTag(); if (dataTag == nullptr) { // data has never been transferred over NetDeviceChannel (e.g., from app) return; } FwHopCountTag tag; bool hasTag = dataTag->getPacket()->PeekPacketTag(tag); ... --- Alex > > However, when compiling, I get an error message: > > ../src/ndnSIM/model/cs/../../utils/trie/hop-policy.hpp:105:60: error: > ?class > ns3::ndn::cs::EntryImpl ::hop_policy_traits> >? has no member named ?GetPacket? > Ptr pkt = item->payload()->GetPacket(); > > I have even made sure to include "ndn-fw-hop-count-tag.hpp" in the > file, but it still has not made any difference. Not sure if that method > has been depreciated or if I am overseeing something. If anyone has any > advice I would greatly appreciate it. Thank you. > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Fri Feb 26 00:37:16 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 26 Feb 2016 00:37:16 -0800 Subject: [ndnSIM] Measuring a download time In-Reply-To: References: Message-ID: Hi Sharvari, There is no simple answer to your question. Download times, besides multi/single path forwarding depends on client request pattern and congestion control (hop-by-hop and end-to-end). ConsumerCbr may not be a great consumer to measure what you want, as it is sends interest at constant rate. If it can retrieve set of data packets over single path, it will take the same amount of time (minus reduced interest reexpressing) to fetch of multipath. You can try ConsumerWindow, but it has a very rudimentary logic that is trying to adjust client strategy to the available network capacity. May be you should try to use different measurement parameter, which shows the effect of mutlipath strategy, without adding dependency on client requests. --- Alex > On Feb 24, 2016, at 2:12 PM, Komajwar, Sharvari wrote: > > Hello, > > I am working on Multipath forwarding strategy for NDN. I am using ConsumerCbr application to generate interest packets. Can you please suggest me the way to measure a downloading time for a file of particular size? > > Regards, > Sharvari -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Fri Feb 26 00:43:08 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 26 Feb 2016 00:43:08 -0800 Subject: [ndnSIM] Error build of ndnSIM-ddos-interest-flooding project In-Reply-To: References: Message-ID: <95E737C9-7052-433C-B617-0EB1BF424235@cs.ucla.edu> Dear Rohit, From the error you uploaded to redmine, I'm guessing you're trying to compile the scenario using the latest version of ndnSIM. Unfortunately, it is not possible and you need to use the version specified in the scenario readme. (http://redmine.named-data.net/issues/3470#note-4) --- Alex > On Feb 24, 2016, at 3:20 AM, Rohit Agnihotri wrote: > > Hello all, > > I am a beginner in ndnSIM and want to execute ndnSIM-ddos-interest-flooding project. > when i execute the ./waf configure it gives build successful and when i run ./waf it shows following error. > > Build failed > -> task in 'extensions' failed (exit status 1): > {task 140558924801872: cxx satisfaction-based-interest-acceptance.cc -> satisfaction-based-interest-acceptance.cc.1.o} > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/strategies/satisfaction-based-interest-acceptance.cc', '-c', '-o', 'extensions/strategies/satisfaction-based-interest-acceptance.cc.1.o'] > -> task in 'extensions' failed (exit status 1): > {task 140558924801616: cxx stats.cc -> stats.cc.1.o} > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/stats.cc', '-c', '-o', 'extensions/stats.cc.1.o'] > -> task in 'extensions' failed (exit status 1): > {task 140558924801488: cxx load-stats-node.cc -> load-stats-node.cc.1.o} > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/stats/load-stats-node.cc', '-c', '-o', 'extensions/stats/load-stats-node.cc.1.o'] > -> task in 'extensions' failed (exit status 1): > {task 140558924801104: cxx ddos-app.cc -> ddos-app.cc.1.o} > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', '../extensions/ddos-app.cc', '-c', '-o', 'extensions/ddos-app.cc.1.o'] > > > please help me to resolve the error...and to run the project. > > > Thanks in advance. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Fri Feb 26 00:46:22 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 26 Feb 2016 00:46:22 -0800 Subject: [ndnSIM] Accessing net device faces In-Reply-To: References: Message-ID: > On Feb 21, 2016, at 11:19 PM, Ayush Agarwal wrote: > > Hello everyone, > > I am trying to access all the net device interfaces associated to a face. > Firstly I am getting the object of ndnNetDeviceFace and then with its help I am accessing the net devices associated to it. > > I am also handling the NULL cases for the ndnNetDeviceFace to avoid segmentation faults. But due to this I am unable to access the net devices with id 0. > The code I am using is as follows: > > Ptr netDeviceFace = DynamicCast (inFace); > //std::cout << "device id is" << netDeviceFace->GetTypeId() << "\n"; > if (netDeviceFace == NULL) > { > std::cout<<"null\n" > } > if(netDeviceFace!=NULL) > { > Ptr nd = netDeviceFace->GetNetDevice (); > ------------ > ------------ > } > > Please help me in a solution so that I can access all the net devices without any segmentation faults. I'm not quite sure what you mean by "unable to access the net devices with id 0". If the DynamicCast returns null, then the face is not NetDeviceFace. For example, it can be internal NFD face or it can be AppFace. --- Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Fri Feb 26 00:54:36 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 26 Feb 2016 00:54:36 -0800 Subject: [ndnSIM] Setting up link metric In-Reply-To: References: <6F80F66C-F959-4ED0-A605-2AECBEA3B21F@cs.ucla.edu> Message-ID: <0B1C159F-0D25-4030-97FC-CFE8831BD51F@cs.ucla.edu> Hi Ahmed, There isn't a priority, these are different metrics used for different purposes. The one you configure in the topology file can be used by GlobalRoutingHelper to calculate routes and set up FIB entries. What the helper does is obtains the configured costs, finds out (a set of) shortest paths, sums up the configured costs from the topology file, and calls FibHelper::AddRoute with the calculated cost. You can rub FibHelper::AddRoute manually (or in addition to GlobalRoutingHelper-generated calls to it). Whichever cost you specify in AddRoute, will be assigned to FIB entry. There is no relation to the configured cost in the topology. --- Alex > On Feb 20, 2016, at 2:58 AM, Ahmed Sadek wrote: > > Hi Spyridon , > > Thank you for your reply. I still don't understand. If using the FibHelper I set the metric between client 1-> Router 1 to be 100 and in the topology file I set up the metric between client 1-> Router 1 to be 200, so which one takes effect and why ? > > Thanks! > Ahmed > > On Sat, Feb 20, 2016 at 4:49 AM, Spyridon (Spyros) Mastorakis wrote: > Hi Ahmed, > > the first case refers to the establishment of a route that may be used for Interest forwarding. Specifically, the FibHelper will add the appropriate FIB entries on the routers across the specified path. > > The second case refers to the physical properties (bandwidth, delay, queue size) of a link between two adjacent nodes. > > Hope that this helps. Please let me know if you have any follow-up questions. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > > > >> On Feb 16, 2016, at 3:48 AM, Ahmed Sadek wrote: >> >> Dear All, >> >> What is the difference between setting up the metric in the simulation file : >> ndn::FibHelper::AddRoute("client", "/", "router1", 150); >> >> Or in the topology file: >> # srcNode dstNode bandwidth metric delay queue >> client router1 20Mbps 150 50ms 50 >> >> And which one take priority? >> >> Thanks! >> Ahmed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Fri Feb 26 00:56:56 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 26 Feb 2016 00:56:56 -0800 Subject: [ndnSIM] Access to the queue inside OnData() in forwarding-strategy In-Reply-To: References: Message-ID: > On Feb 18, 2016, at 8:42 AM, Ayush Agarwal wrote: > > Hello everyone, > > I am using the following code to get hold of the queue object inside the forwarding strategy, OnData(....) function. > > Ptr netDeviceFace = DynamicCast (inFace); > if (netDeviceFace == NULL) { } > Ptr nd = netDeviceFace->GetNetDevice (); > if (nd == NULL) { } > PointerValue txQueueAttribute; > nd->GetAttribute ("TxQueue", txQueueAttribute); > Ptr txQueue = txQueueAttribute.Get (); > if (txQueue == 0) { } > > But I am getting a segmentation fault SIGSEV error while fetching the NetDevice object and the following errors for accessing queue. > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: ?PointerValue? was not declared in this scope > PointerValue txQueueAttribute; > ^ > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: ?txQueueAttribute? was not declared in this scope > nd->GetAttribute ("TxQueue", txQueueAttribute); > ^ > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: expected primary-expression before ?>? token > Ptr txQueue = txQueueAttribute.Get (); > ^ > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: expected primary-expression before ?)? token > Ptr txQueue = txQueueAttribute.Get (); > > > Can you please point me out where I am going wrong. Hi Ayush, Sorry for the delayed response. I'm guessing that you have already solved the compilation problem? Just in case, it is just a matter of adding proper includes (I think , ) --- Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Fri Feb 26 01:00:35 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 26 Feb 2016 01:00:35 -0800 Subject: [ndnSIM] Getting hold on the face object In-Reply-To: References: Message-ID: Hi Ayush, What is "this" in your code? ndn::Face is not "Object" and is definitely not aggregated (in NS-3 terms) with any other object. Therefore, you cannot call GetObject(). Depending on what "this" represents, there should be a path to get hold of the face (get NetDevice, get Node, from Node, get L3Protocol, from L3Protocol find NetDeviceFace that corresponds to NetDevice). -- Alex > On Feb 17, 2016, at 9:49 PM, Ayush Agarwal wrote: > > Hello everyone, > I am trying to get hold of the face on which the currently used ns-3 queue is installed by creating its object as follows: > > Ptr congface = this->GetObject(); > uint32_t fid=congface->GetId(); > > But it is throwing the following error on building. > > ./libns3-dev-network-optimized.so: undefined reference to `ns3::ndn::Face::GetTypeId()' > ./libns3-dev-network-optimized.so: undefined reference to `typeinfo for ns3::ndn::Face' > collect2: error: ld returned 1 exit status > Can I get an idea where I am making a mistake. > > > Thanks & Regards, > Ayush Agarwal > Post Graduate Student, > NITK- Surathkal, India. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From don1559 at gmail.com Fri Feb 26 01:09:43 2016 From: don1559 at gmail.com (Ahmed Sadek) Date: Fri, 26 Feb 2016 10:09:43 +0100 Subject: [ndnSIM] Setting up link metric In-Reply-To: <0B1C159F-0D25-4030-97FC-CFE8831BD51F@cs.ucla.edu> References: <6F80F66C-F959-4ED0-A605-2AECBEA3B21F@cs.ucla.edu> <0B1C159F-0D25-4030-97FC-CFE8831BD51F@cs.ucla.edu> Message-ID: So when I use "FibHelper::AddRoute manually" this *will override* what GlobalRoutingHelper will calculate from the topology file. On Fri, Feb 26, 2016 at 9:54 AM, Alex Afanasyev wrote: > Hi Ahmed, > > There isn't a priority, these are different metrics used for different > purposes. > > The one you configure in the topology file can be used by > GlobalRoutingHelper to calculate routes and set up FIB entries. What the > helper does is obtains the configured costs, finds out (a set of) shortest > paths, sums up the configured costs from the topology file, and calls > FibHelper::AddRoute with the calculated cost. > > You can rub FibHelper::AddRoute manually (or in addition to > GlobalRoutingHelper-generated calls to it). Whichever cost you specify in > AddRoute, will be assigned to FIB entry. There is no relation to the > configured cost in the topology. > > --- > Alex > > > On Feb 20, 2016, at 2:58 AM, Ahmed Sadek wrote: > > > > Hi Spyridon , > > > > Thank you for your reply. I still don't understand. If using the > FibHelper I set the metric between client 1-> Router 1 to be 100 and in the > topology file I set up the metric between client 1-> Router 1 to be 200, so > which one takes effect and why ? > > > > Thanks! > > Ahmed > > > > On Sat, Feb 20, 2016 at 4:49 AM, Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu> wrote: > > Hi Ahmed, > > > > the first case refers to the establishment of a route that may be used > for Interest forwarding. Specifically, the FibHelper will add the > appropriate FIB entries on the routers across the specified path. > > > > The second case refers to the physical properties (bandwidth, delay, > queue size) of a link between two adjacent nodes. > > > > Hope that this helps. Please let me know if you have any follow-up > questions. > > > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > Computer Science Department > > UCLA > > > > > > > > > >> On Feb 16, 2016, at 3:48 AM, Ahmed Sadek wrote: > >> > >> Dear All, > >> > >> What is the difference between setting up the metric in the simulation > file : > >> ndn::FibHelper::AddRoute("client", "/", "router1", 150); > >> > >> Or in the topology file: > >> # srcNode dstNode bandwidth metric delay queue > >> client router1 20Mbps 150 50ms 50 > >> > >> And which one take priority? > >> > >> Thanks! > >> Ahmed > -------------- next part -------------- An HTML attachment was scrubbed... URL: From agnihotrirohit0 at gmail.com Fri Feb 26 02:42:48 2016 From: agnihotrirohit0 at gmail.com (Rohit Agnihotri) Date: Fri, 26 Feb 2016 16:12:48 +0530 Subject: [ndnSIM] ndnSIM Digest, Vol 39, Issue 11 In-Reply-To: References: Message-ID: Thanks Alex sir regarding your post. On Fri, Feb 26, 2016 at 2:27 PM, wrote: > Send ndnSIM mailing list submissions to > ndnsim at lists.cs.ucla.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > or, via email, send a message with subject or body 'help' to > ndnsim-request at lists.cs.ucla.edu > > You can reach the person managing the list at > ndnsim-owner at lists.cs.ucla.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ndnSIM digest..." > > > Today's Topics: > > 1. Re: Error build of ndnSIM-ddos-interest-flooding project > (Alex Afanasyev) > 2. Re: Accessing net device faces (Alex Afanasyev) > 3. Re: Setting up link metric (Alex Afanasyev) > 4. Re: Access to the queue inside OnData() in > forwarding-strategy (Alex Afanasyev) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 26 Feb 2016 00:43:08 -0800 > From: Alex Afanasyev > To: Rohit Agnihotri > Cc: ndnsim at lists.cs.ucla.edu > Subject: Re: [ndnSIM] Error build of ndnSIM-ddos-interest-flooding > project > Message-ID: <95E737C9-7052-433C-B617-0EB1BF424235 at cs.ucla.edu> > Content-Type: text/plain; charset="us-ascii" > > Dear Rohit, > > From the error you uploaded to redmine, I'm guessing you're trying to > compile the scenario using the latest version of ndnSIM. Unfortunately, it > is not possible and you need to use the version specified in the scenario > readme. > > (http://redmine.named-data.net/issues/3470#note-4) > > --- > Alex > > > On Feb 24, 2016, at 3:20 AM, Rohit Agnihotri > wrote: > > > > Hello all, > > > > I am a beginner in ndnSIM and want to execute > ndnSIM-ddos-interest-flooding project. > > when i execute the ./waf configure it gives build successful and when i > run ./waf it shows following error. > > > > Build failed > > -> task in 'extensions' failed (exit status 1): > > {task 140558924801872: cxx satisfaction-based-interest-acceptance.cc > -> satisfaction-based-interest-acceptance.cc.1.o} > > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', > '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', > '-I/usr/include', '-I/usr/local/include/ns3-dev', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', > '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', > '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu! > de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', > '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', > '-I/usr/include/pixman-1', '-I/usr/include/libpng12', > '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', > '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', > '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', > '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', > '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '../extensions/strategies/satisfaction-based-interest-acceptance.cc', '-c', > '-o', 'exte! > nsions/strategies/satisfaction-based-interest-acceptance.cc.1.o'] > > -> task in 'extensions' failed (exit status 1): > > {task 140558924801616: cxx stats.cc -> stats.cc.1.o} > > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', > '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', > '-I/usr/include', '-I/usr/local/include/ns3-dev', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', > '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', > '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu! > de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', > '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', > '-I/usr/include/pixman-1', '-I/usr/include/libpng12', > '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', > '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', > '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', > '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', > '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '../extensions/stats.cc', '-c', '-o', 'extensions/stats.cc.1.o'] > > -> task in 'extensions' failed (exit status 1): > > {task 140558924801488: cxx load-stats-node.cc -> > load-stats-node.cc.1.o} > > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', > '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', > '-I/usr/include', '-I/usr/local/include/ns3-dev', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', > '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', > '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu! > de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', > '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', > '-I/usr/include/pixman-1', '-I/usr/include/libpng12', > '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', > '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', > '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', > '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', > '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '../extensions/stats/load-stats-node.cc', '-c', '-o', > 'extensions/stats/load-stats-node! > .cc.1.o'] > > -> task in 'extensions' failed (exit status 1): > > {task 140558924801104: cxx ddos-app.cc -> ddos-app.cc.1.o} > > ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread', > '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/build/extensions', > '-I/home/vinay/ndnSIM/ns-3/ndnSIM-ddos-interest-flooding/extensions', > '-I/usr/include', '-I/usr/local/include/ns3-dev', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM/NFD', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/core', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/daemon', > '-I/home/vinay/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/src/ndnSIM/NFD/rib', > '-I/home/vinay/ndnSIM/ns-3/build/ns3/ndnSIM', > '-I/home/vinay/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/include/gtk-2.0', > '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', > '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/inclu! > de/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2', > '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', > '-I/usr/include/pixman-1', '-I/usr/include/libpng12', > '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', > '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', > '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', > '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', > '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '-DHAVE_SQLITE3=1', '-DHAVE_GSL=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', > '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '-DHAVE_GTK2=1', '-DHAVE_LIBXML2=1', > '../extensions/ddos-app.cc', '-c', '-o', 'extensions/ddos-app.cc.1.o'] > > > > > > please help me to resolve the error...and to run the project. > > > > > > Thanks in advance. > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.asc > Type: application/pgp-signature > Size: 841 bytes > Desc: Message signed with OpenPGP using GPGMail > URL: < > http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/6f04ced7/attachment-0001.bin > > > > ------------------------------ > > Message: 2 > Date: Fri, 26 Feb 2016 00:46:22 -0800 > From: Alex Afanasyev > To: Ayush Agarwal > Cc: ndnsim > Subject: Re: [ndnSIM] Accessing net device faces > Message-ID: > Content-Type: text/plain; charset="us-ascii" > > > > On Feb 21, 2016, at 11:19 PM, Ayush Agarwal wrote: > > > > Hello everyone, > > > > I am trying to access all the net device interfaces associated to a face. > > Firstly I am getting the object of ndnNetDeviceFace and then with its > help I am accessing the net devices associated to it. > > > > I am also handling the NULL cases for the ndnNetDeviceFace to avoid > segmentation faults. But due to this I am unable to access the net devices > with id 0. > > The code I am using is as follows: > > > > Ptr netDeviceFace = DynamicCast (inFace); > > //std::cout << "device id is" << netDeviceFace->GetTypeId() << "\n"; > > if (netDeviceFace == NULL) > > { > > std::cout<<"null\n" > > } > > if(netDeviceFace!=NULL) > > { > > Ptr nd = netDeviceFace->GetNetDevice (); > > ------------ > > ------------ > > } > > > > Please help me in a solution so that I can access all the net devices > without any segmentation faults. > > I'm not quite sure what you mean by "unable to access the net devices with > id 0". If the DynamicCast returns null, then the face is not > NetDeviceFace. For example, it can be internal NFD face or it can be > AppFace. > > --- > Alex > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.asc > Type: application/pgp-signature > Size: 841 bytes > Desc: Message signed with OpenPGP using GPGMail > URL: < > http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/e978c6d3/attachment-0001.bin > > > > ------------------------------ > > Message: 3 > Date: Fri, 26 Feb 2016 00:54:36 -0800 > From: Alex Afanasyev > To: Ahmed Sadek > Cc: Spyros Mastorakis , ndnsim > > Subject: Re: [ndnSIM] Setting up link metric > Message-ID: <0B1C159F-0D25-4030-97FC-CFE8831BD51F at cs.ucla.edu> > Content-Type: text/plain; charset="us-ascii" > > Hi Ahmed, > > There isn't a priority, these are different metrics used for different > purposes. > > The one you configure in the topology file can be used by > GlobalRoutingHelper to calculate routes and set up FIB entries. What the > helper does is obtains the configured costs, finds out (a set of) shortest > paths, sums up the configured costs from the topology file, and calls > FibHelper::AddRoute with the calculated cost. > > You can rub FibHelper::AddRoute manually (or in addition to > GlobalRoutingHelper-generated calls to it). Whichever cost you specify in > AddRoute, will be assigned to FIB entry. There is no relation to the > configured cost in the topology. > > --- > Alex > > > On Feb 20, 2016, at 2:58 AM, Ahmed Sadek wrote: > > > > Hi Spyridon , > > > > Thank you for your reply. I still don't understand. If using the > FibHelper I set the metric between client 1-> Router 1 to be 100 and in the > topology file I set up the metric between client 1-> Router 1 to be 200, so > which one takes effect and why ? > > > > Thanks! > > Ahmed > > > > On Sat, Feb 20, 2016 at 4:49 AM, Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu> wrote: > > Hi Ahmed, > > > > the first case refers to the establishment of a route that may be used > for Interest forwarding. Specifically, the FibHelper will add the > appropriate FIB entries on the routers across the specified path. > > > > The second case refers to the physical properties (bandwidth, delay, > queue size) of a link between two adjacent nodes. > > > > Hope that this helps. Please let me know if you have any follow-up > questions. > > > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > Computer Science Department > > UCLA > > > > > > > > > >> On Feb 16, 2016, at 3:48 AM, Ahmed Sadek wrote: > >> > >> Dear All, > >> > >> What is the difference between setting up the metric in the simulation > file : > >> ndn::FibHelper::AddRoute("client", "/", "router1", 150); > >> > >> Or in the topology file: > >> # srcNode dstNode bandwidth metric delay queue > >> client router1 20Mbps 150 50ms 50 > >> > >> And which one take priority? > >> > >> Thanks! > >> Ahmed > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.asc > Type: application/pgp-signature > Size: 841 bytes > Desc: Message signed with OpenPGP using GPGMail > URL: < > http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/f3aba3fa/attachment-0001.bin > > > > ------------------------------ > > Message: 4 > Date: Fri, 26 Feb 2016 00:56:56 -0800 > From: Alex Afanasyev > To: Ayush Agarwal > Cc: ndnsim > Subject: Re: [ndnSIM] Access to the queue inside OnData() in > forwarding-strategy > Message-ID: > Content-Type: text/plain; charset="utf-8" > > > > On Feb 18, 2016, at 8:42 AM, Ayush Agarwal wrote: > > > > Hello everyone, > > > > I am using the following code to get hold of the queue object inside the > forwarding strategy, OnData(....) function. > > > > Ptr netDeviceFace = DynamicCast (inFace); > > if (netDeviceFace == NULL) { } > > Ptr nd = netDeviceFace->GetNetDevice (); > > if (nd == NULL) { } > > PointerValue txQueueAttribute; > > nd->GetAttribute ("TxQueue", txQueueAttribute); > > Ptr txQueue = txQueueAttribute.Get (); > > if (txQueue == 0) { } > > > > But I am getting a segmentation fault SIGSEV error while fetching the > NetDevice object and the following errors for accessing queue. > > > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: > ?PointerValue? was not declared in this scope > > PointerValue txQueueAttribute; > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: > ?txQueueAttribute? was not declared in this scope > > nd->GetAttribute ("TxQueue", txQueueAttribute); > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: > expected primary-expression before ?>? token > > Ptr txQueue = txQueueAttribute.Get (); > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: > expected primary-expression before ?)? token > > Ptr txQueue = txQueueAttribute.Get (); > > > > > > Can you please point me out where I am going wrong. > > Hi Ayush, > > Sorry for the delayed response. I'm guessing that you have already solved > the compilation problem? Just in case, it is just a matter of adding > proper includes (I think , ) > > --- > Alex > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.asc > Type: application/pgp-signature > Size: 841 bytes > Desc: Message signed with OpenPGP using GPGMail > URL: < > http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160226/1b010d99/attachment.bin > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > ------------------------------ > > End of ndnSIM Digest, Vol 39, Issue 11 > ************************************** > -- Regards Rohit Agnihotri -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Fri Feb 26 02:46:38 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Fri, 26 Feb 2016 16:16:38 +0530 Subject: [ndnSIM] Access to the queue inside OnData() in forwarding-strategy In-Reply-To: References: Message-ID: Hi, Thanks for your reply. Yes, I have solved the compilation errors. It was due to the NULL pointer that was not handled properly. Thanks & Regards, Ayush On Fri, Feb 26, 2016 at 2:26 PM, Alex Afanasyev wrote: > > > On Feb 18, 2016, at 8:42 AM, Ayush Agarwal wrote: > > > > Hello everyone, > > > > I am using the following code to get hold of the queue object inside the > forwarding strategy, OnData(....) function. > > > > Ptr netDeviceFace = DynamicCast (inFace); > > if (netDeviceFace == NULL) { } > > Ptr nd = netDeviceFace->GetNetDevice (); > > if (nd == NULL) { } > > PointerValue txQueueAttribute; > > nd->GetAttribute ("TxQueue", txQueueAttribute); > > Ptr txQueue = txQueueAttribute.Get (); > > if (txQueue == 0) { } > > > > But I am getting a segmentation fault SIGSEV error while fetching the > NetDevice object and the following errors for accessing queue. > > > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: > ?PointerValue? was not declared in this scope > > PointerValue txQueueAttribute; > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: > ?txQueueAttribute? was not declared in this scope > > nd->GetAttribute ("TxQueue", txQueueAttribute); > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: > expected primary-expression before ?>? token > > Ptr txQueue = txQueueAttribute.Get (); > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: > expected primary-expression before ?)? token > > Ptr txQueue = txQueueAttribute.Get (); > > > > > > Can you please point me out where I am going wrong. > > Hi Ayush, > > Sorry for the delayed response. I'm guessing that you have already solved > the compilation problem? Just in case, it is just a matter of adding > proper includes (I think , ) > > --- > Alex > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Fri Feb 26 09:20:41 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 26 Feb 2016 09:20:41 -0800 Subject: [ndnSIM] Setting up link metric In-Reply-To: References: <6F80F66C-F959-4ED0-A605-2AECBEA3B21F@cs.ucla.edu> <0B1C159F-0D25-4030-97FC-CFE8831BD51F@cs.ucla.edu> Message-ID: <7BECCCB6-D74B-4B5A-82B9-86D25ABBC940@cs.ucla.edu> Hi Ahmed, if it refers to exactly the same FIB entry on exactly the same router, it will update the cost metric. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Feb 26, 2016, at 1:09 AM, Ahmed Sadek wrote: > > So when I use "FibHelper::AddRoute manually" this will override what GlobalRoutingHelper will calculate from the topology file. > > On Fri, Feb 26, 2016 at 9:54 AM, Alex Afanasyev > wrote: > Hi Ahmed, > > There isn't a priority, these are different metrics used for different purposes. > > The one you configure in the topology file can be used by GlobalRoutingHelper to calculate routes and set up FIB entries. What the helper does is obtains the configured costs, finds out (a set of) shortest paths, sums up the configured costs from the topology file, and calls FibHelper::AddRoute with the calculated cost. > > You can rub FibHelper::AddRoute manually (or in addition to GlobalRoutingHelper-generated calls to it). Whichever cost you specify in AddRoute, will be assigned to FIB entry. There is no relation to the configured cost in the topology. > > --- > Alex > > > On Feb 20, 2016, at 2:58 AM, Ahmed Sadek > wrote: > > > > Hi Spyridon , > > > > Thank you for your reply. I still don't understand. If using the FibHelper I set the metric between client 1-> Router 1 to be 100 and in the topology file I set up the metric between client 1-> Router 1 to be 200, so which one takes effect and why ? > > > > Thanks! > > Ahmed > > > > On Sat, Feb 20, 2016 at 4:49 AM, Spyridon (Spyros) Mastorakis > wrote: > > Hi Ahmed, > > > > the first case refers to the establishment of a route that may be used for Interest forwarding. Specifically, the FibHelper will add the appropriate FIB entries on the routers across the specified path. > > > > The second case refers to the physical properties (bandwidth, delay, queue size) of a link between two adjacent nodes. > > > > Hope that this helps. Please let me know if you have any follow-up questions. > > > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > Computer Science Department > > UCLA > > > > > > > > > >> On Feb 16, 2016, at 3:48 AM, Ahmed Sadek > wrote: > >> > >> Dear All, > >> > >> What is the difference between setting up the metric in the simulation file : > >> ndn::FibHelper::AddRoute("client", "/", "router1", 150); > >> > >> Or in the topology file: > >> # srcNode dstNode bandwidth metric delay queue > >> client router1 20Mbps 150 50ms 50 > >> > >> And which one take priority? > >> > >> Thanks! > >> Ahmed > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Sat Feb 27 01:02:02 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Sat, 27 Feb 2016 14:32:02 +0530 Subject: [ndnSIM] Access to the queue inside OnData() in forwarding-strategy In-Reply-To: References: Message-ID: Hi Alex, I am trying to change the interest limit/interest sending rate on a face. For this I am calling the functions inside the Limits class associated to a particular face. But I am unable to find any change in my simulation results. Can you guide me where I am going wrong. *Thanks & Regards,* *Ayush Agarwal* *Reseach Scholar, Computer Science* *National Institute of Technology, KarnatakaSurathkal, India* On Fri, Feb 26, 2016 at 4:16 PM, Ayush Agarwal wrote: > Hi, > Thanks for your reply. Yes, I have solved the compilation errors. It was > due to the NULL pointer that was not handled properly. > > Thanks & Regards, > Ayush > > On Fri, Feb 26, 2016 at 2:26 PM, Alex Afanasyev wrote: > >> >> > On Feb 18, 2016, at 8:42 AM, Ayush Agarwal wrote: >> > >> > Hello everyone, >> > >> > I am using the following code to get hold of the queue object inside >> the forwarding strategy, OnData(....) function. >> > >> > Ptr netDeviceFace = DynamicCast (inFace); >> > if (netDeviceFace == NULL) { } >> > Ptr nd = netDeviceFace->GetNetDevice (); >> > if (nd == NULL) { } >> > PointerValue txQueueAttribute; >> > nd->GetAttribute ("TxQueue", txQueueAttribute); >> > Ptr txQueue = txQueueAttribute.Get (); >> > if (txQueue == 0) { } >> > >> > But I am getting a segmentation fault SIGSEV error while fetching the >> NetDevice object and the following errors for accessing queue. >> > >> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: >> ?PointerValue? was not declared in this scope >> > PointerValue txQueueAttribute; >> > ^ >> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: >> ?txQueueAttribute? was not declared in this scope >> > nd->GetAttribute ("TxQueue", txQueueAttribute); >> > ^ >> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: >> expected primary-expression before ?>? token >> > Ptr txQueue = txQueueAttribute.Get (); >> > ^ >> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: >> expected primary-expression before ?)? token >> > Ptr txQueue = txQueueAttribute.Get (); >> > >> > >> > Can you please point me out where I am going wrong. >> >> Hi Ayush, >> >> Sorry for the delayed response. I'm guessing that you have already >> solved the compilation problem? Just in case, it is just a matter of >> adding proper includes (I think , ) >> >> --- >> Alex >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From houda.zerarka at gmail.com Sat Feb 27 09:34:33 2016 From: houda.zerarka at gmail.com (houda zerarka) Date: Sat, 27 Feb 2016 18:34:33 +0100 Subject: [ndnSIM] VANET Message-ID: hello, may i know if there is a way or method to gather data in VANET network can i simulate sensors to gather different data ? is that possible ? if not can i have some idea to remplace this sonsors ! thx. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sat Feb 27 16:50:49 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sat, 27 Feb 2016 16:50:49 -0800 Subject: [ndnSIM] Access to the queue inside OnData() in forwarding-strategy In-Reply-To: References: Message-ID: <19755214-0477-4B34-AA60-078FF032FF41@cs.ucla.edu> For Limits to be activated, you needs to use to forwarding strategy that uses them, e.g., ndn::fw::BestRoute::PerOutFaceLimits. And just in case. Limits class doesn't use anything from the transmission queues. It needs to be manually configured with the parameters that make sense for the simulation scenario. --- Alex > On Feb 27, 2016, at 1:02 AM, Ayush Agarwal wrote: > > Hi Alex, > I am trying to change the interest limit/interest sending rate on a face. For this I am calling the functions inside the Limits class associated to a particular face. But I am unable to find any change in my simulation results. Can you guide me where I am going wrong. > > Thanks & Regards, > Ayush Agarwal > Reseach Scholar, Computer Science > National Institute of Technology, Karnataka > Surathkal, India > > On Fri, Feb 26, 2016 at 4:16 PM, Ayush Agarwal > wrote: > Hi, > Thanks for your reply. Yes, I have solved the compilation errors. It was due to the NULL pointer that was not handled properly. > > Thanks & Regards, > Ayush > > On Fri, Feb 26, 2016 at 2:26 PM, Alex Afanasyev > wrote: > > > On Feb 18, 2016, at 8:42 AM, Ayush Agarwal > wrote: > > > > Hello everyone, > > > > I am using the following code to get hold of the queue object inside the forwarding strategy, OnData(....) function. > > > > Ptr netDeviceFace = DynamicCast (inFace); > > if (netDeviceFace == NULL) { } > > Ptr nd = netDeviceFace->GetNetDevice (); > > if (nd == NULL) { } > > PointerValue txQueueAttribute; > > nd->GetAttribute ("TxQueue", txQueueAttribute); > > Ptr txQueue = txQueueAttribute.Get (); > > if (txQueue == 0) { } > > > > But I am getting a segmentation fault SIGSEV error while fetching the NetDevice object and the following errors for accessing queue. > > > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: ?PointerValue? was not declared in this scope > > PointerValue txQueueAttribute; > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: ?txQueueAttribute? was not declared in this scope > > nd->GetAttribute ("TxQueue", txQueueAttribute); > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: expected primary-expression before ?>? token > > Ptr txQueue = txQueueAttribute.Get (); > > ^ > > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: expected primary-expression before ?)? token > > Ptr txQueue = txQueueAttribute.Get (); > > > > > > Can you please point me out where I am going wrong. > > Hi Ayush, > > Sorry for the delayed response. I'm guessing that you have already solved the compilation problem? Just in case, it is just a matter of adding proper includes (I think , ) > > --- > Alex > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Sat Feb 27 16:53:46 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sat, 27 Feb 2016 16:53:46 -0800 Subject: [ndnSIM] VANET In-Reply-To: References: Message-ID: <8CBFC8E6-06CF-45EB-8C23-E7F35B048354@cs.ucla.edu> Hi Houda, Your question is kind of broad and I'm not exactly clear how to give you an answer. I can recommend you to to google examples of VANET simulations in NS-3. --- Alex > On Feb 27, 2016, at 9:34 AM, houda zerarka wrote: > > hello, > > may i know if there is a way or method to gather data in VANET network > can i simulate sensors to gather different data ? > is that possible ? > if not can i have some idea to remplace this sonsors ! > > thx. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From ayush0071 at gmail.com Sat Feb 27 20:40:57 2016 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Sun, 28 Feb 2016 10:10:57 +0530 Subject: [ndnSIM] Access to the queue inside OnData() in forwarding-strategy In-Reply-To: <19755214-0477-4B34-AA60-078FF032FF41@cs.ucla.edu> References: <19755214-0477-4B34-AA60-078FF032FF41@cs.ucla.edu> Message-ID: Thanks for your explanation. I was a bit curious to know that the variable m_outstanding which keeps track of the no. of pending interest on the face, is it similar to the congestion window of a receiver in TCP. On Sun, Feb 28, 2016 at 6:20 AM, Alex Afanasyev wrote: > For Limits to be activated, you needs to use to forwarding strategy that > uses them, e.g., ndn::fw::BestRoute::PerOutFaceLimits. > > And just in case. Limits class doesn't use anything from the transmission > queues. It needs to be manually configured with the parameters that make > sense for the simulation scenario. > > --- > Alex > > On Feb 27, 2016, at 1:02 AM, Ayush Agarwal wrote: > > Hi Alex, > I am trying to change the interest limit/interest sending rate on a face. > For this I am calling the functions inside the Limits class associated to a > particular face. But I am unable to find any change in my simulation > results. Can you guide me where I am going wrong. > > *Thanks & Regards,* > > *Ayush Agarwal* > > *Reseach Scholar, Computer Science* > > *National Institute of Technology, KarnatakaSurathkal, India* > > On Fri, Feb 26, 2016 at 4:16 PM, Ayush Agarwal > wrote: > >> Hi, >> Thanks for your reply. Yes, I have solved the compilation errors. It was >> due to the NULL pointer that was not handled properly. >> >> Thanks & Regards, >> Ayush >> >> On Fri, Feb 26, 2016 at 2:26 PM, Alex Afanasyev wrote: >> >>> >>> > On Feb 18, 2016, at 8:42 AM, Ayush Agarwal >>> wrote: >>> > >>> > Hello everyone, >>> > >>> > I am using the following code to get hold of the queue object inside >>> the forwarding strategy, OnData(....) function. >>> > >>> > Ptr netDeviceFace = DynamicCast (inFace); >>> > if (netDeviceFace == NULL) { } >>> > Ptr nd = netDeviceFace->GetNetDevice (); >>> > if (nd == NULL) { } >>> > PointerValue txQueueAttribute; >>> > nd->GetAttribute ("TxQueue", txQueueAttribute); >>> > Ptr txQueue = txQueueAttribute.Get (); >>> > if (txQueue == 0) { } >>> > >>> > But I am getting a segmentation fault SIGSEV error while fetching the >>> NetDevice object and the following errors for accessing queue. >>> > >>> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:238:3: error: >>> ?PointerValue? was not declared in this scope >>> > PointerValue txQueueAttribute; >>> > ^ >>> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:239:32: error: >>> ?txQueueAttribute? was not declared in this scope >>> > nd->GetAttribute ("TxQueue", txQueueAttribute); >>> > ^ >>> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:50: error: >>> expected primary-expression before ?>? token >>> > Ptr txQueue = txQueueAttribute.Get (); >>> > ^ >>> > ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:243:53: error: >>> expected primary-expression before ?)? token >>> > Ptr txQueue = txQueueAttribute.Get (); >>> > >>> > >>> > Can you please point me out where I am going wrong. >>> >>> Hi Ayush, >>> >>> Sorry for the delayed response. I'm guessing that you have already >>> solved the compilation problem? Just in case, it is just a matter of >>> adding proper includes (I think , ) >>> >>> --- >>> Alex >>> >>> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From asifcsep at gmail.com Sun Feb 28 05:00:24 2016 From: asifcsep at gmail.com (Shahid Md. Asif Iqbal) Date: Sun, 28 Feb 2016 19:00:24 +0600 Subject: [ndnSIM] Finding Id of interest sending node Message-ID: Dear all, How can I find the id of the node sending an interest in the forwarder.cpp and ndn-producer.cpp files? And, is it reasonable a producer replying for some segments and remain silent for some segments of the same interest? And if it is please give some hints how to do that. -------------- next part -------------- An HTML attachment was scrubbed... URL: From houda.zerarka at gmail.com Sun Feb 28 08:27:45 2016 From: houda.zerarka at gmail.com (houda zerarka) Date: Sun, 28 Feb 2016 17:27:45 +0100 Subject: [ndnSIM] VANET In-Reply-To: <8CBFC8E6-06CF-45EB-8C23-E7F35B048354@cs.ucla.edu> References: <8CBFC8E6-06CF-45EB-8C23-E7F35B048354@cs.ucla.edu> Message-ID: hi Alex, I khow that ndnSIM is a part of ns-3 but is the semulation of vanet in ns-3 like the simulation in ndnSIM ? i realy don't know from where i should begin if you have examples i'll be thankfull 2016-02-28 1:53 GMT+01:00 Alex Afanasyev : > Hi Houda, > > Your question is kind of broad and I'm not exactly clear how to give you > an answer. I can recommend you to to google examples of VANET simulations > in NS-3. > > --- > Alex > > > On Feb 27, 2016, at 9:34 AM, houda zerarka > wrote: > > > > hello, > > > > may i know if there is a way or method to gather data in VANET network > > can i simulate sensors to gather different data ? > > is that possible ? > > if not can i have some idea to remplace this sonsors ! > > > > thx. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: