From wonjunchoi001 at gmail.com Wed Jul 1 02:46:24 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 1 Jul 2015 18:46:24 +0900 Subject: [ndnSIM] How to change packet to ndn::Data or ndn::Interest? In-Reply-To: References: Message-ID: I wish someone can answer to my question. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From narges.mehran at gmail.com Wed Jul 1 08:05:13 2015 From: narges.mehran at gmail.com (Narges Mehran) Date: Wed, 1 Jul 2015 19:35:13 +0430 Subject: [ndnSIM] Simulation lasts just one min Message-ID: Hello everyone, I am using ndnsim 1.0. Although I have increased time of simulation to 10 minutes, But still sending Interests and receiving data lasts just less than one minute. Changing the frequency and number of chucks or other parameters doesn't affect the performance! Any help? U can find my code and topology attached. BTW I have another question. How can we set the chunk size in ndnSIM? Thank you for your kind attention in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # any empty lines and lines starting with '#' symbol is ignored # # The file should contain exactly two sections: router and link, each starting with the corresponding keyword # # router section defines topology nodes and their relative positions (e.g., to use in visualizer) # TOTAL CORE NODES = # TOTAL EDGE NODE = router # each line in this section represents one router and should have the following data # node comment yPos xPos leaf3 NA 100 65 leaf1 NA 73 95 leaf2 NA 27 96 leaf4 NA 60 80 Rtr2 NA 45 10 Rtr3 NA 95 85 Rtr4 NA 25 45 Rtr5 NA 46 58 Rtr6 NA 68 18 Rtr7 NA 90 43 Rtr8 NA 18 86 Rtr9 NA 70 70 Rtr10 NA 35 86 Producer1 NA 100 -30 Producer2 NA 65 -30 Producer3 NA 40 -30 Producer4 NA 20 -10 # Note that `node` can be any string. It is possible to access to the node by name using Names::Find, see examples. # link section defines point-to-point links between nodes and characteristics of these links link # Each line should be in the following format (only first two are required, the rest can be omitted) # srcNode dstNode bandwidth metric delay queue # bandwidth: link bandwidth # metric: routing metric # delay: link delay # queue: MaxPackets for transmission queue on the link (both directions) leaf2 Rtr8 100Mbps 1 5.5ms 20 Rtr10 Rtr8 100Mbps 1 3.80ms 20 Rtr10 Rtr5 100Mbps 1 5.02ms 20 Rtr10 leaf2 100Mbps 1 0.82ms 20 Rtr8 Rtr4 100Mbps 1 1.68ms 20 Rtr2 Rtr4 100Mbps 1 2.99ms 20 Rtr6 Rtr2 100Mbps 1 0.03ms 20 Rtr6 Rtr9 100Mbps 1 0.88ms 20 Rtr5 Rtr9 100Mbps 1 3.82ms 20 leaf4 Rtr5 100Mbps 1 0.32ms 20 Rtr6 Rtr7 100Mbps 1 1.10ms 20 Rtr7 Rtr3 100Mbps 1 2.30ms 20 Rtr7 leaf1 100Mbps 1 2.91ms 20 Rtr9 leaf1 100Mbps 1 3.48ms 20 Rtr5 Rtr2 100Mbps 1 3.77ms 20 Rtr3 leaf1 100Mbps 1 7.36ms 20 leaf3 Rtr3 100Mbps 1 0.36ms 20 leaf3 Rtr7 100Mbps 1 1.16ms 20 Producer4 Rtr6 100Mbps 1 0.02ms 20 Producer4 Rtr2 100Mbps 1 0.1ms 20 Producer4 Rtr7 100Mbps 1 0.2ms 20 Producer2 Rtr6 100Mbps 1 0.02ms 20 Producer2 Rtr2 100Mbps 1 0.1ms 20 Producer2 Rtr7 100Mbps 1 0.2ms 20 Producer3 Rtr6 100Mbps 1 0.02ms 20 Producer3 Rtr2 100Mbps 1 0.1ms 20 Producer3 Rtr7 100Mbps 1 0.2ms 20 Producer1 Rtr6 100Mbps 1 0.02ms 20 Producer1 Rtr2 100Mbps 1 0.1ms 20 Producer1 Rtr7 100Mbps 1 0.2ms 20 -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-AbileneTopology.cc Type: text/x-c++src Size: 7015 bytes Desc: not available URL: From spiros.mastorakis at gmail.com Wed Jul 1 09:37:37 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 1 Jul 2015 09:37:37 -0700 Subject: [ndnSIM] How to change packet to ndn::Data or ndn::Interest? In-Reply-To: References: Message-ID: <414E4B5E-20D7-421D-9AD8-C8A0E43EBA46@gmail.com> Hello, you can use the FromPacket methods: https://github.com/NDN-Routing/ndnSIM/blob/master/model/ndn-ns3.cpp#L45-L49 Example: https://github.com/NDN-Routing/ndnSIM/blob/a5587caa724bbe0db85c8511649faf9e06f97754/model/ndn-net-device-face.cpp#L126 -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 1, 2015, at 2:46 AM, ??? wrote: > > I wish someone can answer to my question. > > 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 Wed Jul 1 09:54:40 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Thu, 2 Jul 2015 01:54:40 +0900 Subject: [ndnSIM] How to change packet to ndn::Data or ndn::Interest? In-Reply-To: <414E4B5E-20D7-421D-9AD8-C8A0E43EBA46@gmail.com> References: <414E4B5E-20D7-421D-9AD8-C8A0E43EBA46@gmail.com> Message-ID: I used it but I got an error. ------------------------------------------------------------------------------------------------------ Undefined symbols for architecture x86_64: "boost::system::system_category()", referenced from: ___cxx_global_var_init3 in red-queue1.cc.1.o "boost::system::generic_category()", referenced from: ___cxx_global_var_init1 in red-queue1.cc.1.o ___cxx_global_var_init2 in red-queue1.cc.1.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ------------------------------------------------------------------------------------------------------ I used below header in RedQueue header. maybe it occurs from ndn-cxx. I don't know how to fix this problem. #include "ns3/ndnSIM/model/ndn-common.hpp" // #include "ns3/ndnSIM/model/ndn-ns3.hpp" Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Wed Jul 1 10:10:46 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Thu, 2 Jul 2015 02:10:46 +0900 Subject: [ndnSIM] Can I use AddRoute in forwarder.cpp? Message-ID: Hello. Can I use AddRoute in forwarder.cpp like this whenever Interest packets arrive? ndn::FibHelper::AddRoute(nodes.Get(0), "/", nodes.Get(1), 10); Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From biozid at outlook.com Wed Jul 1 20:29:24 2015 From: biozid at outlook.com (Biozid Bostami) Date: Wed, 1 Jul 2015 20:29:24 -0700 Subject: [ndnSIM] Intermediate routers don't cache objects Message-ID: Hello Everyone,I am new to ndnsim.I am facing this problem for a quite some time even though i set a content store on each node between the consumer and producer but only the node attached to the consumer is able to cache the items not the other nodes. So, i kindly request to help me this regard. yours faithfully,Biozid Bostami -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Wed Jul 1 21:16:13 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 1 Jul 2015 21:16:13 -0700 Subject: [ndnSIM] Intermediate routers don't cache objects In-Reply-To: References: Message-ID: <3F66AD4C-FDC7-4C5D-B548-83547FE1E430@gmail.com> Hello, in order to assist you in the best possible way, I would like to know how exactly you have figured out that only the closest node to the consumer caches the data packets? Thank you. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 1, 2015, at 8:29 PM, Biozid Bostami wrote: > > Hello Everyone, > I am new to ndnsim.I am facing this problem for a quite some time even though i set a content store on each node between the consumer and producer but only the node attached to the consumer is able to cache the items not the other nodes. So, i kindly request to help me this regard. > > yours faithfully, > Biozid Bostami > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From biozid at outlook.com Thu Jul 2 07:49:41 2015 From: biozid at outlook.com (Biozid Bostami) Date: Thu, 2 Jul 2015 07:49:41 -0700 Subject: [ndnSIM] How to check for a data packet in the neighbor nodes Message-ID: Hello,I am recently looking for a way to check weather a data packet is in the neighboring router nodes of a router or not. So, if anyone can kindly suggest a way it would be of much help to me. yours faithfully,Biozid Bostami -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu Jul 2 09:19:16 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 2 Jul 2015 09:19:16 -0700 Subject: [ndnSIM] How to check for a data packet in the neighbor nodes In-Reply-To: References: Message-ID: <468B002C-0071-46BE-AE2D-C382C53327F1@gmail.com> Hi, do you mean whether a data packet is cached at a router? If so, you could take a look at the following lines of code: https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/forwarder.cpp#L98-L105 Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 2, 2015, at 7:49 AM, Biozid Bostami wrote: > > Hello, > I am recently looking for a way to check weather a data packet is in the neighboring router nodes of a router or not. > So, if anyone can kindly suggest a way it would be of much help to me. > > yours faithfully, > Biozid Bostami > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From alexander.afanasyev at ucla.edu Thu Jul 2 11:17:35 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 2 Jul 2015 11:17:35 -0700 Subject: [ndnSIM] Can I use AddRoute in forwarder.cpp? In-Reply-To: References: Message-ID: <2934DF94-3549-4D2A-90AC-3A57FA80D754@ucla.edu> > On Jul 1, 2015, at 10:10 AM, ??? wrote: > > Hello. > > Can I use AddRoute in forwarder.cpp like this whenever Interest packets arrive? > ndn::FibHelper::AddRoute(nodes.Get(0), "/", nodes.Get(1), 10); Yes, if you want, you can use FibHelper on a per-packet basis. Just be careful, as this potentially can explode FIB size. --- Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Thu Jul 2 11:20:07 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 2 Jul 2015 11:20:07 -0700 Subject: [ndnSIM] How to change packet to ndn::Data or ndn::Interest? In-Reply-To: References: <414E4B5E-20D7-421D-9AD8-C8A0E43EBA46@gmail.com> Message-ID: This specific error tells that you need to link to boost_system library inside the module with red-queue. Having said that, I don't think it would work, as there will be other dependencies which may result in circular dependencies (network module depends on ndnSIM and ndnSIM depends on network module). You can try to make a "copy" of RedQueue (with different name and NS-3 identifier) and put it inside ndnSIM module. This way you would solve linking issue and avoid any circular depenencies. > On Jul 1, 2015, at 9:54 AM, ??? wrote: > > I used it but I got an error. > ------------------------------------------------------------------------------------------------------ > Undefined symbols for architecture x86_64: > > "boost::system::system_category()", referenced from: > > ___cxx_global_var_init3 in red-queue1.cc.1.o > > "boost::system::generic_category()", referenced from: > > ___cxx_global_var_init1 in red-queue1.cc.1.o > > ___cxx_global_var_init2 in red-queue1.cc.1.o > > ld: symbol(s) not found for architecture x86_64 > > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > ------------------------------------------------------------------------------------------------------ > > I used below header in RedQueue header. maybe it occurs from ndn-cxx. I don't know how to fix this problem. > > #include "ns3/ndnSIM/model/ndn-common.hpp" // > > > #include "ns3/ndnSIM/model/ndn-ns3.hpp" > > > > Wonjun, Choi > -------------- 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 spiros.mastorakis at gmail.com Thu Jul 2 11:59:05 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 2 Jul 2015 11:59:05 -0700 Subject: [ndnSIM] Abruptal interrumption of simulation In-Reply-To: References: <028EC386-F68C-49F9-BF93-E9ADF9C6339A@gmail.com> Message-ID: Hi Gustavo, I think that this has to do with the wireless medium itself. Specifically, the nature of the wireless transmission. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 29, 2015, at 1:43 PM, Gustavo Gonzalez wrote: > > Hello Spyridon, > > Regarding to the problem I was facing to check the traffic in the nodes it is partially solved. I recheck the commands used to enable Ascii scripts and now it works in that way but still failing in the python interface when you want to check directly on the node during the running simulation. > > I want to ask you the following. I have added the two wireless devices in infrastructure mode. One of them is a consumer and a wired node is the publisher. My question is why if I don't establish a connection between the two wireless nodes one of them sends interest to the other one? Default routes are enables but even when I used a customized forwarding strategy that still happens. Is that a normal behaviour? > > In the attachment you can find the file. > > Regards. > > On Fri, Jun 26, 2015 at 5:30 PM, Gustavo Gonzalez wrote: > Hello Spyridon, > > I use first the visualizer and the simulation ran without any problem but when I check each node the simulation stopped. Then I used the ASCII command and CS and L3 tracers to check what was travelling through the node but then the simulation crashed again. > > Also, if a run the entire topology based on P2P links I don't have any problem. It is just when P2P and WiFi are present in the same simulation running ndn. > > I appreciate the hints you could give me to solve it. > > Regards. > > Le 26 juin 2015 16:16, "Spyridon (Spyros) Mastorakis" a ?crit : > Hi Gustavo, > > to assist you in the best possible way, I would like to know whether you use the visualizer or the command line logs. Moreover, when you said that you print the trace of a certain node, I guess you use our tracers, right? > > Thank you. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 26, 2015, at 3:34 PM, Gustavo Gonzalez wrote: > > > > Hello, > > > > I have been facing this problem. I have defined the wireless parameters to define an access point. When I check the interest and data messages in the wireless network everything is fine. > > > > When I include and connect to the Access Point a wired device through point to point link the data and interest messages keep going in the network but if I want to check the traffic that is flowing in each one of the nodes where the interest and data messages travel, then the simulation stops. > > > > I have also done only telling to the simulator to save the trace of a certain node in a file but then the simulation stops again. > > > > I suspect that due to a redifinition of the network characteristics of the node when I set the NetDeviceContainer in which I include the access point and the wired node is probably the cause of the problem but I am not sure. > > > > Please could you provide some hints to solve the issue. I have also run the debugger (gdb tool) and it exits normally without precising any error. > > > > Thanks for your support. > > > From wonjunchoi001 at gmail.com Thu Jul 2 19:12:15 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Fri, 3 Jul 2015 11:12:15 +0900 Subject: [ndnSIM] How to change packet to ndn::Data or ndn::Interest? In-Reply-To: References: <414E4B5E-20D7-421D-9AD8-C8A0E43EBA46@gmail.com> Message-ID: Thanks for your comment. Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Thu Jul 2 23:09:45 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Fri, 3 Jul 2015 15:09:45 +0900 Subject: [ndnSIM] Can I use AddRoute in forwarder.cpp? In-Reply-To: <2934DF94-3549-4D2A-90AC-3A57FA80D754@ucla.edu> References: <2934DF94-3549-4D2A-90AC-3A57FA80D754@ucla.edu> Message-ID: Thanks for your comment! Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.ulgelmo at aol.com Fri Jul 3 01:12:47 2015 From: marco.ulgelmo at aol.com (Marco Ulgelmo) Date: Fri, 3 Jul 2015 10:12:47 +0200 Subject: [ndnSIM] How to use SetContent method for Data Packet Message-ID: <2D307736-6B1E-4438-9060-675574C80F62@aol.com> Hello, I?d need to write some very simple information (eg. a string value) into a Data Packet using the Data::setContent method, but i cannot figure how. Could someone provide an example? Thanks and regards, Marco Ulgelmo From spiros.mastorakis at gmail.com Fri Jul 3 10:01:41 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 3 Jul 2015 10:01:41 -0700 Subject: [ndnSIM] How to use SetContent method for Data Packet In-Reply-To: <2D307736-6B1E-4438-9060-675574C80F62@aol.com> References: <2D307736-6B1E-4438-9060-675574C80F62@aol.com> Message-ID: Hi Marco, one of the definitions of the setContent method is the following: Data::setContent(const uint8_t* content, size_t contentLength) In order to use this definition, you may type the following code lines: static const std::string content = "HELLO KITTY?; data->setContent(reinterpret_cast(content.c_str()), content.size()); Hope that this would help you. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 3, 2015, at 1:12 AM, Marco Ulgelmo wrote: > > setContent From liwenjie at cs.queensu.ca Fri Jul 3 14:59:50 2015 From: liwenjie at cs.queensu.ca (Wenjie Li) Date: Fri, 03 Jul 2015 17:59:50 -0400 Subject: [ndnSIM] Question on changing the Interest Packet in the router Message-ID: <559705D6.5070009@cs.queensu.ca> Hi guys, I have a problem when attempt to change the */Interest/* packet in the ndn router. For now, I am still using the 1st version ndnSIM because I am working on some legacy codes I wrote before. I guess my doubt comes from the /*Interest/Data*/ class. Hope it will not be a problem. I add some attributes in class Interest, in addition to the Name, Nonce, etc. When the Interest packet is delivered to some router and is processed by /*OnInterest*/ function in class /*ForwardingStrategy*/, I change the value of the attribute I add. However, according to the debug information, this change does not take effect (the value is set 0) when this Interest packet is forwarded to the next-hop router. I doubt it may have something to do with the /*m_wire*/ in class /*Interest/Data */but I don't understand what it is used for. Could you give me some clues on how to fix it? Thank you very much. Best, Wenjie Li -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadekahn at clarkson.edu Sat Jul 4 17:52:15 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Sat, 4 Jul 2015 20:52:15 -0400 Subject: [ndnSIM] Regard LinkFail issue Message-ID: Hi Alex, I have updated this code and compiled it, however, I couldn't see effect of link down. http://ndnsim.net/2.0/helpers.html#link-control-helper void LinkControlHelper::setErrorRate(Ptr node1, Ptr node2, double errorRate) { std::cout<<"\n setErrorRate called: -> "< ndn1 = node1->GetObject(); Ptr ndn2 = node2->GetObject(); NS_ASSERT(ndn1 != nullptr && ndn2 != nullptr); // iterate over all faces to find the right one for (const auto& face : ndn1->getForwarder()->getFaceTable()) { shared_ptr ndFace = std::dynamic_pointer_cast(face); if (ndFace == nullptr) continue; Ptr nd1 = ndFace->GetNetDevice()->GetObject(); if (nd1 == nullptr) continue; Ptr channel = nd1->GetChannel(); if (channel == nullptr) continue; Ptr ppChannel = DynamicCast(channel); Ptr nd2 = ppChannel->GetDevice(0); if (nd2->GetNode() == node1) nd2 = ppChannel->GetDevice(1); if (nd2->GetNode() == node2) { ObjectFactory errorFactory("ns3::RateErrorModel"); errorFactory.Set("ErrorUnit", StringValue("ERROR_UNIT_PACKET")); errorFactory.Set("ErrorRate", DoubleValue(errorRate)); if (errorRate <= 0) { errorFactory.Set("IsEnabled", BooleanValue(false)); } nd1->SetAttribute("ReceiveErrorModel", PointerValue(errorFactory.Create())); nd2->SetAttribute("ReceiveErrorModel", PointerValue(errorFactory.Create())); return; } } NS_FATAL_ERROR("There is no link to fail between the requested nodes"); } Looks like "ErrorModel" isn't taking place. I am still debugging let me know if I am doing something wrong. Regards, Hitesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Sun Jul 5 10:54:59 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Sun, 5 Jul 2015 19:54:59 +0200 Subject: [ndnSIM] Abruptal interrumption of simulation In-Reply-To: References: <028EC386-F68C-49F9-BF93-E9ADF9C6339A@gmail.com> Message-ID: Hi Spyridon, Thanks for your answer. I will try to dig a bit more about this issue. Regards. On Thu, Jul 2, 2015 at 8:59 PM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Gustavo, > > I think that this has to do with the wireless medium itself. Specifically, > the nature of the wireless transmission. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 29, 2015, at 1:43 PM, Gustavo Gonzalez > wrote: > > > > Hello Spyridon, > > > > Regarding to the problem I was facing to check the traffic in the nodes > it is partially solved. I recheck the commands used to enable Ascii scripts > and now it works in that way but still failing in the python interface when > you want to check directly on the node during the running simulation. > > > > I want to ask you the following. I have added the two wireless devices > in infrastructure mode. One of them is a consumer and a wired node is the > publisher. My question is why if I don't establish a connection between the > two wireless nodes one of them sends interest to the other one? Default > routes are enables but even when I used a customized forwarding strategy > that still happens. Is that a normal behaviour? > > > > In the attachment you can find the file. > > > > Regards. > > > > On Fri, Jun 26, 2015 at 5:30 PM, Gustavo Gonzalez > wrote: > > Hello Spyridon, > > > > I use first the visualizer and the simulation ran without any problem > but when I check each node the simulation stopped. Then I used the ASCII > command and CS and L3 tracers to check what was travelling through the node > but then the simulation crashed again. > > > > Also, if a run the entire topology based on P2P links I don't have any > problem. It is just when P2P and WiFi are present in the same simulation > running ndn. > > > > I appreciate the hints you could give me to solve it. > > > > Regards. > > > > Le 26 juin 2015 16:16, "Spyridon (Spyros) Mastorakis" < > spiros.mastorakis at gmail.com> a ?crit : > > Hi Gustavo, > > > > to assist you in the best possible way, I would like to know whether you > use the visualizer or the command line logs. Moreover, when you said that > you print the trace of a certain node, I guess you use our tracers, right? > > > > Thank you. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > > > On Jun 26, 2015, at 3:34 PM, Gustavo Gonzalez > wrote: > > > > > > Hello, > > > > > > I have been facing this problem. I have defined the wireless > parameters to define an access point. When I check the interest and data > messages in the wireless network everything is fine. > > > > > > When I include and connect to the Access Point a wired device through > point to point link the data and interest messages keep going in the > network but if I want to check the traffic that is flowing in each one of > the nodes where the interest and data messages travel, then the simulation > stops. > > > > > > I have also done only telling to the simulator to save the trace of a > certain node in a file but then the simulation stops again. > > > > > > I suspect that due to a redifinition of the network characteristics of > the node when I set the NetDeviceContainer in which I include the access > point and the wired node is probably the cause of the problem but I am not > sure. > > > > > > Please could you provide some hints to solve the issue. I have also > run the debugger (gdb tool) and it exits normally without precising any > error. > > > > > > Thanks for your support. > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sugang.li718 at gmail.com Sun Jul 5 20:10:30 2015 From: sugang.li718 at gmail.com (Sugang Li) Date: Sun, 5 Jul 2015 23:10:30 -0400 Subject: [ndnSIM] problem with setExclude Message-ID: Hi there, I am working on a service discovery protocol which might use the "Exclude" field in Interest. However, after searching for a while, I coul not find too many examples to show how to use setExclude, and I kept receive segmentation fault when I tried it. In my case, I send a Interest named "/service" to the network, and the potential producers are "/service/1" "/service/2" and "/service/2". So the first time, one Data "/service/1" comes back, and consumer excludes it and send a Interest again. Repeat this until all the producers are discovered. my code is attached here: In header: ...... private: ndn::Exclude &m_exclude; ....... In cpp: ...... m_exclude->appendExclude(ndn::name::Component("postfix_of_disovered_ser"),true); interest->setExclude(*m_exclude); Anyone can give me a example will be appreciated! Thanks, -- *Sugang Li* *Rutgers,the State University of New Jersey* *Department of Electrical and Computer Engineering* -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Sun Jul 5 22:59:43 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 5 Jul 2015 22:59:43 -0700 Subject: [ndnSIM] problem with setExclude In-Reply-To: References: Message-ID: <01BF1961-EDF6-4D27-98CC-4C35F3647E64@gmail.com> Hi, Do you need to set the boolean variable in the arguments of the appendExclude method to true for some reason? Did you try to switch it to false? An example that worked for me is the following: ndn::Exclude m_exclude; m_exclude.appendExclude(ndn::name::Component("postfix_of_disovered_ser"), false); interest->setExclude(m_exclude); Did you use a debugger to check that the runtime error comes indeed from these methods? Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 5, 2015, at 8:10 PM, Sugang Li wrote: > > Hi there, > > I am working on a service discovery protocol which might use the "Exclude" field in Interest. However, after searching for a while, I coul not find too many examples to show how to use setExclude, and I kept receive segmentation fault when I tried it. > > In my case, I send a Interest named "/service" to the network, and the potential producers are "/service/1" "/service/2" and "/service/2". So the first time, one Data "/service/1" comes back, and consumer excludes it and send a Interest again. Repeat this until all the producers are discovered. > > my code is attached here: > In header: > ...... > private: > ndn::Exclude &m_exclude; > ....... > > In cpp: > ...... > m_exclude->appendExclude(ndn::name::Component("postfix_of_disovered_ser"),true); > interest->setExclude(*m_exclude); > > > Anyone can give me a example will be appreciated! > > Thanks, > > -- > Sugang Li > Rutgers,the State University of New Jersey > Department of Electrical and Computer Engineering > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From sugang.li718 at gmail.com Mon Jul 6 11:43:47 2015 From: sugang.li718 at gmail.com (Sugang Li) Date: Mon, 6 Jul 2015 14:43:47 -0400 Subject: [ndnSIM] problem with setExclude In-Reply-To: <01BF1961-EDF6-4D27-98CC-4C35F3647E64@gmail.com> References: <01BF1961-EDF6-4D27-98CC-4C35F3647E64@gmail.com> Message-ID: Thanks Spyridon ! It works now. Regards, On Mon, Jul 6, 2015 at 1:59 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi, > > Do you need to set the boolean variable in the arguments of the > appendExclude method to true for some reason? Did you try to switch it to > false? > > An example that worked for me is the following: > > ndn::Exclude m_exclude; > m_exclude.appendExclude(ndn::name::Component("postfix_of_disovered_ser"), > false); > interest->setExclude(m_exclude); > > Did you use a debugger to check that the runtime error comes indeed from > these methods? > > Hope that this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 5, 2015, at 8:10 PM, Sugang Li wrote: > > > > Hi there, > > > > I am working on a service discovery protocol which might use the > "Exclude" field in Interest. However, after searching for a while, I coul > not find too many examples to show how to use setExclude, and I kept > receive segmentation fault when I tried it. > > > > In my case, I send a Interest named "/service" to the network, and the > potential producers are "/service/1" "/service/2" and "/service/2". So the > first time, one Data "/service/1" comes back, and consumer excludes it and > send a Interest again. Repeat this until all the producers are discovered. > > > > my code is attached here: > > In header: > > ...... > > private: > > ndn::Exclude &m_exclude; > > ....... > > > > In cpp: > > ...... > > > m_exclude->appendExclude(ndn::name::Component("postfix_of_disovered_ser"),true); > > interest->setExclude(*m_exclude); > > > > > > Anyone can give me a example will be appreciated! > > > > Thanks, > > > > -- > > Sugang Li > > Rutgers,the State University of New Jersey > > Department of Electrical and Computer Engineering > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -- *Sugang Li* *Rutgers,the State University of New Jersey* *Department of Electrical and Computer Engineering* -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Mon Jul 6 13:50:38 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Mon, 6 Jul 2015 22:50:38 +0200 Subject: [ndnSIM] Integration of ndn in LTE simulations Message-ID: First of all please receive my greetings. I post some doubts in this opportunity regarding to the integration of ndn with LTE. 1. When I enable the ndn feature in the script and I configure the remoteHost (sort of Internet) as a "producer" and some enbNodes (base stations) as a "consumer" the ndn packets can be visualized without any problem but what it is important to analyse is the ndn traffic among ueNodes and here the problem because as soon as I set a ueNode as a consumer or producer, then the ndn traffic cannot be visualized. What could be the possible cause of this? When I set in the simulation the remoteHost as a producer and one enbNode as a consumer and changed the data payload length to 5000 it immediately showed me a segmentation alarm when I ran ./waf due to the MTU maximum length (1500B) but when I tried the same configuration with the ueNodes any alarm was shown. Do the ueNodes have a different behaviour or configuration that should be taken into account to run a simulation like this? The other thing is that I see the PIT table during the simulating and it can be seen that it is erased after issuing an ndn interest, letting me suppose that probably it received a data message using the reverse path and that's why the entry get erased but I am not sure though. Thanks for the hints that could be provided to solve this issue. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadekahn at clarkson.edu Mon Jul 6 17:40:38 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Mon, 6 Jul 2015 20:40:38 -0400 Subject: [ndnSIM] Many packets in PIT Message-ID: Hello Guys, I am running some experiment, however, due to many packets stuck in PIT hence my other communication kind of blocked. What could be the reasons? Any inputs to debug or trace? Thanks. Regards, Hitesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadekahn at clarkson.edu Mon Jul 6 17:52:33 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Mon, 6 Jul 2015 20:52:33 -0400 Subject: [ndnSIM] Regards Nodes/Simulator packet/traffic information Message-ID: Hi Spyridon/Alex, I am specially looking an information to extract from simulator or node with the following parameters. 1. Total no of specific sent/rcv interest packets (for instance, "/node1/xyz") 2. Total no of specific sent/rcv data packets 3. Total interest/data packets in that time span (simulator) I know ndn::L3RateTracer::InstallAll("rate-trace.txt", Seconds(1.0)), however, we will not get above information from rate-trace. I think if we could print interest/data prefix names along with other information in rate-trace, it would help. Let me know your input. Thank you for your help. Regards, Hitesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Mon Jul 6 18:17:43 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 6 Jul 2015 18:17:43 -0700 Subject: [ndnSIM] Integration of ndn in LTE simulations In-Reply-To: References: Message-ID: <20E5103D-5DFF-4164-9522-341B9F18A302@gmail.com> Hi Gustavo, I am not familiar with the LTE principles, so I will try to answer the NDN-related questions. > 1. When I enable the ndn feature in the script and I configure the remoteHost (sort of Internet) as a "producer" and some enbNodes (base stations) as a "consumer" the ndn packets can be visualized without any problem but what it is important to analyse is the ndn traffic among ueNodes and here the problem because as soon as I set a ueNode as a consumer or producer, then the ndn traffic cannot be visualized. What could be the possible cause of this? The visualizer is a very unstable part of NS3. It is not a part of ndnSIM, thus I am sorry, but I cannot really help you with that. The only thing that we have done is to slightly modify some python bindings to introduce the NDN structures (i.e., CS, PIT, FIB). I would suggest that you send an email to the mailing list related to the visualizer or NS3. > When I set in the simulation the remoteHost as a producer and one enbNode as a consumer and changed the data payload length to 5000 it immediately showed me a segmentation alarm when I ran ./waf due to the MTU maximum length (1500B) but when I tried the same configuration with the ueNodes any alarm was shown. Do the ueNodes have a different behaviour or configuration that should be taken into account to run a simulation like this? What do you mean segmentation alarm? Is this related to NDN or the LTE module of NS3? > > The other thing is that I see the PIT table during the simulating and it can be seen that it is erased after issuing an ndn interest, letting me suppose that probably it received a data message using the reverse path and that's why the entry get erased but I am not sure though. > A PIT entry is being deleted in two cases: 1) When it is satisfied (i.e., the desired data packet has returned) 2) When it is unsatisfied (i.e., a timeout occurs indicating that the desired data packet has not returned) Let me know shall you need anything else. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA From spiros.mastorakis at gmail.com Mon Jul 6 21:37:26 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 6 Jul 2015 21:37:26 -0700 Subject: [ndnSIM] Regards Nodes/Simulator packet/traffic information In-Reply-To: References: Message-ID: <4B97B5C5-7E30-4E70-8305-27974C18F72A@gmail.com> Hi Hitesh, As a formal solution, I would suggest that you extend the existing L3RateTracer with the features that you want. A dirty solution would be to write a special application running on each node that will do this job. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 6, 2015, at 5:52 PM, Hitesh Wadekar wrote: > > Hi Spyridon/Alex, > > I am specially looking an information to extract from simulator or node with the following parameters. > > 1. Total no of specific sent/rcv interest packets (for instance, "/node1/xyz") > 2. Total no of specific sent/rcv data packets > 3. Total interest/data packets in that time span (simulator) > > I know ndn::L3RateTracer::InstallAll("rate-trace.txt", Seconds(1.0)), however, we will not get above information from rate-trace. > > I think if we could print interest/data prefix names along with other information in rate-trace, it would help. > > Let me know your input. > > Thank you for your help. > > Regards, > Hitesh From wadekahn at clarkson.edu Tue Jul 7 05:34:56 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Tue, 7 Jul 2015 08:34:56 -0400 Subject: [ndnSIM] Regards Nodes/Simulator packet/traffic information In-Reply-To: <4B97B5C5-7E30-4E70-8305-27974C18F72A@gmail.com> References: <4B97B5C5-7E30-4E70-8305-27974C18F72A@gmail.com> Message-ID: Thank you Spyridon ! I will check the code. Also, better just print or count on each node :) Regards, Hitesh On Tue, Jul 7, 2015 at 12:37 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Hitesh, > > As a formal solution, I would suggest that you extend the existing > L3RateTracer with the features that you want. > > A dirty solution would be to write a special application running on each > node that will do this job. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 6, 2015, at 5:52 PM, Hitesh Wadekar > wrote: > > > > Hi Spyridon/Alex, > > > > I am specially looking an information to extract from simulator or node > with the following parameters. > > > > 1. Total no of specific sent/rcv interest packets (for instance, > "/node1/xyz") > > 2. Total no of specific sent/rcv data packets > > 3. Total interest/data packets in that time span (simulator) > > > > I know ndn::L3RateTracer::InstallAll("rate-trace.txt", Seconds(1.0)), > however, we will not get above information from rate-trace. > > > > I think if we could print interest/data prefix names along with other > information in rate-trace, it would help. > > > > Let me know your input. > > > > Thank you for your help. > > > > Regards, > > Hitesh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From narges.mehran at gmail.com Tue Jul 7 08:36:41 2015 From: narges.mehran at gmail.com (Narges Mehran) Date: Tue, 7 Jul 2015 20:06:41 +0430 Subject: [ndnSIM] Simulation lasts just one min In-Reply-To: References: Message-ID: Hello everyone, For my second question I found a link (The Payload size that we set, maybe is considered as Chunk's size!. But still any help for my first question?! I need to increase my Simulation Time to at least 100 seconds but at about 50 seconds It stops transmitting! On Wed, Jul 1, 2015 at 7:35 PM, Narges Mehran wrote: > Hello everyone, > > I am using ndnsim 1.0. Although I have increased time of simulation to 10 > minutes, But still sending Interests and receiving data lasts just less > than one minute. Changing the frequency and number of chucks or other > parameters doesn't affect the performance! > Any help? > > U can find my code and topology attached. > > BTW I have another question. How can we set the chunk size in ndnSIM? > > Thank you for your kind attention in advance > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xdlisjtu at gmail.com Tue Jul 7 19:08:16 2015 From: xdlisjtu at gmail.com (Xingdong Li) Date: Wed, 8 Jul 2015 10:08:16 +0800 Subject: [ndnSIM] How to control the sequential number of interest packets? Message-ID: Hi all, I am seeking the function of content store in the network. However, I find that the interest packets generated by the consumer are different, that is, every two interest packets have different sequential number. It causes little use of content store. So is there any method to control the sequential numbers of interest packets repeat in a range, for example, from 1 to 10000. Thanks for reply. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue Jul 7 21:16:02 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 7 Jul 2015 21:16:02 -0700 Subject: [ndnSIM] How to control the sequential number of interest packets? In-Reply-To: References: Message-ID: <42F36FC4-CA8E-478A-87E0-9E4C33B285BA@gmail.com> Hi, to achieve this goal, you will need to modify the consumer application appropriately. Specifically, you will need to modify the ndn-consumer.cpp or/and ndn-consumer.hpp file(s). -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 7, 2015, at 7:08 PM, Xingdong Li wrote: > > Hi all, > > I am seeking the function of content store in the network. However, I find that the interest packets generated by the consumer are different, that is, every two interest packets have different sequential number. It causes little use of content store. > > So is there any method to control the sequential numbers of interest packets repeat in a range, for example, from 1 to 10000. > > Thanks for reply. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From gonzalezcga at gmail.com Wed Jul 8 02:03:15 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Wed, 8 Jul 2015 11:03:15 +0200 Subject: [ndnSIM] Integration of ndn in LTE simulations Message-ID: Hello Spyridon, Thank you very much for the information provided. Regarding your answers, the segmentation alarm was related to the LTE module. I fixed that one already. And regarding the PIT table in the attachment you could verify the two scenarios that I mention. The first one (lena-simple-epc_ueCons_ ueProd.cc) makes reference to two ueNodes which should exchange interest and data packets as NDN establishes but the problem here is that the flow of packets is not happening. The second scenario (lena-simple-epc_enbCons_remoteHostProd.cc) makes reference to a enbNode which forwards interest messages and the remoteHost which provides the data messages according to the interests received. As you can check here the NDN packets are transmitted without problems. My main concern is why I cannot transmit ndn packets over the ueNodes and it is possible over the wired nodes composing the rest of the LTE architecture? Thank you very much for the hints you could provide me. Regards. On Tue, Jul 7, 2015 at 3:17 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Gustavo, > > I am not familiar with the LTE principles, so I will try to answer the > NDN-related questions. > > > 1. When I enable the ndn feature in the script and I configure the > remoteHost (sort of Internet) as a "producer" and some enbNodes (base > stations) as a "consumer" the ndn packets can be visualized without any > problem but what it is important to analyse is the ndn traffic among > ueNodes and here the problem because as soon as I set a ueNode as a > consumer or producer, then the ndn traffic cannot be visualized. What could > be the possible cause of this? > > The visualizer is a very unstable part of NS3. It is not a part of ndnSIM, > thus I am sorry, but I cannot really help you with that. The only thing > that we have done is to slightly modify some python bindings to introduce > the NDN structures (i.e., CS, PIT, FIB). I would suggest that you send an > email to the mailing list related to the visualizer or NS3. > > > When I set in the simulation the remoteHost as a producer and one > enbNode as a consumer and changed the data payload length to 5000 it > immediately showed me a segmentation alarm when I ran ./waf due to the MTU > maximum length (1500B) but when I tried the same configuration with the > ueNodes any alarm was shown. Do the ueNodes have a different behaviour or > configuration that should be taken into account to run a simulation like > this? > > What do you mean segmentation alarm? Is this related to NDN or the LTE > module of NS3? > > > > > The other thing is that I see the PIT table during the simulating and it > can be seen that it is erased after issuing an ndn interest, letting me > suppose that probably it received a data message using the reverse path and > that's why the entry get erased but I am not sure though. > > > > A PIT entry is being deleted in two cases: > > 1) When it is satisfied (i.e., the desired data packet has returned) > 2) When it is unsatisfied (i.e., a timeout occurs indicating that the > desired data packet has not returned) > > Let me know shall you need anything else. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lena-simple-epc_ueCons_ueProd.cc Type: text/x-c++src Size: 8327 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lena-simple-epc_uenNodeCons_remoteHostProd.cc Type: text/x-c++src Size: 8320 bytes Desc: not available URL: From wmaia at ic.uff.br Thu Jul 9 16:32:33 2015 From: wmaia at ic.uff.br (wmaia at ic.uff.br) Date: Thu, 9 Jul 2015 20:32:33 -0300 Subject: [ndnSIM] Using database structure on setting ndnSIM Message-ID: <30300e7cfeb376e6507264740582b6bb.squirrel@manga.ic.uff.br> Hi all, I'm prototyping a database structure for storage and management to users, and establish identified for ID_user and ID_group in a specific application. (for example ChronoChat). (profile users). I'm developing a profile structure on sqlite3. How could integrate this structure to compose, incorporate use in a scenario ndnSIM this application? Thanks, regards, Wilker Maia From navdeep.uniyal at neclab.eu Fri Jul 10 03:25:11 2015 From: navdeep.uniyal at neclab.eu (Navdeep Uniyal) Date: Fri, 10 Jul 2015 10:25:11 +0000 Subject: [ndnSIM] Using NDNSim build failed Message-ID: <12DB5299AAAB1A40B17E72AB76FDA6D8ED436D@PALLENE.office.hd> Hello all, I am not able to build the sample example codes and getting error: " Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): ". Don't know how to resolve this please if someone can help. Best Regards, Navdeep Uniyal -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadekahn at clarkson.edu Fri Jul 10 08:13:06 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Fri, 10 Jul 2015 11:13:06 -0400 Subject: [ndnSIM] Link failure scenario and forwarding failed to send packet with different path Message-ID: Hello Friends, I am experimenting a scenario and here is the steps for it, 1. I configured app as "BestRoute" 2. I created 6 node topology 3. I set many paths in FIB for that destination with different faces. 4. I scheduled LinkFail with the help of LinkControlHelper between two nodes. I checked the code for LinkControlHelper, it is setting error code for that particular (face, channel) which destination has connected. Here is what happening, a. BestRoute picking up same path (linkfailure) to send packet/interest to the destination as it is lowest cost. b. Later I removed that prefix manually, BestRoute is able to pick up next path (different face), but still packet/interest is not able to communicate with the destination. I confused here what to check or test in order to send packet to that destination with different faces. Let me know your point of views or suggestions. Regards, Hitesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Fri Jul 10 10:07:11 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 10 Jul 2015 10:07:11 -0700 Subject: [ndnSIM] Using NDNSim build failed In-Reply-To: <12DB5299AAAB1A40B17E72AB76FDA6D8ED436D@PALLENE.office.hd> References: <12DB5299AAAB1A40B17E72AB76FDA6D8ED436D@PALLENE.office.hd> Message-ID: Hello, in order to better assist you, I would like to have some more details about the errors. Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 10, 2015, at 3:25 AM, Navdeep Uniyal wrote: > > Hello all, > > I am not able to build the sample example codes and getting error: > ? Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): ?. Don?t know how to resolve this please if someone can help. > > > Best Regards, > Navdeep Uniyal > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From navdeep.uniyal at neclab.eu Fri Jul 10 10:20:40 2015 From: navdeep.uniyal at neclab.eu (Navdeep Uniyal) Date: Fri, 10 Jul 2015 17:20:40 +0000 Subject: [ndnSIM] Using NDNSim build failed In-Reply-To: References: <12DB5299AAAB1A40B17E72AB76FDA6D8ED436D@PALLENE.office.hd> Message-ID: <12DB5299AAAB1A40B17E72AB76FDA6D8ED43E2@PALLENE.office.hd> PFA the error I am getting Best Regards, Navdeep Uniyal -----Original Message----- From: Spyridon (Spyros) Mastorakis [mailto:spiros.mastorakis at gmail.com] Sent: Freitag, 10. Juli 2015 19:07 To: Navdeep Uniyal Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] Using NDNSim build failed Hello, in order to better assist you, I would like to have some more details about the errors. Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 10, 2015, at 3:25 AM, Navdeep Uniyal wrote: > > Hello all, > > I am not able to build the sample example codes and getting error: > ? Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): ?. Don?t know how to resolve this please if someone can help. > > > Best Regards, > Navdeep Uniyal > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: error.txt URL: From spiros.mastorakis at gmail.com Fri Jul 10 13:59:34 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 10 Jul 2015 13:59:34 -0700 Subject: [ndnSIM] Using NDNSim build failed In-Reply-To: <12DB5299AAAB1A40B17E72AB76FDA6D8ED43E2@PALLENE.office.hd> References: <12DB5299AAAB1A40B17E72AB76FDA6D8ED436D@PALLENE.office.hd> <12DB5299AAAB1A40B17E72AB76FDA6D8ED43E2@PALLENE.office.hd> Message-ID: <5B0E2810-7009-4A62-9FEE-44815A29A68F@gmail.com> Assuming that you have not modified anything in ndnSIM, could you please fetch the latest commit of the ndn-cxx library, install it and then try to build again? -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 10, 2015, at 10:20 AM, Navdeep Uniyal wrote: > > PFA the error I am getting > > Best Regards, > Navdeep Uniyal > > -----Original Message----- > From: Spyridon (Spyros) Mastorakis [mailto:spiros.mastorakis at gmail.com] > Sent: Freitag, 10. Juli 2015 19:07 > To: Navdeep Uniyal > Cc: ndnsim at lists.cs.ucla.edu > Subject: Re: [ndnSIM] Using NDNSim build failed > > Hello, > > in order to better assist you, I would like to have some more details about the errors. > > Thanks. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > > > > >> On Jul 10, 2015, at 3:25 AM, Navdeep Uniyal wrote: >> >> Hello all, >> >> I am not able to build the sample example codes and getting error: >> ? Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): ?. Don?t know how to resolve this please if someone can help. >> >> >> Best Regards, >> Navdeep Uniyal >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > From spiros.mastorakis at gmail.com Fri Jul 10 14:31:44 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 10 Jul 2015 14:31:44 -0700 Subject: [ndnSIM] Integration of ndn in LTE simulations In-Reply-To: References: Message-ID: Hi Gustavo, as far as I saw in your scenarios, the Interests are being forwarded from the consumer, but are not being delivered to the producer (you can enable the nfd:Forwarder logging component to monitor the Interest/Data exchange process). I am not sure which is the reason for that. It may or may not be related to ndnSIM. Probably there could be something wrong with the IP part of your simulation. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 8, 2015, at 2:03 AM, Gustavo Gonzalez wrote: > > From spiros.mastorakis at gmail.com Fri Jul 10 14:37:03 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 10 Jul 2015 14:37:03 -0700 Subject: [ndnSIM] Link failure scenario and forwarding failed to send packet with different path In-Reply-To: References: Message-ID: <4EE95E95-762A-4E9F-8556-E7B40D816597@gmail.com> Hi Hitesh, probably the Interests are being rejected by a further node across the forwarding path. You could enable the nfd.Forwarder logging component to monitor the Interest/Data exchange: NS_LOG=ndn.Producer:ndn.Consumer:nfd.Forwarder ./waf --run scenario_name -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 10, 2015, at 8:13 AM, Hitesh Wadekar wrote: > > Hello Friends, > > I am experimenting a scenario and here is the steps for it, > > 1. I configured app as "BestRoute" > 2. I created 6 node topology > 3. I set many paths in FIB for that destination with different faces. > 4. I scheduled LinkFail with the help of LinkControlHelper between two nodes. > > I checked the code for LinkControlHelper, it is setting error code for that particular (face, channel) which destination has connected. > > Here is what happening, > a. BestRoute picking up same path (linkfailure) to send packet/interest to the destination as it is lowest cost. > b. Later I removed that prefix manually, BestRoute is able to pick up next path (different face), but still packet/interest is not able to communicate with the destination. > > I confused here what to check or test in order to send packet to that destination with different faces. > > Let me know your point of views or suggestions. > > Regards, > Hitesh From wadekahn at clarkson.edu Sat Jul 11 20:40:38 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Sat, 11 Jul 2015 23:40:38 -0400 Subject: [ndnSIM] Link failure scenario and forwarding failed to send packet with different path In-Reply-To: <4EE95E95-762A-4E9F-8556-E7B40D816597@gmail.com> References: <4EE95E95-762A-4E9F-8556-E7B40D816597@gmail.com> Message-ID: Thanks Spyridon. Let me try and debug it. Regards, Hitesh On Jul 10, 2015 5:37 PM, "Spyridon (Spyros) Mastorakis" < spiros.mastorakis at gmail.com> wrote: > Hi Hitesh, > > probably the Interests are being rejected by a further node across the > forwarding path. > > You could enable the nfd.Forwarder logging component to monitor the > Interest/Data exchange: > > NS_LOG=ndn.Producer:ndn.Consumer:nfd.Forwarder ./waf --run scenario_name > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 10, 2015, at 8:13 AM, Hitesh Wadekar > wrote: > > > > Hello Friends, > > > > I am experimenting a scenario and here is the steps for it, > > > > 1. I configured app as "BestRoute" > > 2. I created 6 node topology > > 3. I set many paths in FIB for that destination with different faces. > > 4. I scheduled LinkFail with the help of LinkControlHelper between two > nodes. > > > > I checked the code for LinkControlHelper, it is setting error code for > that particular (face, channel) which destination has connected. > > > > Here is what happening, > > a. BestRoute picking up same path (linkfailure) to send packet/interest > to the destination as it is lowest cost. > > b. Later I removed that prefix manually, BestRoute is able to pick up > next path (different face), but still packet/interest is not able to > communicate with the destination. > > > > I confused here what to check or test in order to send packet to that > destination with different faces. > > > > Let me know your point of views or suggestions. > > > > Regards, > > Hitesh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Sun Jul 12 02:10:06 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Sun, 12 Jul 2015 11:10:06 +0200 Subject: [ndnSIM] Simulation problem and ndn information Message-ID: Good morning everyone, I have some doubts that I hope you could help me to solve. 1. In the script attached I have configured a very simple scenario with 2 wifi nodes, 1 access point (AP) in infrastructure mode and one p2p node connected to the AP. When I configure the p2pNode as producer and one wireless node as a consumer (wifiStaNode) and configure the output to catch info that flows through the wifiStaNodes then the simulation stops. When I tried to catch the info but in the AP then the simulation doesn't have any problem. Also when I removed the ndn architecture and do the catching of info once again in the wireless nodes (wifiStaNodes) the simulation is also running. I know that I have asked something similar before but I really don't realize what is going wrong during the simulation and I really need to catch the information that travels across the consumers, in this case the wireless nodes. 2. Sometimes the files where the data obtained during the simulation is stored is encoded in utf-16, being this a drawback to do the reading of the files because I have to perform a conversion from utf-16 to utf-8 through iconv command. What could be the reason of this? 3. Regarding to ndn, are already implemented layer 4 mechanisms (such those in TCP) to control the flow of segments in the network containing interest and data messages from ndn? 4. In the example ndn-simple-wifi.cpp , what is the main function of the following command line: ndnHelper.AddNetDeviceFaceCreateCallback (WifiNetDevice::GetTypeId (), MakeCallback (MyNetDeviceFaceCallback)); Thanks in advance for your help. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sim_probl.cc Type: text/x-c++src Size: 5854 bytes Desc: not available URL: From biozid at outlook.com Sun Jul 12 03:29:07 2015 From: biozid at outlook.com (Biozid Bostami) Date: Sun, 12 Jul 2015 03:29:07 -0700 Subject: [ndnSIM] How to consult with neighbor nodes Message-ID: can anyone please help me to get access to the neighboring node ?? i need to implement it in my own customized cache policy. So is there anyone who can help me ??? yours faithfully Biozid Bostami -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Sun Jul 12 11:47:25 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 12 Jul 2015 11:47:25 -0700 Subject: [ndnSIM] How to consult with neighbor nodes In-Reply-To: References: Message-ID: One way I can think of could be to follow the rationale of the global routing helper: https://github.com/NDN-Routing/ndnSIM/blob/master/helper/ndn-global-routing-helper.cpp#L282-L283 However, this way is not very efficient, since for large topologies, the dijkstra algorithm provided by the boost library is not that fast. Another way could be to get access to the NetDevices: https://github.com/NDN-Routing/ndnSIM/blob/master/helper/ndn-stack-helper.cpp#L166-L167 Then you will need to take a look at the NS3 documentation and figure out how you can have access to each link attached to a specific node. If you have access to each link attached to a node, you will be able to learn the second node that this link is attached to as well. The link for the NS3 documentation is the following: https://www.nsnam.org/doxygen/index.html -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 12, 2015, at 3:29 AM, Biozid Bostami wrote: > > can anyone please help me to get access to the neighboring node ?? i need to implement it in my own customized cache policy. > So is there anyone who can help me ??? > > yours faithfully > Biozid Bostami > From narges.mehran at gmail.com Mon Jul 13 01:15:46 2015 From: narges.mehran at gmail.com (Narges Mehran) Date: Mon, 13 Jul 2015 12:45:46 +0430 Subject: [ndnSIM] Simulation lasts just one min In-Reply-To: References: Message-ID: Hello again, I wanted to say that I found my fault! I must have set content size to much larger one; i set the number of chunks to 500 with the payload size of 1024Byte! Hope it helps others. On Tue, Jul 7, 2015 at 8:06 PM, Narges Mehran wrote: > Hello everyone, > > For my second question I found a link > (The > Payload size that we set, maybe is considered as Chunk's size!. > But still any help for my first question?! I need to increase my > Simulation Time to at least 100 seconds but at about 50 seconds It stops > transmitting! > > > On Wed, Jul 1, 2015 at 7:35 PM, Narges Mehran > wrote: > >> Hello everyone, >> >> I am using ndnsim 1.0. Although I have increased time of simulation to 10 >> minutes, But still sending Interests and receiving data lasts just less >> than one minute. Changing the frequency and number of chucks or other >> parameters doesn't affect the performance! >> Any help? >> >> U can find my code and topology attached. >> >> BTW I have another question. How can we set the chunk size in ndnSIM? >> >> Thank you for your kind attention in advance >> > > -- ?? ??? ???????? ?????? ??? ??? ??? ????? ???: "?? ???? ?? ????! ?? ???? ????? ????!" ?? ???? ?? ???? ? ??? ?????? ????: ?? ?? ???? ??? ???? ?? ??????? ??????? ????? ????? ????? ?? ???? "????! ????" ?????? ??? ????... ??????? ?????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From biozid at outlook.com Tue Jul 14 08:52:17 2015 From: biozid at outlook.com (Biozid Bostami) Date: Tue, 14 Jul 2015 08:52:17 -0700 Subject: [ndnSIM] how to check into the cache of neighbor nodes Message-ID: Hello everyone,I am building a cache policy and in my simple scenario is there are 5 nodes connected by point2point channel . for example : A---B---C ---D---E. Now," A "is the consumer and "E" is the producer. I have set content store of different size in "B,C,D" nodes. I have all the neighbors of the nodes say for node "B" which satisfies the requests of node "A". Now, i need to check weather the interest form "A" is already cached in node "C" or not. I need this checking done in the "custome-policy.hpp". how can i do this checking ??? can anyone help ???? yours faithfully,Biozid Bostami -------------- next part -------------- An HTML attachment was scrubbed... URL: From tanzil.eee at gmail.com Wed Jul 15 16:58:11 2015 From: tanzil.eee at gmail.com (Shahrear Tanzil) Date: Wed, 15 Jul 2015 16:58:11 -0700 Subject: [ndnSIM] ndnSIM installation Message-ID: Hi, I am new user of ndnSIM. I followed the procedure mention in http://ndnsim.net/2.0/getting-started.html to install. However, I am receiving the following error message. /usr/bin/ld: /usr/local/lib/libndn-cxx.a(data.cpp.2.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libndn-cxx.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status Thanks in advanced for your help. -- Kind Regards, S.M. Shahrear Tanzil Graduate Research Assistant University of British Columbia -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Thu Jul 16 15:00:18 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Fri, 17 Jul 2015 00:00:18 +0200 Subject: [ndnSIM] Load balancer compilation error Message-ID: Hello, I have been running the ndn-load-balancer example but I got some errors during the compilation process and I don't get exactly why. I attached it to the email. I would appreciate for your help in order to solve this issue. That example could be used as a sort of dispatcher in order to forward interest and receive data from different paths? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-load-balancer error Type: application/octet-stream Size: 931 bytes Desc: not available URL: From spiros.mastorakis at gmail.com Thu Jul 16 15:53:16 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 16 Jul 2015 15:53:16 -0700 Subject: [ndnSIM] Load balancer compilation error In-Reply-To: References: Message-ID: <5D62C9F9-C20F-462F-9C68-76CE5657A61B@gmail.com> Hi Gustavo, This error may be caused by the fact that the strategy that would like to use has not been successfully installed on the desired node. I guess that you are running a modified version of ndnSIM, right? I tried to run this example with a plain version of ndnSIM and it worked fine for me. For more information about this example, you can take a look here: http://ndnsim.net/2.0/examples.html#node-topology-with-custom-nfd-forwarding-strategy -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 16, 2015, at 3:00 PM, Gustavo Gonzalez wrote: > > Hello, > > I have been running the ndn-load-balancer example but I got some errors during the compilation process and I don't get exactly why. I attached it to the email. I would appreciate for your help in order to solve this issue. > > That example could be used as a sort of dispatcher in order to forward interest and receive data from different paths? > > > From spiros.mastorakis at gmail.com Thu Jul 16 16:23:20 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 16 Jul 2015 16:23:20 -0700 Subject: [ndnSIM] ndnSIM installation In-Reply-To: References: Message-ID: <2169A97A-8DEE-4CC1-AEB2-47827541575F@gmail.com> Hello, I would like to know which version of the ndn-cxx library you are using. There were some changes lately in the library and now it is being compiled as a shared library and ndnSIM expects a shared library as well. That is, if you have an older version of ndn-cxx, you may need to fetch the latest commits and install again. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 15, 2015, at 4:58 PM, Shahrear Tanzil wrote: > > Hi, > I am new user of ndnSIM. I followed the procedure mention in http://ndnsim.net/2.0/getting-started.html to install. However, I am receiving the following error message. > > > /usr/bin/ld: /usr/local/lib/libndn-cxx.a(data.cpp.2.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC > /usr/local/lib/libndn-cxx.a: error adding symbols: Bad value > collect2: error: ld returned 1 exit status > > Thanks in advanced for your help. > -- > > Kind Regards, > S.M. Shahrear Tanzil > Graduate Research Assistant > University of British Columbia > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From biozid at outlook.com Thu Jul 16 17:23:34 2015 From: biozid at outlook.com (Biozid Bostami) Date: Thu, 16 Jul 2015 17:23:34 -0700 Subject: [ndnSIM] Query about Find() function Message-ID: hello everyone,First, i thanks everyone who has been replying my previously asked question , i wouldn't have come this far without their help. In response to my previously asked question i encounter a new problem that is : I need to call the ""nfd::Cs::find()"" to check all the attached nodes if they have already cached the same data or not before inserting the data in the ""policy_container"". But, this method needs an "Interest" as it's parameter. I tried to pass the Data by calling "" item->payload ()->GetData() "" still it gives the error. So, can anyone help me out if this problem. yours faithfully,Biozid Bostami -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Fri Jul 17 00:36:08 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Fri, 17 Jul 2015 09:36:08 +0200 Subject: [ndnSIM] Load balancer compilation error In-Reply-To: <5D62C9F9-C20F-462F-9C68-76CE5657A61B@gmail.com> References: <5D62C9F9-C20F-462F-9C68-76CE5657A61B@gmail.com> Message-ID: Hi Spyridon, The version that I have of ndnSIM is the 2.0 and it hasn't been modified. I was checking today and I still getting the same errors. I attach the files related to the example. Maybe the ones that I have are not the same as those that you have. Thanks for the support to solve this issue. Regards. On Fri, Jul 17, 2015 at 12:53 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Gustavo, > > This error may be caused by the fact that the strategy that would like to > use has not been successfully installed on the desired node. I guess that > you are running a modified version of ndnSIM, right? I tried to run this > example with a plain version of ndnSIM and it worked fine for me. > > For more information about this example, you can take a look here: > > > http://ndnsim.net/2.0/examples.html#node-topology-with-custom-nfd-forwarding-strategy > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 16, 2015, at 3:00 PM, Gustavo Gonzalez > wrote: > > > > Hello, > > > > I have been running the ndn-load-balancer example but I got some errors > during the compilation process and I don't get exactly why. I attached it > to the email. I would appreciate for your help in order to solve this issue. > > > > That example could be used as a sort of dispatcher in order to forward > interest and receive data from different paths? > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # topo-load-balancer.txt # # /-----\ # | CSU | # +-----> | HUB | <----+ # | \-----/ | # | | 1Mbps/10ms delay # v v # /------\ /----------\ # | UCLA | | Consumer | # | HUB | | CSU-1 | # +-----> \------/ <-----+ \----------/ # | | # | | # v v # /----------\ /----------\ # | Producer | | Producer | # | UCLA-1 | | UCLA-2 | # \----------/ \----------/ # # any empty lines and lines starting with '#' symbol is ignored # # The file should contain exactly two sections: router and link, each starting with the corresponding keyword # # router section defines topology nodes and their relative positions (e.g., to use in visualizer) router # each line in this section represents one router and should have the following data # node comment yPos xPos CSU-1 NA 3 5 CSU-HUB NA 5 3 UCLA-HUB NA 3 1 UCLA-1 NA 0 0 UCLA-2 NA 0 2 # Note that `node` can be any string. It is possible to access to the node by name using Names::Find, see examples. # link section defines point-to-point links between nodes and characteristics of these links link # Each line should be in the following format (only first two are required, the rest can be omitted) # srcNode dstNode bandwidth metric delay queue # bandwidth: link bandwidth # metric: routing metric # delay: link delay # queue: MaxPackets for transmission queue on the link (both directions) CSU-1 CSU-HUB 1Mbps 1 10ms 10 CSU-HUB UCLA-HUB 1Mbps 1 10ms 10 UCLA-HUB UCLA-1 1Mbps 1 10ms 10 UCLA-HUB UCLA-2 1Mbps 1 10ms 10 -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-load-balancer.cpp Type: text/x-c++src Size: 3957 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: random-load-balancer-strategy.cpp Type: text/x-c++src Size: 3354 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: random-load-balancer-strategy.hpp Type: text/x-c++hdr Size: 2137 bytes Desc: not available URL: From gonzalezcga at gmail.com Fri Jul 17 02:11:37 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Fri, 17 Jul 2015 11:11:37 +0200 Subject: [ndnSIM] Load balancer compilation error In-Reply-To: References: <5D62C9F9-C20F-462F-9C68-76CE5657A61B@gmail.com> Message-ID: Hi Spyridon, I have keep trying to make the ndn-load-balancer works without sucess. I had to change the extension of the files from cpp and hpp to .cc and .h respectively, otherwise the ./waf will produce an error during the compilation. I don't know if this could be one of the possible causes of the problem why I am not able to run the example. I hope you could helpe me with this. Regards. On Fri, Jul 17, 2015 at 9:36 AM, Gustavo Gonzalez wrote: > Hi Spyridon, > > The version that I have of ndnSIM is the 2.0 and it hasn't been modified. > I was checking today and I still getting the same errors. > > I attach the files related to the example. Maybe the ones that I have are > not the same as those that you have. > > Thanks for the support to solve this issue. > > Regards. > > On Fri, Jul 17, 2015 at 12:53 AM, Spyridon (Spyros) Mastorakis < > spiros.mastorakis at gmail.com> wrote: > >> Hi Gustavo, >> >> This error may be caused by the fact that the strategy that would like to >> use has not been successfully installed on the desired node. I guess that >> you are running a modified version of ndnSIM, right? I tried to run this >> example with a plain version of ndnSIM and it worked fine for me. >> >> For more information about this example, you can take a look here: >> >> >> http://ndnsim.net/2.0/examples.html#node-topology-with-custom-nfd-forwarding-strategy >> >> -- >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> PhD Computer Science >> UCLA >> >> >> >> >> > On Jul 16, 2015, at 3:00 PM, Gustavo Gonzalez >> wrote: >> > >> > Hello, >> > >> > I have been running the ndn-load-balancer example but I got some errors >> during the compilation process and I don't get exactly why. I attached it >> to the email. I would appreciate for your help in order to solve this issue. >> > >> > That example could be used as a sort of dispatcher in order to forward >> interest and receive data from different paths? >> > >> > >> > >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Fri Jul 17 03:52:14 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Fri, 17 Jul 2015 12:52:14 +0200 Subject: [ndnSIM] LLC Snap header (NDN-LTE) Message-ID: Hello, In the recent days I have been trying to perform some simulations merging NDN and LTE. During the simulation when I forward ndn packet from the remoteHost (internet) to another wired node composing the LTE topology (i.e enbNode) then the NDN packet is forwarded without any problem. Normal point to point encapsulation for wired links is used. But when I try to send NDN packet from the remoteHost to a ueNode then it is not forwarded. I have been digging a bit on this and I have realized (I think) that probably the problem could be in the ethernet definition of the UE (/lte/model/lte-ue-netdevice.cc) because the ethernet encapsulation LLC Snap is not established in the model, unlike to the followings: ns3::CsmaNetDevice::AddHeader() , ns3::WifiNetDevice::Send() , ns3::WimaxNetDevice::Send() , ns3::WaveNetDevice::Send() , ns3::WifiNetDevice::SendFrom() , ns3::AlohaNoackNetDevice::SendFrom() , ns3::FdNetDevice::SendFrom() , ns3::WimaxNetDevice::SendFrom() , and ns3::WaveNetDevice::SendX() . (see doxygen https://www.nsnam.org/doxygen/classns3_1_1_llc_snap_header.html#adc3a72c9b120896a43507a75ed48f88a) So my question is: 1. Do you think is possible to implement this encapsulation for UE in LTE models in order to make it compatible with another sort of packet, in this case NDN packets? . If it does, could you provide me some hints in order to try to do it? Thank you very much for the support you could provide me. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Fri Jul 17 14:32:27 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 17 Jul 2015 14:32:27 -0700 Subject: [ndnSIM] Query about Find() function In-Reply-To: References: Message-ID: <493DCF2C-9EE8-42FF-AD76-B6E1F455994F@gmail.com> Hi, one way to do that is to create a method with functionality similar to the ?nfd::Cs::find()? method, which will accept a name as the input argument. Then, you can imitate the part of the functionality that you need as provided in the current find method. You can take a look here: http://ndnsim.net/2.0/doxygen/cs_8cpp_source.html#l00407 -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 16, 2015, at 5:23 PM, Biozid Bostami wrote: > > hello everyone, > First, i thanks everyone who has been replying my previously asked question , i wouldn't have come this far without their help. In response to my previously asked question i encounter a new problem that is : I need to call the ""nfd::Cs::find()"" to check all the attached nodes if they have already cached the same data or not before inserting the data in the ""policy_container"". > > But, this method needs an "Interest" as it's parameter. I tried to pass the Data by calling "" item->payload ()->GetData() "" still it gives the error. So, can anyone help me out if this problem. > > yours faithfully, > Biozid Bostami > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Fri Jul 17 14:33:25 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 17 Jul 2015 14:33:25 -0700 Subject: [ndnSIM] Load balancer compilation error In-Reply-To: References: <5D62C9F9-C20F-462F-9C68-76CE5657A61B@gmail.com> Message-ID: <8C37D075-8B7D-48BF-A5F3-1C88DCE66952@gmail.com> Hi Gustavo, I installed the latest version of ndn-cxx and compiled the latest version of ndnSIM. This example works fine for me. I am sorry, but I cannot reproduce the error. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 17, 2015, at 2:11 AM, Gustavo Gonzalez wrote: > > Hi Spyridon, > > I have keep trying to make the ndn-load-balancer works without sucess. I had to change the extension of the files from cpp and hpp to .cc and .h respectively, otherwise the ./waf will produce an error during the compilation. I don't know if this could be one of the possible causes of the problem why I am not able to run the example. > > I hope you could helpe me with this. > > Regards. > > > On Fri, Jul 17, 2015 at 9:36 AM, Gustavo Gonzalez wrote: > Hi Spyridon, > > The version that I have of ndnSIM is the 2.0 and it hasn't been modified. I was checking today and I still getting the same errors. > > I attach the files related to the example. Maybe the ones that I have are not the same as those that you have. > > Thanks for the support to solve this issue. > > Regards. > > On Fri, Jul 17, 2015 at 12:53 AM, Spyridon (Spyros) Mastorakis wrote: > Hi Gustavo, > > This error may be caused by the fact that the strategy that would like to use has not been successfully installed on the desired node. I guess that you are running a modified version of ndnSIM, right? I tried to run this example with a plain version of ndnSIM and it worked fine for me. > > For more information about this example, you can take a look here: > > http://ndnsim.net/2.0/examples.html#node-topology-with-custom-nfd-forwarding-strategy > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 16, 2015, at 3:00 PM, Gustavo Gonzalez wrote: > > > > Hello, > > > > I have been running the ndn-load-balancer example but I got some errors during the compilation process and I don't get exactly why. I attached it to the email. I would appreciate for your help in order to solve this issue. > > > > That example could be used as a sort of dispatcher in order to forward interest and receive data from different paths? > > > > > > > > > From spiros.mastorakis at gmail.com Fri Jul 17 14:39:52 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 17 Jul 2015 14:39:52 -0700 Subject: [ndnSIM] LLC Snap header (NDN-LTE) In-Reply-To: References: Message-ID: <1D3FC673-B9A6-4623-8F37-2889B3475EC8@gmail.com> Hi Gustavo, the short answer to your question is yes. NDN can run over anything that forwards datagrams and anything can run over NDN. If I were you, I would take a look at the NS3 documentation and check how IP packets are being encapsulated into frames (e.g., in the case of Ethernet) and vice versa. The way to do that in your case should be similar. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 17, 2015, at 3:52 AM, Gustavo Gonzalez wrote: > > Hello, > > In the recent days I have been trying to perform some simulations merging NDN and LTE. During the simulation when I forward ndn packet from the remoteHost (internet) to another wired node composing the LTE topology (i.e enbNode) then the NDN packet is forwarded without any problem. Normal point to point encapsulation for wired links is used. > > But when I try to send NDN packet from the remoteHost to a ueNode then it is not forwarded. I have been digging a bit on this and I have realized (I think) that probably the problem could be in the ethernet definition of the UE (/lte/model/lte-ue-netdevice.cc) because the ethernet encapsulation LLC Snap is not established in the model, unlike to the followings: > > ns3::CsmaNetDevice::AddHeader(), ns3::WifiNetDevice::Send(), ns3::WimaxNetDevice::Send(), ns3::WaveNetDevice::Send(), ns3::WifiNetDevice::SendFrom(), ns3::AlohaNoackNetDevice::SendFrom(), ns3::FdNetDevice::SendFrom(), ns3::WimaxNetDevice::SendFrom(), and ns3::WaveNetDevice::SendX(). (see doxygen https://www.nsnam.org/doxygen/classns3_1_1_llc_snap_header.html#adc3a72c9b120896a43507a75ed48f88a) > > So my question is: > > 1. Do you think is possible to implement this encapsulation for UE in LTE models in order to make it compatible with another sort of packet, in this case NDN packets? . If it does, could you provide me some hints in order to try to do it? > > Thank you very much for the support you could provide me. > > Regards. From tanzil.eee at gmail.com Mon Jul 20 16:38:54 2015 From: tanzil.eee at gmail.com (Shahrear Tanzil) Date: Mon, 20 Jul 2015 16:38:54 -0700 Subject: [ndnSIM] Simulating Content Centric Networking by ndnSIM Message-ID: Dear sir, I am a new user of ndnSIM. I would like to simulate content centric networking for my research. I am wondering whether ndnSIM can be used for CCN. -- Kind Regards, S.M. Shahrear Tanzil Graduate Research Assistant University of British Columbia -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Mon Jul 20 16:47:38 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 20 Jul 2015 16:47:38 -0700 Subject: [ndnSIM] Simulating Content Centric Networking by ndnSIM In-Reply-To: References: Message-ID: <8BB32C44-7A83-4438-B1A9-E824AC975E47@gmail.com> Hi, the short answer is yes. As you can see on our website as well, the following thing is mentioned: "NS-3 based Named Data Networking (NDN) simulator ndnSIM 2.0: NDN, CCN, CCNx, content centric networks" -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 20, 2015, at 4:38 PM, Shahrear Tanzil wrote: > > Dear sir, > > I am a new user of ndnSIM. I would like to simulate content centric networking for my research. I am wondering whether ndnSIM can be used for CCN. > > -- > > Kind Regards, > S.M. Shahrear Tanzil > Graduate Research Assistant > University of British Columbia > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From rozhnova.natalya at gmail.com Tue Jul 21 12:49:39 2015 From: rozhnova.natalya at gmail.com (rozhnova.natalya at gmail.com) Date: Tue, 21 Jul 2015 21:49:39 +0200 Subject: [ndnSIM] Adding a new field to Data packet in ndn-cxx Message-ID: <1520BCF0-2BE2-4F45-8515-A567945E5616@gmail.com> [Sorry for multiple reception] Hi all, I'm using the last version of ndn-cxx and ndnSIM and would like to add a new field to Data packet. The steps I'm following (that what I used to successfully modify Interest packets): 1. I added my field to tlv.hpp 2. I created a variable in data.hpp 3. I created the get and set functions 4. I modified wireEncode and wireDecode and put my new field between signature and content respecting the reverse encoding. I compile and run the library as follows: ./waf configure --enable-shared --disable-static (I don't do it every time, I cite it here just to show everything I've done) ./waf sudo ./waf install Then I run any scenario, suppose it is ndn-simple.cpp And I get the following error: ns3-dev-ndn-simple-debug: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) old_end & pagemask) == 0)' failed. in debug mode I get: (gdb) bt #0 0x00007fffeae1f107 in __GI_raise (sig=sig at entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007fffeae204e8 in __GI_abort () at abort.c:89 #2 0x00007fffeae620fd in __malloc_assert ( assertion=assertion at entry=0x7fffeaf50518 "(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offs"..., file=file at entry=0x7fffeaf4c005 "malloc.c", line=line at entry=2372, function=function at entry=0x7fffeaf4c383 <__func__.11292> "sysmalloc") at malloc.c:293 #3 0x00007fffeae64de0 in sysmalloc (av=0x7fffeb18d620 , nb=4112) at malloc.c:2369 #4 _int_malloc (av=0x7fffeb18d620 , bytes=4096) at malloc.c:3800 #5 0x00007fffeae66070 in __GI___libc_malloc (bytes=4096) at malloc.c:2891 #6 0x00007fffeb711d78 in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #7 0x00007ffff587c868 in __gnu_cxx::new_allocator::allocate (this=0x7fffffffbb37, __n=4096) at /usr/include/c++/4.9/ext/new_allocator.h:104 #8 0x00007ffff58cc735 in boost::iostreams::detail::basic_buffer >::basic_buffer (this=0x7fffffffbb70, buffer_size=4096) at /usr/include/boost/iostreams/detail/buffer.hpp:146 #9 0x00007ffff58cb7c5 in boost::iostreams::detail::basic_buffer >::resize (this=0x7fffffffbf28, buffer_size=4096) at /usr/include/boost/iostreams/detail/buffer.hpp:162 #10 0x00007ffff58ca431 in boost::iostreams::detail::indirect_streambuf, std::allocator, boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., buffer_size=4096, pback_size=4) at /usr/include/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:183 #11 0x00007ffff58c8534 in boost::iostreams::stream_buffer, std::allocator, boost::iostreams::output>::open_impl (this=0x7fffffffbec8, t=..., buffer_size=-1, pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:106 #12 0x00007ffff58c63b6 in boost::iostreams::stream_buffer, std::allocator, boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., buffer_size=-1, pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:94 #13 0x00007ffff58c38ff in boost::iostreams::stream, std::allocator >::open_impl (this=0x7fffffffbec0, dev=..., buffer_size=-1, pback_size=-1) at /usr/include/boost/iostreams/stream.hpp:143 #14 0x00007ffff58c0bc0 in boost::iostreams::stream, std::allocator >::open (this=0x7fffffffbec0, t=..., buffer_size=-1, pback_size=-1) at /usr/include/boost/iostreams/stream.hpp:128 #15 0x00007ffff58bdad2 in ndn::OBufferStream::OBufferStream (this=0x7fffffffbec0, __in_chrg=, __vtt_parm=) at /usr/local/include/ndn-cxx/encoding/buffer-stream.hpp:89 #16 0x00007ffff58c1cd3 in ndn::io::load (is=..., encoding=ndn::io::BASE_64) at /usr/local/include/ndn-cxx/util/io.hpp:65 It's already being two days that I don't understand what's wrong... Can anybody help me please? thanks in advance, Best, Natalya From spiros.mastorakis at gmail.com Tue Jul 21 19:49:11 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 21 Jul 2015 19:49:11 -0700 Subject: [ndnSIM] Adding a new field to Data packet in ndn-cxx In-Reply-To: <1520BCF0-2BE2-4F45-8515-A567945E5616@gmail.com> References: <1520BCF0-2BE2-4F45-8515-A567945E5616@gmail.com> Message-ID: <007C3048-70D1-4D4C-BBB4-D1945F7D956F@gmail.com> Hi Natalya, it is hard to say what is wrong by just looking the output in debug mode. I suspect, though, that something is wrong in the wireEncode and wireDecode methods (this is a common place that developers? bugs occur). If I were you, I would try to slightly modify or extend the ndn-cxx unit-tests of the Data class. Then I would configure ndn-cxx including the --with-tests flag and compile it. Finally, I would check if I could pass the unit tests. I think that the unit tests would help you resolve the issue. Let me know if you need anything else. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 21, 2015, at 12:49 PM, rozhnova.natalya at gmail.com wrote: > > [Sorry for multiple reception] > > Hi all, > > I'm using the last version of ndn-cxx and ndnSIM and would like to add a new field to Data packet. > The steps I'm following (that what I used to successfully modify Interest packets): > 1. I added my field to tlv.hpp > 2. I created a variable in data.hpp > 3. I created the get and set functions > 4. I modified wireEncode and wireDecode and put my new field between signature and content respecting the reverse encoding. > > I compile and run the library as follows: > ./waf configure --enable-shared --disable-static (I don't do it every time, I cite it here just to show everything I've done) > ./waf > sudo ./waf install > > Then I run any scenario, suppose it is ndn-simple.cpp > > And I get the following error: > ns3-dev-ndn-simple-debug: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) old_end & pagemask) == 0)' failed. > > in debug mode I get: > > (gdb) bt > #0 0x00007fffeae1f107 in __GI_raise (sig=sig at entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 > #1 0x00007fffeae204e8 in __GI_abort () at abort.c:89 > #2 0x00007fffeae620fd in __malloc_assert ( > assertion=assertion at entry=0x7fffeaf50518 "(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offs"..., file=file at entry=0x7fffeaf4c005 "malloc.c", line=line at entry=2372, function=function at entry=0x7fffeaf4c383 <__func__.11292> "sysmalloc") at malloc.c:293 > #3 0x00007fffeae64de0 in sysmalloc (av=0x7fffeb18d620 , nb=4112) at malloc.c:2369 > #4 _int_malloc (av=0x7fffeb18d620 , bytes=4096) at malloc.c:3800 > #5 0x00007fffeae66070 in __GI___libc_malloc (bytes=4096) at malloc.c:2891 > #6 0x00007fffeb711d78 in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > #7 0x00007ffff587c868 in __gnu_cxx::new_allocator::allocate (this=0x7fffffffbb37, __n=4096) at /usr/include/c++/4.9/ext/new_allocator.h:104 > #8 0x00007ffff58cc735 in boost::iostreams::detail::basic_buffer >::basic_buffer (this=0x7fffffffbb70, buffer_size=4096) at /usr/include/boost/iostreams/detail/buffer.hpp:146 > #9 0x00007ffff58cb7c5 in boost::iostreams::detail::basic_buffer >::resize (this=0x7fffffffbf28, buffer_size=4096) at /usr/include/boost/iostreams/detail/buffer.hpp:162 > #10 0x00007ffff58ca431 in boost::iostreams::detail::indirect_streambuf, std::allocator, boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., > buffer_size=4096, pback_size=4) at /usr/include/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:183 > #11 0x00007ffff58c8534 in boost::iostreams::stream_buffer, std::allocator, boost::iostreams::output>::open_impl (this=0x7fffffffbec8, t=..., buffer_size=-1, > pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:106 > #12 0x00007ffff58c63b6 in boost::iostreams::stream_buffer, std::allocator, boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., buffer_size=-1, > pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:94 > #13 0x00007ffff58c38ff in boost::iostreams::stream, std::allocator >::open_impl (this=0x7fffffffbec0, dev=..., buffer_size=-1, pback_size=-1) > at /usr/include/boost/iostreams/stream.hpp:143 > #14 0x00007ffff58c0bc0 in boost::iostreams::stream, std::allocator >::open (this=0x7fffffffbec0, t=..., buffer_size=-1, pback_size=-1) > at /usr/include/boost/iostreams/stream.hpp:128 > #15 0x00007ffff58bdad2 in ndn::OBufferStream::OBufferStream (this=0x7fffffffbec0, __in_chrg=, __vtt_parm=) at /usr/local/include/ndn-cxx/encoding/buffer-stream.hpp:89 > #16 0x00007ffff58c1cd3 in ndn::io::load (is=..., encoding=ndn::io::BASE_64) at /usr/local/include/ndn-cxx/util/io.hpp:65 > > It's already being two days that I don't understand what's wrong... Can anybody help me please? > > thanks in advance, > Best, > Natalya > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From f.fideles at gmail.com Tue Jul 21 21:00:57 2015 From: f.fideles at gmail.com (Felipe Fideles) Date: Tue, 21 Jul 2015 23:00:57 -0500 Subject: [ndnSIM] ndnSIM/LTE Message-ID: Is it possible to use the ndnSIM with the LTE module of ns3? Regards, -- -- Felipe Fideles MS in Electrical Engineering Columbia University in the City of New York +1 (347) 791-3621 -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue Jul 21 21:14:27 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 21 Jul 2015 21:14:27 -0700 Subject: [ndnSIM] ndnSIM/LTE In-Reply-To: References: Message-ID: Hi Felipe, the short answer to your question is yes. Even though I have not tried to do so, we have users that have done so. If you take a look at the mailing list archives within the last two months, you will find some related simulation scenarios created by some users. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 21, 2015, at 9:00 PM, Felipe Fideles wrote: > > Is it possible to use the ndnSIM with the LTE module of ns3? > > Regards, > > > -- > -- > Felipe Fideles > MS in Electrical Engineering > Columbia University in the City of New York > +1 (347) 791-3621 > > > > _______________________________________________ > 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 Jul 22 23:23:07 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 23 Jul 2015 14:23:07 +0800 Subject: [ndnSIM] problem with setExclude In-Reply-To: <01BF1961-EDF6-4D27-98CC-4C35F3647E64@gmail.com> References: <01BF1961-EDF6-4D27-98CC-4C35F3647E64@gmail.com> Message-ID: <4513F260-F459-4706-BAFC-103B96655639@ucla.edu> Hi Sugan, I would answer your question slightly differently. You should not directly use setExclude, as it is more or less an implementation detail. Exclude class proves a few methods to be used instead: excludeOne, excludeRange, excludeBefore, and excludeAfter. --- Alex > On Jul 6, 2015, at 1:59 PM, Spyridon (Spyros) Mastorakis wrote: > > Hi, > > Do you need to set the boolean variable in the arguments of the appendExclude method to true for some reason? Did you try to switch it to false? > > An example that worked for me is the following: > > ndn::Exclude m_exclude; > m_exclude.appendExclude(ndn::name::Component("postfix_of_disovered_ser"), false); > interest->setExclude(m_exclude); > > Did you use a debugger to check that the runtime error comes indeed from these methods? > > Hope that this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Jul 5, 2015, at 8:10 PM, Sugang Li wrote: >> >> Hi there, >> >> I am working on a service discovery protocol which might use the "Exclude" field in Interest. However, after searching for a while, I coul not find too many examples to show how to use setExclude, and I kept receive segmentation fault when I tried it. >> >> In my case, I send a Interest named "/service" to the network, and the potential producers are "/service/1" "/service/2" and "/service/2". So the first time, one Data "/service/1" comes back, and consumer excludes it and send a Interest again. Repeat this until all the producers are discovered. >> >> my code is attached here: >> In header: >> ...... >> private: >> ndn::Exclude &m_exclude; >> ....... >> >> In cpp: >> ...... >> m_exclude->appendExclude(ndn::name::Component("postfix_of_disovered_ser"),true); >> interest->setExclude(*m_exclude); >> >> >> Anyone can give me a example will be appreciated! >> >> Thanks, >> >> -- >> Sugang Li >> Rutgers,the State University of New Jersey >> Department of Electrical and Computer Engineering >> _______________________________________________ >> 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 From rozhnova.natalya at gmail.com Thu Jul 23 07:43:10 2015 From: rozhnova.natalya at gmail.com (Natalya Rozhnova) Date: Thu, 23 Jul 2015 16:43:10 +0200 Subject: [ndnSIM] Adding a new field to Data packet in ndn-cxx In-Reply-To: <007C3048-70D1-4D4C-BBB4-D1945F7D956F@gmail.com> References: <1520BCF0-2BE2-4F45-8515-A567945E5616@gmail.com> <007C3048-70D1-4D4C-BBB4-D1945F7D956F@gmail.com> Message-ID: Hi Spyridon, Thanks for your reply. I was sure about what I'm doing but didn't get the things work... Finally, I should return to the previous version of ndn-cxx 0.3.1 and implement my field there. That works perfectly. I don't know what did the authors change in the version 0.3.3 that makes impossible to add a field to data packet in the same way as in version 0.3.1... A little advice and demand from customer side: that would be great if the authors could add a short tutorial on how to add a custom field to a packet (like it was in ndnSIM 1.0 on adding custom strategies etc., very useful and clear) in order to let people work with the implementation in a correct way and do not look for how to hack the things. Best, Natalya 2015-07-22 4:49 GMT+02:00 Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com>: > Hi Natalya, > > it is hard to say what is wrong by just looking the output in debug mode. > I suspect, though, that something is wrong in the wireEncode and wireDecode > methods (this is a common place that developers? bugs occur). > > If I were you, I would try to slightly modify or extend the ndn-cxx > unit-tests of the Data class. Then I would configure ndn-cxx including the > --with-tests flag and compile it. Finally, I would check if I could pass > the unit tests. I think that the unit tests would help you resolve the > issue. > > Let me know if you need anything else. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 21, 2015, at 12:49 PM, rozhnova.natalya at gmail.com wrote: > > > > [Sorry for multiple reception] > > > > Hi all, > > > > I'm using the last version of ndn-cxx and ndnSIM and would like to add a > new field to Data packet. > > The steps I'm following (that what I used to successfully modify > Interest packets): > > 1. I added my field to tlv.hpp > > 2. I created a variable in data.hpp > > 3. I created the get and set functions > > 4. I modified wireEncode and wireDecode and put my new field between > signature and content respecting the reverse encoding. > > > > I compile and run the library as follows: > > ./waf configure --enable-shared --disable-static (I don't do it every > time, I cite it here just to show everything I've done) > > ./waf > > sudo ./waf install > > > > Then I run any scenario, suppose it is ndn-simple.cpp > > > > And I get the following error: > > ns3-dev-ndn-simple-debug: malloc.c:2372: sysmalloc: Assertion `(old_top > == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - > __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || > ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof > (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 > *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) > old_end & pagemask) == 0)' failed. > > > > in debug mode I get: > > > > (gdb) bt > > #0 0x00007fffeae1f107 in __GI_raise (sig=sig at entry=6) at > ../nptl/sysdeps/unix/sysv/linux/raise.c:56 > > #1 0x00007fffeae204e8 in __GI_abort () at abort.c:89 > > #2 0x00007fffeae620fd in __malloc_assert ( > > assertion=assertion at entry=0x7fffeaf50518 "(old_top == (((mbinptr) > (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct > malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= > (unsigned long)((((__builtin_offs"..., file=file at entry=0x7fffeaf4c005 > "malloc.c", line=line at entry=2372, function=function at entry=0x7fffeaf4c383 > <__func__.11292> "sysmalloc") at malloc.c:293 > > #3 0x00007fffeae64de0 in sysmalloc (av=0x7fffeb18d620 , > nb=4112) at malloc.c:2369 > > #4 _int_malloc (av=0x7fffeb18d620 , bytes=4096) at > malloc.c:3800 > > #5 0x00007fffeae66070 in __GI___libc_malloc (bytes=4096) at > malloc.c:2891 > > #6 0x00007fffeb711d78 in operator new(unsigned long) () from > /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > > #7 0x00007ffff587c868 in __gnu_cxx::new_allocator::allocate > (this=0x7fffffffbb37, __n=4096) at > /usr/include/c++/4.9/ext/new_allocator.h:104 > > #8 0x00007ffff58cc735 in boost::iostreams::detail::basic_buffer std::allocator >::basic_buffer (this=0x7fffffffbb70, > buffer_size=4096) at /usr/include/boost/iostreams/detail/buffer.hpp:146 > > #9 0x00007ffff58cb7c5 in boost::iostreams::detail::basic_buffer std::allocator >::resize (this=0x7fffffffbf28, buffer_size=4096) at > /usr/include/boost/iostreams/detail/buffer.hpp:162 > > #10 0x00007ffff58ca431 in > boost::iostreams::detail::indirect_streambuf std::char_traits, std::allocator, > boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., > > buffer_size=4096, pback_size=4) at > /usr/include/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:183 > > #11 0x00007ffff58c8534 in > boost::iostreams::stream_buffer std::char_traits, std::allocator, > boost::iostreams::output>::open_impl (this=0x7fffffffbec8, t=..., > buffer_size=-1, > > pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:106 > > #12 0x00007ffff58c63b6 in > boost::iostreams::stream_buffer std::char_traits, std::allocator, > boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., buffer_size=-1, > > pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:94 > > #13 0x00007ffff58c38ff in > boost::iostreams::stream std::char_traits, std::allocator >::open_impl > (this=0x7fffffffbec0, dev=..., buffer_size=-1, pback_size=-1) > > at /usr/include/boost/iostreams/stream.hpp:143 > > #14 0x00007ffff58c0bc0 in > boost::iostreams::stream std::char_traits, std::allocator >::open (this=0x7fffffffbec0, > t=..., buffer_size=-1, pback_size=-1) > > at /usr/include/boost/iostreams/stream.hpp:128 > > #15 0x00007ffff58bdad2 in ndn::OBufferStream::OBufferStream > (this=0x7fffffffbec0, __in_chrg=, __vtt_parm= out>) at /usr/local/include/ndn-cxx/encoding/buffer-stream.hpp:89 > > #16 0x00007ffff58c1cd3 in ndn::io::load > (is=..., encoding=ndn::io::BASE_64) at > /usr/local/include/ndn-cxx/util/io.hpp:65 > > > > It's already being two days that I don't understand what's wrong... Can > anybody help me please? > > > > thanks in advance, > > Best, > > Natalya > > > > _______________________________________________ > > 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 Jul 23 08:57:14 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 23 Jul 2015 08:57:14 -0700 Subject: [ndnSIM] Adding a new field to Data packet in ndn-cxx In-Reply-To: References: <1520BCF0-2BE2-4F45-8515-A567945E5616@gmail.com> <007C3048-70D1-4D4C-BBB4-D1945F7D956F@gmail.com> Message-ID: Hi Natalya, I do not think that we made any significant changes on the transition from ndn-cxx 0.3.1 to 0.3.3. In any case, I would need to take a careful look at the release notes and the commits. I would like to thank you for your suggestion! It is very useful for us to get such feedback from our users! I hope that we will be able to write and publish this tutorial soon. Please let me know shall you need anything else. Thanks again! -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 23, 2015, at 7:43 AM, Natalya Rozhnova wrote: > > Hi Spyridon, > > Thanks for your reply. I was sure about what I'm doing but didn't get the things work... Finally, I should return to the previous version of ndn-cxx 0.3.1 and implement my field there. That works perfectly. I don't know what did the authors change in the version 0.3.3 that makes impossible to add a field to data packet in the same way as in version 0.3.1... > A little advice and demand from customer side: that would be great if the authors could add a short tutorial on how to add a custom field to a packet (like it was in ndnSIM 1.0 on adding custom strategies etc., very useful and clear) in order to let people work with the implementation in a correct way and do not look for how to hack the things. > > Best, > Natalya > > 2015-07-22 4:49 GMT+02:00 Spyridon (Spyros) Mastorakis : > Hi Natalya, > > it is hard to say what is wrong by just looking the output in debug mode. I suspect, though, that something is wrong in the wireEncode and wireDecode methods (this is a common place that developers? bugs occur). > > If I were you, I would try to slightly modify or extend the ndn-cxx unit-tests of the Data class. Then I would configure ndn-cxx including the --with-tests flag and compile it. Finally, I would check if I could pass the unit tests. I think that the unit tests would help you resolve the issue. > > Let me know if you need anything else. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 21, 2015, at 12:49 PM, rozhnova.natalya at gmail.com wrote: > > > > [Sorry for multiple reception] > > > > Hi all, > > > > I'm using the last version of ndn-cxx and ndnSIM and would like to add a new field to Data packet. > > The steps I'm following (that what I used to successfully modify Interest packets): > > 1. I added my field to tlv.hpp > > 2. I created a variable in data.hpp > > 3. I created the get and set functions > > 4. I modified wireEncode and wireDecode and put my new field between signature and content respecting the reverse encoding. > > > > I compile and run the library as follows: > > ./waf configure --enable-shared --disable-static (I don't do it every time, I cite it here just to show everything I've done) > > ./waf > > sudo ./waf install > > > > Then I run any scenario, suppose it is ndn-simple.cpp > > > > And I get the following error: > > ns3-dev-ndn-simple-debug: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) old_end & pagemask) == 0)' failed. > > > > in debug mode I get: > > > > (gdb) bt > > #0 0x00007fffeae1f107 in __GI_raise (sig=sig at entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 > > #1 0x00007fffeae204e8 in __GI_abort () at abort.c:89 > > #2 0x00007fffeae620fd in __malloc_assert ( > > assertion=assertion at entry=0x7fffeaf50518 "(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offs"..., file=file at entry=0x7fffeaf4c005 "malloc.c", line=line at entry=2372, function=function at entry=0x7fffeaf4c383 <__func__.11292> "sysmalloc") at malloc.c:293 > > #3 0x00007fffeae64de0 in sysmalloc (av=0x7fffeb18d620 , nb=4112) at malloc.c:2369 > > #4 _int_malloc (av=0x7fffeb18d620 , bytes=4096) at malloc.c:3800 > > #5 0x00007fffeae66070 in __GI___libc_malloc (bytes=4096) at malloc.c:2891 > > #6 0x00007fffeb711d78 in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > > #7 0x00007ffff587c868 in __gnu_cxx::new_allocator::allocate (this=0x7fffffffbb37, __n=4096) at /usr/include/c++/4.9/ext/new_allocator.h:104 > > #8 0x00007ffff58cc735 in boost::iostreams::detail::basic_buffer >::basic_buffer (this=0x7fffffffbb70, buffer_size=4096) at /usr/include/boost/iostreams/detail/buffer.hpp:146 > > #9 0x00007ffff58cb7c5 in boost::iostreams::detail::basic_buffer >::resize (this=0x7fffffffbf28, buffer_size=4096) at /usr/include/boost/iostreams/detail/buffer.hpp:162 > > #10 0x00007ffff58ca431 in boost::iostreams::detail::indirect_streambuf, std::allocator, boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., > > buffer_size=4096, pback_size=4) at /usr/include/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:183 > > #11 0x00007ffff58c8534 in boost::iostreams::stream_buffer, std::allocator, boost::iostreams::output>::open_impl (this=0x7fffffffbec8, t=..., buffer_size=-1, > > pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:106 > > #12 0x00007ffff58c63b6 in boost::iostreams::stream_buffer, std::allocator, boost::iostreams::output>::open (this=0x7fffffffbec8, t=..., buffer_size=-1, > > pback_size=-1) at /usr/include/boost/iostreams/stream_buffer.hpp:94 > > #13 0x00007ffff58c38ff in boost::iostreams::stream, std::allocator >::open_impl (this=0x7fffffffbec0, dev=..., buffer_size=-1, pback_size=-1) > > at /usr/include/boost/iostreams/stream.hpp:143 > > #14 0x00007ffff58c0bc0 in boost::iostreams::stream, std::allocator >::open (this=0x7fffffffbec0, t=..., buffer_size=-1, pback_size=-1) > > at /usr/include/boost/iostreams/stream.hpp:128 > > #15 0x00007ffff58bdad2 in ndn::OBufferStream::OBufferStream (this=0x7fffffffbec0, __in_chrg=, __vtt_parm=) at /usr/local/include/ndn-cxx/encoding/buffer-stream.hpp:89 > > #16 0x00007ffff58c1cd3 in ndn::io::load (is=..., encoding=ndn::io::BASE_64) at /usr/local/include/ndn-cxx/util/io.hpp:65 > > > > It's already being two days that I don't understand what's wrong... Can anybody help me please? > > > > thanks in advance, > > Best, > > Natalya > > > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > From gonzalezcga at gmail.com Thu Jul 23 13:02:00 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Thu, 23 Jul 2015 22:02:00 +0200 Subject: [ndnSIM] Tracing error Message-ID: Hello, I have been trying to catch the ndn data flow into an ascii file. When the simulation is only wireless based (it means only access points and clients) then it works fine but as soon as I add another node and establish a p2p connection between the AP and that new node then the simulation crashes and shows me the following message: terminate called after throwing an instance of 'ndn::tlv::Error' what(): Empty buffer during TLV processing What is the main reason of this? I suppose that there is a sort of incompatibility to try to catch ndn packets coming from the wireless clients as soon as I add a wired node into the simulation. I appreciate your comments. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: prueba2.cc Type: text/x-c++src Size: 4856 bytes Desc: not available URL: From spiros.mastorakis at gmail.com Thu Jul 23 13:50:12 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 23 Jul 2015 13:50:12 -0700 Subject: [ndnSIM] Tracing error In-Reply-To: References: Message-ID: <98C6EF62-3B99-4806-8253-BC9034D0F74A@gmail.com> Hi Gustavo, the reason for this behavior is that during the parsing of an expected TLV field (buffer), this field is totally empty. The expected result would be this field not to be empty. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 23, 2015, at 1:02 PM, Gustavo Gonzalez wrote: > > Hello, > > I have been trying to catch the ndn data flow into an ascii file. > > When the simulation is only wireless based (it means only access points and clients) then it works fine but as soon as I add another node and establish a p2p connection between the AP and that new node then the simulation crashes and shows me the following message: > > terminate called after throwing an instance of 'ndn::tlv::Error' > what(): Empty buffer during TLV processing > > What is the main reason of this? > > I suppose that there is a sort of incompatibility to try to catch ndn packets coming from the wireless clients as soon as I add a wired node into the simulation. > > I appreciate your comments. > > Regards. > From gonzalezcga at gmail.com Thu Jul 23 14:01:21 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Thu, 23 Jul 2015 23:01:21 +0200 Subject: [ndnSIM] Tracing error In-Reply-To: <98C6EF62-3B99-4806-8253-BC9034D0F74A@gmail.com> References: <98C6EF62-3B99-4806-8253-BC9034D0F74A@gmail.com> Message-ID: Hi Spyridon, And is there any possible way to fix it? How could I fill that empty field? Regards. On Thu, Jul 23, 2015 at 10:50 PM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Gustavo, > > the reason for this behavior is that during the parsing of an expected TLV > field (buffer), this field is totally empty. The expected result would be > this field not to be empty. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 23, 2015, at 1:02 PM, Gustavo Gonzalez > wrote: > > > > Hello, > > > > I have been trying to catch the ndn data flow into an ascii file. > > > > When the simulation is only wireless based (it means only access points > and clients) then it works fine but as soon as I add another node and > establish a p2p connection between the AP and that new node then the > simulation crashes and shows me the following message: > > > > terminate called after throwing an instance of 'ndn::tlv::Error' > > what(): Empty buffer during TLV processing > > > > What is the main reason of this? > > > > I suppose that there is a sort of incompatibility to try to catch ndn > packets coming from the wireless clients as soon as I add a wired node into > the simulation. > > > > I appreciate your comments. > > > > Regards. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Wed Jul 29 07:44:42 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Wed, 29 Jul 2015 16:44:42 +0200 Subject: [ndnSIM] Load balance problem Message-ID: Hi everyone, I have been trying to test the example that is included in the ndnSIM folder based on load balancing but I am a bit confused because the result that I am getting from the simulation does not approximate to what it should do that is randomly distribute interests and data messages. In the simulation only one producer is in charge on receive and forward data messages. I would appreciate if you could provide me some hints to solve this issue. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-load-balancer.cc Type: text/x-c++src Size: 4125 bytes Desc: not available URL: From spiros.mastorakis at gmail.com Wed Jul 29 09:05:54 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 29 Jul 2015 09:05:54 -0700 Subject: [ndnSIM] Load balance problem In-Reply-To: References: Message-ID: <34F74F6E-6E65-4535-ABFE-20602345BD5B@gmail.com> Hello Gustavo, the default example as it is included under the examples folder simulates the behavior of a random load balancer. That is, the Interest forwarding towards the two producers are being performed in a random fashion. I would suggest that you increase the duration of the simulation, so that you can observe this behavior. Probably you could also use the weighted load balancer strategy (credits to Steve DiBenedetto from Colorado State University): https://github.com/dibenede/ndn-tutorial-gec21/tree/master/strategy-templates Just copy the source code under the NFD/daemon/fw directory of ndnSIM and enable it in your simulation scenario. Please let me know shall you need anything else. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 29, 2015, at 7:44 AM, Gustavo Gonzalez wrote: > > From gonzalezcga at gmail.com Wed Jul 29 14:05:18 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Wed, 29 Jul 2015 23:05:18 +0200 Subject: [ndnSIM] Load balance problem In-Reply-To: <34F74F6E-6E65-4535-ABFE-20602345BD5B@gmail.com> References: <34F74F6E-6E65-4535-ABFE-20602345BD5B@gmail.com> Message-ID: Hi Spyridon, Finally I fixed it. I had some problems with some boost libraries and I think that was producing the compilation problem. Thank you very much for your attention. Regards. On Wed, Jul 29, 2015 at 6:05 PM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hello Gustavo, > > the default example as it is included under the examples folder simulates > the behavior of a random load balancer. That is, the Interest forwarding > towards the two producers are being performed in a random fashion. I would > suggest that you increase the duration of the simulation, so that you can > observe this behavior. > > Probably you could also use the weighted load balancer strategy (credits > to Steve DiBenedetto from Colorado State University): > > > https://github.com/dibenede/ndn-tutorial-gec21/tree/master/strategy-templates > > Just copy the source code under the NFD/daemon/fw directory of ndnSIM and > enable it in your simulation scenario. > > Please let me know shall you need anything else. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jul 29, 2015, at 7:44 AM, Gustavo Gonzalez > wrote: > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Fri Jul 31 01:46:20 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Fri, 31 Jul 2015 10:46:20 +0200 Subject: [ndnSIM] TLV error during catching data. Message-ID: Hi everyone, I write in this opportunity due to a recurrent error that I am facing every time that I tried to catch data packets in an ndn simulation using the Ascii method of capturing. When I try to merge ndn with wifi and then try to catch the packets for later analysis the following error is shown: *terminate called after throwing an instance of 'ndn::tlv::Error' what(): Empty buffer during TLV processing* Yesterday I used gdb in order to try to figure out what was happening (the results are attached to the email) but I really can't understand a possible way how to solve it. I would really appreciate if you could help me with this. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tlv error Type: application/octet-stream Size: 3860 bytes Desc: not available URL: From wadekahn at clarkson.edu Fri Jul 31 09:13:12 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Fri, 31 Jul 2015 12:13:12 -0400 Subject: [ndnSIM] FIB Updating Issue Message-ID: Hi Team, Recently, I encounter an issue related FIB, please advice if it issue or not. I am updating FIB with :*FibHelper::AddRoute()"* function, where we got a scenario, I am adding FIB multiple entries for same face id with different cost. however, I observed that it is being overwritten with the previous one. For instance, face id 256 can take me to /prefix1 with cost '5' for one path and same face id 256 can take me to /prefix1 with cost '7' but different path. In above case, face cost '5' is overwritten by face cost '6 as id is same. Let me know is there anyways to fix this or I missing anything. Thank you, Regards, Hitesh Wadekar -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Fri Jul 31 18:07:37 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 31 Jul 2015 18:07:37 -0700 Subject: [ndnSIM] TLV error during catching data. In-Reply-To: References: Message-ID: <2703DB40-C35F-4B14-81FB-ADDA7DE766A0@gmail.com> Hello Gustavo, As we discussed some days ago, I would personally identify the specific code line that this error occurs and attempt to capture the packets right before this line. Probably I would also use this example as a baseline: https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-simple-with-pcap.cpp In this way, I would be able to dump the traffic in a pcap trace and use wireshark to inspect the captured packets. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jul 31, 2015, at 1:46 AM, Gustavo Gonzalez wrote: > > Hi everyone, > > I write in this opportunity due to a recurrent error that I am facing every time that I tried to catch data packets in an ndn simulation using the Ascii method of capturing. > > When I try to merge ndn with wifi and then try to catch the packets for later analysis the following error is shown: > > terminate called after throwing an instance of 'ndn::tlv::Error' > what(): Empty buffer during TLV processing > > Yesterday I used gdb in order to try to figure out what was happening (the results are attached to the email) but I really can't understand a possible way how to solve it. > > I would really appreciate if you could help me with this. > > Regards. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim