From dhiabimen at gmail.com Thu Oct 1 01:08:43 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Thu, 1 Oct 2015 09:08:43 +0100 Subject: [ndnSIM] NDN node Throughput In-Reply-To: References: <587490D7-CE88-47F8-BEFC-78D81D9B22A7@cs.ucla.edu> Message-ID: Hi, thnx a lot for your reply. I will try to do this.But I have a small question does the field called "kilobytes" represent the throughput because the throughput is also the kilobytes rate received per second?? thnx again for you help. 2015-09-30 19:26 GMT+01:00 Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu>: > Hi, > > you could install and use the L3RateTracer. The generated file would > include a field called ?Kilobytes?, which is an estimation of the > kilobytes/s rate. > > You could use bash or python scripting to parse and process the various > values of this field contained in the file. You may also use awk scripting > as Gustavo suggested (I have not tried this one though). > > Please let me know shall you need anything else. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > > On Sep 29, 2015, at 1:05 AM, Dhiab Imen wrote: > > > > Hi, > > > > Thnx a lot for your reply. > > > > In ndnsim website they use trace file in order to get rate,packet drop > rate... in this link > > > > http://ndnsim.net/2.0/metric.html > > > > I want to know if it is possible to calculate throughput using these > trace file,what trace I use to get throughput and how?? > > > > thnx for help. > > > > 2015-09-28 17:16 GMT+01:00 Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu>: > > Hi, > > > > I am not sure that I really understand what you want to achieve by using > trace files. > > > > However, for now, we do not have a standardized file structure or way to > import trace files in ndnSIM. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > > > > > On Sep 28, 2015, at 7:52 AM, Dhiab Imen wrote: > > > > > > Hi , > > > > > > > > > I want to get throughput variation of ndn nodes using trace files. > > > > > > Can you tell me what trace file I must use? and how l can calculate > throughput using this file? > > > > > > thnx a lot for help. > > > > > > -- > > > Cordialement > > > Imen Dhiab > > > > > > > *************************************************************************************************** > > > Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de > Sfax. > > > Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie > Electrique), Ecole Nationale d'Ing?nieurs de Sousse. > > > +216 53 59 19 88 > > > Pages personnelles : > http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html > > > > *************************************************************************************************** > > > _______________________________________________ > > > ndnSIM mailing list > > > ndnSIM at lists.cs.ucla.edu > > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > > > > > > > -- > > Cordialement > > Imen Dhiab > > > > > *************************************************************************************************** > > Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. > > Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie > Electrique), Ecole Nationale d'Ing?nieurs de Sousse. > > +216 53 59 19 88 > > Pages personnelles : > http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html > > > *************************************************************************************************** > > -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Oct 1 09:12:14 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 1 Oct 2015 09:12:14 -0700 Subject: [ndnSIM] Producer having Specific Content In-Reply-To: References: Message-ID: <99E29D4E-45D6-4B97-A2DD-E5440A9DDC02@cs.ucla.edu> Hi, I think that you need to either modify our existing cache replacement policies or to create your own custom cache replacement policy to achieve the desired goal. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Sep 30, 2015, at 5:57 PM, Shahrear Tanzil wrote: > > Hello, > > I would to simulate a scenario where different producers can store different but specific contents. For example, there are two contents and producer1 is going to cache only the first content and producer2 is caching the second content always irrespective of the incoming interest. > > Is there any way in ndnSIM to simulate this? > > -- > > Kind Regards, > S.M. Shahrear Tanzil > Graduate Research Assistant > University of British Columbia > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From andreysilva.eng at gmail.com Thu Oct 1 09:12:12 2015 From: andreysilva.eng at gmail.com (Andrey Silva) Date: Thu, 1 Oct 2015 13:12:12 -0300 Subject: [ndnSIM] CDN Implementation Message-ID: Hello, I want to perform a comparative study with CDN, but I don't saw in the maillist some discussion about CDN in ndnSIM. Someone know how implement CDN in ndnSIM? Thanks! -- Andrey Silva Engenheiro da Computa??o - Universidade Federal do Par? Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . - http://laps.ufpa.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Oct 1 11:43:47 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 1 Oct 2015 11:43:47 -0700 Subject: [ndnSIM] CDN Implementation In-Reply-To: References: Message-ID: Hi Andrey, this is a research question, which I think needs a fair amount of experimentation in order to be answered. Moreover, CDN still uses the TCP/IP model. Probably, you could use some modules of ndnSIM (e.g., in-network caching) and also some of the standard NS3 modules to setup your simulation environment. I do not know, though, if/what changes you may need to do in ndnSIM. I would be glad to help shall you need any further help. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Oct 1, 2015, at 9:12 AM, Andrey Silva wrote: > > Hello, > > I want to perform a comparative study with CDN, but I don't saw in the maillist some discussion about CDN in ndnSIM. Someone know how implement CDN in ndnSIM? > > Thanks! > > -- > Andrey Silva > > Engenheiro da Computa??o - Universidade Federal do Par? > Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . > - > http://laps.ufpa.br/ > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From anilj.mailing at gmail.com Thu Oct 1 23:23:31 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Thu, 1 Oct 2015 23:23:31 -0700 Subject: [ndnSIM] How python scripts in .waf-tools dir are invoked? Message-ID: Hi, I see that each major folder in ndnSIM 2.1 distribution e.g. ndn-cxx, NFD and even under ndnSIM, there is a hidden folder .waf-tools and bunch of python scripts in there. I am trying to understand how these scripts are invoked by the waf builder. I am particularly interested to understand how they are invoked (if at all they are invoked) from NFD and ndn-cxx folder. It will be helpful if you could point me to the specific section of the wscript file where these are invoked. I am tying to replicate the same with another module integration, which also has its own .waf-tools folder. I thank in advance. /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreysilva.eng at gmail.com Fri Oct 2 06:23:50 2015 From: andreysilva.eng at gmail.com (Andrey Silva) Date: Fri, 2 Oct 2015 10:23:50 -0300 Subject: [ndnSIM] CDN Implementation In-Reply-To: References: Message-ID: Thank you Spyridon! I will study more about it! I'm grateful to know that I can have your help. Best regards! 2015-10-01 15:43 GMT-03:00 Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu>: > Hi Andrey, > > this is a research question, which I think needs a fair amount of > experimentation in order to be answered. > > Moreover, CDN still uses the TCP/IP model. Probably, you could use some > modules of ndnSIM (e.g., in-network caching) and also some of the standard > NS3 modules to setup your simulation environment. > > I do not know, though, if/what changes you may need to do in ndnSIM. > > I would be glad to help shall you need any further help. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > > On Oct 1, 2015, at 9:12 AM, Andrey Silva > wrote: > > > > Hello, > > > > I want to perform a comparative study with CDN, but I don't saw in the > maillist some discussion about CDN in ndnSIM. Someone know how implement > CDN in ndnSIM? > > > > Thanks! > > > > -- > > Andrey Silva > > > > Engenheiro da Computa??o - Universidade Federal do Par? > > Mestrando em Engenharia El?trica - Laborat?rio de Processamento de > Sinais - Universidade Federal do Par? . > > - > > http://laps.ufpa.br/ > > > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -- Andrey Silva Engenheiro da Computa??o - Universidade Federal do Par? Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . - http://laps.ufpa.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Fri Oct 2 08:53:29 2015 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Fri, 2 Oct 2015 21:23:29 +0530 Subject: [ndnSIM] Congestion control in ndnSIM Message-ID: Hello everyone, I am exploring about Congestion Control mechanisms in NDN. I have installed ndnSIM and ran some basic examples, but I am little confused about the implementation of CC mechanisms in ndnSIM. Can I get some pointers from where I can extract implementation details of CC mechanisms in ndnSIM? Regards, Ayush Agarwal Post Graduate Student, NITK- Surathkal, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Fri Oct 2 09:15:20 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 2 Oct 2015 09:15:20 -0700 Subject: [ndnSIM] How python scripts in .waf-tools dir are invoked? In-Reply-To: References: Message-ID: <5F083BDD-5BA7-44D3-921C-0647344295E6@cs.ucla.edu> Hi Anil, the ?.waf-tools? folder of ndnSIM and ndn-cxx are being loaded here: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/wscript#L15-L18 In the wscript of ndnSIM, functions that are included in the scripts of the ?.waf-tools? folder are called. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Oct 1, 2015, at 11:23 PM, Anil Jangam wrote: > > Hi, > > I see that each major folder in ndnSIM 2.1 distribution e.g. ndn-cxx, NFD and even under ndnSIM, there is a hidden folder .waf-tools and bunch of python scripts in there. > > I am trying to understand how these scripts are invoked by the waf builder. I am particularly interested to understand how they are invoked (if at all they are invoked) from NFD and ndn-cxx folder. > > It will be helpful if you could point me to the specific section of the wscript file where these are invoked. I am tying to replicate the same with another module integration, which also has its own .waf-tools folder. > > I thank in advance. > > /anil. > From mastorakis at CS.UCLA.EDU Fri Oct 2 09:26:02 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 2 Oct 2015 09:26:02 -0700 Subject: [ndnSIM] Congestion control in ndnSIM In-Reply-To: References: Message-ID: <9D5AF52A-F2B6-4A2F-BC98-09C687C249BE@cs.ucla.edu> Hi Ayush, NDN congestion control is currently an open research question. I feel that probably you could extract some information from the forwarding strategies and perform the forwarding in the appropriate way. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Oct 2, 2015, at 8:53 AM, Ayush Agarwal wrote: > > Hello everyone, > > I am exploring about Congestion Control mechanisms in NDN. > > I have installed ndnSIM and ran some basic examples, but I am little confused about the implementation of CC mechanisms in ndnSIM. > > Can I get some pointers from where I can extract implementation details of CC mechanisms in ndnSIM? > > Regards, > Ayush Agarwal > Post Graduate Student, > NITK- Surathkal, India. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From srk130230 at utdallas.edu Fri Oct 2 10:09:52 2015 From: srk130230 at utdallas.edu (Komajwar, Sharvari) Date: Fri, 2 Oct 2015 17:09:52 +0000 Subject: [ndnSIM] Piggybacking the information Message-ID: Hello, I want each node to piggyback some information like source ID,RTT with the outgoing data packet. How can I do that with ns3 packet tag? Please suggest me the way for adding the tags to data/Interest packet. Is there any documentation for that? Thanks & Regards, Sharvari Komajwar Graduate Student The University of Texas at Dallas -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Fri Oct 2 10:23:21 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 2 Oct 2015 10:23:21 -0700 Subject: [ndnSIM] Piggybacking the information In-Reply-To: References: Message-ID: <12ED4574-2E0F-4C8A-A1F7-72665653B48F@cs.ucla.edu> Hi, the related documentation on ns3 packet tags is here: https://www.nsnam.org/doxygen/classns3_1_1_tag.html Moreover, an example leveraging ns3 packet tags is here: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.cpp https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.hpp -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Oct 2, 2015, at 10:09 AM, Komajwar, Sharvari wrote: > > Hello, > I want each node to piggyback some information like source ID,RTT with the outgoing data packet. How can I do that with ns3 packet tag? > Please suggest me the way for adding the tags to data/Interest packet. Is there any documentation for that? > > Thanks & Regards, > Sharvari Komajwar > Graduate Student > The University of Texas at Dallas > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From anilj.mailing at gmail.com Fri Oct 2 19:45:58 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Fri, 2 Oct 2015 19:45:58 -0700 Subject: [ndnSIM] How python scripts in .waf-tools dir are invoked? In-Reply-To: <5F083BDD-5BA7-44D3-921C-0647344295E6@cs.ucla.edu> References: <5F083BDD-5BA7-44D3-921C-0647344295E6@cs.ucla.edu> Message-ID: Hi Spyros. I have integrated the NSLR codebase under ndnSIM (just like it is done for NFD) and have modified the ndnSIM/wscript file towards this goal. So far, I have been able to compile all the NLSR files except the following issues: - NLSR includes a compilation of a .proto file. The corresponding tool - src/ndnSIM/NLSR/.waf-tools/protoc.py - I believe is being loaded. When I start the build after configure, it throws the following error and stops. - - [ 484/2982] Processing src/ndnSIM/NLSR/nsync/sync-state.proto 19:24:00 runner ['/usr/bin/protoc', '--cpp_out=/home/anilj1/sandbox/ndnSIM/ns-3/build/src/ndnSIM/NLSR/nsync', '-Isrc/ndnSIM/NLSR/nsync', '-I../src/ndnSIM/NLSR/nsync', '-I/usr/include', '/home/anilj1/sandbox/ndnSIM/ns-3/src/ndnSIM/NLSR/nsync/sync-state.proto'] /home/anilj1/sandbox/ndnSIM/ns-3/src/ndnSIM/NLSR/nsync/sync-state.proto: File does not reside within any path specified using --proto_path (or -I). You must specify a --proto_path which encompasses this file. Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think). - The changes I have made to the ndnSIM/wscript file are attached herewith. Can you suggest any clue to fix this? As a workaround, I have another NLSR buid, from where I copy the protoc generated files, and use them. But that's just a workaround. - After workaround, the build again fails end in the end during linking phase with the following erros, again related to the protobuf library. Not sure how to configure this library during the configure time. 3030 [2896/2968] Linking build/src/ndnSIM/examples/ns3-dev-ndn-congestion-topo-plugin-debug 3031 [2896/2968] Linking build/bindings/python/ns/internet.so 3032 [2897/2968] Linking build/src/ndnSIM/examples/ns3-dev-ndn-csma-debug 3033 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::Message::CheckTypeAndMergeFrom(google::proto buf::MessageLite const&)' 3034 ./libns3-dev-ndnSIM-debug.so: undefined reference to `vtable for google::protobuf::Message' 3035 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::internal::LogMessage::LogMessage(google::pro tobuf::LogLevel, char const*, int)' 3036 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint64Fallback(u nsigned long*)' 3037 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteUInt64(int, u nsigned long, google::protobuf::io::CodedOutputStream*)' Can you suggest any solutions to this? /anil. On Fri, Oct 2, 2015 at 9:15 AM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi Anil, > > the ?.waf-tools? folder of ndnSIM and ndn-cxx are being loaded here: > > https://github.com/named-data-ndnSIM/ndnSIM/blob/master/wscript#L15-L18 > > In the wscript of ndnSIM, functions that are included in the scripts of > the ?.waf-tools? folder are called. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > > On Oct 1, 2015, at 11:23 PM, Anil Jangam > wrote: > > > > Hi, > > > > I see that each major folder in ndnSIM 2.1 distribution e.g. ndn-cxx, > NFD and even under ndnSIM, there is a hidden folder .waf-tools and bunch of > python scripts in there. > > > > I am trying to understand how these scripts are invoked by the waf > builder. I am particularly interested to understand how they are invoked > (if at all they are invoked) from NFD and ndn-cxx folder. > > > > It will be helpful if you could point me to the specific section of the > wscript file where these are invoked. I am tying to replicate the same with > another module integration, which also has its own .waf-tools folder. > > > > I thank in advance. > > > > /anil. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- diff --git a/wscript b/wscript index 71f2c9a..2577204 100644 --- a/wscript +++ b/wscript @@ -15,10 +15,18 @@ def required_boost_libs(conf): def options(opt): opt.load(['version'], tooldir=['%s/.waf-tools' % opt.path.abspath()]) opt.load(['doxygen', 'sphinx_build', 'type_traits', 'compiler-features', 'cryptopp', 'sqlite3'], - tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) + tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) + opt.load(['default-compiler-flags', 'coverage', 'boost', 'protoc', 'openssl', 'doxygen', 'sphinx_build'], + tooldir=['%s/NLSR/.waf-tools' % opt.path.abspath()]) def configure(conf): - conf.load(['doxygen', 'sphinx_build', 'type_traits', 'compiler-features', 'version', 'cryptopp', 'sqlite3']) + conf.load(['doxygen', 'sphinx_build', 'type_traits', 'compiler-features', 'version', 'cryptopp', 'sqlite3', 'protoc']) + + conf.load(['compiler_cxx', 'gnu_dirs','boost', 'openssl','default-compiler-flags','doxygen', 'sphinx_build']) + + conf.load('protoc') + + conf.load('coverage') conf.env['ENABLE_NDNSIM']=False @@ -76,6 +84,7 @@ def configure(conf): conf.write_config_header('../../ns3/ndnSIM/ndn-cxx/ndn-cxx-config.hpp', define_prefix='NDN_CXX_', remove=False) conf.write_config_header('../../ns3/ndnSIM/NFD/config.hpp', remove=False) + conf.write_config_header('../../ns3/ndnSIM/NLSR/config.hpp', remove=False) def build(bld): (base, build, split) = bld.getVersion('NFD') @@ -88,6 +97,25 @@ def build(bld): VERSION=int(split[0]) * 1000000 + int(split[1]) * 1000 + int(split[2]), VERSION_MAJOR=split[0], VERSION_MINOR=split[1], VERSION_PATCH=split[2]) + nsync_objects = bld( + target='nsync-objects', + name='nsync-objects', + features='cxx', + source=bld.path.ant_glob(['NLSR/**/*.cc', 'NLSR/**/*.proto']), + use='BOOST NDN_CXX OPENSSL', + includes='NLSR/nsync', + export_includes='NLSR/nsync') + + (base, build, split) = bld.getVersion('NLSR') + bld(features="subst", + name="version-NLSR", + source='NLSR/src/version.hpp.in', target='../../ns3/ndnSIM/NLSR/version.hpp', + install_path=None, + VERSION_STRING=base, + VERSION_BUILD="%s-ndnSIM" % build, + VERSION=int(split[0]) * 1000000 + int(split[1]) * 1000 + int(split[2]), + VERSION_MAJOR=split[0], VERSION_MINOR=split[1], VERSION_PATCH=split[2]) + (base, build, split) = bld.getVersion('ndn-cxx') bld(features="subst", name="version-ndn-cxx", @@ -121,12 +149,19 @@ def build(bld): 'NFD/daemon/face/websocket*', 'NFD/rib/nrd.cpp']) + nsyncSrc = bld.path.ant_glob(['%s/**/*.cc' % dir for dir in ['NLSR']]) + + nlsrSrc = bld.path.ant_glob(['%s/**/*.cpp' % dir for dir in ['NLSR/src']], + excl=['NLSR/src/main.cpp', + 'NLSR/src/nlsr-runner.cpp', + 'NLSR/src/conf-file-processor.cpp']) + module = bld.create_ns3_module('ndnSIM', deps) module.module = 'ndnSIM' module.features += ' ns3fullmoduleheaders ndncxxheaders' - module.use += ['version-ndn-cxx', 'version-NFD', 'BOOST', 'CRYPTOPP', 'SQLITE3', 'RT', 'PTHREAD'] - module.includes = ['../..', '../../ns3/ndnSIM/NFD', './NFD/core', './NFD/daemon', './NFD/rib', '../../ns3/ndnSIM', '../../ns3/ndnSIM/ndn-cxx'] - module.export_includes = ['../../ns3/ndnSIM/NFD', './NFD/core', './NFD/daemon', './NFD/rib', '../../ns3/ndnSIM'] + module.use += ['version-ndn-cxx', 'version-NFD', 'version-NLSR', 'BOOST', 'CRYPTOPP', 'SQLITE3', 'RT', 'PTHREAD'] + module.includes = ['../..', '../../ns3/ndnSIM/NFD', './NFD/core', './NFD/daemon', './NFD/rib', '../../ns3/ndnSIM', '../../ns3/ndnSIM/ndn-cxx', '../../ns3/ndnSIM/NLSR', './NLSR/src', './NLSR/nsync', './NLSR'] + module.export_includes = ['../../ns3/ndnSIM/NFD', './NFD/core', './NFD/daemon', './NFD/rib', '../../ns3/ndnSIM', '../../ns3/ndnSIM/NLSR', './NLSR/src', './NLSR/nsync', './NLSR'] headers = bld(features='ns3header') headers.module = 'ndnSIM' @@ -138,11 +173,12 @@ def build(bld): module_dirs = ['apps', 'helper', 'model', 'utils'] module.source = bld.path.ant_glob(['%s/**/*.cpp' % dir for dir in module_dirs], - excl=['model/ip-faces/*']) + ndnCxxSrc + nfdSrc + excl=['model/ip-faces/*']) + ndnCxxSrc + nfdSrc + nsyncSrc + nlsrSrc - module_dirs = ['NFD/core', 'NFD/daemon', 'NFD/rib', 'apps', 'helper', 'model', 'utils'] + module_dirs = ['NFD/core', 'NFD/daemon', 'NFD/rib', 'apps', 'helper', 'model', 'utils', 'NLSR/src', 'NLSR/nsync', ] module.full_headers = bld.path.ant_glob(['%s/**/*.hpp' % dir for dir in module_dirs]) module.full_headers += bld.path.ant_glob('NFD/common.hpp') + module.full_headers += bld.path.ant_glob(['%s/**/*.h' % dir for dir in ['NLSR']]) module.ndncxx_headers = bld.path.ant_glob(['ndn-cxx/src/**/*.hpp'], excl=['src/**/*-osx.hpp', 'src/detail/**/*']) From mastorakis at CS.UCLA.EDU Sat Oct 3 22:48:34 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sat, 3 Oct 2015 22:48:34 -0700 Subject: [ndnSIM] How python scripts in .waf-tools dir are invoked? In-Reply-To: References: <5F083BDD-5BA7-44D3-921C-0647344295E6@cs.ucla.edu> Message-ID: > ? The changes I have made to the ndnSIM/wscript file are attached herewith. Can you suggest any clue to fix this? As a workaround, I have another NLSR buid, from where I copy the protoc generated files, and use them. But that's just a workaround. I feel that you may need something like this: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/wscript#L77-L78 > ? After workaround, the build again fails end in the end during linking phase with the following erros, again related to the protobuf library. Not sure how to configure this library during the configure time. > 3030 [2896/2968] Linking build/src/ndnSIM/examples/ns3-dev-ndn-congestion-topo-plugin-debug > 3031 [2896/2968] Linking build/bindings/python/ns/internet.so > 3032 [2897/2968] Linking build/src/ndnSIM/examples/ns3-dev-ndn-csma-debug > 3033 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::Message::CheckTypeAndMergeFrom(google::proto buf::MessageLite const&)' > 3034 ./libns3-dev-ndnSIM-debug.so: undefined reference to `vtable for google::protobuf::Message' > 3035 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::internal::LogMessage::LogMessage(google::pro tobuf::LogLevel, char const*, int)' > 3036 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint64Fallback(u nsigned long*)' > 3037 ./libns3-dev-ndnSIM-debug.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteUInt64(int, u nsigned long, google::protobuf::io::CodedOutputStream*)' > > > Can you suggest any solutions to this? > The linking error most probably means that there are some header files missing and you need to include them in your code. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA From M.AbdollahiSabet at mail.sbu.ac.ir Sat Oct 3 22:56:02 2015 From: M.AbdollahiSabet at mail.sbu.ac.ir (Muhammad Hosain Abdollahi Sabet) Date: Sun, 4 Oct 2015 09:26:02 +0330 Subject: [ndnSIM] CDN Implementation References: Message-ID: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2994@m-pdc.sbu.ac.ir> Hi Andrey, Also you can take look at these too: Comparative study on CCN and CDN http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6849209 A comparative study of Content-Centric and Content-Distribution Networks: Performance and bounds http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6831270 Sabet. -----Original Message----- From: ndnSIM on behalf of Andrey Silva Sent: Fri 10/2/2015 4:53 PM To: Spyridon (Spyros) Mastorakis Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] CDN Implementation Thank you Spyridon! I will study more about it! I'm grateful to know that I can have your help. Best regards! 2015-10-01 15:43 GMT-03:00 Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu>: > Hi Andrey, > > this is a research question, which I think needs a fair amount of > experimentation in order to be answered. > > Moreover, CDN still uses the TCP/IP model. Probably, you could use some > modules of ndnSIM (e.g., in-network caching) and also some of the standard > NS3 modules to setup your simulation environment. > > I do not know, though, if/what changes you may need to do in ndnSIM. > > I would be glad to help shall you need any further help. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > > On Oct 1, 2015, at 9:12 AM, Andrey Silva > wrote: > > > > Hello, > > > > I want to perform a comparative study with CDN, but I don't saw in the > maillist some discussion about CDN in ndnSIM. Someone know how implement > CDN in ndnSIM? > > > > Thanks! > > > > -- > > Andrey Silva > > > > Engenheiro da Computa??o - Universidade Federal do Par? > > Mestrando em Engenharia El?trica - Laborat?rio de Processamento de > Sinais - Universidade Federal do Par? . > > - > > http://laps.ufpa.br/ > > > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -- Andrey Silva Engenheiro da Computa??o - Universidade Federal do Par? Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . - http://laps.ufpa.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Sun Oct 4 11:18:21 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Sun, 4 Oct 2015 11:18:21 -0700 Subject: [ndnSIM] How python scripts in .waf-tools dir are invoked? In-Reply-To: References: <5F083BDD-5BA7-44D3-921C-0647344295E6@cs.ucla.edu> Message-ID: Hi Spyros, On Sat, Oct 3, 2015 at 10:48 PM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > > > ? The changes I have made to the ndnSIM/wscript file are > attached herewith. Can you suggest any clue to fix this? As a workaround, I > have another NLSR buid, from where I copy the protoc generated files, and > use them. But that's just a workaround. > > I feel that you may need something like this: > > https://github.com/named-data-ndnSIM/ndnSIM/blob/master/wscript#L77-L78 Actually, if you noticed in the diff, I have already added this line to my wscript. Its something to do with the way protocol buffer parser is invoked. @@ -76,6 +84,7 @@ def configure(conf): conf.write_config_header('../../ns3/ndnSIM/ndn-cxx/ndn-cxx-config.hpp', define_prefix='NDN_CXX_', remove=False) conf.write_config_header('../../ns3/ndnSIM/NFD/config.hpp', remove=False) + conf.write_config_header('../../ns3/ndnSIM/NLSR/config.hpp', remove=False) > > ? After workaround, the build again fails end in the end during > linking phase with the following erros, again related to the protobuf > library. Not sure how to configure this library during the configure time. > > 3030 [2896/2968] Linking > build/src/ndnSIM/examples/ns3-dev-ndn-congestion-topo-plugin-debug > > 3037 ./libns3-dev-ndnSIM-debug.so: undefined reference to > `google::protobuf::internal::WireFormatLite::WriteUInt64(int, u nsigned > long, google::protobuf::io::CodedOutputStream*)' > > > > > > Can you suggest any solutions to this? > > > > The linking error most probably means that there are some header files > missing and you need to include them in your code. I don't quite agree. It would have been a compile error in that case. I believe these are because it is not finding the lprotobuf due to something missing during configuration stage? I have verified that this library in present my environment. Right now, I am not adding any new code. I am just trying to update the wscript build file to accommodate NLSR as integral part of ndnSIM just like NFD and ndn-cxx. /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sun Oct 4 12:01:32 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sun, 4 Oct 2015 12:01:32 -0700 Subject: [ndnSIM] How python scripts in .waf-tools dir are invoked? In-Reply-To: References: <5F083BDD-5BA7-44D3-921C-0647344295E6@cs.ucla.edu> Message-ID: > The linking error most probably means that there are some header files missing and you need to include them in your code. > I don't quite agree. It would have been a compile error in that case. I believe these are because it is not finding the lprotobuf due to something missing during configuration stage? I have verified that this library in present my environment. > > Right now, I am not adding any new code. I am just trying to update the wscript build file to accommodate NLSR as integral part of ndnSIM just like NFD and ndn-cxx. The short answer to that is "not necessarily". :-) When you are trying to compile and link you code using a wscript, things are kind of more tricky. If you do not export the headers of one module and link them with the desired module in the right way, the compiler would not be able to find them. I am not fully aware of all the dependencies of NLSR and, especially, of the protobuf dependency. I think that we used to use it more extensively before I joined UCLA, but for some reason we have almost abandoned it. Probably, it would be useful for you to take a look at the way that we link some real applications that we have already ported to the simulator: https://github.com/named-data-ndnSIM/scenario-ndn-ping https://github.com/spirosmastorakis/scenario-ChronoSync https://github.com/spirosmastorakis/ndns-scenario -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA From andreysilva.eng at gmail.com Tue Oct 6 08:45:52 2015 From: andreysilva.eng at gmail.com (Andrey Silva) Date: Tue, 6 Oct 2015 12:45:52 -0300 Subject: [ndnSIM] CDN Implementation In-Reply-To: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2994@m-pdc.sbu.ac.ir> References: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2994@m-pdc.sbu.ac.ir> Message-ID: Hi Muhammad, Thank you! Best regards! 2015-10-04 2:56 GMT-03:00 Muhammad Hosain Abdollahi Sabet < M.AbdollahiSabet at mail.sbu.ac.ir>: > Hi Andrey, > > Also you can take look at these too: > > Comparative study on CCN and CDN > http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6849209 > > A comparative study of Content-Centric and Content-Distribution Networks: > Performance and bounds > http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6831270 > > Sabet. > > > -----Original Message----- > From: ndnSIM on behalf of Andrey Silva > Sent: Fri 10/2/2015 4:53 PM > To: Spyridon (Spyros) Mastorakis > Cc: ndnsim at lists.cs.ucla.edu > Subject: Re: [ndnSIM] CDN Implementation > > Thank you Spyridon! > > I will study more about it! > > I'm grateful to know that I can have your help. > > Best regards! > > 2015-10-01 15:43 GMT-03:00 Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu>: > > > Hi Andrey, > > > > this is a research question, which I think needs a fair amount of > > experimentation in order to be answered. > > > > Moreover, CDN still uses the TCP/IP model. Probably, you could use some > > modules of ndnSIM (e.g., in-network caching) and also some of the > standard > > NS3 modules to setup your simulation environment. > > > > I do not know, though, if/what changes you may need to do in ndnSIM. > > > > I would be glad to help shall you need any further help. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > > > > > On Oct 1, 2015, at 9:12 AM, Andrey Silva > > wrote: > > > > > > Hello, > > > > > > I want to perform a comparative study with CDN, but I don't saw in the > > maillist some discussion about CDN in ndnSIM. Someone know how implement > > CDN in ndnSIM? > > > > > > Thanks! > > > > > > -- > > > Andrey Silva > > > > > > Engenheiro da Computa??o - Universidade Federal do Par? > > > Mestrando em Engenharia El?trica - Laborat?rio de Processamento de > > Sinais - Universidade Federal do Par? . > > > - > > > http://laps.ufpa.br/ > > > > > > _______________________________________________ > > > ndnSIM mailing list > > > ndnSIM at lists.cs.ucla.edu > > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > > > > -- > Andrey Silva > > Engenheiro da Computa??o - Universidade Federal do Par? > Mestrando em Engenharia El?trica - Laborat?rio de Processamento de > Sinais - Universidade > Federal do Par? . > - > http://laps.ufpa.br/ > > > > > > -- Andrey Silva Engenheiro da Computa??o - Universidade Federal do Par? Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . - http://laps.ufpa.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreysilva.eng at gmail.com Tue Oct 6 09:09:52 2015 From: andreysilva.eng at gmail.com (Andrey Silva) Date: Tue, 6 Oct 2015 13:09:52 -0300 Subject: [ndnSIM] Distance Between 2 Nodes Message-ID: Hello, Sorry if it is a dumb question, My doubt is: the metric of distance between the nodes is calculated in meters? For example in the 9-node grid example, when i set up the X and Y position in the code, is it in meters? Another question is: the e2e-delay is based on distance too? So the final delay is = link delay + distance based delay? Because, if only link delay is into account, the distance between nodes is only for "best see" in the vizualizer, right? Regards, -- Andrey Silva Engenheiro da Computa??o - Universidade Federal do Par? Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . - http://laps.ufpa.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue Oct 6 10:01:42 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 6 Oct 2015 10:01:42 -0700 Subject: [ndnSIM] Distance Between 2 Nodes In-Reply-To: References: Message-ID: Hi Andrey, this is a question related to NS3 itself. You could take a look at the related NS3 documentation: https://www.nsnam.org/doxygen/classns3_1_1_point_to_point_grid_helper.html https://www.nsnam.org/doxygen/group__propagation.html https://www.nsnam.org/doxygen/group__visualizer.html In case that you do not find anything relevant, you could try to send an email to the NS3 mailing list. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Oct 6, 2015, at 9:09 AM, Andrey Silva wrote: > > Hello, > > Sorry if it is a dumb question, > > My doubt is: the metric of distance between the nodes is calculated in meters? For example in the 9-node grid example, when i set up the X and Y position in the code, is it in meters? Another question is: the e2e-delay is based on distance too? So the final delay is = link delay + distance based delay? Because, if only link delay is into account, the distance between nodes is only for "best see" in the vizualizer, right? > > Regards, > > -- > Andrey Silva > > Engenheiro da Computa??o - Universidade Federal do Par? > Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . > - > http://laps.ufpa.br/ > > _______________________________________________ > 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 dhiabimen at gmail.com Thu Oct 8 03:34:27 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Thu, 8 Oct 2015 11:34:27 +0100 Subject: [ndnSIM] Random Producer/consumer Message-ID: Hi , there is any one who can tell me how can I change my producer node randomly at every simulation. I try to use rand(): NodeContainer c; // NodeContainer c.Create (4); int a=1+rand()%3 // to generate an integer between 1 and 4 producerHelper.Install (c.Get (a)); but when I want to display the value of a std::cout << "a = " << a <<"\n"; I have the same value even when I re-simulate my code. thnx a lot. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreysilva.eng at gmail.com Thu Oct 8 04:20:42 2015 From: andreysilva.eng at gmail.com (Andrey Silva) Date: Thu, 8 Oct 2015 08:20:42 -0300 Subject: [ndnSIM] Random Producer/consumer In-Reply-To: References: Message-ID: Hello, You have to seed it. Put this code at the beginning of you code. srand( time(NULL) ); Best regards! 2015-10-08 7:34 GMT-03:00 Dhiab Imen : > Hi , > > there is any one who can tell me how can I change my producer node > randomly at every simulation. > > I try to use rand(): > NodeContainer c; // NodeContainer > c.Create (4); > int a=1+rand()%3 // to generate an integer between 1 and 4 > > producerHelper.Install (c.Get (a)); > > but when I want to display the value of a > > std::cout << "a = " << a <<"\n"; > > I have the same value even when I re-simulate my code. > > thnx a lot. > > -- > Cordialement > Imen Dhiab > > > *************************************************************************************************** > Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. > Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en > G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. > +216 53 59 19 88 > Pages personnelles : > http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html > > *************************************************************************************************** > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -- Andrey Silva Engenheiro da Computa??o - Universidade Federal do Par? Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . - http://laps.ufpa.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From poschdaniel2 at gmail.com Thu Oct 8 04:27:11 2015 From: poschdaniel2 at gmail.com (Daniel Posch) Date: Thu, 8 Oct 2015 13:27:11 +0200 Subject: [ndnSIM] Random Producer/consumer In-Reply-To: References: Message-ID: <5616530F.7060706@gmail.com> Hello, from my point of view this is a very bad idea. In a simulation you should only use ns-3 based random variables. See: https://www.nsnam.org/docs/manual/html/random-variables.html This guarantees 100% reproducibility. Greetings, Daniel On 10/08/2015 01:20 PM, Andrey Silva wrote: > Hello, > > You have to seed it. > > Put this code at the beginning of you code. > > srand( time(NULL) ); > | > | > |Best regards! > | > | > > | > > 2015-10-08 7:34 GMT-03:00 Dhiab Imen >: > > Hi , > > there is any one who can tell me how can I change my producer node > randomly at every simulation. > > I try to use rand(): > NodeContainer c;// NodeContainer > c.Create (4); > int a=1+rand()%3 // to generate an integer between 1 and 4 > > producerHelper.Install (c.Get (a)); > > but when I want to display the value of a > > std::cout << "a = " << a <<"\n"; > > I have the same value even when I re-simulate my code. > > thnx a lot. > > -- > Cordialement > Imen Dhiab > > *************************************************************************************************** > Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs > de Sfax. > Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en > G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. > +216 53 59 19 88 > Pages personnelles : > http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html > *************************************************************************************************** > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > > -- > Andrey Silva > > Engenheiro da Computa??o - Universidade Federal do Par? > Mestrando em Engenharia El?trica - Laborat?rio de Processamento de > Sinais - Universidade Federal do Par? . > - > http://laps.ufpa.br/ > > > / > / > > > > _______________________________________________ > 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 dhiabimen at gmail.com Thu Oct 8 05:59:40 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Thu, 8 Oct 2015 13:59:40 +0100 Subject: [ndnSIM] Random Producer/consumer Message-ID: Hello , when I add srand( time(NULL) ); at the begining of my code it works and it give me at every simulation a different value of the variable a . But Daniel you see that it is very bad idea can you tell me how can I use UniformRandomVariable or ExponentialRandomVariable in order to get un integer between 0 and 4?? thnx a lot for help -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreysilva.eng at gmail.com Thu Oct 8 13:18:43 2015 From: andreysilva.eng at gmail.com (Andrey Silva) Date: Thu, 8 Oct 2015 17:18:43 -0300 Subject: [ndnSIM] Node with same interest in a diferent time interval Message-ID: Hello, I'm trying to implement a node that send one interest with prefix ("/prefix" for example) for a few seconds (for example from 0 to 5s). And after 2 seconds, start the same application with this same consumer. But, when I made it, nothing is happening after the end of the application (in 5s). I take a look at this answer ( http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000189.html), but this didn't work for me =(. Can some help ? here is what i'm doing: ndn::StackHelper ndnHelper; ndnHelper.InstallAll(); ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; ndnGlobalRoutingHelper.InstallAll(); ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/best-route"); ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); consumerHelper.SetPrefix("/prefix"); ApplicationContainer apps = consumerHelper.Install (consumerNode); apps.Start (Seconds (0.0)); apps.Stop (Seconds (5.0)); ApplicationContainer apps2 = consumerHelper.Install (consumerNode); apps2.Start (Seconds (7.0)); apps2.Stop (Seconds (20.0)); ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetAttribute("PayloadSize", StringValue("1024")); ndnGlobalRoutingHelper.AddOrigins("/prefix", producerNode); producerHelper.SetPrefix("/prefix"); producerHelper.Install(producerNode); ndn::GlobalRoutingHelper::CalculateRoutes(); Thanks in advance -- Andrey Silva Engenheiro da Computa??o - Universidade Federal do Par? Mestrando em Engenharia El?trica - Laborat?rio de Processamento de Sinais - Universidade Federal do Par? . - http://laps.ufpa.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From poschdaniel2 at gmail.com Thu Oct 8 22:31:11 2015 From: poschdaniel2 at gmail.com (Daniel Posch) Date: Fri, 9 Oct 2015 07:31:11 +0200 Subject: [ndnSIM] Random Producer/consumer In-Reply-To: References: Message-ID: <5617511F.9090109@gmail.com> Hi, see section*"Creating random variables"* at the link I posted before: https://www.nsnam.org/docs/manual/html/random-variables.html#seeding-and-independent-replications Greetings, Daniel Am 08.10.2015 um 14:59 schrieb Dhiab Imen: > Hello , > > when I add srand( time(NULL) ); at the begining of my code it works > and it give me at every simulation a different value of the variable a . > > But Daniel you see that it is very bad idea can you tell me how can I > use UniformRandomVariable or ExponentialRandomVariable in order to > get un integer between 0 and 4?? > > thnx a lot for help > > > -- > Cordialement > Imen Dhiab > > *************************************************************************************************** > Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. > Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en > G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. > +216 53 59 19 88 > Pages personnelles : > http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html > *************************************************************************************************** --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From crpaul5566 at gmail.com Fri Oct 9 12:27:20 2015 From: crpaul5566 at gmail.com (=?UTF-8?B?576F5YWL5Yqb?=) Date: Sat, 10 Oct 2015 03:27:20 +0800 Subject: [ndnSIM] Rocketfuel Topology Message-ID: Hi everyone, I downloaded ndnSIM-sample-topologies and tried to run example.cc in ndnSIM 2.0. Although it finished "build", it showed '--SimulatorImplementationType=ns3::VisualSimulatorImpl' terminated with signal SIGSEGV. Is there any other way to run larger topology and assign producers and consumers randomly? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From crpaul5566 at gmail.com Sun Oct 11 13:29:24 2015 From: crpaul5566 at gmail.com (=?UTF-8?B?576F5YWL5Yqb?=) Date: Mon, 12 Oct 2015 04:29:24 +0800 Subject: [ndnSIM] Larger topology Message-ID: Hello everyone, I wanna use larger topology like rocketfuel map. I found out RocketfuelMapReader but I have no ideas how to use it. Please help me. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vivekvpandya at gmail.com Mon Oct 12 01:41:53 2015 From: vivekvpandya at gmail.com (vivek pandya) Date: Mon, 12 Oct 2015 14:11:53 +0530 Subject: [ndnSIM] Help ! Creating an overlay application Message-ID: Hello there, I am trying to make an overlay solution for simple multicast between group of hosts. For this purpose I want to develop a overlay router that can inspect some selectors in Interest packet and store it to some data structure. Is it advisable to create a custom application class inheriting from * ndn::App *class or I need some thing more ? If primary design succeeds than I may include ChronoSync based sync packets in my network. Please help what is best suited for my purpose. Thanks ! -- *Vivek Pandya* Mobile : +(91) 9408549393 Email: vivekvpandya at gmail.com Address: C - 33, Near Lakhubhai Hall, Kalvibeed, Bhavnagar, Gujarat, India - 364002. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vivekvpandya at gmail.com Mon Oct 12 02:36:51 2015 From: vivekvpandya at gmail.com (vivek pandya) Date: Mon, 12 Oct 2015 15:06:51 +0530 Subject: [ndnSIM] Help ! Assert in TypeId::LookupByName: error. Could not find the class Message-ID: I am try to create a custom application for ndnSIM. I am following http://ndnsim.net/2.1/applications.html#custom-applications. I have put all my source .cpp and .hpp files in* ndnSIM/ns-3/src/sndSIM/apps* but when I try to run it I am getting following error. assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: CustomConsumer not found", file=../src/core/model/type-id.cc, line=755 terminate called without an active exception This error is similar to http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-March/001730.html Please help ! -- *Vivek Pandya* -------------- next part -------------- An HTML attachment was scrubbed... URL: From moosavi.itsu at yahoo.com Mon Oct 12 12:18:19 2015 From: moosavi.itsu at yahoo.com (Samira Moosavi) Date: Mon, 12 Oct 2015 19:18:19 +0000 (UTC) Subject: [ndnSIM] application References: <497277223.2693467.1444677499944.JavaMail.yahoo@mail.yahoo.com> Message-ID: <497277223.2693467.1444677499944.JavaMail.yahoo@mail.yahoo.com> Dear All I have simulated a scenario of consumer mobility with ndnSIM and I want to have an video streaming application in this scenario. Now I would be appreciated if could you help me how I can implement this application to have segment in this app? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Tue Oct 13 03:35:50 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Tue, 13 Oct 2015 11:35:50 +0100 Subject: [ndnSIM] Throughput /Kilobytes Message-ID: Hi, I'm working with ndn nodes,I want to get throughput of each node using trace files since flowmonitor doesn't work with ndn nodes. I want to know if kilobytes field, in the generated file using L3RateTracer , is the throughput or not?? And if it is not can you tell me how can I get the throughput of each node. Thnx a lot for your help. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Tue Oct 13 06:56:05 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Tue, 13 Oct 2015 14:56:05 +0100 Subject: [ndnSIM] CS Tracer Message-ID: Hi , I want to get cache hit ratio using cs tracer .I'm using the formula mentioned there: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-September/002094.html Cache hit ratio (%) = (Total number of cache hits / (Total number of cache hits + Total number of cache misses)) * 100 But I want to know in which case the number of cache hits is incremented where packets field is null or not and what does packets field refers to??? thnx a lot for help. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Fri Oct 16 02:28:43 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Fri, 16 Oct 2015 10:28:43 +0100 Subject: [ndnSIM] Cache Hit Ratio Message-ID: Hi , I want to get cache hit ratio using cs tracer .I'm using the formula mentioned there: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-September/002094.html Cache hit ratio (%) = (Total number of cache hits / (Total number of cache hits + Total number of cache misses)) * 100 But I want to know in which case the number of cache hits is incremented where packets field is null or not and what does packets field refers to??? thnx a lot for help. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From antil.janu at gmail.com Mon Oct 19 22:49:48 2015 From: antil.janu at gmail.com (antil janu) Date: Mon, 19 Oct 2015 22:49:48 -0700 Subject: [ndnSIM] Installing ndnSIM on OS X 10.10 Message-ID: Hi, The command is throwing a following error. I installed port on my mac laptop (10.10.5 OS x Yosemite) sudo port install pkgconfig boost sqlite3 libcryptopp Error: Port sqlite3 not found. how to fix this probem? Janu. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Oct 20 13:31:34 2015 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 20 Oct 2015 15:31:34 -0500 Subject: [ndnSIM] Installing ndnSIM on OS X 10.10 In-Reply-To: References: Message-ID: <34B010EF-EA06-4978-A029-8E8FA6338259@cs.ucla.edu> Something strange with your macports... You may want to try to `sudo port selfupgrade` to update macports and port definitions. Also, you can skip sqlite3 dependency, as it is also available natively on OS X. --- Alex > On Oct 20, 2015, at 12:49 AM, antil janu wrote: > > Hi, > > The command is throwing a following error. I installed port on my mac laptop (10.10.5 OS x Yosemite) > > sudo port install pkgconfig boost sqlite3 libcryptopp > > Error: Port sqlite3 not found. > > how to fix this probem? > > Janu -------------- 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 yye at research.ait.ie Wed Oct 21 02:07:40 2015 From: yye at research.ait.ie (Yuhang Ye) Date: Wed, 21 Oct 2015 10:07:40 +0100 Subject: [ndnSIM] Using the Metric from topo as the NextHop value using the global routing calculation Message-ID: Hi there, I am trying to write an simple static forwarding strategy based on the Nexthop cost. I fall in trouble as using the metric (from the topology file) value to calculate the NextHop cost in the dijkstra_shortest_paths. 1. The *boost::DistancesMap distances;* seems have already calculate the optimal distance before the *dijkstra_shortest_paths* run. 2. If it is suitable or possible to pass the metric (from the topology file) to the *boost::NdnGlobalRouterGraph graph; * as the edge or edge weights? It seems the default value is 1 for each edge of a graph. Thanks a lot~ Best Regards Yuhang -------------- next part -------------- An HTML attachment was scrubbed... URL: From ayush0071 at gmail.com Wed Oct 21 22:11:54 2015 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Thu, 22 Oct 2015 10:41:54 +0530 Subject: [ndnSIM] Shell script to install ndnSIM on Ubuntu Message-ID: Hello Everyone, We have designed a shell script to install ndnSIM on Ubuntu. The same has been tested on Ubuntu 14.04 and 15.04. Link to the blog post: http://mohittahiliani.blogspot.in/2015/10/ns-3-installing-ndnsim-on-ubuntu.html Any suggestion to improve the post or shell script is welcome. Please let us know if you come across any bugs. Thank you for your continuous support. Regards, Ayush Agarwal -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Fri Oct 23 10:54:13 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Fri, 23 Oct 2015 18:54:13 +0100 Subject: [ndnSIM] Throughput and delay using ascii trace file Message-ID: Hi all, I'm trying to calculate throughput and delay.I want to know if it is possible to get them using ascii trace file by parsing ascii traces using awk script or not?? And if it is possible can anyone explain to me how can I calculate these metrics?? thnx a lot for help. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sun Oct 25 11:39:44 2015 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sun, 25 Oct 2015 11:39:44 -0700 Subject: [ndnSIM] Shell script to install ndnSIM on Ubuntu In-Reply-To: References: Message-ID: <6A2487E0-FD9C-4234-BE5C-CE5A2564FEDD@cs.ucla.edu> Hi Ayush, thank you very much for your contribution. I feel that many people will find your script useful. Just to clarify something (and correct me if I am wrong) this script is about the installation of the latest ndnSIM version (ndnSIM 2.1), right? It would be nice if you could update your script every time there is a new ndnSIM or Ubuntu release. Thank you again! Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Oct 21, 2015, at 10:11 PM, Ayush Agarwal wrote: > > Hello Everyone, > > We have designed a shell script to install ndnSIM on Ubuntu. The same has been tested on Ubuntu 14.04 and 15.04. > > Link to the blog post: http://mohittahiliani.blogspot.in/2015/10/ns-3-installing-ndnsim-on-ubuntu.html > > Any suggestion to improve the post or shell script is welcome. Please let us know if you come across any bugs. > > Thank you for your continuous support. > > Regards, > Ayush Agarwal -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.ulgelmo at aol.com Mon Oct 26 07:33:26 2015 From: marco.ulgelmo at aol.com (Marco Ulgelmo) Date: Mon, 26 Oct 2015 15:33:26 +0100 Subject: [ndnSIM] About FaceTable Message-ID: Hello, I was wandering wether the FaceTable class holds both incoming and outgoing Faces for a given node or just the incoming ones. Thanks, Marco Ulgelmo From ayush0071 at gmail.com Tue Oct 27 21:11:59 2015 From: ayush0071 at gmail.com (Ayush Agarwal) Date: Wed, 28 Oct 2015 09:41:59 +0530 Subject: [ndnSIM] Shell script to install ndnSIM on Ubuntu In-Reply-To: <6A2487E0-FD9C-4234-BE5C-CE5A2564FEDD@cs.ucla.edu> References: <6A2487E0-FD9C-4234-BE5C-CE5A2564FEDD@cs.ucla.edu> Message-ID: Hi Spyridon, Thank you for the feedback! In the shell script, we are cloning the latest github code where version is specified as 2.1. However, after installation on the local machine, the version appears to be 2.0 inside (../ndnSIM/ns-3/src/ndnSIM). We will look into this once again. Yes, we will ensure that this shell script is updated whenever a new ndnSIM or Ubuntu is released. Thanks a lot for your support. Regards, Ayush Agarwal On Mon, Oct 26, 2015 at 12:09 AM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi Ayush, > > thank you very much for your contribution. I feel that many people will > find your script useful. > > Just to clarify something (and correct me if I am wrong) this script is > about the installation of the latest ndnSIM version (ndnSIM 2.1), right? > > It would be nice if you could update your script every time there is a new > ndnSIM or Ubuntu release. > > Thank you again! > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > On Oct 21, 2015, at 10:11 PM, Ayush Agarwal wrote: > > Hello Everyone, > > We have designed a shell script to install ndnSIM on Ubuntu. The same has > been tested on Ubuntu 14.04 and 15.04. > > Link to the blog post: > http://mohittahiliani.blogspot.in/2015/10/ns-3-installing-ndnsim-on-ubuntu.html > > Any suggestion to improve the post or shell script is welcome. Please let > us know if you come across any bugs. > > Thank you for your continuous support. > > Regards, > Ayush Agarwal > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From z.rezaiefar at yahoo.com Fri Oct 30 05:39:18 2015 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Fri, 30 Oct 2015 12:39:18 +0000 (UTC) Subject: [ndnSIM] a question about PIT in ndnsim References: <1547979439.5785970.1446208758655.JavaMail.yahoo@mail.yahoo.com> Message-ID: <1547979439.5785970.1446208758655.JavaMail.yahoo@mail.yahoo.com> Hello,I would like to say that I want to modify PIT in ndnsim code.as I know in normal case in PIT when the interest?message is satisfied by content message, it will be omitted?from this table.?However, I want to not omit this message when?the related content will be received, but it will be omitted just after expire time. moreover, I want to save the receiving time of each Interest message separately although these messages are related to one content?either from same or different interfaces.I have looked the pit.cpp code but unfortunately I have not?understood where I should change.I become so thankful if you help me or send me some document that explains the content store code written in the ndnsim in detail.any help will be appreciatethanks in advancebest regards???? -------------- next part -------------- An HTML attachment was scrubbed... URL: From monikabaraut at gmail.com Fri Oct 30 09:45:40 2015 From: monikabaraut at gmail.com (Monika Dangi) Date: Fri, 30 Oct 2015 22:15:40 +0530 Subject: [ndnSIM] how to use tracing in ndnsim Message-ID: hey i am new to ndnsim, i have a problem which may be very small for you but because m very naive to this, when i am using *L3RateTracer::InstallAll("rate-trace.txt", Seconds(1.0)); *to log all the message in the text file i am getting error *L3RateTrace is not defined *.. i was searching through the previous mail list to get the answer. and i also included the header #include "ns3/ndnSIM/utils/tracers/ndn-l3-rate-tracer.hpp" but the error is same. can you please help me here.. how to solve this error?? thanks in advance from Monika Dangi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tteixeira at engin.umass.edu Fri Oct 30 09:09:52 2015 From: tteixeira at engin.umass.edu (Thiago Teixeira) Date: Fri, 30 Oct 2015 16:09:52 +0000 Subject: [ndnSIM] Wireless multi-hop ad-hoc communication Message-ID: <41E7DF15B39B5C46BF24C9545D39304C2AC2EF36@oit-ex2010-mb1> Hi all, I am using ndnSIM 2.0 and I am working on a scenario with multiple nodes, randomly placed in an area, communicating via Wi-Fi. I have one producer (fixed), one consumer, and all other nodes are routers. Every node broadcasts the Interests to all faces (using a modified broadcast strategy). The point is, most of the communication was done in one hop. I reduced the Wi-Fi range and noticed that routers do not relay content. Therefore, I have a few questions: 1 - Does ndnSIM supports multi-hop wireless communication by default? I want the routers to work like data mules. 2 - My question is very similar to this: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000201.html I wonder if the Car2Car implementation is still the way to go, or there are newer implementations. Thanks for your help -------------- next part -------------- An HTML attachment was scrubbed... URL: