From shijunxiao at email.arizona.edu Tue Aug 2 07:20:16 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Tue, 2 Aug 2016 07:20:16 -0700 Subject: [ndnSIM] [Nfd-dev] OnContentSoreMiss pipline In-Reply-To: References: Message-ID: <57a0ac1d.055a620a.607d9.a0ac@mx.google.com> Hi Sabet It?s unintentional. NFD 0.4 introduced major changes in face system, which requires significant work on ndnSIM side to keep up. You may watch https://redmine.named-data.net/issues/3560 for progress on this upgrade. I heard Spyros, Xuxiang Tian , and Klaus all attempted to do this upgrade, but none of them has completed. If you want to work on the upgrade, I recommend you to talk to these three developers. Yours, Junxiao From: Muhammad Hosain Abdollahi Sabet Sent: Tuesday, August 2, 2016 02:46 To: Spyridon (Spyros) Mastorakis; Alex Afanasyev Cc: Junxiao Shi Subject: Fwd: [Nfd-dev] OnContentSoreMiss pipline Spyridon, Alex, Junxiao is right. Handling Link objects in forwarding has been set in Forwarder::lookupFib in NFD. The case is that ndnSIM's NFD is different with the actual one and doesn't have such handlings. The question is: What is the reason? Is it intentional? Keeping in mind that?- as far as I've found - there is no RegionTable in ndnSIM, how do you suggest me to import Link handling in ndnSIM forwarding logic. Regards, Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Thu Aug 4 13:56:01 2016 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 4 Aug 2016 13:56:01 -0700 Subject: [ndnSIM] Cs tracer output file structure In-Reply-To: <712FE4E7257849499414892DD92704BC7A997A86@INFRAEX02.oxia.corp> References: <712FE4E7257849499414892DD92704BC7A997A86@INFRAEX02.oxia.corp> Message-ID: <0987C778-C35B-4678-AC4D-D9CD4D6C82AC@ucla.edu> I will update documentation to include the description: +------------------+----------------------------------------------------------------------+ | Column | Description | +==================+======================================================================+ | ``Time`` | simulation time | +------------------+----------------------------------------------------------------------+ | ``Node`` | node id, globally unique | +------------------+----------------------------------------------------------------------+ | ``Type`` | Type of counter for the time period. Posible values are: | | | | | | - ``CacheHits``: the ``Packets`` column specifies the number of | | | Interests that were satisfied from the cache | | | - ``CacheMisses``: the ``Packets`` column specifies the number of | | | Interests that were not satisfied from the cache | +------------------+----------------------------------------------------------------------+ | ``Packets`` | The number of packets for the time period, meaning depends on | | | ``Type`` column +------------------+----------------------------------------------------------------------+ > On Aug 4, 2016, at 3:59 AM, Nour El Houda Ben Youssef wrote: > > Dear ndnSim users > > Can anybody please provide me with a description of the structure of the Cs tracer output file > > Best regards > > > Nour El Houda BEN YOUSSEF KOUB?A|Doctorante > Technopark El Ghazela 2088 Tunis- Tunisia > Phone: +216 31 34 00 14 > Mobile: +216 40 01 73 56 > www.wevioo.com > Paris ? Tunis - Dubai ? Alger -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Thu Aug 4 14:12:52 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Thu, 4 Aug 2016 14:12:52 -0700 Subject: [ndnSIM] Assert in TypeId::LookupByName: error. Could not find the class In-Reply-To: References: Message-ID: <116BFE43-324B-4E08-83B8-7F400DC8886B@cs.ucla.edu> Hi Fatemeh, I suspect that you have defined PccApp in a separate .hpp/.cpp file. Don't forget to include .cpp file to be compiled together with your simulation scenario. If you're using scenario template, this should happen automatically though. -- Alex > On Jul 27, 2016, at 10:53 PM, Fatemeh Goudarzi wrote: > > Hi, > I am trying to add a new type of application by defining its own class. I think I have coded it right (e.g. TypeId method, and calling NS_LOG_COMPONENT_DEFINE ("PccApp"), > NS_OBJECT_ENSURE_REGISTERED (PccApp); > > TypeId > PccApp::GetTypeId () > { > static TypeId tid = TypeId ("PccApp") > .SetParent () > .AddConstructor () > ; > return tid; > } > > > But I get the below error. > > assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: > PccApp not found", file=../src/core/model/type-id.cc, line=755 > terminate called without an active exception > > Could anyone please let me know what might be the issue? > > Best Regards, > Fatemeh Goudarzi > > _______________________________________________ > 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 lixia at CS.UCLA.EDU Sat Aug 6 22:52:06 2016 From: lixia at CS.UCLA.EDU (Lixia Zhang) Date: Sat, 6 Aug 2016 22:52:06 -0700 Subject: [ndnSIM] A question regarding OPSFN implementation in ndnSIM In-Reply-To: References: Message-ID: <19DBFAA2-B45C-4CC7-A982-D41A0B25D9D6@cs.ucla.edu> dont know whether anyone replied to this already: I dont think OSPFN was coded into ndnSIM, nor do we have such a plan. One should understand that OSPFN was simply a quick hack to get NDN testbed started, not so much of a research result. > On Jul 27, 2016, at 1:14 AM, Mahsa Aghajani wrote: > > Dear Dr. Afanasyev, > > I am an MSc student in the Department of Computer Engineering, > Sharif University of Technology, Tehran, Iran. > > I am writing to ask you about the implementation of OSPFN > in ndnSIM. Is there any available implementation? I found > the open source codes of OSPFN for real implementation, but > unfortunately I could not find its implementation in ndnSIM. > I want to be sure whether there is such an implementation > or not, before starting to implement that by myself. > > Any comment that may help me is also appreciated. > > Thank you in advance for your kind attention and look > forward to hearing from you. > > -- > Yours sincerely, > Mahsa Aghajani > M.Sc. student > Performance and Dependability Laboratory (PDL) > Department of Computer Engineering > Sharif University of Technology > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From mhasabet at gmail.com Mon Aug 8 05:51:28 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Mon, 8 Aug 2016 17:21:28 +0430 Subject: [ndnSIM] Where to Initialize network-region-table ? Message-ID: ?Hi there, I've been trying to import Feature #3034 and #3159 to ndnSIM 2.1. I've done with network-region-table definition(NFD/daemon/table/) and modifying onContentStoreMiss(NFD/daemon/fw/forwarder.cpp)*, which was successful. But trying to set config section (NFD/mgmt/tables-config-section) I have failed. I have modified *InitializeManagement()* and *reloadConfigFile()* in ndnSIM/model/ndn-l3-protocol.cpp to set m_forwarder->getNetworkRegionTable(); but at the end compiler gives me: Compiling src/ndnSIM/NFD/daemon/mgmt/tables-config-section.cpp ../src/ndnSIM/NFD/daemon/mgmt/tables-config-section.cpp: In constructor ?nfd::TablesConfigSection::TablesConfigSection(nfd::cs::Cs&, nfd::Pit&, nfd::Fib&, nfd::StrategyChoice&, nfd::Measurements&, nfd::NetworkRegionTable&)?: ../src/ndnSIM/NFD/daemon/mgmt/tables-config-section.cpp:38:1: error: uninitialized reference member ?nfd::TablesConfigSection::m_networkRegionTable? [-fpermissive] TablesConfigSection::TablesConfigSection(Cs& cs, ^ Could anyone please guide me where to initialize the table? *Since the documentation has not been updated for latest version of NFD, I preferred to go with the way NFD 0.4.0 was working. And yes! Moving Link handling parts to strategy seems to be a good pick, because there are some unnecessary calls for *onContentStoreMiss*(at least 3 per one ndn stack). Thanks, Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From xuxiangtian at ucla.edu Wed Aug 10 15:10:13 2016 From: xuxiangtian at ucla.edu (Xuxiang Tian) Date: Wed, 10 Aug 2016 15:10:13 -0700 Subject: [ndnSIM] Ask the meaning of m_metric Message-ID: Hi all, I'm updating ndnSIM. In boost-graph-ndn-global-routing-helper.hpp of NFD 0.3.4, there is inline property_traits::reference get(const boost::EdgeWeights&, ns3::ndn::GlobalRouter::Incidency& edge) { if (std::get<1>(edge) == 0) return property_traits::reference(nullptr, 0, 0.0); else { return property_traits::reference(std::get<1>(edge), static_cast( std::get<1>(edge)->getMetric()), 0.0); } } where getMetric() returns m_metric, which seems is either 1 or 0 and is no longer exists in NFD 0.4.2. Could you please tell me what m_metric works for -- Xuxiang -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.EDU Wed Aug 10 22:52:13 2016 From: shijunxiao at email.arizona.EDU (Junxiao Shi) Date: Wed, 10 Aug 2016 22:52:13 -0700 Subject: [ndnSIM] Ask the meaning of m_metric In-Reply-To: References: Message-ID: Hi Xuxiang GlobalRoutingHelper is not part of NFD 0.3.4, either. It's an addition of ndnSIM and it's similar to ns3 IP global routing helper, Yours, Junxiao On Wed, Aug 10, 2016 at 3:10 PM, Xuxiang Tian wrote: > Hi all, > > I'm updating ndnSIM. > > In boost-graph-ndn-global-routing-helper.hpp of NFD 0.3.4, there is > > inline property_traits::reference > get(const boost::EdgeWeights&, ns3::ndn::GlobalRouter::Incidency& edge) > { > if (std::get<1>(edge) == 0) > return property_traits::reference(nullptr, 0, 0.0); > else { > return property_traits::reference(std::get<1>(edge), > static_cast( > > std::get<1>(edge)->getMetric()), > 0.0); > } > } > > where getMetric() returns m_metric, which seems is either 1 or 0 and is > no longer exists in NFD 0.4.2. > Could you please tell me what m_metric works for > > -- > Xuxiang > > > _______________________________________________ > 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 xuxiangtian at ucla.edu Wed Aug 10 23:13:16 2016 From: xuxiangtian at ucla.edu (Xuxiang Tian) Date: Wed, 10 Aug 2016 23:13:16 -0700 Subject: [ndnSIM] Ask the meaning of m_metric In-Reply-To: References: Message-ID: Hi Junxiao, Thank you for your kind reply. I see it, sorry for making you misunderstand, What I was trying to say is that m_metric is part of custom version of NFD 0.3.4 or ndn-cxx 0.3.4 for ndnSIM, but no longer exists in the current NFD or ndn-cxx. I'm wondering what m_metric is for so that I can determine if I should re-add them in the current version of NFD or replace with other methods. I have solved the problem by re-adding them, suggested by Alex. Thank you again. -- Xuxiang 2016-08-10 22:52 GMT-07:00 Junxiao Shi : > Hi Xuxiang > > GlobalRoutingHelper is not part of NFD 0.3.4, either. > It's an addition of ndnSIM and it's similar to ns3 IP global routing > helper, > > Yours, Junxiao > > On Wed, Aug 10, 2016 at 3:10 PM, Xuxiang Tian > wrote: > >> Hi all, >> >> I'm updating ndnSIM. >> >> In boost-graph-ndn-global-routing-helper.hpp of NFD 0.3.4, there is >> >> inline property_traits::reference >> get(const boost::EdgeWeights&, ns3::ndn::GlobalRouter::Incidency& edge) >> { >> if (std::get<1>(edge) == 0) >> return property_traits::reference(nullptr, 0, 0.0); >> else { >> return property_traits::reference(std::get<1>(edge), >> static_cast( >> >> std::get<1>(edge)->getMetric()), >> 0.0); >> } >> } >> >> where getMetric() returns m_metric, which seems is either 1 or 0 and is >> no longer exists in NFD 0.4.2. >> Could you please tell me what m_metric works for >> >> -- >> Xuxiang >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Thu Aug 11 04:10:08 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Thu, 11 Aug 2016 04:10:08 -0700 Subject: [ndnSIM] Ask the meaning of m_metric In-Reply-To: References: Message-ID: Hi Xuxiang It's great you figured out the semantics of m_metrics. To preserve this knowledge, you can add a Doxygen comment on this variable, so that others can understand it easier. Yours, Junxiao On Wed, Aug 10, 2016 at 11:13 PM, Xuxiang Tian wrote: > Hi Junxiao, > > Thank you for your kind reply. > I see it, sorry for making you misunderstand, What I was trying to say is > that m_metric is part of custom version of NFD 0.3.4 or ndn-cxx 0.3.4 for > ndnSIM, but no longer exists in the current NFD or ndn-cxx. I'm wondering > what m_metric is for so that I can determine if I should re-add them in > the current version of NFD or replace with other methods. > I have solved the problem by re-adding them, suggested by Alex. > Thank you again. > > -- > Xuxiang > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pratyushagnihotri03 at gmail.com Fri Aug 12 08:32:07 2016 From: pratyushagnihotri03 at gmail.com (Pratyush Agnihotri) Date: Fri, 12 Aug 2016 17:32:07 +0200 Subject: [ndnSIM] ndnSIM: Modifying Interest Packet Message-ID: Hi Alex, I am trying to modify Interest packet for my custom forwarding strategy in ndnSIM 1.0. I observed that once the Interest packet (header + payload) is serialized to the network, it cannot be modified by intermediate nodes (e.g., in the forwarding strategy). The packet is only deserialized by relay (or intermediate) nodes and cannot be written (or modified) by them. I checked the source file ndnSIM/model/wire/ndnsim.cc, Serialize() and Deserialize() functions for the same. Is my understanding correct? Or, is there some way to write to buffer while the packet is in network? For e.g., FwHopCountTag is the by given as example how to add information in payload. If one want to increment the hop count and re-write to payload as follows:- FwHopCountTag hopCount; bool tagExists = packet->RemovePacketTag (hopCount); if (tagExists) { hopCount.Increment (); packet->AddPacketTag (hopCount); } This tries to increment the hopCount, but it doesn't actually increment if I print the value. This means even though I re-write to the payload, it doesn't update the packet. Please let me know. -- Kind Regards, Pratyush Agnihotri -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Fri Aug 12 09:45:46 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Fri, 12 Aug 2016 09:45:46 -0700 Subject: [ndnSIM] ndnSIM: Modifying Interest Packet In-Reply-To: References: Message-ID: <7C07C409-AAE9-44B6-8D4D-F89E17B7A77D@cs.ucla.edu> Hi Pratyush, You're correct. I would only restate is a little bit more general and say that NS3's Packet data structure cannot be modified by the routers. What you can do is to make a copy of the packet and modify the copy. I think the same applies to the tags with some exceptions that I cannot remember right now. -- Alex > On Aug 12, 2016, at 8:32 AM, Pratyush Agnihotri wrote: > > Hi Alex, > > I am trying to modify Interest packet for my custom forwarding strategy in ndnSIM 1.0. I observed that once the Interest packet (header + payload) is serialized to the network, it cannot be modified by intermediate nodes (e.g., in the forwarding strategy). The packet is only deserialized by relay (or intermediate) nodes and cannot be written (or modified) by them. I checked the source file ndnSIM/model/wire/ndnsim.cc, Serialize() and Deserialize() functions for the same. > > Is my understanding correct? Or, is there some way to write to buffer while the packet is in network? > > For e.g., FwHopCountTag is the by given as example how to add information in payload. If one want to increment the hop count and re-write to payload as follows:- > > FwHopCountTag hopCount; > bool tagExists = packet->RemovePacketTag (hopCount); > > if (tagExists) > { > hopCount.Increment (); > packet->AddPacketTag (hopCount); > } > > This tries to increment the hopCount, but it doesn't actually increment if I print the value. This means even though I re-write to the payload, it doesn't update the packet. > > Please let me know. > > -- > Kind Regards, > Pratyush Agnihotri > _______________________________________________ > 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 mhasabet at gmail.com Sat Aug 13 22:36:34 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sun, 14 Aug 2016 10:06:34 +0430 Subject: [ndnSIM] Error while calling applications public member functions from scenario Message-ID: Hi, I have a custom application *"CustomApp". *I have put SendInterest() in public so I can call it from scenario, for testing purposes. With this snap: ndn::AppHelper app1("CustomApp"); > ApplicationContainer appCont = app1.Install(ConsNode); > > Ptr app1ptr = DynamicCast(appCont.Get(0)); > app1ptr->SendInterest(); > I'm getting: Command ['.../ns-3/build/scratch/simple-custom-app'] terminated with signal > SIGSEGV. Run it under a debugger to get more information (./waf --run > --command-template="gdb --args %s "). > which buy following gdb(insight) I end up : BOOST_ASSERT_MSG(!m_isExecuting, "cannot emit signal from a handler"); It is from: https://github.com/named-data-ndnSIM/ndn-cxx/blob/master/src/util/signal-signal.hpp:224 Branch: ndn-cxx.0.3.4-ndnSIM I have tested app1ptr with some sample doing-nothing-but-LOG member function and it worked. I appreciate it if you could help me on what is wrong. Thanks, Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Sun Aug 14 06:33:27 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Sun, 14 Aug 2016 18:03:27 +0430 Subject: [ndnSIM] pit::Entry has no member named 'getName'? Message-ID: Hi, In Forwarder::onContentStoreMiss I want to track pit entry and it's Link(if exists) but having called it on NFD_LOG_DEBUG with pitEntry.getName () or pitEntry.getInterest .getName(), pitEntry.getInterest.getLink() compiler says: > class std::shared_ptr has no member named 'getName' Similar to what compiler says about getInterest. Well What is it I've missed? Thanks, Sabet -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Sun Aug 14 12:14:30 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Sun, 14 Aug 2016 12:14:30 -0700 Subject: [ndnSIM] Error while calling applications public member functions from scenario In-Reply-To: References: Message-ID: Hi Sabet This usually occurs when you are trying to send a packet when processing a packet. You need a io.post in real application or ns3::Simulator::ScheduleNow in simulated application *somewhere*. Yours, Junxiao On Aug 13, 2016 10:37 PM, "Muhammad Hosain Abdollahi Sabet" < mhasabet at gmail.com> wrote: > Hi, > > I have a custom application *"CustomApp". *I have put SendInterest() in > public so I can call it from scenario, for testing purposes. With this snap: > > ndn::AppHelper app1("CustomApp"); >> ApplicationContainer appCont = app1.Install(ConsNode); >> >> Ptr app1ptr = DynamicCast(appCont.Get(0)); >> app1ptr->SendInterest(); >> > > I'm getting: > > Command ['.../ns-3/build/scratch/simple-custom-app'] terminated with >> signal SIGSEGV. Run it under a debugger to get more information (./waf >> --run --command-template="gdb --args %s "). >> > > which buy following gdb(insight) I end up : > > BOOST_ASSERT_MSG(!m_isExecuting, "cannot emit signal from a handler"); > > > It is from: > https://github.com/named-data-ndnSIM/ndn-cxx/blob/master/ > src/util/signal-signal.hpp:224 > Branch: ndn-cxx.0.3.4-ndnSIM > > I have tested app1ptr with some sample doing-nothing-but-LOG member > function and it worked. > > I appreciate it if you could help me on what is wrong. > > Thanks, > Sabet > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aa at CS.UCLA.EDU Sun Aug 14 13:53:31 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 14 Aug 2016 13:53:31 -0700 Subject: [ndnSIM] Error while calling applications public member functions from scenario In-Reply-To: References: Message-ID: <1C639B46-CFF3-47DF-94D2-100AD291E72E@cs.ucla.edu> > On Aug 14, 2016, at 12:14 PM, Junxiao Shi wrote: > > Hi Sabet > > This usually occurs when you are trying to send a packet when processing a packet. You need a io.post in real application or ns3::Simulator::ScheduleNow in simulated application *somewhere*. > > Yours, Junxiao > > > On Aug 13, 2016 10:37 PM, "Muhammad Hosain Abdollahi Sabet" > wrote: > Hi, > > I have a custom application "CustomApp". I have put SendInterest() in public so I can call it from scenario, for testing purposes. With this snap: > > ndn::AppHelper app1("CustomApp"); > ApplicationContainer appCont = app1.Install(ConsNode); > > Ptr app1ptr = DynamicCast(appCont.Get(0)); > app1ptr->SendInterest(); As Junxiao already pointed out, you cannot do this. One of the reasons is that this code in main() function merely sets up the simulation. The installed applications is "logically" installed on the node, and it doesn't necessarily has to start at the beginning of the simulation (it is just an accident that in your simulation it does, as you used the default start/stop times). I would recommend checking the example applications, e.g., http://ndnsim.net/2.1/applications.html#customer-example . You need two things, - initiate application tasks only after StartApplication is called - schedule send interest operation, not invoke it directly -- Alex > > I'm getting: > > Command ['.../ns-3/build/scratch/simple-custom-app'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). > > which buy following gdb(insight) I end up : > > BOOST_ASSERT_MSG(!m_isExecuting, "cannot emit signal from a handler"); > > It is from: > https://github.com/named-data-ndnSIM/ndn-cxx/blob/master/src/util/signal-signal.hpp:224 > Branch: ndn-cxx.0.3.4-ndnSIM > > I have tested app1ptr with some sample doing-nothing-but-LOG member function and it worked. > > I appreciate it if you could help me on what is wrong. > > Thanks, > Sabet > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From aa at CS.UCLA.EDU Sun Aug 14 13:55:21 2016 From: aa at CS.UCLA.EDU (Alex Afanasyev) Date: Sun, 14 Aug 2016 13:55:21 -0700 Subject: [ndnSIM] pit::Entry has no member named 'getName'? In-Reply-To: References: Message-ID: <200A4BB3-E7B2-4CDA-B1E4-F7E656551111@cs.ucla.edu> > On Aug 14, 2016, at 6:33 AM, Muhammad Hosain Abdollahi Sabet wrote: > > Hi, > In Forwarder::onContentStoreMiss I want to track pit entry and it's Link(if exists) but having called it on NFD_LOG_DEBUG with pitEntry.getName() or pitEntry.getInterest.getName(), pitEntry.getInterest.getLink() compiler says: > > class std::shared_ptr has no member named 'getName' > Similar to what compiler says about getInterest. Well std::shared_ptr doesn't have getName, as by .getName() you're trying to get a method of the shared pointer. Try using ->getInterest and ->getName() instead. --- Alex > What is it I've missed? > > Thanks, > Sabet > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From mhasabet at gmail.com Sun Aug 14 13:58:23 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Mon, 15 Aug 2016 01:28:23 +0430 Subject: [ndnSIM] pit::Entry has no member named 'getName'? In-Reply-To: <200A4BB3-E7B2-4CDA-B1E4-F7E656551111@cs.ucla.edu> References: <200A4BB3-E7B2-4CDA-B1E4-F7E656551111@cs.ucla.edu> Message-ID: Sorry. My bad. You're right. Thanks, On 15 Aug 2016 1:25 am, "Alex Afanasyev" wrote: > > > On Aug 14, 2016, at 6:33 AM, Muhammad Hosain Abdollahi Sabet < > mhasabet at gmail.com> wrote: > > > > Hi, > > In Forwarder::onContentStoreMiss I want to track pit entry and it's > Link(if exists) but having called it on NFD_LOG_DEBUG with > pitEntry.getName() or pitEntry.getInterest.getName(), > pitEntry.getInterest.getLink() compiler says: > > > > class std::shared_ptr has no member named 'getName' > > Similar to what compiler says about getInterest. Well > > std::shared_ptr doesn't have getName, as by .getName() > you're trying to get a method of the shared pointer. Try using > ->getInterest and ->getName() instead. > > --- > Alex > > > What is it I've missed? > > > > Thanks, > > Sabet > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xuxiangtian at ucla.edu Mon Aug 15 15:03:28 2016 From: xuxiangtian at ucla.edu (Xuxiang Tian) Date: Mon, 15 Aug 2016 15:03:28 -0700 Subject: [ndnSIM] use of undeclared identifier 'g_log' Message-ID: I have included declaration below #include "ns3/log.h" #include "ns3/ndnSIM/NFD/common.hpp" #include "ns3/ndnSIM/NFD/core/logger.hpp" But when I tried to compile a cpp file including sentence NS_LOG_FUNCTION(this << &interest), I met the following problem. Kindly, please let me know if you have some thoughts ../src/ndnSIM/model/ndn-net-device-link-service.cpp:60:3: error: use of undeclared identifier 'g_log' ./ns3/log-macros-enabled.h:219:11: note: expanded from macro 'NS_LOG_FUNCTION' NS_LOG_APPEND_TIME_PREFIX; \ ^ ./ns3/log-macros-enabled.h:40:7: note: expanded from macro 'NS_LOG_APPEND_TIME_PREFIX' if (g_log.IsEnabled (ns3::LOG_PREFIX_TIME)) \ ^ -- Xuxiang -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Mon Aug 15 21:12:57 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Tue, 16 Aug 2016 08:42:57 +0430 Subject: [ndnSIM] use of undeclared identifier 'g_log' In-Reply-To: References: Message-ID: Hi Xuxiang, For common and logger, go on with: #include "core/logger.hpp" #include "common.hpp" It should do it. Thanks, Sabet ????? ????? ?? ???? On Tue, Aug 16, 2016 at 2:33 AM, Xuxiang Tian wrote: > I have included declaration below > > #include "ns3/log.h" > #include "ns3/ndnSIM/NFD/common.hpp" > #include "ns3/ndnSIM/NFD/core/logger.hpp" > > But when I tried to compile a cpp file including sentence NS_LOG_FUNCTION(this > << &interest), I met the following problem. Kindly, please let me know if > you have some thoughts > > ../src/ndnSIM/model/ndn-net-device-link-service.cpp:60:3: error: use of > undeclared identifier 'g_log' > ./ns3/log-macros-enabled.h:219:11: note: expanded from macro > 'NS_LOG_FUNCTION' > NS_LOG_APPEND_TIME_PREFIX; \ > ^ > ./ns3/log-macros-enabled.h:40:7: note: expanded from macro > 'NS_LOG_APPEND_TIME_PREFIX' > if (g_log.IsEnabled (ns3::LOG_PREFIX_TIME)) \ > ^ > > -- > Xuxiang > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shijunxiao at email.arizona.edu Tue Aug 16 14:16:21 2016 From: shijunxiao at email.arizona.edu (Junxiao Shi) Date: Tue, 16 Aug 2016 14:16:21 -0700 Subject: [ndnSIM] use of undeclared identifier 'g_log' In-Reply-To: References: Message-ID: Hi Xuxiang I guess you are missing NS_LOG_COMPONENT_DEFINE. See https://www.nsnam.org/docs/release/3.22/manual/html/logging.html#how-to-add-logging-to-your-code Yours, Junxiao On Mon, Aug 15, 2016 at 3:03 PM, Xuxiang Tian wrote: > I have included declaration below > > #include "ns3/log.h" > #include "ns3/ndnSIM/NFD/common.hpp" > #include "ns3/ndnSIM/NFD/core/logger.hpp" > > But when I tried to compile a cpp file including sentence NS_LOG_FUNCTION(this > << &interest), I met the following problem. Kindly, please let me know if > you have some thoughts > > ../src/ndnSIM/model/ndn-net-device-link-service.cpp:60:3: error: use of > undeclared identifier 'g_log' > ./ns3/log-macros-enabled.h:219:11: note: expanded from macro > 'NS_LOG_FUNCTION' > NS_LOG_APPEND_TIME_PREFIX; \ > ^ > ./ns3/log-macros-enabled.h:40:7: note: expanded from macro > 'NS_LOG_APPEND_TIME_PREFIX' > if (g_log.IsEnabled (ns3::LOG_PREFIX_TIME)) \ > ^ > > -- > Xuxiang > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhasabet at gmail.com Thu Aug 18 00:45:36 2016 From: mhasabet at gmail.com (Muhammad Hosain Abdollahi Sabet) Date: Thu, 18 Aug 2016 12:15:36 +0430 Subject: [ndnSIM] ndnSIM: Modifying Interest Packet In-Reply-To: <7C07C409-AAE9-44B6-8D4D-F89E17B7A77D@cs.ucla.edu> References: <7C07C409-AAE9-44B6-8D4D-F89E17B7A77D@cs.ucla.edu> Message-ID: Alex, How about setDelegation for LINKS? In ndnSIM 2.1 Interest packet is modified(using setSelectedDelegation) under circumstances and a LOGIC log is generated. How is that happening? buffe::reset()(which I couldn't find it in doxygen) copies an interest and replace it with the first one? Thanks, Sabet ????? ????? ?? ???? On Fri, Aug 12, 2016 at 9:15 PM, Alex Afanasyev wrote: > Hi Pratyush, > > You're correct. I would only restate is a little bit more general and say > that NS3's Packet data structure cannot be modified by the routers. What > you can do is to make a copy of the packet and modify the copy. > > I think the same applies to the tags with some exceptions that I cannot > remember right now. > > -- > Alex > > > On Aug 12, 2016, at 8:32 AM, Pratyush Agnihotri < > pratyushagnihotri03 at gmail.com> wrote: > > > > Hi Alex, > > > > I am trying to modify Interest packet for my custom forwarding strategy > in ndnSIM 1.0. I observed that once the Interest packet (header + payload) > is serialized to the network, it cannot be modified by intermediate nodes > (e.g., in the forwarding strategy). The packet is only deserialized by > relay (or intermediate) nodes and cannot be written (or modified) by them. > I checked the source file ndnSIM/model/wire/ndnsim.cc, Serialize() and > Deserialize() functions for the same. > > > > Is my understanding correct? Or, is there some way to write to buffer > while the packet is in network? > > > > For e.g., FwHopCountTag is the by given as example how to add > information in payload. If one want to increment the hop count and re-write > to payload as follows:- > > > > FwHopCountTag hopCount; > > bool tagExists = packet->RemovePacketTag (hopCount); > > > > if (tagExists) > > { > > hopCount.Increment (); > > packet->AddPacketTag (hopCount); > > } > > > > This tries to increment the hopCount, but it doesn't actually increment > if I print the value. This means even though I re-write to the payload, it > doesn't update the packet. > > > > Please let me know. > > > > -- > > Kind Regards, > > Pratyush Agnihotri > > _______________________________________________ > > 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 ioannoa at scss.tcd.ie Wed Aug 24 07:03:26 2016 From: ioannoa at scss.tcd.ie (ioannoa) Date: Wed, 24 Aug 2016 17:03:26 +0300 Subject: [ndnSIM] List of faces as a packet field Message-ID: Hello everyone, I am looking to have an extra field in my packet - both Interest & ContentObject - that would allow me to keep a list of faces for further use. This field may need to be updated at the Consumer and the Forwarding strategy - exclude the security logic here, please. So, I have updated my Interest & ContentObject classes accordingly as well as the ndnsim.cc file. I have also included some related stuff in the Consumer and Forwarding strategy to be able to update the list along the way. I am trying to have this field as another Name type. However, I do get an error message when I run the simulation: i.e. terminate called after throwing an instance of 'boost::exception_detail::clone_impl' what(): std::exception Eventhough, I have tried to include everything that involves the creation of naming into a try{..}catch{..} case, I still get that message which does not help me finding what am I doing wrong. I have also used gdb to debug and I get no related messages. Any ideas/help/direction on what I am be doing wrong or how to proceed with this? p.s. I am using the v.1 of the ndnSIM code. Thanks anyways, Andriana. From charif.mahmoudi at nist.gov Fri Aug 26 13:12:40 2016 From: charif.mahmoudi at nist.gov (Mahmoudi, Charif (IntlAssoc)) Date: Fri, 26 Aug 2016 20:12:40 +0000 Subject: [ndnSIM] malloc.c: No such file or directory Message-ID: Hi, It seems that I am having a bug on NFD while using ndnSIM as illustrated in the stack below. Anyone have an idea that can help ? Thanks per advance Charif antd at htn1:~/ndn-stack/ndnSIM/ns-3$ ./waf --run="ndn-bigdata" --command-template="gdb --args %s ndn-bigdata" Waf: Entering directory `/home/antd/ndn-stack/ndnSIM/ns-3/build' Waf: Leaving directory `/home/antd/ndn-stack/ndnSIM/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (1.403s) GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/antd/ndn-stack/ndnSIM/ns-3/build/scratch/ndn-bigdata...done. (gdb) run Starting program: /home/antd/ndn-stack/ndnSIM/ns-3/build/scratch/ndn-bigdata ndn-bigdata [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007fffedc44d3c in __GI___libc_free (mem=0x729d78) at malloc.c:2945 2945 malloc.c: No such file or directory. (gdb) info stack #0 0x00007fffedc44d3c in __GI___libc_free (mem=0x729d78) at malloc.c:2945 #1 0x00007ffff13f330e in deallocate (this=, __p=) at /usr/include/c++/4.8/ext/new_allocator.h:110 #2 _M_put_node (this=, __p=) at /usr/include/c++/4.8/bits/stl_tree.h:374 #3 _M_destroy_node (this=, __p=) at /usr/include/c++/4.8/bits/stl_tree.h:422 #4 _M_erase_aux (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_tree.h:1746 #5 erase (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_tree.h:820 #6 erase (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_map.h:697 #7 ns3::MapScheduler::Remove (this=0x729d50, ev=...) at ../src/core/model/map-scheduler.cc:109 #8 0x00007ffff13f6ab7 in ns3::DefaultSimulatorImpl::Remove (this=0x72ab10, id=...) at ../src/core/model/default-simulator-impl.cc:352 #9 0x00007ffff6265e96 in nfd::scheduler::cancel (eventId=std::shared_ptr (count 1, weak 0) 0xc1115b8) at ../src/ndnSIM/NFD/core/scheduler.cpp:61 #10 0x00007ffff62b2fc1 in nfd::rib::RibManager::scheduleActiveFaceFetch (this=this at entry=0x18b2018, timeToWait=...) at ../src/ndnSIM/NFD/rib/rib-manager.cpp:641 #11 0x00007ffff62b4d7b in nfd::rib::RibManager::removeInvalidFaces (this=this at entry=0x18b2018, buffer=std::shared_ptr (count 5, weak 0) 0xc21aa18) at ../src/ndnSIM/NFD/rib/rib-manager.cpp:720 #12 0x00007ffff62b528f in nfd::rib::RibManager::fetchSegments (this=0x18b2018, data=..., buffer=std::shared_ptr (count 5, weak 0) 0xc21aa18) at ../src/ndnSIM/NFD/rib/rib-manager.cpp:679 #13 0x00007ffff62b9837 in operator() (a2=..., a1=..., p=, this=) at /usr/include/boost/bind/mem_fn_template.hpp:280 #14 operator() >, boost::_bi::list2 > (a=, f=..., this=) at /usr/include/boost/bind/bind.hpp:392 #15 operator() (a2=..., a1=..., this=) at /usr/include/boost/bind/bind_template.hpp:76 #16 std::_Function_handler >, boost::_bi::list3, boost::arg<2>, boost::_bi::value > > > >::_M_invoke(std::_Any_data const&, ndn::Interest const&, ndn::Data&) (__functor=..., __args#0=..., __args#1=...) at /usr/include/c++/4.8/functional:2071 #17 0x00007ffff60fc962 in operator() (__args#1=..., __args#0=..., this=0xc1a41d8) at /usr/include/c++/4.8/functional:2471 #18 invokeDataCallback (data=..., this=0xc1a41c8) at ../src/ndnSIM/ndn-cxx/src/detail/pending-interest.hpp:81 #19 ndn::Face::Impl::satisfyPendingInterests (this=0x189faa0, data=...) at ../src/ndnSIM/ndn-cxx/src/detail/face-impl.hpp:140 #20 0x00007ffff13f6c5d in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=this at entry=0x72ab10) at ../src/core/model/default-simulator-impl.cc:149 #21 0x00007ffff13f6cb5 in ns3::DefaultSimulatorImpl::Run (this=0x72ab10) at ../src/core/model/default-simulator-impl.cc:202 #22 0x000000000040a0a7 in ns3::main (argc=, argv=) at ../scratch/ndn-bigdata.cc:210 #23 0x00007fffedbe3f45 in __libc_start_main (main=0x40ade0 , argc=2, argv=0x7fffffffe478, init=, fini=, rtld_fini=, stack_end=0x7fffffffe468) at libc-start.c:287 #24 0x000000000040ae0e in _start () (gdb) -------------- next part -------------- An HTML attachment was scrubbed... URL: From charif.mahmoudi at nist.gov Sun Aug 28 10:02:40 2016 From: charif.mahmoudi at nist.gov (Mahmoudi, Charif (IntlAssoc)) Date: Sun, 28 Aug 2016 17:02:40 +0000 Subject: [ndnSIM] malloc.c: No such file or directory In-Reply-To: References: Message-ID: Hi, I figured out that the optimized mode (./waf configure -d optimized) is causing this issue. Charif From: ndnSIM [mailto:ndnsim-bounces at lists.cs.ucla.edu] On Behalf Of Mahmoudi, Charif (IntlAssoc) Sent: Friday, August 26, 2016 4:13 PM To: ndnsim at lists.cs.ucla.edu Cc: Fabrice MOURLIN Subject: [ndnSIM] malloc.c: No such file or directory Hi, It seems that I am having a bug on NFD while using ndnSIM as illustrated in the stack below. Anyone have an idea that can help ? Thanks per advance Charif antd at htn1:~/ndn-stack/ndnSIM/ns-3$ ./waf --run="ndn-bigdata" --command-template="gdb --args %s ndn-bigdata" Waf: Entering directory `/home/antd/ndn-stack/ndnSIM/ns-3/build' Waf: Leaving directory `/home/antd/ndn-stack/ndnSIM/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (1.403s) GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/antd/ndn-stack/ndnSIM/ns-3/build/scratch/ndn-bigdata...done. (gdb) run Starting program: /home/antd/ndn-stack/ndnSIM/ns-3/build/scratch/ndn-bigdata ndn-bigdata [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007fffedc44d3c in __GI___libc_free (mem=0x729d78) at malloc.c:2945 2945 malloc.c: No such file or directory. (gdb) info stack #0 0x00007fffedc44d3c in __GI___libc_free (mem=0x729d78) at malloc.c:2945 #1 0x00007ffff13f330e in deallocate (this=, __p=) at /usr/include/c++/4.8/ext/new_allocator.h:110 #2 _M_put_node (this=, __p=) at /usr/include/c++/4.8/bits/stl_tree.h:374 #3 _M_destroy_node (this=, __p=) at /usr/include/c++/4.8/bits/stl_tree.h:422 #4 _M_erase_aux (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_tree.h:1746 #5 erase (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_tree.h:820 #6 erase (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_map.h:697 #7 ns3::MapScheduler::Remove (this=0x729d50, ev=...) at ../src/core/model/map-scheduler.cc:109 #8 0x00007ffff13f6ab7 in ns3::DefaultSimulatorImpl::Remove (this=0x72ab10, id=...) at ../src/core/model/default-simulator-impl.cc:352 #9 0x00007ffff6265e96 in nfd::scheduler::cancel (eventId=std::shared_ptr (count 1, weak 0) 0xc1115b8) at ../src/ndnSIM/NFD/core/scheduler.cpp:61 #10 0x00007ffff62b2fc1 in nfd::rib::RibManager::scheduleActiveFaceFetch (this=this at entry=0x18b2018, timeToWait=...) at ../src/ndnSIM/NFD/rib/rib-manager.cpp:641 #11 0x00007ffff62b4d7b in nfd::rib::RibManager::removeInvalidFaces (this=this at entry=0x18b2018, buffer=std::shared_ptr (count 5, weak 0) 0xc21aa18) at ../src/ndnSIM/NFD/rib/rib-manager.cpp:720 #12 0x00007ffff62b528f in nfd::rib::RibManager::fetchSegments (this=0x18b2018, data=..., buffer=std::shared_ptr (count 5, weak 0) 0xc21aa18) at ../src/ndnSIM/NFD/rib/rib-manager.cpp:679 #13 0x00007ffff62b9837 in operator() (a2=..., a1=..., p=, this=) at /usr/include/boost/bind/mem_fn_template.hpp:280 #14 operator() >, boost::_bi::list2 > (a=, f=..., this=) at /usr/include/boost/bind/bind.hpp:392 #15 operator() (a2=..., a1=..., this=) at /usr/include/boost/bind/bind_template.hpp:76 #16 std::_Function_handler >, boost::_bi::list3, boost::arg<2>, boost::_bi::value > > > >::_M_invoke(std::_Any_data const&, ndn::Interest const&, ndn::Data&) (__functor=..., __args#0=..., __args#1=...) at /usr/include/c++/4.8/functional:2071 #17 0x00007ffff60fc962 in operator() (__args#1=..., __args#0=..., this=0xc1a41d8) at /usr/include/c++/4.8/functional:2471 #18 invokeDataCallback (data=..., this=0xc1a41c8) at ../src/ndnSIM/ndn-cxx/src/detail/pending-interest.hpp:81 #19 ndn::Face::Impl::satisfyPendingInterests (this=0x189faa0, data=...) at ../src/ndnSIM/ndn-cxx/src/detail/face-impl.hpp:140 #20 0x00007ffff13f6c5d in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=this at entry=0x72ab10) at ../src/core/model/default-simulator-impl.cc:149 #21 0x00007ffff13f6cb5 in ns3::DefaultSimulatorImpl::Run (this=0x72ab10) at ../src/core/model/default-simulator-impl.cc:202 #22 0x000000000040a0a7 in ns3::main (argc=, argv=) at ../scratch/ndn-bigdata.cc:210 #23 0x00007fffedbe3f45 in __libc_start_main (main=0x40ade0 , argc=2, argv=0x7fffffffe478, init=, fini=, rtld_fini=, stack_end=0x7fffffffe468) at libc-start.c:287 #24 0x000000000040ae0e in _start () (gdb) -------------- next part -------------- An HTML attachment was scrubbed... URL: From gouanyoulin at gmail.com Wed Aug 17 02:43:04 2016 From: gouanyoulin at gmail.com (=?big5?B?qkyrYab2?=) Date: Wed, 17 Aug 2016 09:43:04 -0000 Subject: [ndnSIM] How to add a new field to interest packet in ndn-cxx or nan-SIM Message-ID: <128841FE-36EE-4D40-9193-5E5BCDDFC1A4@gmail.com> To all, I involve this field (ndn/ndnSIM) first time, so I confuse on some problems. As following: 1. How can I add fields in the interest packet? (May you teach me the steps?) 2. And if I add the fields, what things should I pay attention? From ioannoa at tcd.ie Thu Aug 18 05:35:32 2016 From: ioannoa at tcd.ie (Andriana Ioannou) Date: Thu, 18 Aug 2016 12:35:32 -0000 Subject: [ndnSIM] List of faces as a packet field Message-ID: Hello everyone, I am looking to have an extra field in my packet - both Interest & ContentObject - that would allow me to keep a list of faces for further use. This field may need to be updated at the Consumer and the Forwarding strategy - exclude the security logic here, please. So, I have updated my Interest & ContentObject classes accordingly as well as the ndnsim.cc file. I have also included some related stuff in the Consumer and Forwarding strategy to be able to update the list along the way. I am trying to have this field as another Name type. However, I do get an error message when I run the simulation: i.e. terminate called after throwing an instance of 'boost::exception_detail::clone_impl' what(): std::exception Eventhough, I have tried to include everything that involves the creation of naming into a try{..}catch{..} case, I still get that message which does not help me finding what am I doing wrong. I have also used gdb to debug and I get no related messages. Any ideas/help/direction on what I am be doing wrong or how to proceed with this? p.s. I am using the v.1 of the ndnSIM code. Thanks anyways, Andriana. -------------- next part -------------- An HTML attachment was scrubbed... URL: