From 15mcen21 at nirmauni.ac.in Thu Dec 1 20:46:43 2016 From: 15mcen21 at nirmauni.ac.in (ZALAKBEN PRAJAPATI) Date: Fri, 2 Dec 2016 10:16:43 +0530 Subject: [ndnSIM] regarding caching problem in ndnsim Message-ID: hello sir Sir i have a problem regarding to implement a caching policy. so please give me a guidance to how to do code for caching policy. Thanks & Regards Prajapati Zalak Institute of Technology, Nirma University, Ahmedabad -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Thu Dec 1 21:02:54 2016 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 2 Dec 2016 00:02:54 -0500 Subject: [ndnSIM] regarding caching problem in ndnsim In-Reply-To: References: Message-ID: Zalakben, Others can correct me if I am wrong, but I would say you must: 1. Create a subclass of the Policy class ( http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html) The Policy class is the class that the actual storage of the entries can go into. Check out 2. Set your Cs to use your custom Policy class Take a look at some of the policies provided, such as http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1priority__fifo_1_1PriorityFifoPolicy.html and http://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1lru_1_1LruPolicy.html. Pay close attention to the inherited virtual methods (member functions), such as afterInsert. Thanks, John On Thu, Dec 1, 2016 at 11:46 PM, ZALAKBEN PRAJAPATI <15mcen21 at nirmauni.ac.in > wrote: > hello sir > Sir i have a problem regarding to implement a caching policy. > so please give me a guidance to how to do code for caching policy. > > > > > > Thanks & Regards > Prajapati Zalak > Institute of Technology, > Nirma University, Ahmedabad > > > _______________________________________________ > 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 Fri Dec 2 09:32:28 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Fri, 2 Dec 2016 18:32:28 +0100 Subject: [ndnSIM] consumer frequency does not work .. In-Reply-To: <3756AE4A-6F4E-44EB-893A-20E64DCA9F96@cs.ucla.edu> References: <3756AE4A-6F4E-44EB-893A-20E64DCA9F96@cs.ucla.edu> Message-ID: Hi Alex, Something seems strange. It does not matter whether I run my simulations 1000 seconds or 100,000 seconds ! In the former case a client issues around 40 Interests and in the latter case around 50 Interests. Does this make sense ? Thanks and regards. C On Sat, Jun 25, 2016 at 6:57 AM, Alex Afanasyev wrote: > Hi Carl, > > ConsumerZipfMandelbrot app does't have Frequency parameter, as it models > ZipfMandelbrot distribution of requests. It has 3 prameters that you can > control the model, you can check then in the source code > https://github.com/named-data-ndnSIM/ndnSIM/blob/master/ > apps/ndn-consumer-zipf-mandelbrot.cpp (more about model is on wikipedia > https://en.m.wikipedia.org/wiki/Zipf?Mandelbrot_law). > > The last time would be different, as the model is probabilistic. > > --- > Alex > > > On Jun 22, 2016, at 8:28 AM, Carl Zu wrote: > > > > Hi all, > > > > I have a zipfian consumer installed at each consumer node. Even if I > have set the "frequency" to one (1 second), the last time that each > consumer node generates an interest is different. Please see below some > information about this (SIMULATION_TIME=1800 s): > > > > nodeID lastInterestFwd nInterestFwd interestOverhead > > 0 1701.32 37 2059 > > 1 675.495 29 1557 > > 2 1619.28 34 1781 > > 3 590.82 33 1790 > > 4 836.126 30 1675 > > 5 80.0199 24 1274 > > 6 1546.96 32 1764 > > 7 515.022 28 1596 > > 8 1214.58 29 1616 > > 9 1184.11 32 1641 > > 10 902.013 36 2086 > > 11 1066.91 27 1452 > > 12 389.501 29 1451 > > 13 1378.49 29 1505 > > 14 821.176 33 1823 > > 15 713.737 28 1599 > > 16 1795.63 29 1514 > > 17 673.653 33 1802 > > 18 254.06 28 1420 > > 19 1082.7 29 1720 > > 20 998.265 32 1747 > > > > Thanks for any guidance. > > 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 jpbaugh at umich.edu Fri Dec 2 22:53:59 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sat, 3 Dec 2016 01:53:59 -0500 Subject: [ndnSIM] Content Store - caching a couple weird objects? Message-ID: Greetings all, I'm playing around with some of the content store stuff at the moment and have a couple questions. Here are the relevant files to my questions: *My primary simulation file:* https://drive.google.com/open?id=0By9ufeKqmJYYN0dLMENXOVJjSlE *My derived / customized policy class:* https://drive.google.com/open?id=0By9ufeKqmJYYYUZOQUZFd21ORDA *The output of the contents of Content Store:* https://drive.google.com/open?id=0By9ufeKqmJYYTXdCMU1nN3lYeFU Questions: 1.) I figure the stuff with /prefix/.... in front of it is just randomized / pseudorandomly generated items just starting with /prefix. But *what in the world is *the other garbage being printed to the file? Usually it's something like /localhost/nfd/faces/enable-local/control/. Is this some sort of setup information / link confirmation ACK or something that the nodes send/receive? Why is the CS caching it as if it were data? 2.) Is there a significant advantage to using one of the NS_LOG or tracers over using standard library objects? 3.) If I understand correctly, the *POLICY *is responsible for actually caching the data? I assume that's all handled with the doBeforeInsert and the related virtual functions, like the policies that ndnSIM provides (FIFO, LRU, etc.), correct? The Content Store object itself seems to just cache the *names* and not the actual data? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sat Dec 3 03:58:44 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sat, 03 Dec 2016 11:58:44 +0000 Subject: [ndnSIM] Content Store - caching a couple weird objects? In-Reply-To: References: Message-ID: Hi John 1. With few exceptions, names beginning with /localhost/nfd belong to NFD Management protocol https://redmine.named-data.net/projects/nfd/wiki/Management . NFD Management protocol is designed as an NDN application layer protocol, so its packets show up as Interests and Data. CS caches them just as any other Data. 2. Yes, NS_LOG allows one to enable and disable each logging component individually via NS_LOG environ at runtime. For tracers, see https://www.nsnam.org/docs/release/3.25/manual/html/tracing.html "tracing motivation" and remember that NS_LOG will not work if ns-3 is compiled in release mode. 3. No. CS itself caches the Data inside nfd::cs::Entry class and maintains an index based on names. The argument passed to Policy APIs is the iterator on CS's primary index, and Policy maintains a secondary index of those iterators used for eviction. The reason for this separation is to support different Policy types with standard C++ subclasses, rather than complex compile-time templates (which was used in ndnSIM 1.0 and appears as "old ContentStore"). Yours, Junxiao On Fri, Dec 2, 2016 at 23:54 John Baugh wrote: > Greetings all, > > I'm playing around with some of the content store stuff at the moment and > have a couple questions. > > Here are the relevant files to my questions: > > *My primary simulation file:* > https://drive.google.com/open?id=0By9ufeKqmJYYN0dLMENXOVJjSlE > > *My derived / customized policy class:* > https://drive.google.com/open?id=0By9ufeKqmJYYYUZOQUZFd21ORDA > > *The output of the contents of Content Store:* > https://drive.google.com/open?id=0By9ufeKqmJYYTXdCMU1nN3lYeFU > > > Questions: > > 1.) I figure the stuff with /prefix/.... in front of it is just > randomized / pseudorandomly generated items just starting with /prefix. > But *what in the world is *the other garbage being printed to the file? > Usually it's something like > /localhost/nfd/faces/enable-local/control/. > > Is this some sort of setup information / link confirmation ACK or > something that the nodes send/receive? Why is the CS caching it as if it > were data? > > 2.) Is there a significant advantage to using one of the NS_LOG or > tracers over using standard library objects? > > 3.) If I understand correctly, the *POLICY *is responsible for actually > caching the data? I assume that's all handled with the doBeforeInsert and > the related virtual functions, like the policies that ndnSIM provides > (FIFO, LRU, etc.), correct? The Content Store object itself seems to just > cache the *names* and not the actual data? > > Thanks, > > John > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 3 17:00:20 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sat, 3 Dec 2016 20:00:20 -0500 Subject: [ndnSIM] Content Store - caching a couple weird objects? In-Reply-To: References: Message-ID: Junxiao and Muhammad, Thank you for your responses. For a little more clarification regarding where the actual data entries are stored: When I look at cs.hpp: *http://ndnsim.net/2.1/doxygen/cs_8hpp_source.html *, and also the cs.cpp file: *http://ndnsim.net/2.1/doxygen/cs_8cpp_source.html *, I see the following: In the Cs *HPP , *I see as data (private)*:* *Table m_table;unique_ptr m_policy;ndn::util::signal::ScopedConnection m_beforeEvictConnection;* So, a table (of entry names?), a smart pointer to the Policy (possibly with a polymorphic object), and a signal - no data. In the Cs *CPP*, I see nothing indicating insertion of data, except *through *the policy. On the contrary, when I look at one of the *Policy classes*, such as in the FIFO policy ( http://ndnsim.net/2.1/doxygen/cs-policy-priority-fifo_8cpp_source.html) I see use of what appears to be a map of entries, and an actual queue (m_queue). I'm just trying to wrap my head around what is going where. I've been told, or given the impression, that if you want to change the caching algorithm (cache replacement, caching) then the route to go is to provide a subclass of the *Policy*, NOT the *Cs *itself. Thanks a ton, everyone, John On Sat, Dec 3, 2016 at 6:58 AM, Junxiao Shi wrote: > Hi John > > 1. With few exceptions, names beginning with /localhost/nfd belong to NFD > Management protocol https://redmine.named-data.net/projects/nfd/wiki/ > Management . NFD Management protocol is designed as an NDN application > layer protocol, so its packets show up as Interests and Data. CS caches > them just as any other Data. > 2. Yes, NS_LOG allows one to enable and disable each logging component > individually via NS_LOG environ at runtime. For tracers, see > https://www.nsnam.org/docs/release/3.25/manual/html/tracing.html "tracing > motivation" and remember that NS_LOG will not work if ns-3 is compiled in > release mode. > 3. No. CS itself caches the Data inside nfd::cs::Entry class and maintains > an index based on names. The argument passed to Policy APIs is the iterator > on CS's primary index, and Policy maintains a secondary index of those > iterators used for eviction. The reason for this separation is to support > different Policy types with standard C++ subclasses, rather than complex > compile-time templates (which was used in ndnSIM 1.0 and appears as "old > ContentStore"). > > Yours, Junxiao > > On Fri, Dec 2, 2016 at 23:54 John Baugh wrote: > >> Greetings all, >> >> I'm playing around with some of the content store stuff at the moment and >> have a couple questions. >> >> Here are the relevant files to my questions: >> >> *My primary simulation file:* >> https://drive.google.com/open?id=0By9ufeKqmJYYN0dLMENXOVJjSlE >> >> *My derived / customized policy class:* >> https://drive.google.com/open?id=0By9ufeKqmJYYYUZOQUZFd21ORDA >> >> *The output of the contents of Content Store:* >> https://drive.google.com/open?id=0By9ufeKqmJYYTXdCMU1nN3lYeFU >> >> >> Questions: >> >> 1.) I figure the stuff with /prefix/.... in front of it is just >> randomized / pseudorandomly generated items just starting with /prefix. >> But *what in the world is *the other garbage being printed to the file? >> Usually it's something like /localhost/nfd/faces/enable-local/control/> string>. >> >> Is this some sort of setup information / link confirmation ACK or >> something that the nodes send/receive? Why is the CS caching it as if it >> were data? >> >> 2.) Is there a significant advantage to using one of the NS_LOG or >> tracers over using standard library objects? >> >> 3.) If I understand correctly, the *POLICY *is responsible for actually >> caching the data? I assume that's all handled with the doBeforeInsert and >> the related virtual functions, like the policies that ndnSIM provides >> (FIFO, LRU, etc.), correct? The Content Store object itself seems to just >> cache the *names* and not the actual data? >> >> Thanks, >> >> John >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 3 23:23:29 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 4 Dec 2016 02:23:29 -0500 Subject: [ndnSIM] Content Store - caching a couple weird objects? In-Reply-To: References: Message-ID: All - As a follow up, I noticed that *emitSignal(beforeEvict, i); *is called in both the LRU and Priority FIFO Policies. Is *this *what tells the Cs to remove the actual data, as the Policy subclass should also mimic / mirror the removal from its "secondary index" (to quote Junxiao)? I assume since it's not just calling beforeEvict or something that it must be doing something besides just that. This may be the last major piece to my puzzle of figuring out what is going on. Thanks, John On Sat, Dec 3, 2016 at 8:00 PM, John Baugh wrote: > Junxiao and Muhammad, > > Thank you for your responses. For a little more clarification regarding > where the actual data entries are stored: > > When I look at cs.hpp: *http://ndnsim.net/2.1/doxygen/cs_8hpp_source.html > *, and also the cs.cpp > file: *http://ndnsim.net/2.1/doxygen/cs_8cpp_source.html > *, I see the following: > > In the Cs *HPP , *I see as data (private)*:* > > > > *Table m_table;unique_ptr > m_policy;ndn::util::signal::ScopedConnection m_beforeEvictConnection;* > > > So, a table (of entry names?), a smart pointer to the Policy (possibly > with a polymorphic object), and a signal - no data. > > In the Cs *CPP*, I see nothing indicating insertion of data, except *through > *the policy. > > On the contrary, when I look at one of the *Policy classes*, such as in > the FIFO policy (http://ndnsim.net/2.1/doxygen/cs-policy-priority- > fifo_8cpp_source.html) I see use of what appears to be a map of entries, > and an actual queue (m_queue). > > I'm just trying to wrap my head around what is going where. > > I've been told, or given the impression, that if you want to change the > caching algorithm (cache replacement, caching) then the route to go is to > provide a subclass of the *Policy*, NOT the *Cs *itself. > > Thanks a ton, everyone, > > John > > On Sat, Dec 3, 2016 at 6:58 AM, Junxiao Shi > wrote: > >> Hi John >> >> 1. With few exceptions, names beginning with /localhost/nfd belong to NFD >> Management protocol https://redmine.named-data.net >> /projects/nfd/wiki/Management . NFD Management protocol is designed as >> an NDN application layer protocol, so its packets show up as Interests and >> Data. CS caches them just as any other Data. >> 2. Yes, NS_LOG allows one to enable and disable each logging component >> individually via NS_LOG environ at runtime. For tracers, see >> https://www.nsnam.org/docs/release/3.25/manual/html/tracing.html >> "tracing motivation" and remember that NS_LOG will not work if ns-3 is >> compiled in release mode. >> 3. No. CS itself caches the Data inside nfd::cs::Entry class and >> maintains an index based on names. The argument passed to Policy APIs is >> the iterator on CS's primary index, and Policy maintains a secondary index >> of those iterators used for eviction. The reason for this separation is to >> support different Policy types with standard C++ subclasses, rather than >> complex compile-time templates (which was used in ndnSIM 1.0 and appears as >> "old ContentStore"). >> >> Yours, Junxiao >> >> On Fri, Dec 2, 2016 at 23:54 John Baugh wrote: >> >>> Greetings all, >>> >>> I'm playing around with some of the content store stuff at the moment >>> and have a couple questions. >>> >>> Here are the relevant files to my questions: >>> >>> *My primary simulation file:* >>> https://drive.google.com/open?id=0By9ufeKqmJYYN0dLMENXOVJjSlE >>> >>> *My derived / customized policy class:* >>> https://drive.google.com/open?id=0By9ufeKqmJYYYUZOQUZFd21ORDA >>> >>> *The output of the contents of Content Store:* >>> https://drive.google.com/open?id=0By9ufeKqmJYYTXdCMU1nN3lYeFU >>> >>> >>> Questions: >>> >>> 1.) I figure the stuff with /prefix/.... in front of it is just >>> randomized / pseudorandomly generated items just starting with /prefix. >>> But *what in the world is *the other garbage being printed to the >>> file? Usually it's something like /localhost/nfd/faces/enable-local/control/>> string>. >>> >>> Is this some sort of setup information / link confirmation ACK or >>> something that the nodes send/receive? Why is the CS caching it as if it >>> were data? >>> >>> 2.) Is there a significant advantage to using one of the NS_LOG or >>> tracers over using standard library objects? >>> >>> 3.) If I understand correctly, the *POLICY *is responsible for >>> actually caching the data? I assume that's all handled with the >>> doBeforeInsert and the related virtual functions, like the policies that >>> ndnSIM provides (FIFO, LRU, etc.), correct? The Content Store object >>> itself seems to just cache the *names* and not the actual data? >>> >>> Thanks, >>> >>> John >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 3 23:47:09 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 4 Dec 2016 02:47:09 -0500 Subject: [ndnSIM] Content Store - caching a couple weird objects? In-Reply-To: References: Message-ID: Sorry again: Now I'm REALLY confused. The note in the documentation for doBeforeErase says: NoteThis will not be invoked for an entry being evicted by policy. Besides the policy, what else is responsible for evicting an item? In the LRU and Priority FIFO, it seems an emitSignal is called, which I assume is supposed to trigger beforeErase, which calls doBeforeErase? This is a confusing spider web. Hopefully you can help me untangle it. :) I'm headed to bed. I'd really appreciate some clarification on these issues. Thanks so much for your patience, everyone, John On Sun, Dec 4, 2016 at 2:23 AM, John Baugh wrote: > All - > > As a follow up, I noticed that *emitSignal(beforeEvict, i); *is called in > both the LRU and Priority FIFO Policies. Is *this *what tells the Cs to > remove the actual data, as the Policy subclass should also mimic / mirror > the removal from its "secondary index" (to quote Junxiao)? I assume since > it's not just calling beforeEvict or something that it must be doing > something besides just that. > > This may be the last major piece to my puzzle of figuring out what is > going on. > > Thanks, > > John > > On Sat, Dec 3, 2016 at 8:00 PM, John Baugh wrote: > >> Junxiao and Muhammad, >> >> Thank you for your responses. For a little more clarification regarding >> where the actual data entries are stored: >> >> When I look at cs.hpp: *http://ndnsim.net/2.1/doxygen/cs_8hpp_source.html >> *, and also the >> cs.cpp file: *http://ndnsim.net/2.1/doxygen/cs_8cpp_source.html >> *, I see the >> following: >> >> In the Cs *HPP , *I see as data (private)*:* >> >> >> >> *Table m_table;unique_ptr >> m_policy;ndn::util::signal::ScopedConnection m_beforeEvictConnection;* >> >> >> So, a table (of entry names?), a smart pointer to the Policy (possibly >> with a polymorphic object), and a signal - no data. >> >> In the Cs *CPP*, I see nothing indicating insertion of data, except *through >> *the policy. >> >> On the contrary, when I look at one of the *Policy classes*, such as in >> the FIFO policy (http://ndnsim.net/2.1/doxygen >> /cs-policy-priority-fifo_8cpp_source.html) I see use of what appears to >> be a map of entries, and an actual queue (m_queue). >> >> I'm just trying to wrap my head around what is going where. >> >> I've been told, or given the impression, that if you want to change the >> caching algorithm (cache replacement, caching) then the route to go is to >> provide a subclass of the *Policy*, NOT the *Cs *itself. >> >> Thanks a ton, everyone, >> >> John >> >> On Sat, Dec 3, 2016 at 6:58 AM, Junxiao Shi > > wrote: >> >>> Hi John >>> >>> 1. With few exceptions, names beginning with /localhost/nfd belong to >>> NFD Management protocol https://redmine.named-data.net >>> /projects/nfd/wiki/Management . NFD Management protocol is designed as >>> an NDN application layer protocol, so its packets show up as Interests and >>> Data. CS caches them just as any other Data. >>> 2. Yes, NS_LOG allows one to enable and disable each logging component >>> individually via NS_LOG environ at runtime. For tracers, see >>> https://www.nsnam.org/docs/release/3.25/manual/html/tracing.html >>> "tracing motivation" and remember that NS_LOG will not work if ns-3 is >>> compiled in release mode. >>> 3. No. CS itself caches the Data inside nfd::cs::Entry class and >>> maintains an index based on names. The argument passed to Policy APIs is >>> the iterator on CS's primary index, and Policy maintains a secondary index >>> of those iterators used for eviction. The reason for this separation is to >>> support different Policy types with standard C++ subclasses, rather than >>> complex compile-time templates (which was used in ndnSIM 1.0 and appears as >>> "old ContentStore"). >>> >>> Yours, Junxiao >>> >>> On Fri, Dec 2, 2016 at 23:54 John Baugh wrote: >>> >>>> Greetings all, >>>> >>>> I'm playing around with some of the content store stuff at the moment >>>> and have a couple questions. >>>> >>>> Here are the relevant files to my questions: >>>> >>>> *My primary simulation file:* >>>> https://drive.google.com/open?id=0By9ufeKqmJYYN0dLMENXOVJjSlE >>>> >>>> *My derived / customized policy class:* >>>> https://drive.google.com/open?id=0By9ufeKqmJYYYUZOQUZFd21ORDA >>>> >>>> *The output of the contents of Content Store:* >>>> https://drive.google.com/open?id=0By9ufeKqmJYYTXdCMU1nN3lYeFU >>>> >>>> >>>> Questions: >>>> >>>> 1.) I figure the stuff with /prefix/.... in front of it is just >>>> randomized / pseudorandomly generated items just starting with /prefix. >>>> But *what in the world is *the other garbage being printed to the >>>> file? Usually it's something like /localhost/nfd/faces/enable-local/control/>>> string>. >>>> >>>> Is this some sort of setup information / link confirmation ACK or >>>> something that the nodes send/receive? Why is the CS caching it as if it >>>> were data? >>>> >>>> 2.) Is there a significant advantage to using one of the NS_LOG or >>>> tracers over using standard library objects? >>>> >>>> 3.) If I understand correctly, the *POLICY *is responsible for >>>> actually caching the data? I assume that's all handled with the >>>> doBeforeInsert and the related virtual functions, like the policies that >>>> ndnSIM provides (FIFO, LRU, etc.), correct? The Content Store object >>>> itself seems to just cache the *names* and not the actual data? >>>> >>>> Thanks, >>>> >>>> John >>>> _______________________________________________ >>>> ndnSIM mailing list >>>> ndnSIM at lists.cs.ucla.edu >>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From runtongchen at csu.edu.cn Sun Dec 4 06:37:36 2016 From: runtongchen at csu.edu.cn (RuntongChen) Date: Sun, 4 Dec 2016 22:37:36 +0800 (GMT+08:00) Subject: [ndnSIM] How can I get the matching faces by the Interest? Message-ID: <5e101a17.2749.158ca44cc66.Coremail.runtongchen@csu.edu.cn> Hello Everyone? I want to get the matching faces based on the confirmed interest in the pit. And I noticed that the pit::FaceRecord::getFace maybe can help me.But I don't know how can I get into it and print the faces out.So can you give me some advices?And the similar question about the fib.How can I get the next hop faces based on the confirmed prefix? Taanks for your reading.And best wishes to you. Yours, Runtong -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlzu8 at gmail.com Tue Dec 6 11:37:16 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Tue, 6 Dec 2016 20:37:16 +0100 Subject: [ndnSIM] Why some of the expired Interests are not removed from PITs? Message-ID: Dear all, Does anyone know the reason why sometimes, some of the expired Interests are not removed from PITs? Thanks and regards C -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Tue Dec 6 11:43:37 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Tue, 6 Dec 2016 12:43:37 -0700 Subject: [ndnSIM] Why some of the expired Interests are not removed from PITs? In-Reply-To: References: Message-ID: <3205B656-031C-46CF-8559-11A927D54DB2@email.arizona.edu> Hi Carl This is because nfd::Pit is not ?pending Interest table?, but ?Interest table?. NFD Interest table contains entries for both pending Interests and recently satisfied Interests. Read NFD Developer?s Guide ?Interest table? section for more information. Yours, Junxiao > On Dec 6, 2016, at 12:37 PM, Carl Zu wrote: > > Dear all, > > Does anyone know the reason why sometimes, some of the expired Interests are not removed from PITs? > > Thanks and regards > C From carlzu8 at gmail.com Tue Dec 6 11:59:12 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Tue, 6 Dec 2016 20:59:12 +0100 Subject: [ndnSIM] Why some of the expired Interests are not removed from PITs? In-Reply-To: <3205B656-031C-46CF-8559-11A927D54DB2@email.arizona.edu> References: <3205B656-031C-46CF-8559-11A927D54DB2@email.arizona.edu> Message-ID: Hi Junxiao, Thanks! I see your point, but can I remove the expired ones? (at least for certain prefix). Thank you in advance, for your guidance. Best, C On Dec 6, 2016 8:43 PM, "Junxiao Shi" wrote: > Hi Carl > > This is because nfd::Pit is not ?pending Interest table?, but ?Interest > table?. NFD Interest table contains entries for both pending Interests and > recently satisfied Interests. > Read NFD Developer?s Guide ?Interest table? section for more information. > > Yours, Junxiao > > > On Dec 6, 2016, at 12:37 PM, Carl Zu wrote: > > > > Dear all, > > > > Does anyone know the reason why sometimes, some of the expired Interests > are not removed from PITs? > > > > Thanks and regards > > C > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15mcen21 at nirmauni.ac.in Wed Dec 7 00:15:19 2016 From: 15mcen21 at nirmauni.ac.in (ZALAKBEN PRAJAPATI) Date: Wed, 7 Dec 2016 13:45:19 +0530 Subject: [ndnSIM] (no subject) Message-ID: When I run: > > > > ./waf configure --enable-examples > > > > the output is: > > > > sf:~/ndnSIM/ns-3# ./waf configure --enable-examples > > Traceback (most recent call last): > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > line 108, in waf_entry_point > > run_commands() > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > line 165, in run_commands > > parse_options() > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > line 138, in parse_options > > Context.create_context('options').execute() > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", > line 146, in execute > > super(OptionsContext,self).execute() > > File > "/root/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 > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 133, in recurse > > user_function(self) > > File "/root/ndnSIM/ns-3/wscript", line 213, in options > > opt.recurse('src') > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 133, in recurse > > user_function(self) > > File "/root/ndnSIM/ns-3/src/wscript", line 48, in options > > opt.recurse(module, mandatory=False) > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 133, in recurse > > user_function(self) > > File "/root/ndnSIM/ns-3/src/ndnSIM/wscript", line 18, in options > > tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 86, in load > > module=load_tool(t,path) > > File > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > line 342, in load_tool > > __import__(tool) > > ImportError: No module named doxygen > > > > ---------------------------------- > > > > I have successfully built (ndn-cxx and NFD) > > any suggestion? please sir give me response as fast as possible Thanks & Regards Prajapati Zalak Institute of Technology, Nirma University, Ahmedabad -------------- next part -------------- An HTML attachment was scrubbed... URL: From lu.zhang at fuji.waseda.jp Wed Dec 7 01:46:20 2016 From: lu.zhang at fuji.waseda.jp (ZHANG, Lu) Date: Wed, 7 Dec 2016 18:46:20 +0900 Subject: [ndnSIM] About link usage Message-ID: Hi all, I would like to get the current link bandwidth usage of a specified link(not the maximum capability) and return it. Are there any existing functions to do this? Thanks in advance. Regards, Zhang Lu -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed Dec 7 10:53:54 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 7 Dec 2016 10:53:54 -0800 Subject: [ndnSIM] (no subject) In-Reply-To: References: Message-ID: Hey, The error suggests that you didn't get submodules (didn't use --recursive option to clone command). Just do the following: cd ndnSIM/ns-3/src/ndnSIM git submodule update --init This should fix it. -- Alex > On Dec 7, 2016, at 12:15 AM, ZALAKBEN PRAJAPATI <15mcen21 at nirmauni.ac.in> wrote: > > When I run: > > > > > > ./waf configure --enable-examples > > > > > > the output is: > > > > > > sf:~/ndnSIM/ns-3# ./waf configure --enable-examples > > > Traceback (most recent call last): > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > > line 108, in waf_entry_point > > > run_commands() > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > > line 165, in run_commands > > > parse_options() > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", > > line 138, in parse_options > > > Context.create_context('options').execute() > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", > > line 146, in execute > > > super(OptionsContext,self).execute() > > > File > > "/root/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 > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > > line 133, in recurse > > > user_function(self) > > > File "/root/ndnSIM/ns-3/wscript", line 213, in options > > > opt.recurse('src') > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > > line 133, in recurse > > > user_function(self) > > > File "/root/ndnSIM/ns-3/src/wscript", line 48, in options > > > opt.recurse(module, mandatory=False) > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > > line 133, in recurse > > > user_function(self) > > > File "/root/ndnSIM/ns-3/src/ndnSIM/wscript", line 18, in options > > > tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()]) > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > > line 86, in load > > > module=load_tool(t,path) > > > File > > "/root/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", > > line 342, in load_tool > > > __import__(tool) > > > ImportError: No module named doxygen > > > > > > ---------------------------------- > > > > > > I have successfully built (ndn-cxx and NFD) > > > any suggestion? > > please sir give me response as fast as possible > > Thanks & Regards > Prajapati Zalak > Institute of Technology, > Nirma University, Ahmedabad > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From aa at CS.UCLA.EDU Wed Dec 7 10:57:38 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 7 Dec 2016 10:57:38 -0800 Subject: [ndnSIM] About link usage In-Reply-To: References: Message-ID: <9D414F32-495F-4BFD-8197-EBCCDCC84662@cs.ucla.edu> Hi Zhang, "Usage" is not a parameter you can simply get. You can only measure / estimate it. One way to do this is to use ndn::L3Tracer (http://ndnsim.net/2.2/metric.html ), which gives you an approximate value of usage for Interest, data, and other portions for each face. For overall usage, you would just need to sum up those. There are other ways to do this, but all of them include some sort of measurements. If you just want to visually check, you can use the visualizer module (though it may not be trivial to make it work). -- Alex > On Dec 7, 2016, at 1:46 AM, ZHANG, Lu wrote: > > Hi all, > > I would like to get the current link bandwidth usage of a specified link(not the maximum capability) and return it. Are there any existing functions to do this? > > Thanks in advance. > > Regards, > > Zhang Lu -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15mcen21 at nirmauni.ac.in Wed Dec 7 20:14:30 2016 From: 15mcen21 at nirmauni.ac.in (ZALAKBEN PRAJAPATI) Date: Thu, 8 Dec 2016 09:44:30 +0530 Subject: [ndnSIM] regarding caching code in ndnsim Message-ID: hello sir, i wanted to run LRU cache policy in ndnsim But it give some error. can you provide me code with basic step ? how to run a caching basic policy in ndnsim? reply fast as much as possible Thanks & Regards Prajapati Zalak Institute of Technology, Nirma University, Ahmedabad Sent with Mailtrack -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Wed Dec 7 20:57:40 2016 From: jpbaugh at umich.edu (John Baugh) Date: Wed, 7 Dec 2016 23:57:40 -0500 Subject: [ndnSIM] Content Store Caching/Replacement Policies Message-ID: ndnSIM friends, Once again, I thank you all for your help and patience. My questions: 1.) In *cs-policy-lru.cpp*, the doBeforeErase function is as follows: *void* * LruPolicy::doBeforeErase(iterator i)* * {* * m_queue.get<1>().erase(i);* * }* Note that it is removing an item from the queue, apparently. However, I was told this is just another copy of the table of iterators that the Cs itself stores? If this is so, how is this actually having any effect of the contents in the Cs itself? 2.) I noticed that there is an *emitSignal* when entries as evicted, and it has beforeEvict as the first argument (in both LRU and Priority Fifo) - what exactly is this signal emission doing? Does this tell the Cs itself to remove entries? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed Dec 7 21:41:44 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 8 Dec 2016 00:41:44 -0500 Subject: [ndnSIM] Content Store Caching/Replacement Policies In-Reply-To: References: Message-ID: > On Dec 7, 2016, at 11:57 PM, John Baugh wrote: > > ndnSIM friends, > > Once again, I thank you all for your help and patience. > > My questions: > > 1.) In cs-policy-lru.cpp, the doBeforeErase function is as follows: > > void > LruPolicy::doBeforeErase(iterator i) > { > m_queue.get<1>().erase(i); > } > > Note that it is removing an item from the queue, apparently. However, I was told this is just another copy of the table of iterators that the Cs itself stores? > > If this is so, how is this actually having any effect of the contents in the Cs itself? doBeforeErase doesn't affect the CS itself. It is being called just before removal of an entry from CS, which has been decided in some other way. > 2.) I noticed that there is an emitSignal when entries as evicted, and it has beforeEvict as the first argument (in both LRU and Priority Fifo) - what exactly is this signal emission doing? Does this tell the Cs itself to remove entries? Exactly. For LRU policy, this decision process happen on doAfterInsert: if the size of CS becomes larger than the limit, the policy selects an entry (using the policy-managed queue) and emit signal to indicate CS to remove the specified entry. After that CS will do the job of preparing to remove, call doBeforeErase on the policy, and then actually remove the entry. --- Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Wed Dec 7 21:55:00 2016 From: jpbaugh at umich.edu (John Baugh) Date: Thu, 8 Dec 2016 00:55:00 -0500 Subject: [ndnSIM] Content Store Caching/Replacement Policies In-Reply-To: References: Message-ID: Alex Thank you for the response! So, to make sure I'm understanding this:. The Policy subclass maintains a secondary table of iterators essentially (e.g., a queue) - when the Policy implementation decides it's time for a specific entry to be removed, it should remove it from its own table, but emit a signal to tell the Cs which entry to remove as well. Is this correct? Thanks John On Dec 8, 2016 12:41 AM, "Alex Afanasyev" wrote: > > On Dec 7, 2016, at 11:57 PM, John Baugh wrote: > > ndnSIM friends, > > Once again, I thank you all for your help and patience. > > My questions: > > 1.) In *cs-policy-lru.cpp*, the doBeforeErase function is as follows: > > *void* > * LruPolicy::doBeforeErase(iterator i)* > * {* > * m_queue.get<1>().erase(i);* > * }* > > Note that it is removing an item from the queue, apparently. However, I > was told this is just another copy of the table of iterators that the Cs > itself stores? > > If this is so, how is this actually having any effect of the contents in > the Cs itself? > > > doBeforeErase doesn't affect the CS itself. It is being called just before > removal of an entry from CS, which has been decided in some other way. > > 2.) I noticed that there is an *emitSignal* when entries as evicted, and > it has beforeEvict as the first argument (in both LRU and Priority Fifo) - > what exactly is this signal emission doing? Does this tell the Cs itself > to remove entries? > > > Exactly. For LRU policy, this decision process happen on doAfterInsert: if > the size of CS becomes larger than the limit, the policy selects an entry > (using the policy-managed queue) and emit signal to indicate CS to remove > the specified entry. After that CS will do the job of preparing to > remove, call doBeforeErase on the policy, and then actually remove the > entry. > > --- > Alex > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Wed Dec 7 23:00:44 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Thu, 8 Dec 2016 10:30:44 +0330 Subject: [ndnSIM] Need help regarding routing in ndnSIM In-Reply-To: References: Message-ID: Hi Guntur, I'm glad of that! As you may probably know by now, ndnSIM has a globalRoutingHelper, which is not a real-time routing protocol. But for nlsr, thanks to Anil, it has already been ported into ndnSIM. You can find the nlsr code here: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR And here you can find the doc on how to compile it: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md About OSPFN, it's better to quote Lixia from a couple of months ago : I dont think OSPFN was coded into ndnSIM, nor do we have such a plan. > One should understand that OSPFN was simply a quick hack to get NDN > testbed started, not so much of a research result. ?Regards, Sabet? On Tue, Dec 6, 2016 at 6:02 AM, Guntur Purba Siboro < gunturpurbasiboro at gmail.com> wrote: > Hello Muhammad, > > I am finally installed ndnSIM on my machine (openSUSE). I want to simulate > and compare the routing performance between NLSR and OSPFN. I will be very > thankfull if you can tell me where can I find help, because I cannot find > anything close to routing in ndnSIM example. > > Note: > I really don't know how to implement routing protocols (NLSR and OSPFN) in > ndnSIM or any simulator from scratch. > I have sufficient knowledge in writing in C/C++ > > Thanks, > Guntur Purba Siboro. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15mcen21 at nirmauni.ac.in Wed Dec 7 23:22:02 2016 From: 15mcen21 at nirmauni.ac.in (ZALAKBEN PRAJAPATI) Date: Thu, 8 Dec 2016 12:52:02 +0530 Subject: [ndnSIM] problem in code Message-ID: when i run NS_LOG=DumbRequester:ndn.cs.Freshness.Lru ./waf --run=ndn-simple-with-content-freshness it gives follwing output:: Waf: Entering directory `/home/administrator/ndnSIM/ns-dev/ns-3/build' program 'ndn-simple-with-content-freshness' not found; available programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen', 'tap-device-creator', 'src/fd-net-device/tap-device-creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', 'src/tap-bridge/tap-creator'] please give solution....... Thanks & Regards Prajapati Zalak Institute of Technology, Nirma University, Ahmedabad -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15mcen21 at nirmauni.ac.in Wed Dec 7 23:23:34 2016 From: 15mcen21 at nirmauni.ac.in (ZALAKBEN PRAJAPATI) Date: Thu, 8 Dec 2016 12:53:34 +0530 Subject: [ndnSIM] regarding caching Message-ID: hello please give me code for implement caching in ndnsim Thanks & Regards Prajapati Zalak Institute of Technology, Nirma University, Ahmedabad -------------- next part -------------- An HTML attachment was scrubbed... URL: From junior.dongo at lacl.fr Thu Dec 8 01:32:20 2016 From: junior.dongo at lacl.fr (Junior DONGO) Date: Thu, 8 Dec 2016 10:32:20 +0100 Subject: [ndnSIM] problem in code In-Reply-To: References: Message-ID: Hello Zalakben, This error means examples are not build. Two possible solutions: 1 - run ./waf configure --enables-examples 2 - copy the file examples/ndn-simple-with-content-freshness.cc** into ns-3/scratch Junior On 12/08/2016 08:22 AM, ZALAKBEN PRAJAPATI wrote: > when i run > > NS_LOG=DumbRequester:ndn.cs.Freshness.Lru ./waf --run=ndn-simple-with-content-freshness > it gives follwing output:: > > Waf: Entering directory `/home/administrator/ndnSIM/ns-dev/ns-3/build' > program 'ndn-simple-with-content-freshness' not found; available > programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', > 'scratch/scratch-simulator', 'test-runner', 'utils/test-runner', > 'bench-simulator', 'utils/bench-simulator', 'bench-packets', > 'utils/bench-packets', 'print-introspected-doxygen', > 'utils/print-introspected-doxygen', 'tap-device-creator', > 'src/fd-net-device/tap-device-creator', 'raw-sock-creator', > 'src/fd-net-device/raw-sock-creator', 'tap-creator', > 'src/tap-bridge/tap-creator'] > > > please give solution....... > > Thanks & Regards > Prajapati Zalak > Institute of Technology, > Nirma University, Ahmedabad > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Thu Dec 8 03:37:16 2016 From: shijunxiao at email.arizona.edu (shijunxiao at email.arizona.edu) Date: Thu, 8 Dec 2016 04:37:16 -0700 Subject: [ndnSIM] Content Store Caching/Replacement Policies In-Reply-To: References: Message-ID: <584945e7.87d6620a.83ed0.d742@mx.google.com> Hi John Alex already answered. There?s one mistake, though. Policy::doBeforeErase will not be invoked when policy decides to evict an entry. It?s only intended to be invoked from Cs::erase (it?s not implemented because there?s no valid use case). When Policy decides to evict an entry, it inform CS via beforeEvict signal to erase the entry from CS?s lookup index (the Table), and then deletes the entry?s iterator from Policy?s cleanup queue first. Since the eviction is decided by Policy, Policy already knows which iterator should be deleted from its cleanup queue, so there?s no need to CS to tell Policy which iterator should be deleted. On the other hand, in the case of Cs::erase (when it?s implemented), the deletion decision comes from ?higher up? (an application or management utility), so the Policy needs to be told which iterator should be deleted from its cleanup queue. Yours, Junxiao From: Alex Afanasyev Sent: Wednesday, December 7, 2016 22:42 To: John Baugh Cc: ndnsim Subject: Re: [ndnSIM] Content Store Caching/Replacement Policies 1.) ?In cs-policy-lru.cpp, the doBeforeErase function is as follows: void ?LruPolicy::doBeforeErase(iterator i) ?{ ? ?m_queue.get<1>().erase(i); ?} Note that it is removing an item from the queue, apparently.? However, I was told this is just another copy of the table of iterators that the Cs itself stores? If this is so, how is this actually having any effect of the contents in the Cs itself? doBeforeErase doesn't affect the CS itself. It is being called just before removal of an entry from CS, which has been decided in some other way. 2.) ?I noticed that there is an emitSignal?when entries as evicted, and it has beforeEvict as the first argument (in both LRU and Priority Fifo) - what exactly is this signal emission doing?? Does this tell the Cs itself to remove entries? Exactly. For LRU policy, this decision process happen on doAfterInsert: if the size of CS becomes larger than the limit, the policy selects an entry (using the policy-managed queue) and emit signal to indicate CS to remove the specified entry. ? After that CS will do the job of preparing to remove, call doBeforeErase on the policy, and then actually remove the entry. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Fri Dec 9 16:43:14 2016 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 9 Dec 2016 19:43:14 -0500 Subject: [ndnSIM] Cloud 9 ? Message-ID: ndnSIM friends, Have any of you successfully installed and run simulations on the Cloud service, Cloud 9? (or another similar service)? I assume the premium account would be needed, but I was curious what your experience was if you've used it. Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Fri Dec 9 19:51:23 2016 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 9 Dec 2016 22:51:23 -0500 Subject: [ndnSIM] Appropriate time to print CS contents? Message-ID: ndnSIM friends, At what point is it appropriate to print the contents of the CS? I've tried putting some code to print its contents using iterators (e.g., for(auto it = theCS.begin(); it != theCS.end(); ++it) { cout<getName()< From mastorakis at CS.UCLA.EDU Fri Dec 9 20:07:08 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 9 Dec 2016 20:07:08 -0800 Subject: [ndnSIM] Appropriate time to print CS contents? In-Reply-To: References: Message-ID: <5DA62E23-7CEA-4200-B871-E1C3CDE8BDF7@cs.ucla.edu> Hi John, I would suggest you either use the NS3 logging statements (e.g., NS_LOG_FUNCTION, NS_LOG_INFO) or the cerr to print out the contents of the CS. Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 9, 2016, at 7:51 PM, John Baugh wrote: > > ndnSIM friends, > > At what point is it appropriate to print the contents of the CS? > > I've tried putting some code to print its contents using iterators (e.g., > > for(auto it = theCS.begin(); it != theCS.end(); ++it) > { > cout<getName()< } > > But this doesn't appear to do anything. I'm currently putting the code after Simulation::Run() and before Simulation::Destroy(); > > Is there somewhere else I should be putting it? I assumed it would print out all the remaining entries by the time the simulation was done running. I was apparently wrong. > > Note: I'm not doing anything special in my custom Policy (e.g., I'm not tracking a secondary table of contents yet.) - but does this even have anything to do with it? I assume that items are put in the content store regardless. > > Ideas? > > Thanks, > > John > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Fri Dec 9 20:11:18 2016 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 9 Dec 2016 23:11:18 -0500 Subject: [ndnSIM] Appropriate time to print CS contents? In-Reply-To: <5DA62E23-7CEA-4200-B871-E1C3CDE8BDF7@cs.ucla.edu> References: <5DA62E23-7CEA-4200-B871-E1C3CDE8BDF7@cs.ucla.edu> Message-ID: Spyros, Thanks for the reply. However I think the problems seems to be that there is apparently nothing in the CS when I go to print it. It never enters my loops - so it will never print out the information regardless of the printing technique. My code for custom policy does detect content being inserted (e.g., doAfterInsert is called) and the limit on both Cs and my custom Policy are set to 10. So I assume it's being added. So why is it empty by the time I print it out? Thanks JPB On Dec 9, 2016 11:07 PM, "Spyridon (Spyros) Mastorakis" < mastorakis at cs.ucla.edu> wrote: > Hi John, > > I would suggest you either use the NS3 logging statements (e.g., > NS_LOG_FUNCTION, NS_LOG_INFO) or the cerr to print out the contents of > the CS. > > Hope that this helps, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > On Dec 9, 2016, at 7:51 PM, John Baugh wrote: > > ndnSIM friends, > > At what point is it appropriate to print the contents of the CS? > > I've tried putting some code to print its contents using iterators (e.g., > > for(auto it = theCS.begin(); it != theCS.end(); ++it) > { > cout<getName()< } > > But this doesn't appear to do anything. I'm currently putting the code > after Simulation::Run() and before Simulation::Destroy(); > > Is there somewhere else I should be putting it? I assumed it would print > out all the remaining entries by the time the simulation was done running. > I was apparently wrong. > > Note: I'm not doing anything special in my custom Policy (e.g., I'm not > tracking a secondary table of contents yet.) - but does this even have > anything to do with it? I assume that items are put in the content store > regardless. > > Ideas? > > Thanks, > > John > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From junior.dongo at lacl.fr Sat Dec 10 12:47:23 2016 From: junior.dongo at lacl.fr (Junior DONGO) Date: Sat, 10 Dec 2016 21:47:23 +0100 Subject: [ndnSIM] Assert failed Message-ID: Dear ndnSim friends, I am running a scenario. After running for a while I have the following error: *assert failed. cond="i->second == ev.impl", file=../src/core/model/map-scheduler.cc, line=108*** *terminate called without an active exception * what does this error means? How can I correct it? Thanks Junior* * -------------- next part -------------- An HTML attachment was scrubbed... URL: From gouanyoulin at gmail.com Sun Dec 11 17:08:50 2016 From: gouanyoulin at gmail.com (=?UTF-8?B?5p6X5Yag5L2R?=) Date: Mon, 12 Dec 2016 09:08:50 +0800 Subject: [ndnSIM] About simulate time Message-ID: Hi everyone, The ndnSIM simulator time is fixed. When receiving data or interest packet, I edit the procedure about onData() and onInterest(). I think it should be difference time, But the simulator time is always the same. Where can I change the time to more real time in ndnSIM. Is the code in Timer on ns3? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon Dec 12 03:00:23 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 12 Dec 2016 12:00:23 +0100 Subject: [ndnSIM] About simulate time In-Reply-To: References: Message-ID: <3636F602-6251-4650-A1FA-05DC3336F0F2@cs.ucla.edu> Hi, the simulator uses simulation time. If you want to get the real time, you might want to use something like this ?hack": https://github.com/named-data-ndnSIM/ndnSIM/blob/master/tests/other/ndn-test.cpp#L93-L94 Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 12, 2016, at 2:08 AM, ??? wrote: > > Hi everyone, > > The ndnSIM simulator time is fixed. When receiving data or interest packet, I edit the procedure about onData() and onInterest(). I think it should be difference time, But the simulator time is always the same. Where can I change the time to more real time in ndnSIM. Is the code in Timer on ns3? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepehrabdous1375 at gmail.com Mon Dec 12 10:51:55 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Mon, 12 Dec 2016 22:21:55 +0330 Subject: [ndnSIM] Installation error Message-ID: Hello all, I'm trying to install ndnSIM-NLSR from the following link: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md#orgea224d3 but when I try to use the following command: ./waf I encounter the following error: In file included from ns3/ndnSIM/NLSR/nsync/sync-diff-state.h:26:0, from ns3/ndnSIM/NLSR/nsync/sync-logic.h:37, from ns3/ndnSIM/NLSR/nsync/sync-socket.h:30, from ../src/ndnSIM/NLSR/src/communication/sync-logic-handler.hpp:27, from ../src/ndnSIM/NLSR/src/nlsr.hpp:44, from ns3/ndnSIM/apps/ndn-nlsr-exec.hpp:25, from ns3/ndnSIM/apps/ndn-nlsr-app.hpp:23, from ../src/ndnSIM/utils/topology/nlsr-conf-reader.cpp:72: ns3/ndnSIM/NLSR/nsync/sync-state.h:28:27: fatal error: sync-state.pb.h: No such file or directory compilation terminated. can anyone help me with it please? thank you -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Mon Dec 12 13:18:29 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Mon, 12 Dec 2016 13:18:29 -0800 Subject: [ndnSIM] ndnSIM 2.3 released Message-ID: <388F5737-0DA9-477E-98EF-9B3C92C098C3@cs.ucla.edu> Dear all, We are pleased to announce the release of ndnSIM version 2.3, a new release of the NDN simulator. The new version includes the updated submodules of NFD and ndn-cxx (baseed on 0.5.0 with updates from the master branch) and features full support of NDNLPv2, including support for network NACKs. For more details about the release, refer to https://ndnsim.net/2.3/RELEASE_NOTES.html Source code, instruction how to install how to compile ndnSIM, tutorials, FAQs, and other useful resources are available on official ndnSIM website: https://ndnsim.net/2.3/. * * * The new revision of the ndnSIM technical report will be available shortly at https://named-data.net/publications/techreports/ * * * A special welcome to our new contributor Mohammad Sabet. * * * The ndnSIM Team: Spyridon (Spyros) Mastorakis, Alexander Afanasyev, and others (https://ndnsim.net/2.3/meta/authors.html) From sepehrabdous1375 at gmail.com Mon Dec 12 15:53:32 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Tue, 13 Dec 2016 03:23:32 +0330 Subject: [ndnSIM] error Message-ID: Hello all, I'm trying to install the latest version of ndnSIM using the following link: https://ndnsim.net/2.3/getting-started.html I did every step but when I tried : ./waf I encountered an error: ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status any idea how to handle it? thank you -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Mon Dec 12 17:17:19 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Mon, 12 Dec 2016 17:17:19 -0800 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: Have you recently upgraded the installed version of boost libraries? The error suggest a mismatch between headers and binaries of the boost libraries. -- Alex > On Dec 12, 2016, at 3:53 PM, sepehr abdous wrote: > > Hello all, > I'm trying to install the latest version of ndnSIM using the following link: > https://ndnsim.net/2.3/getting-started.html > I did every step but when I tried : > ./waf > I encountered an error: > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > > any idea how to handle it? > thank you From aa at CS.UCLA.EDU Mon Dec 12 17:20:16 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Mon, 12 Dec 2016 17:20:16 -0800 Subject: [ndnSIM] Assert failed In-Reply-To: References: Message-ID: <0850A287-A11F-4F9B-8C80-423B62DDF7E2@cs.ucla.edu> Hi Junior, While I cannot say for sure, it seem to be related to memory exhaustion. You can try to observe whether the memory usage for the scenario process is growing or not during the simulation. On another note. The error also indicates that you're using the debug build of the simulator to run your scenario. The debug is much slower (~10 times or so) than running in the optimized mode (`./waf configure -d optimized`). --- Alex > On Dec 10, 2016, at 12:47 PM, Junior DONGO wrote: > > Dear ndnSim friends, > > I am running a scenario. After running for a while I have the following error: > assert failed. cond="i->second == ev.impl", file=../src/core/model/map-scheduler.cc, line=108 > > terminate called without an active exception > > what does this error means? How can I correct it? > > Thanks > > > Junior -------------- next part -------------- An HTML attachment was scrubbed... URL: From v0918732669 at gmail.com Tue Dec 13 22:41:28 2016 From: v0918732669 at gmail.com (=?UTF-8?B?5ZGC5bu65b63?=) Date: Wed, 14 Dec 2016 14:41:28 +0800 Subject: [ndnSIM] How to add string data on packet Message-ID: Dear all ndn-sim user I want to add some data like "01010101" on data packet And then , for consumer , have to check the data "01010101" right or not. there will be a channel coding on it. so I dont know how to add to the packet. I know the ns2 how to add , but the ns3 ndn-sim i cant. can someone help me? Best wishes, JianDe -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepehrabdous1375 at gmail.com Wed Dec 14 00:19:33 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Wed, 14 Dec 2016 11:49:33 +0330 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: yes I did as it was mentioned in the stated link, I followed its steps and upgraded the boost libraries. what should I do to make it ok? On Tue, Dec 13, 2016 at 4:47 AM, Alex Afanasyev wrote: > Have you recently upgraded the installed version of boost libraries? The > error suggest a mismatch between headers and binaries of the boost > libraries. > > -- > Alex > > > On Dec 12, 2016, at 3:53 PM, sepehr abdous > wrote: > > > > Hello all, > > I'm trying to install the latest version of ndnSIM using the following > link: > > https://ndnsim.net/2.3/getting-started.html > > I did every step but when I tried : > > ./waf > > I encountered an error: > > > > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator match<__gnu_cxx::__normal_iterator std::__cxx11::basic_string, > std::allocator > > > >, boost::regex_traits boost::cpp_regex_traits > >::construct_init(boost::basic_regex boost::regex_traits > > const&, > boost::regex_constants::_match_flags)' > > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator match<__gnu_cxx::__normal_iterator std::__cxx11::basic_string, > std::allocator > > > >, boost::regex_traits boost::cpp_regex_traits > >::match()' > > collect2: error: ld returned 1 exit status > > > > > > any idea how to handle it? > > thank you > > -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From nakatsuka at west.sd.keio.ac.jp Wed Dec 14 01:03:04 2016 From: nakatsuka at west.sd.keio.ac.jp (Yoshimichi Nakatsuka) Date: Wed, 14 Dec 2016 18:03:04 +0900 Subject: [ndnSIM] How to add string data on packet In-Reply-To: References: Message-ID: Hi JianDe, Here's how I added a string data to a Data packet for a Content producer to send: #include "../ndn-cxx/src/encoding/block-helpers.hpp" #include "../ndn-cxx/src/encoding/tlv.hpp" auto data = make_shared(); const std::string str = "01010101"; data->setContent(::ndn::encoding::makeStringBlock(::ndn::tlv::Content, str)); The way for a Consumer to check the data it received is: data->getContent().value(); I hope this helps!! Best regards, Yoshimichi Nakatsuka On 2016/12/14 15:41, ??? wrote: > Dear all ndn-sim user > > > I want to add some data like "01010101" on data packet > > And then , for consumer , have to check the data "01010101" right or not. > > there will be a channel coding on it. > > so I dont know how to add to the packet. > > I know the ns2 how to add , but the ns3 ndn-sim i cant. > > can someone help me? > > Best wishes, JianDe > > > _______________________________________________ > 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 jenniferkulnu at gmail.com Wed Dec 14 01:16:38 2016 From: jenniferkulnu at gmail.com (jennifer kulnu) Date: Wed, 14 Dec 2016 15:16:38 +0600 Subject: [ndnSIM] example custom caching error Message-ID: Hi All, So, Im quite new to ndnsim and have been trying out the example custom caching policy as given in the demo ppt. So far I have - placed the policy traits, example_policy.h into scenario/extensions/ folder - placed the content store implementation of the policy cs-with-example-policy.cc(code exactly as given in the ppt) in the same folder, ie, scenario/extensions/ folder - have added the following lines into src/ndnSIM/model/cs/content-store-impl.cpp template class ContentStoreImpl NS_OBJECT_ENSURE_REGISTERED_TEMP(ContentStoreImpl,example_policy_traits); - and finally in my simulation scenario, i refer to this policy using ndnHelper.setOldContentStore("ns3::ndn::cs::Example"); But when I run this scenario, it just throws up a bunch of errors. Am I missing some steps?,Where could I have gone wrong? Sorry if my problem is too obvious, I'am a beginner here. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jenniferkulnu at gmail.com Wed Dec 14 09:37:27 2016 From: jenniferkulnu at gmail.com (jennifer kulnu) Date: Wed, 14 Dec 2016 23:37:27 +0600 Subject: [ndnSIM] example custom caching error In-Reply-To: References: Message-ID: Hi All, *update* I got it to work. I was actually using an old version of the content implementation code. Thanks! On Wed, Dec 14, 2016 at 3:16 PM, jennifer kulnu wrote: > Hi All, > > So, Im quite new to ndnsim and have been trying out the example custom > caching policy as given in the demo ppt. > > So far I have > > - placed the policy traits, example_policy.h into scenario/extensions/ > folder > > - placed the content store implementation of the policy > cs-with-example-policy.cc(code exactly as given in the ppt) in the same > folder, ie, scenario/extensions/ folder > > - have added the following lines into src/ndnSIM/model/cs/content- > store-impl.cpp > > template class ContentStoreImpl > NS_OBJECT_ENSURE_REGISTERED_TEMP(ContentStoreImpl,example_policy_traits); > > > - and finally in my simulation scenario, i refer to this policy using > > ndnHelper.setOldContentStore("ns3::ndn::cs::Example"); > > But when I run this scenario, it just throws up a bunch of errors. > Am I missing some steps?,Where could I have gone wrong? > > Sorry if my problem is too obvious, I'am a beginner here. > > Thank you! > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From agawande at memphis.edu Wed Dec 14 13:25:55 2016 From: agawande at memphis.edu (Ashlesh Gawande (agawande)) Date: Wed, 14 Dec 2016 21:25:55 +0000 Subject: [ndnSIM] Installation error In-Reply-To: References: Message-ID: Just go to the NLSR folder and do: ./waf configure ./waf cp build/nsync/sync-state.pb.* ../../../build/ns3/ndnSIM/NLSR/nsync/ (Assuming you are in NLSR folder under ns-3/src/ndnSIM). Then go back to the ns-3 folder and continue: ./waf (Updated instructions: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md#building) Ashlesh ________________________________ From: ndnSIM on behalf of sepehr abdous Sent: Monday, December 12, 2016 12:51:55 PM To: ndnsim at lists.cs.ucla.edu Subject: [ndnSIM] Installation error Hello all, I'm trying to install ndnSIM-NLSR from the following link: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md#orgea224d3 but when I try to use the following command: ./waf I encounter the following error: In file included from ns3/ndnSIM/NLSR/nsync/sync-diff-state.h:26:0, from ns3/ndnSIM/NLSR/nsync/sync-logic.h:37, from ns3/ndnSIM/NLSR/nsync/sync-socket.h:30, from ../src/ndnSIM/NLSR/src/communication/sync-logic-handler.hpp:27, from ../src/ndnSIM/NLSR/src/nlsr.hpp:44, from ns3/ndnSIM/apps/ndn-nlsr-exec.hpp:25, from ns3/ndnSIM/apps/ndn-nlsr-app.hpp:23, from ../src/ndnSIM/utils/topology/nlsr-conf-reader.cpp:72: ns3/ndnSIM/NLSR/nsync/sync-state.h:28:27: fatal error: sync-state.pb.h: No such file or directory compilation terminated. can anyone help me with it please? thank you -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Wed Dec 14 15:42:41 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Wed, 14 Dec 2016 15:42:41 -0800 Subject: [ndnSIM] Installation error In-Reply-To: References: Message-ID: Hello Sepehr, For now, follow the steps as mentioned by Ashlesh. This is a one time workaround (till the time you make next ./waf distclean) to get around this problem. Additionally, patch the attached diff to your ns-3/wscript file and then (re) configure the nlsr into ndnSIM using following command. ./waf configure --enable-examples --enable-nlsr After these things are done, you can start building the ndnSIM. /anil. On Wed, Dec 14, 2016 at 1:25 PM, Ashlesh Gawande (agawande) < agawande at memphis.edu> wrote: > Just go to the NLSR folder and do: > > ./waf configure > > ./waf > > cp build/nsync/sync-state.pb.* ../../../build/ns3/ndnSIM/NLSR/nsync/ > > (Assuming you are in NLSR folder under ns-3/src/ndnSIM). > > > Then go back to the ns-3 folder and continue: > > ./waf > > > (Updated instructions: > > https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/ > master/PORTING.md#building) > > > Ashlesh > > ------------------------------ > *From:* ndnSIM on behalf of sepehr > abdous > *Sent:* Monday, December 12, 2016 12:51:55 PM > *To:* ndnsim at lists.cs.ucla.edu > *Subject:* [ndnSIM] Installation error > > Hello all, > I'm trying to install ndnSIM-NLSR from the following link: > https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/ > master/PORTING.md#orgea224d3 > but when I try to use the following command: > ./waf > I encounter the following error: > > In file included from ns3/ndnSIM/NLSR/nsync/sync-diff-state.h:26:0, > from ns3/ndnSIM/NLSR/nsync/sync-logic.h:37, > from ns3/ndnSIM/NLSR/nsync/sync-socket.h:30, > from ../src/ndnSIM/NLSR/src/communication/sync-logic- > handler.hpp:27, > from ../src/ndnSIM/NLSR/src/nlsr.hpp:44, > from ns3/ndnSIM/apps/ndn-nlsr-exec.hpp:25, > from ns3/ndnSIM/apps/ndn-nlsr-app.hpp:23, > from ../src/ndnSIM/utils/topology/ > nlsr-conf-reader.cpp:72: > ns3/ndnSIM/NLSR/nsync/sync-state.h:28:27: fatal error: sync-state.pb.h: > No such file or directory > compilation terminated. > > can anyone help me with it please? > thank you > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 <+98%20919%20403%200591> > School of computer engineering > Sharif University of Technology > Tehran, Iran > > _______________________________________________ > 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 -------------- diff --git a/wscript b/wscript index 455ce4d..8ea199e 100644 --- a/wscript +++ b/wscript @@ -208,6 +208,10 @@ def options(opt): 'but do not wait for ns-3 to finish the full build.'), action="store_true", default=False, dest='doxygen_no_build') + opt.add_option('--enable-nlsr', + help=('Compile NS-3 with NLSR simulation support'), + dest='enable_nlsr', action='store_true', + default=False) # options provided in subdirectories opt.recurse('src') @@ -311,6 +315,10 @@ def configure(conf): env.append_value('LINKFLAGS', '-lgcov') env.append_value('LINKFLAGS', '-coverage') + if Options.options.enable_nlsr: + env['NLSR_ENABLED'] = True + env.append_value('DEFINES', 'NS3_NLSR_SIM') + if Options.options.build_profile == 'debug': env.append_value('DEFINES', 'NS3_BUILD_PROFILE_DEBUG') env.append_value('DEFINES', 'NS3_ASSERT_ENABLE') From 15mcen21 at nirmauni.ac.in Wed Dec 14 21:21:54 2016 From: 15mcen21 at nirmauni.ac.in (ZALAKBEN PRAJAPATI) Date: Thu, 15 Dec 2016 10:51:54 +0530 Subject: [ndnSIM] request Message-ID: hello can you give me guideline regarding how to implement caching policy in ndnsim Thanks & Regards Prajapati Zalak Institute of Technology, Nirma University, Ahmedabad Sent with Mailtrack -------------- next part -------------- An HTML attachment was scrubbed... URL: From anikety97 at gmail.com Thu Dec 15 04:33:05 2016 From: anikety97 at gmail.com (Aniket Yeole) Date: Thu, 15 Dec 2016 18:03:05 +0530 Subject: [ndnSIM] Monitoring node Message-ID: Greetings all, I am trying to create monitoring node or entity so that I can get the monitoring info of other nodes (like PIT, CS, FIB) on that node. I gone through some example in ndnsim like (ndn-tree-tracers.cpp - *http://ndnsim.net/2.1/metric.html ). *The tracers saves statistical information in .txt format can this be used as monitoring information or are there other methods available to do so?? >From the examples on tracers I made changes in topology and added one more node for monitoring purpose. Now how can I transfer the different tables like PIT and content storage of all the network to this monitoring node?. I wanted to know how to give a particular node a monitoring capabilities (like there are producers and consumers are there any monitors which are mentioned in doxygen of ndnsim?) Please guide me Regards, Aniket Yeole -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhangran at bupt.edu.cn Thu Dec 15 05:21:03 2016 From: zhangran at bupt.edu.cn (zhangran at bupt.edu.cn) Date: Thu, 15 Dec 2016 21:21:03 +0800 Subject: [ndnSIM] add interest name in app-delays-tracer Message-ID: <201612152121033240428@bupt.edu.cn> Hello everyone and Junxiao, I am using add-delays-tracer monitoring the interest sent out of the app and trace its hops and delays, now app-delay-trace offers only time and node information and so on as output, but I want to add another field "Interest name" of the corresponding request entry, I have studied the code of app-delays-trace.cpp and hpp and found only output function there, but I can't find where to add the field of the monitoring data, so I am sincerely asking you for your kindful help! I would appreciate it if anyone could generously help me out~ Yours, Sincerely Zhang Ran Key State Laboratory of Network and Swithing Beijing University of Posts and Telecommunications -------------- next part -------------- An HTML attachment was scrubbed... URL: From fatemeh.university at gmail.com Thu Dec 15 07:08:10 2016 From: fatemeh.university at gmail.com (Fatemeh Goudarzi) Date: Thu, 15 Dec 2016 18:38:10 +0330 Subject: [ndnSIM] Random Policy Message-ID: Hi, Due to the fact that random policy deletes the data randomly while the cache is full ,how can I change this policy so that the decision to cache a received content to be random? Thanks, Fatemeh -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Dec 15 09:20:57 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 15 Dec 2016 19:20:57 +0200 Subject: [ndnSIM] Monitoring node In-Reply-To: References: Message-ID: <6F161652-D901-4591-AAE0-504A88962B8B@cs.ucla.edu> Hi, you could create your own applications (producers and consumers). The monitoring node can act as a consumer that sends Interests and fetches the data of your interest from the rest of the nodes (producers). After that, you will have to decode the data content and store it in the way 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 Dec 15, 2016, at 2:33 PM, Aniket Yeole wrote: > > Greetings all, > > I am trying to create monitoring node or entity so that I can get the monitoring info of other nodes (like PIT, CS, FIB) on that node. I gone through some example in ndnsim like (ndn-tree-tracers.cpp - http://ndnsim.net/2.1/metric.html ). The tracers saves statistical information in .txt format can this be used as monitoring information or are there other methods available to do so?? > > From the examples on tracers I made changes in topology and added one more node for monitoring purpose. Now how can I transfer the different tables like PIT and content storage of all the network to this monitoring node?. > > I wanted to know how to give a particular node a monitoring capabilities (like there are producers and consumers are there any monitors which are mentioned in doxygen of ndnsim?) > > > Please guide me > > Regards, > Aniket Yeole -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Dec 15 09:26:00 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 15 Dec 2016 19:26:00 +0200 Subject: [ndnSIM] add interest name in app-delays-tracer In-Reply-To: <201612152121033240428@bupt.edu.cn> References: <201612152121033240428@bupt.edu.cn> Message-ID: <2B53BE84-EEF4-41D4-8443-76B2C91A1F8D@cs.ucla.edu> Hi, you will have to add trace sources like the following: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/ndn-l3-protocol.cpp#L78-L106 https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/ndn-l3-protocol.hpp#L208-L220 You can take a look at this commit, where I added the appropriate tracing functionality for network NACKs: https://github.com/named-data-ndnSIM/ndnSIM/commit/8a74d0c6f2029e0a0d169e46d1d201243f138be6 Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 15, 2016, at 3:21 PM, zhangran at bupt.edu.cn wrote: > > Hello everyone and Junxiao, > > I am using add-delays-tracer monitoring the interest sent out of the app and trace its hops and delays, now app-delay-trace offers only time and node information and so on as output, but I want to add another field "Interest name" of the corresponding request entry, I have studied the code of app-delays-trace.cpp and hpp and found only output function there, but I can't find where to add the field of the monitoring data, so I am sincerely asking you for your kindful help! I would appreciate it if anyone could generously help me out~ > > Yours, > Sincerely > > Zhang Ran > Key State Laboratory of Network and Swithing > Beijing University of Posts and Telecommunications -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Thu Dec 15 09:47:26 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 15 Dec 2016 09:47:26 -0800 Subject: [ndnSIM] request In-Reply-To: References: Message-ID: <3DAFF98E-6391-478F-A6D2-54F0C35FE330@cs.ucla.edu> For the "old"-style content store, you can take a look at this presentation https://lasr.cs.ucla.edu/afanasyev/data/files/Afanasyev/07-ndnSIM-demo-Alex.pptx (from slide 33). For the new content store, the overall description is in the NFD's Developers Guide (https://named-data.net/wp-content/uploads/2016/10/ndn-0021-7-nfd-developer-guide.pdf ) section 3.3. Beyond that, you can use existing policies as an example. -- Alex > On Dec 14, 2016, at 9:21 PM, ZALAKBEN PRAJAPATI <15mcen21 at nirmauni.ac.in> wrote: > > hello > can you give me guideline regarding how to implement caching policy in ndnsim > > Thanks & Regards > Prajapati Zalak > Institute of Technology, > Nirma University, Ahmedabad -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Thu Dec 15 09:50:58 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 15 Dec 2016 09:50:58 -0800 Subject: [ndnSIM] Random Policy In-Reply-To: References: Message-ID: Hi Fatemeh, I'm assuming you're using the "old"-style CS policy. Take a look at 'insert' method for the policy (e.g., line 106-125 in util/trie/random-policy.hpp). What you need is to add a random decision to return false and avoid any other actions in this function: if insert returns false, the data packet will not be inserted. --- Alex > On Dec 15, 2016, at 7:08 AM, Fatemeh Goudarzi wrote: > > Hi, > Due to the fact that random policy deletes the data randomly while the cache is full ,how can I change this policy so that the decision to cache a received content to be random? > Thanks, > Fatemeh From anilj.mailing at gmail.com Thu Dec 15 11:07:56 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Thu, 15 Dec 2016 11:07:56 -0800 Subject: [ndnSIM] Installation error In-Reply-To: References: Message-ID: Hi Sepehr, I have committed couple of fixes for this issue. Can you please update your git repo and do a clean build again. Configure using this -- ./waf configure --enable-examples --enable-nlsr /anil. On Mon, Dec 12, 2016 at 10:51 AM, sepehr abdous wrote: > Hello all, > I'm trying to install ndnSIM-NLSR from the following link: > https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/ > master/PORTING.md#orgea224d3 > but when I try to use the following command: > ./waf > I encounter the following error: > > In file included from ns3/ndnSIM/NLSR/nsync/sync-diff-state.h:26:0, > from ns3/ndnSIM/NLSR/nsync/sync-logic.h:37, > from ns3/ndnSIM/NLSR/nsync/sync-socket.h:30, > from ../src/ndnSIM/NLSR/src/communication/sync-logic- > handler.hpp:27, > from ../src/ndnSIM/NLSR/src/nlsr.hpp:44, > from ns3/ndnSIM/apps/ndn-nlsr-exec.hpp:25, > from ns3/ndnSIM/apps/ndn-nlsr-app.hpp:23, > from ../src/ndnSIM/utils/topology/ > nlsr-conf-reader.cpp:72: > ns3/ndnSIM/NLSR/nsync/sync-state.h:28:27: fatal error: sync-state.pb.h: > No such file or directory > compilation terminated. > > can anyone help me with it please? > thank you > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 <+98%20919%20403%200591> > School of computer engineering > Sharif University of Technology > Tehran, Iran > > _______________________________________________ > 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 15mcen09 at nirmauni.ac.in Thu Dec 15 21:37:43 2016 From: 15mcen09 at nirmauni.ac.in (AEMI KALARIA) Date: Fri, 16 Dec 2016 11:07:43 +0530 Subject: [ndnSIM] NDNSIM graph generation Message-ID: How to generate graph in NDNSIM?? R language is one option any other options? Sent with Mailtrack -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrissunbjut at gmail.com Fri Dec 16 04:00:29 2016 From: chrissunbjut at gmail.com (Chris Sun) Date: Fri, 16 Dec 2016 20:00:29 +0800 Subject: [ndnSIM] How to use WaypointMobilityModel? Message-ID: Hi,everyone: I want to use the WaypointMobilityModel.But in the path "ns-3/src/mobility/examples", it only provides examples of RandomxxxMobilityModel. Who can give me an example of the WaypointMobilityModel usage? Thanks for your help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Fri Dec 16 11:22:12 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 16 Dec 2016 11:22:12 -0800 Subject: [ndnSIM] NDNSIM graph generation In-Reply-To: References: Message-ID: <46FF0F49-6B5D-4988-8760-E7CF2C0F9872@cs.ucla.edu> The built-in tracers produce a simple txt files that list measurements as described in http://ndnsim.net/2.3/metric.html . You can also add your own measurements in your own format. How to visualize the data is really up to you and you can use any tool, including R, python, Excel, etc. - Alex > On Dec 15, 2016, at 9:37 PM, AEMI KALARIA <15mcen09 at nirmauni.ac.in> wrote: > > How to generate graph in NDNSIM?? R language is one option any other options? > > > > > Sent with Mailtrack _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Fri Dec 16 11:23:13 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 16 Dec 2016 11:23:13 -0800 Subject: [ndnSIM] How to use WaypointMobilityModel? In-Reply-To: References: Message-ID: https://www.google.com/search?q=WaypointMobilityModel+example :) > On Dec 16, 2016, at 4:00 AM, Chris Sun wrote: > > Hi,everyone: > > I want to use the WaypointMobilityModel.But in the path "ns-3/src/mobility/examples", it only provides examples of RandomxxxMobilityModel. Who can give me an example of the WaypointMobilityModel usage? > > Thanks for your help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From shahram2024 at gmail.com Fri Dec 16 13:58:56 2016 From: shahram2024 at gmail.com (Shahram Yousefi) Date: Sat, 17 Dec 2016 01:28:56 +0330 Subject: [ndnSIM] Get or fine Node name at fowarder.cpp during simulation Message-ID: Hi. I like to add new FIB entry at *fowarder.cpp*, "*onIncomingData*" Method during simulation. I know that I can use "*FibHelper::AddRoute*", for Example : *AddRoute (const std::string &nodeName, const Name &prefix, uint32_t faceId, int32_t metric)* For "prefix" I can use *data.getName()*. For "faceId" I can use * inFace.getId()*. For "metric" I can use *0 or any other value*. But I don?t know what should I Use for "*nodeName*". How could I get or fine Node name at fowarder.cpp during simulation? Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sat Dec 17 00:25:44 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sat, 17 Dec 2016 11:55:44 +0330 Subject: [ndnSIM] Get or fine Node name at fowarder.cpp during simulation In-Reply-To: References: Message-ID: Shahram, If you give *name *to nodes, through AnnotatedTopologyReader, scenarioHelper or otherwise, you can use the helper with the signature you mentioned. If you take a look at its implementation I guess you will find a clue how to use it. Regards, Sabet On Sat, Dec 17, 2016 at 1:28 AM, Shahram Yousefi wrote: > Hi. > > I like to add new FIB entry at *fowarder.cpp*, "*onIncomingData*" Method > during simulation. > I know that I can use "*FibHelper::AddRoute*", for Example : > > *AddRoute (const std::string &nodeName, const Name &prefix, uint32_t > faceId, int32_t metric)* > > For "prefix" I can use *data.getName()*. > For "faceId" I can use * inFace.getId()*. > For "metric" I can use *0 or any other value*. > But I don?t know what should I Use for "*nodeName*". > > How could I get or fine Node name at fowarder.cpp during simulation? > > Best regards. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 17 17:17:33 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sat, 17 Dec 2016 20:17:33 -0500 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: Did you do an apt-get update before doing the apt-get install? JPB On Wed, Dec 14, 2016 at 3:19 AM, sepehr abdous wrote: > yes I did as it was mentioned in the stated link, I followed its steps and > upgraded the boost libraries. > what should I do to make it ok? > > On Tue, Dec 13, 2016 at 4:47 AM, Alex Afanasyev wrote: > >> Have you recently upgraded the installed version of boost libraries? The >> error suggest a mismatch between headers and binaries of the boost >> libraries. >> >> -- >> Alex >> >> > On Dec 12, 2016, at 3:53 PM, sepehr abdous >> wrote: >> > >> > Hello all, >> > I'm trying to install the latest version of ndnSIM using the following >> link: >> > https://ndnsim.net/2.3/getting-started.html >> > I did every step but when I tried : >> > ./waf >> > I encountered an error: >> > >> > ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::construct_init(boost::basic_regex> boost::regex_traits > > const&, >> boost::regex_constants::_match_flags)' >> > ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::match()' >> > collect2: error: ld returned 1 exit status >> > >> > >> > any idea how to handle it? >> > thank you >> >> > > > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 <+98%20919%20403%200591> > School of computer engineering > Sharif University of Technology > Tehran, Iran > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 17 17:36:21 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sat, 17 Dec 2016 20:36:21 -0500 Subject: [ndnSIM] Upgrading to ndnSIM 2.3? Message-ID: Greetings all, There's no "upgrade" command of any sort, correct? I assume we just have to follow the installation steps on the site as if we were doing a fresh install? Do we need to uninstall anything first? I stuck with 2.1 and have been a little intimidated to upgrade, but it may be time. Thoughts? Instructions? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sat Dec 17 17:48:02 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sun, 18 Dec 2016 01:48:02 +0000 Subject: [ndnSIM] Upgrading to ndnSIM 2.3? In-Reply-To: References: Message-ID: Hi John Just deploy another VM and install everything from scratch. Caution: Unlike ns-3, ndnSIM does not maintain backwards compatibility across versions. Your scenarios and patches to the simulator itself will need non-trivial porting work. As long as you keep ndnSIM inside a VM, there should be no security concern that requires you to upgrade. Thus, you can weigh between the benefit of getting new features and bugfixes and the workload of porting the scenarios and patches. Yours, Junxiao On Sat, Dec 17, 2016 at 18:36 John Baugh wrote: > Greetings all, > > There's no "upgrade" command of any sort, correct? I assume we just have > to follow the installation steps on the site as if we were doing a fresh > install? Do we need to uninstall anything first? > > I stuck with 2.1 and have been a little intimidated to upgrade, but it may > be time. > > Thoughts? Instructions? > > Thanks, > > John > > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 17 19:33:22 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sat, 17 Dec 2016 22:33:22 -0500 Subject: [ndnSIM] Custom Strategy - undefined reference errors? Message-ID: ndnSIM friends, I've been working on creating a custom strategy, and I can't seem to figure out why it's generating the errors that it is. Here are the related files: *The errors:* https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8Sjuvirdof2CezRWEQ *Test file using the strategy* https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk *The Custom CS I'm using:* https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE *The Custom Strategy files:* https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE Any help would be appreciated. Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 17 22:35:49 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 18 Dec 2016 01:35:49 -0500 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: References: Message-ID: ndnSIM folks, Okay, so I made a (really poor) workaround - I added #include "PolularityStrategy.cpp" to the bottom of the .hpp file... It appears that the .waf system doesn't look for .cpp files in the example or subdirectories to compile? I'm very confused by that. Regardless, I got it to compile, but I have an issue now: cout<< (or std::cout) is not printing anything. I've tried it in the constructor... I've tried it in afterReceiveInterest... nothing. Any ideas about why this might be the case? Thanks, John On Sat, Dec 17, 2016 at 10:33 PM, John Baugh wrote: > ndnSIM friends, > > I've been working on creating a custom strategy, and I can't seem to > figure out why it's generating the errors that it is. > > > Here are the related files: > > *The errors:* > https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_ > MqC8Sjuvirdof2CezRWEQ > > *Test file using the strategy* > https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk > > *The Custom CS I'm using:* > https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE > > *The Custom Strategy files:* > https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA > > https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE > > > > Any help would be appreciated. > > Thanks, > > John > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sat Dec 17 22:55:37 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sat, 17 Dec 2016 22:55:37 -0800 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: References: Message-ID: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> Hi John, From the error I see that you're writing your simulation scenario in the 'examples' folder of ndnSIM. While you certainly can do that, I would highly recommend to use the skeleton (https://github.com/named-data-ndnSIM/scenario-template ). It will speed up your compilation times and the default build script has more straightforward assumptions on where the code is. The error simply tells that you need to properly link your strategy to the scenario. Given I don't know where you put your strategy code, I cannot tell more. With the skeleton scenario, you simply need to put it in extensions/ folder. If you prefer using examples/ folder, then you need to create a folder, whose name is exactly as your scenario name, but without .cpp extension and put the code there. Alternatively, you need to modify wscript in examples folder and add all necessary dependencies for your scenario. -- Alex > On Dec 17, 2016, at 7:33 PM, John Baugh wrote: > > ndnSIM friends, > > I've been working on creating a custom strategy, and I can't seem to figure out why it's generating the errors that it is. > > > Here are the related files: > > The errors: > https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8Sjuvirdof2CezRWEQ > > Test file using the strategy > https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk > > The Custom CS I'm using: > https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE > > The Custom Strategy files: > https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA > > https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE > > > > Any help would be appreciated. > > Thanks, > > John > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sat Dec 17 22:57:57 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sat, 17 Dec 2016 22:57:57 -0800 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: If you installed boost libraries from source, then you have to make sure you don't have boost development packages installed (in particular, you should not have /usr/include/boost folder). Otherwise, there will interfere and you will not be able to compile. -- Alex > On Dec 14, 2016, at 12:19 AM, sepehr abdous wrote: > > yes I did as it was mentioned in the stated link, I followed its steps and upgraded the boost libraries. > what should I do to make it ok? > > On Tue, Dec 13, 2016 at 4:47 AM, Alex Afanasyev > wrote: > Have you recently upgraded the installed version of boost libraries? The error suggest a mismatch between headers and binaries of the boost libraries. > > -- > Alex > > > On Dec 12, 2016, at 3:53 PM, sepehr abdous > wrote: > > > > Hello all, > > I'm trying to install the latest version of ndnSIM using the following link: > > https://ndnsim.net/2.3/getting-started.html > > I did every step but when I tried : > > ./waf > > I encountered an error: > > > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > > collect2: error: ld returned 1 exit status > > > > > > any idea how to handle it? > > thank you > > > > > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 > School of computer engineering > Sharif University of Technology > Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sat Dec 17 23:00:32 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 18 Dec 2016 02:00:32 -0500 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> References: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> Message-ID: Alex, Do you mean create a top level directory with the name of the scenario, and then use the directory structure of the template you provided and ndnSIM will do the rest? Next question would be:. Where do we put the top level of the templated directory structure you suggest? Thanks John On Dec 18, 2016 1:55 AM, "Alex Afanasyev" wrote: > Hi John, > > From the error I see that you're writing your simulation scenario in the > 'examples' folder of ndnSIM. While you certainly can do that, I would > highly recommend to use the skeleton (https://github.com/named- > data-ndnSIM/scenario-template). It will speed up your compilation times > and the default build script has more straightforward assumptions on where > the code is. > > The error simply tells that you need to properly link your strategy to the > scenario. Given I don't know where you put your strategy code, I cannot > tell more. With the skeleton scenario, you simply need to put it in > extensions/ folder. If you prefer using examples/ folder, then you need to > create a folder, whose name is exactly as your scenario name, but without > .cpp extension and put the code there. Alternatively, you need to modify > wscript in examples folder and add all necessary dependencies for your > scenario. > > -- > Alex > > On Dec 17, 2016, at 7:33 PM, John Baugh wrote: > > ndnSIM friends, > > I've been working on creating a custom strategy, and I can't seem to > figure out why it's generating the errors that it is. > > > Here are the related files: > > *The errors:* > https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_ > MqC8Sjuvirdof2CezRWEQ > > *Test file using the strategy* > https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk > > *The Custom CS I'm using:* > https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE > > *The Custom Strategy files:* > https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA > > https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE > > > > Any help would be appreciated. > > Thanks, > > John > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alubadyraaid at gmail.com Sun Dec 18 09:04:43 2016 From: alubadyraaid at gmail.com (raaid alubady) Date: Mon, 19 Dec 2016 01:04:43 +0800 Subject: [ndnSIM] Evaluation Model Message-ID: Hi my dear researchers, Now, I am in evaluation part of my model. I got many errors when analysis the results which are: 1- I was just trying to calculate the PIT size for NDN router using Abiline topology. However, I found the result is the same for each routers. It's normal. Setting PIT size is 1000, and consumer frequency stringvalue is 6000 interests a second. 2- In the same scenario, the app-delay-tracer file not generated. While when decrease the consumer frequency stringvalue less than 1000 is generated. 3- In app-delay-tracer file, how to calculate the average delay for hole scenario since we are seeing in this file there is value for each millisecond. 4- How can get the average PIT entries Lifetime and the entry Maximum Lifetime for each router. It is seen when I used GetMaxPitEntryLisetime(), gave me the result like this " +0.0ns". I don't understand what is mean? 5- I read in some paper the metrics namely Time-to-Completion, which is meant the time it takes for content items to completely arrive at the subscriber. How to calculate this metrics. *My Regards,* ********************************************************** *Raaid Alubady*Doctoral Researcher InterNetWorks Research Lab, School of Computing, Universiti Utara Malaysia 06010 UUM Sintok, Kedah, M A L A Y S I A HP: +60129636379 , +601128408117 Emails: raaid.n.alubady at uobabylon.edu.iq *raaid.alubady at internetworks.my* *alubady.r.n at ieee.my* -------------- next part -------------- An HTML attachment was scrubbed... URL: From fatemeh.university at gmail.com Sun Dec 18 13:36:03 2016 From: fatemeh.university at gmail.com (Fatemeh Goudarzi) Date: Mon, 19 Dec 2016 01:06:03 +0330 Subject: [ndnSIM] Node name Message-ID: Hi, How to access node name in random-policy.hpp? I need to access some nodes in a node container with their names . Also How can I access to ptr from its name? I do appreciate your help. Regards, Fatemeh -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Dec 18 13:51:44 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 13:51:44 -0800 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: References: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> Message-ID: <3C65CEA0-2187-4C00-AA57-58698B4CC22F@cs.ucla.edu> > On Dec 17, 2016, at 11:00 PM, John Baugh wrote: > > Alex, > > Do you mean create a top level directory with the name of the scenario, and then use the directory structure of the template you provided and ndnSIM will do the rest? If you use template, follow the description in the README. This template should be placed anywhere outside NS-3/ndnSIM and will simply use the installed NS-3 to link to. If you not using template, take a look for ndn-load-balancer, ndn-custom-apps, ndn-cxx-simple, ndn-simple-with-content-freshness, ndn-simple-for-nrt-helper examples organization (i.e., .cpp file with main function and directory with code that is linked to the scenario). --- Alex > > Next question would be:. Where do we put the top level of the templated directory structure you suggest? > > Thanks > > John > > On Dec 18, 2016 1:55 AM, "Alex Afanasyev" > wrote: > Hi John, > > From the error I see that you're writing your simulation scenario in the 'examples' folder of ndnSIM. While you certainly can do that, I would highly recommend to use the skeleton (https://github.com/named-data-ndnSIM/scenario-template ). It will speed up your compilation times and the default build script has more straightforward assumptions on where the code is. > > The error simply tells that you need to properly link your strategy to the scenario. Given I don't know where you put your strategy code, I cannot tell more. With the skeleton scenario, you simply need to put it in extensions/ folder. If you prefer using examples/ folder, then you need to create a folder, whose name is exactly as your scenario name, but without .cpp extension and put the code there. Alternatively, you need to modify wscript in examples folder and add all necessary dependencies for your scenario. > > -- > Alex > >> On Dec 17, 2016, at 7:33 PM, John Baugh > wrote: >> >> ndnSIM friends, >> >> I've been working on creating a custom strategy, and I can't seem to figure out why it's generating the errors that it is. >> >> >> Here are the related files: >> >> The errors: >> https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8Sjuvirdof2CezRWEQ >> >> Test file using the strategy >> https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk >> >> The Custom CS I'm using: >> https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE >> >> The Custom Strategy files: >> https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA >> >> https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE >> >> >> >> Any help would be appreciated. >> >> Thanks, >> >> John >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Dec 18 13:56:46 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 13:56:46 -0800 Subject: [ndnSIM] Node name In-Reply-To: References: Message-ID: To get hold of Ptr, you can use the following Ptr node = item->payload()->GetContentStore()->template GetObject(); If you have associated name with the node (e.g., by using the AnnotatedTopologyReader), then you can get hold of it using Names API: std::string name = Names::FindName(node) -- Alex > On Dec 18, 2016, at 1:36 PM, Fatemeh Goudarzi wrote: > > Hi, > > How to access node name in random-policy.hpp? I need to access some nodes in a node container with their names . Also How can I access to ptr from its name? > I do appreciate your help. > > Regards, > Fatemeh > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From aa at CS.UCLA.EDU Sun Dec 18 14:05:47 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:05:47 -0800 Subject: [ndnSIM] Help In-Reply-To: References: Message-ID: <589789D7-67E4-4B22-80A2-4CDB4BC6D15D@cs.ucla.edu> Hi Sravya, Which version of ndnSIM you're using? The example code for the latest ndnSIM doesn't have this include nor this tracer exists (its function superseded by L3RateTracer). The old version of ndnSIM also didn't have this include, it was including . -- Alex > On Nov 30, 2016, at 1:45 AM, sravya p wrote: > > i am trying to run ndn-l3-aggregate-tracer from ndn-tree-tracers.cpp but it gives fatal error. please help me how to resolve this problem. > > > [1486/2858] Compiling src/ndnSIM/examples/ndn-tree-tracers.cpp > ../src/ndnSIM/examples/ndn-tree-tracers.cpp:25:41: fatal error: ns3/ndn-l3-aggregate-tracer.h: No such file or directory > #include "ns3/ndn-l3-aggregate-tracer.h" > ^ > compilation terminated. > > _______________________________________________ > 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 renpei.bupt at qq.com Mon Dec 5 22:54:05 2016 From: renpei.bupt at qq.com (=?gb18030?B?yM7F5g==?=) Date: Tue, 6 Dec 2016 14:54:05 +0800 Subject: [ndnSIM] beforeSatisfyInterest() function of forwarding strategy Message-ID: hello every, i met some question about beforeSatisfyInterest() function, i aim at doing some opreation for fib-table, while the public API just show me as follow, i can not access the fib-table when invoke the function beforeSatisfyInterest(), what should i do if i want to add an argument like this, "shared_ptr< fib::Entry > fibEntry,", i am really appreciate i you can give me any suggestion. origin funtion, there is three argument: void nfd::fw::Strategy::beforeSatisfyInterest(shared_ptr< pit::Entry > pitEntry, const Face & inFace, const Data & data ) while for my work, i need this as follow, what should i do? void nfd::fw::Strategy::beforeSatisfyInterest(shared_ptr< pit::Entry > pitEntry, shared_ptr< fib::Entry > fibEntry, const Face & inFace, const Data & data i need to access the fib-table. -------------- next part -------------- An HTML attachment was scrubbed... URL: From renpei.bupt at qq.com Sat Dec 17 23:03:09 2016 From: renpei.bupt at qq.com (=?gb18030?B?yM7F5g==?=) Date: Sun, 18 Dec 2016 15:03:09 +0800 Subject: [ndnSIM] consumer app Message-ID: Hi, how can i realize a consumer APP that after client receive the data for the previous interest, than client can send the next interest to the net, rather than send interest depend on sending rate. i.e. after client send a interest, no matter how long client have to wait for the correspond data, it can not send next interest until receive the data. thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From renpei.bupt at qq.com Sun Dec 18 01:21:26 2016 From: renpei.bupt at qq.com (=?gb18030?B?yM7F5g==?=) Date: Sun, 18 Dec 2016 17:21:26 +0800 Subject: [ndnSIM] about random-load-balancer-strategy.cpp Message-ID: Hi ndnsim friends, when i use random-load-balancer-strategy, there occurs some question as follow: when i use Strategy::ChoiceHelper::Install(Names::Find("d1"), prefix);, compiling panel will show me "underfined reference to 'nfd::fw::RandomLoadBalancerStrategy::STRATEGY_NAME' " and so on, i even don't know what happend? i follow the example given by source code of ndn-load-balancer.cpp, but i got there questions, what should i do? i really appreciate if you can help me. thanks a lot! -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Dec 18 14:14:37 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:14:37 -0800 Subject: [ndnSIM] question about ndnSIM source code In-Reply-To: References: Message-ID: > On Nov 20, 2016, at 6:12 PM, ?? wrote: > > hello all: > There are some question about ndnSIM source code recently i met, thank you very much if you have the answer of my confusedness! > on the site "http://ndnsim.net/1.0/fw.html", i can see many fw strategy here, while on my own source code folder, i even can not find "ndnSIM/model/fw/flooding.h " as show in site, there is only a folder named "cs" and other ".cpp" files. Even in /NFD/fw, i also can not file names "flooding.h", than i use "ctrl+f", i got nothing, system told me there is no file names "flooding.h",what should i do? how can i get access of these forwarding strategy? If you're using ndnSIM version 2, you need to look at the corresponding documentation. As the quoted URL suggests, it is about ndnSIM 1.0. Depending on which exactly version you're using, the documentation is either http://ndnsim.net/2.3/ , http://ndnsim.net/2.2/ , http://ndnsim.net/2.1/ , or http://ndnsim.net/2.0/ > when i try to modify source code of fw, what .cpp or .h files do i need to modify? any one who can tell me which related files i have to modify if i try to modify on of fw. If you're working with ndnSIM 2+, then the starting point would be to read the relevant sections NFD Developer's Guide. After that, the examples include several custom strategies, where you can get an idea what to do. > on the web site, i got that there is three color which is green & red & yellow, to indicate the status of the face, and these faces which carry the color status will be rank, where can i get the file? This is the strategy existed in ndnSIM 1.0 and doesn't exist in 2+. Though, it should be straightforward to (re-)implement it. -- Alex > if any one can help me, thank you very much! > best wishes. > ren pei -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Dec 18 14:17:42 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:17:42 -0800 Subject: [ndnSIM] How to debug interest processing on qtcreator In-Reply-To: References: Message-ID: <8F7128DB-E8DC-4101-BB90-D57786264553@cs.ucla.edu> What you describing is not really achievable, at least not in the way that will be straightforward. NS-3 is discrete event simulator, where many events are "scheduled" to be executed. The process of sending interest involves multiple events, each of them starting with the simulator's event queue. You can probably debug trace all of these events, but I doubt it would be much useful. --- Alex > On Nov 24, 2016, at 12:32 AM, ?? wrote: > > Hello, > I have some question for debug interest processing on qtcreator, how can i monitor this processing by debug. i.e. i wonder how an interest send from comsumer and than through a node and loop up it's cs, than loop up it's pit, eventually loop up fib for suitable face to send it and when producer received the interest, how it process the interest and generate the data match the interest and send it out to the incoming face, what comsumer will do after receive the data? > Thankyou very much for you help! > renpei From aa at CS.UCLA.EDU Sun Dec 18 14:19:55 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:19:55 -0800 Subject: [ndnSIM] beforeSatisfyInterest() function of forwarding strategy In-Reply-To: References: Message-ID: <41AE8AF4-0802-4F6E-94DD-D2762949888B@cs.ucla.edu> If you need to do something with FIB entry, just look it up inside your beforeSatisfyInterest implementation. The provided API allows you to quickly find FIB, supplying the pitEntry. --- Alex > On Dec 5, 2016, at 10:54 PM, ?? wrote: > > hello every, > i met some question about beforeSatisfyInterest() function, i aim at doing some opreation for fib-table, while the public API just show me as follow, i can not access the fib-table when invoke the function beforeSatisfyInterest(), what should i do if i want to add an argument like this, > "shared_ptr< fib::Entry > fibEntry,", i am really appreciate i you can give me any suggestion. > > origin funtion, there is three argument: > void nfd::fw::Strategy::beforeSatisfyInterest ( shared_ptr< pit::Entry > pitEntry, > const Face & inFace, > const Data & data > > ) > > while for my work, i need this as follow, what should i do? > void nfd::fw::Strategy::beforeSatisfyInterest ( shared_ptr< pit::Entry > pitEntry, > shared_ptr< fib::Entry > fibEntry, > const Face & inFace, > const Data & data > > i need to access the fib-table. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Dec 18 14:22:31 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:22:31 -0800 Subject: [ndnSIM] How to manually set name of Interest and Data In-Reply-To: References: Message-ID: <759335A6-A9D9-48E4-9B30-5B8EED9B57B4@cs.ucla.edu> Hi Kengo, There are a few ways of achieving this. The simplest one is to modify the existing Produce application to remove the assumption that all requested data exist and only reply the Interests of your choice. A little bit more complex, but future proof, is to write a second producer applications the implements your behavior. We will be really happy to merge this code into the ndnSIM. -- Alex > On Nov 24, 2016, at 6:14 AM, ???? <46rock715 at gmail.com> wrote: > > Dear NDN Research Team, > Hello. > I want to send an Interest for a Data packet that does not exist. For example, if a Producer has two Data packets /prefix/0 and /prefix/1, I want to send an Interest for /prefix/2. In order to achieve this, I would need to be able to set the full name of the Interest and Data packets. > When I was working with the the examples on ndnSIM 2.0, I could only find a way to set the prefix. In ndn-simple.cpp using the Helper "consumerHelper.SetPrefix("/prefix")," it would automatically add 0, 1, ... to the end of /prefix/. Then using the "producerHelper.SetPrefix("/prefix")" the Producer would return the matching Data packet, assuming it exist. > I do not want it to be assumed that it exists. Therefore, I would like to know if there is a way to manually set all the names. > Any help would be greatly appreciated. > Thank you. > > Best Regards, > Kengo Kaneda From aa at CS.UCLA.EDU Sun Dec 18 14:24:35 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:24:35 -0800 Subject: [ndnSIM] about random-load-balancer-strategy.cpp In-Reply-To: References: Message-ID: <2FE04262-C276-45A3-9018-3FCF174F40AA@cs.ucla.edu> You need to ensure that ndn-load-balancer.cpp is actually linked to your scenario. This is similar to my recent answer to John: if you use scenario template, then it is a matter of putting ndn-load-balancer.cpp in the extensions folder. If you are using examples or scratch folder, then you must follow the conventions of the build system (take a look into examples/wscript for more details). -- Alex > On Dec 18, 2016, at 1:21 AM, ?? wrote: > > Hi ndnsim friends, > when i use random-load-balancer-strategy, there occurs some question as follow: > when i use > Strategy::ChoiceHelper::Install(Names::Find("d1"), prefix);, compiling panel will show me "underfined reference to 'nfd::fw::RandomLoadBalancerStrategy::STRATEGY_NAME' " and so on, i even don't know what happend? i follow the example given by source code of ndn-load-balancer.cpp, but i got there questions, what should i do? i really appreciate if you can help me. > thanks a lot! From aa at CS.UCLA.EDU Sun Dec 18 14:26:08 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:26:08 -0800 Subject: [ndnSIM] consumer app In-Reply-To: References: Message-ID: <12443554-2C1A-4CEB-A356-82043B7E120A@cs.ucla.edu> You either need to update existing consumer app or write a new one. Based on what you describing, it should be very simple to do. -- Alex > On Dec 17, 2016, at 11:03 PM, ?? wrote: > > Hi, > how can i realize a consumer APP that after client receive the data for the previous interest, than client can send the next interest to the net, rather than send interest depend on sending rate. > i.e. after client send a interest, no matter how long client have to wait for the correspond data, it can not send next interest until receive the data. > thanks! From aa at CS.UCLA.EDU Sun Dec 18 14:30:45 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 14:30:45 -0800 Subject: [ndnSIM] Evaluation Model In-Reply-To: References: Message-ID: Dear Raaid, There are several missing pieces in your questions, but I will try to answer based on my guesses. > On Dec 18, 2016, at 9:04 AM, raaid alubady wrote: > > Hi my dear researchers, > > Now, I am in evaluation part of my model. I got many errors when analysis the results which are: > > 1- I was just trying to calculate the PIT size for NDN router using Abiline topology. However, I found the result is the same for each routers. It's normal. Setting PIT size is 1000, and consumer frequency stringvalue is 6000 interests a second. > > 2- In the same scenario, the app-delay-tracer file not generated. While when decrease the consumer frequency stringvalue less than 1000 is generated. > My guess that you're using ndnSIM 1 and by "setting PIT size" you mean setting the limit on the number of PIT entries. If you set replacement policy for PIT as Lru, then I can see why there is nothing in app-delay-tracer file, as no interests will be ever satisfied: the new ones simply remove old state and even data packet comes back, it cannot be returned to the consumer. > 3- In app-delay-tracer file, how to calculate the average delay for hole scenario since we are seeing in this file there is value for each millisecond. I'm a bit confused with your question. AppDelayTracers gives a delay for each of the requested data. If you want average across all different data pieces, just calculate it... > > 4- How can get the average PIT entries Lifetime and the entry Maximum Lifetime for each router. It is seen when I used GetMaxPitEntryLisetime(), gave me the result like this " +0.0ns". I don't understand what is mean? You need to give more context for this. What is GetMaxPitEntryLifetime() ? > 5- I read in some paper the metrics namely Time-to-Completion, which is meant the time it takes for content items to completely arrive at the subscriber. How to calculate this metrics. I cannot answer this question. It is really up to you how to define "completion" in your scenario. -- Alex From zhangran at bupt.edu.cn Sun Dec 18 17:16:55 2016 From: zhangran at bupt.edu.cn (zhangran at bupt.edu.cn) Date: Mon, 19 Dec 2016 09:16:55 +0800 Subject: [ndnSIM] add interest name in app-delays-tracer References: <201612152121033240428@bupt.edu.cn>, <2B53BE84-EEF4-41D4-8443-76B2C91A1F8D@cs.ucla.edu> Message-ID: <201612190916555629911@bupt.edu.cn> Hi Spyros, Thank you so much for your help! I have been studying how to modify and enhance the trace source in ns-3 in the past two days, thanks to your advice and ns-3 turorial as well as post in https://groups.google.com/forum/#!topic/ns-3-users/xty2I8JV3_c , I am able to understand the mechanism of tracing system of ns-3 and realise my own trace source and trace sink! I'd like to share the material with everyone else in the mailing list to help them in terms of the same kind of questions. Thank you again for your help! Yours, Sincerely Zhang Ran Key State Laboratory of Network and Switching Beijing University of Posts and Telecommunications From: Spyridon (Spyros) Mastorakis Date: 2016-12-16 01:26 To: zhangran CC: ndnsim Subject: Re: [ndnSIM] add interest name in app-delays-tracer Hi, you will have to add trace sources like the following: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/ndn-l3-protocol.cpp#L78-L106 https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/ndn-l3-protocol.hpp#L208-L220 You can take a look at this commit, where I added the appropriate tracing functionality for network NACKs: https://github.com/named-data-ndnSIM/ndnSIM/commit/8a74d0c6f2029e0a0d169e46d1d201243f138be6 Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA On Dec 15, 2016, at 3:21 PM, zhangran at bupt.edu.cn wrote: Hello everyone and Junxiao, I am using add-delays-tracer monitoring the interest sent out of the app and trace its hops and delays, now app-delay-trace offers only time and node information and so on as output, but I want to add another field "Interest name" of the corresponding request entry, I have studied the code of app-delays-trace.cpp and hpp and found only output function there, but I can't find where to add the field of the monitoring data, so I am sincerely asking you for your kindful help! I would appreciate it if anyone could generously help me out~ Yours, Sincerely Zhang Ran Key State Laboratory of Network and Swithing Beijing University of Posts and Telecommunications -------------- next part -------------- An HTML attachment was scrubbed... URL: From renpei.bupt at qq.com Sun Dec 18 17:06:52 2016 From: renpei.bupt at qq.com (=?gb18030?B?yM7F5g==?=) Date: Mon, 19 Dec 2016 09:06:52 +0800 Subject: [ndnSIM] =?gb18030?b?u9i4tKO6ICBjb25zdW1lciBhcHA=?= In-Reply-To: <12443554-2C1A-4CEB-A356-82043B7E120A@cs.ucla.edu> References: <12443554-2C1A-4CEB-A356-82043B7E120A@cs.ucla.edu> Message-ID: I am new to ndnSIM?how can i implement this scheme? I'm really appreciate if you can give me some tips! ------------------ ???? ------------------ ???: "Alex Afanasyev"; ????: 2016?12?19?(???) ??6:26 ???: "??"; ??: "ndnsim"; ??: Re: [ndnSIM] consumer app You either need to update existing consumer app or write a new one. Based on what you describing, it should be very simple to do. -- Alex > On Dec 17, 2016, at 11:03 PM, ?? wrote: > > Hi, > how can i realize a consumer APP that after client receive the data for the previous interest, than client can send the next interest to the net, rather than send interest depend on sending rate. > i.e. after client send a interest, no matter how long client have to wait for the correspond data, it can not send next interest until receive the data. > thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sun Dec 18 19:43:18 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 18 Dec 2016 22:43:18 -0500 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: <3C65CEA0-2187-4C00-AA57-58698B4CC22F@cs.ucla.edu> References: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> <3C65CEA0-2187-4C00-AA57-58698B4CC22F@cs.ucla.edu> Message-ID: Alex, Thanks for that information. Truly, very helpful. Secondly, I was eventually able to get it to compile, but nothing is being printed out - I have cout statements in the ctor and the afterReceiveInterest. The CS is receiving data, but the Strategy doesn't seem to be acknowledging the existence of incoming Interest packets. Ideas? Thanks, John On Sun, Dec 18, 2016 at 4:51 PM, Alex Afanasyev wrote: > > On Dec 17, 2016, at 11:00 PM, John Baugh wrote: > > Alex, > > Do you mean create a top level directory with the name of the scenario, > and then use the directory structure of the template you provided and > ndnSIM will do the rest? > > > If you use template, follow the description in the README. This template > should be placed anywhere outside NS-3/ndnSIM and will simply use the > installed NS-3 to link to. > > If you not using template, take a look for ndn-load-balancer, ndn- > custom-apps, ndn-cxx-simple, ndn-simple-with-content- > freshness, ndn-simple-for-nrt-helper examples organization (i.e., .cpp > file with main function and directory with code that is linked to the > scenario). > > --- > Alex > > > Next question would be:. Where do we put the top level of the templated > directory structure you suggest? > > Thanks > > John > > On Dec 18, 2016 1:55 AM, "Alex Afanasyev" wrote: > >> Hi John, >> >> From the error I see that you're writing your simulation scenario in the >> 'examples' folder of ndnSIM. While you certainly can do that, I would >> highly recommend to use the skeleton (https://github.com/named-data >> -ndnSIM/scenario-template). It will speed up your compilation times and >> the default build script has more straightforward assumptions on where the >> code is. >> >> The error simply tells that you need to properly link your strategy to >> the scenario. Given I don't know where you put your strategy code, I >> cannot tell more. With the skeleton scenario, you simply need to put it in >> extensions/ folder. If you prefer using examples/ folder, then you need to >> create a folder, whose name is exactly as your scenario name, but without >> .cpp extension and put the code there. Alternatively, you need to modify >> wscript in examples folder and add all necessary dependencies for your >> scenario. >> >> -- >> Alex >> >> On Dec 17, 2016, at 7:33 PM, John Baugh wrote: >> >> ndnSIM friends, >> >> I've been working on creating a custom strategy, and I can't seem to >> figure out why it's generating the errors that it is. >> >> >> Here are the related files: >> >> *The errors:* >> https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8 >> Sjuvirdof2CezRWEQ >> >> *Test file using the strategy* >> https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk >> >> *The Custom CS I'm using:* >> https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE >> >> *The Custom Strategy files:* >> https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA >> >> https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE >> >> >> >> Any help would be appreciated. >> >> Thanks, >> >> John >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sun Dec 18 19:50:47 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sun, 18 Dec 2016 20:50:47 -0700 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: References: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> <3C65CEA0-2187-4C00-AA57-58698B4CC22F@cs.ucla.edu> Message-ID: Hi John Did you choose your strategy in the StrategyChoice table? Yours, Junxiao On Dec 18, 2016 20:43, "John Baugh" wrote: Secondly, I was eventually able to get it to compile, but nothing is being printed out - I have cout statements in the ctor and the afterReceiveInterest. The CS is receiving data, but the Strategy doesn't seem to be acknowledging the existence of incoming Interest packets. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sun Dec 18 19:57:49 2016 From: jpbaugh at umich.edu (John Baugh) Date: Sun, 18 Dec 2016 22:57:49 -0500 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: References: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> <3C65CEA0-2187-4C00-AA57-58698B4CC22F@cs.ucla.edu> Message-ID: Junxiao, I subclassed MulticastStrategy. The instructions on the site say to create your own custom strategy you subclass Strategy. I suspect it works that way with one of the derived classes from Strategy also. Thanks JPB On Dec 18, 2016 10:50 PM, "Junxiao Shi" wrote: > Hi John > > Did you choose your strategy in the StrategyChoice table? > > Yours, Junxiao > > On Dec 18, 2016 20:43, "John Baugh" wrote: > > > Secondly, I was eventually able to get it to compile, but nothing is being > printed out - I have cout statements in the ctor and the > afterReceiveInterest. The CS is receiving data, but the Strategy doesn't > seem to be acknowledging the existence of incoming Interest packets. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Dec 18 22:20:54 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 22:20:54 -0800 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: References: <0DECFF34-BBDB-43A0-891E-2B7611A0515B@cs.ucla.edu> <3C65CEA0-2187-4C00-AA57-58698B4CC22F@cs.ucla.edu> Message-ID: <7CBA1AED-0D60-41C9-82C8-B1920C7B4BA5@cs.ucla.edu> In addition to subclassing, the strategy needs to be "registered" with the `NFD_REGISTER_STRATEGY(YourStrategyClassName);` macro and choose to use this strategy for the namespace of your choice (e.g., using StrategyChoiceHelper http://ndnsim.net/2.3/helpers.html#forwarding-strategy ). --- Alex > On Dec 18, 2016, at 7:57 PM, John Baugh wrote: > > Junxiao, > > I subclassed MulticastStrategy. The instructions on the site say to create your own custom strategy you subclass Strategy. I suspect it works that way with one of the derived classes from Strategy also. > > Thanks > > JPB > > On Dec 18, 2016 10:50 PM, "Junxiao Shi" > wrote: > Hi John > > Did you choose your strategy in the StrategyChoice table? > > Yours, Junxiao > > On Dec 18, 2016 20:43, "John Baugh" > wrote: > > Secondly, I was eventually able to get it to compile, but nothing is being printed out - I have cout statements in the ctor and the afterReceiveInterest. The CS is receiving data, but the Strategy doesn't seem to be acknowledging the existence of incoming Interest packets. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sun Dec 18 22:25:55 2016 From: jpbaugh at umich.edu (John Baugh) Date: Mon, 19 Dec 2016 01:25:55 -0500 Subject: [ndnSIM] Fwd: Custom Strategy - undefined reference errors? In-Reply-To: References: Message-ID: As you can see from the Google drive files below, I did register it using the register command as you indicated. ---------- Forwarded message ---------- From: "John Baugh" Date: Dec 17, 2016 10:33 PM Subject: Custom Strategy - undefined reference errors? To: "ndnsim" Cc: ndnSIM friends, > > I've been working on creating a custom strategy, and I can't seem to > figure out why it's generating the errors that it is. > > > Here are the related files: > > *The errors:* > https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_ > MqC8Sjuvirdof2CezRWEQ > > *Test file using the strategy* > https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk > > *The Custom CS I'm using:* > https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE > > *The Custom Strategy files:* > https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA > > https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE > > > > Any help would be appreciated. > > Thanks, > > John > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Dec 18 23:00:42 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 18 Dec 2016 23:00:42 -0800 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: References: Message-ID: <94373E14-311D-40EF-8C45-363C30AEDED4@cs.ucla.edu> Sorry. Missed that. I see that you also have properly used StrategyChoiceHelper. One thing that I would change is either explicitly configure multicast strategy on all nodes except node 2, or use a more specific prefix for node 2. The behavior is not necessarily defined, given the order of execution should be sequential, but may not be guaranteed. -- Alex > On Dec 18, 2016, at 10:25 PM, John Baugh wrote: > > As you can see from the Google drive files below, I did register it using the register command as you indicated. > > > ---------- Forwarded message ---------- > From: "John Baugh" > > Date: Dec 17, 2016 10:33 PM > Subject: Custom Strategy - undefined reference errors? > To: "ndnsim" > > Cc: > > ndnSIM friends, > > I've been working on creating a custom strategy, and I can't seem to figure out why it's generating the errors that it is. > > > Here are the related files: > > The errors: > https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8Sjuvirdof2CezRWEQ > > Test file using the strategy > https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk > > The Custom CS I'm using: > https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE > > The Custom Strategy files: > https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA > > https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE > > > > Any help would be appreciated. > > Thanks, > > John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Sun Dec 18 23:07:25 2016 From: jpbaugh at umich.edu (John Baugh) Date: Mon, 19 Dec 2016 02:07:25 -0500 Subject: [ndnSIM] Custom Strategy - undefined reference errors? In-Reply-To: <94373E14-311D-40EF-8C45-363C30AEDED4@cs.ucla.edu> References: <94373E14-311D-40EF-8C45-363C30AEDED4@cs.ucla.edu> Message-ID: Alex, Thanks again for the information. Perhaps I should mention my goal in this isn't to actually change the forwarding strategy itself. I want to access / record the Interests as they come in. As far as I can tell, Strategy is the only place there is a virtual method that (should) be called automatically when an Interest arrives. Is this correct? Thanks John On Dec 19, 2016 2:00 AM, "Alex Afanasyev" wrote: > Sorry. Missed that. I see that you also have properly used > StrategyChoiceHelper. One thing that I would change is either explicitly > configure multicast strategy on all nodes except node 2, or use a more > specific prefix for node 2. The behavior is not necessarily defined, given > the order of execution should be sequential, but may not be guaranteed. > > -- > Alex > > On Dec 18, 2016, at 10:25 PM, John Baugh wrote: > > As you can see from the Google drive files below, I did register it using > the register command as you indicated. > > > ---------- Forwarded message ---------- > From: "John Baugh" > Date: Dec 17, 2016 10:33 PM > Subject: Custom Strategy - undefined reference errors? > To: "ndnsim" > Cc: > > ndnSIM friends, >> >> I've been working on creating a custom strategy, and I can't seem to >> figure out why it's generating the errors that it is. >> >> >> Here are the related files: >> >> *The errors:* >> https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8 >> Sjuvirdof2CezRWEQ >> >> *Test file using the strategy* >> https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk >> >> *The Custom CS I'm using:* >> https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE >> >> *The Custom Strategy files:* >> https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA >> >> https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE >> >> >> >> Any help would be appreciated. >> >> Thanks, >> >> John >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Mon Dec 19 00:27:30 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Mon, 19 Dec 2016 11:57:30 +0330 Subject: [ndnSIM] How to manually set name of Interest and Data In-Reply-To: <759335A6-A9D9-48E4-9B30-5B8EED9B57B4@cs.ucla.edu> References: <759335A6-A9D9-48E4-9B30-5B8EED9B57B4@cs.ucla.edu> Message-ID: Kengo, As Alex said, you can modify the existing producer application into a new one. A very simple one could be an application in which there are two folders /existing and /nonExisting. In Application::OnInterest, the application checks whether incoming interests are looking for something under /existing, so it answers. Otherwise there will be no data back. Alex, About the a little bit more complex one, you mean an application which has created a defined number of Data packets before? At the time of starting maybe? Or more like a real we application? Regards, Sabet ????? ????? ?? ???? On Mon, Dec 19, 2016 at 1:52 AM, Alex Afanasyev wrote: > Hi Kengo, > > There are a few ways of achieving this. The simplest one is to modify the > existing Produce application to remove the assumption that all requested > data exist and only reply the Interests of your choice. > > A little bit more complex, but future proof, is to write a second producer > applications the implements your behavior. We will be really happy to > merge this code into the ndnSIM. > > -- > Alex > > > On Nov 24, 2016, at 6:14 AM, ???? <46rock715 at gmail.com> wrote: > > > > Dear NDN Research Team, > > Hello. > > I want to send an Interest for a Data packet that does not exist. For > example, if a Producer has two Data packets /prefix/0 and /prefix/1, I want > to send an Interest for /prefix/2. In order to achieve this, I would need > to be able to set the full name of the Interest and Data packets. > > When I was working with the the examples on ndnSIM 2.0, I could only > find a way to set the prefix. In ndn-simple.cpp using the Helper > "consumerHelper.SetPrefix("/prefix")," it would automatically add 0, 1, > ... to the end of /prefix/. Then using the "producerHelper.SetPrefix("/prefix")" > the Producer would return the matching Data packet, assuming it exist. > > I do not want it to be assumed that it exists. Therefore, I would like > to know if there is a way to manually set all the names. > > Any help would be greatly appreciated. > > Thank you. > > > > Best Regards, > > Kengo Kaneda > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anikety97 at gmail.com Mon Dec 19 03:56:31 2016 From: anikety97 at gmail.com (Aniket Yeole) Date: Mon, 19 Dec 2016 17:26:31 +0530 Subject: [ndnSIM] Monitoring node In-Reply-To: <6F161652-D901-4591-AAE0-504A88962B8B@cs.ucla.edu> References: <6F161652-D901-4591-AAE0-504A88962B8B@cs.ucla.edu> Message-ID: Hi Spyridon and ndnsim team Thankyou for the advise but can you elaborate it more, the process of sending Interest and fetch the data from other nodes ?? and how to decode the data content ? Can you share some small example for reference or something that I can refer ? Regards, Aniket On 15 December 2016 at 22:50, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi, > > you could create your own applications (producers and consumers). The > monitoring node can act as a consumer that sends Interests and fetches the > data of your interest from the rest of the nodes (producers). After that, > you will have to decode the data content and store it in the way 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 Dec 15, 2016, at 2:33 PM, Aniket Yeole wrote: > > Greetings all, > > I am trying to create monitoring node or entity so that I can get the > monitoring info of other nodes (like PIT, CS, FIB) on that node. I gone > through some example in ndnsim like (ndn-tree-tracers.cpp - *http://ndnsim.net/2.1/metric.html > ). *The tracers saves statistical > information in .txt format can this be used as monitoring information or > are there other methods available to do so?? > > From the examples on tracers I made changes in topology and added one more > node for monitoring purpose. Now how can I transfer the different tables > like PIT and content storage of all the network to this monitoring node?. > > I wanted to know how to give a particular node a monitoring capabilities > (like there are producers and consumers are there any monitors which are > mentioned in doxygen of ndnsim?) > > > Please guide me > > Regards, > Aniket Yeole > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon Dec 19 04:12:11 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 19 Dec 2016 14:12:11 +0200 Subject: [ndnSIM] Monitoring node In-Reply-To: References: <6F161652-D901-4591-AAE0-504A88962B8B@cs.ucla.edu> Message-ID: Hi, this is the way to decode a data packet: https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/data.cpp#L135 These are the callbacks to invoke in order to send Interest and Data packets: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/apps/ndn-consumer.cpp#L202 https://github.com/named-data-ndnSIM/ndnSIM/blob/master/apps/ndn-producer.cpp#L131 Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 19, 2016, at 1:56 PM, Aniket Yeole wrote: > > Hi Spyridon and ndnsim team > > Thankyou for the advise but can you elaborate it more, the process of sending Interest and fetch the data from other nodes ?? > and how to decode the data content ? > > Can you share some small example for reference or something that I can refer ? > > Regards, > > Aniket > > On 15 December 2016 at 22:50, Spyridon (Spyros) Mastorakis > wrote: > Hi, > > you could create your own applications (producers and consumers). The monitoring node can act as a consumer that sends Interests and fetches the data of your interest from the rest of the nodes (producers). After that, you will have to decode the data content and store it in the way 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 Dec 15, 2016, at 2:33 PM, Aniket Yeole > wrote: >> >> Greetings all, >> >> I am trying to create monitoring node or entity so that I can get the monitoring info of other nodes (like PIT, CS, FIB) on that node. I gone through some example in ndnsim like (ndn-tree-tracers.cpp - http://ndnsim.net/2.1/metric.html ). The tracers saves statistical information in .txt format can this be used as monitoring information or are there other methods available to do so?? >> >> From the examples on tracers I made changes in topology and added one more node for monitoring purpose. Now how can I transfer the different tables like PIT and content storage of all the network to this monitoring node?. >> >> I wanted to know how to give a particular node a monitoring capabilities (like there are producers and consumers are there any monitors which are mentioned in doxygen of ndnsim?) >> >> >> Please guide me >> >> Regards, >> Aniket Yeole > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From felipe.pollola at tracenetsolutions.com Mon Dec 19 20:02:59 2016 From: felipe.pollola at tracenetsolutions.com (Felipe Pollola) Date: Tue, 20 Dec 2016 02:02:59 -0200 Subject: [ndnSIM] NDN Caching Selection Message-ID: Hello, NDNSim users. I'm here studying NDN interactions with NDNSim, and i was trying to setup the cache mode for all nodes and collect data from them to plot in a graphical and easy viewer of the performance of each kind of cache available in NDNsim. Unfortunatly when i use CS Tracker, i must use the oldsetcontentstore that appears to not work as well. Could someone help me in this case? Best regards, Felipe -------------- next part -------------- An HTML attachment was scrubbed... URL: From neogeoss at ajou.ac.kr Tue Dec 20 00:39:35 2016 From: neogeoss at ajou.ac.kr (=?UTF-8?B?7Zmp7J247LCs?=) Date: Tue, 20 Dec 2016 17:39:35 +0900 Subject: [ndnSIM] Wired and Wireless NDN hybrid simulation Message-ID: Dear NDN researchers, Thank you for all the helps you have given me so far. I have made breakthroughs in my simulation modification so far. However, I am struggling with the simulation of a certain scenario, hybrid of wired nodes and wireless nodes. There is a gateway in the middle of between these hybrids. I am curious whether this hybrid scenario can be implemented with ndnSIM ver 2. Is there any library to implement a gateway at ndnSIM? Shall I just make it for myself? Best wishes, inchan Hwang -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Tue Dec 20 21:49:10 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Wed, 21 Dec 2016 09:19:10 +0330 Subject: [ndnSIM] =?utf-8?b?5Zue5aSN77yaIGNvbnN1bWVyIGFwcA==?= In-Reply-To: References: <12443554-2C1A-4CEB-A356-82043B7E120A@cs.ucla.edu> Message-ID: It's mostly your call how to do it. As an example, take a look at http://ndnsim.net/2.3/doxygen/classns3_1_1ndn_1_1Consumer.html There is a OnData method that is called every time new Data arrives. You may schedule your application sending next Interest there. As Alex pointed out, you may update existing consumer apps(ConsumerCbr, ConsumerBatch, etc) or write a new one familiar to existing ones but having your own OnData method implemented, which behaves as you want. Indeed it should be simple. Just take a look at existing apps. I'm sure you will find what you're looking for. Sabet On Mon, Dec 19, 2016 at 4:36 AM, ?? wrote: > I am new to ndnSIM?how can i implement this scheme? I'm really appreciate > if you can give me some tips! > > > ------------------ ???? ------------------ > *???:* "Alex Afanasyev"; > *????:* 2016?12?19?(???) ??6:26 > *???:* "??"; > *??:* "ndnsim"; > *??:* Re: [ndnSIM] consumer app > > You either need to update existing consumer app or write a new one. Based > on what you describing, it should be very simple to do. > > -- > Alex > > > On Dec 17, 2016, at 11:03 PM, ?? wrote: > > > > Hi, > > how can i realize a consumer APP that after client receive the data > for the previous interest, than client can send the next interest to the > net, rather than send interest depend on sending rate. > > i.e. after client send a interest, no matter how long client have to > wait for the correspond data, it can not send next interest until receive > the data. > > thanks! > > _______________________________________________ > 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 md.taushif1614 at gmail.com Tue Dec 20 22:33:47 2016 From: md.taushif1614 at gmail.com (MD TAUSHIF) Date: Wed, 21 Dec 2016 07:33:47 +0100 Subject: [ndnSIM] ndn-conumer.cpp application Message-ID: Hi all, I am new to ndnsim. I was working with the example *ndn-tree-tracers.cpp*. While running the simulation example (ndn-tree-tracers.cpp) I got some error which I am unable to resolve. I used different Consumer application instead of *ConsumerCbr* which resulted in following error. /* Waf: Entering directory `/home/aa/ndnsim/ns-3/build' [1483/2861] Compiling src/ndnSIM/examples/new.cpp [2791/2861] Linking build/src/ndnSIM/examples/ns3-dev-new-debug Waf: Leaving directory `/home/aa/ndnsim/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (10.496s) msg="Requested constructor for ns3::ndn::Consumer but it does not have one.", file=../src/core/model/type-id.cc, line=547 terminate called without an active exception Command ['/home/aa/ndnsim/ns-3/build/src/ndnSIM/examples/ns3-dev-new-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). */ I replaced following line ? ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); With ndn::AppHelper consumerHelper("ns3::ndn::Consumer"); Please guide me about how I can use the *ndn-conumer.cpp* as I wanted to make changes in Interest Packet and its following Data packet for it using this ndn-conumer.cpp? Regards, MD -------------- next part -------------- An HTML attachment was scrubbed... URL: From md.taushif1614 at gmail.com Tue Dec 20 22:38:17 2016 From: md.taushif1614 at gmail.com (MD TAUSHIF) Date: Wed, 21 Dec 2016 07:38:17 +0100 Subject: [ndnSIM] ndn-conumer.cpp application Message-ID: Hi all, I am new to ndnsim. I was working with the example *ndn-tree-tracers.cpp*. While running the simulation example (ndn-tree-tracers.cpp) I got some error which I am unable to resolve. I used different Consumer application instead of *ConsumerCbr* which resulted in following error. /* Waf: Entering directory `/home/aa/ndnsim/ns-3/build' [1483/2861] Compiling src/ndnSIM/examples/new.cpp [2791/2861] Linking build/src/ndnSIM/examples/ns3-dev-new-debug Waf: Leaving directory `/home/aa/ndnsim/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (10.496s) msg="Requested constructor for ns3::ndn::Consumer but it does not have one.", file=../src/core/model/type-id.cc, line=547 terminate called without an active exception Command ['/home/aa/ndnsim/ns-3/build/src/ndnSIM/examples/ns3-dev-new-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). */ I replaced following line ? ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); With ndn::AppHelper consumerHelper("ns3::ndn::Consumer"); Please guide me about how I can use the *ndn-conumer.cpp* as I wanted to make changes in Interest Packet and its following Data packet for it using this ndn-conumer.cpp? Thanks & Regards, MD Taushif -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahsa.aghajani at gmail.com Wed Dec 21 01:39:34 2016 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Wed, 21 Dec 2016 13:09:34 +0330 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR Message-ID: Dear ndnSIM users I need to install the new version of ndnSIM which the NLSR protocol in ported in it and is in this repository : https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR when I enter command ./waf , this error occurs : /home/mahsa/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). I searched into the internet but I did not find any solution. I really appreciate your help and attention. -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Wed Dec 21 03:41:50 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Wed, 21 Dec 2016 15:11:50 +0330 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: Message-ID: Mahsa, Weird error. Have you followed this instruction: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md? I'm CCing anil. Sabet On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani wrote: > Dear ndnSIM users > > I need to install the new version of ndnSIM which the NLSR protocol in > ported in it and is in this repository : > https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR > > when I enter command ./waf , this error occurs : > > /home/mahsa/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). > > I searched into the internet but I did not find any solution. > I really appreciate your help and attention. > > -- > > Mahsa Aghajani > M.Sc. Student > Department of Computer Engineering > Sharif University of Technology > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Wed Dec 21 04:33:29 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Wed, 21 Dec 2016 14:33:29 +0200 Subject: [ndnSIM] ndn-conumer.cpp application In-Reply-To: References: Message-ID: <6A444E9A-AE0E-44DD-9006-777BBE9C7D03@cs.ucla.edu> Hi, the Consumer class is supposed to be used as the base class for derived consumer classes that actually control the Interest/Data sending rate. It is not supposed to be used directly in simulation scenarios. You can create your own consumer class that derives from the base consumer class and implement your own logic. Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 21, 2016, at 8:38 AM, MD TAUSHIF wrote: > > Hi all, > > I am new to ndnsim. I was working with the example ndn-tree-tracers.cpp. While running the simulation example (ndn-tree-tracers.cpp) I got some error which I am unable to resolve. I used different Consumer application instead of ConsumerCbr which resulted in following error. > > /* > Waf: Entering directory `/home/aa/ndnsim/ns-3/build' > [1483/2861] Compiling src/ndnSIM/examples/new.cpp > [2791/2861] Linking build/src/ndnSIM/examples/ns3-dev-new-debug > Waf: Leaving directory `/home/aa/ndnsim/ns-3/build' > Build commands will be stored in build/compile_commands.json > 'build' finished successfully (10.496s) > msg="Requested constructor for ns3::ndn::Consumer but it does not have one.", file=../src/core/model/type-id.cc, line=547 > terminate called without an active exception > Command ['/home/aa/ndnsim/ns-3/build/src/ndnSIM/examples/ns3-dev-new-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). > */ > > > I replaced following line > > ? ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); > With > ndn::AppHelper consumerHelper("ns3::ndn::Consumer"); > > Please guide me about how I can use the ndn-conumer.cpp as I wanted to make changes in Interest Packet and its following Data packet for it using this ndn-conumer.cpp? > > Thanks & Regards, > > MD Taushif -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahsa.aghajani at gmail.com Wed Dec 21 05:02:01 2016 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Wed, 21 Dec 2016 16:32:01 +0330 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: Message-ID: yes I have followed these instructions, although I copied nsync/ sync-state.pb.cc and nsync/sync-state.pb.h from NLSR/build/nsync to the specified folder in ndnSIM. the complete error is this : [ 486/2997] Processing src/ndnSIM/NLSR/nsync/sync-state.proto ../ns3/ndnSIM/NFD: warning: directory does not exist. ../ns3/ndnSIM: warning: directory does not exist. ../ns3/ndnSIM/ndn-cxx: warning: directory does not exist. ../ns3/ndnSIM/NLSR: warning: directory does not exist. /home/mahsa/ndnSIM-NLSR/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). I also gave access to all these folders that do exist in home/mahsa/ndnSIM-NLSR/ns-3/build/ns3/ndnSIM . On Wed, Dec 21, 2016 at 3:11 PM, Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com> wrote: > Mahsa, > > Weird error. Have you followed this instruction: > > https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md? > > I'm CCing anil. > > Sabet > > On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani > wrote: > >> Dear ndnSIM users >> >> I need to install the new version of ndnSIM which the NLSR protocol in >> ported in it and is in this repository : >> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR >> >> when I enter command ./waf , this error occurs : >> >> /home/mahsa/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). >> >> I searched into the internet but I did not find any solution. >> I really appreciate your help and attention. >> >> -- >> >> Mahsa Aghajani >> M.Sc. Student >> Department of Computer Engineering >> Sharif University of Technology >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From agawande at memphis.edu Wed Dec 21 08:44:46 2016 From: agawande at memphis.edu (Ashlesh Gawande (agawande)) Date: Wed, 21 Dec 2016 16:44:46 +0000 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: , Message-ID: There were some recent fixes pushed to the repos. Can you update your sources and try again? Ashlesh ________________________________ From: ndnSIM on behalf of Mahsa Aghajani Sent: Wednesday, December 21, 2016 7:02:01 AM To: Muhammad Hosain Abdollahi Sabet Cc: ndnsim Subject: Re: [ndnSIM] Problem in intsalling ndnSIM-NLSR yes I have followed these instructions, although I copied nsync/sync-state.pb.cc and nsync/sync-state.pb.h from NLSR/build/nsync to the specified folder in ndnSIM. the complete error is this : [ 486/2997] Processing src/ndnSIM/NLSR/nsync/sync-state.proto ../ns3/ndnSIM/NFD: warning: directory does not exist. ../ns3/ndnSIM: warning: directory does not exist. ../ns3/ndnSIM/ndn-cxx: warning: directory does not exist. ../ns3/ndnSIM/NLSR: warning: directory does not exist. /home/mahsa/ndnSIM-NLSR/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). I also gave access to all these folders that do exist in home/mahsa/ndnSIM-NLSR/ns-3/build/ns3/ndnSIM . On Wed, Dec 21, 2016 at 3:11 PM, Muhammad Hosain Abdollahi Sabet > wrote: Mahsa, Weird error. Have you followed this instruction: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md? I'm CCing anil. Sabet On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani > wrote: Dear ndnSIM users I need to install the new version of ndnSIM which the NLSR protocol in ported in it and is in this repository : https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR when I enter command ./waf , this error occurs : /home/mahsa/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). I searched into the internet but I did not find any solution. I really appreciate your help and attention. -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Wed Dec 21 11:22:28 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Wed, 21 Dec 2016 11:22:28 -0800 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: Message-ID: Hi Mahsa, Can you please update your git repo ndnSIM-NLSR git repo and do a clean build again? It should work now. I have pushed one change. /anil. On Wed, Dec 21, 2016 at 8:44 AM, Ashlesh Gawande (agawande) < agawande at memphis.edu> wrote: > There were some recent fixes pushed to the repos. Can you update your > sources and try again? > > > Ashlesh > ------------------------------ > *From:* ndnSIM on behalf of Mahsa > Aghajani > *Sent:* Wednesday, December 21, 2016 7:02:01 AM > *To:* Muhammad Hosain Abdollahi Sabet > *Cc:* ndnsim > *Subject:* Re: [ndnSIM] Problem in intsalling ndnSIM-NLSR > > yes I have followed these instructions, although I copied nsync/ > sync-state.pb.cc and nsync/sync-state.pb.h from NLSR/build/nsync to the > specified folder in ndnSIM. > > the complete error is this : > [ 486/2997] Processing src/ndnSIM/NLSR/nsync/sync-state.proto > ../ns3/ndnSIM/NFD: warning: directory does not exist. > ../ns3/ndnSIM: warning: directory does not exist. > ../ns3/ndnSIM/ndn-cxx: warning: directory does not exist. > ../ns3/ndnSIM/NLSR: warning: directory does not exist. > /home/mahsa/ndnSIM-NLSR/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). > > I also gave access to all these folders that do exist in > home/mahsa/ndnSIM-NLSR/ns-3/build/ns3/ndnSIM . > > > > On Wed, Dec 21, 2016 at 3:11 PM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > >> Mahsa, >> >> Weird error. Have you followed this instruction: >> >> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md? >> >> I'm CCing anil. >> >> Sabet >> >> On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani > > wrote: >> >>> Dear ndnSIM users >>> >>> I need to install the new version of ndnSIM which the NLSR protocol in >>> ported in it and is in this repository : >>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR >>> >>> when I enter command ./waf , this error occurs : >>> >>> /home/mahsa/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). >>> >>> I searched into the internet but I did not find any solution. >>> I really appreciate your help and attention. >>> >>> -- >>> >>> Mahsa Aghajani >>> M.Sc. Student >>> Department of Computer Engineering >>> Sharif University of Technology >>> >>> >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>> >>> >> > > > -- > > Mahsa Aghajani > M.Sc. Student > Department of Computer Engineering > Sharif University of Technology > > > _______________________________________________ > 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 Wed Dec 21 11:52:21 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Wed, 21 Dec 2016 20:52:21 +0100 Subject: [ndnSIM] Concerning the Best-route strategy In-Reply-To: References: Message-ID: Dear all, How one can calculate the overhead for updating the shortest paths, with the Best-route strategy? Thanks, C. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Wed Dec 21 12:01:22 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Wed, 21 Dec 2016 20:01:22 +0000 Subject: [ndnSIM] Concerning the Best-route strategy In-Reply-To: References: Message-ID: Hi Carl The best route strategy follows the routing costs in the FIB, which is controlled by the routing protocol. Thus, the overhead of updating shortest paths is the overhead of running a routing protocol, plus a little bit of CPU usage within NFD management. Yours, Junxiao On Wed, Dec 21, 2016 at 12:53 Carl Zu wrote: > Dear all, > > How one can calculate the overhead for updating the shortest paths, with > the Best-route strategy? > > Thanks, > C. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlzu8 at gmail.com Wed Dec 21 12:07:54 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Wed, 21 Dec 2016 21:07:54 +0100 Subject: [ndnSIM] Concerning the Best-route strategy In-Reply-To: References: Message-ID: Hi Junxiao, I see, but is there a way to calculate it exactly? (communication overhead) Thanks, C On Dec 21, 2016 9:01 PM, "Junxiao Shi" wrote: > Hi Carl > > The best route strategy follows the routing costs in the FIB, which is > controlled by the routing protocol. > Thus, the overhead of updating shortest paths is the overhead of running a > routing protocol, plus a little bit of CPU usage within NFD management. > > Yours, Junxiao > > On Wed, Dec 21, 2016 at 12:53 Carl Zu wrote: > >> Dear all, >> >> How one can calculate the overhead for updating the shortest paths, with >> the Best-route strategy? >> >> Thanks, >> C. >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Wed Dec 21 12:10:20 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Wed, 21 Dec 2016 20:10:20 +0000 Subject: [ndnSIM] Concerning the Best-route strategy In-Reply-To: References: Message-ID: Hi Carl Communication overhead can be calculated by running a routing protocol such as NLSR (there is an ndnSIM port for it), and count how many packets are transmitted by it. Yours, Junxiao On Wed, Dec 21, 2016 at 13:07 Carl Zu wrote: > Hi Junxiao, > > I see, but is there a way to calculate it exactly? (communication > overhead) > > Thanks, > C > > On Dec 21, 2016 9:01 PM, "Junxiao Shi" > wrote: > > Hi Carl > > The best route strategy follows the routing costs in the FIB, which is > controlled by the routing protocol. > Thus, the overhead of updating shortest paths is the overhead of running a > routing protocol, plus a little bit of CPU usage within NFD management. > > Yours, Junxiao > > On Wed, Dec 21, 2016 at 12:53 Carl Zu wrote: > > Dear all, > > How one can calculate the overhead for updating the shortest paths, with > the Best-route strategy? > > Thanks, > C. > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahsa.aghajani at gmail.com Wed Dec 21 12:31:51 2016 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Thu, 22 Dec 2016 00:01:51 +0330 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: Message-ID: Dear Mr.Jangam I really appreciate your quick help, I did as you said and that error did not show up. now in compiling NLSR code, this error ocurs : In file included from ../src/ndnSIM/NLSR/src/nlsr.hpp:38:0, from ../src/ndnSIM/NLSR/src/route/map.cpp:26: ../src/ndnSIM/NLSR/src/hello-protocol.hpp: In constructor ?nlsr::HelloProtocol::HelloProtocol(nlsr::Nlsr&, ndn::util::scheduler::Scheduler&)?: ../src/ndnSIM/NLSR/src/hello-protocol.hpp:49:5: error: ?m_outInterest? was not declared in this scope m_outInterest = 0; ^ ../src/ndnSIM/NLSR/src/hello-protocol.hpp:50:5: error: ?m_inData? was not declared in this scope m_inData = 0; I checked the hello-Protocol.hpp source code but unfortunately I did not find why this happens. On Wed, Dec 21, 2016 at 10:52 PM, Anil Jangam wrote: > Hi Mahsa, > > Can you please update your git repo ndnSIM-NLSR git repo and do a clean > build again? It should work now. I have pushed one change. > > /anil. > > > On Wed, Dec 21, 2016 at 8:44 AM, Ashlesh Gawande (agawande) < > agawande at memphis.edu> wrote: > >> There were some recent fixes pushed to the repos. Can you update your >> sources and try again? >> >> >> Ashlesh >> ------------------------------ >> *From:* ndnSIM on behalf of Mahsa >> Aghajani >> *Sent:* Wednesday, December 21, 2016 7:02:01 AM >> *To:* Muhammad Hosain Abdollahi Sabet >> *Cc:* ndnsim >> *Subject:* Re: [ndnSIM] Problem in intsalling ndnSIM-NLSR >> >> yes I have followed these instructions, although I copied nsync/ >> sync-state.pb.cc and nsync/sync-state.pb.h from NLSR/build/nsync to the >> specified folder in ndnSIM. >> >> the complete error is this : >> [ 486/2997] Processing src/ndnSIM/NLSR/nsync/sync-state.proto >> ../ns3/ndnSIM/NFD: warning: directory does not exist. >> ../ns3/ndnSIM: warning: directory does not exist. >> ../ns3/ndnSIM/ndn-cxx: warning: directory does not exist. >> ../ns3/ndnSIM/NLSR: warning: directory does not exist. >> /home/mahsa/ndnSIM-NLSR/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). >> >> I also gave access to all these folders that do exist in >> home/mahsa/ndnSIM-NLSR/ns-3/build/ns3/ndnSIM . >> >> >> >> On Wed, Dec 21, 2016 at 3:11 PM, Muhammad Hosain Abdollahi Sabet < >> mhasabet at gmail.com> wrote: >> >>> Mahsa, >>> >>> Weird error. Have you followed this instruction: >>> >>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md? >>> >>> I'm CCing anil. >>> >>> Sabet >>> >>> On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani < >>> mahsa.aghajani at gmail.com> wrote: >>> >>>> Dear ndnSIM users >>>> >>>> I need to install the new version of ndnSIM which the NLSR protocol in >>>> ported in it and is in this repository : >>>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR >>>> >>>> when I enter command ./waf , this error occurs : >>>> >>>> /home/mahsa/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). >>>> >>>> I searched into the internet but I did not find any solution. >>>> I really appreciate your help and attention. >>>> >>>> -- >>>> >>>> Mahsa Aghajani >>>> M.Sc. Student >>>> Department of Computer Engineering >>>> Sharif University of Technology >>>> >>>> >>>> _______________________________________________ >>>> ndnSIM mailing list >>>> ndnSIM at lists.cs.ucla.edu >>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>> >>>> >>> >> >> >> -- >> >> Mahsa Aghajani >> M.Sc. Student >> Department of Computer Engineering >> Sharif University of Technology >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Wed Dec 21 18:22:18 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Wed, 21 Dec 2016 18:22:18 -0800 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: Message-ID: Hi Mahsa, Perhaps something wrong with your workspace/view or configuration. I did a fresh clone of nlsrSIM and it all compiled fine. I suspect most likely you have not enabled the NLSR at configure time. May I suggest you to do everything from fresh? Do the following. 1. ./waf distclean 2. ./waf configure --enable-examples --enable-nlsr 3. ./waf Note that '--enable-nlsr' enables the nlsr simulation specific changes added to the NLSR and above code is part of it. I will look into this and fix the problem. For now follow above steps once again. Thanks, /anil. On Wed, Dec 21, 2016 at 12:31 PM, Mahsa Aghajani wrote: > Dear Mr.Jangam > > I really appreciate your quick help, I did as you said and that error did > not show up. > now in compiling NLSR code, this error ocurs : > > In file included from ../src/ndnSIM/NLSR/src/nlsr.hpp:38:0, > from ../src/ndnSIM/NLSR/src/route/map.cpp:26: > ../src/ndnSIM/NLSR/src/hello-protocol.hpp: In constructor > ?nlsr::HelloProtocol::HelloProtocol(nlsr::Nlsr&, ndn::util::scheduler:: > Scheduler&)?: > ../src/ndnSIM/NLSR/src/hello-protocol.hpp:49:5: error: ?m_outInterest? > was not declared in this scope > m_outInterest = 0; > ^ > ../src/ndnSIM/NLSR/src/hello-protocol.hpp:50:5: error: ?m_inData? was not > declared in this scope > m_inData = 0; > > I checked the hello-Protocol.hpp source code but unfortunately I did not > find why this happens. > > > On Wed, Dec 21, 2016 at 10:52 PM, Anil Jangam > wrote: > >> Hi Mahsa, >> >> Can you please update your git repo ndnSIM-NLSR git repo and do a clean >> build again? It should work now. I have pushed one change. >> >> /anil. >> >> >> On Wed, Dec 21, 2016 at 8:44 AM, Ashlesh Gawande (agawande) < >> agawande at memphis.edu> wrote: >> >>> There were some recent fixes pushed to the repos. Can you update your >>> sources and try again? >>> >>> >>> Ashlesh >>> ------------------------------ >>> *From:* ndnSIM on behalf of Mahsa >>> Aghajani >>> *Sent:* Wednesday, December 21, 2016 7:02:01 AM >>> *To:* Muhammad Hosain Abdollahi Sabet >>> *Cc:* ndnsim >>> *Subject:* Re: [ndnSIM] Problem in intsalling ndnSIM-NLSR >>> >>> yes I have followed these instructions, although I copied nsync/ >>> sync-state.pb.cc and nsync/sync-state.pb.h from NLSR/build/nsync to the >>> specified folder in ndnSIM. >>> >>> the complete error is this : >>> [ 486/2997] Processing src/ndnSIM/NLSR/nsync/sync-state.proto >>> ../ns3/ndnSIM/NFD: warning: directory does not exist. >>> ../ns3/ndnSIM: warning: directory does not exist. >>> ../ns3/ndnSIM/ndn-cxx: warning: directory does not exist. >>> ../ns3/ndnSIM/NLSR: warning: directory does not exist. >>> /home/mahsa/ndnSIM-NLSR/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). >>> >>> I also gave access to all these folders that do exist in >>> home/mahsa/ndnSIM-NLSR/ns-3/build/ns3/ndnSIM . >>> >>> >>> >>> On Wed, Dec 21, 2016 at 3:11 PM, Muhammad Hosain Abdollahi Sabet < >>> mhasabet at gmail.com> wrote: >>> >>>> Mahsa, >>>> >>>> Weird error. Have you followed this instruction: >>>> >>>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md >>>> ? >>>> >>>> I'm CCing anil. >>>> >>>> Sabet >>>> >>>> On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani < >>>> mahsa.aghajani at gmail.com> wrote: >>>> >>>>> Dear ndnSIM users >>>>> >>>>> I need to install the new version of ndnSIM which the NLSR protocol in >>>>> ported in it and is in this repository : >>>>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR >>>>> >>>>> when I enter command ./waf , this error occurs : >>>>> >>>>> /home/mahsa/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). >>>>> >>>>> I searched into the internet but I did not find any solution. >>>>> I really appreciate your help and attention. >>>>> >>>>> -- >>>>> >>>>> Mahsa Aghajani >>>>> M.Sc. Student >>>>> Department of Computer Engineering >>>>> Sharif University of Technology >>>>> >>>>> >>>>> _______________________________________________ >>>>> ndnSIM mailing list >>>>> ndnSIM at lists.cs.ucla.edu >>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>>> >>>>> >>>> >>> >>> >>> -- >>> >>> Mahsa Aghajani >>> M.Sc. Student >>> Department of Computer Engineering >>> Sharif University of Technology >>> >>> >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>> >>> >> > > > -- > > Mahsa Aghajani > M.Sc. Student > Department of Computer Engineering > Sharif University of Technology > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahsa.aghajani at gmail.com Wed Dec 21 23:05:41 2016 From: mahsa.aghajani at gmail.com (Mahsa Aghajani) Date: Thu, 22 Dec 2016 10:35:41 +0330 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: Message-ID: Dear Mr.Jangam I appreciate your help and attention, --enable-nlsr solved my problem, thank you for your great help. Now the ./waf command completed, but is there a way to get sure that ndnSIM-NLSR is correctly installed? when I run this command : perl nlsr-experiment.pl /home/mahsa/ndnSIM-NLSR/ns-3/src/ndnSIM/examples/ndn-nlsr-conf/5_node_router.brite ls in folder : /ndnSIM-NLSR/ns-3/src/ndnSIM$ the output is like this : Waf: Entering directory `/home/mahsa/ndnSIM-NLSR/ns-3/build' program 'ndn-nlsr-confgen' not found; available programs are: [] Waf: Entering directory `/home/mahsa/ndnSIM-NLSR/ns-3/build' program 'ndn-nlsr-simple' not found; available programs are: [] Do I run the command in a wrong way? Thank you for this much of help. On Thu, Dec 22, 2016 at 5:52 AM, Anil Jangam wrote: > Hi Mahsa, > > Perhaps something wrong with your workspace/view or configuration. I did a > fresh clone of nlsrSIM and it all compiled fine. I suspect most likely you > have not enabled the NLSR at configure time. May I suggest you to do > everything from fresh? Do the following. > > 1. ./waf distclean > 2. ./waf configure --enable-examples --enable-nlsr > 3. ./waf > > Note that '--enable-nlsr' enables the nlsr simulation specific changes > added to the NLSR and above code is part of it. I will look into this and > fix the problem. For now follow above steps once again. > > Thanks, > /anil. > > > On Wed, Dec 21, 2016 at 12:31 PM, Mahsa Aghajani > wrote: > >> Dear Mr.Jangam >> >> I really appreciate your quick help, I did as you said and that error did >> not show up. >> now in compiling NLSR code, this error ocurs : >> >> In file included from ../src/ndnSIM/NLSR/src/nlsr.hpp:38:0, >> from ../src/ndnSIM/NLSR/src/route/map.cpp:26: >> ../src/ndnSIM/NLSR/src/hello-protocol.hpp: In constructor >> ?nlsr::HelloProtocol::HelloProtocol(nlsr::Nlsr&, >> ndn::util::scheduler::Scheduler&)?: >> ../src/ndnSIM/NLSR/src/hello-protocol.hpp:49:5: error: ?m_outInterest? >> was not declared in this scope >> m_outInterest = 0; >> ^ >> ../src/ndnSIM/NLSR/src/hello-protocol.hpp:50:5: error: ?m_inData? was >> not declared in this scope >> m_inData = 0; >> >> I checked the hello-Protocol.hpp source code but unfortunately I did not >> find why this happens. >> >> >> On Wed, Dec 21, 2016 at 10:52 PM, Anil Jangam >> wrote: >> >>> Hi Mahsa, >>> >>> Can you please update your git repo ndnSIM-NLSR git repo and do a clean >>> build again? It should work now. I have pushed one change. >>> >>> /anil. >>> >>> >>> On Wed, Dec 21, 2016 at 8:44 AM, Ashlesh Gawande (agawande) < >>> agawande at memphis.edu> wrote: >>> >>>> There were some recent fixes pushed to the repos. Can you update your >>>> sources and try again? >>>> >>>> >>>> Ashlesh >>>> ------------------------------ >>>> *From:* ndnSIM on behalf of Mahsa >>>> Aghajani >>>> *Sent:* Wednesday, December 21, 2016 7:02:01 AM >>>> *To:* Muhammad Hosain Abdollahi Sabet >>>> *Cc:* ndnsim >>>> *Subject:* Re: [ndnSIM] Problem in intsalling ndnSIM-NLSR >>>> >>>> yes I have followed these instructions, although I copied nsync/ >>>> sync-state.pb.cc and nsync/sync-state.pb.h from NLSR/build/nsync to >>>> the specified folder in ndnSIM. >>>> >>>> the complete error is this : >>>> [ 486/2997] Processing src/ndnSIM/NLSR/nsync/sync-state.proto >>>> ../ns3/ndnSIM/NFD: warning: directory does not exist. >>>> ../ns3/ndnSIM: warning: directory does not exist. >>>> ../ns3/ndnSIM/ndn-cxx: warning: directory does not exist. >>>> ../ns3/ndnSIM/NLSR: warning: directory does not exist. >>>> /home/mahsa/ndnSIM-NLSR/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). >>>> >>>> I also gave access to all these folders that do exist in >>>> home/mahsa/ndnSIM-NLSR/ns-3/build/ns3/ndnSIM . >>>> >>>> >>>> >>>> On Wed, Dec 21, 2016 at 3:11 PM, Muhammad Hosain Abdollahi Sabet < >>>> mhasabet at gmail.com> wrote: >>>> >>>>> Mahsa, >>>>> >>>>> Weird error. Have you followed this instruction: >>>>> >>>>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master >>>>> /PORTING.md? >>>>> >>>>> I'm CCing anil. >>>>> >>>>> Sabet >>>>> >>>>> On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani < >>>>> mahsa.aghajani at gmail.com> wrote: >>>>> >>>>>> Dear ndnSIM users >>>>>> >>>>>> I need to install the new version of ndnSIM which the NLSR protocol >>>>>> in ported in it and is in this repository : >>>>>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR >>>>>> >>>>>> when I enter command ./waf , this error occurs : >>>>>> >>>>>> /home/mahsa/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). >>>>>> >>>>>> I searched into the internet but I did not find any solution. >>>>>> I really appreciate your help and attention. >>>>>> >>>>>> -- >>>>>> >>>>>> Mahsa Aghajani >>>>>> M.Sc. Student >>>>>> Department of Computer Engineering >>>>>> Sharif University of Technology >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> ndnSIM mailing list >>>>>> ndnSIM at lists.cs.ucla.edu >>>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Mahsa Aghajani >>>> M.Sc. Student >>>> Department of Computer Engineering >>>> Sharif University of Technology >>>> >>>> >>>> _______________________________________________ >>>> ndnSIM mailing list >>>> ndnSIM at lists.cs.ucla.edu >>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>> >>>> >>> >> >> >> -- >> >> Mahsa Aghajani >> M.Sc. Student >> Department of Computer Engineering >> Sharif University of Technology >> >> > -- Mahsa Aghajani M.Sc. Student Department of Computer Engineering Sharif University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Thu Dec 22 00:00:48 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Thu, 22 Dec 2016 00:00:48 -0800 Subject: [ndnSIM] Problem in intsalling ndnSIM-NLSR In-Reply-To: References: Message-ID: Hi Mahsa, I believe the way you are using the perl script is NOT correct. Use it as follows from within ndnSIM folder and let me know (I have tested it). perl nlsr-experiment.pl 5_node_router.brite ls Follow the steps here: https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master/PORTING.md Once the the build is complete, all the binaries are built and available in the ns-3/build folder. To be precise, you should find the above missing files in folder 'ndnSIM-NLSR/ns-3/build/src/ndnSIM/examples'. Look for 'ns3-dev-ndn-nlsr-confgen-debug' and 'ns3-dev-ndn-nlsr-simple-debug'. /anil. On Wed, Dec 21, 2016 at 11:05 PM, Mahsa Aghajani wrote: > Dear Mr.Jangam > > I appreciate your help and attention, --enable-nlsr solved my problem, > thank you for your great help. > Now the ./waf command completed, but is there a way to get sure that > ndnSIM-NLSR is correctly installed? > when I run this command : > > perl nlsr-experiment.pl /home/mahsa/ndnSIM-NLSR/ns-3/ > src/ndnSIM/examples/ndn-nlsr-conf/5_node_router.brite ls > in folder : /ndnSIM-NLSR/ns-3/src/ndnSIM$ the output is like this : > > Waf: Entering directory `/home/mahsa/ndnSIM-NLSR/ns-3/build' > program 'ndn-nlsr-confgen' not found; available programs are: [] > Waf: Entering directory `/home/mahsa/ndnSIM-NLSR/ns-3/build' > program 'ndn-nlsr-simple' not found; available programs are: [] > > Do I run the command in a wrong way? > > Thank you for this much of help. > > On Thu, Dec 22, 2016 at 5:52 AM, Anil Jangam > wrote: > >> Hi Mahsa, >> >> Perhaps something wrong with your workspace/view or configuration. I did >> a fresh clone of nlsrSIM and it all compiled fine. I suspect most likely >> you have not enabled the NLSR at configure time. May I suggest you to do >> everything from fresh? Do the following. >> >> 1. ./waf distclean >> 2. ./waf configure --enable-examples --enable-nlsr >> 3. ./waf >> >> Note that '--enable-nlsr' enables the nlsr simulation specific changes >> added to the NLSR and above code is part of it. I will look into this and >> fix the problem. For now follow above steps once again. >> >> Thanks, >> /anil. >> >> >> On Wed, Dec 21, 2016 at 12:31 PM, Mahsa Aghajani < >> mahsa.aghajani at gmail.com> wrote: >> >>> Dear Mr.Jangam >>> >>> I really appreciate your quick help, I did as you said and that error >>> did not show up. >>> now in compiling NLSR code, this error ocurs : >>> >>> In file included from ../src/ndnSIM/NLSR/src/nlsr.hpp:38:0, >>> from ../src/ndnSIM/NLSR/src/route/map.cpp:26: >>> ../src/ndnSIM/NLSR/src/hello-protocol.hpp: In constructor >>> ?nlsr::HelloProtocol::HelloProtocol(nlsr::Nlsr&, >>> ndn::util::scheduler::Scheduler&)?: >>> ../src/ndnSIM/NLSR/src/hello-protocol.hpp:49:5: error: ?m_outInterest? >>> was not declared in this scope >>> m_outInterest = 0; >>> ^ >>> ../src/ndnSIM/NLSR/src/hello-protocol.hpp:50:5: error: ?m_inData? was >>> not declared in this scope >>> m_inData = 0; >>> >>> I checked the hello-Protocol.hpp source code but unfortunately I did not >>> find why this happens. >>> >>> >>> On Wed, Dec 21, 2016 at 10:52 PM, Anil Jangam >>> wrote: >>> >>>> Hi Mahsa, >>>> >>>> Can you please update your git repo ndnSIM-NLSR git repo and do a clean >>>> build again? It should work now. I have pushed one change. >>>> >>>> /anil. >>>> >>>> >>>> On Wed, Dec 21, 2016 at 8:44 AM, Ashlesh Gawande (agawande) < >>>> agawande at memphis.edu> wrote: >>>> >>>>> There were some recent fixes pushed to the repos. Can you update your >>>>> sources and try again? >>>>> >>>>> >>>>> Ashlesh >>>>> ------------------------------ >>>>> *From:* ndnSIM on behalf of Mahsa >>>>> Aghajani >>>>> *Sent:* Wednesday, December 21, 2016 7:02:01 AM >>>>> *To:* Muhammad Hosain Abdollahi Sabet >>>>> *Cc:* ndnsim >>>>> *Subject:* Re: [ndnSIM] Problem in intsalling ndnSIM-NLSR >>>>> >>>>> yes I have followed these instructions, although I copied nsync/ >>>>> sync-state.pb.cc and nsync/sync-state.pb.h from NLSR/build/nsync to >>>>> the specified folder in ndnSIM. >>>>> >>>>> the complete error is this : >>>>> [ 486/2997] Processing src/ndnSIM/NLSR/nsync/sync-state.proto >>>>> ../ns3/ndnSIM/NFD: warning: directory does not exist. >>>>> ../ns3/ndnSIM: warning: directory does not exist. >>>>> ../ns3/ndnSIM/ndn-cxx: warning: directory does not exist. >>>>> ../ns3/ndnSIM/NLSR: warning: directory does not exist. >>>>> /home/mahsa/ndnSIM-NLSR/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). >>>>> >>>>> I also gave access to all these folders that do exist in >>>>> home/mahsa/ndnSIM-NLSR/ns-3/build/ns3/ndnSIM . >>>>> >>>>> >>>>> >>>>> On Wed, Dec 21, 2016 at 3:11 PM, Muhammad Hosain Abdollahi Sabet < >>>>> mhasabet at gmail.com> wrote: >>>>> >>>>>> Mahsa, >>>>>> >>>>>> Weird error. Have you followed this instruction: >>>>>> >>>>>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR/blob/master >>>>>> /PORTING.md? >>>>>> >>>>>> I'm CCing anil. >>>>>> >>>>>> Sabet >>>>>> >>>>>> On Wed, Dec 21, 2016 at 1:09 PM, Mahsa Aghajani < >>>>>> mahsa.aghajani at gmail.com> wrote: >>>>>> >>>>>>> Dear ndnSIM users >>>>>>> >>>>>>> I need to install the new version of ndnSIM which the NLSR protocol >>>>>>> in ported in it and is in this repository : >>>>>>> https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR >>>>>>> >>>>>>> when I enter command ./waf , this error occurs : >>>>>>> >>>>>>> /home/mahsa/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). >>>>>>> >>>>>>> I searched into the internet but I did not find any solution. >>>>>>> I really appreciate your help and attention. >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Mahsa Aghajani >>>>>>> M.Sc. Student >>>>>>> Department of Computer Engineering >>>>>>> Sharif University of Technology >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> ndnSIM mailing list >>>>>>> ndnSIM at lists.cs.ucla.edu >>>>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Mahsa Aghajani >>>>> M.Sc. Student >>>>> Department of Computer Engineering >>>>> Sharif University of Technology >>>>> >>>>> >>>>> _______________________________________________ >>>>> ndnSIM mailing list >>>>> ndnSIM at lists.cs.ucla.edu >>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>>> >>>>> >>>> >>> >>> >>> -- >>> >>> Mahsa Aghajani >>> M.Sc. Student >>> Department of Computer Engineering >>> Sharif University of Technology >>> >>> >> > > > -- > > Mahsa Aghajani > M.Sc. Student > Department of Computer Engineering > Sharif University of Technology > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From binbs.khan at gmail.com Thu Dec 22 03:28:33 2016 From: binbs.khan at gmail.com (Naveed Khan) Date: Thu, 22 Dec 2016 16:28:33 +0500 Subject: [ndnSIM] anyone have code of producer mobility Message-ID: Hello everyone, I am currently working on Producer mobility in NDN. I need code for producer mobility of ndnSIM so I can take idea from it. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From gc199211 at mail.ustc.edu.cn Thu Dec 22 07:20:05 2016 From: gc199211 at mail.ustc.edu.cn (gc199211) Date: Thu, 22 Dec 2016 23:20:05 +0800 Subject: [ndnSIM] ndn cache replace policy Message-ID: <585BEF23.8090601@mail.ustc.edu.cn> Hello : I am trying to realize a cache replacement policy on ndnSIM .The new policy is based on lfu policy. According to the api document I found that 1) The ns3::ndn::ContentStore has realized lfu policy , but the code is quite complex,including trie.hpp?tire-with-policy.hpp?lfu-policy.hpp and so on 2) The nfd::cs::Cs hasn't realized lfu policy,but the code seems easier. So which kind of contentstore is easier to realize my policy, ns3::ndn::ContentStore or nfd::cs::Cs ?And how to realize a cache replacement policy,Think you very much! 2016-12-22 gc199211 -------------- next part -------------- An HTML attachment was scrubbed... URL: From renpei.bupt at qq.com Thu Dec 22 18:18:14 2016 From: renpei.bupt at qq.com (=?gb18030?B?yM7F5g==?=) Date: Fri, 23 Dec 2016 10:18:14 +0800 Subject: [ndnSIM] app-delays-trace.txt Message-ID: Dear all, I use the "AppDelayTracer" in a scenario which topology same like load balancing in the given example, and then get a txt named app-delays-trace, there is one consumer and three producers, while DelaysUS is not the same number, who can explain difference between these number? why they are different? part of DelaysUS is show bellow: 98448 98448 98000 98448 98000 98448 98448 98448 98448 98448 98000 98448 98448 98000 98000 98448 ... 98480 98032 98480 98032 98480 98480 98480 there exist three numbers 98000 98032 and 98448 I'm really appreciate if anyone can help me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Dec 22 23:02:53 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 23 Dec 2016 09:02:53 +0200 Subject: [ndnSIM] ndn cache replace policy In-Reply-To: <585BEF23.8090601@mail.ustc.edu.cn> References: <585BEF23.8090601@mail.ustc.edu.cn> Message-ID: Hi, personally, I feel it would be easier for you to use the CS of NFD. You will have to create your own class that will derive from the Policy class of NFD. Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 22, 2016, at 5:20 PM, gc199211 wrote: > > > Hello : > I am trying to realize a cache replacement policy on ndnSIM .The new policy is based on lfu policy. According to the api document I found that > 1) The ns3::ndn::ContentStore has realized lfu policy , but the code is quite complex,including trie.hpp?tire-with-policy.hpp?lfu-policy.hpp and so on > 2) The nfd::cs::Cs hasn't realized lfu policy,but the code seems easier. > So which kind of contentstore is easier to realize my policy, ns3::ndn::ContentStore or nfd::cs::Cs ?And how to realize a cache replacement policy,Think you very much! > > 2016-12-22 > gc199211 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Dec 22 23:06:00 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 23 Dec 2016 09:06:00 +0200 Subject: [ndnSIM] app-delays-trace.txt In-Reply-To: References: Message-ID: Hi, I am not aware of the exact parameters of your simulation scenario, but most probably this has to do with either the simulation topology itself or the topology parameters (bandwidth, queue length at each node and delay). Another reason could be the rate that the consumers send their Interests. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 23, 2016, at 4:18 AM, ?? wrote: > > Dear all, > I use the "AppDelayTracer" in a scenario which topology same like load balancing in the given example, and then get a txt named app-delays-trace, there is one consumer and three producers, while DelaysUS is not the same number, who can explain difference between these number? why they are different? part of DelaysUS is show bellow: > 98448 > 98448 > 98000 > 98448 > 98000 > 98448 > 98448 > 98448 > 98448 > 98448 > 98000 > 98448 > 98448 > 98000 > 98000 > 98448 > ... > 98480 > 98032 > 98480 > 98032 > 98480 > 98480 > 98480 > there exist three numbers 98000 98032 and 98448 > I'm really appreciate if anyone can help me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbaugh at umich.edu Thu Dec 22 23:27:26 2016 From: jpbaugh at umich.edu (John Baugh) Date: Fri, 23 Dec 2016 02:27:26 -0500 Subject: [ndnSIM] ndn cache replace policy In-Reply-To: References: <585BEF23.8090601@mail.ustc.edu.cn> Message-ID: Greetings, By no means do I claim to be an expert in this simulator (yet!), but I have been taking and trying to organize notes about using it. Please see page 9 in the PDF on my Google Drive: *https://drive.google.com/open?id=0By9ufeKqmJYYTnZVYnBlNktvMHc * I hope to eventually more fully organize this document after adding a significant amount more, adding a table of contents, etc. But hopefully this helps some people even in its current, very unedited and minimal state. Thanks, John On Fri, Dec 23, 2016 at 2:23 AM, John Baugh wrote: > Greetings, > > By no means do I claim to be an expert in this simulator (yet!), but I > have been taking and trying to organize notes about using it. > > Please see page 9 in the attached PDF. I hope to eventually more fully > organize this document after adding a significant amount more, adding a > table of contents, etc. > > But hopefully this helps some people even in its current, very unedited > and minimal state. > > Thanks, > > John > > On Fri, Dec 23, 2016 at 2:02 AM, Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu> wrote: > >> Hi, >> >> personally, I feel it would be easier for you to use the CS of NFD. >> >> You will have to create your own class that will derive from the Policy >> class of NFD. >> >> Hope that this helps. >> >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> Computer Science Department >> UCLA >> >> >> On Dec 22, 2016, at 5:20 PM, gc199211 wrote: >> >> >> Hello : >> I am trying to realize a cache replacement policy on ndnSIM .The new >> policy is based on lfu policy. According to the api document I found that >> 1) The ns3::ndn::ContentStore has realized lfu policy , but the code is >> quite complex,including trie.hpp?tire-with-policy.hpp?lfu-policy.hpp and >> so on >> 2) The nfd::cs::Cs hasn't realized lfu policy,but the code seems easier. >> So which kind of contentstore is easier to realize my policy, >> ns3::ndn::ContentStore or nfd::cs::Cs ?And how to realize a cache >> replacement policy,Think you very much! >> >> 2016-12-22 >> ------------------------------ >> gc199211 >> >> >> >> _______________________________________________ >> 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 Dec 23 00:37:04 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 23 Dec 2016 10:37:04 +0200 Subject: [ndnSIM] ndn cache replace policy In-Reply-To: References: <585BEF23.8090601@mail.ustc.edu.cn> Message-ID: John, thanks for sharing that. Looks quite helpful. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 23, 2016, at 9:27 AM, John Baugh wrote: > > Greetings, > > By no means do I claim to be an expert in this simulator (yet!), but I have been taking and trying to organize notes about using it. > > Please see page 9 in the PDF on my Google Drive: > > https://drive.google.com/open?id=0By9ufeKqmJYYTnZVYnBlNktvMHc > > I hope to eventually more fully organize this document after adding a significant amount more, adding a table of contents, etc. > > But hopefully this helps some people even in its current, very unedited and minimal state. > > Thanks, > > John > > > > On Fri, Dec 23, 2016 at 2:23 AM, John Baugh > wrote: > Greetings, > > By no means do I claim to be an expert in this simulator (yet!), but I have been taking and trying to organize notes about using it. > > Please see page 9 in the attached PDF. I hope to eventually more fully organize this document after adding a significant amount more, adding a table of contents, etc. > > But hopefully this helps some people even in its current, very unedited and minimal state. > > Thanks, > > John > > On Fri, Dec 23, 2016 at 2:02 AM, Spyridon (Spyros) Mastorakis > wrote: > Hi, > > personally, I feel it would be easier for you to use the CS of NFD. > > You will have to create your own class that will derive from the Policy class of NFD. > > Hope that this helps. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > >> On Dec 22, 2016, at 5:20 PM, gc199211 > wrote: >> >> >> Hello : >> I am trying to realize a cache replacement policy on ndnSIM .The new policy is based on lfu policy. According to the api document I found that >> 1) The ns3::ndn::ContentStore has realized lfu policy , but the code is quite complex,including trie.hpp?tire-with-policy.hpp?lfu-policy.hpp and so on >> 2) The nfd::cs::Cs hasn't realized lfu policy,but the code seems easier. >> So which kind of contentstore is easier to realize my policy, ns3::ndn::ContentStore or nfd::cs::Cs ?And how to realize a cache replacement policy,Think you very much! >> >> 2016-12-22 >> gc199211 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neogeoss at ajou.ac.kr Fri Dec 23 01:07:04 2016 From: neogeoss at ajou.ac.kr (=?UTF-8?B?7Zmp7J247LCs?=) Date: Fri, 23 Dec 2016 18:07:04 +0900 Subject: [ndnSIM] Simulation of wired and wireless network. Message-ID: Dear NDN researchers, I have tried to simulate the hybrid network of wired and wireless ones. But first of all, I have found a very strange bug with ndnSIM 2.1. In the example, I uploaded. https://github.com/NDNUtils/NDNSIM/blob/master/src/ndnSIM/examples/ndniotWireless10Pros4Cons2min.cpp#L275 https://github.com/NDNUtils/NDNSIM/blob/master/src/ndnSIM/examples/ndniotWireless10Pros4Cons2min.cpp#L304 Over there, WiFi scenario works only when I install 2 wifi net device containers. If I install only one netdevice container. Wireless communication never happen. With the strange example code I have made, it works fine. However, it is a very weird operation. If any of you know why this happens, I am glad to hear some explanations. In this manner, I was installing both p2p wire and wifi stacks on a single node to mimic a gateway. The code is https://github.com/NDNUtils/NDNSIM/blob/master/src/ndnSIM/examples/ndniotWireWIFI3Pros1Con.cpp#L299-L304 However, as soon as I put wifi stack after I add p2p. Simulation goes silent, it does not give any error messages but never work. My questions are below. Is it appropriate to mimic a gateway like this? Is it possible to put p2p and wifi stack over a single node over ndnSIM? Best wishes, inchan Hwang -------------- next part -------------- An HTML attachment was scrubbed... URL: From renpei.bupt at qq.com Fri Dec 23 01:41:15 2016 From: renpei.bupt at qq.com (=?gb18030?B?yM7F5g==?=) Date: Fri, 23 Dec 2016 17:41:15 +0800 Subject: [ndnSIM] =?gb18030?b?u9i4tKO6ICBhcHAtZGVsYXlzLXRyYWNlLnR4dA==?= In-Reply-To: References: Message-ID: thanks for your reply, maybe i do not explain my simulation scenario, as you can see bellow: producer1 / / consumer--------node1-----------producer2 \ \ \ producer3 node1 send interests to producer1 or 2 or 3 randomly, consumer send interest only one per second, node1 to three producers has same parameters, for consumer, i think it's delay time should be same for every request, but it sames not as what i expected, do you know the reason? By the way, any one who konw how can i control the capability of a producer? ------------------ ???? ------------------ ???: "Spyridon (Spyros) Mastorakis";; ????: 2016?12?23?(???) ??3:06 ???: "??"; ??: "ndnsim"; ??: Re: [ndnSIM] app-delays-trace.txt Hi, I am not aware of the exact parameters of your simulation scenario, but most probably this has to do with either the simulation topology itself or the topology parameters (bandwidth, queue length at each node and delay). Another reason could be the rate that the consumers send their Interests. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA On Dec 23, 2016, at 4:18 AM, ?? wrote: Dear all, I use the "AppDelayTracer" in a scenario which topology same like load balancing in the given example, and then get a txt named app-delays-trace, there is one consumer and three producers, while DelaysUS is not the same number, who can explain difference between these number? why they are different? part of DelaysUS is show bellow: 98448 98448 98000 98448 98000 98448 98448 98448 98448 98448 98000 98448 98448 98000 98000 98448 ... 98480 98032 98480 98032 98480 98480 98480 there exist three numbers 98000 98032 and 98448 I'm really appreciate if anyone can help me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Fri Dec 23 03:16:18 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Fri, 23 Dec 2016 13:16:18 +0200 Subject: [ndnSIM] Simulation of wired and wireless network. In-Reply-To: References: Message-ID: <2F7881AF-9D8C-42AF-9379-CB02F1741333@cs.ucla.edu> Hi, > On Dec 23, 2016, at 11:07 AM, ??? wrote: > > Dear NDN researchers, > > I have tried to simulate the hybrid network of wired and wireless ones. > > But first of all, I have found a very strange bug with ndnSIM 2.1. I do not see that being a bug of ndnSIM. Most probably, it has to do with the simulation parameters and specifically with the parameters of the selected NS3 wifi model, the model of the propagation losses or/and the selected mobility pattern. You can check the NS3 documentation for more details. > However, as soon as I put wifi stack after I add p2p. Simulation goes silent, it does not give any error messages but never work. > > My questions are below. > Is it appropriate to mimic a gateway like this? Yes, that should be possible. > Is it possible to put p2p and wifi stack over a single node over ndnSIM? Yes, that should be possible too as long as you tune the parameters of each model in the right way. Unfortunately, I am not aware of the specifics of the NS3 wifi and mobility models. I would suggest you send an email to the NS3 mailing list. Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepehrabdous1375 at gmail.com Fri Dec 23 14:48:15 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Sat, 24 Dec 2016 02:18:15 +0330 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: I deleted the folder using: sudo rm -r /usr/include/boost and then again used the following command in boost folder: sudo ./b2 --prefix=/usr/local install then again I tried ./waf configure and then ./waf but again I got the following error: [2430/2504] Linking build/bindings/python/ns/mesh.so ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status On Sun, Dec 18, 2016 at 10:27 AM, Alex Afanasyev wrote: > If you installed boost libraries from source, then you have to make sure > you don't have boost development packages installed (in particular, you > should not have /usr/include/boost folder). Otherwise, there will > interfere and you will not be able to compile. > > -- > Alex > > On Dec 14, 2016, at 12:19 AM, sepehr abdous > wrote: > > yes I did as it was mentioned in the stated link, I followed its steps and > upgraded the boost libraries. > what should I do to make it ok? > > On Tue, Dec 13, 2016 at 4:47 AM, Alex Afanasyev wrote: > >> Have you recently upgraded the installed version of boost libraries? The >> error suggest a mismatch between headers and binaries of the boost >> libraries. >> >> -- >> Alex >> >> > On Dec 12, 2016, at 3:53 PM, sepehr abdous >> wrote: >> > >> > Hello all, >> > I'm trying to install the latest version of ndnSIM using the following >> link: >> > https://ndnsim.net/2.3/getting-started.html >> > I did every step but when I tried : >> > ./waf >> > I encountered an error: >> > >> > ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::construct_init(boost::basic_regex> boost::regex_traits > > const&, >> boost::regex_constants::_match_flags)' >> > ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::match()' >> > collect2: error: ld returned 1 exit status >> > >> > >> > any idea how to handle it? >> > thank you >> >> > > > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 > School of computer engineering > Sharif University of Technology > Tehran, Iran > > > -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Fri Dec 23 15:30:21 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 23 Dec 2016 15:30:21 -0800 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: <93EDEC17-C5D3-499C-B279-2321F68190B3@cs.ucla.edu> > On Dec 23, 2016, at 2:48 PM, sepehr abdous wrote: > > I deleted the folder using: > sudo rm -r /usr/include/boost > and then again used the following command in boost folder: > sudo ./b2 --prefix=/usr/local install > > then again I tried ./waf configure and then ./waf Have you run `./waf clean` (or `./waf distclean`) prior to that? Otherwise, the build system may not have properly recompiled the files. -- Alex > but again I got the following error: > > [2430/2504] Linking build/bindings/python/ns/mesh.so > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > > > > On Sun, Dec 18, 2016 at 10:27 AM, Alex Afanasyev > wrote: > If you installed boost libraries from source, then you have to make sure you don't have boost development packages installed (in particular, you should not have /usr/include/boost folder). Otherwise, there will interfere and you will not be able to compile. > > -- > Alex > >> On Dec 14, 2016, at 12:19 AM, sepehr abdous > wrote: >> >> yes I did as it was mentioned in the stated link, I followed its steps and upgraded the boost libraries. >> what should I do to make it ok? >> >> On Tue, Dec 13, 2016 at 4:47 AM, Alex Afanasyev > wrote: >> Have you recently upgraded the installed version of boost libraries? The error suggest a mismatch between headers and binaries of the boost libraries. >> >> -- >> Alex >> >> > On Dec 12, 2016, at 3:53 PM, sepehr abdous > wrote: >> > >> > Hello all, >> > I'm trying to install the latest version of ndnSIM using the following link: >> > https://ndnsim.net/2.3/getting-started.html >> > I did every step but when I tried : >> > ./waf >> > I encountered an error: >> > >> > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' >> > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' >> > collect2: error: ld returned 1 exit status >> > >> > >> > any idea how to handle it? >> > thank you >> >> >> >> >> -- >> Sepehr Abdous >> Faculty: abdous at ce.sharif.edu >> Yahoo mail: sepehrabdous at yahoo.com >> Cellphone:+989194030591 >> School of computer engineering >> Sharif University of Technology >> Tehran, Iran > > > > > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 > School of computer engineering > Sharif University of Technology > Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepehrabdous1375 at gmail.com Sat Dec 24 00:35:41 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Sat, 24 Dec 2016 12:05:41 +0330 Subject: [ndnSIM] error In-Reply-To: <93EDEC17-C5D3-499C-B279-2321F68190B3@cs.ucla.edu> References: <93EDEC17-C5D3-499C-B279-2321F68190B3@cs.ucla.edu> Message-ID: I used the command ./waf clean and now the error isn't in 2430 but an error happened in 2468 [2468/2504] Linking build/bindings/python/ns/lr_wpan.so ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status On Sat, Dec 24, 2016 at 3:00 AM, Alex Afanasyev wrote: > > On Dec 23, 2016, at 2:48 PM, sepehr abdous > wrote: > > I deleted the folder using: > sudo rm -r /usr/include/boost > and then again used the following command in boost folder: > > sudo ./b2 --prefix=/usr/local install > > then again I tried ./waf configure and then ./waf > > > Have you run `./waf clean` (or `./waf distclean`) prior to that? > Otherwise, the build system may not have properly recompiled the files. > > -- > Alex > > but again I got the following error: > > [2430/2504] Linking build/bindings/python/ns/mesh.so > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > > > > On Sun, Dec 18, 2016 at 10:27 AM, Alex Afanasyev wrote: > >> If you installed boost libraries from source, then you have to make sure >> you don't have boost development packages installed (in particular, you >> should not have /usr/include/boost folder). Otherwise, there will >> interfere and you will not be able to compile. >> >> -- >> Alex >> >> On Dec 14, 2016, at 12:19 AM, sepehr abdous >> wrote: >> >> yes I did as it was mentioned in the stated link, I followed its steps >> and upgraded the boost libraries. >> what should I do to make it ok? >> >> On Tue, Dec 13, 2016 at 4:47 AM, Alex Afanasyev wrote: >> >>> Have you recently upgraded the installed version of boost libraries? >>> The error suggest a mismatch between headers and binaries of the boost >>> libraries. >>> >>> -- >>> Alex >>> >>> > On Dec 12, 2016, at 3:53 PM, sepehr abdous >>> wrote: >>> > >>> > Hello all, >>> > I'm trying to install the latest version of ndnSIM using the following >>> link: >>> > https://ndnsim.net/2.3/getting-started.html >>> > I did every step but when I tried : >>> > ./waf >>> > I encountered an error: >>> > >>> > ./libns3-dev-ndnSIM-debug.so: undefined reference to >>> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator>> const*, std::__cxx11::basic_string, >>> std::allocator > >, std::allocator>> h<__gnu_cxx::__normal_iterator>> std::__cxx11::basic_string, >>> std::allocator > > > >, boost::regex_traits>> boost::cpp_regex_traits > >::construct_init(boost::basic_regex>> boost::regex_traits > > const&, >>> boost::regex_constants::_match_flags)' >>> > ./libns3-dev-ndnSIM-debug.so: undefined reference to >>> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator>> const*, std::__cxx11::basic_string, >>> std::allocator > >, std::allocator>> h<__gnu_cxx::__normal_iterator>> std::__cxx11::basic_string, >>> std::allocator > > > >, boost::regex_traits>> boost::cpp_regex_traits > >::match()' >>> > collect2: error: ld returned 1 exit status >>> > >>> > >>> > any idea how to handle it? >>> > thank you >>> >>> >> >> >> -- >> Sepehr Abdous >> Faculty: abdous at ce.sharif.edu >> Yahoo mail: sepehrabdous at yahoo.com >> Cellphone:+989194030591 >> School of computer engineering >> Sharif University of Technology >> Tehran, Iran >> >> >> > > > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 > School of computer engineering > Sharif University of Technology > Tehran, Iran > > > -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sat Dec 24 18:07:31 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sat, 24 Dec 2016 19:07:31 -0700 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: Hi Sepehr I guess #include finds Boost 1.62, but linker is trying to link to a different version of Boost .so libraries. Don't ever manually delete any file in /usr. Uninstall the relevant packages instead. Also, I always recommend to start with a clean VM, and only install Boost from Ubuntu packages. This avoids most problems. Yours, Junxiao On Fri, Dec 23, 2016 at 3:48 PM, sepehr abdous wrote: > I deleted the folder using: > sudo rm -r /usr/include/boost > and then again used the following command in boost folder: > > sudo ./b2 --prefix=/usr/local install > > then again I tried ./waf configure and then ./waf > > but again I got the following error: > > [2430/2504] Linking build/bindings/python/ns/mesh.so > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From renpei.bupt at qq.com Sat Dec 24 18:56:34 2016 From: renpei.bupt at qq.com (=?gb18030?B?yM7F5g==?=) Date: Sun, 25 Dec 2016 10:56:34 +0800 Subject: [ndnSIM] paramater of ndn-producer In-Reply-To: References: Message-ID: Hi ndn friends, Merry Christmas! I'm a little confused of how can i set the capability of producer in ndnSIM? I means the producer in reality it's capability is limited, if there is too much interest coming, the producer will break down, whether can i set the number of this limit? Another thing is if i can let network situation has a obvious fluctuations and different interests will be send to different producer(assume there hava at least 2 producers), interests' delivery rely on network situation rather than hopcount or random strategy? Thanks to all! Ren Pei -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sun Dec 25 01:36:21 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sun, 25 Dec 2016 11:36:21 +0200 Subject: [ndnSIM] paramater of ndn-producer In-Reply-To: References: Message-ID: Hi, this is a feature that you will have to implement by yourself (it is not offered automatically by ndnSIM). Specifically, you will have to implement this feature as a part of the producer application: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/apps/ndn-producer.cpp https://github.com/named-data-ndnSIM/ndnSIM/blob/master/apps/ndn-producer.hpp Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 25, 2016, at 4:56 AM, ?? wrote: > > Hi ndn friends, > Merry Christmas! > I'm a little confused of how can i set the capability of producer in ndnSIM? I means the producer in reality it's capability is limited, if there is too much interest coming, the producer will break down, whether can i set the number of this limit? > Another thing is if i can let network situation has a obvious fluctuations and different interests will be send to different producer(assume there hava at least 2 producers), interests' delivery rely on network situation rather than hopcount or random strategy? > Thanks to all! > Ren Pei -------------- next part -------------- An HTML attachment was scrubbed... URL: From gc199211 at mail.ustc.edu.cn Sun Dec 25 05:27:52 2016 From: gc199211 at mail.ustc.edu.cn (gc199211) Date: Sun, 25 Dec 2016 21:27:52 +0800 Subject: [ndnSIM] ndn cache replace policy In-Reply-To: References: <585BEF23.8090601@mail.ustc.edu.cn> Message-ID: <585FC957.9000700@mail.ustc.edu.cn> Hi Spyros and John,Thank you for your sharing and suggestion .It is quite helpful for me,as I have spent much time to study ns3::ndn::ContentStore . If I want to refresh all the CS table every 1 second, Can you give me some advice ? It seems that the NDNSim api document has no related content. Should I study the NS-3 source code.Thank you very much! Merry Christmas 2016-12-25 gc199211 ????John Baugh ?????2016-12-23 15:23 ???Re: [ndnSIM] ndn cache replace policy ????"Spyridon (Spyros) Mastorakis" ???"gc199211","ndnsim" Greetings, By no means do I claim to be an expert in this simulator (yet!), but I have been taking and trying to organize notes about using it. Please see page 9 in the attached PDF. I hope to eventually more fully organize this document after adding a significant amount more, adding a table of contents, etc. But hopefully this helps some people even in its current, very unedited and minimal state. Thanks, John On Fri, Dec 23, 2016 at 2:02 AM, Spyridon (Spyros) Mastorakis wrote: Hi, personally, I feel it would be easier for you to use the CS of NFD. You will have to create your own class that will derive from the Policy class of NFD. Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA On Dec 22, 2016, at 5:20 PM, gc199211 wrote: Hello : I am trying to realize a cache replacement policy on ndnSIM .The new policy is based on lfu policy. According to the api document I found that 1) The ns3::ndn::ContentStore has realized lfu policy , but the code is quite complex,including trie.hpp?tire-with-policy.hpp?lfu-policy.hpp and so on 2) The nfd::cs::Cs hasn't realized lfu policy,but the code seems easier. So which kind of contentstore is easier to realize my policy, ns3::ndn::ContentStore or nfd::cs::Cs ?And how to realize a cache replacement policy,Think you very much! 2016-12-22 gc199211 _______________________________________________ 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 sepehrabdous1375 at gmail.com Sun Dec 25 11:51:05 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Sun, 25 Dec 2016 23:21:05 +0330 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: Thank you very much On Sun, Dec 25, 2016 at 5:37 AM, Junxiao Shi wrote: > Hi Sepehr > > I guess #include finds Boost 1.62, but linker is trying to link to a > different version of Boost .so libraries. > Don't ever manually delete any file in /usr. Uninstall the relevant > packages instead. > > Also, I always recommend to start with a clean VM, and only install Boost > from Ubuntu packages. This avoids most problems. > > Yours, Junxiao > > On Fri, Dec 23, 2016 at 3:48 PM, sepehr abdous > wrote: > >> I deleted the folder using: >> sudo rm -r /usr/include/boost >> and then again used the following command in boost folder: >> >> sudo ./b2 --prefix=/usr/local install >> >> then again I tried ./waf configure and then ./waf >> >> but again I got the following error: >> >> [2430/2504] Linking build/bindings/python/ns/mesh.so >> ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' >> >> -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepehrabdous1375 at gmail.com Sun Dec 25 13:40:00 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Mon, 26 Dec 2016 01:10:00 +0330 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: as you suggested I started with a clean VM and I go over the steps again completely and then I got this error. how can I handle it? [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status On Sun, Dec 25, 2016 at 5:37 AM, Junxiao Shi wrote: > Hi Sepehr > > I guess #include finds Boost 1.62, but linker is trying to link to a > different version of Boost .so libraries. > Don't ever manually delete any file in /usr. Uninstall the relevant > packages instead. > > Also, I always recommend to start with a clean VM, and only install Boost > from Ubuntu packages. This avoids most problems. > > Yours, Junxiao > > On Fri, Dec 23, 2016 at 3:48 PM, sepehr abdous > wrote: > >> I deleted the folder using: >> sudo rm -r /usr/include/boost >> and then again used the following command in boost folder: >> >> sudo ./b2 --prefix=/usr/local install >> >> then again I tried ./waf configure and then ./waf >> >> but again I got the following error: >> >> [2430/2504] Linking build/bindings/python/ns/mesh.so >> ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' >> >> -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sun Dec 25 14:03:25 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sun, 25 Dec 2016 15:03:25 -0700 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: Hi Sepehr To ensure others can reproduce your issue, can you start with a standard template vagrant init ubuntu/trusty64 vagrant up vagrant ssh and then post every command you have executed within the VM up to where you get the error? Yours, Junxiao On Sun, Dec 25, 2016 at 2:40 PM, sepehr abdous wrote: > as you suggested I started with a clean VM and I go over the steps again > completely and then I got this error. how can I handle it? > [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > > >::construct_init(boost::basic_regex boost::cpp_regex_traits > > const&, boost::regex_constants::_match > _flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > > >::construct_init(boost::basic_regex boost::cpp_regex_traits > > const&, boost::regex_constants::_match > _flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to > `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator const*, std::__cxx11::basic_string, > std::allocator > >, std::allocator h<__gnu_cxx::__normal_iterator std::char_traits, std::allocator > > > >, > boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chengbcao at gmail.com Sun Dec 25 18:14:33 2016 From: chengbcao at gmail.com (Chengb Cao) Date: Mon, 26 Dec 2016 10:14:33 +0800 Subject: [ndnSIM] how to realize fragment and reassemble ?different link mtu? Message-ID: hi everyone, my simulation scenario have different link mtu, but i don't known how to set it and enable fragment /reassemble? current ndn-app.cpp use NullTransport but how to initialize ethernet transport or datagram-transport ? any help would be appreciated. thanks chengbao -------------- next part -------------- An HTML attachment was scrubbed... URL: From philoliang at email.arizona.edu Mon Dec 26 22:00:54 2016 From: philoliang at email.arizona.edu (Teng Liang) Date: Mon, 26 Dec 2016 23:00:54 -0700 Subject: [ndnSIM] attach arbitrary information to Interest/Data packet Message-ID: Hi everybody, Are there any easy approaches to attaching arbitrary information to Interest/Data packet, so that forwarding strategy can read? As the information may change hop-by-hop, it is improper to be put in Name. One possible solution is customized tag. How much effort to create one? Thanks, Teng -------------- next part -------------- An HTML attachment was scrubbed... URL: From gc199211 at mail.ustc.edu.cn Tue Dec 27 06:21:43 2016 From: gc199211 at mail.ustc.edu.cn (gc199211) Date: Tue, 27 Dec 2016 22:21:43 +0800 Subject: [ndnSIM] lfu cache replacement policy Message-ID: <586278F5.1060406@mail.ustc.edu.cn> Hello : I am trying to realize a lfu replacement policy on ndnSIM2.0. Although ndnSIM 1.0 have realized lfu, but I want to use nfd::cs::Policy to realize lfu cache replacement policy to do further research.Can you give me some advice ,Think you very much! Chen Guo 2016-12-27 gc199211 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alubadyraaid at gmail.com Tue Dec 27 10:03:53 2016 From: alubadyraaid at gmail.com (raaid alubady) Date: Wed, 28 Dec 2016 02:03:53 +0800 Subject: [ndnSIM] Interest packet size Message-ID: Hello everyone in this amazing and helpful group, I have these questions: First, what is the default size of Interest packet? Second, how can Increase and decrease the Interest packet size? Third, the instructing here: ndnHelper.SetPit ("ns3::ndn::pit::Persistent::AggregateStats", "MaxSize", "10000"); What is mean "10000"? Fourth, Fourth, can we use both two instructing in one scenario as follows: consumerHelper.SetAttribute ("Frequency", StringValue("10000")); consumerHelper.SetAttribute ("Randomize", StringValue ("uniform")); What are effecting on the scenario ? Kind regards. Raaid ********************************************************** *Raaid Alubady*Doctoral Researcher InterNetWorks Research Lab, School of Computing, Universiti Utara Malaysia 06010 UUM Sintok, Kedah, M A L A Y S I A HP: +60129636379 , +601128408117 Emails: raaid.n.alubady at uobabylon.edu.iq *raaid.alubady at internetworks.my* *alubady.r.n at ieee.my* -------------- next part -------------- An HTML attachment was scrubbed... URL: From fatemeh.university at gmail.com Tue Dec 27 11:15:07 2016 From: fatemeh.university at gmail.com (Fatemeh Goudarzi) Date: Tue, 27 Dec 2016 22:45:07 +0330 Subject: [ndnSIM] Add a tag to packet Message-ID: Hi, I want to access the packet in the cache policy (for example random-policy.hpp ) for adding a tag to it. I create a new tag to record node-Id and If the node cache the content, it will add this tag to the content packet. In the *insert()* method, I have the following code: "Ptr pkt = item->payload()->GetPacket ();" to access packet and then "pkt->AddPacketTag (tag_id); " but I get this error: *error: ?class ns3::ndn::cs::EntryImpl >? has no member named ?GetPacket?* I also try the following code: auto data = item->payload()->GetData(); auto dataTag = data-> getTag (); bool hasTag = dataTag->getPacket()->PeekPacketTag(tag); and also get this error: * error: expected primary-expression before ?>? token auto dataTag = data-> getTag ();* could you give me some hint? Regards, Fatemeh -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue Dec 27 11:16:38 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 27 Dec 2016 21:16:38 +0200 Subject: [ndnSIM] attach arbitrary information to Interest/Data packet In-Reply-To: References: Message-ID: <362F2BBB-2924-4684-B3D4-1889DC56C447@cs.ucla.edu> Hi Teng, a solution is to add the information as an NDNLPv2 tag. You can take a look at the following commits, where I have done the same thing for the HopCount tag for the latest ndnSIM release: https://github.com/named-data-ndnSIM/ndnSIM/commit/73df9f587e1c16c4f67a0053fe29b68f523ff138 https://github.com/named-data-ndnSIM/ndn-cxx/commit/e53204419c51356dab70e0e5450ff5dcf587827a https://github.com/named-data-ndnSIM/NFD/commit/d0abae38024a6aecf6f956f4bbea36f4a9ff6d6f Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 27, 2016, at 8:00 AM, Teng Liang wrote: > > Hi everybody, > > Are there any easy approaches to attaching arbitrary information to Interest/Data packet, so that forwarding strategy can read? > > As the information may change hop-by-hop, it is improper to be put in Name. One possible solution is customized tag. How much effort to create one? > > Thanks, > Teng > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue Dec 27 11:22:07 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 27 Dec 2016 21:22:07 +0200 Subject: [ndnSIM] lfu cache replacement policy In-Reply-To: <586278F5.1060406@mail.ustc.edu.cn> References: <586278F5.1060406@mail.ustc.edu.cn> Message-ID: <00A5A89A-2B0D-4E8E-B5EA-5CEDB3A88C1D@cs.ucla.edu> Hi, the lfu replacement policy has not been implemented in the case of NFD. You will have to implement this policy on your own. You can take a look at the responses to your previous email: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003232.html http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-December/003234.html Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 27, 2016, at 4:21 PM, gc199211 wrote: > > > > Hello : > I am trying to realize a lfu replacement policy on ndnSIM2.0. Although ndnSIM 1.0 have realized lfu, but I want to use nfd::cs::Policy to realize lfu cache replacement policy to do further research.Can you give me some advice ,Think you very much! > Chen Guo > 2016-12-27 > gc199211 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue Dec 27 11:35:10 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 27 Dec 2016 21:35:10 +0200 Subject: [ndnSIM] how to realize fragment and reassemble ?different link mtu? In-Reply-To: References: Message-ID: <9D50C845-7A45-4EAD-936C-DD36311B6262@cs.ucla.edu> Hi, please take a look at the latest version of the NFD developer's guide, sections 2.3 (Link Service) and 2.5 (NDNLP): https://named-data.net/wp-content/uploads/2016/10/ndn-0021-7-nfd-developer-guide.pdf Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 26, 2016, at 4:14 AM, Chengb Cao wrote: > > hi everyone, > > my simulation scenario have different link mtu, but i don't known how to set it and enable fragment /reassemble? current ndn-app.cpp use NullTransport but how to initialize ethernet transport or datagram-transport ? > > any help would be appreciated. > thanks > > chengbao -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Dec 27 13:52:39 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 27 Dec 2016 13:52:39 -0800 Subject: [ndnSIM] Interest packet size In-Reply-To: References: Message-ID: <140C38EB-B285-4E5F-871F-A7E9FED73D9D@cs.ucla.edu> Hi Raaid, > On Dec 27, 2016, at 10:03 AM, raaid alubady wrote: > > Hello everyone in this amazing and helpful group, > > I have these questions: > > First, what is the default size of Interest packet? There is no such thing. The size of Interest is variable and depends on what name you use. > Second, how can Increase and decrease the Interest packet size? Use different name, e.g., put different amount or smaller/larger name components. > Third, the instructing here: > ndnHelper.SetPit ("ns3::ndn::pit::Persistent::AggregateStats", "MaxSize", "10000"); > > What is mean "10000"? You can check the logic in AggregateStats policy. If I remember correctly, it is the number of interests (not their size). > Fourth, can we use both two instructing in one scenario as follows: > > consumerHelper.SetAttribute ("Frequency", StringValue("10000")); > consumerHelper.SetAttribute ("Randomize", StringValue ("uniform")); > > What are effecting on the scenario ? You can use those, but I cannot tell what you're expecting in your scenario. Only you can tell what is expected from the scenario. -- Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue Dec 27 13:57:27 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 27 Dec 2016 13:57:27 -0800 Subject: [ndnSIM] Add a tag to packet In-Reply-To: References: Message-ID: > On Dec 27, 2016, at 11:15 AM, Fatemeh Goudarzi wrote: > > Hi, > > I want to access the packet in the cache policy (for example random-policy.hpp ) for adding a tag to it. I create a new tag to record node-Id and If the node cache the content, it will add this tag to the content packet. In the insert() method, I have the following code: "Ptr pkt = item->payload()->GetPacket ();" to access packet and then "pkt->AddPacketTag (tag_id); " but I get this error: > > error: ?class ns3::ndn::cs::EntryImpl >? has no member named ?GetPacket? Yes, there is not "GetPacket" method in the ns3::ndn::cs::EntryImpl or it's base class. > > I also try the following code: > > auto data = item->payload()->GetData(); > auto dataTag = data-> getTag (); > bool hasTag = dataTag->getPacket()->PeekPacketTag(tag); > > > and also get this error: > > error: expected primary-expression before ?>? token > auto dataTag = data-> getTag (); > could you give me some hint? For this one gcc is not too helpful with C++ syntactic sugar (clang actually gives a good suggestion), but it is easily fixable. You need to add "template" keyword: auto dataTag = data-> template getTag (); Should work afterwards. -- Alex From gc199211 at mail.ustc.edu.cn Tue Dec 27 20:36:44 2016 From: gc199211 at mail.ustc.edu.cn (gc199211) Date: Wed, 28 Dec 2016 12:36:44 +0800 Subject: [ndnSIM] ndn::StackHelper::setCsSizs() Message-ID: 5863415B.7070104@mail.ustc.edu.cn Hello: I have found a strange problem on use ndn::StackHelper::setCsSizs(), I want to use nfd::cs::Cs as my ContentStore?Here is my code , //begin //end The code is quite simple ,But It leads to a error The strangest thing is if I write the code in examples/ndn-simple,It has no problem,But if I write in any other example cpp,It leads to the error. Thank you! 2016-12-28 gc199211 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Clip(12-28-12-20-41).png Type: image/png Size: 17403 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Clip(12-28-12-30-21).png Type: image/png Size: 23464 bytes Desc: not available URL: From mastorakis at CS.UCLA.EDU Wed Dec 28 04:31:33 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Wed, 28 Dec 2016 14:31:33 +0200 Subject: [ndnSIM] ndn::StackHelper::setCsSizs() In-Reply-To: <5863415B.7070104@mail.ustc.edu.cn> References: <5863415B.7070104@mail.ustc.edu.cn> Message-ID: Hi, it is not clear to me why this happened. Could you please give us some more context? Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 28, 2016, at 6:36 AM, gc199211 wrote: > > Hello: > I have found a strange problem on use ndn::StackHelper::setCsSizs(), I want to use nfd::cs::Cs as my ContentStore?Here is my code , > //begin > > //end > > The code is quite simple ,But It leads to a error > > > The strangest thing is if I write the code in examples/ndn-simple,It has no problem,But if I write in any other example cpp,It leads to the error. Thank you! > > > > > > 2016-12-28 > gc199211 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu Dec 29 09:29:14 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 29 Dec 2016 19:29:14 +0200 Subject: [ndnSIM] ndn::StackHelper::setCsSizs() In-Reply-To: <5863DD0B.5020505@mail.ustc.edu.cn> References: <5863415B.7070104@mail.ustc.edu.cn> <5863DD0B.5020505@mail.ustc.edu.cn> Message-ID: <0F2BD003-FE42-4BC6-9877-42FD899377D2@cs.ucla.edu> Hi, please use the reply-all option, so that our email exchanges are visible to all the users in the mailing list. My understanding is that this error has to do with the fact that you tried to use the cs tracer in combination with the CS of NFD. However, the cs tracer works only in the case of the ?old? CS of ndnSIM. I will open a ticket on redmine and, hopefully, this feature will be added soon. Thanks for letting us know, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 28, 2016, at 5:41 PM, gc199211 wrote: > > > Hi ,I just simplely add two lines of code in the src/ndnSIM/examples/ndn-tree-cs-tracers.cpp,Here is the whole cpp,The read Line is where I have changed. > > #include "ns3/core-module.h" > #include "ns3/network-module.h" > #include "ns3/ndnSIM-module.h" > > namespace ns3 { > > /** > * This scenario simulates a tree topology (using topology reader module) > * > * /------\ /------\ /------\ /------\ > * |leaf-1| |leaf-2| |leaf-3| |leaf-4| > * \------/ \------/ \------/ \------/ > * ^ ^ ^ ^ > * | | | | > * \ / \ / > * \ / \ / 10Mbps / 1ms > * \ / \ / > * | | | | > * v v v v > * /-------\ /-------\ > * | rtr-1 | | rtr-2 | > * \-------/ \-------/ > * ^ ^ > * | | > * \ / 10 Mpbs / 1ms > * +--------+ +--------+ > * | | > * v v > * /--------\ > * | root | > * \--------/ > * > * > * To run scenario and see what is happening, use the following command: > * > * ./waf --run=ndn-tree-cs-tracers > */ > > int > main(int argc, char* argv[]) > { > CommandLine cmd; > cmd.Parse(argc, argv); > > AnnotatedTopologyReader topologyReader("", 1); > topologyReader.SetFileName("src/ndnSIM/examples/topologies/topo-tree-myself.txt"); > topologyReader.Read(); > > // Install NDN stack on all nodes > ndn::StackHelper ndnHelper; > //ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru","MaxSize","100"); > ndnHelper.setCsSize(100); > ndnHelper.setPolicy("nfd::cs::lru"); > ndnHelper.InstallAll(); > // Choosing forwarding strategy > ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/best-route"); > > // Installing global routing interface on all nodes > ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; > ndnGlobalRoutingHelper.InstallAll(); > > // Getting containers for the consumer/producer > Ptr consumers[4] = {Names::Find("leaf-1"), Names::Find("leaf-2"), > Names::Find("leaf-3"), Names::Find("leaf-4")}; > Ptr producer = Names::Find("root"); > > for (int i = 0; i < 4; i++) { > ndn::AppHelper consumerHelper("ns3::ndn::ConsumerZipfMandelbrot"); > consumerHelper.SetAttribute("Frequency", StringValue("100")); // 100 interests a second > > // Each consumer will express the same data /root/ > consumerHelper.SetPrefix("/root"); > ApplicationContainer app = consumerHelper.Install(consumers[i]); > app.Start(Seconds(0.01 * i)); > } > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetAttribute("PayloadSize", StringValue("1024")); > > // Register /root prefix with global routing controller and > // install producer that will satisfy Interests in /root namespace > ndnGlobalRoutingHelper.AddOrigins("/root", producer); > producerHelper.SetPrefix("/root"); > producerHelper.Install(producer); > > // Calculate and install FIBs > ndn::GlobalRoutingHelper::CalculateRoutes(); > > Simulator::Stop(Seconds(20.0)); > > ndn::CsTracer::InstallAll("tree-cs-trace.txt", Seconds(1)); > ndn::L3RateTracer::InstallAll("rate-tracer-as-cs-tracer",Seconds(1)); > ndn::AppDelayTracer::InstallAll("app-delays-trace.txt"); > > Simulator::Run(); > Simulator::Destroy(); > > return 0; > } > > } // namespace ns3 > > int > main(int argc, char* argv[]) > { > return ns3::main(argc, argv); > } > > It leads to the error,Thank you > 2016-12-28 > gc199211 > ????"Spyridon (Spyros) Mastorakis" > ?????2016-12-28 20:31 > ???Re: [ndnSIM] ndn::StackHelper::setCsSizs() > ????"gc199211" > ???"ndnsim" > > Hi, > > it is not clear to me why this happened. Could you please give us some more context? > > Thanks, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > >> On Dec 28, 2016, at 6:36 AM, gc199211 > wrote: >> >> Hello: >> I have found a strange problem on use ndn::StackHelper::setCsSizs(), I want to use nfd::cs::Cs as my ContentStore?Here is my code , >> //begin >> >> //end >> >> The code is quite simple ,But It leads to a error >> >> >> The strangest thing is if I write the code in examples/ndn-simple,It has no problem,But if I write in any other example cpp,It leads to the error. Thank you! >> >> >> >> >> >> 2016-12-28 >> gc199211 > > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 14674 (20161227) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepehrabdous1375 at gmail.com Thu Dec 29 16:06:31 2016 From: sepehrabdous1375 at gmail.com (sepehr abdous) Date: Fri, 30 Dec 2016 03:36:31 +0330 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: sorry because my VMWare is installed on windows I couldn't use the following commands: vagrant init ubuntu/trusty64 vagrant up vagrant ssh but about the steps I followed in installing is as bellow: 1) sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev libboost-all-dev libssl-dev git python-setuptools 2) wget http://downloads.sourceforge.net/project/boost/boost/1.62.0/boost_1_62_0.tar.bz2 tar jxf boost_1_62_0.tar.bz2 cd boost_1_62_0 ./bootstrap.sh sudo ./b2 --prefix=/usr/local install 3) sudo apt-get install python-dev python-pygraphviz python-kiwi python-pygoocanvas python-gnome2 python-rsvg ipython 4) mkdir ndnSIMcd ndnSIM git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3 git clone https://github.com/named-data-ndnSIM/pybindgen.git pybindgen git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM 5) cd ./waf configure --enable-examples ./waf and while using command ./waf I got the following error: [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_ match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_ match_flags)' ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' collect2: error: ld returned 1 exit status On Mon, Dec 26, 2016 at 1:33 AM, Junxiao Shi wrote: > Hi Sepehr > > To ensure others can reproduce your issue, can you start with a standard > template > vagrant init ubuntu/trusty64 > vagrant up > vagrant ssh > and then post every command you have executed within the VM up to where > you get the error? > > Yours, Junxiao > > On Sun, Dec 25, 2016 at 2:40 PM, sepehr abdous > wrote: > >> as you suggested I started with a clean VM and I go over the steps again >> completely and then I got this error. how can I handle it? >> [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so >> ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::construct_init(boost::basic_regex> boost::regex_traits > > const&, >> boost::regex_constants::_match_flags)' >> ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::match()' >> collect2: error: ld returned 1 exit status >> >> ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::construct_init(boost::basic_regex> boost::regex_traits > > const&, >> boost::regex_constants::_match_flags)' >> ./libns3-dev-ndnSIM-debug.so: undefined reference to >> `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator> const*, std::__cxx11::basic_string, >> std::allocator > >, std::allocator> h<__gnu_cxx::__normal_iterator> std::__cxx11::basic_string, >> std::allocator > > > >, boost::regex_traits> boost::cpp_regex_traits > >::match()' >> collect2: error: ld returned 1 exit status >> >> >> -- Sepehr Abdous Faculty: abdous at ce.sharif.edu Yahoo mail: sepehrabdous at yahoo.com Cellphone:+989194030591 School of computer engineering Sharif University of Technology Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Thu Dec 29 16:53:53 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 29 Dec 2016 16:53:53 -0800 Subject: [ndnSIM] error In-Reply-To: References: Message-ID: <1984E68D-4F63-4610-91E3-735A881F4E27@cs.ucla.edu> If you're using Ubuntu 14.04, why would you install boost from source? Just create a new VM from scratch and install boost libraries using apt-get as described in the instructions. Also, vagrant can be easily installed on windows (https://www.vagrantup.com/downloads.html ) and can simplify creation of VMs. -- Alex > On Dec 29, 2016, at 4:06 PM, sepehr abdous wrote: > > sorry because my VMWare is installed on windows I couldn't use the following commands: > vagrant init ubuntu/trusty64 > vagrant up > vagrant ssh > but about the steps I followed in installing is as bellow: > > 1) sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev libboost-all-dev libssl-dev git python-setuptools > 2) wget http://downloads.sourceforge.net/project/boost/boost/1.62.0/boost_1_62_0.tar.bz2 > tar jxf boost_1_62_0.tar.bz2 > cd boost_1_62_0 > ./bootstrap.sh > sudo ./b2 --prefix=/usr/local install > 3) sudo apt-get install python-dev python-pygraphviz python-kiwi python-pygoocanvas python-gnome2 python-rsvg ipython > 4) mkdir ndnSIM > cd ndnSIM > git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3 > git clone https://github.com/named-data-ndnSIM/pybindgen.git pybindgen > git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM > 5) cd > ./waf configure --enable-examples > ./waf > > and while using command ./waf I got the following error: > > [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so > > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > > On Mon, Dec 26, 2016 at 1:33 AM, Junxiao Shi > wrote: > Hi Sepehr > > To ensure others can reproduce your issue, can you start with a standard template > vagrant init ubuntu/trusty64 > vagrant up > vagrant ssh > and then post every command you have executed within the VM up to where you get the error? > > Yours, Junxiao > > On Sun, Dec 25, 2016 at 2:40 PM, sepehr abdous > wrote: > as you suggested I started with a clean VM and I go over the steps again completely and then I got this error. how can I handle it? > [2873/2942] Linking build/bindings/python/ns/virtual_net_device.so > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)' > ./libns3-dev-ndnSIM-debug.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator, std::allocator > > > >, boost::regex_traits > >::match()' > collect2: error: ld returned 1 exit status > > > > > > -- > Sepehr Abdous > Faculty: abdous at ce.sharif.edu > Yahoo mail: sepehrabdous at yahoo.com > Cellphone:+989194030591 > School of computer engineering > Sharif University of Technology > Tehran, Iran -------------- next part -------------- An HTML attachment was scrubbed... URL: From gc199211 at mail.ustc.edu.cn Thu Dec 29 19:07:48 2016 From: gc199211 at mail.ustc.edu.cn (gc199211) Date: Fri, 30 Dec 2016 11:07:48 +0800 Subject: [ndnSIM] ndn::StackHelper::setCsSizs() In-Reply-To: <0F2BD003-FE42-4BC6-9877-42FD899377D2@cs.ucla.edu> References: <5863415B.7070104@mail.ustc.edu.cn> <5863DD0B.5020505@mail.ustc.edu.cn> <0F2BD003-FE42-4BC6-9877-42FD899377D2@cs.ucla.edu> Message-ID: <5865CF83.9070001@mail.ustc.edu.cn> Thanks Is there any other tracers can calculate the hit ratio of NFD'CS, as the hit ratio is a necessary indicators in my experiment. 2016-12-30 gc199211 ????"Spyridon (Spyros) Mastorakis" ?????2016-12-30 01:29 ???Re: Re: [ndnSIM] ndn::StackHelper::setCsSizs() ????"gc199211" ???"ndnsim" Hi, please use the reply-all option, so that our email exchanges are visible to all the users in the mailing list. My understanding is that this error has to do with the fact that you tried to use the cs tracer in combination with the CS of NFD. However, the cs tracer works only in the case of the ?old? CS of ndnSIM. I will open a ticket on redmine and, hopefully, this feature will be added soon. Thanks for letting us know, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA On Dec 28, 2016, at 5:41 PM, gc199211 wrote: Hi ,I just simplely add two lines of code in the src/ndnSIM/examples/ndn-tree-cs-tracers.cpp,Here is the whole cpp,The read Line is where I have changed. #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/ndnSIM-module.h" namespace ns3 { /** * This scenario simulates a tree topology (using topology reader module) * * /------\ /------\ /------\ /------\ * |leaf-1| |leaf-2| |leaf-3| |leaf-4| * \------/ \------/ \------/ \------/ * ^ ^ ^ ^ * | | | | * \ / \ / * \ / \ / 10Mbps / 1ms * \ / \ / * | | | | * v v v v * /-------\ /-------\ * | rtr-1 | | rtr-2 | * \-------/ \-------/ * ^ ^ * | | * \ / 10 Mpbs / 1ms * +--------+ +--------+ * | | * v v * /--------\ * | root | * \--------/ * * * To run scenario and see what is happening, use the following command: * * ./waf --run=ndn-tree-cs-tracers */ int main(int argc, char* argv[]) { CommandLine cmd; cmd.Parse(argc, argv); AnnotatedTopologyReader topologyReader("", 1); topologyReader.SetFileName("src/ndnSIM/examples/topologies/topo-tree-myself.txt"); topologyReader.Read(); // Install NDN stack on all nodes ndn::StackHelper ndnHelper; //ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru","MaxSize","100"); ndnHelper.setCsSize(100); ndnHelper.setPolicy("nfd::cs::lru"); ndnHelper.InstallAll(); // Choosing forwarding strategy ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/best-route"); // Installing global routing interface on all nodes ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; ndnGlobalRoutingHelper.InstallAll(); // Getting containers for the consumer/producer Ptr consumers[4] = {Names::Find("leaf-1"), Names::Find("leaf-2"), Names::Find("leaf-3"), Names::Find("leaf-4")}; Ptr producer = Names::Find("root"); for (int i = 0; i < 4; i++) { ndn::AppHelper consumerHelper("ns3::ndn::ConsumerZipfMandelbrot"); consumerHelper.SetAttribute("Frequency", StringValue("100")); // 100 interests a second // Each consumer will express the same data /root/ consumerHelper.SetPrefix("/root"); ApplicationContainer app = consumerHelper.Install(consumers[i]); app.Start(Seconds(0.01 * i)); } ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetAttribute("PayloadSize", StringValue("1024")); // Register /root prefix with global routing controller and // install producer that will satisfy Interests in /root namespace ndnGlobalRoutingHelper.AddOrigins("/root", producer); producerHelper.SetPrefix("/root"); producerHelper.Install(producer); // Calculate and install FIBs ndn::GlobalRoutingHelper::CalculateRoutes(); Simulator::Stop(Seconds(20.0)); ndn::CsTracer::InstallAll("tree-cs-trace.txt", Seconds(1)); ndn::L3RateTracer::InstallAll("rate-tracer-as-cs-tracer",Seconds(1)); ndn::AppDelayTracer::InstallAll("app-delays-trace.txt"); Simulator::Run(); Simulator::Destroy(); return 0; } } // namespace ns3 int main(int argc, char* argv[]) { return ns3::main(argc, argv); } It leads to the error,Thank you 2016-12-28 gc199211 ????"Spyridon (Spyros) Mastorakis" ?????2016-12-28 20:31 ???Re: [ndnSIM] ndn::StackHelper::setCsSizs() ????"gc199211" ???"ndnsim" Hi, it is not clear to me why this happened. Could you please give us some more context? Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA On Dec 28, 2016, at 6:36 AM, gc199211 wrote: Hello: I have found a strange problem on use ndn::StackHelper::setCsSizs(), I want to use nfd::cs::Cs as my ContentStore?Here is my code , //begin //end The code is quite simple ,But It leads to a error The strangest thing is if I write the code in examples/ndn-simple,It has no problem,But if I write in any other example cpp,It leads to the error. Thank you! 2016-12-28 gc199211 __________ Information from ESET NOD32 Antivirus, version of virus signature database 14674 (20161227) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 14571 (20161208) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilyaslahmer93 at gmail.com Fri Dec 30 12:04:17 2016 From: ilyaslahmer93 at gmail.com (lahmer ilyas) Date: Fri, 30 Dec 2016 21:04:17 +0100 Subject: [ndnSIM] How to extend ndnSim to support adhoc ? Message-ID: I am trying to use adhoc mode with ndnSim but i came to discover that i can't use it because ndnSim doesn't forward an interest to the same interface he came from. So, How can i extend it so I can forward for the same interface in the interface is in adhoc mode. -------------- next part -------------- An HTML attachment was scrubbed... URL: From junior.dongo at lacl.fr Fri Dec 30 13:56:11 2016 From: junior.dongo at lacl.fr (Junior DONGO) Date: Fri, 30 Dec 2016 22:56:11 +0100 Subject: [ndnSIM] ndnSim crash In-Reply-To: References: Message-ID: <236e8834-4b38-4d42-1991-cb20da366c9f@lacl.fr> Hello, after a thousand of execution of a scenario which was working fine, I suddenly have the following error when trying to execute a scenario. Any idea? Thanks Junior Waf: Entering directory `/ndnSIM/ns-3/build' Waf: Leaving directory `/ndnSIM/ns-3/build' Build commands will be stored in build/compile_commands.json Traceback (most recent call last): File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point run_commands() File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 169, in run_commands ctx=run_command(cmd_name) File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 160, in run_command ctx.execute() File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 370, in execute return execute_method(self) File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Build.py", line 104, in execute self.execute_build() File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Build.py", line 118, in execute_build self.post_build() File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Build.py", line 273, in post_build m(self) File "waf-tools/clang_compilation_database.py", line 45, in write_compilation_database root = json.load(database_file) File "/usr/lib/python2.7/json/__init__.py", line 291, in load **kw) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Invalid control character at: line 6138 column 11 (char 1200128) -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sat Dec 31 01:13:33 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sat, 31 Dec 2016 11:13:33 +0200 Subject: [ndnSIM] ndnSim crash In-Reply-To: <236e8834-4b38-4d42-1991-cb20da366c9f@lacl.fr> References: <236e8834-4b38-4d42-1991-cb20da366c9f@lacl.fr> Message-ID: Hi, This error has to do with waf and not ndnSIM (assuming that you have not edited any wscripts). I would suggest you do the following: 1) Try to clean your current build by typing ./waf distclean and then configure and build again. 2) If 1 does not work, clone the ns3 and ndnSIM repos again and configure and build from scratch. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 30, 2016, at 11:56 PM, Junior DONGO wrote: > > Hello, > > after a thousand of execution of a scenario which was working fine, I suddenly have the following error when trying to execute a scenario. > Any idea? > Thanks > > Junior > > Waf: Entering directory `/ndnSIM/ns-3/build' > Waf: Leaving directory `/ndnSIM/ns-3/build' > Build commands will be stored in build/compile_commands.json > Traceback (most recent call last): > File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point > run_commands() > File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 169, in run_commands > ctx=run_command(cmd_name) > File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 160, in run_command > ctx.execute() > File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 370, in execute > return execute_method(self) > File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Build.py", line 104, in execute > self.execute_build() > File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Build.py", line 118, in execute_build > self.post_build() > File "/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Build.py", line 273, in post_build > m(self) > File "waf-tools/clang_compilation_database.py", line 45, in write_compilation_database > root = json.load(database_file) > File "/usr/lib/python2.7/json/__init__.py", line 291, in load > **kw) > File "/usr/lib/python2.7/json/__init__.py", line 339, in loads > return _default_decoder.decode(s) > File "/usr/lib/python2.7/json/decoder.py", line 364, in decode > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) > File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode > obj, end = self.scan_once(s, idx) > ValueError: Invalid control character at: line 6138 column 11 (char 1200128) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sat Dec 31 01:14:08 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sat, 31 Dec 2016 11:14:08 +0200 Subject: [ndnSIM] ndn::StackHelper::setCsSizs() In-Reply-To: <5865CF83.9070001@mail.ustc.edu.cn> References: <5863415B.7070104@mail.ustc.edu.cn> <5863DD0B.5020505@mail.ustc.edu.cn> <0F2BD003-FE42-4BC6-9877-42FD899377D2@cs.ucla.edu> <5865CF83.9070001@mail.ustc.edu.cn> Message-ID: Hi, I am afraid there is not such a tracer yet. Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 30, 2016, at 5:07 AM, gc199211 wrote: > > Thanks > Is there any other tracers can calculate the hit ratio of NFD'CS, as the hit ratio is a necessary indicators in my experiment. > 2016-12-30 > gc199211 > ????"Spyridon (Spyros) Mastorakis" > ?????2016-12-30 01:29 > ???Re: Re: [ndnSIM] ndn::StackHelper::setCsSizs() > ????"gc199211" > ???"ndnsim" > > Hi, > > please use the reply-all option, so that our email exchanges are visible to all the users in the mailing list. > > My understanding is that this error has to do with the fact that you tried to use the cs tracer in combination with the CS of NFD. However, the cs tracer works only in the case of the ?old? CS of ndnSIM. > > I will open a ticket on redmine and, hopefully, this feature will be added soon. > > Thanks for letting us know, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > >> On Dec 28, 2016, at 5:41 PM, gc199211 > wrote: >> >> >> Hi ,I just simplely add two lines of code in the src/ndnSIM/examples/ndn-tree-cs-tracers.cpp,Here is the whole cpp,The read Line is where I have changed. >> >> #include "ns3/core-module.h" >> #include "ns3/network-module.h" >> #include "ns3/ndnSIM-module.h" >> >> namespace ns3 { >> >> /** >> * This scenario simulates a tree topology (using topology reader module) >> * >> * /------\ /------\ /------\ /------\ >> * |leaf-1| |leaf-2| |leaf-3| |leaf-4| >> * \------/ \------/ \------/ \------/ >> * ^ ^ ^ ^ >> * | | | | >> * \ / \ / >> * \ / \ / 10Mbps / 1ms >> * \ / \ / >> * | | | | >> * v v v v >> * /-------\ /-------\ >> * | rtr-1 | | rtr-2 | >> * \-------/ \-------/ >> * ^ ^ >> * | | >> * \ / 10 Mpbs / 1ms >> * +--------+ +--------+ >> * | | >> * v v >> * /--------\ >> * | root | >> * \--------/ >> * >> * >> * To run scenario and see what is happening, use the following command: >> * >> * ./waf --run=ndn-tree-cs-tracers >> */ >> >> int >> main(int argc, char* argv[]) >> { >> CommandLine cmd; >> cmd.Parse(argc, argv); >> >> AnnotatedTopologyReader topologyReader("", 1); >> topologyReader.SetFileName("src/ndnSIM/examples/topologies/topo-tree-myself.txt"); >> topologyReader.Read(); >> >> // Install NDN stack on all nodes >> ndn::StackHelper ndnHelper; >> //ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru","MaxSize","100"); >> ndnHelper.setCsSize(100); >> ndnHelper.setPolicy("nfd::cs::lru"); >> ndnHelper.InstallAll(); >> // Choosing forwarding strategy >> ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/best-route"); >> >> // Installing global routing interface on all nodes >> ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; >> ndnGlobalRoutingHelper.InstallAll(); >> >> // Getting containers for the consumer/producer >> Ptr consumers[4] = {Names::Find("leaf-1"), Names::Find("leaf-2"), >> Names::Find("leaf-3"), Names::Find("leaf-4")}; >> Ptr producer = Names::Find("root"); >> >> for (int i = 0; i < 4; i++) { >> ndn::AppHelper consumerHelper("ns3::ndn::ConsumerZipfMandelbrot"); >> consumerHelper.SetAttribute("Frequency", StringValue("100")); // 100 interests a second >> >> // Each consumer will express the same data /root/ >> consumerHelper.SetPrefix("/root"); >> ApplicationContainer app = consumerHelper.Install(consumers[i]); >> app.Start(Seconds(0.01 * i)); >> } >> >> ndn::AppHelper producerHelper("ns3::ndn::Producer"); >> producerHelper.SetAttribute("PayloadSize", StringValue("1024")); >> >> // Register /root prefix with global routing controller and >> // install producer that will satisfy Interests in /root namespace >> ndnGlobalRoutingHelper.AddOrigins("/root", producer); >> producerHelper.SetPrefix("/root"); >> producerHelper.Install(producer); >> >> // Calculate and install FIBs >> ndn::GlobalRoutingHelper::CalculateRoutes(); >> >> Simulator::Stop(Seconds(20.0)); >> >> ndn::CsTracer::InstallAll("tree-cs-trace.txt", Seconds(1)); >> ndn::L3RateTracer::InstallAll("rate-tracer-as-cs-tracer",Seconds(1)); >> ndn::AppDelayTracer::InstallAll("app-delays-trace.txt"); >> >> Simulator::Run(); >> Simulator::Destroy(); >> >> return 0; >> } >> >> } // namespace ns3 >> >> int >> main(int argc, char* argv[]) >> { >> return ns3::main(argc, argv); >> } >> >> It leads to the error,Thank you >> 2016-12-28 >> gc199211 >> ????"Spyridon (Spyros) Mastorakis" > >> ?????2016-12-28 20:31 >> ???Re: [ndnSIM] ndn::StackHelper::setCsSizs() >> ????"gc199211"> >> ???"ndnsim"> >> >> Hi, >> >> it is not clear to me why this happened. Could you please give us some more context? >> >> Thanks, >> >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> Computer Science Department >> UCLA >> >>> On Dec 28, 2016, at 6:36 AM, gc199211 > wrote: >>> >>> Hello: >>> I have found a strange problem on use ndn::StackHelper::setCsSizs(), I want to use nfd::cs::Cs as my ContentStore?Here is my code , >>> //begin >>> >>> //end >>> >>> The code is quite simple ,But It leads to a error >>> >>> >>> The strangest thing is if I write the code in examples/ndn-simple,It has no problem,But if I write in any other example cpp,It leads to the error. Thank you! >>> >>> >>> >>> >>> >>> 2016-12-28 >>> gc199211 >> >> >> >> __________ Information from ESET NOD32 Antivirus, version of virus signature database 14674 (20161227) __________ >> >> The message was checked by ESET NOD32 Antivirus. >> >> http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 14571 (20161208) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Sat Dec 31 01:25:25 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Sat, 31 Dec 2016 11:25:25 +0200 Subject: [ndnSIM] How to extend ndnSim to support adhoc ? In-Reply-To: References: Message-ID: <21BA1BE0-2250-449F-883D-623EE4EDFFA4@cs.ucla.edu> Hi, I have not tried to do that with the latest version of NFD, but the solution might be something along the lines of: 1) you have to edit this method of the forwarder class: https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.cpp#L207 2) probably use a NextHopFaceIdTag indicating that the next-hop face is the incoming face 3) Potentially, modify the PIT lookup process, add the incoming face to the faceTable and add a next-hop with the incoming face to the created PIT entry. Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On Dec 30, 2016, at 10:04 PM, lahmer ilyas wrote: > > I am trying to use adhoc mode with ndnSim but i came to discover that i can't use it because ndnSim doesn't forward an interest to the same interface he came from. So, How can i extend it so I can forward for the same interface in the interface is in adhoc mode. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sat Dec 31 02:48:42 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sat, 31 Dec 2016 10:48:42 +0000 Subject: [ndnSIM] How to extend ndnSim to support adhoc ? In-Reply-To: References: Message-ID: Hi Iahmer I answered a similar question on nfd-dev. http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-December/002169.html Be sure to search all mailing list posts within a year before posting a new question. Yours, Junxiao On Fri, Dec 30, 2016 at 13:04 lahmer ilyas wrote: > I am trying to use adhoc mode with ndnSim but i came to discover that i > can't use it because ndnSim doesn't forward an interest to the same > interface he came from. So, How can i extend it so I can forward for the > same interface in the interface is in adhoc mode. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: