From aa at CS.UCLA.EDU Sun May 1 21:39:12 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 1 May 2016 21:39:12 -0700 Subject: [ndnSIM] Porting scenarios to ndnSIM 2.1 In-Reply-To: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2A2C@m-pdc.sbu.ac.ir> References: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2A20@m-pdc.sbu.ac.ir> <1FDB6284-9893-44B6-84CF-C82D0BCE645E@cs.ucla.edu> <4AC03A6244C3C34BB52A7EC60B799C4C043E7B56@m-pdc.sbu.ac.ir> <4AC03A6244C3C34BB52A7EC60B799C4C03CC2A2C@m-pdc.sbu.ac.ir> Message-ID: > On Apr 30, 2016, at 11:59 PM, Muhammad Hosain Abdollahi Sabet wrote: > > Alex, > > What is equivalent of /model/wire/ndnsim in V.2? > The wire encoding is embedded directly in each of the data structure: ndn-cxx/src/interest.cpp, ndn-cxx/src/data.cpp, etc. Some general-purpose wire-encoding functions are in ndn-cxx/src/encoding. -- Alex > > Thanks, > Sabet > > > > -----Original Message----- > From: Muhammad Hosain Abdollahi Sabet > Sent: Tue 4/26/2016 4:42 PM > To: 'Alex Afanasyev' > Cc: 'ndnsim' > Subject: RE: [ndnSIM] Porting scenarios to ndnSIM 2.1 > > Alex, > > Thank you so much. You're saving lives!! > > Regards, > Sabet > > -----Original Message----- > From: Alex Afanasyev [mailto:aa at cs.ucla.edu] > Sent: Thursday, April 14, 2016 6:46 AM > To: Muhammad Hosain Abdollahi Sabet > Cc: ndnsim at lists.cs.ucla.edu > Subject: Re: [ndnSIM] Porting scenarios to ndnSIM 2.1 > > > > On Apr 2, 2016, at 11:43 AM, Muhammad Hosain Abdollahi Sabet wrote: > > > > Hi everyone, > > Is there any guide on how one can port simulation scenarios wrote for ndnSIM 1? Currently I have a simulation in which has some modifications in model/ndn-interest.h/.cc, model/wire/ndnsim.h/.cc, ndn.cxx/detail/pending-interests-container.h, model/fw/ndn-forwarding-strategy.h/.cc. I know NFD is being used directly in ndnSIM 2.1 and there has been some changes in ndn-cxx. But honestly I'm not much familiar with them and need some guide. > > It very much depends on how extensive are your changes. > > To modify interest abstraction and wire encoding, you need to look at > > - ndnSIM/ndn-cxx/src/interest.hpp > - ndnSIM/ndn-cxx/src/interest.cpp > > For application PIT (ndn.cxx/...), you can look at > > - ndnSIM/ndn-cxx/src/detail/pending-interests.hpp, but there is also logic in ndnSIM/ndn-cxx/src/detail/face-impl.hpp > > For forwarding strategy, depending on your specific interest, it could be part of the strategy interface > > - ndnSIM/NFD/daemon/fw/strategy.hpp > - ndnSIM/NFD/daemon/fw/strategy.cpp > - ndnSIM/NFD/daemon/fw/*-strategy.*pp (examples of implemented strategies) > > or if you need to change some of the forwarding logic (which we call now "pipelines"), you may look into > > - ndnSIM/NFD/daemon/fw/forwarder.hpp > - ndnSIM/NFD/daemon/fw/forwarder.cpp > > --- > Alex > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From z.rezaiefar at yahoo.com Mon May 2 04:50:39 2016 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Mon, 2 May 2016 11:50:39 +0000 (UTC) Subject: [ndnSIM] receiving data from multi paths References: <2009214565.6010550.1462189839064.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <2009214565.6010550.1462189839064.JavaMail.yahoo@mail.yahoo.com> ? Hello every one,I would like to know that? in NDN, the user (requester)?can receive data messages from more than one node which?may have different paths to the provider?? thanksbest regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From faqzao at hotmail.com Mon May 2 06:08:38 2016 From: faqzao at hotmail.com (waldir moreira) Date: Mon, 2 May 2016 13:08:38 +0000 Subject: [ndnSIM] NFD android on Mac OS X In-Reply-To: <084BF3E6-B14A-4F76-85D1-7980CBFE4034@cs.ucla.edu> References: , <084BF3E6-B14A-4F76-85D1-7980CBFE4034@cs.ucla.edu> Message-ID: Thanks for the email, Lixia. Already subscribed to the correct mailing list and have been contacted by Alex. BR, Waldir Moreira, Ph.D. LinkedIn profile Subject: Re: [ndnSIM] NFD android on Mac OS X From: lixia at cs.ucla.edu Date: Fri, 29 Apr 2016 15:12:10 -0700 CC: ndnsim at lists.cs.ucla.edu To: faqzao at hotmail.com On Apr 29, 2016, at 2:47 AM, waldir moreira wrote:Dear all, Do we have a guide for installing NFD android and related codes on OS X? I have successfully installed on Ubuntu and managed to run it through Eclipse+ADT. But if we have such a guide, I would avoid VMing. 1/ this msg should go nfd-dev list 2/ Alex should know whether we have a guide for installing on Android 3/ yes there is NFD code for OS X (Google can probably get you there) Cheers, Waldir Moreira LinkedIn profile_______________________________________________ndnSIM mailing listndnSIM at lists.cs.ucla.eduhttp://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Mon May 2 10:32:49 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Mon, 2 May 2016 10:32:49 -0700 Subject: [ndnSIM] [ndnsim] differences of the forwarding strategies between ndnsim 1.0 and 2.0 In-Reply-To: References: Message-ID: <9762FF83-802A-4E13-BAE3-7AEEF4144152@cs.ucla.edu> > On Apr 29, 2016, at 6:39 AM, ? wrote: > > Hi All, > > I am wondering the differences of the forwarding strategies between ndnsim 1.0 and 2.0. > I know in version 2.0, NFD is used and I only found best-route and multicast strategies rather than like flooding, smart flooding etc in version 1.0. > > The multicast forwarding strategy forwards Interests to all upstreams so whether it is the same like flooding in version 1.0. In this case, I should use CalculateAllPossibleRoutes() function to make it work. If I use CalculateRoutes(), Interests only follow the single route like using best-route strategy. Yes. Multicast is similar to "Flooding" strategy. Given it is pretty dumb strategy, you don't really need to have "CalculateAllPossibleRoutes". You can simply set "ndnHelper.setDefaultRoute(true);" which will add all available faces to "/" FIB entry, allowing global "flooding". Though, it may not be what you want. > > Appreciate your help. > > Thanks, > Ding -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From m.faran.majeed at gmail.com Mon May 2 10:50:54 2016 From: m.faran.majeed at gmail.com (Muhammad Faran) Date: Tue, 3 May 2016 00:50:54 +0700 Subject: [ndnSIM] Any vehicular NDN implementation available for ndnSIM2.1? Message-ID: Hi All, May I request for help from anyone who has implemented vehicular NDN for current ndnSIM2.1 version? Kind regards, Faran, AIT, Thailand -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 2 19:14:26 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 2 May 2016 19:14:26 -0700 Subject: [ndnSIM] Any vehicular NDN implementation available for ndnSIM2.1? In-Reply-To: References: Message-ID: Hi Faran, such an example is available here: https://github.com/cawka/ndnSIM-nom-rapid-car2car However, these simulation scenarios are compatible with a very old version of ndnSIM. To make them compatible with the current version, you will need to take care of some things. I think that Alex has mentioned, more or less, all the required changes here: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-April/002604.html Hope that this helps! Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 2, 2016, at 10:50 AM, Muhammad Faran wrote: > > Hi All, > > May I request for help from anyone who has implemented vehicular NDN for current ndnSIM2.1 version? > > > Kind regards, > > Faran, > AIT, Thailand -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 2 21:13:10 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 2 May 2016 21:13:10 -0700 Subject: [ndnSIM] receiving data from multi paths In-Reply-To: <2009214565.6010550.1462189839064.JavaMail.yahoo@mail.yahoo.com> References: <2009214565.6010550.1462189839064.JavaMail.yahoo.ref@mail.yahoo.com> <2009214565.6010550.1462189839064.JavaMail.yahoo@mail.yahoo.com> Message-ID: <0EA3FDEA-0509-4515-BBE9-E4AF94E67804@cs.ucla.edu> Hi, this will be handled by the forwarding strategy running on each node. For example, the forwarding strategy can forward an Interest through multiple faces or through a single different face based on some certain circumstances (e.g., link failures, RTT, bandwidth utilization, etc.). Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 2, 2016, at 4:50 AM, Zeinab Rezaiefar wrote: > > Hello every one, > I would like to know that in NDN, the user (requester) can receive data messages from more than one node which may have different paths to the provider ? > thanks > best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.faran.majeed at gmail.com Tue May 3 10:00:13 2016 From: m.faran.majeed at gmail.com (Muhammad Faran) Date: Wed, 4 May 2016 00:00:13 +0700 Subject: [ndnSIM] Any vehicular NDN implementation available for ndnSIM2.1? In-Reply-To: References: Message-ID: Thanks for answer Spyros. Kind regards, Muhammad Faran Majeed, AIT, Thailand On Tue, May 3, 2016 at 9:14 AM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi Faran, > > such an example is available here: > > https://github.com/cawka/ndnSIM-nom-rapid-car2car > > However, these simulation scenarios are compatible with a very old version > of ndnSIM. > > To make them compatible with the current version, you will need to take > care of some things. I think that Alex has mentioned, more or less, all the > required changes here: > > http://www.lists.cs.ucla.edu/pipermail/ndnsim/2016-April/002604.html > > Hope that this helps! > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > > On May 2, 2016, at 10:50 AM, Muhammad Faran > wrote: > > Hi All, > > May I request for help from anyone who has implemented vehicular NDN for > current ndnSIM2.1 version? > > > Kind regards, > > Faran, > AIT, Thailand > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ali1marandi at gmail.com Wed May 4 01:46:08 2016 From: ali1marandi at gmail.com (Ali) Date: Wed, 4 May 2016 10:46:08 +0200 Subject: [ndnSIM] CalculateAllPossibleRoutes floods ? Message-ID: <5729B6D0.3070101@gmail.com> Hi folks Does "CalculateAllPossibleRoutes" perform flooding, i.e., each interest will be forwarded to all available faces but the one over which it has been received ? BTW, is it still available in the current version (2.1) ? Thanks. Ali From z.rezaiefar at yahoo.com Wed May 4 06:29:42 2016 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Wed, 4 May 2016 13:29:42 +0000 (UTC) Subject: [ndnSIM] receiving data from multi paths In-Reply-To: <0EA3FDEA-0509-4515-BBE9-E4AF94E67804@cs.ucla.edu> References: <0EA3FDEA-0509-4515-BBE9-E4AF94E67804@cs.ucla.edu> Message-ID: <141979051.7593987.1462368582110.JavaMail.yahoo@mail.yahoo.com> thank you so much Spyridon for nice points and helps.? regardszeinab On Tuesday, May 3, 2016 1:13 PM, Spyridon (Spyros) Mastorakis wrote: Hi, this will be handled by the forwarding strategy running on each node. For example, the forwarding strategy can forward an Interest through multiple faces or through a single different face based on some certain circumstances (e.g., link failures, RTT, bandwidth utilization, etc.).? Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website:?http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA On May 2, 2016, at 4:50 AM, Zeinab Rezaiefar wrote: ? Hello every one,I would like to know that? in NDN, the user (requester)?can receive data messages from more than one node which?may have different paths to the provider?? thanksbest regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From rk8000 at g.rit.edu Wed May 4 13:02:17 2016 From: rk8000 at g.rit.edu (Ravi Kumar Singh) Date: Wed, 04 May 2016 16:02:17 -0400 Subject: [ndnSIM] Seeking help regarding ndnsim; intreset with different sequence number In-Reply-To: <9E6A9CC5-83AF-4622-9FD0-DAA72B6630A9@cs.ucla.edu> References: <6540B718-3971-4868-B113-E7CC47F32092@cs.ucla.edu> <449DC88A-473E-4387-A3DD-1194E0ED5065@cs.ucla.edu> <623C991F-4BBA-4339-AA3F-13C46B9B0856@cs.ucla.edu> <698C063F-B1DD-49FF-A4B8-059714947999@cs.ucla.edu> <8EDD49CF-B8FE-409B-A33F-B04B1B09D6EB@cs.ucla.edu> <9E6A9CC5-83AF-4622-9FD0-DAA72B6630A9@cs.ucla.edu> Message-ID: Hi Team, We are following what you have suggested and we are working on CS of NFD. Now, we want to store popularity associated with each content. We are thinking to add a field in the Entry class, which would store the popularity of the data associated with this Entry. And after that, we are planning to use that popularity in a sub-class of the Decision-Policy class. ( https://github.com/ndncomm/nfd-caching-policies/blob/2ed1d1630f441f0b20fc004d2f74577363a0a967/daemon/table/cs-decision-policy.hpp ) Is there any way by which we can look up a required entry using its name (Data-name) from the Content Store. We want to perform this look-up operation in a sub-class of the (above-mentioned) Decision-Policy class? Thanks and Regards, Ravi Kumar Singh On Mon, Apr 25, 2016 at 12:33 AM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi Ravi, > > the first thing you will have to do is to decide whether you would like to > implement a replacement policy using the ndnSIM-specific implementation of > CS or the CS of NFD. > > If you go for the first one, you should take a look at the already > implemented policies and also search for papers that have implemented > replacement policies for ndnSIM. Some of them provide pointers to the > source code. > > If you go for the second option, you can take a look at this project: > https://github.com/ndncomm/nfd-caching-ndnsim > It is a project of the first NDN hackathon, where people implemented a > number of CS replacement policies for the version of NFD used by ndnSIM. > > Hope that this helps. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > > > > On Apr 24, 2016, at 5:45 PM, Lixia Zhang wrote: > > > On Apr 24, 2016, at 1:04 PM, Ravi Kumar Singh wrote: > > Hi Lixia / Team, > > I would like to create a custom cache replacement policy. I went through > the LruPolicy class and I can see that it contains methods > like evictEntries, insertToQueue, etc. However, it is not clear, when, how > these methods are called. > > I believe in order to achieve what I want to, I would have to create a > similar class. Am I on the right path here? Some starting point > documentation of how the flow is would be really helpful. > > > I must admit that I dont know the code details. So we need Alex or Spyros > to help out here. > > On Wed, Apr 20, 2016 at 3:14 AM, Ravi Kumar Singh > wrote: > >> Thanks Lixia/Spyridon! I will implement this and will let you the >> results! Thank you so much again! >> >> On Wed, Apr 20, 2016 at 1:03 AM, Lixia Zhang wrote: >> >>> >>> On Apr 18, 2016, at 10:40 AM, Spyridon (Spyros) Mastorakis < >>> mastorakis at cs.ucla.edu> wrote: >>> >>> Hi Ravi, >>> >>> that looks right to me. >>> >>> There is also something else that you need to do: >>> >>> your consumer application should express Interests with the >>> ?mustBeFresh? selector set in order to retrieve only ?fresh? data: >>> >>> >>> https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/interest.hpp#L417-L423 >>> >>> To this end you should do something like that: >>> >>> Interest i(name); >>> i.setMustBeFresh(true); >>> ... >>> ? >>> m_face->onReceiveInterest(*interest); >>> >>> Hope that this helps. >>> >>> Spyridon (Spyros) Mastorakis >>> Personal Website: http://cs.ucla.edu/~mastorakis/ >>> Internet Research Laboratory >>> Computer Science Department >>> UCLA >>> >>> >>> copied the list here. >>> Ravi, hopefully your issue was resolved? >>> >>> >>> On Apr 17, 2016, at 11:54 PM, Ravi Kumar Singh wrote: >>> >>> Hi Lixia, >>> >>> No, I am not aware where we need to set this "must be fresh". I just >>> followed the below link: >>> >>> >>> https://github.com/cawka/ndnSIM-examples/blob/master/examples/ndn-simple-with-content-freshness.cc >>> >>> and changed like below: >>> >>> ccnxHelper.SetContentStore ("ns3::ndn::cs::Freshness::Lru","MaxSize", "2 >>> "); >>> >>> and >>> producerHelper.SetAttribute ("Freshness", TimeValue (Seconds (2.0))); >>> >>> Please let me know where exactly we have to set "must be fresh" or >>> anything we need to do? >>> >>> Thanks and Regards, >>> Ravi Kumar Singh >>> >>> On Sun, Apr 17, 2016 at 11:25 PM, Lixia Zhang wrote: >>> >>>> >>>> On Apr 17, 2016, at 12:27 PM, Ravi Kumar Singh >>>> wrote: >>>> >>>> Hi Alex/Lixia/Team, >>>> >>>> Thank you so much for the help! Now, I am trying to use the >>>> ns3::ndn::cs::Freshness::Lru feature to use the freshness. But it >>>> seems its not giving desired results. Even after the freshness has expired >>>> the next interest is being served from the Cache server and not from the >>>> Origin Server. And as per the policy(ns3::ndn::cs::Freshness::Lru),it cache >>>> Data packets only for the time indicated by FreshnessPeriod. >>>> >>>> >>>> did you set "must be fresh" in your interests packets? >>>> >>>> Thanks and Regards, >>>> Ravi Singh >>>> >>>> On Wed, Apr 13, 2016 at 9:41 PM, Alex Afanasyev wrote: >>>> >>>>> >>>>> On Apr 12, 2016, at 11:13 PM, Ravi Kumar Singh >>>>> wrote: >>>>> >>>>> Forgot to include team. >>>>> >>>>> ---------- Forwarded message ---------- >>>>> From: Ravi Kumar Singh >>>>> Date: Wed, Apr 13, 2016 at 2:11 AM >>>>> Subject: Re: [ndnSIM] Seeking help regarding ndnsim; intreset with >>>>> different sequence number >>>>> To: Lixia Zhang >>>>> >>>>> >>>>> Thanks Lixia! I will try setting up a second consumer to request the >>>>> same data. >>>>> But, in our experiment, we need to see what happens when the same >>>>> consumer requests the same interest multiple times. I tried writing my own >>>>> implementation of a consumer, but still only the first interest is working >>>>> well and rest all interest are *not even* forwarding from the >>>>> consumer(same) itself. >>>>> >>>>> Following is a log of its operation ( with my own implemention of one >>>>> consumer sending three same interest): >>>>> >>>>> 1: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet for >>>>> /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=4231791817 >>>>> 2: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet for >>>>> /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=2837832477 >>>>> 3: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet for >>>>> /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=2794407255 >>>>> 4: 1.01002s 1 ndn.cs.Lru:Lookup(0x1493c10, /root/%FE%00) >>>>> 5: 1.02004s 2 ndn.Producer:OnInterest(0x14fce90, 0x1528ae8) >>>>> 6: 1.02004s 2 ndn.Producer:OnInterest(): [INFO ] node(2) responding >>>>> with Data: /root/%FE%00 >>>>> 7: 1.03089s 1 ndn.cs.Lru:Add(0x1493c10, /root/%FE%00) >>>>> 8: 1.04174s 0 CustomApp:OnData(): [DEBUG] Receiving Data packet for >>>>> /root/%FE%00 >>>>> >>>>> As, you can see from the log, only first interest is working file and >>>>> rest 2 interest are *not even* forwarding from the consumer itself. >>>>> >>>>> >>>>> Hi Ravi, >>>>> >>>>> What you see is correct and intentional behavior of an NDN router. >>>>> You're trying to send 3 interests for the same data at the exactly the same >>>>> time. As a result, these 3 interests will be aggregated into one and only >>>>> one will be sent further. Also, given that the same app (though the same >>>>> face) is sending those interests, only one data is returned back. >>>>> >>>>> Depending on what specific effect you want to observe, you may want to >>>>> spread out sending interests in time and/or request from different >>>>> simulated nodes (different app instances). >>>>> >>>>> --- >>>>> Alex >>>>> >>>>> Please suggest! >>>>> >>>>> Regards, >>>>> Ravi >>>>> >>>>> On Wed, Apr 13, 2016 at 12:31 AM, Lixia Zhang >>>>> wrote: >>>>> >>>>>> >>>>>> On Apr 12, 2016, at 9:20 PM, Ravi Kumar Singh >>>>>> wrote: >>>>>> >>>>>> Hi Team, >>>>>> >>>>>> I am a Graduate student of Rochester Institue of Technology, New >>>>>> York. Currently, I am working on a research paper based on NDN along with >>>>>> my Prof. >>>>>> Currently, we want to simulate the NDN with your software NDNSIM. We >>>>>> want to simulate the scenario where the consumer is sending the same >>>>>> interest (same sequence number) multiple times to the producer so that the >>>>>> cache Server would serve the interest as it would have the content in its >>>>>> cache instead of serving the request from the producer. >>>>>> We tried googling but couldn't found any relevant link for this >>>>>> scenario. >>>>>> >>>>>> Requesting you to please help us on how we can simulate the scenario >>>>>> where the consumer is sending the same interest(same sequence number) >>>>>> instead of the incremental sequence number (default behaviour). >>>>>> >>>>>> >>>>>> it seems to me easier to set up a second consumer to request the same >>>>>> data, rather than forcing the same consumer to send repeated interest. >>>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> ndnSIM mailing list >>>> ndnSIM at lists.cs.ucla.edu >>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>> >>>> >>> >>> >> > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rk8000 at g.rit.edu Wed May 4 15:37:35 2016 From: rk8000 at g.rit.edu (Ravi Kumar Singh) Date: Wed, 04 May 2016 18:37:35 -0400 Subject: [ndnSIM] Seeking help regarding ndnsim; intreset with different sequence number In-Reply-To: References: <6540B718-3971-4868-B113-E7CC47F32092@cs.ucla.edu> <449DC88A-473E-4387-A3DD-1194E0ED5065@cs.ucla.edu> <623C991F-4BBA-4339-AA3F-13C46B9B0856@cs.ucla.edu> <698C063F-B1DD-49FF-A4B8-059714947999@cs.ucla.edu> <8EDD49CF-B8FE-409B-A33F-B04B1B09D6EB@cs.ucla.edu> <9E6A9CC5-83AF-4622-9FD0-DAA72B6630A9@cs.ucla.edu> Message-ID: Additionally, is there any way by which we can find the total number of request received at the interface for a *particular* content in the Face class or Forwarder class? Thanks and Regards, Ravi Kumar Singh On Wed, May 4, 2016 at 4:02 PM, Ravi Kumar Singh wrote: > Hi Team, > > We are following what you have suggested and we are working on CS of NFD. > Now, we want to store popularity associated with each content. We are > thinking to add a field in the Entry class, which would store the > popularity of the data associated with this Entry. And after that, we are > planning to use that popularity in a sub-class of the Decision-Policy class. > ( > https://github.com/ndncomm/nfd-caching-policies/blob/2ed1d1630f441f0b20fc004d2f74577363a0a967/daemon/table/cs-decision-policy.hpp > ) > > Is there any way by which we can look up a required entry using its name > (Data-name) from the Content Store. We want to perform this look-up > operation in a sub-class of the (above-mentioned) Decision-Policy class? > > > Thanks and Regards, > Ravi Kumar Singh > > On Mon, Apr 25, 2016 at 12:33 AM, Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu> wrote: > >> Hi Ravi, >> >> the first thing you will have to do is to decide whether you would like >> to implement a replacement policy using the ndnSIM-specific implementation >> of CS or the CS of NFD. >> >> If you go for the first one, you should take a look at the already >> implemented policies and also search for papers that have implemented >> replacement policies for ndnSIM. Some of them provide pointers to the >> source code. >> >> If you go for the second option, you can take a look at this project: >> https://github.com/ndncomm/nfd-caching-ndnsim >> It is a project of the first NDN hackathon, where people implemented a >> number of CS replacement policies for the version of NFD used by ndnSIM. >> >> Hope that this helps. >> >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> Computer Science Department >> UCLA >> >> >> >> >> On Apr 24, 2016, at 5:45 PM, Lixia Zhang wrote: >> >> >> On Apr 24, 2016, at 1:04 PM, Ravi Kumar Singh wrote: >> >> Hi Lixia / Team, >> >> I would like to create a custom cache replacement policy. I went through >> the LruPolicy class and I can see that it contains methods >> like evictEntries, insertToQueue, etc. However, it is not clear, when, how >> these methods are called. >> >> I believe in order to achieve what I want to, I would have to create a >> similar class. Am I on the right path here? Some starting point >> documentation of how the flow is would be really helpful. >> >> >> I must admit that I dont know the code details. So we need Alex or Spyros >> to help out here. >> >> On Wed, Apr 20, 2016 at 3:14 AM, Ravi Kumar Singh >> wrote: >> >>> Thanks Lixia/Spyridon! I will implement this and will let you the >>> results! Thank you so much again! >>> >>> On Wed, Apr 20, 2016 at 1:03 AM, Lixia Zhang wrote: >>> >>>> >>>> On Apr 18, 2016, at 10:40 AM, Spyridon (Spyros) Mastorakis < >>>> mastorakis at cs.ucla.edu> wrote: >>>> >>>> Hi Ravi, >>>> >>>> that looks right to me. >>>> >>>> There is also something else that you need to do: >>>> >>>> your consumer application should express Interests with the >>>> ?mustBeFresh? selector set in order to retrieve only ?fresh? data: >>>> >>>> >>>> https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/interest.hpp#L417-L423 >>>> >>>> To this end you should do something like that: >>>> >>>> Interest i(name); >>>> i.setMustBeFresh(true); >>>> ... >>>> ? >>>> m_face->onReceiveInterest(*interest); >>>> >>>> Hope that this helps. >>>> >>>> Spyridon (Spyros) Mastorakis >>>> Personal Website: http://cs.ucla.edu/~mastorakis/ >>>> Internet Research Laboratory >>>> Computer Science Department >>>> UCLA >>>> >>>> >>>> copied the list here. >>>> Ravi, hopefully your issue was resolved? >>>> >>>> >>>> On Apr 17, 2016, at 11:54 PM, Ravi Kumar Singh >>>> wrote: >>>> >>>> Hi Lixia, >>>> >>>> No, I am not aware where we need to set this "must be fresh". I just >>>> followed the below link: >>>> >>>> >>>> https://github.com/cawka/ndnSIM-examples/blob/master/examples/ndn-simple-with-content-freshness.cc >>>> >>>> and changed like below: >>>> >>>> ccnxHelper.SetContentStore ("ns3::ndn::cs::Freshness::Lru","MaxSize", " >>>> 2"); >>>> >>>> and >>>> producerHelper.SetAttribute ("Freshness", TimeValue (Seconds (2.0))); >>>> >>>> Please let me know where exactly we have to set "must be fresh" or >>>> anything we need to do? >>>> >>>> Thanks and Regards, >>>> Ravi Kumar Singh >>>> >>>> On Sun, Apr 17, 2016 at 11:25 PM, Lixia Zhang >>>> wrote: >>>> >>>>> >>>>> On Apr 17, 2016, at 12:27 PM, Ravi Kumar Singh >>>>> wrote: >>>>> >>>>> Hi Alex/Lixia/Team, >>>>> >>>>> Thank you so much for the help! Now, I am trying to use the >>>>> ns3::ndn::cs::Freshness::Lru feature to use the freshness. But it >>>>> seems its not giving desired results. Even after the freshness has expired >>>>> the next interest is being served from the Cache server and not from the >>>>> Origin Server. And as per the policy(ns3::ndn::cs::Freshness::Lru),it cache >>>>> Data packets only for the time indicated by FreshnessPeriod. >>>>> >>>>> >>>>> did you set "must be fresh" in your interests packets? >>>>> >>>>> Thanks and Regards, >>>>> Ravi Singh >>>>> >>>>> On Wed, Apr 13, 2016 at 9:41 PM, Alex Afanasyev >>>>> wrote: >>>>> >>>>>> >>>>>> On Apr 12, 2016, at 11:13 PM, Ravi Kumar Singh >>>>>> wrote: >>>>>> >>>>>> Forgot to include team. >>>>>> >>>>>> ---------- Forwarded message ---------- >>>>>> From: Ravi Kumar Singh >>>>>> Date: Wed, Apr 13, 2016 at 2:11 AM >>>>>> Subject: Re: [ndnSIM] Seeking help regarding ndnsim; intreset with >>>>>> different sequence number >>>>>> To: Lixia Zhang >>>>>> >>>>>> >>>>>> Thanks Lixia! I will try setting up a second consumer to request >>>>>> the same data. >>>>>> But, in our experiment, we need to see what happens when the same >>>>>> consumer requests the same interest multiple times. I tried writing my own >>>>>> implementation of a consumer, but still only the first interest is working >>>>>> well and rest all interest are *not even* forwarding from the >>>>>> consumer(same) itself. >>>>>> >>>>>> Following is a log of its operation ( with my own implemention of one >>>>>> consumer sending three same interest): >>>>>> >>>>>> 1: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet for >>>>>> /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=4231791817 >>>>>> 2: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet for >>>>>> /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=2837832477 >>>>>> 3: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet for >>>>>> /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=2794407255 >>>>>> 4: 1.01002s 1 ndn.cs.Lru:Lookup(0x1493c10, /root/%FE%00) >>>>>> 5: 1.02004s 2 ndn.Producer:OnInterest(0x14fce90, 0x1528ae8) >>>>>> 6: 1.02004s 2 ndn.Producer:OnInterest(): [INFO ] node(2) responding >>>>>> with Data: /root/%FE%00 >>>>>> 7: 1.03089s 1 ndn.cs.Lru:Add(0x1493c10, /root/%FE%00) >>>>>> 8: 1.04174s 0 CustomApp:OnData(): [DEBUG] Receiving Data packet for >>>>>> /root/%FE%00 >>>>>> >>>>>> As, you can see from the log, only first interest is working file and >>>>>> rest 2 interest are *not even* forwarding from the consumer itself. >>>>>> >>>>>> >>>>>> Hi Ravi, >>>>>> >>>>>> What you see is correct and intentional behavior of an NDN router. >>>>>> You're trying to send 3 interests for the same data at the exactly the same >>>>>> time. As a result, these 3 interests will be aggregated into one and only >>>>>> one will be sent further. Also, given that the same app (though the same >>>>>> face) is sending those interests, only one data is returned back. >>>>>> >>>>>> Depending on what specific effect you want to observe, you may want >>>>>> to spread out sending interests in time and/or request from different >>>>>> simulated nodes (different app instances). >>>>>> >>>>>> --- >>>>>> Alex >>>>>> >>>>>> Please suggest! >>>>>> >>>>>> Regards, >>>>>> Ravi >>>>>> >>>>>> On Wed, Apr 13, 2016 at 12:31 AM, Lixia Zhang >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> On Apr 12, 2016, at 9:20 PM, Ravi Kumar Singh >>>>>>> wrote: >>>>>>> >>>>>>> Hi Team, >>>>>>> >>>>>>> I am a Graduate student of Rochester Institue of Technology, New >>>>>>> York. Currently, I am working on a research paper based on NDN along with >>>>>>> my Prof. >>>>>>> Currently, we want to simulate the NDN with your software NDNSIM. We >>>>>>> want to simulate the scenario where the consumer is sending the same >>>>>>> interest (same sequence number) multiple times to the producer so that the >>>>>>> cache Server would serve the interest as it would have the content in its >>>>>>> cache instead of serving the request from the producer. >>>>>>> We tried googling but couldn't found any relevant link for this >>>>>>> scenario. >>>>>>> >>>>>>> Requesting you to please help us on how we can simulate the scenario >>>>>>> where the consumer is sending the same interest(same sequence number) >>>>>>> instead of the incremental sequence number (default behaviour). >>>>>>> >>>>>>> >>>>>>> it seems to me easier to set up a second consumer to request the >>>>>>> same data, rather than forcing the same consumer to send repeated interest. >>>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> ndnSIM mailing list >>>>> ndnSIM at lists.cs.ucla.edu >>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>>> >>>>> >>>> >>>> >>> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Wed May 4 16:05:45 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Wed, 4 May 2016 16:05:45 -0700 Subject: [ndnSIM] How to calculate size of Interest/Data packet Message-ID: Hi. Calculating the size of Interest/Data packet wire, L3 tracer is done using the wireEncode() API. https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/tracers/ndn-l3-rate-tracer.cpp#L294 if (interest.hasWire()) { std::get<1>(m_stats[face.shared_from_this()]).m_outInterests += interest.wireEncode().size(); } In the implementation of wireEncode() also, the same check is being done. https://github.com/named-data-ndnSIM/ndn-cxx/blob/36ec104e23ba5395a8b4df411b776cdbef9c5cd4/src/interest.cpp#L279 const Block& Interest::wireEncode() const { if (m_wire.hasWire()) return m_wire; ... } Perhaps this is a redundant check inside L3 tracer. But, is this the only way to know the size of data being transferred over or received from the face? /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed May 4 16:36:16 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 4 May 2016 16:36:16 -0700 Subject: [ndnSIM] CalculateAllPossibleRoutes floods ? In-Reply-To: <5729B6D0.3070101@gmail.com> References: <5729B6D0.3070101@gmail.com> Message-ID: Hi Ali, CalculateAllPossibleRoutes method just calculates routes based on the configured topology. There are no packet forwarding during this calculation (it is hack that possible only in simulation). If you want effect of multicast/flooding, you just need to set "ndn:/localhost/nfd/strategy/multicast" strategy on the namespace you're interested in, in addition to running `ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes` or `ndn::StackHelper::setDefaultRoutes(true)` --- Alex > On May 4, 2016, at 1:46 AM, Ali wrote: > > Hi folks > > Does "CalculateAllPossibleRoutes" perform flooding, i.e., each interest will be forwarded to all available faces but the one over which it has been received ? BTW, is it still available in the current version (2.1) ? > > Thanks. > Ali -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From abhijithabhayam at gmail.com Thu May 5 04:45:55 2016 From: abhijithabhayam at gmail.com (Abhijith Anilkumar) Date: Thu, 05 May 2016 11:45:55 +0000 Subject: [ndnSIM] Cache sizes in different Cache Replacement Algorithms Message-ID: Hello everyone, I had been trying to compare the different cache replacement algorithms for different cache sizes. I tried the CSTracer example given in the ndnSIM site. I'm trying to generate the CSTracer output for different cache replacement algorithms and cache sizes by modifying the line "ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "100");". But, whatever changes I make to the cache size, the output from the CSTracer is the same. I'm a newbie to ndnSIM. What am I doing wrong here? Can anybody help me with this ? Regards, Abhijith -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Thu May 5 10:44:44 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 5 May 2016 10:44:44 -0700 Subject: [ndnSIM] Cache sizes in different Cache Replacement Algorithms In-Reply-To: References: Message-ID: <019CAB9A-B6C8-47B7-B12A-451370BD6C04@cs.ucla.edu> Hi Abhijith, The cache replacement policy by itself would not change how the cache behavior if there is a sequential request for unique data (as in the scenario that just demonstrates how to set up the trace). You need to design the scenario where you have repetitive requests for the same data, e.g., using ConsumerZipfMandelbrot app. --- Alex > On May 5, 2016, at 4:45 AM, Abhijith Anilkumar wrote: > > Hello everyone, > > I had been trying to compare the different cache replacement algorithms for different cache sizes. I tried the CSTracer example given in the ndnSIM site. I'm trying to generate the CSTracer output for different cache replacement algorithms and cache sizes by modifying the line "ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "100");". > > But, whatever changes I make to the cache size, the output from the CSTracer is the same. I'm a newbie to ndnSIM. What am I doing wrong here? Can anybody help me with this ? > > Regards, > Abhijith -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From rk8000 at g.rit.edu Thu May 5 10:49:58 2016 From: rk8000 at g.rit.edu (Ravi Kumar Singh) Date: Thu, 05 May 2016 13:49:58 -0400 Subject: [ndnSIM] Seeking help regarding ndnsim; intreset with different sequence number In-Reply-To: References: <6540B718-3971-4868-B113-E7CC47F32092@cs.ucla.edu> <449DC88A-473E-4387-A3DD-1194E0ED5065@cs.ucla.edu> <623C991F-4BBA-4339-AA3F-13C46B9B0856@cs.ucla.edu> <698C063F-B1DD-49FF-A4B8-059714947999@cs.ucla.edu> <8EDD49CF-B8FE-409B-A33F-B04B1B09D6EB@cs.ucla.edu> <9E6A9CC5-83AF-4622-9FD0-DAA72B6630A9@cs.ucla.edu> Message-ID: Hi Alex/Spyros/Lixia/Team, Any help would be highly appreciated. Thanks and Regards, Ravi Kumar Singh On Wed, May 4, 2016 at 6:37 PM, Ravi Kumar Singh wrote: > Additionally, is there any way by which we can find the total number of > request received at the interface for a *particular* content in the Face > class or Forwarder class? > > Thanks and Regards, > Ravi Kumar Singh > > On Wed, May 4, 2016 at 4:02 PM, Ravi Kumar Singh wrote: > >> Hi Team, >> >> We are following what you have suggested and we are working on CS of NFD. >> Now, we want to store popularity associated with each content. We are >> thinking to add a field in the Entry class, which would store the >> popularity of the data associated with this Entry. And after that, we are >> planning to use that popularity in a sub-class of the Decision-Policy class. >> ( >> https://github.com/ndncomm/nfd-caching-policies/blob/2ed1d1630f441f0b20fc004d2f74577363a0a967/daemon/table/cs-decision-policy.hpp >> ) >> >> Is there any way by which we can look up a required entry using its name >> (Data-name) from the Content Store. We want to perform this look-up >> operation in a sub-class of the (above-mentioned) Decision-Policy class? >> >> >> Thanks and Regards, >> Ravi Kumar Singh >> >> On Mon, Apr 25, 2016 at 12:33 AM, Spyridon (Spyros) Mastorakis < >> mastorakis at cs.ucla.edu> wrote: >> >>> Hi Ravi, >>> >>> the first thing you will have to do is to decide whether you would like >>> to implement a replacement policy using the ndnSIM-specific implementation >>> of CS or the CS of NFD. >>> >>> If you go for the first one, you should take a look at the already >>> implemented policies and also search for papers that have implemented >>> replacement policies for ndnSIM. Some of them provide pointers to the >>> source code. >>> >>> If you go for the second option, you can take a look at this project: >>> https://github.com/ndncomm/nfd-caching-ndnsim >>> It is a project of the first NDN hackathon, where people implemented a >>> number of CS replacement policies for the version of NFD used by ndnSIM. >>> >>> Hope that this helps. >>> >>> Spyridon (Spyros) Mastorakis >>> Personal Website: http://cs.ucla.edu/~mastorakis/ >>> Internet Research Laboratory >>> Computer Science Department >>> UCLA >>> >>> >>> >>> >>> On Apr 24, 2016, at 5:45 PM, Lixia Zhang wrote: >>> >>> >>> On Apr 24, 2016, at 1:04 PM, Ravi Kumar Singh wrote: >>> >>> Hi Lixia / Team, >>> >>> I would like to create a custom cache replacement policy. I went through >>> the LruPolicy class and I can see that it contains methods >>> like evictEntries, insertToQueue, etc. However, it is not clear, when, how >>> these methods are called. >>> >>> I believe in order to achieve what I want to, I would have to create a >>> similar class. Am I on the right path here? Some starting point >>> documentation of how the flow is would be really helpful. >>> >>> >>> I must admit that I dont know the code details. So we need Alex or >>> Spyros to help out here. >>> >>> On Wed, Apr 20, 2016 at 3:14 AM, Ravi Kumar Singh >>> wrote: >>> >>>> Thanks Lixia/Spyridon! I will implement this and will let you the >>>> results! Thank you so much again! >>>> >>>> On Wed, Apr 20, 2016 at 1:03 AM, Lixia Zhang wrote: >>>> >>>>> >>>>> On Apr 18, 2016, at 10:40 AM, Spyridon (Spyros) Mastorakis < >>>>> mastorakis at cs.ucla.edu> wrote: >>>>> >>>>> Hi Ravi, >>>>> >>>>> that looks right to me. >>>>> >>>>> There is also something else that you need to do: >>>>> >>>>> your consumer application should express Interests with the >>>>> ?mustBeFresh? selector set in order to retrieve only ?fresh? data: >>>>> >>>>> >>>>> https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/interest.hpp#L417-L423 >>>>> >>>>> To this end you should do something like that: >>>>> >>>>> Interest i(name); >>>>> i.setMustBeFresh(true); >>>>> ... >>>>> ? >>>>> m_face->onReceiveInterest(*interest); >>>>> >>>>> Hope that this helps. >>>>> >>>>> Spyridon (Spyros) Mastorakis >>>>> Personal Website: http://cs.ucla.edu/~mastorakis/ >>>>> Internet Research Laboratory >>>>> Computer Science Department >>>>> UCLA >>>>> >>>>> >>>>> copied the list here. >>>>> Ravi, hopefully your issue was resolved? >>>>> >>>>> >>>>> On Apr 17, 2016, at 11:54 PM, Ravi Kumar Singh >>>>> wrote: >>>>> >>>>> Hi Lixia, >>>>> >>>>> No, I am not aware where we need to set this "must be fresh". I just >>>>> followed the below link: >>>>> >>>>> >>>>> https://github.com/cawka/ndnSIM-examples/blob/master/examples/ndn-simple-with-content-freshness.cc >>>>> >>>>> and changed like below: >>>>> >>>>> ccnxHelper.SetContentStore ("ns3::ndn::cs::Freshness::Lru","MaxSize", >>>>> "2"); >>>>> >>>>> and >>>>> producerHelper.SetAttribute ("Freshness", TimeValue (Seconds (2.0))); >>>>> >>>>> Please let me know where exactly we have to set "must be fresh" or >>>>> anything we need to do? >>>>> >>>>> Thanks and Regards, >>>>> Ravi Kumar Singh >>>>> >>>>> On Sun, Apr 17, 2016 at 11:25 PM, Lixia Zhang >>>>> wrote: >>>>> >>>>>> >>>>>> On Apr 17, 2016, at 12:27 PM, Ravi Kumar Singh >>>>>> wrote: >>>>>> >>>>>> Hi Alex/Lixia/Team, >>>>>> >>>>>> Thank you so much for the help! Now, I am trying to use the >>>>>> ns3::ndn::cs::Freshness::Lru feature to use the freshness. But it >>>>>> seems its not giving desired results. Even after the freshness has expired >>>>>> the next interest is being served from the Cache server and not from the >>>>>> Origin Server. And as per the policy(ns3::ndn::cs::Freshness::Lru),it cache >>>>>> Data packets only for the time indicated by FreshnessPeriod. >>>>>> >>>>>> >>>>>> did you set "must be fresh" in your interests packets? >>>>>> >>>>>> Thanks and Regards, >>>>>> Ravi Singh >>>>>> >>>>>> On Wed, Apr 13, 2016 at 9:41 PM, Alex Afanasyev >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> On Apr 12, 2016, at 11:13 PM, Ravi Kumar Singh >>>>>>> wrote: >>>>>>> >>>>>>> Forgot to include team. >>>>>>> >>>>>>> ---------- Forwarded message ---------- >>>>>>> From: Ravi Kumar Singh >>>>>>> Date: Wed, Apr 13, 2016 at 2:11 AM >>>>>>> Subject: Re: [ndnSIM] Seeking help regarding ndnsim; intreset with >>>>>>> different sequence number >>>>>>> To: Lixia Zhang >>>>>>> >>>>>>> >>>>>>> Thanks Lixia! I will try setting up a second consumer to request >>>>>>> the same data. >>>>>>> But, in our experiment, we need to see what happens when the same >>>>>>> consumer requests the same interest multiple times. I tried writing my own >>>>>>> implementation of a consumer, but still only the first interest is working >>>>>>> well and rest all interest are *not even* forwarding from the >>>>>>> consumer(same) itself. >>>>>>> >>>>>>> Following is a log of its operation ( with my own implemention of >>>>>>> one consumer sending three same interest): >>>>>>> >>>>>>> 1: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet >>>>>>> for /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=4231791817 >>>>>>> 2: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet >>>>>>> for /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=2837832477 >>>>>>> 3: 1s 0 CustomApp:SendInterest(): [DEBUG] Sending Interest packet >>>>>>> for /root/%FE%00?ndn.InterestLifetime=1000&ndn.Nonce=2794407255 >>>>>>> 4: 1.01002s 1 ndn.cs.Lru:Lookup(0x1493c10, /root/%FE%00) >>>>>>> 5: 1.02004s 2 ndn.Producer:OnInterest(0x14fce90, 0x1528ae8) >>>>>>> 6: 1.02004s 2 ndn.Producer:OnInterest(): [INFO ] node(2) responding >>>>>>> with Data: /root/%FE%00 >>>>>>> 7: 1.03089s 1 ndn.cs.Lru:Add(0x1493c10, /root/%FE%00) >>>>>>> 8: 1.04174s 0 CustomApp:OnData(): [DEBUG] Receiving Data packet for >>>>>>> /root/%FE%00 >>>>>>> >>>>>>> As, you can see from the log, only first interest is working file >>>>>>> and rest 2 interest are *not even* forwarding from the consumer >>>>>>> itself. >>>>>>> >>>>>>> >>>>>>> Hi Ravi, >>>>>>> >>>>>>> What you see is correct and intentional behavior of an NDN router. >>>>>>> You're trying to send 3 interests for the same data at the exactly the same >>>>>>> time. As a result, these 3 interests will be aggregated into one and only >>>>>>> one will be sent further. Also, given that the same app (though the same >>>>>>> face) is sending those interests, only one data is returned back. >>>>>>> >>>>>>> Depending on what specific effect you want to observe, you may want >>>>>>> to spread out sending interests in time and/or request from different >>>>>>> simulated nodes (different app instances). >>>>>>> >>>>>>> --- >>>>>>> Alex >>>>>>> >>>>>>> Please suggest! >>>>>>> >>>>>>> Regards, >>>>>>> Ravi >>>>>>> >>>>>>> On Wed, Apr 13, 2016 at 12:31 AM, Lixia Zhang >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>> On Apr 12, 2016, at 9:20 PM, Ravi Kumar Singh >>>>>>>> wrote: >>>>>>>> >>>>>>>> Hi Team, >>>>>>>> >>>>>>>> I am a Graduate student of Rochester Institue of Technology, New >>>>>>>> York. Currently, I am working on a research paper based on NDN along with >>>>>>>> my Prof. >>>>>>>> Currently, we want to simulate the NDN with your software NDNSIM. >>>>>>>> We want to simulate the scenario where the consumer is sending the same >>>>>>>> interest (same sequence number) multiple times to the producer so that the >>>>>>>> cache Server would serve the interest as it would have the content in its >>>>>>>> cache instead of serving the request from the producer. >>>>>>>> We tried googling but couldn't found any relevant link for this >>>>>>>> scenario. >>>>>>>> >>>>>>>> Requesting you to please help us on how we can simulate the >>>>>>>> scenario where the consumer is sending the same interest(same sequence >>>>>>>> number) instead of the incremental sequence number (default behaviour). >>>>>>>> >>>>>>>> >>>>>>>> it seems to me easier to set up a second consumer to request the >>>>>>>> same data, rather than forcing the same consumer to send repeated interest. >>>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> ndnSIM mailing list >>>>>> ndnSIM at lists.cs.ucla.edu >>>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>>>> >>>>>> >>>>> >>>>> >>>> >>> >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Thu May 5 14:14:02 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Thu, 5 May 2016 14:14:02 -0700 Subject: [ndnSIM] How to calculate size of Interest/Data packet In-Reply-To: References: Message-ID: <8DF8765A-0AE5-4780-95B8-E954187A6A93@cs.ucla.edu> Hi Anil, potentially you could do something like the following examples: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/tests/unit-tests/helper/ndn-link-control-helper.t.cpp#L62-L65 https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/face/face-counters.hpp#L188-L212 Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 4, 2016, at 4:05 PM, Anil Jangam wrote: > > Hi. > > Calculating the size of Interest/Data packet wire, L3 tracer is done using the wireEncode() API. > > https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/tracers/ndn-l3-rate-tracer.cpp#L294 > > if (interest.hasWire()) { > std::get<1>(m_stats[face.shared_from_this()]).m_outInterests += > interest.wireEncode().size(); > } > > In the implementation of wireEncode() also, the same check is being done. > > https://github.com/named-data-ndnSIM/ndn-cxx/blob/36ec104e23ba5395a8b4df411b776cdbef9c5cd4/src/interest.cpp#L279 const Block& > Interest::wireEncode() const > { > if (m_wire.hasWire()) > return m_wire; > ... > } > > Perhaps this is a redundant check inside L3 tracer. But, is this the only way to know the size of data being transferred over or received from the face? > > /anil. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Thu May 5 14:29:03 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 5 May 2016 14:29:03 -0700 Subject: [ndnSIM] How to calculate size of Interest/Data packet In-Reply-To: References: Message-ID: > On May 4, 2016, at 4:05 PM, Anil Jangam wrote: > > Hi. > > Calculating the size of Interest/Data packet wire, L3 tracer is done using the wireEncode() API. > > https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/tracers/ndn-l3-rate-tracer.cpp#L294 > > if (interest.hasWire()) { > std::get<1>(m_stats[face.shared_from_this()]).m_outInterests += > interest.wireEncode().size(); > } > > In the implementation of wireEncode() also, the same check is being done. > > https://github.com/named-data-ndnSIM/ndn-cxx/blob/36ec104e23ba5395a8b4df411b776cdbef9c5cd4/src/interest.cpp#L279 > const Block& > Interest::wireEncode() const > { > if (m_wire.hasWire()) > return m_wire; > ... > } > > Perhaps this is a redundant check inside L3 tracer. But, is this the only way to know the size of data being transferred over or received from the face? > > /anil. To know the size of the packet, one need to create the wire encoding of the packet. "wireEncode()" method doesn't encode all the time, but rather encodes once and caches the encoding for future reuse. Exception here are cases when some fields of the Interest are modified, in which case the cached version of the wire encoding is removed. The guard in interest.cpp, is to simply return the cached version of wire if it exists (not to encode again). The guard in L3Tracer serves an optimization different role for ndnSIM-native apps (ndn::Consumer*). When interest/data are exchanged between these apps and L3 stack, the wire format is not created at all. It gets created only when packet is moved through the actual wire ("Channel"). This optimization does not apply for apps that are based on ndn-cxx Face emulation. -- Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From anilj.mailing at gmail.com Sun May 8 23:46:56 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Sun, 8 May 2016 23:46:56 -0700 Subject: [ndnSIM] How to calculate size of Interest/Data packet In-Reply-To: References: Message-ID: Alex, The reason I was trying to find an alternative because this 'wireEncode()' code path is one of the major memory consumer in ndnSIM. Although there are optimizations provided by caching the block size after first encode(), it appears that memory is not freed after first encode. ==9587== 100,926,144 bytes in 73,852 blocks are still reachable in loss record 1,226 of 1,228 ==9587== at 0x4C2B0E0: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==9587== by 0x69A08DF: allocate (new_allocator.h:104) ==9587== by 0x69A08DF: _M_allocate (stl_vector.h:168) ==9587== by 0x69A08DF: void std::vector >::_M_emplace_back_aux(ndn::Block&&) (vector.tcc:404) ==9587== by 0x699C79C: emplace_back (vector.tcc:101) ==9587== by 0x699C79C: push_back (stl_vector.h:920) ==9587== by 0x699C79C: ndn::Block::parse() const (block.cpp:347) ==9587== by 0x6A1F5A8: ndn::Name::wireEncode() const (name.cpp:102) ==9587== by 0x6B4619F: nfd::DeadNonceList::makeEntry(ndn::Name const&, unsigned int) (dead-nonce-list.cpp:108) ==9587== by 0x6B4621D: nfd::DeadNonceList::has(ndn::Name const&, unsigned int) const (dead-nonce-list.cpp:92) ==9587== by 0x6B25A42: nfd::Forwarder::onIncomingInterest(nfd::Face&, ndn::Interest const&) (forwarder.cpp:86) ==9587== by 0x69B066A: operator() (functional:2471) ==9587== by 0x69B066A: operator() (signal-signal.hpp:241) ==9587== by 0x69B066A: operator() (signal-signal.hpp:255) ==9587== by 0x69B066A: emit_onReceiveInterest (face.hpp:194) ==9587== by 0x69B066A: ndn::Face::Impl::asyncExpressInterest(std::shared_ptr const&, std::function const&, std::function const&) (face-impl.hpp:170) ==9587== by 0x69AD13B: operator() (face.cpp:69) ==9587== by 0x69AD13B: std::_Function_handler const&, std::function const&)::{lambda()#1}>::_M_invoke(std::_Any_data const&) (functional:2071) ==9587== by 0xB84EC6C: ns3::DefaultSimulatorImpl::ProcessOneEvent() (default-simulator-impl.cc:149) /anil. On Thu, May 5, 2016 at 2:29 PM, Alex Afanasyev wrote: > > > On May 4, 2016, at 4:05 PM, Anil Jangam wrote: > > > > Hi. > > > > Calculating the size of Interest/Data packet wire, L3 tracer is done > using the wireEncode() API. > > > > > https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/tracers/ndn-l3-rate-tracer.cpp#L294 > > > > if (interest.hasWire()) { > > std::get<1>(m_stats[face.shared_from_this()]).m_outInterests += > > interest.wireEncode().size(); > > } > > > > In the implementation of wireEncode() also, the same check is being done. > > > > > https://github.com/named-data-ndnSIM/ndn-cxx/blob/36ec104e23ba5395a8b4df411b776cdbef9c5cd4/src/interest.cpp#L279 > > const Block& > > Interest::wireEncode() const > > { > > if (m_wire.hasWire()) > > return m_wire; > > ... > > } > > > > Perhaps this is a redundant check inside L3 tracer. But, is this the > only way to know the size of data being transferred over or received from > the face? > > > > /anil. > > > To know the size of the packet, one need to create the wire encoding of > the packet. "wireEncode()" method doesn't encode all the time, but rather > encodes once and caches the encoding for future reuse. Exception here are > cases when some fields of the Interest are modified, in which case the > cached version of the wire encoding is removed. > > The guard in interest.cpp, is to simply return the cached version of wire > if it exists (not to encode again). > > The guard in L3Tracer serves an optimization different role for > ndnSIM-native apps (ndn::Consumer*). When interest/data are exchanged > between these apps and L3 stack, the wire format is not created at all. It > gets created only when packet is moved through the actual wire > ("Channel"). This optimization does not apply for apps that are based on > ndn-cxx Face emulation. > > -- > Alex > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Tue May 10 16:32:36 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Tue, 10 May 2016 16:32:36 -0700 Subject: [ndnSIM] How to calculate size of Interest/Data packet In-Reply-To: References: Message-ID: Hi Anil This stack trace does not indicate DeadNonceList has a memory leak. DeadNonceList::makeEntry invokes Name::wireEncode, which causes the Interest name to allocate new buffer. If the Interest name is retained somewhere, this memory is not released. NDNOPS has observed a NameTree entry leak on the testbed, which may be related to this. Yours, Junxiao On Sun, May 8, 2016 at 11:46 PM, Anil Jangam wrote: > Alex, > > The reason I was trying to find an alternative because this 'wireEncode()' > code path is one of the major memory consumer in ndnSIM. Although there are > optimizations provided by caching the block size after first encode(), it > appears that memory is not freed after first encode. > > ==9587== 100,926,144 bytes in 73,852 blocks are still reachable in loss > record 1,226 of 1,228 > ==9587== at 0x4C2B0E0: operator new(unsigned long) (in > /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) > ==9587== by 0x69A08DF: allocate (new_allocator.h:104) > ==9587== by 0x69A08DF: _M_allocate (stl_vector.h:168) > ==9587== by 0x69A08DF: void std::vector std::allocator >::_M_emplace_back_aux(ndn::Block&&) > (vector.tcc:404) > ==9587== by 0x699C79C: emplace_back (vector.tcc:101) > ==9587== by 0x699C79C: push_back (stl_vector.h:920) > ==9587== by 0x699C79C: ndn::Block::parse() const (block.cpp:347) > ==9587== by 0x6A1F5A8: ndn::Name::wireEncode() const (name.cpp:102) > ==9587== by 0x6B4619F: nfd::DeadNonceList::makeEntry(ndn::Name const&, > unsigned int) (dead-nonce-list.cpp:108) > ==9587== by 0x6B4621D: nfd::DeadNonceList::has(ndn::Name const&, > unsigned int) const (dead-nonce-list.cpp:92) > ==9587== by 0x6B25A42: nfd::Forwarder::onIncomingInterest(nfd::Face&, > ndn::Interest const&) (forwarder.cpp:86) > ==9587== by 0x69B066A: operator() (functional:2471) > ==9587== by 0x69B066A: operator() (signal-signal.hpp:241) > ==9587== by 0x69B066A: operator() (signal-signal.hpp:255) > ==9587== by 0x69B066A: emit_onReceiveInterest ndn::util::signal::DummyExtraArg> (face.hpp:194) > ==9587== by 0x69B066A: > ndn::Face::Impl::asyncExpressInterest(std::shared_ptr > const&, std::function const&, > std::function const&) (face-impl.hpp:170) > ==9587== by 0x69AD13B: operator() (face.cpp:69) > ==9587== by 0x69AD13B: std::_Function_handler ndn::Face::expressInterest(ndn::Interest const&, std::function (ndn::Interest const&, ndn::Data&)> const&, std::function (ndn::Interest const&)> const&)::{lambda()#1}>::_M_invoke(std::_Any_data > const&) (functional:2071) > ==9587== by 0xB84EC6C: ns3::DefaultSimulatorImpl::ProcessOneEvent() > (default-simulator-impl.cc:149) > > > /anil. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From z.rezaiefar at yahoo.com Wed May 11 01:31:33 2016 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Wed, 11 May 2016 08:31:33 +0000 (UTC) Subject: [ndnSIM] install ggplot2 References: <1656975564.284787.1462955493377.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1656975564.284787.1462955493377.JavaMail.yahoo@mail.yahoo.com> Hello everyone,I have installed ggplot2 in Ubuntu 15.04 to run r script . however after running (Rscript src/ndnSIM/examples/graphs/drop-graph.R).I have gotten this message : Loading required package: methodsbut I do not know with which command I can install this package.Thanks in advanceregards -------------- next part -------------- An HTML attachment was scrubbed... URL: From z.rezaiefar at yahoo.com Wed May 11 05:47:05 2016 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Wed, 11 May 2016 12:47:05 +0000 (UTC) Subject: [ndnSIM] collecting information of cached data References: <1784519707.402274.1462970825774.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1784519707.402274.1462970825774.JavaMail.yahoo@mail.yahoo.com> Hello everyone,I would like to know that how I can collect information of cached data packet with specified signature in each router of network. for example I want to know how many data packets with specific signature?are cached in each router every second . where and how I should write the code to get this information.is there any example that helps me to understand this problem?any help? will be appreciated thanks in advance best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed May 11 10:31:40 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 11 May 2016 10:31:40 -0700 Subject: [ndnSIM] [Ndn-interest] Controlling the ressources allocated (Processors and RAM) for each node in NDNsim In-Reply-To: References: Message-ID: (moved to ndnSIM mailing list) Do you mean real resources or simulated resources? For the latter part it should be possible, but may need additional implementation. For the former, NS-3 doesn't provide this functionality, unfortunately. --- Alex > On May 11, 2016, at 6:59 AM, Bouacherine Abdelkader wrote: > > Hi, > I would like to know if there is way to set the ressources to be allocated to each node on the NDNsim scenario. > Thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From pratyushagnihotri03 at gmail.com Thu May 12 02:38:49 2016 From: pratyushagnihotri03 at gmail.com (Pratyush Agnihotri) Date: Thu, 12 May 2016 11:38:49 +0200 Subject: [ndnSIM] Regarding ndnSIM2.0 changed behavior from ndnSIM1.0 Message-ID: Dear Alex, Good day! I have just started learning and understanding from ndnSIM2.0. Currently, I am modifying ndnSIM1.0 example to ndnSIM2.0. I am facing problems while adaption due to completely changed source code of ndnSIM1.0 to ndnSIM2.0. During adaption of code, I faced several problems and these two are major ones because most of the implementation of example rely on them. - . /ns3/ndn-cf80211-net-device-face.h:16:35: fatal error: ns3/ndn-header-helper.h: No such file or directory - ./ns3/ndn-fw-cf80211.h:7:41: fatal error: ns3/ndn-forwarding-strategy.h: No such file or directory. The main problem is - these header files don't exist in ndnSIM2.0. I looked in release document of ndnSIM2.0 to find out if anything mentioned about replacement of these files with their alternative ones. Unfortunately, I didn't find anything. In ndnSIM documentation, I found an example for implementing custom forwarding strategy. Strategy.h is implemented in example but it doesn't contains methods which are defined in forwarding-strategy.h Can you please suggest me where I can find the description of deprecated methods from ndnSIM1.0 to ndnSIM2.0 as well as the methods are used in place of deprecated ones. It would be really helpful if you can suggest me for the same. Thanks -- Kind Regards, Pratyush Agnihotri -------------- next part -------------- An HTML attachment was scrubbed... URL: From h2015098 at pilani.bits-pilani.ac.in Fri May 13 23:25:48 2016 From: h2015098 at pilani.bits-pilani.ac.in (AJINKYA RAJPUT) Date: Sat, 14 May 2016 11:55:48 +0530 Subject: [ndnSIM] Namespace Message-ID: My question is slightly unrelated. Might be a little stupid question. any way while writing code in ndnSim, why dont we use the ns3 and ndnNamespace why do we define it?? Ajinkya -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlzu8 at gmail.com Sat May 14 12:35:23 2016 From: carlzu8 at gmail.com (Carl Zu) Date: Sat, 14 May 2016 21:35:23 +0200 Subject: [ndnSIM] Gathering results from ndnSIM Message-ID: Dear all, is there an example for "how to gather results from ndnSIM". Imagine I would like to define a variable for each node which is updated in forwarder and at the end of simulation see its value, and eventually do this for all nodes as a piece of results. Thanks for any guidance. Best, C -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhangran at bupt.edu.cn Mon May 16 02:02:03 2016 From: zhangran at bupt.edu.cn (zhangran at bupt.edu.cn) Date: Mon, 16 May 2016 17:02:03 +0800 Subject: [ndnSIM] How to get a nodes incoming outgoing interet statistics Message-ID: <201605161702028436549@bupt.edu.cn> Hi, Spyros and all! I am constructing my experiment demo with ndnSim and during the simulation, every node needs to know how many Interests it receives and forwards periodically. I find facecounter in NFD can record the statistics and output these data but it is only about a single face. So I am wondering if there is any method to get the total number of Interests received and forwarded by the node. And if there is no such method, then how can I get all the faces one node contains? Thank you very much! Best Wishes! zhangran at bupt.edu.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Mon May 16 05:57:10 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Mon, 16 May 2016 05:57:10 -0700 Subject: [ndnSIM] How to get a nodes incoming outgoing interet statistics In-Reply-To: <201605161702028436549@bupt.edu.cn> References: <201605161702028436549@bupt.edu.cn> Message-ID: <5739c3a8.c459620a.666f7.ffff93f4@mx.google.com> Hi Ran ForwarderCounters struct has counters for incoming and outgoing Interests of the forwarder. It can be accessed at nfd::Forwarder::getCounters(). Caution: Interests between NFD and management or NFD-RIB will be counted as well, because they go through the forwarder. To get all faces, look at nfd::Forwarder::getFaceTable(). Yours, Junxiao -----Original Message----- From: "zhangran at bupt.edu.cn" Sent: ?5/?16/?2016 2:02 To: "Spyridon (Spyros) Mastorakis" ; "ndnsim" Subject: [ndnSIM] How to get a nodes incoming outgoing interet statistics Hi, Spyros and all! I am constructing my experiment demo with ndnSim and during the simulation, every node needs to know how many Interests it receives and forwards periodically. I find facecounter in NFD can record the statistics and output these data but it is only about a single face. So I am wondering if there is any method to get the total number of Interests received and forwarded by the node. And if there is no such method, then how can I get all the faces one node contains? Thank you very much! Best Wishes! zhangran at bupt.edu.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Wed May 18 23:44:56 2016 From: ndn at sqh.me (qhsong) Date: Thu, 19 May 2016 14:44:56 +0800 Subject: [ndnSIM] ndnSIM node not send packet into another node Message-ID: Hi everyOne, Recently I use ndnSIM to build a network and test it, it works fine at the beginning. But Then I found the node didn't send the packet, they only transmit in its own interface. Following is the nfd.Forwarder log: 0.03s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.03s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.03s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/prefix0/%01/%FE%01 0.035s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.035s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.165s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.165s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.18s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.18s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.21s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.21s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.285s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.285s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.3s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.3s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.32s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.32s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.355s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.355s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.375s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.375s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.4s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.4s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.42s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.42s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.445s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.445s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 0.46s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/prefix0/%01/%FE%01 0.46s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/prefix0/%01/%FE%01 this packets didn't send to another node. What's wrong in my program, I have already configure FIB and forward strategy. Node 21 is the consumer node. Can you give some advice for me? Best wish, qhsong -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Thu May 19 02:48:28 2016 From: dhiabimen at gmail.com (Dhiab Imen) Date: Thu, 19 May 2016 10:48:28 +0100 Subject: [ndnSIM] Average response time calculation Message-ID: Hi for all, There any one who can tell me how average response time is defined and how can I calculate it using trace files. Thnx a lot for your reply. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Fri May 20 00:30:57 2016 From: ndn at sqh.me (qhsong) Date: Fri, 20 May 2016 15:30:57 +0800 Subject: [ndnSIM] ndnSIM didn't receive packet Message-ID: Hi every, In my experiment, I try to send interest into another node, but it failed, I run it by following command: NS_LOG=nfd.Strategy:nfd.Forwarder:ndn.NetDeviceFace ./waf --run=experiment the send log look like this: 0.001s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%02/%FE%00 1299 0.001s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%02/%FE%00 1300 0.001s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%02/%FE%00 1301 0.001s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b5c6c) 1302 0.002s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%03/%FE%00 1303 0.002s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%03/%FE%00 1304 0.002s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%03/%FE%00 1305 0.002s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b62d4) 1306 0.003s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%04/%FE%00 1307 0.003s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%04/%FE%00 1308 0.003s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%04/%FE%00 1309 0.003s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b6b24) 1310 0.004s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%05/%FE%00 1311 0.004s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%05/%FE%00 1312 0.004s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%05/%FE%00 1313 0.004s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b73bc) It seems another node didn't receive the packet. Any one can give some ideas about this? Thanks for your help. Best Wish, Qhsong -------------- next part -------------- An HTML attachment was scrubbed... URL: From ali1marandi at gmail.com Fri May 20 02:50:26 2016 From: ali1marandi at gmail.com (Ali Marandi) Date: Fri, 20 May 2016 11:50:26 +0200 Subject: [ndnSIM] Strange bug: some of data objects do not get back from producer Message-ID: Hi everyone ! Running my code, data objects get back successfully from producer through the pending downstreams for most of names. However, for some of them, nothing happens after onOutgoingData is called at the producer, i.e., looks as though data is sent out from the producer, but it will not be received in any downstream node. Could someone please give me some clue ? Thanks in advance. Ali -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sun May 22 06:17:40 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sun, 22 May 2016 17:47:40 +0430 Subject: [ndnSIM] Calculate metric for a prefix Message-ID: Hi everyone, In my custom application, based on the received interest I want to create a FIB entry for a prefix - which is retrieved by processing the interest's name. For using FIBHelper::AddRoute in need to have the metric for prefix. How can I calculate it? Is there any method some where which you(in a node) can give it prefix and it gives you back the metric for that prefix? Thanks, Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 23 17:26:08 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 23 May 2016 17:26:08 -0700 Subject: [ndnSIM] collecting information of cached data In-Reply-To: <1784519707.402274.1462970825774.JavaMail.yahoo@mail.yahoo.com> References: <1784519707.402274.1462970825774.JavaMail.yahoo.ref@mail.yahoo.com> <1784519707.402274.1462970825774.JavaMail.yahoo@mail.yahoo.com> Message-ID: Hi, you will have to extend the current CS tracer. I have not tried to do the specific thing that you asked, but the general ideal is that you have to extend the already implemented methods CacheHits, CacheMisses of the CStracer tracer. Please take a look here: https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/tracers/ndn-cs-tracer.cpp#L261-L271 Hope that this helps. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 11, 2016, at 5:47 AM, Zeinab Rezaiefar wrote: > > Hello everyone, > I would like to know that how I can collect information of cached data packet with specified signature in each router of network. > for example I want to know how many data packets with specific signature are cached in each router every second . where and how I should write the code to get this information. > is there any example that helps me to understand this problem? > any help will be appreciated > thanks in advance > best regards > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 23 17:28:33 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 23 May 2016 17:28:33 -0700 Subject: [ndnSIM] Namespace In-Reply-To: References: Message-ID: <41E5D769-1116-4B97-A96C-D9BE3619B27E@cs.ucla.edu> Hi, the use of namespaces is a common C++ programming practice. For more details, you can take a look here: http://en.cppreference.com/w/cpp/language/namespace Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 13, 2016, at 11:25 PM, AJINKYA RAJPUT wrote: > > My question is slightly unrelated. Might be a little stupid question. any way > while writing code in ndnSim, why dont we use the ns3 and ndnNamespace > why do we define it?? > Ajinkya -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 23 17:36:17 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 23 May 2016 17:36:17 -0700 Subject: [ndnSIM] ndnSIM didn't receive packet In-Reply-To: References: Message-ID: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Hi, I will try to guess what might be going on. Such a thing can happen if you have a node with multiple faces and the consumer application running on the first face sends an Interest that can be satisfied by the producer application running on the other face. Is this the case? This could be also possible if you have a producer and consumer application running on the same face. However, this should not be the case, since NFD is not supposed to forward an Interest through the face that was received. Hope that this helps! Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 20, 2016, at 12:30 AM, qhsong wrote: > > Hi every, > > In my experiment, I try to send interest into another node, but it failed, I run it by following command: > NS_LOG=nfd.Strategy:nfd.Forwarder:ndn.NetDeviceFace ./waf --run=experiment > > the send log look like this: > > 0.001s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%02/%FE%00 > 1299 0.001s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%02/%FE%00 > 1300 0.001s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%02/%FE%00 > 1301 0.001s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b5c6c) > 1302 0.002s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%03/%FE%00 > 1303 0.002s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%03/%FE%00 > 1304 0.002s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%03/%FE%00 > 1305 0.002s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b62d4) > 1306 0.003s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%04/%FE%00 > 1307 0.003s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%04/%FE%00 > 1308 0.003s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%04/%FE%00 > 1309 0.003s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b6b24) > 1310 0.004s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test0/%05/%FE%00 > 1311 0.004s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test0/%05/%FE%00 > 1312 0.004s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test0/%05/%FE%00 > 1313 0.004s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b73bc) > > It seems another node didn't receive the packet. Any one can give some ideas about this? > Thanks for your help. > > Best Wish, > Qhsong > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 23 17:59:31 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 23 May 2016 17:59:31 -0700 Subject: [ndnSIM] Average response time calculation In-Reply-To: References: Message-ID: Hi, if you refer to the Round Trip Time (or the end to end delay), you will have to take the following steps: 1) parse, for every Interest, the time that it is sent 2) parse the time that the corresponding data packet comes back (or the time that this Interest reaches the producer for the end to end delay) 3) Subtract (1) from (2) To generate the trace file, you can use the L3 tracer. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 19, 2016, at 2:48 AM, Dhiab Imen wrote: > > Hi for all, > > There any one who can tell me how average response time is defined and how can I calculate it using trace files. > > Thnx a lot for your reply. > > -- > Cordialement > Imen Dhiab > > *************************************************************************************************** > Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. > Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. > +216 53 59 19 88 > Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html > *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 23 18:03:24 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 23 May 2016 18:03:24 -0700 Subject: [ndnSIM] Strange bug: some of data objects do not get back from producer In-Reply-To: References: Message-ID: <3E670EC3-9DA3-449C-B105-2FFD95227AEE@cs.ucla.edu> Hi Ali, this behavior can happen for a number of reasons. Could you please try to see what is going on by enabling the forwarder logging component during your simulation. You can do that by typing: NS_LOG=nfd.Forwarder ./waf --run= Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 20, 2016, at 2:50 AM, Ali Marandi wrote: > > Hi everyone ! > > Running my code, data objects get back successfully from producer through the pending downstreams for most of names. However, for some of them, nothing happens after onOutgoingData is called at the producer, i.e., looks as though data is sent out from the producer, but it will not be received in any downstream node. > > Could someone please give me some clue ? > > Thanks in advance. > Ali -------------- next part -------------- An HTML attachment was scrubbed... URL: From fcampioni at algomau.ca Mon May 23 18:38:49 2016 From: fcampioni at algomau.ca (Fabio Campioni) Date: Tue, 24 May 2016 01:38:49 +0000 Subject: [ndnSIM] NFD CS Policy Implementation Message-ID: <1f0b0830eccd4dab9b22d983de126e5b@AU-P-EXCH-02.algomau.auc.ca> Hello all, Recently I have come across the following repository on GitHub: https://github.com/ndncomm/nfd-caching-policies It appears that these new cache replacement policies have been implemented within NFD, rather than the existing depreciated content store in ndnSIM. However, I am unable to do the same with my local installation of ndnSIM as there are missing header files and such. I am then led to believe that these new caching policies were written with a modified version of ndnSIM, but I am unable to find this modified version. I stumbled across this repository, https://github.com/ndncomm/nfd-caching-ndnsim, but it appears incomplete. When I tried copying these files to my ndnSIM directory, it then failed to launch most likely due to incompatibilities. I would appreciate if anyone familiar with the above repositories could point me in the right direction. Thank you, Fabio Campioni -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Mon May 23 18:53:20 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Mon, 23 May 2016 18:53:20 -0700 Subject: [ndnSIM] Calculate metric for a prefix In-Reply-To: References: Message-ID: Hi Sabet, the cost has to do with the overall routing/forwarding administration and policies. I do not think that we have a standardized way to calculated the cost for the next hop of a FIB entry. If you think about it, the adaptive forwarding plane and the forwarding strategy can override the routing plane, set/reset the cost for each next hop and change the face ranking on each node. To access the cost, you will have to access the FIB of a node and then use the FIB look up API: https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib.hpp#L57-L69 The highlighted methods will return a shared_ptr to a fib entry. Then you can use the fib entry API to get the next-hops for this fib entry: https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-entry.hpp#L62-L63 Finally, you will use the next-hop API to get the cost of each next hop: https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-nexthop.hpp#L50-L51 Hope that this helps, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 22, 2016, at 6:17 AM, Muhammad Hosain Abdollahi Sabet wrote: > > Hi everyone, > > In my custom application, based on the received interest I want to create a FIB entry for a prefix - which is retrieved by processing the interest's name. For using FIBHelper::AddRoute in need to have the metric for prefix. How can I calculate it? Is there any method some where which you(in a node) can give it prefix and it gives you back the metric for that prefix? > > Thanks, > Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Mon May 23 20:36:00 2016 From: ndn at sqh.me (qhsong) Date: Tue, 24 May 2016 11:36:00 +0800 Subject: [ndnSIM] ndnSIM didn't receive packet In-Reply-To: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: Hi, Thanks for your help. I first use AnnotatedTopologyReader and then use NodeContainer.Create() some node, I try to use p2p connection to connection them ,then use ndnHelper.Install(). Then I change all node generator by AnnotatedTopologyReader, It works. Maybe AnnotatedTopologyReader not compatible with NodeContainer. Is this a bug? Thanks for your help. qhsong 2016-05-24 8:36 GMT+08:00 Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu>: > Hi, > > I will try to guess what might be going on. Such a thing can happen if you > have a node with multiple faces and the consumer application running on the > first face sends an Interest that can be satisfied by the producer > application running on the other face. Is this the case? > > This could be also possible if you have a producer and consumer > application running on the same face. However, this should not be the case, > since NFD is not supposed to forward an Interest through the face that was > received. > > Hope that this helps! > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > > On May 20, 2016, at 12:30 AM, qhsong wrote: > > Hi every, > > In my experiment, I try to send interest into another node, but it failed, > I run it by following command: > NS_LOG=nfd.Strategy:nfd.Forwarder:ndn.NetDeviceFace ./waf --run=experiment > > the send log look like this: > > 0.001s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest > face=258 interest=/test0/%02/%FE%00 > 1299 0.001s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] > onContentStoreMiss interest=/test0/%02/%FE%00 > 1300 0.001s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] > onOutgoingInterest face=256 interest=/test0/%02/%FE%00 > 1301 0.001s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b5c6c) > 1302 0.002s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] > onIncomingInterest face=258 interest=/test0/%03/%FE%00 > 1303 0.002s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] > onContentStoreMiss interest=/test0/%03/%FE%00 > 1304 0.002s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] > onOutgoingInterest face=256 interest=/test0/%03/%FE%00 > 1305 0.002s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b62d4) > 1306 0.003s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] > onIncomingInterest face=258 interest=/test0/%04/%FE%00 > 1307 0.003s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] > onContentStoreMiss interest=/test0/%04/%FE%00 > 1308 0.003s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] > onOutgoingInterest face=256 interest=/test0/%04/%FE%00 > 1309 0.003s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b6b24) > 1310 0.004s 21 nfd.Forwarder:onIncomingInterest(): [DEBUG] > onIncomingInterest face=258 interest=/test0/%05/%FE%00 > 1311 0.004s 21 nfd.Forwarder:onContentStoreMiss(): [DEBUG] > onContentStoreMiss interest=/test0/%05/%FE%00 > 1312 0.004s 21 nfd.Forwarder:onOutgoingInterest(): [DEBUG] > onOutgoingInterest face=256 interest=/test0/%05/%FE%00 > 1313 0.004s 21 ndn.NetDeviceFace:sendInterest(0x8ef7634, 0x91b73bc) > > It seems another node didn't receive the packet. Any one can give some > ideas about this? > Thanks for your help. > > Best Wish, > Qhsong > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Mon May 23 20:39:14 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Mon, 23 May 2016 20:39:14 -0700 Subject: [ndnSIM] ndnSIM didn't receive packet In-Reply-To: References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: Hi qhsong Can you post a code snippet that shows what you are doing, and indicate what does not work? Yours, Junxiao On Mon, May 23, 2016 at 8:36 PM, qhsong wrote: > Hi, > Thanks for your help. I first use AnnotatedTopologyReader and then use > NodeContainer.Create() some node, I try to use p2p connection to connection > them ,then use ndnHelper.Install(). > Then I change all node generator by AnnotatedTopologyReader, It works. > Maybe AnnotatedTopologyReader not compatible with NodeContainer. > Is this a bug? > > Thanks for your help. > qhsong > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Mon May 23 22:20:42 2016 From: ndn at sqh.me (qhsong) Date: Tue, 24 May 2016 13:20:42 +0800 Subject: [ndnSIM] Fwd: ndnSIM didn't receive packet In-Reply-To: References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: Hi JunXiao, First I TopologyReader like this: AnnotatedTopologyReader topologyReader("", 25); topologyReader.SetFileName("scratch/topo.txt"); topologyReader.Read(); Then ,create some Nodes by this: NodeContainer consumerNodes; consumerNodes.Create(3); I connected then with p2pHelper: for(int i=0;i<3;i++) { PointToPointHelper p2p; p2p.Install(Names::Find("Node_in_Topo.txt"), consumerNodes.get(i)); } Install ndnHelper one by one. for(int i=0;i<3;i++) { ndn::helper ndnHelper; //set content store size in different value ndnHepler.Install(consumerNodes); } then Install ndnHelper in topo.txt node. Install consumer and producer in other node. That's what I do for ndnSIM. I also note that in --vis mode, the node I use NodeContainer.Create is gray, and other nodes is red. Is this wrong?After I switch all node generator by topo.txt, It works. Thanks, qhsong 2016-05-24 11:39 GMT+08:00 Junxiao Shi : > Hi qhsong > > Can you post a code snippet that shows what you are doing, and indicate > what does not work? > > Yours, Junxiao > > On Mon, May 23, 2016 at 8:36 PM, qhsong wrote: > >> Hi, >> Thanks for your help. I first use AnnotatedTopologyReader and then use >> NodeContainer.Create() some node, I try to use p2p connection to connection >> them ,then use ndnHelper.Install(). >> Then I change all node generator by AnnotatedTopologyReader, It works. >> Maybe AnnotatedTopologyReader not compatible with NodeContainer. >> Is this a bug? >> >> Thanks for your help. >> qhsong >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Mon May 23 22:35:22 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Tue, 24 May 2016 10:05:22 +0430 Subject: [ndnSIM] Fwd: ndnSIM didn't receive packet In-Reply-To: References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: qhsong, I don't want to interrupt. But I had a similar problem recently. Interests reach a node, but OnInterest method is not being called, right? Are you using a cutom app? Are sure you have FIBs populated correctly? Thanks, Sabet ????? ????? ?? ???? On Tue, May 24, 2016 at 9:50 AM, qhsong wrote: > > Hi JunXiao, > > First I TopologyReader like this: > > AnnotatedTopologyReader topologyReader("", 25); > topologyReader.SetFileName("scratch/topo.txt"); > topologyReader.Read(); > > Then ,create some Nodes by this: > NodeContainer consumerNodes; > consumerNodes.Create(3); > > I connected then with p2pHelper: > > for(int i=0;i<3;i++) { > PointToPointHelper p2p; > p2p.Install(Names::Find("Node_in_Topo.txt"), > consumerNodes.get(i)); > } > > Install ndnHelper one by one. > for(int i=0;i<3;i++) { > ndn::helper ndnHelper; > //set content store size in different value > ndnHepler.Install(consumerNodes); > } > > then Install ndnHelper in topo.txt node. Install consumer and producer in > other node. > > That's what I do for ndnSIM. > I also note that in --vis mode, the node I use NodeContainer.Create is > gray, and other nodes is red. > > Is this wrong?After I switch all node generator by topo.txt, It works. > > Thanks, > qhsong > > > 2016-05-24 11:39 GMT+08:00 Junxiao Shi : > >> Hi qhsong >> >> Can you post a code snippet that shows what you are doing, and indicate >> what does not work? >> >> Yours, Junxiao >> >> On Mon, May 23, 2016 at 8:36 PM, qhsong wrote: >> >>> Hi, >>> Thanks for your help. I first use AnnotatedTopologyReader and then use >>> NodeContainer.Create() some node, I try to use p2p connection to connection >>> them ,then use ndnHelper.Install(). >>> Then I change all node generator by AnnotatedTopologyReader, It works. >>> Maybe AnnotatedTopologyReader not compatible with NodeContainer. >>> Is this a bug? >>> >>> Thanks for your help. >>> qhsong >>> >> > > > _______________________________________________ > 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 ndn at sqh.me Mon May 23 23:03:14 2016 From: ndn at sqh.me (qhsong) Date: Tue, 24 May 2016 14:03:14 +0800 Subject: [ndnSIM] Fwd: ndnSIM didn't receive packet In-Reply-To: References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: Hi Sabet, I can sure FIBs seem no problem. Because I change node generator method, it works.I did't use consume app, just use default ndn-producer and ndn-consumer. Thanks, qhsong 2016-05-24 13:35 GMT+08:00 Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com>: > qhsong, > > I don't want to interrupt. But I had a similar problem recently. Interests > reach a node, but OnInterest method is not being called, right? Are you > using a cutom app? Are sure you have FIBs populated correctly? > > Thanks, > Sabet > > ????? ????? > ?? ???? > > On Tue, May 24, 2016 at 9:50 AM, qhsong wrote: > >> >> Hi JunXiao, >> >> First I TopologyReader like this: >> >> AnnotatedTopologyReader topologyReader("", 25); >> topologyReader.SetFileName("scratch/topo.txt"); >> topologyReader.Read(); >> >> Then ,create some Nodes by this: >> NodeContainer consumerNodes; >> consumerNodes.Create(3); >> >> I connected then with p2pHelper: >> >> for(int i=0;i<3;i++) { >> PointToPointHelper p2p; >> p2p.Install(Names::Find("Node_in_Topo.txt"), >> consumerNodes.get(i)); >> } >> >> Install ndnHelper one by one. >> for(int i=0;i<3;i++) { >> ndn::helper ndnHelper; >> //set content store size in different value >> ndnHepler.Install(consumerNodes); >> } >> >> then Install ndnHelper in topo.txt node. Install consumer and producer in >> other node. >> >> That's what I do for ndnSIM. >> I also note that in --vis mode, the node I use NodeContainer.Create is >> gray, and other nodes is red. >> >> Is this wrong?After I switch all node generator by topo.txt, It works. >> >> Thanks, >> qhsong >> >> >> 2016-05-24 11:39 GMT+08:00 Junxiao Shi : >> >>> Hi qhsong >>> >>> Can you post a code snippet that shows what you are doing, and indicate >>> what does not work? >>> >>> Yours, Junxiao >>> >>> On Mon, May 23, 2016 at 8:36 PM, qhsong wrote: >>> >>>> Hi, >>>> Thanks for your help. I first use AnnotatedTopologyReader and then use >>>> NodeContainer.Create() some node, I try to use p2p connection to connection >>>> them ,then use ndnHelper.Install(). >>>> Then I change all node generator by AnnotatedTopologyReader, It works. >>>> Maybe AnnotatedTopologyReader not compatible with NodeContainer. >>>> Is this a bug? >>>> >>>> Thanks for your help. >>>> qhsong >>>> >>> >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Tue May 24 00:27:25 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Tue, 24 May 2016 11:57:25 +0430 Subject: [ndnSIM] Calculate metric for a prefix In-Reply-To: References: Message-ID: You mean ScenarioHelper::Routeinfo and ScenarioHelper::addRoutes cannot help? Regards, Sabet ????? ????? ?? ???? On Tue, May 24, 2016 at 6:23 AM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > Hi Sabet, > > the cost has to do with the overall routing/forwarding administration and > policies. I do not think that we have a standardized way to calculated the > cost for the next hop of a FIB entry. If you think about it, the adaptive > forwarding plane and the forwarding strategy can override the routing > plane, set/reset the cost for each next hop and change the face ranking on > each node. > > To access the cost, you will have to access the FIB of a node and then use > the FIB look up API: > > > https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib.hpp#L57-L69 > > The highlighted methods will return a shared_ptr to a fib entry. Then you > can use the fib entry API to get the next-hops for this fib entry: > > > https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-entry.hpp#L62-L63 > > Finally, you will use the next-hop API to get the cost of each next hop: > > > https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-nexthop.hpp#L50-L51 > > > Hope that this helps, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > On May 22, 2016, at 6:17 AM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > > Hi everyone, > > In my custom application, based on the received interest I want to create > a FIB entry for a prefix - which is retrieved by processing the interest's > name. For using FIBHelper::AddRoute in need to have the metric for prefix. > How can I calculate it? Is there any method some where which you(in a > node) can give it prefix and it gives you back the metric for that prefix? > > Thanks, > Sabet > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue May 24 16:53:00 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 24 May 2016 16:53:00 -0700 Subject: [ndnSIM] NFD CS Policy Implementation In-Reply-To: <1f0b0830eccd4dab9b22d983de126e5b@AU-P-EXCH-02.algomau.auc.ca> References: <1f0b0830eccd4dab9b22d983de126e5b@AU-P-EXCH-02.algomau.auc.ca> Message-ID: <0B359977-798F-4944-AA42-63BA893F26A4@cs.ucla.edu> Hi Fabio, I think that in order to use the modified version of NFD that supports the policies, you need to install this modified version of ndnSIM: https://github.com/ndncomm/nfd-caching-ndnsim Let me know if that resolves your issues. Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 23, 2016, at 6:38 PM, Fabio Campioni wrote: > > Hello all, > > Recently I have come across the following repository on GitHub: > > https://github.com/ndncomm/nfd-caching-policies > > It appears that these new cache replacement policies have been implemented within NFD, rather than the existing depreciated content store in ndnSIM. However, I am unable to do the same with my local installation of ndnSIM as there are missing header files and such. > > I am then led to believe that these new caching policies were written with a modified version of ndnSIM, but I am unable to find this modified version. I stumbled across this repository, https://github.com/ndncomm/nfd-caching-ndnsim , but it appears incomplete. When I tried copying these files to my ndnSIM directory, it then failed to launch most likely due to incompatibilities. > > I would appreciate if anyone familiar with the above repositories could point me in the right direction. > > Thank you, > > Fabio Campioni -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue May 24 16:56:41 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 24 May 2016 16:56:41 -0700 Subject: [ndnSIM] Calculate metric for a prefix In-Reply-To: References: Message-ID: <7F896E6C-F592-4878-AF65-F9EFB85F48C9@cs.ucla.edu> The first one has been designed to facilitate the creation of the ndnSIM unit-tests. The second one can add and potentially update a FIB entry (if it already exists). I do not see how you could access the entries this way and get the cost of each next hop. Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 24, 2016, at 12:27 AM, Muhammad Hosain Abdollahi Sabet wrote: > > You mean ScenarioHelper::Routeinfo and ScenarioHelper::addRoutes cannot help? > > Regards, > Sabet > > ????? ????? > ?? ???? > > On Tue, May 24, 2016 at 6:23 AM, Spyridon (Spyros) Mastorakis > wrote: > Hi Sabet, > > the cost has to do with the overall routing/forwarding administration and policies. I do not think that we have a standardized way to calculated the cost for the next hop of a FIB entry. If you think about it, the adaptive forwarding plane and the forwarding strategy can override the routing plane, set/reset the cost for each next hop and change the face ranking on each node. > > To access the cost, you will have to access the FIB of a node and then use the FIB look up API: > > https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib.hpp#L57-L69 > > The highlighted methods will return a shared_ptr to a fib entry. Then you can use the fib entry API to get the next-hops for this fib entry: > > https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-entry.hpp#L62-L63 > > Finally, you will use the next-hop API to get the cost of each next hop: > > https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-nexthop.hpp#L50-L51 > > Hope that this helps, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > >> On May 22, 2016, at 6:17 AM, Muhammad Hosain Abdollahi Sabet > wrote: >> >> Hi everyone, >> >> In my custom application, based on the received interest I want to create a FIB entry for a prefix - which is retrieved by processing the interest's name. For using FIBHelper::AddRoute in need to have the metric for prefix. How can I calculate it? Is there any method some where which you(in a node) can give it prefix and it gives you back the metric for that prefix? >> >> Thanks, >> Sabet > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mastorakis at CS.UCLA.EDU Tue May 24 16:58:44 2016 From: mastorakis at CS.UCLA.EDU (Spyridon (Spyros) Mastorakis) Date: Tue, 24 May 2016 16:58:44 -0700 Subject: [ndnSIM] NFD CS Policy Implementation In-Reply-To: <0B359977-798F-4944-AA42-63BA893F26A4@cs.ucla.edu> References: <1f0b0830eccd4dab9b22d983de126e5b@AU-P-EXCH-02.algomau.auc.ca> <0B359977-798F-4944-AA42-63BA893F26A4@cs.ucla.edu> Message-ID: <6AE8B855-A80E-4D13-9D68-C1B3FA613781@cs.ucla.edu> Another note, since I just noticed that you said you have already tried to use this modified version of ndnSIM: What exactly is wrong? Thanks, Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory Computer Science Department UCLA > On May 24, 2016, at 4:53 PM, Spyridon (Spyros) Mastorakis wrote: > > Hi Fabio, > > I think that in order to use the modified version of NFD that supports the policies, you need to install this modified version of ndnSIM: > > https://github.com/ndncomm/nfd-caching-ndnsim > > Let me know if that resolves your issues. > > Thanks, > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > >> On May 23, 2016, at 6:38 PM, Fabio Campioni > wrote: >> >> Hello all, >> >> Recently I have come across the following repository on GitHub: >> >> https://github.com/ndncomm/nfd-caching-policies >> >> It appears that these new cache replacement policies have been implemented within NFD, rather than the existing depreciated content store in ndnSIM. However, I am unable to do the same with my local installation of ndnSIM as there are missing header files and such. >> >> I am then led to believe that these new caching policies were written with a modified version of ndnSIM, but I am unable to find this modified version. I stumbled across this repository, https://github.com/ndncomm/nfd-caching-ndnsim , but it appears incomplete. When I tried copying these files to my ndnSIM directory, it then failed to launch most likely due to incompatibilities. >> >> I would appreciate if anyone familiar with the above repositories could point me in the right direction. >> >> Thank you, >> >> Fabio Campioni > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cs15mtech11007 at iith.ac.in Tue May 24 21:44:47 2016 From: cs15mtech11007 at iith.ac.in (Krishnakanth Singh) Date: Wed, 25 May 2016 10:14:47 +0530 Subject: [ndnSIM] NDN and caching Message-ID: Hi, Is it possible to get cache content for every node after warmup phase and traffic pattern through the consumer like the interest packets they sent . -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Wed May 25 00:11:20 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Wed, 25 May 2016 11:41:20 +0430 Subject: [ndnSIM] Calculate metric for a prefix In-Reply-To: <7F896E6C-F592-4878-AF65-F9EFB85F48C9@cs.ucla.edu> References: <7F896E6C-F592-4878-AF65-F9EFB85F48C9@cs.ucla.edu> Message-ID: Actually I don't want to update entries. I just want to set a calculated metric at the time of using FIBHelper::AddRoute Thanks, Sabet ????? ????? ?? ???? On Wed, May 25, 2016 at 4:26 AM, Spyridon (Spyros) Mastorakis < mastorakis at cs.ucla.edu> wrote: > The first one has been designed to facilitate the creation of the ndnSIM > unit-tests. The second one can add and potentially update a FIB entry (if > it already exists). I do not see how you could access the entries this way > and get the cost of each next hop. > > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > Computer Science Department > UCLA > > On May 24, 2016, at 12:27 AM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > > You mean ScenarioHelper::Routeinfo and ScenarioHelper::addRoutes cannot > help? > > Regards, > Sabet > > ????? ????? > ?? ???? > > On Tue, May 24, 2016 at 6:23 AM, Spyridon (Spyros) Mastorakis < > mastorakis at cs.ucla.edu> wrote: > >> Hi Sabet, >> >> the cost has to do with the overall routing/forwarding administration and >> policies. I do not think that we have a standardized way to calculated the >> cost for the next hop of a FIB entry. If you think about it, the adaptive >> forwarding plane and the forwarding strategy can override the routing >> plane, set/reset the cost for each next hop and change the face ranking on >> each node. >> >> To access the cost, you will have to access the FIB of a node and then >> use the FIB look up API: >> >> >> https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib.hpp#L57-L69 >> >> The highlighted methods will return a shared_ptr to a fib entry. Then you >> can use the fib entry API to get the next-hops for this fib entry: >> >> >> https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-entry.hpp#L62-L63 >> >> Finally, you will use the next-hop API to get the cost of each next hop: >> >> >> https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/fib-nexthop.hpp#L50-L51 >> >> >> Hope that this helps, >> >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> Computer Science Department >> UCLA >> >> On May 22, 2016, at 6:17 AM, Muhammad Hosain Abdollahi Sabet < >> mhasabet at gmail.com> wrote: >> >> Hi everyone, >> >> In my custom application, based on the received interest I want to create >> a FIB entry for a prefix - which is retrieved by processing the interest's >> name. For using FIBHelper::AddRoute in need to have the metric for prefix. >> How can I calculate it? Is there any method some where which you(in a >> node) can give it prefix and it gives you back the metric for that prefix? >> >> Thanks, >> Sabet >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Wed May 25 02:51:08 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Wed, 25 May 2016 14:21:08 +0430 Subject: [ndnSIM] Having different behavior on different nodes Message-ID: Hi all, How can I define different forwarding pipelines for nodes? I mean for example some nodes check something additional, but others follow the normal(current) pipeline. Do we have a shorter way than extending another pipeline? Thanks, Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Wed May 25 11:27:44 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Wed, 25 May 2016 11:27:44 -0700 Subject: [ndnSIM] Having different behavior on different nodes In-Reply-To: References: Message-ID: You will have to add some hack into the code. You can include ns-3 headers and then use Simulator::GetContext() to know simulation node to which the forwarder belongs. Using this one, you can a fork in the pipeline processing. -- Alex > On May 25, 2016, at 2:51 AM, Muhammad Hosain Abdollahi Sabet wrote: > > Hi all, > > How can I define different forwarding pipelines for nodes? I mean for example some nodes check something additional, but others follow the normal(current) pipeline. Do we have a shorter way than extending another pipeline? > > Thanks, > Sabet -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From z.rezaiefar at yahoo.com Wed May 25 18:35:37 2016 From: z.rezaiefar at yahoo.com (Zeinab Rezaiefar) Date: Thu, 26 May 2016 01:35:37 +0000 (UTC) Subject: [ndnSIM] using exclude field References: <91327854.863326.1464226537239.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <91327854.863326.1464226537239.JavaMail.yahoo@mail.yahoo.com> Hello everyone,I want to run a scenario in ndnsim for cache poisoning attack. In this scenario, at first an invalid user sends an Interest message with a specific prefix name and then,?an illegal provider injects invalid content to the network. later on, when the valid consumer request for this prefix, the routers return the invalid message saved in their caches. however, the legal consumer resend its request with Interest message which contain exclude field of the invalid message, so the router forward this message toward provider instead fetching the?invalid content from their cache. my question is that how should write this scenario in ndnsim.?is there any example of using exclude field in ndnsim?.any help will be appreciatethanks in advancebest regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Thu May 26 10:58:53 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Thu, 26 May 2016 22:28:53 +0430 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG Message-ID: ?Hi All, I have faced a situation in which visualizer shows an exchange (both interest and data), but NS_LOG doesn't show it. Is it a bug or something? Or that exchange is really happening? Thanks, Sabet ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Fri May 27 14:53:27 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Fri, 27 May 2016 14:53:27 -0700 Subject: [ndnSIM] ndnSIM with NFD 0.4 Message-ID: Hi ndnSIM developers Is there a plan for a ndnSIM release with NFD 0.4.0 or above? If so, which Redmine issue should we watch? Yours, Junxiao -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Fri May 27 18:59:22 2016 From: ndn at sqh.me (qhsong) Date: Sat, 28 May 2016 09:59:22 +0800 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: Hi Sabet, Can you print your run command? What class you print in NS_LOG?Give us some detail. Thanks, qhsong 2016-05-27 1:58 GMT+08:00 Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com>: > ?Hi All, > > I have faced a situation in which visualizer shows an exchange (both > interest and data), but NS_LOG doesn't show it. Is it a bug or something? > Or that exchange is really happening? > > Thanks, > Sabet > > ? > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sat May 28 01:05:36 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sat, 28 May 2016 12:35:36 +0430 Subject: [ndnSIM] Not being able to build pretty much the same TypeId Message-ID: ?Hello everyone, Using http://github.com/cawka/ndnSIM-scenario-template, I'm writing 2 custom applications. In TypeId they are pretty much the same: TypeId Consumer::GetTypeId() { static TypeId tid = TypeId ("Consumer") .SetGroupName("Ndn") .SetParent() .AddConstructor() .AddAttribute("Prefix","Prefix, for which consumer sends interest", StringValue("/"), ndn::MakeNameAccessor(&Consumer::m_interestName), ndn::MakeNameChecker()) .AddAttribute("Hint","Forwarding Hint Name", StringValue("/"), MakeStringAccessor(&Consumer::m_linkName), MakeStringChecker()) .AddAttribute("HasLink","Does this app use Link?", BooleanValue(false), MakeBooleanAccessor(&Consumer::m_hasLink), MakeBooleanChecker()) .AddAttribute("LifeTime", "Interest Life Time", StringValue("2s"), MakeTimeAccessor(&Consumer::m_interestLifeTime), MakeTimeChecker()); return tid; } And the other one is: TypeId Producer::GetTypeId(){ static TypeId tid = TypeId ("Producer") .SetGroupName("Ndn") .SetParent() .AddConstructor() .AddAttribute("Prefix", "Prefix, for which producer has the data", StringValue("/"), MakeNameAccessor(&Producer::m_prefix), ndn::MakeNameChecker()) .AddAttribute("LinkName", "The Name of Forwarding Hint", StringValue("/"), MakeNameAccessor(&Producer::m_linkName), ndn::MakeNameChecker()) .AddAttribute("PayloadSize", "Virtual payload size for Content packets", UintegerValue(1024), MakeUintegerAccessor(&Producer::m_virtualPayloadSize), MakeUintegerChecker()) .AddAttribute("Freshness", "Freshness of data packets, if 0, then unlimited freshness", TimeValue(Seconds(0)), MakeTimeAccessor(&Producer::m_freshness), MakeTimeChecker()) .AddAttribute("Signature","Fake signature, 0 valid signature (default), other values application-specific", UintegerValue(0), MakeUintegerAccessor(&Producer::m_signature), MakeUintegerChecker()) .AddAttribute("KeyLocator","Name to be used for key locator. If root, then key locator is not used", ndn::NameValue(), MakeNameAccessor(&Producer::m_keyLocator), ndn::MakeNameChecker()) .AddAttribute("HasLink","Define if the Producer uses Link", BooleanValue(false), MakeBooleanAccessor(&Producer::m_hasLink), MakeBooleanChecker()); ; return tid; } ?Producer is ok. But in ?Linking the other one I'm receiving: extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Set(ns3::ObjectBase*, ns3::AttributeValue const&) const': /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:183: undefined reference to `typeinfo for ns3::Consumer' extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Get(ns3::ObjectBase const*, ns3::AttributeValue&) const': /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:209: undefined reference to `typeinfo for ns3::Consumer' extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Set(ns3::ObjectBase*, ns3::AttributeValue const&) const': /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:183: undefined reference to `typeinfo for ns3::Consumer' extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Get(ns3::ObjectBase const*, ns3::AttributeValue&) const': /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:209: undefined reference to `typeinfo for ns3::Consumer' extensions/Consumer.cpp.1.o: In function `ns3::TypeId ns3::TypeId::AddConstructor()::Maker::Create()': /ndnSIM/custom-scenario/link/build/../extensions/Consumer.hpp:22: undefined reference to `vtable for ns3::Consumer' collect2: error: ld returned 1 exit status The *.hpp*s are also pretty much the same. I've copied the ndn-custom-app and modified it. Anyone has and idea what is wrong? Thanks, Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sat May 28 01:11:32 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sat, 28 May 2016 12:41:32 +0430 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: qshong, Actually I think the forwarder sends those packets, not the applications, so mentioning only applications in NS_LOG= ./waf --run is not going to show them to me. How can I see forwarders LOG? BTW, I'm on DEBUG mode. ?Thanks, Sabet? On Sat, May 28, 2016 at 6:29 AM, qhsong wrote: > Hi Sabet, > Can you print your run command? What class you print in NS_LOG?Give us > some detail. > > Thanks, > qhsong > > 2016-05-27 1:58 GMT+08:00 Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com>: > >> ?Hi All, >> >> I have faced a situation in which visualizer shows an exchange (both >> interest and data), but NS_LOG doesn't show it. Is it a bug or something? >> Or that exchange is really happening? >> >> Thanks, >> Sabet >> >> ? >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Sat May 28 05:50:31 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Sat, 28 May 2016 05:50:31 -0700 Subject: [ndnSIM] Fwd: ndnSIM didn't receive packet In-Reply-To: References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: Check if your topology configuration file is setting any P2P link properties, which might be causing delay or timeouts. Mask all link level properties for now and retest. On May 23, 2016 11:05 PM, "qhsong" wrote: Hi Sabet, I can sure FIBs seem no problem. Because I change node generator method, it works.I did't use consume app, just use default ndn-producer and ndn-consumer. Thanks, qhsong 2016-05-24 13:35 GMT+08:00 Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com>: > qhsong, > > I don't want to interrupt. But I had a similar problem recently. Interests > reach a node, but OnInterest method is not being called, right? Are you > using a cutom app? Are sure you have FIBs populated correctly? > > Thanks, > Sabet > > ????? ????? > ?? ???? > > On Tue, May 24, 2016 at 9:50 AM, qhsong wrote: > >> >> Hi JunXiao, >> >> First I TopologyReader like this: >> >> AnnotatedTopologyReader topologyReader("", 25); >> topologyReader.SetFileName("scratch/topo.txt"); >> topologyReader.Read(); >> >> Then ,create some Nodes by this: >> NodeContainer consumerNodes; >> consumerNodes.Create(3); >> >> I connected then with p2pHelper: >> >> for(int i=0;i<3;i++) { >> PointToPointHelper p2p; >> p2p.Install(Names::Find("Node_in_Topo.txt"), >> consumerNodes.get(i)); >> } >> >> Install ndnHelper one by one. >> for(int i=0;i<3;i++) { >> ndn::helper ndnHelper; >> //set content store size in different value >> ndnHepler.Install(consumerNodes); >> } >> >> then Install ndnHelper in topo.txt node. Install consumer and producer in >> other node. >> >> That's what I do for ndnSIM. >> I also note that in --vis mode, the node I use NodeContainer.Create is >> gray, and other nodes is red. >> >> Is this wrong?After I switch all node generator by topo.txt, It works. >> >> Thanks, >> qhsong >> >> >> 2016-05-24 11:39 GMT+08:00 Junxiao Shi : >> >>> Hi qhsong >>> >>> Can you post a code snippet that shows what you are doing, and indicate >>> what does not work? >>> >>> Yours, Junxiao >>> >>> On Mon, May 23, 2016 at 8:36 PM, qhsong wrote: >>> >>>> Hi, >>>> Thanks for your help. I first use AnnotatedTopologyReader and then use >>>> NodeContainer.Create() some node, I try to use p2p connection to connection >>>> them ,then use ndnHelper.Install(). >>>> Then I change all node generator by AnnotatedTopologyReader, It works. >>>> Maybe AnnotatedTopologyReader not compatible with NodeContainer. >>>> Is this a bug? >>>> >>>> Thanks for your help. >>>> qhsong >>>> >>> >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Sat May 28 05:59:22 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Sat, 28 May 2016 05:59:22 -0700 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: To enable forwarder logs, export the NS_LOG with following either from your env file (e.g. ~/.bashrc or equivalent) and rerun. You may delete specific components, which you do not want to see. # NFD LOGS. export NS_LOG=$NS_LOG':nfd.PrivilegeHelper=level_all|prefix_func|prefix_time:nfd.ContentStore=level_all|prefix_func|prefix_time:nfd.NameTree=level_all|prefix_func|prefix_time:nfd.DeadNonceList=level_all|prefix_func|prefix_time:nfd.StrategyChoice=level_all|prefix_func|prefix_time:nfd.FibManager=level_all|prefix_func|prefix_time:nfd.FibEnumerationPublisher=level_all|prefix_func|prefix_time:nfd.FaceManager=level_all|prefix_func|prefix_time:nfd.InternalFace=level_all|prefix_func|prefix_time:nfd.StrategyChoiceManager=level_all|prefix_func|prefix_time:nfd.TablesConfigSection=level_all|prefix_func|prefix_time:nfd.CommandValidator=level_all|prefix_func|prefix_time:nfd.GeneralConfigSection=level_all|prefix_func|prefix_time:nfd.ManagerBase=level_all|prefix_func|prefix_time:nfd.AccessStrategy=level_all|prefix_func|prefix_time:nfd.BroadcastStrategy=level_all|prefix_func|prefix_time:nfd.FaceTable=level_all|prefix_func|prefix_time:nfd.Strategy=level_all|prefix_func|prefix_time:nfd.Forwarder=level_all|prefix_func|prefix_time:nfd.BestRouteStrategy2=level_all|prefix_func|prefix_time:nfd.ClientControlStrategy=level_all|prefix_func|prefix_time:nfd.NdnlpPartialMessageStore=level_all|prefix_func|prefix_time:nfd.RibManager=level_all|prefix_func|prefix_time:nfd.FibUpdater=level_all|prefix_func|prefix_time:nfd.RemoteRegistrator=level_all|prefix_func|prefix_time:nfd.Rib=level_all|prefix_func|prefix_time:nfd.RibStatusPublisher=level_all|prefix_func|prefix_time:nfd.RibEntry=level_all|prefix_func|prefix_time' If you want to see everything out there, you can use following. Just be aware that it is going to print EVERYTHING not just in ndnSIM but also in NS3. export 'NS_LOG=*=debug|prefix_func|prefix_time' This should help. /anil. On Sat, May 28, 2016 at 1:11 AM, Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com> wrote: > qshong, > > Actually I think the forwarder sends those packets, not the applications, > so mentioning only applications in > NS_LOG= ./waf --run > is not going to show them to me. How can I see forwarders LOG? > > BTW, I'm on DEBUG mode. > > ?Thanks, > Sabet? > > On Sat, May 28, 2016 at 6:29 AM, qhsong wrote: > >> Hi Sabet, >> Can you print your run command? What class you print in NS_LOG?Give us >> some detail. >> >> Thanks, >> qhsong >> >> 2016-05-27 1:58 GMT+08:00 Muhammad Hosain Abdollahi Sabet < >> mhasabet at gmail.com>: >> >>> ?Hi All, >>> >>> I have faced a situation in which visualizer shows an exchange (both >>> interest and data), but NS_LOG doesn't show it. Is it a bug or something? >>> Or that exchange is really happening? >>> >>> Thanks, >>> Sabet >>> >>> ? >>> >>> >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>> >>> >> > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Sat May 28 11:25:51 2016 From: ndn at sqh.me (qhsong) Date: Sun, 29 May 2016 02:25:51 +0800 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: Hi Sabet, I usually use NS_LOG=nfd.Forwarder ./waf --run to check my NDNSim program problem, but @Anil's way is a good way to print all log. maybe you print all forwarder log for us to check the problem. Best Regard, qhsong 2016-05-28 20:59 GMT+08:00 Anil Jangam : > To enable forwarder logs, export the NS_LOG with following either from > your env file (e.g. ~/.bashrc or equivalent) and rerun. You may delete > specific components, which you do not want to see. > > # NFD LOGS. > export > NS_LOG=$NS_LOG':nfd.PrivilegeHelper=level_all|prefix_func|prefix_time:nfd.ContentStore=level_all|prefix_func|prefix_time:nfd.NameTree=level_all|prefix_func|prefix_time:nfd.DeadNonceList=level_all|prefix_func|prefix_time:nfd.StrategyChoice=level_all|prefix_func|prefix_time:nfd.FibManager=level_all|prefix_func|prefix_time:nfd.FibEnumerationPublisher=level_all|prefix_func|prefix_time:nfd.FaceManager=level_all|prefix_func|prefix_time:nfd.InternalFace=level_all|prefix_func|prefix_time:nfd.StrategyChoiceManager=level_all|prefix_func|prefix_time:nfd.TablesConfigSection=level_all|prefix_func|prefix_time:nfd.CommandValidator=level_all|prefix_func|prefix_time:nfd.GeneralConfigSection=level_all|prefix_func|prefix_time:nfd.ManagerBase=level_all|prefix_func|prefix_time:nfd.AccessStrategy=level_all|prefix_func|prefix_time:nfd.BroadcastStrategy=level_all|prefix_func|prefix_time:nfd.FaceTable=level_all|prefix_func|prefix_time:nfd.Strategy=level_all|prefix_func|prefix_time:nfd.Forwarder=level_all|prefix_func|prefix_time:nfd.BestRouteStrategy2=level_all|prefix_func|prefix_time:nfd.ClientControlStrategy=level_all|prefix_func|prefix_time:nfd.NdnlpPartialMessageStore=level_all|prefix_func|prefix_time:nfd.RibManager=level_all|prefix_func|prefix_time:nfd.FibUpdater=level_all|prefix_func|prefix_time:nfd.RemoteRegistrator=level_all|prefix_func|prefix_time:nfd.Rib=level_all|prefix_func|prefix_time:nfd.RibStatusPublisher=level_all|prefix_func|prefix_time:nfd.RibEntry=level_all|prefix_func|prefix_time' > > If you want to see everything out there, you can use following. Just be > aware that it is going to print EVERYTHING not just in ndnSIM but also in > NS3. > export 'NS_LOG=*=debug|prefix_func|prefix_time' > > This should help. > > /anil. > > > On Sat, May 28, 2016 at 1:11 AM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > >> qshong, >> >> Actually I think the forwarder sends those packets, not the applications, >> so mentioning only applications in >> NS_LOG= ./waf --run >> is not going to show them to me. How can I see forwarders LOG? >> >> BTW, I'm on DEBUG mode. >> >> ?Thanks, >> Sabet? >> >> On Sat, May 28, 2016 at 6:29 AM, qhsong wrote: >> >>> Hi Sabet, >>> Can you print your run command? What class you print in NS_LOG?Give us >>> some detail. >>> >>> Thanks, >>> qhsong >>> >>> 2016-05-27 1:58 GMT+08:00 Muhammad Hosain Abdollahi Sabet < >>> mhasabet at gmail.com>: >>> >>>> ?Hi All, >>>> >>>> I have faced a situation in which visualizer shows an exchange (both >>>> interest and data), but NS_LOG doesn't show it. Is it a bug or something? >>>> Or that exchange is really happening? >>>> >>>> Thanks, >>>> Sabet >>>> >>>> ? >>>> >>>> >>>> _______________________________________________ >>>> ndnSIM mailing list >>>> ndnSIM at lists.cs.ucla.edu >>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>> >>>> >>> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Sat May 28 11:31:35 2016 From: ndn at sqh.me (qhsong) Date: Sun, 29 May 2016 02:31:35 +0800 Subject: [ndnSIM] Fwd: ndnSIM didn't receive packet In-Reply-To: References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: Hi Anil, Finally I change the way ,all Nodes are put in topo.txt and then I let program read it. It works. But I still not find the problem. Thanks for your help. Best Regards, qhsong 2016-05-28 20:50 GMT+08:00 Anil Jangam : > Check if your topology configuration file is setting any P2P link > properties, which might be causing delay or timeouts. Mask all link level > properties for now and retest. > On May 23, 2016 11:05 PM, "qhsong" wrote: > > Hi Sabet, > I can sure FIBs seem no problem. Because I change node generator method, > it works.I did't use consume app, just use default ndn-producer and > ndn-consumer. > > Thanks, > qhsong > > 2016-05-24 13:35 GMT+08:00 Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com>: > >> qhsong, >> >> I don't want to interrupt. But I had a similar problem recently. >> Interests reach a node, but OnInterest method is not being called, right? >> Are you using a cutom app? Are sure you have FIBs populated correctly? >> >> Thanks, >> Sabet >> >> ????? ????? >> ?? ???? >> >> On Tue, May 24, 2016 at 9:50 AM, qhsong wrote: >> >>> >>> Hi JunXiao, >>> >>> First I TopologyReader like this: >>> >>> AnnotatedTopologyReader topologyReader("", 25); >>> topologyReader.SetFileName("scratch/topo.txt"); >>> topologyReader.Read(); >>> >>> Then ,create some Nodes by this: >>> NodeContainer consumerNodes; >>> consumerNodes.Create(3); >>> >>> I connected then with p2pHelper: >>> >>> for(int i=0;i<3;i++) { >>> PointToPointHelper p2p; >>> p2p.Install(Names::Find("Node_in_Topo.txt"), >>> consumerNodes.get(i)); >>> } >>> >>> Install ndnHelper one by one. >>> for(int i=0;i<3;i++) { >>> ndn::helper ndnHelper; >>> //set content store size in different value >>> ndnHepler.Install(consumerNodes); >>> } >>> >>> then Install ndnHelper in topo.txt node. Install consumer and producer >>> in other node. >>> >>> That's what I do for ndnSIM. >>> I also note that in --vis mode, the node I use NodeContainer.Create is >>> gray, and other nodes is red. >>> >>> Is this wrong?After I switch all node generator by topo.txt, It works. >>> >>> Thanks, >>> qhsong >>> >>> >>> 2016-05-24 11:39 GMT+08:00 Junxiao Shi : >>> >>>> Hi qhsong >>>> >>>> Can you post a code snippet that shows what you are doing, and indicate >>>> what does not work? >>>> >>>> Yours, Junxiao >>>> >>>> On Mon, May 23, 2016 at 8:36 PM, qhsong wrote: >>>> >>>>> Hi, >>>>> Thanks for your help. I first use AnnotatedTopologyReader and then >>>>> use NodeContainer.Create() some node, I try to use p2p connection to >>>>> connection them ,then use ndnHelper.Install(). >>>>> Then I change all node generator by AnnotatedTopologyReader, It works. >>>>> Maybe AnnotatedTopologyReader not compatible with NodeContainer. >>>>> Is this a bug? >>>>> >>>>> Thanks for your help. >>>>> qhsong >>>>> >>>> >>> >>> >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>> >>> >> > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Sat May 28 15:29:42 2016 From: anilj.mailing at gmail.com (Anil Jangam) Date: Sat, 28 May 2016 15:29:42 -0700 Subject: [ndnSIM] Fwd: ndnSIM didn't receive packet In-Reply-To: References: <07E0FEBC-3A6A-4A1E-B0F3-B2548456408E@cs.ucla.edu> Message-ID: Check whats different between the two topology config files and you will know what caused the issue. On May 28, 2016 11:31 AM, "qhsong" wrote: > Hi Anil, > Finally I change the way ,all Nodes are put in topo.txt and then I let > program read it. It works. > But I still not find the problem. > Thanks for your help. > > Best Regards, > qhsong > > 2016-05-28 20:50 GMT+08:00 Anil Jangam : > >> Check if your topology configuration file is setting any P2P link >> properties, which might be causing delay or timeouts. Mask all link level >> properties for now and retest. >> On May 23, 2016 11:05 PM, "qhsong" wrote: >> >> Hi Sabet, >> I can sure FIBs seem no problem. Because I change node generator method, >> it works.I did't use consume app, just use default ndn-producer and >> ndn-consumer. >> >> Thanks, >> qhsong >> >> 2016-05-24 13:35 GMT+08:00 Muhammad Hosain Abdollahi Sabet < >> mhasabet at gmail.com>: >> >>> qhsong, >>> >>> I don't want to interrupt. But I had a similar problem recently. >>> Interests reach a node, but OnInterest method is not being called, right? >>> Are you using a cutom app? Are sure you have FIBs populated correctly? >>> >>> Thanks, >>> Sabet >>> >>> ????? ????? >>> ?? ???? >>> >>> On Tue, May 24, 2016 at 9:50 AM, qhsong wrote: >>> >>>> >>>> Hi JunXiao, >>>> >>>> First I TopologyReader like this: >>>> >>>> AnnotatedTopologyReader topologyReader("", 25); >>>> topologyReader.SetFileName("scratch/topo.txt"); >>>> topologyReader.Read(); >>>> >>>> Then ,create some Nodes by this: >>>> NodeContainer consumerNodes; >>>> consumerNodes.Create(3); >>>> >>>> I connected then with p2pHelper: >>>> >>>> for(int i=0;i<3;i++) { >>>> PointToPointHelper p2p; >>>> p2p.Install(Names::Find("Node_in_Topo.txt"), >>>> consumerNodes.get(i)); >>>> } >>>> >>>> Install ndnHelper one by one. >>>> for(int i=0;i<3;i++) { >>>> ndn::helper ndnHelper; >>>> //set content store size in different value >>>> ndnHepler.Install(consumerNodes); >>>> } >>>> >>>> then Install ndnHelper in topo.txt node. Install consumer and producer >>>> in other node. >>>> >>>> That's what I do for ndnSIM. >>>> I also note that in --vis mode, the node I use NodeContainer.Create is >>>> gray, and other nodes is red. >>>> >>>> Is this wrong?After I switch all node generator by topo.txt, It works. >>>> >>>> Thanks, >>>> qhsong >>>> >>>> >>>> 2016-05-24 11:39 GMT+08:00 Junxiao Shi : >>>> >>>>> Hi qhsong >>>>> >>>>> Can you post a code snippet that shows what you are doing, and >>>>> indicate what does not work? >>>>> >>>>> Yours, Junxiao >>>>> >>>>> On Mon, May 23, 2016 at 8:36 PM, qhsong wrote: >>>>> >>>>>> Hi, >>>>>> Thanks for your help. I first use AnnotatedTopologyReader and then >>>>>> use NodeContainer.Create() some node, I try to use p2p connection to >>>>>> connection them ,then use ndnHelper.Install(). >>>>>> Then I change all node generator by AnnotatedTopologyReader, It works. >>>>>> Maybe AnnotatedTopologyReader not compatible with NodeContainer. >>>>>> Is this a bug? >>>>>> >>>>>> Thanks for your help. >>>>>> qhsong >>>>>> >>>>> >>>> >>>> >>>> _______________________________________________ >>>> ndnSIM mailing list >>>> ndnSIM at lists.cs.ucla.edu >>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>>> >>>> >>> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhangran at bupt.edu.cn Sun May 29 08:11:52 2016 From: zhangran at bupt.edu.cn (zhangran at bupt.edu.cn) Date: Sun, 29 May 2016 23:11:52 +0800 Subject: [ndnSIM] personalization of consumer Message-ID: <2016052923115222493116@bupt.edu.cn> Hi, all I am writing my simulaiton scenario. I want the consumer to visit an limited number of contents in different producer. However, as far as I have found, there seems to be no mechanism to support this scenario in ndnsim. Specifically, the problems are as below. Can I assign a limited number of contents with the same prefix to every producer node Can I make the consumers to consume the content at the pattern of Zipf Distribution in terms of content popularity. Can I set the popularity of a single content name or a prefix? Where is the code to define the behavior of consumer and producer, I can't find them. Thank you very much for your time! zhangran at bupt.edu.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sun May 29 08:23:10 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sun, 29 May 2016 19:53:10 +0430 Subject: [ndnSIM] personalization of consumer In-Reply-To: <2016052923115222493116@bupt.edu.cn> References: <2016052923115222493116@bupt.edu.cn> Message-ID: Hi, You need to extend current applications. Take a look at Ndnsim.net For applications. There is an example of developing custom application. To me, what you are looking for is pretty easy to achieve. You can have a counter in OnData, to limit producing/transmitting of data packets. For the second problem, again I refer you to the website. The is a pre-defined application for that. For the 4th one, you should go to ndn-cxx/apps Thanks, Sabet On 29 May 2016 19:42, "zhangran at bupt.edu.cn" wrote: > Hi, all > > I am writing my simulaiton scenario. I want the consumer to visit an > limited number of contents in different producer. However, as far as I have > found, there seems to be no mechanism to support this scenario in ndnsim. > Specifically, the problems are as below. > > > - Can I assign a limited number of contents with the same prefix to > every producer node > - Can I make the consumers to consume the content at the pattern of > Zipf Distribution in terms of content popularity. > - Can I set the popularity of a single content name or a prefix? > - Where is the code to define the behavior of consumer and producer, I > can't find them. > > Thank you very much for your time! > > ------------------------------ > zhangran at bupt.edu.cn > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sun May 29 08:46:13 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sun, 29 May 2016 20:16:13 +0430 Subject: [ndnSIM] personalization of consumer In-Reply-To: References: <2016052923115222493116@bupt.edu.cn> Message-ID: Oops! My bad. ndnSIM/apps Regards, Sabet On 29 May 2016 19:53, "Muhammad Hosain Abdollahi Sabet" wrote: > Hi, > > You need to extend current applications. Take a look at > Ndnsim.net > For applications. There is an example of developing custom application. To > me, what you are looking for is pretty easy to achieve. You can have a > counter in OnData, to limit producing/transmitting of data packets. > For the second problem, again I refer you to the website. The is a > pre-defined application for that. > > For the 4th one, you should go to ndn-cxx/apps > > Thanks, > Sabet > On 29 May 2016 19:42, "zhangran at bupt.edu.cn" wrote: > >> Hi, all >> >> I am writing my simulaiton scenario. I want the consumer to visit an >> limited number of contents in different producer. However, as far as I have >> found, there seems to be no mechanism to support this scenario in ndnsim. >> Specifically, the problems are as below. >> >> >> - Can I assign a limited number of contents with the same prefix to >> every producer node >> - Can I make the consumers to consume the content at the pattern of >> Zipf Distribution in terms of content popularity. >> - Can I set the popularity of a single content name or a prefix? >> - Where is the code to define the behavior of consumer and producer, >> I can't find them. >> >> Thank you very much for your time! >> >> ------------------------------ >> zhangran at bupt.edu.cn >> >> _______________________________________________ >> 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 May 29 12:52:32 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 29 May 2016 12:52:32 -0700 Subject: [ndnSIM] Not being able to build pretty much the same TypeId In-Reply-To: References: Message-ID: Without seeing actual code, I will not be able to say for sure what's going on (you need at least share a small snippet that shows the error). One obvious thing is that you're using the same names as Consumer/Producer app in ndnSIM. Unless you're using a dedicated namespace in your extension, this definitely should cause issues. -- Alex > On May 28, 2016, at 1:05 AM, Muhammad Hosain Abdollahi Sabet wrote: > > ?Hello everyone, > > Using http://github.com/cawka/ndnSIM-scenario-template , I'm writing 2 custom applications. In TypeId they are pretty much the same: > > TypeId > Consumer::GetTypeId() > { > static TypeId tid = TypeId ("Consumer") > .SetGroupName("Ndn") > .SetParent() > .AddConstructor() > .AddAttribute("Prefix","Prefix, for which consumer sends interest", StringValue("/"), > ndn::MakeNameAccessor(&Consumer::m_interestName), > ndn::MakeNameChecker()) > .AddAttribute("Hint","Forwarding Hint Name", > StringValue("/"), > MakeStringAccessor(&Consumer::m_linkName), > MakeStringChecker()) > .AddAttribute("HasLink","Does this app use Link?", > BooleanValue(false), > MakeBooleanAccessor(&Consumer::m_hasLink), > MakeBooleanChecker()) > .AddAttribute("LifeTime", "Interest Life Time", > StringValue("2s"), > MakeTimeAccessor(&Consumer::m_interestLifeTime), > MakeTimeChecker()); > > return tid; > } > > > And the other one is: > > TypeId > Producer::GetTypeId(){ > static TypeId tid = TypeId ("Producer") > .SetGroupName("Ndn") > .SetParent() > .AddConstructor() > .AddAttribute("Prefix", "Prefix, for which producer has the data", StringValue("/"), > MakeNameAccessor(&Producer::m_prefix), > ndn::MakeNameChecker()) > .AddAttribute("LinkName", "The Name of Forwarding Hint", StringValue("/"), > MakeNameAccessor(&Producer::m_linkName), > ndn::MakeNameChecker()) > .AddAttribute("PayloadSize", "Virtual payload size for Content packets", UintegerValue(1024), > MakeUintegerAccessor(&Producer::m_virtualPayloadSize), > MakeUintegerChecker()) > .AddAttribute("Freshness", "Freshness of data packets, if 0, then unlimited freshness", > TimeValue(Seconds(0)), MakeTimeAccessor(&Producer::m_freshness), > MakeTimeChecker()) > .AddAttribute("Signature","Fake signature, 0 valid signature (default), other values application-specific", > UintegerValue(0), > MakeUintegerAccessor(&Producer::m_signature), > MakeUintegerChecker()) > .AddAttribute("KeyLocator","Name to be used for key locator. If root, then key locator is not used", > ndn::NameValue(), > MakeNameAccessor(&Producer::m_keyLocator), > ndn::MakeNameChecker()) > .AddAttribute("HasLink","Define if the Producer uses Link", > BooleanValue(false), > MakeBooleanAccessor(&Producer::m_hasLink), > MakeBooleanChecker()); > ; > return tid; > } > > ?Producer is ok. But in ?Linking the other one I'm receiving: > > extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Set(ns3::ObjectBase*, ns3::AttributeValue const&) const': > /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:183: undefined reference to `typeinfo for ns3::Consumer' > extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Get(ns3::ObjectBase const*, ns3::AttributeValue&) const': > /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:209: undefined reference to `typeinfo for ns3::Consumer' > extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Set(ns3::ObjectBase*, ns3::AttributeValue const&) const': > /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:183: undefined reference to `typeinfo for ns3::Consumer' > extensions/Consumer.cpp.1.o: In function `ns3::AccessorHelper::Get(ns3::ObjectBase const*, ns3::AttributeValue&) const': > /usr/local/include/ns3-dev/ns3/attribute-accessor-helper.h:209: undefined reference to `typeinfo for ns3::Consumer' > extensions/Consumer.cpp.1.o: In function `ns3::TypeId ns3::TypeId::AddConstructor()::Maker::Create()': > /ndnSIM/custom-scenario/link/build/../extensions/Consumer.hpp:22: undefined reference to `vtable for ns3::Consumer' > collect2: error: ld returned 1 exit status > > The .hpps are also pretty much the same. I've copied the ndn-custom-app and modified it. > > Anyone has and idea what is wrong? > > Thanks, > Sabet > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Sun May 29 12:54:31 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 29 May 2016 12:54:31 -0700 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: NS_LOG is enabled only in debug version of the simulator and scenario. I'm guessing that you have compiled in optimized mode, where al NS_LOG macros are expanded to nothing. Visualizer is using trace mechanism, so it works in either case. Just compile NS-3 and your scenario in debug mode and it should work. --- Alex > On May 26, 2016, at 10:58 AM, Muhammad Hosain Abdollahi Sabet wrote: > > ?Hi All, > > I have faced a situation in which visualizer shows an exchange (both interest and data), but NS_LOG doesn't show it. Is it a bug or something? Or that exchange is really happening? > > Thanks, > Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From pratyushagnihotri03 at gmail.com Sun May 29 18:54:03 2016 From: pratyushagnihotri03 at gmail.com (Pratyush Agnihotri) Date: Mon, 30 May 2016 03:54:03 +0200 Subject: [ndnSIM] Regarding Setting PIT entry in ndnSIM2.0 Message-ID: Hi, In ndnSIM1.0, Pit entries are set using ndnHelper.setPit() method as described in http://ndnsim.net/1.0/helpers.html. ndnHelper.SetPit ("ns3::ndn::pit::Persistent", "MaxSize", "0"); However, ndnSIM2.0 documentation doesn't provide any example for setting Pit. Can any one suggest "how to set pit in ndnSIm2.0?". Thanks -- Kind Regards, Pratyush Agnihotri -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhangran at bupt.edu.cn Sun May 29 19:38:44 2016 From: zhangran at bupt.edu.cn (zhangran at bupt.edu.cn) Date: Mon, 30 May 2016 10:38:44 +0800 Subject: [ndnSIM] personalization of consumer References: <2016052923115222493116@bupt.edu.cn>, Message-ID: <201605301038441695182@bupt.edu.cn> Hi Sabet, Thank you for your advice! I'll check the code and website later and try to figure out the problem! zhangran at bupt.edu.cn From: Muhammad Hosain Abdollahi Sabet Date: 2016-05-29 23:53 To: zhangran CC: ndnsim Subject: Re: [ndnSIM] personalization of consumer Hi, You need to extend current applications. Take a look at Ndnsim.net For applications. There is an example of developing custom application. To me, what you are looking for is pretty easy to achieve. You can have a counter in OnData, to limit producing/transmitting of data packets. For the second problem, again I refer you to the website. The is a pre-defined application for that. For the 4th one, you should go to ndn-cxx/apps Thanks, Sabet On 29 May 2016 19:42, "zhangran at bupt.edu.cn" wrote: Hi, all I am writing my simulaiton scenario. I want the consumer to visit an limited number of contents in different producer. However, as far as I have found, there seems to be no mechanism to support this scenario in ndnsim. Specifically, the problems are as below. Can I assign a limited number of contents with the same prefix to every producer node Can I make the consumers to consume the content at the pattern of Zipf Distribution in terms of content popularity. Can I set the popularity of a single content name or a prefix? Where is the code to define the behavior of consumer and producer, I can't find them. Thank you very much for your time! zhangran at bupt.edu.cn _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sun May 29 23:30:40 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Mon, 30 May 2016 11:00:40 +0430 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: ?Alex, You're right. I've *waf*ed with -d optimized accoriding to scenario-tamplate. I'll compile in debug mode and will let you know. Thanks, Sabet ????? ????? ?? ???? On Mon, May 30, 2016 at 12:24 AM, Alex Afanasyev wrote: > NS_LOG is enabled only in debug version of the simulator and scenario. > I'm guessing that you have compiled in optimized mode, where al NS_LOG > macros are expanded to nothing. Visualizer is using trace mechanism, so it > works in either case. > > Just compile NS-3 and your scenario in debug mode and it should work. > > --- > Alex > > > On May 26, 2016, at 10:58 AM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > > ?Hi All, > > I have faced a situation in which visualizer shows an exchange (both > interest and data), but NS_LOG doesn't show it. Is it a bug or something? > Or that exchange is really happening? > > Thanks, > Sabet > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Mon May 30 00:12:23 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Mon, 30 May 2016 11:42:23 +0430 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: I did compile NS-3 in debug mode. And did compile my scenario with export 'NS_LOG=*=debug|prefix_func|prefix_time' but again, I got only my application LOGs. So? ?Regards, Sabet On Mon, May 30, 2016 at 11:00 AM, Muhammad Hosain Abdollahi Sabet < mhasabet at gmail.com> wrote: > ?Alex, > > You're right. I've *waf*ed with -d optimized accoriding to > scenario-tamplate. I'll compile in debug mode and will let you know. > > Thanks, > Sabet > > ????? ????? > ?? ???? > > On Mon, May 30, 2016 at 12:24 AM, Alex Afanasyev wrote: > >> NS_LOG is enabled only in debug version of the simulator and scenario. >> I'm guessing that you have compiled in optimized mode, where al NS_LOG >> macros are expanded to nothing. Visualizer is using trace mechanism, so it >> works in either case. >> >> Just compile NS-3 and your scenario in debug mode and it should work. >> >> --- >> Alex >> >> >> On May 26, 2016, at 10:58 AM, Muhammad Hosain Abdollahi Sabet < >> mhasabet at gmail.com> wrote: >> >> ?Hi All, >> >> I have faced a situation in which visualizer shows an exchange (both >> interest and data), but NS_LOG doesn't show it. Is it a bug or something? >> Or that exchange is really happening? >> >> Thanks, >> Sabet >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Mon May 30 04:42:21 2016 From: dhiabimen at gmail.com (Dhiab Imen) Date: Mon, 30 May 2016 12:42:21 +0100 Subject: [ndnSIM] Get Cached Content Size Message-ID: Hi all, I want to know if it is possible to get total size of cached content in the content Store? and how?? thanks for help. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Mon May 30 05:59:26 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Mon, 30 May 2016 05:59:26 -0700 Subject: [ndnSIM] Get Cached Content Size In-Reply-To: References: Message-ID: Hi Dhiab ContentStore size should be 500MB. https://github.com/named-data/NFD/blob/d7c96360782a1b7f50095aa212c1294fc207115f/nfd.conf.sample.in#L48-L50 Yours, Junxiao 2016-05-30 4:42 GMT-07:00 Dhiab Imen : > Hi all, > > I want to know if it is possible to get total size of cached content in > the content Store? and how?? > > thanks for help. > > -- > Cordialement > Imen Dhiab > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhiabimen at gmail.com Mon May 30 06:07:13 2016 From: dhiabimen at gmail.com (Dhiab Imen) Date: Mon, 30 May 2016 14:07:13 +0100 Subject: [ndnSIM] Get Cached Content Size In-Reply-To: References: Message-ID: Hi Junxiao, I want to display something like that: std::cout<< "At " << Simulator::Now ().GetSeconds ()<<"Cached Content Size(Total size in the cache)" << cs->GetData.GetSize()<: > Hi Dhiab > > ContentStore size should be 500MB. > > https://github.com/named-data/NFD/blob/d7c96360782a1b7f50095aa212c1294fc207115f/nfd.conf.sample.in#L48-L50 > > Yours, Junxiao > > 2016-05-30 4:42 GMT-07:00 Dhiab Imen : > >> Hi all, >> >> I want to know if it is possible to get total size of cached content in >> the content Store? and how?? >> >> thanks for help. >> >> -- >> Cordialement >> Imen Dhiab >> > -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Mon May 30 14:34:00 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Mon, 30 May 2016 17:34:00 -0400 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: Did you use --debug flag when configuring the scenario? If not, it still uses the optimized version of NS-3. -- Alex > On May 30, 2016, at 3:12 AM, Muhammad Hosain Abdollahi Sabet wrote: > > I did compile NS-3 in debug mode. And did compile my scenario with > > export 'NS_LOG=*=debug|prefix_func|prefix_time' > but again, I got only my application LOGs. So? > > ?Regards, > Sabet > > On Mon, May 30, 2016 at 11:00 AM, Muhammad Hosain Abdollahi Sabet > wrote: > ?Alex, > > You're right. I've wafed with -d optimized accoriding to scenario-tamplate. I'll compile in debug mode and will let you know. > > Thanks, > Sabet > > ????? ????? > ?? ???? > > On Mon, May 30, 2016 at 12:24 AM, Alex Afanasyev > wrote: > NS_LOG is enabled only in debug version of the simulator and scenario. I'm guessing that you have compiled in optimized mode, where al NS_LOG macros are expanded to nothing. Visualizer is using trace mechanism, so it works in either case. > > Just compile NS-3 and your scenario in debug mode and it should work. > > --- > Alex > > >> On May 26, 2016, at 10:58 AM, Muhammad Hosain Abdollahi Sabet > wrote: >> >> ?Hi All, >> >> I have faced a situation in which visualizer shows an exchange (both interest and data), but NS_LOG doesn't show it. Is it a bug or something? Or that exchange is really happening? >> >> Thanks, >> Sabet > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From mhasabet at gmail.com Tue May 31 01:16:37 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Tue, 31 May 2016 12:46:37 +0430 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: Alex, I did so. And now I'm getting a whole set of extra ?;? [-Werror=pedantic] and cc1plus: all warnings being treated as errors and extra tokens at end of #include directive [-Werror] for header files. We could modify CXXFLAGS, but is it correct to do so? What is the problem? ?Thanks, Sabet? On Tue, May 31, 2016 at 2:04 AM, Alex Afanasyev wrote: > Did you use --debug flag when configuring the scenario? If not, it still > uses the optimized version of NS-3. > > -- > Alex > > On May 30, 2016, at 3:12 AM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > > I did compile NS-3 in debug mode. And did compile my scenario with > > export 'NS_LOG=*=debug|prefix_func|prefix_time' > but again, I got only my application LOGs. So? > > ?Regards, > Sabet > > On Mon, May 30, 2016 at 11:00 AM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > >> ?Alex, >> >> You're right. I've *waf*ed with -d optimized accoriding to >> scenario-tamplate. I'll compile in debug mode and will let you know. >> >> Thanks, >> Sabet >> >> ????? ????? >> ?? ???? >> >> On Mon, May 30, 2016 at 12:24 AM, Alex Afanasyev wrote: >> >>> NS_LOG is enabled only in debug version of the simulator and scenario. >>> I'm guessing that you have compiled in optimized mode, where al NS_LOG >>> macros are expanded to nothing. Visualizer is using trace mechanism, so it >>> works in either case. >>> >>> Just compile NS-3 and your scenario in debug mode and it should work. >>> >>> --- >>> Alex >>> >>> >>> On May 26, 2016, at 10:58 AM, Muhammad Hosain Abdollahi Sabet < >>> mhasabet at gmail.com> wrote: >>> >>> ?Hi All, >>> >>> I have faced a situation in which visualizer shows an exchange (both >>> interest and data), but NS_LOG doesn't show it. Is it a bug or something? >>> Or that exchange is really happening? >>> >>> Thanks, >>> Sabet >>> >>> >>> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Tue May 31 06:40:02 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Tue, 31 May 2016 09:40:02 -0400 Subject: [ndnSIM] Visualizer shows something no showed in NS_LOG In-Reply-To: References: Message-ID: <4D19FB27-FDB9-46A5-95A3-CDFEEC806F88@cs.ucla.edu> Hi Sabet, That would be correct solution. Some code in NS-3 doesn't pass the pedantic checks. Check the latest commit to scenario-template repository, which fixes exactly this problem: https://github.com/named-data-ndnSIM/scenario-template/commit/2b5b6f55f04982273e62127082a19459ec68ff43 -- Alex > On May 31, 2016, at 4:16 AM, Muhammad Hosain Abdollahi Sabet wrote: > > Alex, > > I did so. And now I'm getting a whole set of > > extra ?;? [-Werror=pedantic] > and > cc1plus: all warnings being treated as errors > and > extra tokens at end of #include directive [-Werror] > > > for header files. We could modify CXXFLAGS, but is it correct to do so? What is the problem? > > ?Thanks, > Sabet? > > On Tue, May 31, 2016 at 2:04 AM, Alex Afanasyev wrote: > Did you use --debug flag when configuring the scenario? If not, it still uses the optimized version of NS-3. > > -- > Alex > >> On May 30, 2016, at 3:12 AM, Muhammad Hosain Abdollahi Sabet wrote: >> >> I did compile NS-3 in debug mode. And did compile my scenario with >> >> export 'NS_LOG=*=debug|prefix_func|prefix_time' >> but again, I got only my application LOGs. So? >> >> ?Regards, >> Sabet >> >> On Mon, May 30, 2016 at 11:00 AM, Muhammad Hosain Abdollahi Sabet wrote: >> ?Alex, >> >> You're right. I've wafed with -d optimized accoriding to scenario-tamplate. I'll compile in debug mode and will let you know. >> >> Thanks, >> Sabet >> >> ????? ????? >> ?? ???? >> >> On Mon, May 30, 2016 at 12:24 AM, Alex Afanasyev wrote: >> NS_LOG is enabled only in debug version of the simulator and scenario. I'm guessing that you have compiled in optimized mode, where al NS_LOG macros are expanded to nothing. Visualizer is using trace mechanism, so it works in either case. >> >> Just compile NS-3 and your scenario in debug mode and it should work. >> >> --- >> Alex >> >> >>> On May 26, 2016, at 10:58 AM, Muhammad Hosain Abdollahi Sabet wrote: >>> >>> ?Hi All, >>> >>> I have faced a situation in which visualizer shows an exchange (both interest and data), but NS_LOG doesn't show it. Is it a bug or something? Or that exchange is really happening? >>> >>> Thanks, >>> Sabet >> >> >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From ibrojay01 at gmail.com Thu May 5 05:54:50 2016 From: ibrojay01 at gmail.com (Ibrahim ABDULLAHI) Date: Thu, 05 May 2016 12:54:50 -0000 Subject: [ndnSIM] Cache sizes in different Cache Replacement Algorithms In-Reply-To: References: Message-ID: Hello, For Cache Sizes and Cache Replacement Algorithmst, try the ICARUS cache simulator. It was designed by the UCL Team. It has wide coverage, flexible concepts, nice result reading and varying parameters. Credits to Saino Lorenzo, I. Psaras Alternatively, you can also try SOCIALCCNSim by Bernadini and S. On May 5, 2016 7:45 PM, "Abhijith Anilkumar" wrote: Hello everyone, I had been trying to compare the different cache replacement algorithms for different cache sizes. I tried the CSTracer example given in the ndnSIM site. I'm trying to generate the CSTracer output for different cache replacement algorithms and cache sizes by modifying the line "ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "100");". But, whatever changes I make to the cache size, the output from the CSTracer is the same. I'm a newbie to ndnSIM. What am I doing wrong here? Can anybody help me with this ? Regards, Abhijith _______________________________________________ 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 boxiliu.hust at gmail.com Tue May 10 06:34:01 2016 From: boxiliu.hust at gmail.com (=?gb2312?B?wfWyrM71?=) Date: Tue, 10 May 2016 13:34:01 -0000 Subject: [ndnSIM] Simulate IP networks in ndnSIM In-Reply-To: References: Message-ID: ==========================Huazhong Univ. of Sci. & TechWuhan, Hubei of P.R. of Chinaboxiliu at hust.edu.cn From: boxiliu.hust at gmail.com To: ndnsim at lists.cs.ucla.edu Subject: Simulate IP networks in ndnSIM Date: Tue, 10 May 2016 20:48:41 +0800 Hi, everyone I am comparing NDN with IP networks over Wi-Fi. If I want to simulate the performance of IP protocols over Wi-Fi air interface, how can I achieve it? I will appreciate with your kind help. Best, Percy ==========================Percy LiuHuazhong Univ. of Sci. & TechWuhan, Hubei of P.R. of Chinaboxiliu at hust.edu.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndn at sqh.me Wed May 18 19:41:58 2016 From: ndn at sqh.me (qhsong) Date: Thu, 19 May 2016 02:41:58 -0000 Subject: [ndnSIM] ndnSIM node not send packet into another node Message-ID: Hi everyOne, Recently I use ndnSIM to build a network and test it, it works fine at the beginning. But Then I found the node didn't send the packet, they only transmit in its own interface. Following is the nfd.Forwarder log: ? this packets didn't send to another node. What's wrong in my program, I have already configure FIB and forward strategy. Node 21 is the consumer node. Can you give some advice for me? Best wish, qhsong -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ???? 2016-05-19 ??10.34.21.png Type: image/png Size: 885006 bytes Desc: not available URL: