From zeynalvand at ce.sharif.edu Wed Jan 7 03:45:25 2015 From: zeynalvand at ce.sharif.edu (L.Zeynalvand) Date: Wed, 07 Jan 2015 15:15:25 +0330 Subject: [ndnSIM] NFD Development - Content Store Message-ID: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> Hi, is there a specific mailing list to post questions regarding NFD Development? If not, I would appreciate if you help me out with this. Is there a way to make the Content Store persistent? By persistent I don't mean no cache replacement, what I mean is that if for any reason we power off the router and then power back on, whatever there was in content store remain intact. (consider the router is an end user home wifi) Regards, -- Leonid Zeynalvand M.Sc Information Technology Sharif University of Technology From alexander.afanasyev at ucla.edu Wed Jan 7 11:52:57 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 7 Jan 2015 11:52:57 -0800 Subject: [ndnSIM] NFD Development - Content Store In-Reply-To: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> References: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> Message-ID: Hi Leonid, There is nfd-dev at lists.cs.ucla.edu mailing list for discussions specificaly about NFD development (cc'ed here). I saw your question on ndn-interest mailing list and it didn't strike me as directly related to NFD :) Theoretically, if you want, you can make it persistent. If you're asking about the current code, then we don't have that capability and you're welcome to contribute it. --- Alex > On Jan 7, 2015, at 3:45 AM, L.Zeynalvand wrote: > > Hi, is there a specific mailing list to post questions regarding NFD Development? If not, I would appreciate if you help me out with this. > Is there a way to make the Content Store persistent? By persistent I don't mean no cache replacement, what I mean is that if for any reason we power off the router and then power back on, whatever there was in content store remain intact. (consider the router is an end user home wifi) > > Regards, > > -- > Leonid Zeynalvand > M.Sc Information Technology > Sharif University of Technology From zeynalvand at ce.sharif.edu Thu Jan 8 01:39:31 2015 From: zeynalvand at ce.sharif.edu (L.Zeynalvand) Date: Thu, 08 Jan 2015 13:09:31 +0330 Subject: [ndnSIM] NFD Development - Content Store In-Reply-To: References: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> Message-ID: <749c724082d6eb952517510af743f55c@ce.sharif.edu> Thank you Alex, Actually my thesis is decentralized social networking using named data, in which people's private social content is hosted right from their homes, having a part of the content store persistent is crucial for me. I'll work on the NFD code and let you know the results. Regards, -- Leonid Zeynalvand M.Sc Information Technology Sharif University of Technology On 07.01.2015 23:22, Alex Afanasyev wrote: > Hi Leonid, > > There is nfd-dev at lists.cs.ucla.edu mailing list for discussions > specificaly about NFD development (cc'ed here). > > I saw your question on ndn-interest mailing list and it didn't strike > me as directly related to NFD :) > Theoretically, if you want, you can make it persistent. If you're > asking about the current code, then we don't have that capability and > you're welcome to contribute it. > > --- > Alex > >> On Jan 7, 2015, at 3:45 AM, L.Zeynalvand >> wrote: >> >> Hi, is there a specific mailing list to post questions regarding NFD >> Development? If not, I would appreciate if you help me out with this. >> Is there a way to make the Content Store persistent? By persistent I >> don't mean no cache replacement, what I mean is that if for any reason >> we power off the router and then power back on, whatever there was in >> content store remain intact. (consider the router is an end user home >> wifi) >> >> Regards, >> >> -- >> Leonid Zeynalvand >> M.Sc Information Technology >> Sharif University of Technology From wonjunchoi001 at gmail.com Thu Jan 8 02:46:28 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Thu, 8 Jan 2015 19:46:28 +0900 Subject: [ndnSIM] How to trace ReceivedInterests? Message-ID: Hello. I have no idea how to trace below value. I hope some can help me. *ns3::ndn::App * - ReceivedInterests: ReceivedInterests - ReceivedNacks: ReceivedNacks - ReceivedDatas: ReceivedDatas - TransmittedInterests: TransmittedInterests - TransmittedDatas: TransmittedDatas Best regards Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From lixia at CS.UCLA.EDU Thu Jan 8 08:09:13 2015 From: lixia at CS.UCLA.EDU (Lixia Zhang) Date: Thu, 8 Jan 2015 08:09:13 -0800 Subject: [ndnSIM] NFD Development - Content Store In-Reply-To: <749c724082d6eb952517510af743f55c@ce.sharif.edu> References: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> <749c724082d6eb952517510af743f55c@ce.sharif.edu> Message-ID: > On Jan 8, 2015, at 1:39 AM, L.Zeynalvand wrote: > > Thank you Alex, > Actually my thesis is decentralized social networking using named data, in which people's private social content is hosted right from their homes, having a part of the content store persistent is crucial for me. I'll work on the NFD code and let you know the results. > > Regards, > -- > Leonid Zeynalvand > M.Sc Information Technology > Sharif University of Technology Personally I would suggest you look into ndn repo for persistent storage > > On 07.01.2015 23:22, Alex Afanasyev wrote: >> Hi Leonid, >> >> There is nfd-dev at lists.cs.ucla.edu mailing list for discussions >> specificaly about NFD development (cc'ed here). >> >> I saw your question on ndn-interest mailing list and it didn't strike >> me as directly related to NFD :) >> Theoretically, if you want, you can make it persistent. If you're >> asking about the current code, then we don't have that capability and >> you're welcome to contribute it. >> >> --- >> Alex >> >>> On Jan 7, 2015, at 3:45 AM, L.Zeynalvand wrote: >>> >>> Hi, is there a specific mailing list to post questions regarding NFD Development? If not, I would appreciate if you help me out with this. >>> Is there a way to make the Content Store persistent? By persistent I don't mean no cache replacement, what I mean is that if for any reason we power off the router and then power back on, whatever there was in content store remain intact. (consider the router is an end user home wifi) >>> >>> Regards, >>> >>> -- >>> Leonid Zeynalvand >>> M.Sc Information Technology >>> Sharif University of Technology > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Thu Jan 8 09:56:47 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 8 Jan 2015 09:56:47 -0800 Subject: [ndnSIM] How to trace ReceivedInterests? In-Reply-To: References: Message-ID: Hello, ndnSIM offers a number of tracers. You can take a look at the following page and decide which one fits your needs: http://ndnsim.net/metric.html I feel that the ndn::L3RateTracer is what you want. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 8, 2015, at 2:46 AM, ??? wrote: > > Hello. > > I have no idea how to trace below value. > > I hope some can help me. > > ns3::ndn::App > ReceivedInterests: ReceivedInterests > ReceivedNacks: ReceivedNacks > ReceivedDatas: ReceivedDatas > TransmittedInterests: TransmittedInterests > TransmittedDatas: TransmittedDatas > Best regards > Wonjun, Choi > _______________________________________________ > 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 oran at cisco.com Thu Jan 8 08:49:24 2015 From: oran at cisco.com (Dave Oran (oran)) Date: Thu, 8 Jan 2015 16:49:24 +0000 Subject: [ndnSIM] [Nfd-dev] NFD Development - Content Store In-Reply-To: References: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> <749c724082d6eb952517510af743f55c@ce.sharif.edu> Message-ID: <01C08130-0346-4EB0-9FA2-B56C3B22E8D9@cisco.com> > On Jan 8, 2015, at 8:09 AM, Lixia Zhang wrote: > > >> On Jan 8, 2015, at 1:39 AM, L.Zeynalvand wrote: >> >> Thank you Alex, >> Actually my thesis is decentralized social networking using named data, in which people's private social content is hosted right from their homes, having a part of the content store persistent is crucial for me. I'll work on the NFD code and let you know the results. >> >> Regards, >> -- >> Leonid Zeynalvand >> M.Sc Information Technology >> Sharif University of Technology > > Personally I would suggest you look into ndn repo for persistent storage > I think there are two independent capabilities here: 1. A ?repo? as a robust storage service to applications who want to be able to go quiet or stop running without the authoritative published data under their control becoming inaccessible. 2. A performance/robustness feature of a cache such that its content survive a disruption due to a power failure, reboot, etc. We tend to use the term ?persistent storage" for both of these - I would argue they are conceptually different but could be achieved by similar or the same storage service features used by the NDN software. DaveO. >> >> On 07.01.2015 23:22, Alex Afanasyev wrote: >>> Hi Leonid, >>> >>> There is nfd-dev at lists.cs.ucla.edu mailing list for discussions >>> specificaly about NFD development (cc'ed here). >>> >>> I saw your question on ndn-interest mailing list and it didn't strike >>> me as directly related to NFD :) >>> Theoretically, if you want, you can make it persistent. If you're >>> asking about the current code, then we don't have that capability and >>> you're welcome to contribute it. >>> >>> --- >>> Alex >>> >>>> On Jan 7, 2015, at 3:45 AM, L.Zeynalvand wrote: >>>> >>>> Hi, is there a specific mailing list to post questions regarding NFD Development? If not, I would appreciate if you help me out with this. >>>> Is there a way to make the Content Store persistent? By persistent I don't mean no cache replacement, what I mean is that if for any reason we power off the router and then power back on, whatever there was in content store remain intact. (consider the router is an end user home wifi) >>>> >>>> Regards, >>>> >>>> -- >>>> Leonid Zeynalvand >>>> M.Sc Information Technology >>>> Sharif University of Technology >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > _______________________________________________ > Nfd-dev mailing list > Nfd-dev at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev From marco.ulge at gmail.com Mon Jan 5 06:24:33 2015 From: marco.ulge at gmail.com (Marco Ulgelmo) Date: Mon, 5 Jan 2015 15:24:33 +0100 Subject: [ndnSIM] Interest Timeout Message-ID: Hello, I'd like to know if an Interest Packet automatically expires (timeout) after a predefined amount of time by default or if it should be set by the Consumer when creating the Interest Packet. Also, when an Interest expires, is the WillEraseTimedOutPendingInterest method automatically invoked? Regards, Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeynalvand at ce.sharif.edu Thu Jan 8 13:06:16 2015 From: zeynalvand at ce.sharif.edu (L.Zeynalvand) Date: Fri, 09 Jan 2015 00:36:16 +0330 Subject: [ndnSIM] NFD Development - Content Store In-Reply-To: References: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> <749c724082d6eb952517510af743f55c@ce.sharif.edu> Message-ID: <519eddf9c822ab4089ab5e5789617bca@ce.sharif.edu> ndn repo seems to be just what I need, thank you. On 08.01.2015 19:39, Lixia Zhang wrote: >> On Jan 8, 2015, at 1:39 AM, L.Zeynalvand >> wrote: >> >> Thank you Alex, >> Actually my thesis is decentralized social networking using named >> data, in which people's private social content is hosted right from >> their homes, having a part of the content store persistent is crucial >> for me. I'll work on the NFD code and let you know the results. >> >> Regards, >> -- >> Leonid Zeynalvand >> M.Sc Information Technology >> Sharif University of Technology > > Personally I would suggest you look into ndn repo for persistent > storage > >> >> On 07.01.2015 23:22, Alex Afanasyev wrote: >>> Hi Leonid, >>> >>> There is nfd-dev at lists.cs.ucla.edu mailing list for discussions >>> specificaly about NFD development (cc'ed here). >>> >>> I saw your question on ndn-interest mailing list and it didn't >>> strike >>> me as directly related to NFD :) >>> Theoretically, if you want, you can make it persistent. If you're >>> asking about the current code, then we don't have that capability >>> and >>> you're welcome to contribute it. >>> >>> --- >>> Alex >>> >>>> On Jan 7, 2015, at 3:45 AM, L.Zeynalvand >>>> wrote: >>>> >>>> Hi, is there a specific mailing list to post questions regarding >>>> NFD Development? If not, I would appreciate if you help me out with >>>> this. >>>> Is there a way to make the Content Store persistent? By persistent >>>> I don't mean no cache replacement, what I mean is that if for any >>>> reason we power off the router and then power back on, whatever >>>> there was in content store remain intact. (consider the router is an >>>> end user home wifi) >>>> >>>> Regards, >>>> >>>> -- >>>> Leonid Zeynalvand >>>> M.Sc Information Technology >>>> Sharif University of Technology >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -- Leonid Zeynalvand M.Sc Information Technology Sharif University of Technology From wonjunchoi001 at gmail.com Thu Jan 8 17:09:52 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Fri, 9 Jan 2015 10:09:52 +0900 Subject: [ndnSIM] How to trace ReceivedInterests? In-Reply-To: References: Message-ID: Thanks for your reply. I think the type of measurement is different. I thought config path can do this. but I don't know how to do. -------------------------------------------------------------------------------------------------------------------------------------- Config Paths ns3::ndn::App is accessible through the following paths with Config::Set and Config::Connect: /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App -------------------------------------------------------------------------------------------------------------------------------------- ndn::L3RateTracer Type of measurements: - InInterests measurements of incoming Interests - OutInterests measurements of outgoing Interests - DropInterests measurements of dropped Interests - InData measurements of incoming Data - OutData measurements of outgoing Data - DropData measurements of dropped Data - InNacks measurements of incoming NACKs - OutNacks measurements of outgoing NACKs - DropNacks measurements of dropped NACKs - InSatisfiedInterests measurements of incoming satisfied Interests - InTimedOutInterests measurements of incoming timed out Interests - OutSatisfiedInterests measurements of outgoing satisfied Interests - OutTimedOutInterests measurements of outgoing satisfied Interests -------------------------------------------------------------------------------------------------------------------------------------- Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu Jan 8 17:51:38 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 8 Jan 2015 17:51:38 -0800 Subject: [ndnSIM] How to trace ReceivedInterests? In-Reply-To: References: Message-ID: <3D659E4F-2899-4A34-AC48-1BC673466112@gmail.com> Hello, I think that if you just use the L3RateTracer and monitor the InInterest parameter, you will achieve your goal, because the number of the interests received by an application should, at least in the general case, be the same with the number of incoming interests traced by the suggested tracer. If you really want to use Config::Connect though, you can take a look at line 234 of the following link for a use example: http://ndnsim.net/doxygen/ndn-app-delay-tracer_8cc_source.html -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 8, 2015, at 5:09 PM, ??? wrote: > > Thanks for your reply. > I think the type of measurement is different. > I thought config path can do this. but I don't know how to do. > -------------------------------------------------------------------------------------------------------------------------------------- > Config Paths > > ns3::ndn::App is accessible through the following paths with Config::Set and Config::Connect: > > /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App > -------------------------------------------------------------------------------------------------------------------------------------- > ndn::L3RateTracer > Type of measurements: > > InInterests measurements of incoming Interests > OutInterests measurements of outgoing Interests > DropInterests measurements of dropped Interests > InData measurements of incoming Data > OutData measurements of outgoing Data > DropData measurements of dropped Data > InNacks measurements of incoming NACKs > OutNacks measurements of outgoing NACKs > DropNacks measurements of dropped NACKs > InSatisfiedInterests measurements of incoming satisfied Interests > InTimedOutInterests measurements of incoming timed out Interests > OutSatisfiedInterests measurements of outgoing satisfied Interests > OutTimedOutInterests measurements of outgoing satisfied Interests > -------------------------------------------------------------------------------------------------------------------------------------- > > Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Thu Jan 8 17:58:08 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 8 Jan 2015 17:58:08 -0800 Subject: [ndnSIM] How to trace ReceivedInterests? In-Reply-To: References: Message-ID: You can just connect to the TraceSource and do whatever trace processing you need. Currently, we don?t have in ndnSIM trace helpers that simplify this operation. But it is very simple to do such tracing 1. define callback void WillBeCalledWhenInterestIsReceived(Ptr i, Ptr a, Ptr f) { ... } 2. connect callback to trace source of the application you interested in /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App Config::ConnectWithoutContext("/NodeList/1/ApplicationList/2/ReceivedInterests", MakeCallback(&WillBeCalledWhenInterestIsReceived); Numbers here you will probably need to guess (they depend on the order nodes and applications are created in the scenario). This tracing can be arbitrarily complex. You can look to L3RateTrace source code that Spyros has pointed out for more reference implementation. The only difference there is that L3Tracer takes input from the whole NDN stack (aggregate among all network channels and applications), while you want to look for specific application. ? Alex > On Jan 8, 2015, at 2:46 AM, ??? wrote: > > Hello. > > I have no idea how to trace below value. > > I hope some can help me. > > ns3::ndn::App > ReceivedInterests: ReceivedInterests > ReceivedNacks: ReceivedNacks > ReceivedDatas: ReceivedDatas > TransmittedInterests: TransmittedInterests > TransmittedDatas: TransmittedDatas > Best regards > Wonjun, Choi > _______________________________________________ > 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 alexander.afanasyev at UCLA.EDU Thu Jan 8 18:34:06 2015 From: alexander.afanasyev at UCLA.EDU (Alex Afanasyev) Date: Thu, 8 Jan 2015 18:34:06 -0800 Subject: [ndnSIM] Interest Timeout In-Reply-To: References: Message-ID: <7A1F802E-46CC-4B09-98F0-FF5E2A894130@ucla.edu> Hi Marco, Interest will expire if interest lifetime specified by the consumer. If you don?t specify anything, the Consumer classes will use 2 seconds as a default value for the interest lifetime. And yes, WillEraseTimedOutPendingInterest will be automatically called with interest expires. ? Alex > On Jan 5, 2015, at 6:24 AM, Marco Ulgelmo wrote: > > Hello, > > I'd like to know if an Interest Packet automatically expires (timeout) after a predefined amount of time by default or if it should be set by the Consumer when creating the Interest Packet. > Also, when an Interest expires, is the WillEraseTimedOutPendingInterest method automatically invoked? > > Regards, > Marco From lixia at CS.UCLA.EDU Thu Jan 8 19:32:33 2015 From: lixia at CS.UCLA.EDU (Lixia Zhang) Date: Thu, 8 Jan 2015 19:32:33 -0800 Subject: [ndnSIM] [Nfd-dev] NFD Development - Content Store In-Reply-To: <01C08130-0346-4EB0-9FA2-B56C3B22E8D9@cisco.com> References: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> <749c724082d6eb952517510af743f55c@ce.sharif.edu> <01C08130-0346-4EB0-9FA2-B56C3B22E8D9@cisco.com> Message-ID: > On Jan 8, 2015, at 8:49 AM, Dave Oran (oran) wrote: > > >> On Jan 8, 2015, at 8:09 AM, Lixia Zhang wrote: >> >> >>> On Jan 8, 2015, at 1:39 AM, L.Zeynalvand wrote: >>> >>> Thank you Alex, >>> Actually my thesis is decentralized social networking using named data, in which people's private social content is hosted right from their homes, having a part of the content store persistent is crucial for me. I'll work on the NFD code and let you know the results. >>> >>> Regards, >>> -- >>> Leonid Zeynalvand >>> M.Sc Information Technology >>> Sharif University of Technology >> >> Personally I would suggest you look into ndn repo for persistent storage >> > I think there are two independent capabilities here: > > 1. A ?repo? as a robust storage service to applications who want to be able to go quiet or stop running without the authoritative published data under their control becoming inaccessible. > > 2. A performance/robustness feature of a cache such that its content survive a disruption due to a power failure, reboot, etc. > > We tend to use the term ?persistent storage" for both of these - I would argue they are conceptually different but could be achieved by similar or the same storage service features used by the NDN software. > > DaveO. you are absolutely right that these are two separate issues. >From Leonid's msg, I just guessed that he might meant a managed storage service, i.e. your first one. But I should have clarified, thanks for pointing out. Lixia From wonjunchoi001 at gmail.com Thu Jan 8 21:10:27 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Fri, 9 Jan 2015 14:10:27 +0900 Subject: [ndnSIM] How to trace ReceivedInterests? In-Reply-To: References: Message-ID: Thanks for you guys helps Best regards Wonjun, Choi ---------------------------------------------------------------------------- Korea Institute of Science and Technology Information(KISTI) National Institute of Supercomputing and Networking Networking Service Development Team TEL: +82-42-869-0890 FAX:+82-42-869-0589 Email: cwj at kisti.re.kr, wonjunchoi001 at gmail.com University of Science & Technology(UST) Grid & Supercomputing Integrated course ---------------------------------------------------------------------------- 2015-01-09 10:58 GMT+09:00 Alex Afanasyev : > You can just connect to the TraceSource and do whatever trace processing > you need. > > Currently, we don?t have in ndnSIM trace helpers that simplify this > operation. But it is very simple to do such tracing > > 1. define callback > > void > WillBeCalledWhenInterestIsReceived(Ptr i, Ptr a, > Ptr f) > { > ... > } > > 2. connect callback to trace source of the application you interested in > > /NodeList/[i]/ApplicationList/[i]/$ns3::ndn::App > > Config::ConnectWithoutContext("/NodeList/1/ApplicationList/2/ReceivedInterests", > MakeCallback(&WillBeCalledWhenInterestIsReceived); > > > Numbers here you will probably need to guess (they depend on the order > nodes and applications are created in the scenario). > > > This tracing can be arbitrarily complex. You can look to L3RateTrace > source code that Spyros has pointed out for more reference implementation. > The only difference there is that L3Tracer takes input from the whole NDN > stack (aggregate among all network channels and applications), while you > want to look for specific application. > > ? > Alex > > On Jan 8, 2015, at 2:46 AM, ??? wrote: > > Hello. > > I have no idea how to trace below value. > > I hope some can help me. > > *ns3::ndn::App * > > - ReceivedInterests: ReceivedInterests > - ReceivedNacks: ReceivedNacks > - ReceivedDatas: ReceivedDatas > - TransmittedInterests: TransmittedInterests > - TransmittedDatas: TransmittedDatas > > Best regards > Wonjun, Choi > _______________________________________________ > 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 ju.wulfheide at gmail.com Sun Jan 11 09:25:27 2015 From: ju.wulfheide at gmail.com (Julian Wulfheide) Date: Sun, 11 Jan 2015 18:25:27 +0100 Subject: [ndnSIM] Performance of ndnSIM Message-ID: Hey, how have you guys experienced the performance of ndnSIM. I try to run simulations where 16 Consumers request 100 times per second (later on, I would need even higher frequencies). That should not be too much, right?! But the simulations are extremly slow. So slow that I was not able to finish even one simulation. I have changed the routing algorithm, but the profiler does not show any slow spots in my changes. I also have installted tracers on some nodes, but already increased the interval for one of them: ndn::L3AggregateTracer::Install (someNodes, l3TracerFile.str(), Seconds(10.0)); ndn::AppDelayTracer::Install (otherNodes, appDelayTracerFile.str()); What else could I do to increase performance? Best, Julian From alexander.afanasyev at ucla.edu Sun Jan 11 12:33:15 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sun, 11 Jan 2015 12:33:15 -0800 Subject: [ndnSIM] Performance of ndnSIM In-Reply-To: References: Message-ID: <4AA65485-6E2E-4472-A9CE-924400AE72E2@ucla.edu> Hi Julian, Did you compile NS-3/ndnSIM in optimized mode? Debug mode is several orders of magnitude slower. Also. How long are you simulations? ndnSIM is trying to realistically simulate NDN operations, so there are limitations on how many operations can be performed. To shorten simulation time you can look into scaling your simulation or check NS-3 MPI module, with which you can partition your network run simulation on multiple CPU cores / machines. --- Alex > On Jan 11, 2015, at 9:25 AM, Julian Wulfheide wrote: > > Hey, > how have you guys experienced the performance of ndnSIM. I try to run > simulations where 16 Consumers request 100 times per second (later on, > I would need even higher frequencies). That should not be too much, > right?! But the simulations are extremly slow. So slow that I was not > able to finish even one simulation. I have changed the routing > algorithm, but the profiler does not show any slow spots in my > changes. I also have installted tracers on some nodes, but already > increased the interval for one of them: > > ndn::L3AggregateTracer::Install (someNodes, l3TracerFile.str(), > Seconds(10.0)); > ndn::AppDelayTracer::Install (otherNodes, appDelayTracerFile.str()); > > What else could I do to increase performance? > > Best, Julian From marco.ulgelmo at aol.com Sun Jan 11 15:52:32 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Mon, 12 Jan 2015 00:52:32 +0100 Subject: [ndnSIM] Edge Router Message-ID: <0614ADF9-FE30-4F1E-A43E-3CA75971C368@aol.com> Is there a way to identify a edge router in ndnsim? Thanks, Marco From alexander.afanasyev at ucla.edu Sun Jan 11 19:40:39 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sun, 11 Jan 2015 19:40:39 -0800 Subject: [ndnSIM] Edge Router In-Reply-To: <0614ADF9-FE30-4F1E-A43E-3CA75971C368@aol.com> References: <0614ADF9-FE30-4F1E-A43E-3CA75971C368@aol.com> Message-ID: Hi Marco, In your simulation scenario you should be able to know which nodes are edge routers :) I usually used a naming convention and assigned names (using ns3::Names class) to nodes based on their function. For examples, you can assign "edge-" to edge routers and then use this prefix to distinguish node type (e.g., when processing simulation traces). This probably is not the most efficient way and others may suggest a better solution. --- Alex > On Jan 11, 2015, at 3:52 PM, marco.ulgelmo at aol.com wrote: > > Is there a way to identify a edge router in ndnsim? > > Thanks, > Marco From wonjunchoi001 at gmail.com Sun Jan 11 23:49:13 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Mon, 12 Jan 2015 16:49:13 +0900 Subject: [ndnSIM] Real-time received packet size Message-ID: Hello. I was trying to know how L3RateTracer::Reset () function works. What I want to do is to check received packet size from requester at each time. If I set payload size from provider to 1024. I want to know when the final packet is received from requester. It seems like packet size is automatically changed according to the payload size what I set. packet size for one sequence = total time / 1024 ? Please let me know Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Mon Jan 12 00:03:47 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Mon, 12 Jan 2015 17:03:47 +0900 Subject: [ndnSIM] Real-time received packet size In-Reply-To: References: Message-ID: I am sorry. the below part of L3RateTracer::Reset() function of the trace source code. Wonjun, Choi ---------------------------------------------------------------------------- Korea Institute of Science and Technology Information(KISTI) National Institute of Supercomputing and Networking Networking Service Development Team TEL: +82-42-869-0890 FAX:+82-42-869-0589 Email: cwj at kisti.re.kr, wonjunchoi001 at gmail.com University of Science & Technology(UST) Grid & Supercomputing Integrated course ---------------------------------------------------------------------------- 2015-01-12 16:49 GMT+09:00 ??? : > Hello. > > I was trying to know how L3RateTracer::Reset () function works. > What I want to do is to check received packet size from requester at each > time. > If I set payload size from provider to 1024. I want to know when the final > packet is received from requester. > It seems like packet size is automatically changed according to the > payload size what I set. > packet size for one sequence = total time / 1024 ? > Please let me know > > Wonjun, Choi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ju.wulfheide at gmail.com Mon Jan 12 05:45:55 2015 From: ju.wulfheide at gmail.com (Julian Wulfheide) Date: Mon, 12 Jan 2015 14:45:55 +0100 Subject: [ndnSIM] Performance of ndnSIM In-Reply-To: <4AA65485-6E2E-4472-A9CE-924400AE72E2@ucla.edu> References: <4AA65485-6E2E-4472-A9CE-924400AE72E2@ucla.edu> Message-ID: Hi Alex, thanks a lot! Compiling in optimized mode made everything much faster. I totally forgot about that. But it should do! Best, Julian On Sun, Jan 11, 2015 at 9:33 PM, Alex Afanasyev wrote: > Hi Julian, > > Did you compile NS-3/ndnSIM in optimized mode? Debug mode is several orders of magnitude slower. > > Also. How long are you simulations? ndnSIM is trying to realistically simulate NDN operations, so there are limitations on how many operations can be performed. To shorten simulation time you can look into scaling your simulation or check NS-3 MPI module, with which you can partition your network run simulation on multiple CPU cores / machines. > > --- > Alex > >> On Jan 11, 2015, at 9:25 AM, Julian Wulfheide wrote: >> >> Hey, >> how have you guys experienced the performance of ndnSIM. I try to run >> simulations where 16 Consumers request 100 times per second (later on, >> I would need even higher frequencies). That should not be too much, >> right?! But the simulations are extremly slow. So slow that I was not >> able to finish even one simulation. I have changed the routing >> algorithm, but the profiler does not show any slow spots in my >> changes. I also have installted tracers on some nodes, but already >> increased the interval for one of them: >> >> ndn::L3AggregateTracer::Install (someNodes, l3TracerFile.str(), >> Seconds(10.0)); >> ndn::AppDelayTracer::Install (otherNodes, appDelayTracerFile.str()); >> >> What else could I do to increase performance? >> >> Best, Julian From zeynalvand at ce.sharif.edu Mon Jan 12 08:03:24 2015 From: zeynalvand at ce.sharif.edu (L.Zeynalvand) Date: Mon, 12 Jan 2015 19:33:24 +0330 Subject: [ndnSIM] [Nfd-dev] NFD Development - Content Store In-Reply-To: References: <659ce27888812915baf2556d0312b72c@ce.sharif.edu> <749c724082d6eb952517510af743f55c@ce.sharif.edu> <01C08130-0346-4EB0-9FA2-B56C3B22E8D9@cisco.com> Message-ID: <67ee60d573e69f70caec529a9d28eb53@ce.sharif.edu> On 09.01.2015 07:02, Lixia Zhang wrote: >> On Jan 8, 2015, at 8:49 AM, Dave Oran (oran) wrote: >> >> >>> On Jan 8, 2015, at 8:09 AM, Lixia Zhang wrote: >>> >>> >>>> On Jan 8, 2015, at 1:39 AM, L.Zeynalvand >>>> wrote: >>>> >>>> Thank you Alex, >>>> Actually my thesis is decentralized social networking using named >>>> data, in which people's private social content is hosted right from >>>> their homes, having a part of the content store persistent is >>>> crucial for me. I'll work on the NFD code and let you know the >>>> results. >>>> >>>> Regards, >>>> -- >>>> Leonid Zeynalvand >>>> M.Sc Information Technology >>>> Sharif University of Technology >>> >>> Personally I would suggest you look into ndn repo for persistent >>> storage >>> >> I think there are two independent capabilities here: >> >> 1. A ?repo? as a robust storage service to applications who want to >> be able to go quiet or stop running without the authoritative >> published data under their control becoming inaccessible. >> >> 2. A performance/robustness feature of a cache such that its content >> survive a disruption due to a power failure, reboot, etc. >> >> We tend to use the term ?persistent storage" for both of these - I >> would argue they are conceptually different but could be achieved by >> similar or the same storage service features used by the NDN software. >> >> DaveO. > > you are absolutely right that these are two separate issues. > > From Leonid's msg, I just guessed that he might meant a managed > storage service, i.e. your first one. But I should have clarified, > thanks for pointing out. > > Lixia Thank you Dave for your consideration, Actually the first one was exactly what I needed. -- Leonid Zeynalvand M.Sc Information Technology Sharif University of Technology From alexander.afanasyev at ucla.edu Mon Jan 12 14:40:07 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Mon, 12 Jan 2015 17:40:07 -0500 Subject: [ndnSIM] Real-time received packet size In-Reply-To: References: Message-ID: <82B05E9F-BE01-49B0-8F4D-0438FC84E2B3@ucla.edu> > On Jan 12, 2015, at 2:49 AM, ??? wrote: > > Hello. > > I was trying to know how L3RateTracer::Reset () function works. > What I want to do is to check received packet size from requester at each time. > If I set payload size from provider to 1024. I want to know when the final packet is received from requester. > It seems like packet size is automatically changed according to the payload size what I set. > packet size for one sequence = total time / 1024 ? Hi Wonjun, Packet size is not changed automatically. You need to configure it in producer application using PayloadSize attribute (http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_producer.html ). The default value is 1024. The actual packet size will be larger than 1024, given there are additional (variable-lenght) headers. ? Alex > Please let me know > > Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Mon Jan 12 15:56:06 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Tue, 13 Jan 2015 08:56:06 +0900 Subject: [ndnSIM] Real-time received packet size In-Reply-To: <82B05E9F-BE01-49B0-8F4D-0438FC84E2B3@ucla.edu> References: <82B05E9F-BE01-49B0-8F4D-0438FC84E2B3@ucla.edu> Message-ID: Thanks for your reply. I can set payload value differently (producerHelper.SetAttribute ("PayloadSize", StringValue("1024")); ) and the kilobytes of each packet per interest were different in rate-tracer's output. As you said, I can set the payload size at initial time but if I set it 2024 or 1024 etc, the packet size per interest packet is different in rate-tracer's output. so I thought the packet size is automatically changed. Wonjun, Choi ---------------------------------------------------------------------------- Korea Institute of Science and Technology Information(KISTI) National Institute of Supercomputing and Networking Networking Service Development Team TEL: +82-42-869-0890 FAX:+82-42-869-0589 Email: cwj at kisti.re.kr, wonjunchoi001 at gmail.com University of Science & Technology(UST) Grid & Supercomputing Integrated course ---------------------------------------------------------------------------- 2015-01-13 7:40 GMT+09:00 Alex Afanasyev : > > On Jan 12, 2015, at 2:49 AM, ??? wrote: > > Hello. > > I was trying to know how L3RateTracer::Reset () function works. > What I want to do is to check received packet size from requester at each > time. > If I set payload size from provider to 1024. I want to know when the final > packet is received from requester. > It seems like packet size is automatically changed according to the > payload size what I set. > packet size for one sequence = total time / 1024 ? > > > Hi Wonjun, > > Packet size is not changed automatically. You need to configure it in > producer application using PayloadSize attribute ( > http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_producer.html). The > default value is 1024. > > The actual packet size will be larger than 1024, given there are > additional (variable-lenght) headers. > > ? > Alex > > Please let me know > > Wonjun, Choi > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.ulgelmo at aol.com Tue Jan 13 08:35:22 2015 From: marco.ulgelmo at aol.com (Marco Ulgelmo) Date: Tue, 13 Jan 2015 17:35:22 +0100 Subject: [ndnSIM] Data Packet Payload Message-ID: <8B2B4676-56BB-41D1-B10F-328ABB0ED0A6@aol.com> Hello, Let?s assume I create a Data Packet invoking the Packet (const std::string &buffer) constructor. I?d like to know if there is a straightforward method to read a Data Packet?s payload. Otherwise, is it possible to read it by using the iterators provided in the Buffer class? Specifically i?d need to read the payload as a string. Thanks, Marco From aloulounarjes at yahoo.fr Tue Jan 13 15:48:25 2015 From: aloulounarjes at yahoo.fr (narjes aloulou) Date: Tue, 13 Jan 2015 23:48:25 +0000 Subject: [ndnSIM] Trace application In-Reply-To: Message-ID: <1421192905.26625.YahooMailBasic@web172104.mail.ir2.yahoo.com> Hi, I want to trace the download time of a content (zipf consumer). However, the trace is generated as an empty file. When I debug the code, I found that the method OnData of the zipf-consumer class is not executed. My questions: when Ondata of the application is executed? what 's the relation between Ondata of the forwarding strategy and OnData of the application? Best regards From spiros.mastorakis at gmail.com Tue Jan 13 16:15:07 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 13 Jan 2015 16:15:07 -0800 Subject: [ndnSIM] Trace application In-Reply-To: <1421192905.26625.YahooMailBasic@web172104.mail.ir2.yahoo.com> References: <1421192905.26625.YahooMailBasic@web172104.mail.ir2.yahoo.com> Message-ID: <6C7F2A74-695B-4C22-92C8-011F08161FE3@gmail.com> Hello, The OnData method of the application class is called each time that new Data will arrive for the consumer application. The OnData method of the forwarding strategy does the actual processing of a Data packet during the forwarding process (e.g., check whether the Data packet is unsolicited or duplicated, add the data to the Content Store, satisfy pending interests, perform some data plane performance measurements etc.). The OnData method of the application is called only on a consumer node, whereas the OnData method of the forwarding strategy is called on every node that receives a Data packet. I will make an educated guess for your issue: Make sure that you actually install a Global Routing Helper, calculate and install FIBs (CalculateRoutes method) and add the correct origins and prefix to the Global Routing Helper (AddOrigins method). -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 13, 2015, at 3:48 PM, narjes aloulou wrote: > > Hi, > > I want to trace the download time of a content (zipf consumer). However, the trace is generated as an empty file. When I debug the code, I found that the method OnData of the zipf-consumer class is not executed. > > My questions: when Ondata of the application is executed? what 's the relation between Ondata of the forwarding strategy and OnData of the application? > > Best regards > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Jan 13 21:58:33 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 14 Jan 2015 00:58:33 -0500 Subject: [ndnSIM] ndnSIM 2.0 released Message-ID: Dear all, We are pleased to announce ndnSIM version 2.0 (http://ndnsim.net/2.0/), a new major release of the NDN simulator. The code through extensive refactoring and rewriting, resulted in the following key new features: - ndnSIM no longer re-implements basic NDN primitives and directly uses implementation from ndn-cxx library (NDN C++ library with eXperimental eXtensions, http://named-data.net/doc/ndn-cxx/) - All NDN forwarding and management is implemented directly using source code of Named Data Networking Forwarding Daemon (NFD, http://named-data.net/doc/NFD/) - Packet format changed to the NDN packet format Please note that ndnSIM 2.0 has major refactoring and simulation scenarios written for previous releases most likely would need to be changed to run on ndnSIM 2.0 platform. Release notes for the release: http://ndnsim.net/RELEASE_NOTES.html More detailed information about the release is available on the ndnSIM website: http://ndnsim.net/ * * * Note that documentation for the old release has been moved to http://ndnsim.net/1.0/ --- ndnSIM Team From wonjunchoi001 at gmail.com Tue Jan 13 22:40:17 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 14 Jan 2015 15:40:17 +0900 Subject: [ndnSIM] How to change prefix name? Message-ID: Hello. I want to change prefix name like 1, 2, 3, ... instead of /%00Z ... The code below displays the prefix name. --------------------------------------------------------------- for (int i = 0; i < 300; i++) { ndn::Name x; x.appendSeqNum(i); std::cout << i << " = " << x << std::endl; } return 0; --------------------------------------------------------------- how can I set the prefix like /v1/1, /v1/2, ...? Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Jan 13 22:57:15 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 14 Jan 2015 01:57:15 -0500 Subject: [ndnSIM] How to change prefix name? In-Reply-To: References: Message-ID: While it is possible to do what you're asking, I would actually suggest a different solution. You can get the number stored in the name component and print it in readable form, instead of just printing the name. For example, std::cout << x.get(-1).toSeqNum(); --- Alex > On Jan 14, 2015, at 1:40 AM, ??? wrote: > > Hello. > > I want to change prefix name like 1, 2, 3, ... instead of /%00Z ... > The code below displays the prefix name. > --------------------------------------------------------------- > for (int i = 0; i < 300; i++) { > ndn::Name x; > x.appendSeqNum(i); > std::cout << i << " = " << x << std::endl; > } > return 0; > --------------------------------------------------------------- > how can I set the prefix like /v1/1, /v1/2, ...? > > Wonjun, Choi > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From wonjunchoi001 at gmail.com Tue Jan 13 23:28:36 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 14 Jan 2015 16:28:36 +0900 Subject: [ndnSIM] How to change prefix name? In-Reply-To: References: Message-ID: Thanks for your comment. btw, I wonder what it means.(-1 index) Wonjun, Choi 2015-01-14 15:57 GMT+09:00 Alex Afanasyev : > While it is possible to do what you're asking, I would actually suggest a > different solution. You can get the number stored in the name component > and print it in readable form, instead of just printing the name. > > For example, > > std::cout << x.get(-1).toSeqNum(); > > --- > Alex > > > On Jan 14, 2015, at 1:40 AM, ??? wrote: > > > > Hello. > > > > I want to change prefix name like 1, 2, 3, ... instead of /%00Z ... > > The code below displays the prefix name. > > --------------------------------------------------------------- > > for (int i = 0; i < 300; i++) { > > ndn::Name x; > > x.appendSeqNum(i); > > std::cout << i << " = " << x << std::endl; > > } > > return 0; > > --------------------------------------------------------------- > > how can I set the prefix like /v1/1, /v1/2, ...? > > > > Wonjun, Choi > > _______________________________________________ > > 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 wonjunchoi001 at gmail.com Wed Jan 14 01:28:21 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 14 Jan 2015 18:28:21 +0900 Subject: [ndnSIM] How to set Fib table to each node? Message-ID: Hello. Can I set Fib table to each node like Pit table below? ndnHelper.SetPit ("ns3::ndn::pit::Persistent", "MaxSize", "20"); Also, I want to insert additional entry to fib. I don't know how. Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Wed Jan 14 06:36:41 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 14 Jan 2015 09:36:41 -0500 Subject: [ndnSIM] How to change prefix name? In-Reply-To: References: Message-ID: Hi Wonjun, Negative indices is just a convenience way to get access name components from the back of the name. The same (but a little longer) would be to write x.get(x.size() - 1).toSeqNum(); ? Alex > On Jan 14, 2015, at 2:28 AM, ??? wrote: > > Thanks for your comment. btw, I wonder what it means.(-1 index) > > Wonjun, Choi > > 2015-01-14 15:57 GMT+09:00 Alex Afanasyev >: > While it is possible to do what you're asking, I would actually suggest a different solution. You can get the number stored in the name component and print it in readable form, instead of just printing the name. > > For example, > > std::cout << x.get(-1).toSeqNum(); > > --- > Alex > > > On Jan 14, 2015, at 1:40 AM, ??? > wrote: > > > > Hello. > > > > I want to change prefix name like 1, 2, 3, ... instead of /%00Z ... > > The code below displays the prefix name. > > --------------------------------------------------------------- > > for (int i = 0; i < 300; i++) { > > ndn::Name x; > > x.appendSeqNum(i); > > std::cout << i << " = " << x << std::endl; > > } > > return 0; > > --------------------------------------------------------------- > > how can I set the prefix like /v1/1, /v1/2, ...? > > > > Wonjun, Choi > > _______________________________________________ > > 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: -------------- 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 wonjunchoi001 at gmail.com Wed Jan 14 06:53:51 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 14 Jan 2015 23:53:51 +0900 Subject: [ndnSIM] How to change prefix name? In-Reply-To: References: Message-ID: Thanks for your explanation. Best regards Wonjun, Choi 2015-01-14 23:36 GMT+09:00 Alex Afanasyev : > Hi Wonjun, > > Negative indices is just a convenience way to get access name components > from the back of the name. The same (but a little longer) would be to write > > x.get(x.size() - 1).toSeqNum(); > > ? > Alex > > On Jan 14, 2015, at 2:28 AM, ??? wrote: > > Thanks for your comment. btw, I wonder what it means.(-1 index) > > Wonjun, Choi > > 2015-01-14 15:57 GMT+09:00 Alex Afanasyev : > >> While it is possible to do what you're asking, I would actually suggest a >> different solution. You can get the number stored in the name component >> and print it in readable form, instead of just printing the name. >> >> For example, >> >> std::cout << x.get(-1).toSeqNum(); >> >> --- >> Alex >> >> > On Jan 14, 2015, at 1:40 AM, ??? wrote: >> > >> > Hello. >> > >> > I want to change prefix name like 1, 2, 3, ... instead of /%00Z ... >> > The code below displays the prefix name. >> > --------------------------------------------------------------- >> > for (int i = 0; i < 300; i++) { >> > ndn::Name x; >> > x.appendSeqNum(i); >> > std::cout << i << " = " << x << std::endl; >> > } >> > return 0; >> > --------------------------------------------------------------- >> > how can I set the prefix like /v1/1, /v1/2, ...? >> > >> > Wonjun, Choi >> > _______________________________________________ >> > 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 aloulounarjes at yahoo.fr Wed Jan 14 07:47:58 2015 From: aloulounarjes at yahoo.fr (narjes aloulou) Date: Wed, 14 Jan 2015 15:47:58 +0000 Subject: [ndnSIM] Trace application In-Reply-To: <6C7F2A74-695B-4C22-92C8-011F08161FE3@gmail.com> Message-ID: <1421250478.89339.YahooMailBasic@web172101.mail.ir2.yahoo.com> Thanks for your response Spyridon, The client receives the data in the forwarding strategy so onData method of fw is executed. But in the application side, the OnData is not executed!!! How can solve this problem? Best regards -------------------------------------------- En date de?: Mer 14.1.15, Spyridon (Spyros) Mastorakis a ?crit?: Objet: Re: [ndnSIM] Trace application ?: "narjes aloulou" Cc: ndnsim at lists.cs.ucla.edu Date: Mercredi 14 janvier 2015, 1h15 Hello, The OnData method of the application class is called each time that new Data will arrive for the consumer application.?The OnData method of the forwarding strategy does the actual processing of a Data packet during the forwarding process (e.g., check whether the Data packet is unsolicited or duplicated, add the data to the Content Store, satisfy pending interests, perform some data plane performance measurements etc.).The OnData method of the application is called only on a consumer node, whereas the OnData method of the forwarding strategy is called on every node that receives a Data packet. I will make an educated guess for your issue: Make sure that you actually install a Global Routing Helper, calculate and install FIBs (CalculateRoutes method)?and add the correct origins and prefix to the Global Routing Helper (AddOrigins method). --Spyridon (Spyros) Mastorakis Personal Website:?http://cs.ucla.edu/~mastorakis/Internet Research LaboratoryPhD Computer Science UCLA On Jan 13, 2015, at 3:48 PM, narjes aloulou wrote: Hi, I want to ?trace the download time of a content (zipf consumer). However, ?the trace is generated as an empty file. When I debug the code, I found that the method OnData of the zipf-consumer class is not executed. My questions: when Ondata of the application is executed? what 's the relation between Ondata of the forwarding strategy and OnData of the application? Best regards _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From alexander.afanasyev at ucla.edu Wed Jan 14 08:13:22 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 14 Jan 2015 11:13:22 -0500 Subject: [ndnSIM] Trace application In-Reply-To: <1421250478.89339.YahooMailBasic@web172101.mail.ir2.yahoo.com> References: <1421250478.89339.YahooMailBasic@web172101.mail.ir2.yahoo.com> Message-ID: Narjes, Can you give us a basic code that can reproduce the problem, so we would be able to trace it? -- Alex > On Jan 14, 2015, at 10:47 AM, narjes aloulou wrote: > > Thanks for your response Spyridon, > > The client receives the data in the forwarding strategy so onData method of fw is executed. But in the application side, the OnData is not executed!!! How can solve this problem? > > Best regards > -------------------------------------------- > En date de : Mer 14.1.15, Spyridon (Spyros) Mastorakis a ?crit : > > Objet: Re: [ndnSIM] Trace application > ?: "narjes aloulou" > Cc: ndnsim at lists.cs.ucla.edu > Date: Mercredi 14 janvier 2015, 1h15 > > Hello, > The > OnData method of the application class is called each time > that new Data will arrive for the consumer > application. The OnData > method of the forwarding strategy does the actual processing > of a Data packet during the forwarding process (e.g., check > whether the Data packet is unsolicited or duplicated, add > the data to the Content Store, satisfy pending interests, > perform some data plane performance measurements > etc.).The OnData method of > the application is called only on a consumer node, whereas > the OnData method of the forwarding strategy is called on > every node that receives a Data packet. > I > will make an educated guess for your issue: Make sure that > you actually install a Global Routing Helper, calculate and > install FIBs (CalculateRoutes method) and add the correct > origins and prefix to the Global Routing Helper (AddOrigins > method). > > --Spyridon > (Spyros) Mastorakis > Personal > Website: http://cs.ucla.edu/~mastorakis/Internet > Research LaboratoryPhD > Computer Science > UCLA > > > > > > On Jan 13, 2015, at 3:48 PM, narjes > aloulou > wrote: > Hi, > > I want to trace the download time of > a content (zipf consumer). However, the trace is generated > as an empty file. When I debug the code, I found that the > method OnData of the zipf-consumer class is not executed. > > My questions: when Ondata of the > application is executed? what 's the relation between > Ondata of the forwarding strategy and OnData of the > application? > > Best regards > > _______________________________________________ > 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 -------------- 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 spiros.mastorakis at gmail.com Wed Jan 14 13:56:55 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 14 Jan 2015 13:56:55 -0800 Subject: [ndnSIM] Data Packet Payload In-Reply-To: <8B2B4676-56BB-41D1-B10F-328ABB0ED0A6@aol.com> References: <8B2B4676-56BB-41D1-B10F-328ABB0ED0A6@aol.com> Message-ID: <526C3FD3-1BA3-48D6-91D9-B6A6CA4E99C8@gmail.com> Hello Marco, The payload of a Data packet is actually a NS-3 packet instance, which is included inside another NS-3 packet instance (i.e., the Data packet as a whole). In essence, you have a NS-3 packet instance inside another NS-3 packet instance. The most straightforward way that I can think right now is to convert the NS-3 packet to the corresponding Data packet and then use the GetPayload () method that returns a pointer to the NS-3 packet that contains the payload. Of course you can iterate over a buffer, but I really think that this is an extremely low level operation.. Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 13, 2015, at 8:35 AM, Marco Ulgelmo wrote: > > Hello, > > Let?s assume I create a Data Packet invoking the Packet (const std::string &buffer) constructor. I?d like to know if there is a straightforward method to read a Data Packet?s payload. Otherwise, is it possible to read it by using the iterators provided in the Buffer class? Specifically i?d need to read the payload as a string. > > Thanks, > > Marco > _______________________________________________ > 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 spiros.mastorakis at gmail.com Wed Jan 14 14:14:19 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 14 Jan 2015 14:14:19 -0800 Subject: [ndnSIM] How to set Fib table to each node? In-Reply-To: References: Message-ID: <4437E4C2-FA44-45F9-85FE-52C84DA1FCAF@gmail.com> Hello, You can set the Fib table on each node either by installing a Global Routing Helper, adding prefixes and origins and then calculate and install the FIBs (http://ndnsim.net/1.0/examples.html#node-grid-example ) or by setting the Default routes when using the Stack Helper (http://ndnsim.net/1.0/examples.html#simple-scenario ). You can manually configure the FIB routes by using the AddRoute method of the Stack Helper (http://ndnsim.net/1.0/examples.html#node-2-bottleneck-topology-with-custom-forwarding-strategy ) You may take a look at more examples here: http://ndnsim.net/1.0/examples.html -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 14, 2015, at 1:28 AM, ??? wrote: > > Hello. > > Can I set Fib table to each node like Pit table below? > ndnHelper.SetPit ("ns3::ndn::pit::Persistent", "MaxSize", "20"); > > Also, I want to insert additional entry to fib. I don't know how. > > Best regards. > Wonjun, Choi > > > _______________________________________________ > 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 marco.ulgelmo at aol.com Wed Jan 14 15:36:38 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Wed, 14 Jan 2015 18:36:38 -0500 Subject: [ndnSIM] ndnSIM 2.0 compiling error Message-ID: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> I've tried to compile the ns-3 module in ndnSIM for some hours. I keep getting the error: In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type static std::shared_ptr ^ ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? Convert::FromPacket(Ptr packet) ^af ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ?(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ?(Ptr packet); I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without. I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that). Thanks, Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Wed Jan 14 15:50:10 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 14 Jan 2015 15:50:10 -0800 Subject: [ndnSIM] ndnSIM 2.0 compiling error In-Reply-To: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> References: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> Message-ID: <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> Hello Marco, First of all, I would like to ask which is the operating system that you are using. Secondly, I would also like to ask whether you downloaded the new NS-3 version that is uploaded in the ?ndnSIM" branch here: https://github.com/cawka/ns-3-dev-ndnSIM Thank you very much in advance for your answer. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com wrote: > > I've tried to compile the ns-3 module in ndnSIM for some hours. > > I keep getting the error: > > In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: > ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type > static std::shared_ptr > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? > Convert::FromPacket(Ptr packet) > ^af > ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found > Convert::FromPacket(Ptr packet); > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ? Convert::FromPacket(Ptr packet); > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found > Convert::FromPacket(Ptr packet); > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ? Convert::FromPacket(Ptr packet); > > I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without. > I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that). > > Thanks, > Marco > _______________________________________________ > 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 marco.ulgelmo at aol.com Wed Jan 14 15:56:38 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Wed, 14 Jan 2015 18:56:38 -0500 Subject: [ndnSIM] ndnSIM 2.0 compiling error In-Reply-To: <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> References: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> Message-ID: <8D1FE6C6BF4A519-7A8-A952@webmail-va032.sysops.aol.com> Thanks for your fast reply, i'm currently working on Ubuntu 14.04, i've seen in the website that even if it's not officialy supported, developers could compile successfully. To answer your second question, i pulled from git clone https://github.com/cawka/ns-3-dev-ndnSIM.git Thanks a lot, Marco -----Original Message----- From: Spyridon (Spyros) Mastorakis To: marco.ulgelmo CC: ndnsim Sent: Thu, 15 Jan 2015 0:50 Subject: Re: [ndnSIM] ndnSIM 2.0 compiling error Hello Marco, First of all, I would like to ask which is the operating system that you are using. Secondly, I would also like to ask whether you downloaded the new NS-3 version that is uploaded in the ?ndnSIM" branch here: https://github.com/cawka/ns-3-dev-ndnSIM Thank you very much in advance for your answer. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com wrote: I've tried to compile the ns-3 module in ndnSIM for some hours. I keep getting the error: In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type static std::shared_ptr ^ ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? Convert::FromPacket(Ptr packet) ^af ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ?(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ?(Ptr packet); I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without. I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that). Thanks, Marco _______________________________________________ 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 spiros.mastorakis at gmail.com Wed Jan 14 16:18:42 2015 From: spiros.mastorakis at gmail.com (Spiros Mastorakis) Date: Wed, 14 Jan 2015 16:18:42 -0800 Subject: [ndnSIM] ndnSIM 2.0 compiling error In-Reply-To: <8D1FE6C6BF4A519-7A8-A952@webmail-va032.sysops.aol.com> References: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> <8D1FE6C6BF4A519-7A8-A952@webmail-va032.sysops.aol.com> Message-ID: Hello Marco, If you cloned the NS-3 repo before the update, then probably you are pulling the old version of NS-3, where c++11 is not enabled. Please start over with cloning the new version of the NS-3 repo and try to compile again. Please let us about the result. Thank you, Spyros On Wednesday, January 14, 2015, > wrote: > Thanks for your fast reply, > > i'm currently working on Ubuntu 14.04, i've seen in the website that even > if it's not officialy supported, developers could compile successfully. > > To answer your second question, i pulled from git clone > https://github.com/cawka/ns-3-dev-ndnSIM.git > > Thanks a lot, > > Marco > > > > -----Original Message----- > From: Spyridon (Spyros) Mastorakis > To: marco.ulgelmo > CC: ndnsim > Sent: Thu, 15 Jan 2015 0:50 > Subject: Re: [ndnSIM] ndnSIM 2.0 compiling error > > Hello Marco, > > First of all, I would like to ask which is the operating system that you > are using. Secondly, I would also like to ask whether you downloaded the > new NS-3 version that is uploaded in the ?ndnSIM" branch here: > > https://github.com/cawka/ns-3-dev-ndnSIM > > Thank you very much in advance for your answer. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com wrote: > > I've tried to compile the ns-3 module in ndnSIM for some hours. > > I keep getting the error: > > In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: > ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace > ?std? does not name a type > static std::shared_ptr > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr _Tp> ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function > declared in class ?ns3::ndn::Convert? > Convert::FromPacket(Ptr packet) > ^af > ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for > ?ns3::ndn::Convert::FromPacket? found > Convert::FromPacket(Ptr packet); > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ? Convert::FromPacket(Ptr packet); > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for > ?ns3::ndn::Convert::FromPacket? found > Convert::FromPacket(Ptr packet); > ^ > ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ? Convert::FromPacket(Ptr packet); > > I am using compiler version 4.8.2, boost library version 1.54. I tried > both ./waf configure with -d optimization and without. > I've seen that this error is due to c++ not compiling c++11 statement but > compiler flags in ./waf configure are correct and both -std=c++0x and > -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 > but i keep getting other errors (different than that). > > Thanks, > Marco > _______________________________________________ > 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 marco.ulgelmo at aol.com Wed Jan 14 16:22:46 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Wed, 14 Jan 2015 19:22:46 -0500 Subject: [ndnSIM] ndnSIM 2.0 compiling error In-Reply-To: References: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> <8D1FE6C6BF4A519-7A8-A952@webmail-va032.sysops.aol.com> Message-ID: <8D1FE7012AA9A45-7A8-AB54@webmail-va032.sysops.aol.com> Latest commit was 6 days ago, i pulled like 5 or 6 hours ago. I've tried everything that i had in mind and i'm out of options. I just want to make sure it's not some sort of issue with 14.04 version of ubuntu. I will try on 12.04 following all the steps in the guide. Thanks, Marco -----Original Message----- From: Spiros Mastorakis To: marco.ulgelmo CC: ndnsim Sent: Thu, 15 Jan 2015 1:18 Subject: [ndnSIM] ndnSIM 2.0 compiling error Hello Marco, If you cloned the NS-3 repo before the update, then probably you are pulling the old version of NS-3, where c++11 is not enabled. Please start over with cloning the new version of the NS-3 repo and try to compile again. Please let us about the result. Thank you, Spyros On Wednesday, January 14, 2015, wrote: Thanks for your fast reply, i'm currently working on Ubuntu 14.04, i've seen in the website that even if it's not officialy supported, developers could compile successfully. To answer your second question, i pulled from git clone https://github.com/cawka/ns-3-dev-ndnSIM.git Thanks a lot, Marco -----Original Message----- From: Spyridon (Spyros) Mastorakis To: marco.ulgelmo CC: ndnsim Sent: Thu, 15 Jan 2015 0:50 Subject: Re: [ndnSIM] ndnSIM 2.0 compiling error Hello Marco, First of all, I would like to ask which is the operating system that you are using. Secondly, I would also like to ask whether you downloaded the new NS-3 version that is uploaded in the ?ndnSIM" branch here: https://github.com/cawka/ns-3-dev-ndnSIM Thank you very much in advance for your answer. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com wrote: I've tried to compile the ns-3 module in ndnSIM for some hours. I keep getting the error: In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type static std::shared_ptr ^ ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? Convert::FromPacket(Ptr packet) ^af ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ?(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ?(Ptr packet); I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without. I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that). Thanks, Marco _______________________________________________ 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 marco.ulgelmo at aol.com Wed Jan 14 18:23:18 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Wed, 14 Jan 2015 21:23:18 -0500 Subject: [ndnSIM] ndnSIM 2.0 compiling error In-Reply-To: References: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> <8D1FE6C6BF4A519-7A8-A952@webmail-va032.sysops.aol.com> Message-ID: <8D1FE815BBFF7CA-1428-A4B6@webmail-vm043.sysops.aol.com> I've tried in Ubuntu 12.04 clean install. I followed all the steps here http://named-data.net/doc/ndn-cxx/current/INSTALL.html I get the same error. I've tried with both gcc 4.4 and 4.6. Boost library version is 1.48. Complete error message (already opened a ticket in redmine): In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ? To: marco.ulgelmo CC: ndnsim Sent: Thu, 15 Jan 2015 1:18 Subject: [ndnSIM] ndnSIM 2.0 compiling error Hello Marco, If you cloned the NS-3 repo before the update, then probably you are pulling the old version of NS-3, where c++11 is not enabled. Please start over with cloning the new version of the NS-3 repo and try to compile again. Please let us about the result. Thank you, Spyros On Wednesday, January 14, 2015, wrote: Thanks for your fast reply, i'm currently working on Ubuntu 14.04, i've seen in the website that even if it's not officialy supported, developers could compile successfully. To answer your second question, i pulled from git clone https://github.com/cawka/ns-3-dev-ndnSIM.git Thanks a lot, Marco -----Original Message----- From: Spyridon (Spyros) Mastorakis To: marco.ulgelmo CC: ndnsim Sent: Thu, 15 Jan 2015 0:50 Subject: Re: [ndnSIM] ndnSIM 2.0 compiling error Hello Marco, First of all, I would like to ask which is the operating system that you are using. Secondly, I would also like to ask whether you downloaded the new NS-3 version that is uploaded in the ?ndnSIM" branch here: https://github.com/cawka/ns-3-dev-ndnSIM Thank you very much in advance for your answer. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com wrote: I've tried to compile the ns-3 module in ndnSIM for some hours. I keep getting the error: In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type static std::shared_ptr ^ ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? Convert::FromPacket(Ptr packet) ^af ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ?(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found Convert::FromPacket(Ptr packet); ^ ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ?(Ptr packet); I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without. I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that). Thanks, Marco _______________________________________________ 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 spiros.mastorakis at gmail.com Wed Jan 14 18:25:22 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 14 Jan 2015 18:25:22 -0800 Subject: [ndnSIM] ndnSIM 2.0 compiling error In-Reply-To: <8D1FE815BBFF7CA-1428-A4B6@webmail-vm043.sysops.aol.com> References: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> <8D1FE6C6BF4A519-7A8-A952@webmail-va032.sysops.aol.com> <8D1FE815BBFF7CA-1428-A4B6@webmail-vm043.sysops.aol.com> Message-ID: Marco thank you for the report. I was able to reproduce the error. We will come up with a fix as soon as possible. Thank you. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 14, 2015, at 6:23 PM, marco.ulgelmo at aol.com wrote: > > I've tried in Ubuntu 12.04 clean install. I followed all the steps here http://named-data.net/doc/ndn-cxx/current/INSTALL.html > > I get the same error. I've tried with both gcc 4.4 and 4.6. Boost library version is 1.48. > > Complete error message (already opened a ticket in redmine): > > In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: > ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type > ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? > ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found > ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ? ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found > ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ? > Regards, > > Marco > > > > -----Original Message----- > From: Spiros Mastorakis > To: marco.ulgelmo > CC: ndnsim > Sent: Thu, 15 Jan 2015 1:18 > Subject: [ndnSIM] ndnSIM 2.0 compiling error > > Hello Marco, > > If you cloned the NS-3 repo before the update, then probably you are pulling the old version of NS-3, where c++11 is not enabled. > > Please start over with cloning the new version of the NS-3 repo and try to compile again. Please let us about the result. > > Thank you, > Spyros > > On Wednesday, January 14, 2015, > wrote: > Thanks for your fast reply, > > i'm currently working on Ubuntu 14.04, i've seen in the website that even if it's not officialy supported, developers could compile successfully. > > To answer your second question, i pulled from git clone https://github.com/cawka/ns-3-dev-ndnSIM.git > > Thanks a lot, > > Marco > > > > -----Original Message----- > From: Spyridon (Spyros) Mastorakis > > To: marco.ulgelmo > > CC: ndnsim > > Sent: Thu, 15 Jan 2015 0:50 > Subject: Re: [ndnSIM] ndnSIM 2.0 compiling error > > Hello Marco, > > First of all, I would like to ask which is the operating system that you are using. Secondly, I would also like to ask whether you downloaded the new NS-3 version that is uploaded in the ?ndnSIM" branch here: > > https://github.com/cawka/ns-3-dev-ndnSIM > > Thank you very much in advance for your answer. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com <> wrote: >> >> I've tried to compile the ns-3 module in ndnSIM for some hours. >> >> I keep getting the error: >> >> In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: >> ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type >> static std::shared_ptr >> ^ >> ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? >> Convert::FromPacket(Ptr packet) >> ^af >> ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found >> Convert::FromPacket(Ptr packet); >> ^ >> ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ?> Convert::FromPacket(Ptr packet); >> ^ >> ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found >> Convert::FromPacket(Ptr packet); >> ^ >> ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ?> Convert::FromPacket(Ptr packet); >> >> I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without. >> I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that). >> >> Thanks, >> Marco >> _______________________________________________ >> 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 wonjunchoi001 at gmail.com Wed Jan 14 21:34:33 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Thu, 15 Jan 2015 14:34:33 +0900 Subject: [ndnSIM] How to set Fib table to each node? In-Reply-To: <4437E4C2-FA44-45F9-85FE-52C84DA1FCAF@gmail.com> References: <4437E4C2-FA44-45F9-85FE-52C84DA1FCAF@gmail.com> Message-ID: Thanks for your reply. I can see the function void StackHelper::SetFib() in ndn-stack-helper.cc file. I like to know how to use this function. Additionally, I like to add more parameter with prefix, face in Fib table. To do this, I am not sure how to add the additional parameter into Fib table. 1. Ptr fib = node->GetObject (); fib->Add (prefixValue.Get (), face, metric); 2. Ptr fib = GetNode ()->GetObject (); Ptr fibEntry = fib->Add (m_prefix, m_face, 0); Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.ulgelmo at aol.com Thu Jan 15 00:43:30 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Thu, 15 Jan 2015 09:43:30 +0100 Subject: [ndnSIM] ndnSIM 2.0 compiling error In-Reply-To: References: <8D1FE69A0980053-7A8-A7D1@webmail-va032.sysops.aol.com> <5E99A8B6-C6E2-4EB9-829C-BAC9FAF53B7F@gmail.com> <8D1FE6C6BF4A519-7A8-A952@webmail-va032.sysops.aol.com> <8D1FE815BBFF7CA-1428-A4B6@webmail-vm043.sysops.aol.com> Message-ID: Thank you, Shall i just keep an eye on Redmine to get notified about when you solve it? Regards, Marco > Il giorno 15/gen/2015, alle ore 03:25, Spyridon (Spyros) Mastorakis ha scritto: > > Marco thank you for the report. I was able to reproduce the error. > > We will come up with a fix as soon as possible. > > Thank you. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Jan 14, 2015, at 6:23 PM, marco.ulgelmo at aol.com wrote: >> >> I've tried in Ubuntu 12.04 clean install. I followed all the steps here http://named-data.net/doc/ndn-cxx/current/INSTALL.html >> >> I get the same error. I've tried with both gcc 4.4 and 4.6. Boost library version is 1.48. >> >> Complete error message (already opened a ticket in redmine): >> >> In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: >> ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type >> ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? >> ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found >> ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ?> ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found >> ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ?> >> Regards, >> >> Marco >> >> >> >> -----Original Message----- >> From: Spiros Mastorakis >> To: marco.ulgelmo >> CC: ndnsim >> Sent: Thu, 15 Jan 2015 1:18 >> Subject: [ndnSIM] ndnSIM 2.0 compiling error >> >> Hello Marco, >> >> If you cloned the NS-3 repo before the update, then probably you are pulling the old version of NS-3, where c++11 is not enabled. >> >> Please start over with cloning the new version of the NS-3 repo and try to compile again. Please let us about the result. >> >> Thank you, >> Spyros >> >>> On Wednesday, January 14, 2015, wrote: >>> Thanks for your fast reply, >>> >>> i'm currently working on Ubuntu 14.04, i've seen in the website that even if it's not officialy supported, developers could compile successfully. >>> >>> To answer your second question, i pulled from git clone https://github.com/cawka/ns-3-dev-ndnSIM.git >>> >>> Thanks a lot, >>> >>> Marco >>> >>> >>> >>> -----Original Message----- >>> From: Spyridon (Spyros) Mastorakis >>> To: marco.ulgelmo >>> CC: ndnsim >>> Sent: Thu, 15 Jan 2015 0:50 >>> Subject: Re: [ndnSIM] ndnSIM 2.0 compiling error >>> >>> Hello Marco, >>> >>> First of all, I would like to ask which is the operating system that you are using. Secondly, I would also like to ask whether you downloaded the new NS-3 version that is uploaded in the ?ndnSIM" branch here: >>> >>> https://github.com/cawka/ns-3-dev-ndnSIM >>> >>> Thank you very much in advance for your answer. >>> >>> -- >>> Spyridon (Spyros) Mastorakis >>> Personal Website: http://cs.ucla.edu/~mastorakis/ >>> Internet Research Laboratory >>> PhD Computer Science >>> UCLA >>> >>> >>> >>> >>>> On Jan 14, 2015, at 3:36 PM, marco.ulgelmo at aol.com wrote: >>>> >>>> I've tried to compile the ns-3 module in ndnSIM for some hours. >>>> >>>> I keep getting the error: >>>> >>>> In file included from ../src/ndnSIM/model/ndn-ns3.cpp:20:0: >>>> ../src/ndnSIM/model/ndn-ns3.hpp:32:10: error: ?shared_ptr? in namespace ?std? does not name a type >>>> static std::shared_ptr >>>> ^ >>>> ../src/ndnSIM/model/ndn-ns3.cpp:34:39: error: no ?std::shared_ptr ns3::ndn::Convert::FromPacket(ns3::Ptr)? member function declared in class ?ns3::ndn::Convert? >>>> Convert::FromPacket(Ptr packet) >>>> ^af >>>> ../src/ndnSIM/model/ndn-ns3.cpp:46:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found >>>> Convert::FromPacket(Ptr packet); >>>> ^ >>>> ../src/ndnSIM/model/ndn-ns3.cpp:46:20: error: expected ?;? before ?>>> Convert::FromPacket(Ptr packet); >>>> ^ >>>> ../src/ndnSIM/model/ndn-ns3.cpp:49:10: error: no matching template for ?ns3::ndn::Convert::FromPacket? found >>>> Convert::FromPacket(Ptr packet); >>>> ^ >>>> ../src/ndnSIM/model/ndn-ns3.cpp:49:20: error: expected ?;? before ?>>> Convert::FromPacket(Ptr packet); >>>> >>>> I am using compiler version 4.8.2, boost library version 1.54. I tried both ./waf configure with -d optimization and without. >>>> I've seen that this error is due to c++ not compiling c++11 statement but compiler flags in ./waf configure are correct and both -std=c++0x and -std=c++11x are set. I tried also with gcc and g++ version 4.4, 4.6 and 4.7 but i keep getting other errors (different than that). >>>> >>>> Thanks, >>>> Marco >>>> _______________________________________________ >>>> 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 spiros.mastorakis at gmail.com Thu Jan 15 17:32:21 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 15 Jan 2015 17:32:21 -0800 Subject: [ndnSIM] Question on sending packets via netdeviceface In-Reply-To: <54B86141.4040107@soe.ucsc.edu> References: <4437E4C2-FA44-45F9-85FE-52C84DA1FCAF@gmail.com> <54B86141.4040107@soe.ucsc.edu> Message-ID: <9E906F60-8F15-4B3A-90EB-97A079221EBA@gmail.com> Hello Yali, I forward your email to the ndnSIM maliing list in order to be visible to all the ndnSIM users. Regarding your question: This error means that the packet, which is received, has a header that cannot be recognized by ndnSIM. ndnSIM implements the communication model of NDN where two types of packets are defined: The Interest and the data packet. Hello packets are not defined. Therefore, if a packet is neither an Interest nor a Data packet, the communication paradigm is violated. If you really want to exchange Hello packets though, you will need either to specify a special Interest packet for this purpose (i.e., change the Interest class) and handle this Interest packet in a special way or to hack somehow the wire encoding/decoding methods and the face class in order to encode, decode and accept, respectively, packets other than Interest and Data. Hope this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 15, 2015, at 4:54 PM, Yali Wang wrote: > > Hello, > > I want to send to all neighbors the periodic Hello message(regular packet) via ndn-netdevice-face class, and it works fine. but it gets stuck on header part. > I don't know what to put in header part. Here is my definition of packet: > > m_packet = Create (reinterpret_cast (str), size); > > Ndnsim needs the wire encoding(0x01,0xD2 as interest-ccnb) to decide if receives the interest or data. How to solve my issue? I only want to send hello messages. > As below, it is error message from ndn-face.cc > > msg="Unknown NDN header. Should not happen", file=../src/ndnSIM/model/ndn-face.cc, line=196 > libc++abi.dylib: terminating with uncaught exception of type ns3::ndn::UnknownHeaderException > Command ['/Users/yawang/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-grid-topo-plugin-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). > > > Thank you! > Yali -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu Jan 15 18:25:19 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 15 Jan 2015 18:25:19 -0800 Subject: [ndnSIM] Question on sending packets via netdeviceface In-Reply-To: References: <4437E4C2-FA44-45F9-85FE-52C84DA1FCAF@gmail.com> <54B86141.4040107@soe.ucsc.edu> <9E906F60-8F15-4B3A-90EB-97A079221EBA@gmail.com> Message-ID: Hello Yali, please use the ?answer-all? option when your answer, so that the email exchange is visible to all the subscribers of the mailing list. An easy way to create a special Interest packet is to include a special name prefix to your Interests. To that end, you need to specify the following to your simulation scenario (assuming a Cbr Consumer application): // Consumer ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr"); consumerHelper.SetPrefix (?/hello"); Then, you will need to modify the OnInterest method of the apps/ndn-producer.cc , in order to handle this special Interest in the way that you want when it reaches a producer. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 15, 2015, at 5:39 PM, Yali Wang wrote: > > Thanks. > I know what you meant, but how to reset a new interest in my hello message case? That's what I asked. > Can you please write an example? > There are too many new parameters, > difficult for me to follow without example. > Yali > > On Jan 15, 2015 5:32 PM, "Spyridon (Spyros) Mastorakis" > wrote: > Hello Yali, > > I forward your email to the ndnSIM maliing list in order to be visible to all the ndnSIM users. > > Regarding your question: > > This error means that the packet, which is received, has a header that cannot be recognized by ndnSIM. ndnSIM implements the communication model of NDN where two types of packets are defined: The Interest and the data packet. Hello packets are not defined. > > Therefore, if a packet is neither an Interest nor a Data packet, the communication paradigm is violated. > If you really want to exchange Hello packets though, you will need either to specify a special Interest packet for this purpose (i.e., change the Interest class) and handle this Interest packet in a special way or to hack somehow the wire encoding/decoding methods and the face class in order to encode, decode and accept, respectively, packets other than Interest and Data. > > Hope this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Jan 15, 2015, at 4:54 PM, Yali Wang > wrote: >> >> Hello, >> >> I want to send to all neighbors the periodic Hello message(regular packet) via ndn-netdevice-face class, and it works fine. but it gets stuck on header part. >> I don't know what to put in header part. Here is my definition of packet: >> >> m_packet = Create (reinterpret_cast (str), size); >> >> Ndnsim needs the wire encoding(0x01,0xD2 as interest-ccnb) to decide if receives the interest or data. How to solve my issue? I only want to send hello messages. >> As below, it is error message from ndn-face.cc >> >> msg="Unknown NDN header. Should not happen", file=../src/ndnSIM/model/ndn-face.cc , line=196 >> libc++abi.dylib: terminating with uncaught exception of type ns3::ndn::UnknownHeaderException >> Command ['/Users/yawang/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-grid-topo-plugin-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). >> >> >> Thank you! >> Yali > -------------- next part -------------- An HTML attachment was scrubbed... URL: From salvatore.signorello at uni.lu Fri Jan 16 00:40:46 2015 From: salvatore.signorello at uni.lu (Salvatore SIGNORELLO) Date: Fri, 16 Jan 2015 08:40:46 +0000 Subject: [ndnSIM] Red status for the faces Message-ID: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> Hi all, I've written out a simple tracer that prints the status of the faces for the Fib entries, to troubleshoot the weird behavior I've experienced with some simulations, where all the nodes use a BestRoute forwarding strategy. Well, I've never seen a Face marked as RED using the new developed 'ifaceTracer' after several attempts in different simulation scenarios, the same holds even if I simulate scenario with link failures using the ndn::LinkControlHelper class. So, I've started digging into the source code to see who is really marking the interfaces as RED. By now I've just found the InvalidateAll method of the FibImpl class. This method iterates all the Fib's entries and for each of them it iterates the list of faces and it sets the status to Red calling in turn the Invalidate method of the FaceMetric class. The InvalidateAll method is used only by the GlobalRoutingHelper class to clean the status of all the Fib's entries before starting the computation of the routes. Is there anything I've missed? Could anyone please confirm the workflow summed up above? Further, what about the probing of (inter)faces? It seems to me that also the codebase has foreseen it, but nobody is really using it. Best, Salvo -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Jan 16 12:12:27 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 16 Jan 2015 12:12:27 -0800 Subject: [ndnSIM] Red status for the faces In-Reply-To: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> Message-ID: <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> Hi Salvatore, > On Jan 16, 2015, at 12:40 AM, Salvatore SIGNORELLO wrote: > > Hi all, > > I've written out a simple tracer that prints the status of the faces for > the Fib entries, to troubleshoot the weird behavior I've experienced > with some simulations, where all the nodes use a BestRoute forwarding > strategy. > > Well, I've never seen a Face marked as RED using the new developed > 'ifaceTracer' after several attempts in different simulation scenarios, > the same holds even if I simulate scenario with link failures using the > ndn::LinkControlHelper class. So, I've started digging into the source > code to see who is really marking the interfaces as RED. By now I've > just found the InvalidateAll method of the FibImpl class. This method > iterates all the Fib's entries and for each of them it iterates the list > of faces and it sets the status to Red calling in turn the Invalidate > method of the FaceMetric class. The InvalidateAll method is used only by > the GlobalRoutingHelper class to clean the status of all the Fib's > entries before starting the computation of the routes. Is there anything > I've missed? Could anyone please confirm the workflow summed up above? Yes. This is the only place where RED status is set in the codebase. > Further, what about the probing of (inter)faces? It seems to me that also the codebase has foreseen it, but nobody is really using it. Depending on how you define probing. The codebase doesn?t implement any active probing. For the passive probing (trying different face if interest is retransmitted while PIT entry is alive), the status of faces may change to yellow (where the face is temporarily demoted). ? Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From salvatore.signorello at uni.lu Sat Jan 17 05:59:56 2015 From: salvatore.signorello at uni.lu (Salvatore SIGNORELLO) Date: Sat, 17 Jan 2015 13:59:56 +0000 Subject: [ndnSIM] Red status for the faces In-Reply-To: <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux>, <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> Message-ID: <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux> Hi Alex, thank you for the answer, few more questions inline. Best, Salvo ________________________________ From: Alex Afanasyev [alexander.afanasyev at ucla.edu] Sent: Friday, January 16, 2015 9:12 PM To: Salvatore SIGNORELLO Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] Red status for the faces Hi Salvatore, On Jan 16, 2015, at 12:40 AM, Salvatore SIGNORELLO > wrote: Hi all, I've written out a simple tracer that prints the status of the faces for the Fib entries, to troubleshoot the weird behavior I've experienced with some simulations, where all the nodes use a BestRoute forwarding strategy. Well, I've never seen a Face marked as RED using the new developed 'ifaceTracer' after several attempts in different simulation scenarios, the same holds even if I simulate scenario with link failures using the ndn::LinkControlHelper class. So, I've started digging into the source code to see who is really marking the interfaces as RED. By now I've just found the InvalidateAll method of the FibImpl class. This method iterates all the Fib's entries and for each of them it iterates the list of faces and it sets the status to Red calling in turn the Invalidate method of the FaceMetric class. The InvalidateAll method is used only by the GlobalRoutingHelper class to clean the status of all the Fib's entries before starting the computation of the routes. Is there anything I've missed? Could anyone please confirm the workflow summed up above? Yes. This is the only place where RED status is set in the codebase. May be this is a silly question,but I ask you anyway. Has the Red status been introduced as something to be marked just by the routing plane? If this is the case, the simulation study conducted and reported into the paper "A case for stateful forwarding plane" did not use red labeling. Am I wrong? Further, what about the probing of (inter)faces? It seems to me that also the codebase has foreseen it, but nobody is really using it. Depending on how you define probing. The codebase doesn?t implement any active probing. For the passive probing (trying different face if interest is retransmitted while PIT entry is alive), the status of faces may change to yellow (where the face is temporarily demoted). Yeap, I meant active probing. So actually if you mark a face as red, the forwarding plane has no way of setting it back to working status, isn't it? ? Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Sat Jan 17 20:19:27 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sat, 17 Jan 2015 20:19:27 -0800 Subject: [ndnSIM] Red status for the faces In-Reply-To: <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux> References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> <, > <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux> Message-ID: > On Jan 17, 2015, at 5:59 AM, Salvatore SIGNORELLO wrote: > > Hi Alex, > > thank you for the answer, few more questions inline. > > Best, > Salvo > From: Alex Afanasyev [alexander.afanasyev at ucla.edu ] > Sent: Friday, January 16, 2015 9:12 PM > To: Salvatore SIGNORELLO > Cc: ndnsim at lists.cs.ucla.edu > Subject: Re: [ndnSIM] Red status for the faces > > Hi Salvatore, > >> On Jan 16, 2015, at 12:40 AM, Salvatore SIGNORELLO > wrote: >> >> Hi all, >> >> I've written out a simple tracer that prints the status of the faces for >> the Fib entries, to troubleshoot the weird behavior I've experienced >> with some simulations, where all the nodes use a BestRoute forwarding >> strategy. >> >> Well, I've never seen a Face marked as RED using the new developed >> 'ifaceTracer' after several attempts in different simulation scenarios, >> the same holds even if I simulate scenario with link failures using the >> ndn::LinkControlHelper class. So, I've started digging into the source >> code to see who is really marking the interfaces as RED. By now I've >> just found the InvalidateAll method of the FibImpl class. This method >> iterates all the Fib's entries and for each of them it iterates the list >> of faces and it sets the status to Red calling in turn the Invalidate >> method of the FaceMetric class. The InvalidateAll method is used only by >> the GlobalRoutingHelper class to clean the status of all the Fib's >> entries before starting the computation of the routes. Is there anything >> I've missed? Could anyone please confirm the workflow summed up above? > > Yes. This is the only place where RED status is set in the codebase. > > May be this is a silly question,but I ask you anyway. Has the Red status > been introduced as something to be marked just by the routing plane? > If this is the case, the simulation study conducted and reported into > the paper "A case for stateful forwarding plane" did not use red > labeling. Am I wrong? Red flag was meant to represent a face with some fatal conditions, that is known to definitely not be able to retrieve the data under the prefix. We did not go into exact details when exactly this condition happens. >> Further, what about the probing of (inter)faces? It seems to me that also the codebase has foreseen it, but nobody is really using it. > > > Depending on how you define probing. The codebase doesn?t implement any active probing. For the passive probing (trying different face if interest is retransmitted while PIT entry is alive), the status of faces may change to yellow (where the face is temporarily demoted). > > Yeap, I meant active probing. So actually if you mark a face as red, the > forwarding plane has no way of setting it back to working status, isn't > it? The point of active probing is to find working/not-working faces. The strategy that is doing probing would certainly need to ignore the current status. ? Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4166 bytes Desc: not available URL: From salvatore.signorello at uni.lu Sun Jan 18 16:29:51 2015 From: salvatore.signorello at uni.lu (Salvatore SIGNORELLO) Date: Mon, 19 Jan 2015 00:29:51 +0000 Subject: [ndnSIM] Red status for the faces In-Reply-To: References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> <,> <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux>, Message-ID: <6C132300AD75A346B23A2A102EC3A88F0C8433@hoshi.uni.lux> Hi Alex, ________________________________ From: Alex Afanasyev [alexander.afanasyev at ucla.edu] Sent: Sunday, January 18, 2015 5:19 AM To: Salvatore SIGNORELLO Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] Red status for the faces On Jan 17, 2015, at 5:59 AM, Salvatore SIGNORELLO > wrote: Hi Alex, thank you for the answer, few more questions inline. Best, Salvo ________________________________ From: Alex Afanasyev [alexander.afanasyev at ucla.edu] Sent: Friday, January 16, 2015 9:12 PM To: Salvatore SIGNORELLO Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] Red status for the faces Hi Salvatore, On Jan 16, 2015, at 12:40 AM, Salvatore SIGNORELLO > wrote: Hi all, I've written out a simple tracer that prints the status of the faces for the Fib entries, to troubleshoot the weird behavior I've experienced with some simulations, where all the nodes use a BestRoute forwarding strategy. Well, I've never seen a Face marked as RED using the new developed 'ifaceTracer' after several attempts in different simulation scenarios, the same holds even if I simulate scenario with link failures using the ndn::LinkControlHelper class. So, I've started digging into the source code to see who is really marking the interfaces as RED. By now I've just found the InvalidateAll method of the FibImpl class. This method iterates all the Fib's entries and for each of them it iterates the list of faces and it sets the status to Red calling in turn the Invalidate method of the FaceMetric class. The InvalidateAll method is used only by the GlobalRoutingHelper class to clean the status of all the Fib's entries before starting the computation of the routes. Is there anything I've missed? Could anyone please confirm the workflow summed up above? Yes. This is the only place where RED status is set in the codebase. May be this is a silly question,but I ask you anyway. Has the Red status been introduced as something to be marked just by the routing plane? If this is the case, the simulation study conducted and reported into the paper "A case for stateful forwarding plane" did not use red labeling. Am I wrong? Red flag was meant to represent a face with some fatal conditions, that is known to definitely not be able to retrieve the data under the prefix. We did not go into exact details when exactly this condition happens. Ok for the answer to the former question, but I'm not sure that I've got the answer to the latter question about the simulation study. Was it a "yes, we did use it" or wasn't? Further, what about the probing of (inter)faces? It seems to me that also the codebase has foreseen it, but nobody is really using it. Depending on how you define probing. The codebase doesn?t implement any active probing. For the passive probing (trying different face if interest is retransmitted while PIT entry is alive), the status of faces may change to yellow (where the face is temporarily demoted). Yeap, I meant active probing. So actually if you mark a face as red, the forwarding plane has no way of setting it back to working status, isn't it? The point of active probing is to find working/not-working faces. The strategy that is doing probing would certainly need to ignore the current status. ? Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Mon Jan 19 12:08:55 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 19 Jan 2015 12:08:55 -0800 Subject: [ndnSIM] ndnSIM 2.0 update. Message-ID: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> Dear all, We would like to thank you all for submitting reports about some compilation problems of ndnSIM 2.0 in Linux. The issues have been resolved and you can re-download the code using the instructions on http://ndnsim.net/2.0/ . -- ndnSIM Team P.S. To ensure code quality for future releases, we have set up a continuous integration environment to automatically test each new commit on a number of supported platforms (currently, these are Ubuntu 14.04 and 14.10, OS X 10.9 and 10.10). -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaim.rieger at gmail.com Mon Jan 19 14:50:23 2015 From: chaim.rieger at gmail.com (Chaim Rieger) Date: Mon, 19 Jan 2015 14:50:23 -0800 Subject: [ndnSIM] ndnSIM 2.0 update. In-Reply-To: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> Message-ID: <54BD8A2F.9020808@gmail.com> On 1/19/2015 12:08 PM, Spyridon (Spyros) Mastorakis wrote: > Dear all, > > We would like to thank you all for submitting reports about some compilation > problems of ndnSIM 2.0 in Linux. The issues have been resolved and you > can re-download the code using the instructions on http://ndnsim.net/2.0/ . > > -- > ndnSIM Team did the following steps [ndn-cxx and ndf are installed via ubuntu packages] mkdir ndnSIM cd ndnSIM git clone ns-3-dev, pygbingen, ndnSIM cd ndnSIM/ns-3 ./wag configure --enable-examples [ran successfully] ./waf [1725/2454] cxx: src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp -> build/src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp.4.o ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected identifier before string constant NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy"); ^ ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected ?,? or ?...? before string constant ../src/ndnSIM/utils/dummy-keychain.cpp:68:69: error: expected constructor, destructor, or type conversion before ?;? token NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy"); ^ ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected identifier before string constant NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy"); ^ ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected ?,? or ?...? before string constant ../src/ndnSIM/utils/dummy-keychain.cpp:69:62: error: expected constructor, destructor, or type conversion before ?;? token NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy"); ^ Waf: Leaving directory `/media/crieger/disk1/git/ndnSIM/ns-3/build' Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): {task 140634857585680: cxx dummy-keychain.cpp -> dummy-keychain.cpp.1.o} ['/usr/bin/g++', '-std=c++0x', '-std=c++11', '-O0', '-ggdb', '-g3', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-fPIC', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector-strong', '-fno-strict-aliasing', '-Isrc/ndnSIM', '-I../src/ndnSIM', '-Isrc/ndnSIM/NFD', '-I../src/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/daemon', '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/core', '-I../src/ndnSIM/NFD/core', '-I.', '-I..', '-I/software/export/usr/include', '-I/usr/include', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/harfbuzz', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_MOVE_CONSTRUCTIBLE=1', '-DHAVE_CXX_OVERRIDE=1', '-DHAVE_NDN_CXX=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../src/ndnSIM/utils/dummy-keychain.cpp', '-c', '-o', 'src/ndnSIM/utils/dummy-keychain.cpp.1.o'] From alexander.afanasyev at ucla.edu Mon Jan 19 14:54:26 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Mon, 19 Jan 2015 14:54:26 -0800 Subject: [ndnSIM] ndnSIM 2.0 update. In-Reply-To: <54BD8A2F.9020808@gmail.com> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> Message-ID: <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> Hi Chaim, Your problem is that you're using not the master branch of ndn-cxx library (by "re-downloading" we meant to update the whole package, including ndn-cxx library. We should have been more explicit about this.). Unfortunately, there was a need for a few changes that require latest version of the library. After you update the library (either from source or PPA on ubuntu), you should not see this error. --- Alex > On Jan 19, 2015, at 2:50 PM, Chaim Rieger wrote: > > On 1/19/2015 12:08 PM, Spyridon (Spyros) Mastorakis wrote: >> Dear all, >> >> We would like to thank you all for submitting reports about some compilation >> problems of ndnSIM 2.0 in Linux. The issues have been resolved and you >> can re-download the code using the instructions on http://ndnsim.net/2.0/. >> >> -- >> ndnSIM Team > > did the following steps > [ndn-cxx and ndf are installed via ubuntu packages] > > > mkdir ndnSIM > cd ndnSIM > git clone ns-3-dev, pygbingen, ndnSIM > cd ndnSIM/ns-3 > ./wag configure --enable-examples > [ran successfully] > ./waf > [1725/2454] cxx: src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp -> > build/src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp.4.o > ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected identifier > before string constant > NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy"); > ^ > ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected ?,? or > ?...? before string constant > ../src/ndnSIM/utils/dummy-keychain.cpp:68:69: error: expected > constructor, destructor, or type conversion before ?;? token > NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy"); > ^ > ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected identifier > before string constant > NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy"); > ^ > ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected ?,? or > ?...? before string constant > ../src/ndnSIM/utils/dummy-keychain.cpp:69:62: error: expected > constructor, destructor, or type conversion before ?;? token > NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy"); > ^ > Waf: Leaving directory `/media/crieger/disk1/git/ndnSIM/ns-3/build' > Build failed > -> task in 'ns3-ndnSIM' failed (exit status 1): > {task 140634857585680: cxx dummy-keychain.cpp -> > dummy-keychain.cpp.1.o} > ['/usr/bin/g++', '-std=c++0x', '-std=c++11', '-O0', '-ggdb', '-g3', > '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', > '-Wstrict-aliasing', '-fPIC', '-fPIC', '-pthread', '-pthread', > '-fno-strict-aliasing', '-fwrapv', '-fstack-protector-strong', > '-fno-strict-aliasing', '-Isrc/ndnSIM', '-I../src/ndnSIM', > '-Isrc/ndnSIM/NFD', '-I../src/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/daemon', > '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/core', > '-I../src/ndnSIM/NFD/core', '-I.', '-I..', > '-I/software/export/usr/include', '-I/usr/include', > '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', > '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', > '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', > '-I/usr/include/pixman-1', '-I/usr/include/libpng12', > '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/harfbuzz', > '-I/usr/include/glib-2.0', > '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', > '-I/usr/include/freetype2', '-I/usr/include/libxml2', > '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7', > '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', > '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', > '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_MOVE_CONSTRUCTIBLE=1', > '-DHAVE_CXX_OVERRIDE=1', '-DHAVE_NDN_CXX=1', '-DHAVE_SQLITE3=1', > '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', > '../src/ndnSIM/utils/dummy-keychain.cpp', '-c', '-o', > 'src/ndnSIM/utils/dummy-keychain.cpp.1.o'] > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From chaim.rieger at gmail.com Mon Jan 19 15:19:49 2015 From: chaim.rieger at gmail.com (Chaim Rieger) Date: Mon, 19 Jan 2015 15:19:49 -0800 Subject: [ndnSIM] ndnSIM 2.0 update. In-Reply-To: <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> Message-ID: <54BD9115.9010401@gmail.com> On 1/19/2015 2:54 PM, Alex Afanasyev wrote: > Hi Chaim, > > Your problem is that you're using not the master branch of ndn-cxx library (by "re-downloading" we meant to update the whole package, including ndn-cxx library. We should have been more explicit about this.). Unfortunately, there was a need for a few changes that require latest version of the library. > > After you update the library (either from source or PPA on ubuntu), you should not see this error. > > --- > Alex > (sorry for the long email) , will have one more try with a source install of boost and a source install of ndn-cxx (instead of ppa installed versions) ndn-cxx, and ndn-cxx dev were updated today via apt-get (ubuntu 140.04 ppa) ndn-cxx-dev is already the newest version. ndn-cxx is already the newest version. This ./waf configure was done with out --enable-examples crieger at crieger-Precision-WorkStation-T5500:/media/crieger/disk1/git/ndnSIM/ns-3$ nfd-status General NFD status: nfdId=/localhost/daemons/nfd/KEY/ksk-1420659166741/ID-CERT version=0.2.0-88-gc5173de startTime=20150119T211245.043000 currentTime=20150119T231442.344000 uptime=7317 seconds nNameTreeEntries=11 nFibEntries=3 nPitEntries=2 nMeasurementsEntries=0 nCsEntries=139 nInInterests=247 nOutInterests=245 nInDatas=139 nOutDatas=128 Channels: ws://[::]:9696 unix:///run/nfd.sock udp6://[::]:6363 udp4://0.0.0.0:6363 tcp6://[::]:6363 tcp4://0.0.0.0:6363 Faces: ... FIB: ... RIB: ... Strategy choices: ... crieger at crieger-Precision-WorkStation-T5500:/media/crieger/disk1/git/ndnSIM/ns-3$ ./waf configure Setting top to : /media/crieger/disk1/git/ndnSIM/ns-3 Setting out to : /media/crieger/disk1/git/ndnSIM/ns-3/build Checking for 'gcc' (c compiler) : /usr/bin/gcc Checking for cc version : 4.9.1 Checking for 'g++' (c++ compiler) : /usr/bin/g++ Checking supported compiler CXXFLAGS : -std=c++0x -std=c++11 Checking supported optimizations CXXFLAGS : -O0 Checking supported debug CXXFLAGS : -ggdb -g3 Checking supported warnings CXXFLAGS : -Wall -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing Checking for compilation flag -Wl,--soname=foo... support : ok Checking for program python : /usr/bin/python Checking for python version : (2, 7, 8, 'final', 0) Checking for library python2.7 in LIBDIR : yes Checking for program python-config : /usr/bin/python-config Checking for header Python.h : yes Checking for compilation flag -fvisibility=hidden... support : ok Checking for compilation flag -Wno-array-bounds... support : ok Checking for pybindgen location : ../pybindgen (guessed) Checking for python module 'pybindgen' : 0.17.0.887 Checking for pybindgen version : 0.17.0.887 Checking for types uint64_t and unsigned long equivalence : yes Checking for types uint64_t and unsigned long long equivalence : no Checking for the apidefs that can be used for Python bindings : gcc-LP64 Checking for internal GCC cxxabi : complete Checking for python module 'pygccxml' : 1.0.0 Checking for pygccxml version : 1.0.0 Checking for program gccxml : /usr/bin/gccxml Checking for gccxml version : 0.9.0 Checking boost includes : 1_55 Checking boost libs : ok Checking for boost linkage : ok Checking for click location : not found Checking for program pkg-config : /usr/bin/pkg-config Checking for 'gtk+-2.0' >= 2.12 : yes Checking for 'libxml-2.0' >= 2.7 : yes Checking for type uint128_t : not found Checking for type __uint128_t : yes Checking high precision implementation : 128-bit integer (default) Checking for header stdint.h : yes Checking for header inttypes.h : yes Checking for header sys/inttypes.h : not found Checking for header sys/types.h : yes Checking for header sys/stat.h : yes Checking for header dirent.h : yes Checking for header stdlib.h : yes Checking for header signal.h : yes Checking for header pthread.h : yes Checking for header stdint.h : yes Checking for header inttypes.h : yes Checking for header sys/inttypes.h : not found Checking for library rt : yes Checking for header netpacket/packet.h : yes Checking for header sys/ioctl.h : yes Checking for header net/if.h : yes Checking for header net/ethernet.h : yes Checking for header linux/if_tun.h : yes Checking for header netpacket/packet.h : yes Checking for NSC location : not found Checking for program doxygen : /usr/bin/doxygen Checking for program tar : /bin/tar Checking for program sphinx-build : /usr/bin/sphinx-build Checking for std::is_default_constructible : yes Checking for std::is_move_constructible : yes Checking for override specifier : yes Checking for 'libndn-cxx' : yes Checking for OpenFlow location : not found Checking for 'sqlite3' : yes Checking for header linux/if_tun.h : yes Checking for python module 'gtk' : connect /tmp/.X11-unix/X0: No such file or directory ok Checking for python module 'goocanvas' : connect /tmp/.X11-unix/X0: No such file or directory 0.14.1 Checking for python module 'pygraphviz' : 1.2 Checking for program sudo : /usr/bin/sudo Checking for program valgrind : /usr/bin/valgrind Checking for 'gsl' : yes Checking for program doxygen : /usr/bin/doxygen ---- Summary of optional NS-3 features: Build profile : debug Build directory : Python Bindings : enabled Python API Scanning Support : enabled BRITE Integration : not enabled (BRITE not enabled (see option --with-brite)) NS-3 Click Integration : not enabled (nsclick not enabled (see option --with-nsclick)) GtkConfigStore : enabled XmlIo : enabled Threading Primitives : enabled Real Time Simulator : enabled Emulated Net Device : enabled File descriptor NetDevice : enabled Tap FdNetDevice : enabled Emulation FdNetDevice : enabled PlanetLab FdNetDevice : not enabled (PlanetLab operating system not detected (see option --force-planetlab)) Network Simulation Cradle : not enabled (NSC not found (see option --with-nsc)) MPI Support : not enabled (option --enable-mpi not selected) ndnSIM : enabled NS-3 OpenFlow Integration : not enabled (OpenFlow not enabled (see option --with-openflow)) SQlite stats data output : enabled Tap Bridge : enabled PyViz visualizer : enabled Use sudo to set suid bit : not enabled (option --enable-sudo not selected) Build tests : not enabled (defaults to disabled) Build examples : not enabled (defaults to disabled) GNU Scientific Library (GSL) : enabled 'configure' finished successfully (6.650s) ./waf ... [1372/2045] cxx: src/ndnSIM/helper/ndn-strategy-choice-helper.cpp -> build/src/ndnSIM/helper/ndn-strategy-choice-helper.cpp.1.o ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected identifier before string constant NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy"); ^ ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected ?,? or ?...? before string constant ../src/ndnSIM/utils/dummy-keychain.cpp:68:69: error: expected constructor, destructor, or type conversion before ?;? token NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy"); ^ ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected identifier before string constant NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy"); ^ ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected ?,? or ?...? before string constant ../src/ndnSIM/utils/dummy-keychain.cpp:69:62: error: expected constructor, destructor, or type conversion before ?;? token NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy"); ^ Waf: Leaving directory `/media/crieger/disk1/git/ndnSIM/ns-3/build' Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): {task 139678969957520: cxx dummy-keychain.cpp -> dummy-keychain.cpp.1.o} ['/usr/bin/g++', '-std=c++0x', '-std=c++11', '-O0', '-ggdb', '-g3', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-fPIC', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector-strong', '-fno-strict-aliasing', '-Isrc/ndnSIM', '-I../src/ndnSIM', '-Isrc/ndnSIM/NFD', '-I../src/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/daemon', '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/core', '-I../src/ndnSIM/NFD/core', '-I.', '-I..', '-I/software/export/usr/include', '-I/usr/include', '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_MOVE_CONSTRUCTIBLE=1', '-DHAVE_CXX_OVERRIDE=1', '-DHAVE_NDN_CXX=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../src/ndnSIM/utils/dummy-keychain.cpp', '-c', '-o', 'src/ndnSIM/utils/dummy-keychain.cpp.1.o'] From chaim.rieger at gmail.com Mon Jan 19 17:46:10 2015 From: chaim.rieger at gmail.com (Chaim Rieger) Date: Mon, 19 Jan 2015 17:46:10 -0800 Subject: [ndnSIM] ndnSIM 2.0 update. In-Reply-To: <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> Message-ID: <54BDB362.50604@gmail.com> Correction to my debugging post earlier today. I had multiple versions of ndn-cxx-libs installed, and the compilation of ndnSIM failed because it picked u p the wrong version. ndnSIM compiles properly with the installed (updated as of today) versions of ndn-cxx-libs from the ppa on 14.04. Thank you for updating the code. From alexander.afanasyev at ucla.edu Mon Jan 19 18:03:06 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Mon, 19 Jan 2015 18:03:06 -0800 Subject: [ndnSIM] ndnSIM 2.0 update. In-Reply-To: <54BDB362.50604@gmail.com> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> <54BDB362.50604@gmail.com> Message-ID: <1E12BE33-4BAF-4806-93A4-2B6A150D3C05@ucla.edu> Thanks, Chaim! There were also a small problem in build instructions when using PPA repository in Ubuntu (need to install ndn-cxx-dev package, not just ndn-cxx). --- Alex > On Jan 19, 2015, at 5:46 PM, Chaim Rieger wrote: > > Correction to my debugging post earlier today. > > I had multiple versions of ndn-cxx-libs installed, and the compilation > of ndnSIM failed because it picked u p the wrong version. > > ndnSIM compiles properly with the installed (updated as of today) > versions of ndn-cxx-libs from the ppa on 14.04. > > Thank you for updating the code. -------------- 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 trade20122012 at gmail.com Tue Jan 20 15:43:44 2015 From: trade20122012 at gmail.com (Trade) Date: Tue, 20 Jan 2015 15:43:44 -0800 Subject: [ndnSIM] fix the link In-Reply-To: References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> <, > <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux> Message-ID: <54BEE830.6010105@gmail.com> Could anyone fix these links? Since 2.0 comes out, these links are never working as before. Thanks! look for ndnsim interest, then directing to this link, click it, got the second link. *ndnsim*.net/doxygen/classns3_1_1ndn_1_1_*interest*.html http://ndnsim.net/2.0/page-not-found.html * * -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Jan 20 15:53:55 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 20 Jan 2015 15:53:55 -0800 Subject: [ndnSIM] fix the link In-Reply-To: <54BEE830.6010105@gmail.com> References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> <, > <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux> <54BEE830.6010105@gmail.com> Message-ID: <83AEDAB4-C7CD-45FB-BB22-3A388D701377@ucla.edu> Hi Trade, Thanks for pointing out this problem. Now the link is working. Let us know if there are issues with other pages. --- Alex > On Jan 20, 2015, at 3:43 PM, Trade wrote: > > Could anyone fix these links? Since 2.0 comes out, these links are never working as before. Thanks! > look for ndnsim interest, then directing to this link, click it, got the second link. > ndnsim.net/doxygen/classns3_1_1ndn_1_1_interest.html > > http://ndnsim.net/2.0/page-not-found.html -------------- 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 trade20122012 at gmail.com Tue Jan 20 16:01:36 2015 From: trade20122012 at gmail.com (Trade) Date: Tue, 20 Jan 2015 16:01:36 -0800 Subject: [ndnSIM] fix the link In-Reply-To: <83AEDAB4-C7CD-45FB-BB22-3A388D701377@ucla.edu> References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> <, > <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux> <54BEE830.6010105@gmail.com> <83AEDAB4-C7CD-45FB-BB22-3A388D701377@ucla.edu> Message-ID: <54BEEC60.4050902@gmail.com> Thanks ! One more...not working https://github.com/NDN-Routing/ndnSIM/blob/master/PyNDN/Interest.py resour ce from this: ndnSIM/Interest.py at master ? NDN-Routing/ndnSIM ? GitHub https://github.com/NDN-Routing/*ndnSIM*/blob/master/.../*Interest*.py * On 1/20/15 3:53 PM, Alex Afanasyev wrote: > Hi Trade, > > Thanks for pointing out this problem. Now the link is working. Let us know if there are issues with other pages. > > --- > Alex > >> On Jan 20, 2015, at 3:43 PM, Trade wrote: >> >> Could anyone fix these links? Since 2.0 comes out, these links are never working as before. Thanks! >> look for ndnsim interest, then directing to this link, click it, got the second link. >> ndnsim.net/doxygen/classns3_1_1ndn_1_1_interest.html >> >> http://ndnsim.net/2.0/page-not-found.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at UCLA.EDU Tue Jan 20 16:09:08 2015 From: alexander.afanasyev at UCLA.EDU (Alex Afanasyev) Date: Tue, 20 Jan 2015 16:09:08 -0800 Subject: [ndnSIM] fix the link In-Reply-To: <54BEEC60.4050902@gmail.com> References: <6C132300AD75A346B23A2A102EC3A88F0C7369@hoshi.uni.lux> <, > <4A962764-20A9-47FE-BE3E-946FBEA4EF80@ucla.edu> <6C132300AD75A346B23A2A102EC3A88F0C8415@hoshi.uni.lux> <54BEE830.6010105@gmail.com> <83AEDAB4-C7CD-45FB-BB22-3A388D701377@ucla.edu> <54BEEC60.4050902@gmail.com> Message-ID: Unfortunately, this I cannot fix, as PyNDN is not part (not yet, at least) of ndnSIM 2.0. Where do you see this link? ? Alex > On Jan 20, 2015, at 4:01 PM, Trade wrote: > > Thanks ! One more...not working > > https://github.com/NDN-Routing/ndnSIM/blob/master/PyNDN/Interest.py > > resour ce from this: > > ndnSIM/Interest.py at master ? NDN-Routing/ndnSIM ? GitHub > https://github.com/NDN-Routing/ ndnSIM/blob/master/.../Interest.py > > > > > On 1/20/15 3:53 PM, Alex Afanasyev wrote: >> Hi Trade, >> >> Thanks for pointing out this problem. Now the link is working. Let us know if there are issues with other pages. >> >> --- >> Alex >> >>> On Jan 20, 2015, at 3:43 PM, Trade wrote: >>> >>> Could anyone fix these links? Since 2.0 comes out, these links are never working as before. Thanks! >>> look for ndnsim interest, then directing to this link, click it, got the second link. >>> ndnsim.net/doxygen/classns3_1_1ndn_1_1_interest.html >>> >>> http://ndnsim.net/2.0/page-not-found.html > > _______________________________________________ > 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 trade20122012 at gmail.com Tue Jan 20 17:15:43 2015 From: trade20122012 at gmail.com (Trade) Date: Tue, 20 Jan 2015 17:15:43 -0800 Subject: [ndnSIM] Installation bug on ndnSIM 2.0 update. In-Reply-To: <1E12BE33-4BAF-4806-93A4-2B6A150D3C05@ucla.edu> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> <54BDB362.50604@gmail.com> <1E12BE33-4BAF-4806-93A4-2B6A150D3C05@ucla.edu> Message-ID: <54BEFDBF.7000605@gmail.com> Alex: This message is wrong, because I did successfully install sphinxcontrib-doxylink. Could you please fix it? ndn-cxx$ ./waf Extension 'sphinxcontrib.doxylink' in not available. Some documentation may not build correctly. To install, use sudo pip install sphinxcontrib-doxylink [ 2/113] Compiling src/common-pch.hpp Waf: Leaving directory sudo pip install sphinxcontrib-doxylink sphinxcontrib-googleanalytics Requirement already satisfied (use --upgrade to upgrade): sphinxcontrib-doxylink in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Requirement already satisfied (use --upgrade to upgrade): sphinxcontrib-googleanalytics in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Requirement already satisfied (use --upgrade to upgrade): Sphinx>=0.6 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from sphinxcontrib-doxylink) Requirement already satisfied (use --upgrade to upgrade): pyparsing in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from sphinxcontrib-doxylink) Requirement already satisfied (use --upgrade to upgrade): Pygments>=1.2 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Sphinx>=0.6->sphinxcontrib-doxylink) Requirement already satisfied (use --upgrade to upgrade): docutils>=0.7 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Sphinx>=0.6->sphinxcontrib-doxylink) Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.3 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Sphinx>=0.6->sphinxcontrib-doxylink) Requirement already satisfied (use --upgrade to upgrade): markupsafe in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Jinja2>=2.3->Sphinx>=0.6->sphinxcontrib-doxylink) Cleaning up... From wonjunchoi001 at gmail.com Tue Jan 20 17:47:21 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 21 Jan 2015 10:47:21 +0900 Subject: [ndnSIM] ./waf configure failed Message-ID: Hello. I got some error. I am using OS X 10.9.5. cd ndn-cxx/ ./waf configure Checking Crypto++ lib: CryptoPP not found, please provide a --with-cryptopp=PATH argument What package do I have to install on Mac? Best regards Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Jan 20 17:53:05 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 20 Jan 2015 17:53:05 -0800 Subject: [ndnSIM] ./waf configure failed In-Reply-To: References: Message-ID: <917365B6-D2B3-4B46-996A-5BCD0869E896@ucla.edu> > On Jan 20, 2015, at 5:47 PM, ??? wrote: > > Hello. > > I got some error. I am using OS X 10.9.5. > > cd ndn-cxx/ > ./waf configure > > Checking Crypto++ lib: CryptoPP not found, please provide a --with-cryptopp=PATH argument > > What package do I have to install on Mac? Hi Wonjun, If you?re using macports, sudo port install pkgconfig boost sqlite3 libcryptopp If you?re using brew brew install boost cryptopp pkg-config libxml2 (See more detail on http://named-data.net/doc/ndn-cxx/current/INSTALL.html ) ? Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Tue Jan 20 17:58:53 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 20 Jan 2015 17:58:53 -0800 Subject: [ndnSIM] Installation bug on ndnSIM 2.0 update. In-Reply-To: <54BEFDBF.7000605@gmail.com> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> <54BDB362.50604@gmail.com> <1E12BE33-4BAF-4806-93A4-2B6A150D3C05@ucla.edu> <54BEFDBF.7000605@gmail.com> Message-ID: <9B007E9E-6B37-4BE7-917D-326D5F7AD7A4@ucla.edu> > On Jan 20, 2015, at 5:15 PM, Trade wrote: > > Alex: > > This message is wrong, because I did successfully install sphinxcontrib-doxylink. Could you please fix it? > > > ndn-cxx$ ./waf > > Extension 'sphinxcontrib.doxylink' in not available. Some documentation may not build correctly. > To install, use > sudo pip install sphinxcontrib-doxylink > [ 2/113] Compiling src/common-pch.hpp > Waf: Leaving directory Hi Trade, You can safely ignore this warning. It only means that manpages will not be built and installed. Main reason for your specific issue is that on OS X there are multiple versions of Python installed and the one used with pip not necessarily the same one used for sphinx. If you still want to build docs, you may need to run `sudo port select python python27` and install py27-sphinx port (`sudo port install py27-sphinx`). --- Alex > sudo pip install sphinxcontrib-doxylink sphinxcontrib-googleanalytics > Requirement already satisfied (use --upgrade to upgrade): sphinxcontrib-doxylink in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages > Requirement already satisfied (use --upgrade to upgrade): sphinxcontrib-googleanalytics in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages > Requirement already satisfied (use --upgrade to upgrade): Sphinx>=0.6 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from sphinxcontrib-doxylink) > Requirement already satisfied (use --upgrade to upgrade): pyparsing in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from sphinxcontrib-doxylink) > Requirement already satisfied (use --upgrade to upgrade): Pygments>=1.2 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Sphinx>=0.6->sphinxcontrib-doxylink) > Requirement already satisfied (use --upgrade to upgrade): docutils>=0.7 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Sphinx>=0.6->sphinxcontrib-doxylink) > Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.3 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Sphinx>=0.6->sphinxcontrib-doxylink) > Requirement already satisfied (use --upgrade to upgrade): markupsafe in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from Jinja2>=2.3->Sphinx>=0.6->sphinxcontrib-doxylink) > Cleaning up... -------------- 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 trade20122012 at gmail.com Tue Jan 20 18:03:09 2015 From: trade20122012 at gmail.com (Trade) Date: Tue, 20 Jan 2015 18:03:09 -0800 Subject: [ndnSIM] Installation bug on ndnSIM 2.0 update. In-Reply-To: <9B007E9E-6B37-4BE7-917D-326D5F7AD7A4@ucla.edu> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> <54BDB362.50604@gmail.com> <1E12BE33-4BAF-4806-93A4-2B6A150D3C05@ucla.edu> <54BEFDBF.7000605@gmail.com> <9B007E9E-6B37-4BE7-917D-326D5F7AD7A4@ucla.edu> Message-ID: <54BF08DD.4060709@gmail.com> Thanks, Alex. It is strange that I did see libndn-cxx.a successfully installed as below, but in ns-3 subdir, it still could not find this libndn-cxx.a [109/113] Linking build/libndn-cxx.a [110/113] Linking build/bin/ndncatchunks3 [112/113] Linking build/bin/ndnputchunks3 [112/113] Linking build/bin/tlvdump [113/113] Linking build/bin/ndnsec ./waf configure Checking for 'libndn-cxx' : not found The configuration failed On 1/20/15 5:58 PM, Alex Afanasyev wrote: > sudo port install py27-sphinx From alexander.afanasyev at ucla.edu Tue Jan 20 18:08:49 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 20 Jan 2015 18:08:49 -0800 Subject: [ndnSIM] Installation bug on ndnSIM 2.0 update. In-Reply-To: <54BF08DD.4060709@gmail.com> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> <54BDB362.50604@gmail.com> <1E12BE33-4BAF-4806-93A4-2B6A150D3C05@ucla.edu> <54BEFDBF.7000605@gmail.com> <9B007E9E-6B37-4BE7-917D-326D5F7AD7A4@ucla.edu> <54BF08DD.4060709@gmail.com> Message-ID: <2CD7B80C-B972-43EF-BA0D-055689F69038@ucla.edu> Try export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./waf configure --- Alex > On Jan 20, 2015, at 6:03 PM, Trade wrote: > > Thanks, Alex. > > It is strange that I did see libndn-cxx.a successfully installed as below, but in ns-3 subdir, it still could not find this libndn-cxx.a > > [109/113] Linking build/libndn-cxx.a > [110/113] Linking build/bin/ndncatchunks3 > [112/113] Linking build/bin/ndnputchunks3 > [112/113] Linking build/bin/tlvdump > [113/113] Linking build/bin/ndnsec > > > ./waf configure > > Checking for 'libndn-cxx' : not found > The configuration failed > > > > On 1/20/15 5:58 PM, Alex Afanasyev wrote: >> sudo port install py27-sphinx > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From wonjunchoi001 at gmail.com Tue Jan 20 18:14:58 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 21 Jan 2015 11:14:58 +0900 Subject: [ndnSIM] ./waf configure failed In-Reply-To: <917365B6-D2B3-4B46-996A-5BCD0869E896@ucla.edu> References: <917365B6-D2B3-4B46-996A-5BCD0869E896@ucla.edu> Message-ID: Thanks for your comment. I could configure ndn-cxx and installed it. but I got other error while I was doing below command. cd ./waf configure --with-python=/opt/local/bin/python2.7 --enable-examples Checking for 'libndn-cxx': not found The configuration failed Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From trade20122012 at gmail.com Tue Jan 20 18:18:39 2015 From: trade20122012 at gmail.com (Trade) Date: Tue, 20 Jan 2015 18:18:39 -0800 Subject: [ndnSIM] Installation bug on ndnSIM 2.0 update. In-Reply-To: <2CD7B80C-B972-43EF-BA0D-055689F69038@ucla.edu> References: <27393D5E-1412-439F-8A15-5E30C5558815@gmail.com> <54BD8A2F.9020808@gmail.com> <77E8E147-4AC7-410F-8394-2D17290464E5@ucla.edu> <54BDB362.50604@gmail.com> <1E12BE33-4BAF-4806-93A4-2B6A150D3C05@ucla.edu> <54BEFDBF.7000605@gmail.com> <9B007E9E-6B37-4BE7-917D-326D5F7AD7A4@ucla.edu> <54BF08DD.4060709@gmail.com> <2CD7B80C-B972-43EF-BA0D-055689F69038@ucla.edu> Message-ID: <54BF0C7F.9000305@gmail.com> It worked! Great job, Alex ! On 1/20/15 6:08 PM, Alex Afanasyev wrote: > Try > > export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig > ./waf configure > > --- > Alex > >> On Jan 20, 2015, at 6:03 PM, Trade wrote: >> >> Thanks, Alex. >> >> It is strange that I did see libndn-cxx.a successfully installed as below, but in ns-3 subdir, it still could not find this libndn-cxx.a >> >> [109/113] Linking build/libndn-cxx.a >> [110/113] Linking build/bin/ndncatchunks3 >> [112/113] Linking build/bin/ndnputchunks3 >> [112/113] Linking build/bin/tlvdump >> [113/113] Linking build/bin/ndnsec >> >> >> ./waf configure >> >> Checking for 'libndn-cxx' : not found >> The configuration failed >> >> >> >> On 1/20/15 5:58 PM, Alex Afanasyev wrote: >>> sudo port install py27-sphinx >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Tue Jan 20 18:26:05 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 20 Jan 2015 18:26:05 -0800 Subject: [ndnSIM] ./waf configure failed In-Reply-To: References: <917365B6-D2B3-4B46-996A-5BCD0869E896@ucla.edu> Message-ID: <7136B177-AE6D-4F7F-AA91-8932381B37AF@gmail.com> You need to export pkgconfig. This most probably will work: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig and then ./waf configure including the parameters that you want. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 20, 2015, at 6:14 PM, ??? wrote: > > Thanks for your comment. > > I could configure ndn-cxx and installed it. > but I got other error while I was doing below command. > > cd > > ./waf configure --with-python > =/opt/local/bin/python2.7 --enable-examples > Checking for 'libndn-cxx': not found > The configuration failed > > Wonjun, Choi > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From wonjunchoi001 at gmail.com Tue Jan 20 18:43:25 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 21 Jan 2015 11:43:25 +0900 Subject: [ndnSIM] ./waf configure failed In-Reply-To: <7136B177-AE6D-4F7F-AA91-8932381B37AF@gmail.com> References: <917365B6-D2B3-4B46-996A-5BCD0869E896@ucla.edu> <7136B177-AE6D-4F7F-AA91-8932381B37AF@gmail.com> Message-ID: Hello. I could pass libndn-cxx but the configuration is stuck at python module. Checking for 'libndn-cxx' : yes Checking for OpenFlow location : not found Checking for 'sqlite3' : yes Checking for header linux/if_tun.h : not found Checking for python module 'gtk' : Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue Jan 20 20:08:21 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 20 Jan 2015 20:08:21 -0800 Subject: [ndnSIM] ./waf configure failed In-Reply-To: References: <917365B6-D2B3-4B46-996A-5BCD0869E896@ucla.edu> <7136B177-AE6D-4F7F-AA91-8932381B37AF@gmail.com> Message-ID: Hello, Can you please install the following package and let me know if the problem will be resolved? http://xquartz.macosforge.org Thank you -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 20, 2015, at 6:43 PM, ??? wrote: > > Hello. > I could pass libndn-cxx but the configuration is stuck at python module. > > Checking for 'libndn-cxx' : yes > Checking for OpenFlow location : not found > Checking for 'sqlite3' : yes > Checking for header linux/if_tun.h : not found > Checking for python module 'gtk' : > > Wonjun, Choi From wonjunchoi001 at gmail.com Tue Jan 20 21:32:48 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 21 Jan 2015 14:32:48 +0900 Subject: [ndnSIM] ./waf configure failed In-Reply-To: References: <917365B6-D2B3-4B46-996A-5BCD0869E896@ucla.edu> <7136B177-AE6D-4F7F-AA91-8932381B37AF@gmail.com> Message-ID: The problem is resolved. Thanks. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From trokee at bupt.edu.cn Mon Jan 26 11:17:01 2015 From: trokee at bupt.edu.cn (=?gbk?B?yq/Bpg==?=) Date: Mon, 26 Jan 2015 11:17:01 +0800(CST) Subject: [ndnSIM] =?gbk?q?How_to_enable_self-adaptive_Forwarding_Strategie?= =?gbk?q?s?= Message-ID: <20150126031701.1CC8C19F390@mx1.bupt.edu.cn> An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Mon Jan 26 09:31:48 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 26 Jan 2015 09:31:48 -0800 Subject: [ndnSIM] How to enable self-adaptive Forwarding Strategies In-Reply-To: <20150126031701.1CC8C19F390@mx1.bupt.edu.cn> References: <20150126031701.1CC8C19F390@mx1.bupt.edu.cn> Message-ID: Hello, to that end, you can create your own custom forwarding strategy, which will perform the switching between the two forwarding strategies based on the conditions that you want. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 25, 2015, at 7:17 PM, ?? wrote: > > I intend to install two Forwarding Strategies into each node, and the node will switch between them according to different conditons. Can it really be implemented through ndnSIM? From sarantarnoi at gmail.com Tue Jan 27 01:51:11 2015 From: sarantarnoi at gmail.com (Saran Tarnoi) Date: Tue, 27 Jan 2015 18:51:11 +0900 Subject: [ndnSIM] Simulation on Trace Data Message-ID: Hello All, Does anyone know a good source of a recent trace of the Internet traffic? I would like conduct simulations by using real trace in addition to a synthesized one from Zipf's law. In particular, I want to see the effect of a dynamic content distribution. Thank you so much for your help. Regards, Saran Tarnoi -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco at bupt.edu.cn Tue Jan 27 18:28:41 2015 From: francesco at bupt.edu.cn (francesco at bupt.edu.cn) Date: Tue, 27 Jan 2015 18:28:41 +0800(CST) Subject: [ndnSIM] =?gbk?q?For_car2car_scenarios?= Message-ID: <20150127102841.75E3119F372@mx1.bupt.edu.cn> An HTML attachment was scrubbed... URL: From francesco at bupt.edu.cn Tue Jan 27 22:50:10 2015 From: francesco at bupt.edu.cn (francesco at bupt.edu.cn) Date: Tue, 27 Jan 2015 22:50:10 +0800(CST) Subject: [ndnSIM] =?gbk?q?_For_car2car_scenarios?= Message-ID: <20150127145010.416FA19F3A0@mx1.bupt.edu.cn> An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Jan 27 09:27:41 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 27 Jan 2015 09:27:41 -0800 Subject: [ndnSIM] For car2car scenarios In-Reply-To: <20150127145010.416FA19F3A0@mx1.bupt.edu.cn> References: <20150127145010.416FA19F3A0@mx1.bupt.edu.cn> Message-ID: Hi! I suspect that your NS-3/ndnSIM is configured and build in debug mode, while you?re trying to compile car2car repo in optimized. To compile NS-3/ndnSIM in optimized mode, use ./waf configure -d optimized If you really want debug mode os NS-3 (it is really slow), in car2car repo use PKG_CONFIG_PATH=? ./waf configure --debug ? Alex > On Jan 27, 2015, at 6:50 AM, francesco at bupt.edu.cn wrote: > > Hello Sir, > when I tried to run the car2car example, I read README file on how to setup car2car scenarios. > But I am getting some errors as follows: > ======================================================================== > sugoo at ubuntu:/home/ndnSIM-nom-rapid-car2car$ sudo ./waf configure > Setting top to : /home/ndnSIM-nom-rapid-car2car > Setting out to : /home/ndnSIM-nom-rapid-car2car/build > Checking for 'g++' (c++ compiler) : /usr/bin/g++ > Checking boost includes : 1_54 > Checking boost libs : ok > Checking for boost linkage : ok > Checking for program pkg-config : /usr/bin/pkg-config > Checking for pkg-config version >= '0.0.0' : yes > Checking for ns3-ndnSIM : not found > NS-3 or one of the required NS-3 modules not found > NS-3 needs to be compiled and installed somewhere. You may need also to set PKG_CONFIG_PATH variable in order for configure find installed NS-3. > For example: > PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf configure > > (complete log in /home/ndnSIM-nom-rapid-car2car/build/config.log) > ======================================================================== > My ndnSIM is placed in "/home/ndnSIM", and "ndnSIM-nom-rapid-car2car" is located in "/home/" not in the ndnSIM. > Thanks. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From anselme333 at gmail.com Wed Jan 28 05:06:40 2015 From: anselme333 at gmail.com (NDIKUMANA ANSELME) Date: Wed, 28 Jan 2015 22:06:40 +0900 Subject: [ndnSIM] To run my simulation Message-ID: Hello, I am experiencing the problem of running my simulation , i keeps getting the errors from ndn-net-device-face in which i have not modified: In file included from ./ns3/ndnSIM/model/nacc.h:22:0, from ./ns3/ndn-face.h:25, from ./ns3/ndn-api-face.h:29, from ./ns3/ndnSIM-module.h:18, from ../scratch/congestioncontrolsenario2.cc:3: ./ns3/ndnSIM/model/ndn-net-device-face.h:44:1: error: expected class-name before ?{? token ./ns3/ndnSIM/model/ndn-net-device-face.h:62:35: error: ?InterestHandler? does not name a type ./ns3/ndnSIM/model/ndn-net-device-face.h:62:52: error: ISO C++ forbids declaration of ?interestHandler? with no type [-fpermissive] ./ns3/ndnSIM/model/ndn-net-device-face.h:62:75: error: ?DataHandler? does not name a type ./ns3/ndnSIM/model/ndn-net-device-face.h:62:88: error: ISO C++ forbids declaration of ?dataHandler? with no type [-fpermissive] i have tried to re-install ndnSIM and i got the fallowing error . ../utils/print-introspected-doxygen.cc: In function ?int main(int, char**)?: ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will change meaning in C++0x; please remove it [-Wc++0x-compat] ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids declaration of ?logComponent? with no type [-fpermissive] ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for loops are not allowed in C++98 mode i have removed auto and i still receiving errors. From gcc perceptive i tried to run my simulation with -std=c++0x option but no success. Any support on how to handle this issue will be appreciated. Thank You -------------- next part -------------- An HTML attachment was scrubbed... URL: From trade20122012 at gmail.com Wed Jan 28 16:50:04 2015 From: trade20122012 at gmail.com (Trade) Date: Wed, 28 Jan 2015 16:50:04 -0800 Subject: [ndnSIM] set LastRetransmittedInterestDataDelay In-Reply-To: References: Message-ID: <54C983BC.6090506@gmail.com> Hi, All: Can anyone help me about how to correctly set attribute of LastRetransmittedInterestDataDelay? It has error like: error: too few arguments to function call, expected 2, have 1 consumerHelper.SetAttribute ("LastRetransmittedInterestDataDelay"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr"); consumerHelper.SetAttribute ("Frequency", StringValue ("3")); consumerHelper.SetAttribute ("LastRetransmittedInterestDataDelay"); Thanks! Regards From sugadev.cse at gmail.com Thu Jan 29 02:16:52 2015 From: sugadev.cse at gmail.com (SUGADEV C) Date: Thu, 29 Jan 2015 15:46:52 +0530 Subject: [ndnSIM] help needed with ndnsim Message-ID: hi, i'm working with ndn-sim for my project. i'm trying to send multiple data packets for an interest. I have tried but i couldn't achieve it. can anyone help me with this problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu Jan 29 08:48:56 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 29 Jan 2015 08:48:56 -0800 Subject: [ndnSIM] To run my simulation In-Reply-To: References: Message-ID: <0B234BFA-88EE-446F-AB42-8DB6B4F84FA2@gmail.com> Hello, which version of ndnSIM are you using? I suspect that you are using the previous one, so I would suggest that you install the current one. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 28, 2015, at 5:06 AM, NDIKUMANA ANSELME wrote: > > Hello, > > I am experiencing the problem of running my simulation , i keeps getting the errors from ndn-net-device-face in which i have not modified: > > In file included from ./ns3/ndnSIM/model/nacc.h:22:0, > from ./ns3/ndn-face.h:25, > from ./ns3/ndn-api-face.h:29, > from ./ns3/ndnSIM-module.h:18, > from ../scratch/congestioncontrolsenario2.cc:3: > ./ns3/ndnSIM/model/ndn-net-device-face.h:44:1: error: expected class-name before ?{? token > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:35: error: ?InterestHandler? does not name a type > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:52: error: ISO C++ forbids declaration of ?interestHandler? with no type [-fpermissive] > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:75: error: ?DataHandler? does not name a type > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:88: error: ISO C++ forbids declaration of ?dataHandler? with no type [-fpermissive] > > i have tried to re-install ndnSIM and i got the fallowing error . > > ../utils/print-introspected-doxygen.cc: In function ?int main(int, char**)?: > ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will change meaning in C++0x; please remove it [-Wc++0x-compat] > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids declaration of ?logComponent? with no type [-fpermissive] > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for loops are not allowed in C++98 mode > > i have removed auto and i still receiving errors. From gcc perceptive i tried to run my simulation with -std=c++0x option but no success. > > Any support on how to handle this issue will be appreciated. > > Thank You > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Thu Jan 29 08:54:11 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 29 Jan 2015 08:54:11 -0800 Subject: [ndnSIM] set LastRetransmittedInterestDataDelay In-Reply-To: <54C983BC.6090506@gmail.com> References: <54C983BC.6090506@gmail.com> Message-ID: This attribute is used internally by the consumer application in order to measure the delay between the last retransmitted Interest and received Data packet. Its value cannot be set by the user, but it is only measured by the consumer and traced by the tracers. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 28, 2015, at 4:50 PM, Trade wrote: > > Hi, All: > > Can anyone help me about how to correctly set attribute of LastRetransmittedInterestDataDelay? It has error like: > > error: too few arguments to function call, expected 2, have 1 > consumerHelper.SetAttribute ("LastRetransmittedInterestDataDelay"); > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ > > > > ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr"); > consumerHelper.SetAttribute ("Frequency", StringValue ("3")); > consumerHelper.SetAttribute ("LastRetransmittedInterestDataDelay"); > > > Thanks! > Regards > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Thu Jan 29 09:08:36 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 29 Jan 2015 09:08:36 -0800 Subject: [ndnSIM] help needed with ndnsim In-Reply-To: References: Message-ID: Hello, the communication model of NDN determines that the producer would send back one data packet, which would follow the reverse way of the Interest packet. For more details about the architecture and the communication paradigm, you can take a look here: http://named-data.net/project/archoverview/ -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jan 29, 2015, at 2:16 AM, SUGADEV C wrote: > > > hi, > i'm working with ndn-sim for my project. > i'm trying to send multiple data packets for an interest. I have tried but i couldn't achieve it. > can anyone help me with this problem. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From anselme333 at gmail.com Thu Jan 29 20:11:12 2015 From: anselme333 at gmail.com (NDIKUMANA ANSELME) Date: Fri, 30 Jan 2015 13:11:12 +0900 Subject: [ndnSIM] To run my simulation In-Reply-To: <0B234BFA-88EE-446F-AB42-8DB6B4F84FA2@gmail.com> References: <0B234BFA-88EE-446F-AB42-8DB6B4F84FA2@gmail.com> Message-ID: Dear Sir, Thank you for the reply. i was using the old one and after its re-installation, i got the following errors: ../utils/print-introspected-doxygen.cc: In function ?int main(int, char**)?: ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will change meaning in C++0x; please remove it [-Wc++0x-compat] ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids declaration of ?logComponent? with no type [-fpermissive] ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for loops are not allowed in C++98 mode i have also tried to install the latest version and i got the following errors: o from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration failed -------------------------------------------------------------- Checking for 'libndn-cxx' ['/usr/bin/pkg-config', '--cflags', '--libs', 'libndn-cxx'] err: Package libndn-cxx was not found in the pkg-config search path. Perhaps you should add the directory containing `libndn-cxx.pc' to the PKG_CONFIG_PATH environment variable No package 'libndn-cxx' found from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration failed Checking boost includes 1.55.0 ------------------------------------------ Checking boost libs Found the boost path in /usr/lib with the libraries: /usr/lib/libboost_iostreams.so.1.46.1 /usr/lib/libboost_program_options.so.1.46.1 /usr/lib/libboost_serialization.so.1.46.1 /usr/lib/libboost_wserialization.so.1.46.1 Trying pattern boost_system(-gcc[0-9]{0,3})+(-1_55)+ Trying pattern boost_system(-1_55)+ Trying pattern boost_system(-1_55)+ Trying pattern boost_system(-gcc[0-9]{0,3})+ Trying pattern boost_system Trying pattern boost_system lib system not found in /usr/lib from /home/anselme/simulation/nacc2.0/ndn-cxx: The configuration failed 2015-01-30 1:48 GMT+09:00 Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com>: > Hello, > > which version of ndnSIM are you using? I suspect that you are using the > previous one, so I would suggest that you install the current one. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jan 28, 2015, at 5:06 AM, NDIKUMANA ANSELME > wrote: > > > > Hello, > > > > I am experiencing the problem of running my simulation , i keeps getting > the errors from ndn-net-device-face in which i have not modified: > > > > In file included from ./ns3/ndnSIM/model/nacc.h:22:0, > > from ./ns3/ndn-face.h:25, > > from ./ns3/ndn-api-face.h:29, > > from ./ns3/ndnSIM-module.h:18, > > from ../scratch/congestioncontrolsenario2.cc:3: > > ./ns3/ndnSIM/model/ndn-net-device-face.h:44:1: error: expected > class-name before ?{? token > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:35: error: ?InterestHandler? > does not name a type > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:52: error: ISO C++ forbids > declaration of ?interestHandler? with no type [-fpermissive] > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:75: error: ?DataHandler? > does not name a type > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:88: error: ISO C++ forbids > declaration of ?dataHandler? with no type [-fpermissive] > > > > i have tried to re-install ndnSIM and i got the fallowing error . > > > > ../utils/print-introspected-doxygen.cc: In function ?int main(int, > char**)?: > > ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will > change meaning in C++0x; please remove it [-Wc++0x-compat] > > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids > declaration of ?logComponent? with no type [-fpermissive] > > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for > loops are not allowed in C++98 mode > > > > i have removed auto and i still receiving errors. From gcc perceptive > i tried to run my simulation with -std=c++0x option but no success. > > > > Any support on how to handle this issue will be appreciated. > > > > Thank You > > > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Thu Jan 29 20:21:02 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 29 Jan 2015 20:21:02 -0800 Subject: [ndnSIM] To run my simulation In-Reply-To: References: <0B234BFA-88EE-446F-AB42-8DB6B4F84FA2@gmail.com> Message-ID: The versions of base NS-3 and ndnSIM must be matched. In your case they are not. You should either download everything from scratch, as shown on ndnsim.net or manually update both NS-3 and ndnSIM to the latest versions. ? Alex > On Jan 29, 2015, at 8:11 PM, NDIKUMANA ANSELME wrote: > > Dear Sir, > > Thank you for the reply. i was using the old one and after its re-installation, i got the following errors: > > ../utils/print-introspected-doxygen.cc: In function ?int main(int, char**)?: > ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will change meaning in C++0x; please remove it [-Wc++0x-compat] > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids declaration of ?logComponent? with no type [-fpermissive] > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for loops are not allowed in C++98 mode > > i have also tried to install the latest version and i got the following errors: > > o > from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration failed > -------------------------------------------------------------- > Checking for 'libndn-cxx' > ['/usr/bin/pkg-config', '--cflags', '--libs', 'libndn-cxx'] > err: Package libndn-cxx was not found in the pkg-config search path. > Perhaps you should add the directory containing `libndn-cxx.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libndn-cxx' found > > from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration failed > > Checking boost includes > 1.55.0 > ------------------------------------------ > Checking boost libs > Found the boost path in /usr/lib with the libraries: > /usr/lib/libboost_iostreams.so.1.46.1 > /usr/lib/libboost_program_options.so.1.46.1 > /usr/lib/libboost_serialization.so.1.46.1 > /usr/lib/libboost_wserialization.so.1.46.1 > Trying pattern boost_system(-gcc[0-9]{0,3})+(-1_55)+ > Trying pattern boost_system(-1_55)+ > Trying pattern boost_system(-1_55)+ > Trying pattern boost_system(-gcc[0-9]{0,3})+ > Trying pattern boost_system > Trying pattern boost_system > lib system not found in /usr/lib > from /home/anselme/simulation/nacc2.0/ndn-cxx: The configuration failed > > > 2015-01-30 1:48 GMT+09:00 Spyridon (Spyros) Mastorakis >: > Hello, > > which version of ndnSIM are you using? I suspect that you are using the previous one, so I would suggest that you install the current one. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jan 28, 2015, at 5:06 AM, NDIKUMANA ANSELME > wrote: > > > > Hello, > > > > I am experiencing the problem of running my simulation , i keeps getting the errors from ndn-net-device-face in which i have not modified: > > > > In file included from ./ns3/ndnSIM/model/nacc.h:22:0, > > from ./ns3/ndn-face.h:25, > > from ./ns3/ndn-api-face.h:29, > > from ./ns3/ndnSIM-module.h:18, > > from ../scratch/congestioncontrolsenario2.cc:3: > > ./ns3/ndnSIM/model/ndn-net-device-face.h:44:1: error: expected class-name before ?{? token > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:35: error: ?InterestHandler? does not name a type > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:52: error: ISO C++ forbids declaration of ?interestHandler? with no type [-fpermissive] > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:75: error: ?DataHandler? does not name a type > > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:88: error: ISO C++ forbids declaration of ?dataHandler? with no type [-fpermissive] > > > > i have tried to re-install ndnSIM and i got the fallowing error . > > > > ../utils/print-introspected-doxygen.cc: In function ?int main(int, char**)?: > > ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will change meaning in C++0x; please remove it [-Wc++0x-compat] > > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids declaration of ?logComponent? with no type [-fpermissive] > > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for loops are not allowed in C++98 mode > > > > i have removed auto and i still receiving errors. From gcc perceptive i tried to run my simulation with -std=c++0x option but no success. > > > > Any support on how to handle this issue will be appreciated. > > > > Thank You > > > > _______________________________________________ > > 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: -------------- 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 anselme333 at gmail.com Thu Jan 29 22:40:57 2015 From: anselme333 at gmail.com (NDIKUMANA ANSELME) Date: Fri, 30 Jan 2015 15:40:57 +0900 Subject: [ndnSIM] To run my simulation In-Reply-To: References: <0B234BFA-88EE-446F-AB42-8DB6B4F84FA2@gmail.com> Message-ID: Dear Sir, Thank you so much for the help. I have found a problem in my boost libraries and is now fixed With Regards, Anselme NDIKUMANA 2015-01-30 13:21 GMT+09:00 Alex Afanasyev : > The versions of base NS-3 and ndnSIM must be matched. In your case they > are not. > > You should either download everything from scratch, as shown on ndnsim.net or > manually update both NS-3 and ndnSIM to the latest versions. > > ? > Alex > > On Jan 29, 2015, at 8:11 PM, NDIKUMANA ANSELME > wrote: > > Dear Sir, > > Thank you for the reply. i was using the old one and after its > re-installation, i got the following errors: > > ../utils/print-introspected-doxygen.cc: In function ?int main(int, > char**)?: > ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will > change meaning in C++0x; please remove it [-Wc++0x-compat] > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids > declaration of ?logComponent? with no type [-fpermissive] > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for > loops are not allowed in C++98 mode > > i have also tried to install the latest version and i got the following > errors: > > o > from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration > failed > -------------------------------------------------------------- > Checking for 'libndn-cxx' > ['/usr/bin/pkg-config', '--cflags', '--libs', 'libndn-cxx'] > err: Package libndn-cxx was not found in the pkg-config search path. > Perhaps you should add the directory containing `libndn-cxx.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libndn-cxx' found > > from /home/anselme/simulation/nacc2.0/ns-3/src/ndnSIM: The configuration > failed > > Checking boost includes > 1.55.0 > ------------------------------------------ > Checking boost libs > Found the boost path in /usr/lib with the libraries: > /usr/lib/libboost_iostreams.so.1.46.1 > /usr/lib/libboost_program_options.so.1.46.1 > /usr/lib/libboost_serialization.so.1.46.1 > /usr/lib/libboost_wserialization.so.1.46.1 > Trying pattern boost_system(-gcc[0-9]{0,3})+(-1_55)+ > Trying pattern boost_system(-1_55)+ > Trying pattern boost_system(-1_55)+ > Trying pattern boost_system(-gcc[0-9]{0,3})+ > Trying pattern boost_system > Trying pattern boost_system > lib system not found in /usr/lib > from /home/anselme/simulation/nacc2.0/ndn-cxx: The configuration failed > > > 2015-01-30 1:48 GMT+09:00 Spyridon (Spyros) Mastorakis < > spiros.mastorakis at gmail.com>: > >> Hello, >> >> which version of ndnSIM are you using? I suspect that you are using the >> previous one, so I would suggest that you install the current one. >> >> -- >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> PhD Computer Science >> UCLA >> >> >> >> >> > On Jan 28, 2015, at 5:06 AM, NDIKUMANA ANSELME >> wrote: >> > >> > Hello, >> > >> > I am experiencing the problem of running my simulation , i keeps >> getting the errors from ndn-net-device-face in which i have not modified: >> > >> > In file included from ./ns3/ndnSIM/model/nacc.h:22:0, >> > from ./ns3/ndn-face.h:25, >> > from ./ns3/ndn-api-face.h:29, >> > from ./ns3/ndnSIM-module.h:18, >> > from ../scratch/congestioncontrolsenario2.cc:3: >> > ./ns3/ndnSIM/model/ndn-net-device-face.h:44:1: error: expected >> class-name before ?{? token >> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:35: error: >> ?InterestHandler? does not name a type >> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:52: error: ISO C++ forbids >> declaration of ?interestHandler? with no type [-fpermissive] >> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:75: error: ?DataHandler? >> does not name a type >> > ./ns3/ndnSIM/model/ndn-net-device-face.h:62:88: error: ISO C++ forbids >> declaration of ?dataHandler? with no type [-fpermissive] >> > >> > i have tried to re-install ndnSIM and i got the fallowing error . >> > >> > ../utils/print-introspected-doxygen.cc: In function ?int main(int, >> char**)?: >> > ../utils/print-introspected-doxygen.cc:782:14: warning: ?auto? will >> change meaning in C++0x; please remove it [-Wc++0x-compat] >> > ../utils/print-introspected-doxygen.cc:782:20: error: ISO C++ forbids >> declaration of ?logComponent? with no type [-fpermissive] >> > ../utils/print-introspected-doxygen.cc:782:35: error: range-based-for >> loops are not allowed in C++98 mode >> > >> > i have removed auto and i still receiving errors. From gcc perceptive >> i tried to run my simulation with -std=c++0x option but no success. >> > >> > Any support on how to handle this issue will be appreciated. >> > >> > Thank You >> > >> > _______________________________________________ >> > 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 sugadev.cse at gmail.com Thu Jan 29 02:14:17 2015 From: sugadev.cse at gmail.com (SUGADEV C) Date: Thu, 29 Jan 2015 15:44:17 +0530 Subject: [ndnSIM] help needed with ndnsim Message-ID: hi, i'm working with ndn-sim for my project. i'm trying to send multiple data packets for an interest. I have tried but i couldn't achieve it. can anyone help me with this problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: