From hishamfarahat at gmail.com Wed Jun 3 19:28:56 2015 From: hishamfarahat at gmail.com (Hisham Farahat) Date: Wed, 3 Jun 2015 22:28:56 -0400 Subject: [ndnSIM] ndnSIM Performance In-Reply-To: <00FF109B-76DC-4EB0-A8FA-1E644374A381@ucla.edu> References: <00FF109B-76DC-4EB0-A8FA-1E644374A381@ucla.edu> Message-ID: Hi, Yeah, I run my code in optimized mode. On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev < alexander.afanasyev at ucla.edu> wrote: > Hi Hisham, > > I hope you?re compiling and running code in optimized mode (./waf > configure -d optimized). > > In optimized mode, ~Ptr() should just decrement a counter, in debug mode > there could be more complex things happening, though I?m not sure why would > it take 50% of time. > > ? > Alex > > > On May 2, 2015, at 6:59 PM, Hisham Farahat > wrote: > > > > Hi, > > I'm trying to profile ndnSIM 1.0, because My simulation scenarios are > taking too long to finish. This was the results: > > CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated) > > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a > unit mask of 0x00 (No unit mask) count 100000 > > samples % app name symbol name > > 610808 49.4017 ndn ns3::Ptr::~Ptr() > > 268401 21.7081 python2.7 /usr/bin/python2.7 > > 107633 8.7053 ndn ns3::Ptr::~Ptr() > > 76617 6.1967 ndn ns3::Ptr::~Ptr() > > 23462 1.8976 ndn ns3::Ptr::~Ptr() > > ..... > > > > is this normal? 50% on ~Ptr() ? > > Am i doing something wrong? > > > > Regards, > > -- Hisham Farahat -------------- next part -------------- An HTML attachment was scrubbed... URL: From hishamfarahat at gmail.com Wed Jun 3 20:28:13 2015 From: hishamfarahat at gmail.com (Hisham Farahat) Date: Wed, 3 Jun 2015 23:28:13 -0400 Subject: [ndnSIM] ndnSIM Performance In-Reply-To: References: <00FF109B-76DC-4EB0-A8FA-1E644374A381@ucla.edu> Message-ID: One more thing. Why python2.7 is taking ~20%? On Wed, Jun 3, 2015 at 10:28 PM, Hisham Farahat wrote: > Hi, > Yeah, I run my code in optimized mode. > > On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev < > alexander.afanasyev at ucla.edu> wrote: > >> Hi Hisham, >> >> I hope you?re compiling and running code in optimized mode (./waf >> configure -d optimized). >> >> In optimized mode, ~Ptr() should just decrement a counter, in debug mode >> there could be more complex things happening, though I?m not sure why would >> it take 50% of time. >> >> ? >> Alex >> >> > On May 2, 2015, at 6:59 PM, Hisham Farahat >> wrote: >> > >> > Hi, >> > I'm trying to profile ndnSIM 1.0, because My simulation scenarios are >> taking too long to finish. This was the results: >> > CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated) >> > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a >> unit mask of 0x00 (No unit mask) count 100000 >> > samples % app name symbol name >> > 610808 49.4017 ndn ns3::Ptr::~Ptr() >> > 268401 21.7081 python2.7 /usr/bin/python2.7 >> > 107633 8.7053 ndn ns3::Ptr::~Ptr() >> > 76617 6.1967 ndn ns3::Ptr::~Ptr() >> > 23462 1.8976 ndn ns3::Ptr::~Ptr() >> > ..... >> > >> > is this normal? 50% on ~Ptr() ? >> > Am i doing something wrong? >> > >> > Regards, >> >> > > > -- > Hisham Farahat > -- Hisham Farahat -------------- next part -------------- An HTML attachment was scrubbed... URL: From bouabidmarwan at gmail.com Thu Jun 4 07:48:23 2015 From: bouabidmarwan at gmail.com (Bouabid Marwan) Date: Thu, 4 Jun 2015 15:48:23 +0100 Subject: [ndnSIM] ndnSIM Message-ID: HI, i'm trying to run a v-ndn simulation .the main point of my simulation is to prove that CCN is better than ip.which i plan to do by comparing file download in both approach.how can i implement the file download ? i will appreciate any help i can get i'm new to ndnSIM and i'm new to simulation. Please also is it possible to share some simulation examples with me? Thanks a lot, -- Bouabid Marwan Mast?re de recherche System d'information intelligent ISIGK. tel:+21655724177 From support at hackerearth.net Thu Jun 4 22:51:17 2015 From: support at hackerearth.net ('HackerEarth') Date: Fri, 05 Jun 2015 05:51:17 -0000 Subject: [ndnSIM] Ram Dinesh J P has invited you to join HackerEarth Message-ID: <20150605055117.4159.16918@ip-10-148-19-29.ap-southeast-1.compute.internal> True -------------- next part -------------- An HTML attachment was scrubbed... URL: From kanin at inl.ics.keio.ac.jp Fri Jun 5 06:57:57 2015 From: kanin at inl.ics.keio.ac.jp (Kanin Assantachai) Date: Fri, 05 Jun 2015 22:57:57 +0900 Subject: [ndnSIM] Sending extra interest to just neighbor nodes Message-ID: <5571AAE5.2020909@inl.ics.keio.ac.jp> Dear Alex / Spyridon, Hopefully you are not too busy at this time. I just discovered that the code I used to create extra interest for the same content to be sent to neighbor nodes did not work as expected. Originally after the PropagateInterest (inFace, interest, pitEntry); code of OnInterest function of ndn-forwarding-strategy.cc, I added these lines with the hope to send another interest for the same content, but with different scope and outgoing face: interest->SetScope (2); pitEntry->ClearOutgoing (); pitEntry->AddOutgoing (); PropagateInterest (inFace, interest, pitEntry); However after this part of code is called, the second call to PropagateInterest function (the last line that I added) detects that it is a retransmission of interest instead, and I get the -SIGIOT error. (I checked the isRetransmitted boolean value in the PropagateInterest function and found this error) To fix this, I first thought about creating another pitEntry requesting the same content, but with the new outgoing face and interest scope. However, I believe this is not possible because PIT table should not contain multiple entries for the same content request. Then I thought about modifying the existing pitEntry for that particular content by adding another outgoing face to its list of outgoing face. However, I am not sure what the simulator will behave when it finds multiple outgoing faces in its list. Will the node send interests to all possible faces in the list of outgoing faces? Also by using this method, the PropagateInterest function will be called only once to send interests with different scopes. If this is the correct approach, how can I set different scopes for interests which are to be forwarded to different outgoing faces? Or if you can suggest other approaches, I will gladly follow those suggestions as well. Your kind help is appreciated. Kanin Assantachai From spiros.mastorakis at gmail.com Fri Jun 5 11:07:54 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 5 Jun 2015 11:07:54 -0700 Subject: [ndnSIM] ndnSIM In-Reply-To: References: Message-ID: <35D9E47D-2147-49FA-9C4D-8BAE6C3B02BC@gmail.com> Hi Bouabid, In general, our ndnSIM website provides some helpful information for new users: http://ndnsim.net/2.0/ To get familiar with NDN simulations, you may take a look at the simulation examples on the ndnSIM website: http://ndnsim.net/2.0/examples.html The next step could be to run these simulation examples and see what will happen. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 4, 2015, at 7:48 AM, Bouabid Marwan wrote: > > HI, > i'm trying to run a v-ndn simulation .the main point of my simulation > is to prove that CCN is better than ip.which i plan to do by comparing > file download in both approach.how can i implement the file > download ? > i will appreciate any help i can get i'm new to ndnSIM and i'm new to > simulation. > > Please also is it possible to share some simulation examples with me? > > > Thanks a lot, > -- > Bouabid Marwan > Mast?re de recherche System d'information intelligent ISIGK. > tel:+21655724177 > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From anilj.mailing at gmail.com Fri Jun 5 21:48:05 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Fri, 5 Jun 2015 21:48:05 -0700 Subject: [ndnSIM] ndnSIM and SDN Controller simulation. Message-ID: Hi, In one of my simulation scenarios, I need a SDN controller function to program the NFD e.g. to add prefixes to the FIB. Is this capability currently available in ndnSIM or may be in ns-3, which can be used in ndnSIM application logic? Please also suggest alternatives. Thanks, /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Sun Jun 7 11:59:39 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Sun, 7 Jun 2015 20:59:39 +0200 Subject: [ndnSIM] NDN with Wifi in Infrastructure Mode Message-ID: I have been doing simulations based on the example of Wifi in infrastructure mode, adding the ndn modules developed by your team and I get the following errors after compilation. I would also like to ask you if it is possible to run simulation of LTE based on NDN. I ask you this because I also have been running some scripts including both technologies but it gives me errors associated with the ndn module, saying that ndnHelpers cannot we recognized. I appreciate all the help and hints you could provide me in order to fix this issues. Best regards. ---------------------------------------------------------------------------------------------------------------------------------------------------------------- [1914/2070] cxx: scratch/wifi-simple-infra.cc -> build/scratch/wifi-simple-infra.cc.17.o ../scratch/wifi-simple-infra-v2.cc: In function ?int ns3::main(int, char**)?: ../scratch/wifi-simple-infra-v2.cc:215:41: error: overloaded function with no contextual type information ../scratch/wifi-simple-infra-v2.cc:215:41: error: base operand of ?->? is not a pointer ../scratch/wifi-simple-infra-v2.cc: At global scope: ../scratch/wifi-simple-infra-v2.cc:224:1: error: expected ?}? at end of input Waf: Leaving directory `/root/ndnSIM/ns-3/build' Build failed -> task in 'wifi-simple-infra-v2' failed (exit status 1): {task 170263564: cxx wifi-simple-infra-v2.cc -> wifi-simple-infra-v2.cc.8.o} ['/usr/bin/g++', '-std=c++0x', '-O0', '-ggdb', '-g3', '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-fPIC', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-Isrc/ndnSIM', '-I../src/ndnSIM', '-Isrc/ndnSIM/NFD', '-I../src/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/daemon', '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/core', '-I../src/ndnSIM/NFD/core', '-I/usr/local/include', '-I/usr/include', '-I/usr/include/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_NDN_CXX=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DNDEBUG', '../scratch/wifi-simple-infra-v2.cc', '-c', '-o', 'scratch/wifi-simple-infra-v2.cc.8.o'] root at gonzalezcga-VirtualBox:~/ndnSIM/ns-3# ------------------------------------------------------------------------------------------------------------------------------------------------------------------- #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/mobility-module.h" #include "ns3/config-store-module.h" #include "ns3/wifi-module.h" #include "ns3/internet-module.h" #include "ns3/ndnSIM-module.h" #include #include #include #include NS_LOG_COMPONENT_DEFINE ("WifiSimpleInfra"); using namespace std; namespace ns3{ void ReceivePacket (Ptr socket) { while (socket->Recv ()) { NS_LOG_UNCOND ("Received one packet!"); } } static void GenerateTraffic (Ptr socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval ) { if (pktCount > 0) { socket->Send (Create (pktSize)); Simulator::Schedule (pktInterval, &GenerateTraffic, socket, pktSize,pktCount-1, pktInterval); } else { socket->Close (); } } int main (int argc, char *argv[]) { std::string phyMode ("DsssRate1Mbps"); double rss = -80; // -dBm uint32_t packetSize = 1000; // bytes uint32_t numPackets = 1; double interval = 1.0; // seconds bool verbose = false; CommandLine cmd; cmd.AddValue ("phyMode", "Wifi Phy mode", phyMode); cmd.AddValue ("rss", "received signal strength", rss); cmd.AddValue ("packetSize", "size of application packet sent", packetSize); cmd.AddValue ("numPackets", "number of packets generated", numPackets); cmd.AddValue ("interval", "interval (seconds) between packets", interval); cmd.AddValue ("verbose", "turn on all WifiNetDevice log components", verbose); cmd.Parse (argc, argv); // Convert to time object Time interPacketInterval = Seconds (interval); // disable fragmentation for frames below 2200 bytes Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue ("2200")); // turn off RTS/CTS for frames below 2200 bytes Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue ("2200")); // Fix non-unicast data rate to be the same as that of unicast Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue (phyMode)); NodeContainer c; c.Create (2); // The below set of helpers will help us to put together the wifi NICs we want WifiHelper wifi; if (verbose) { wifi.EnableLogComponents (); // Turn on all Wifi logging } wifi.SetStandard (WIFI_PHY_STANDARD_80211b); YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default (); // This is one parameter that matters when using FixedRssLossModel // set it to zero; otherwise, gain will be added wifiPhy.Set ("RxGain", DoubleValue (0) ); // ns-3 supports RadioTap and Prism tracing extensions for 802.11b wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO); YansWifiChannelHelper wifiChannel; wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel"); // The below FixedRssLossModel will cause the rss to be fixed regardless // of the distance between the two stations, and the transmit power wifiChannel.AddPropagationLoss ("ns3::FixedRssLossModel","Rss",DoubleValue (rss)); wifiPhy.SetChannel (wifiChannel.Create ()); // Add a non-QoS upper mac, and disable rate control NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default (); wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode",StringValue (phyMode), "ControlMode",StringValue (phyMode)); // Setup the rest of the upper mac Ssid ssid = Ssid ("wifi-default"); // setup sta. wifiMac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false)); NetDeviceContainer staDevice = wifi.Install (wifiPhy, wifiMac, c.Get (0)); NetDeviceContainer devices = staDevice; // setup ap. wifiMac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); NetDeviceContainer apDevice = wifi.Install (wifiPhy, wifiMac, c.Get (1)); devices.Add (apDevice); // Note that with FixedRssLossModel, the positions below are not // used for received signal strength. MobilityHelper mobility; Ptr positionAlloc = CreateObject (); positionAlloc->Add (Vector (0.0, 0.0, 0.0)); positionAlloc->Add (Vector (5.0, 0.0, 0.0)); mobility.SetPositionAllocator (positionAlloc); mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); mobility.Install (c); *// 3. Install NDN stack * *NS_LOG_INFO("Installing NDN stack"); * *ndn::StackHelper ndnHelper; * *ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "1000"); * *ndnHelper.SetDefaultRoutes(true); * *ndnHelper.Install(c); * *// Set BestRoute strategy * *ndn::StrategyChoiceHelper::Install(c, "/", "/localhost/nfd/strategy/best-route"); * *// 4. Set up applications * *NS_LOG_INFO("Installing Applications"); * *ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); * *consumerHelper.SetPrefix("/test/prefix"); * *consumerHelper.SetAttribute("Frequency", DoubleValue(10.0)); * *consumerHelper.Install(c.Get(0)); * *ndn::AppHelper producerHelper("ns3::ndn::Producer"); * *producerHelper.SetPrefix("/"); * *producerHelper.SetAttribute("PayloadSize", StringValue("1200")); * *producerHelper.Install(c.Get(1)); * // Tracing wifiPhy.EnablePcap ("wifi-simple-infra", devices); // Output what we are doing NS_LOG_UNCOND ("Testing " << numPackets << " packets sent with receiver rss " << rss ); Simulator::ScheduleWithContext (source->GetNode ()->GetId (), Seconds (1.0), &GenerateTraffic, source, packetSize, numPackets, interPacketInterval); Simulator::Stop (Seconds (30.0)); Simulator::Run (); Simulator::Destroy (); return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Sun Jun 7 16:27:22 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 7 Jun 2015 16:27:22 -0700 Subject: [ndnSIM] NDN with Wifi in Infrastructure Mode In-Reply-To: References: Message-ID: <2246F14D-93E6-4D8C-A57D-1B740F2DA663@gmail.com> Hi Gustavo, Of course, you can run LTE based on NDN. NDN is a universal network layer protocol, that is anything can run over NDN and NDN can run over anything. You should be able to do so in a way similar to your WiFi scenario. There is also a ndnSIM user that has been working on that and has asked some relevant questions: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-April/001832.html I think that the third attachment includes a scenario that this user has coded. I suggest that you contact the user directly, so that you could share your experience. Regarding your WiFi scenario, could you please send me your code as an attachment? I am having a hard time to identify the code lines, since the plain text formatting is not working well. Thank you. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA From spiros.mastorakis at gmail.com Sun Jun 7 16:35:59 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 7 Jun 2015 16:35:59 -0700 Subject: [ndnSIM] ndnSIM and SDN Controller simulation. In-Reply-To: References: Message-ID: <64DBA62D-1BE8-4E3A-8555-8B6E2942DDC4@gmail.com> Hi Anil, to the best of my knowledge, you can use the OpenFlow protocol by attaching it as a module to NS3. Probably, this link can help: https://www.nsnam.org/docs/release/3.13/models/html/openflow-switch.html The SDN controller could use the FIB helper to add prefixes to the desired NFD FIBs. Another alternative could be to create a dedicated node running a SDN controller application that you will code and then modify the forwarding pipelines of NFD to send Interests to the controller in order to perform the desired processing. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 5, 2015, at 9:48 PM, Anil Jangam wrote: > > Hi, > > In one of my simulation scenarios, I need a SDN controller function to program the NFD e.g. to add prefixes to the FIB. > > Is this capability currently available in ndnSIM or may be in ns-3, which can be used in ndnSIM application logic? > > Please also suggest alternatives. > > Thanks, > /anil. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From dhiabimen at gmail.com Mon Jun 8 02:49:17 2015 From: dhiabimen at gmail.com (Dhiab Imen) Date: Mon, 8 Jun 2015 10:49:17 +0100 Subject: [ndnSIM] How to get data stored into the CS Message-ID: Hi, I want to get the data stored into the CS.I'm using ndnSim 2.0 and I found a method called getData in the class ndn-contentStore.cpp. http://ndnsim.net/2.0/doxygen/classns3_1_1ndn_1_1cs_1_1Entry.html How can I use this method to getData. thnx a lot for help. -- Cordialement Imen Dhiab *************************************************************************************************** Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. +216 53 59 19 88 Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html *************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From science.mart at yahoo.com Mon Jun 8 07:52:31 2015 From: science.mart at yahoo.com (Science Mart) Date: Mon, 8 Jun 2015 14:52:31 +0000 (UTC) Subject: [ndnSIM] Route L2 frames with NDN (ndnSIM environment) In-Reply-To: <1527972331.3801432.1432158143167.JavaMail.yahoo@mail.yahoo.com> References: <9086743C-31AE-4A01-B6CD-09D7C921BB36@ucla.edu> <1527972331.3801432.1432158143167.JavaMail.yahoo@mail.yahoo.com> Message-ID: <1634057995.8620081.1433775151888.JavaMail.yahoo@mail.yahoo.com> Hi Spyros,Could you please add a scenario/example to show how we can use the class "model/ndn-net-device-face.cpp" for using NDN over L2 frames in ndnSIM environment for educational purposes?I asked from many registered students in this email-group, and they also wanted to know about this important feature in ndnSIM. Thank you in advance for your support. Best Regards,Armin On Saturday, May 16, 2015 4:32 AM, Alex Afanasyev wrote: Hi Armin, ndnSIM already works directly on top of L2 frames, be it PPP frames with PointToPoint channels and network devices or any other type of channels. ? Take a look into model/ndn-net-device-face.cpp for more details. ?Alex On May 15, 2015, at 4:59 PM, Science Mart wrote: Dear friends and Alexander, I have a network working in layer 2 by Ethernet frames. Now, I want to route frames with NDN in ndnSIM.Could you please help me to how can I provide "Encapsulation and Decapsulation" properties by Ethernet frames (L2) and NDN packets (L3) by ndnSIM? Thank you very much for any contribution in advance.Armin -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadekahn at clarkson.edu Mon Jun 8 08:02:26 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Mon, 8 Jun 2015 11:02:26 -0400 Subject: [ndnSIM] InterestProcessTimeOut in NFD Message-ID: Hello Guys, Do we have a function in NFD at app level such as InterestTimeOut()? like if I send an interest and if we didn't get any response of that interest then we should get a notification (event) InterestTimeOut. I could see a function in NDN face, (ndn-cxx/face.hpp) const PendingInterestId* expressInterest(const Interest& interest, const OnData& onData, const OnTimeout& onTimeout = OnTimeout()); But don't know how to use it or call NDF app level Thanks for the input. Thanks, Hitesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Mon Jun 8 08:12:48 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Jun 2015 08:12:48 -0700 Subject: [ndnSIM] NDN with Wifi in Infrastructure Mode In-Reply-To: References: <2246F14D-93E6-4D8C-A57D-1B740F2DA663@gmail.com> Message-ID: Hi Gustavo, please use the ?reply to all? option, so that our email exchange is visible to all the users, as some of them may have a similar question. The thing I meant is that I can see the compilation errors, but if you do not send me the source code itself as a .cpp file, I am not able to see the line numbers, so that to identify directly where the errors occur. :) Could you please send me the scenario as a .cpp file? Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA From spiros.mastorakis at gmail.com Mon Jun 8 08:16:15 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Jun 2015 08:16:15 -0700 Subject: [ndnSIM] How to get data stored into the CS In-Reply-To: References: Message-ID: Hi Imen, I would suggest that you use the find method instead (it is the highest level API call that we have) in a way similar to the one shown here: https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/forwarder.cpp#L99-L102 Please let me know if you need any further help. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 8, 2015, at 2:49 AM, Dhiab Imen wrote: > > Hi, > I want to get the data stored into the CS.I'm using ndnSim 2.0 and I found a method called getData in the class ndn-contentStore.cpp. > > http://ndnsim.net/2.0/doxygen/classns3_1_1ndn_1_1cs_1_1Entry.html > > How can I use this method to getData. > thnx a lot for help. > > -- > Cordialement > Imen Dhiab > > *************************************************************************************************** > Ing?nieur Informatique dipl?m? de l'Ecole Nationale d'Ing?nieurs de Sfax. > Membre de l'unit? de recherche SAGE (Syst?mes Avanc?s en G?nie Electrique), Ecole Nationale d'Ing?nieurs de Sousse. > +216 53 59 19 88 > Pages personnelles : http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html > *************************************************************************************************** > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Mon Jun 8 08:17:39 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Jun 2015 08:17:39 -0700 Subject: [ndnSIM] Route L2 frames with NDN (ndnSIM environment) In-Reply-To: <1634057995.8620081.1433775151888.JavaMail.yahoo@mail.yahoo.com> References: <9086743C-31AE-4A01-B6CD-09D7C921BB36@ucla.edu> <1527972331.3801432.1432158143167.JavaMail.yahoo@mail.yahoo.com> <1634057995.8620081.1433775151888.JavaMail.yahoo@mail.yahoo.com> Message-ID: <57C7BE06-9479-47ED-B0FD-0BFA84228635@gmail.com> Hi Armin, could you please be more specific regarding what exactly you are trying to simulate and what is the goal of the simulation? Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 8, 2015, at 7:52 AM, Science Mart wrote: > > Hi Spyros, > Could you please add a scenario/example to show how we can use the class "model/ndn-net-device-face.cpp" for using NDN over L2 frames in ndnSIM environment for educational purposes? > I asked from many registered students in this email-group, and they also wanted to know about this important feature in ndnSIM. Thank you in advance for your support. > > > Best Regards, > Armin > > On Saturday, May 16, 2015 4:32 AM, Alex Afanasyev wrote: > > > Hi Armin, > > ndnSIM already works directly on top of L2 frames, be it PPP frames with PointToPoint channels and network devices or any other type of channels. Take a look into model/ndn-net-device-face.cpp for more details. > > ? > Alex > >> On May 15, 2015, at 4:59 PM, Science Mart wrote: >> >> Dear friends and Alexander, >> >> >> I have a network working in layer 2 by Ethernet frames. Now, I want to route frames with NDN in ndnSIM. >> Could you please help me to how can I provide "Encapsulation and Decapsulation" properties by Ethernet frames (L2) and NDN packets (L3) by ndnSIM? >> >> >> Thank you very much for any contribution in advance. >> Armin >> > > > > > From spiros.mastorakis at gmail.com Mon Jun 8 08:25:25 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 8 Jun 2015 08:25:25 -0700 Subject: [ndnSIM] InterestProcessTimeOut in NFD In-Reply-To: References: Message-ID: Hi Hitesh, NFD is the NDN Forwarder, that is it operates somewhere between the Link and Network layers. As far as the application layer timeouts, you should modify the code of the consumer application under the "/apps? directory (or create your own consumer application). Specifically, for this purpose, we have the OnTimeout method and some other methods to handle the retransmission timer (e.g., GetRetxTimer, CheckRetxTimeout, SetRetxTimer): http://ndnsim.net/2.0/doxygen/classns3_1_1ndn_1_1Consumer.html#a5f4e5baddcb70c734c3c92e7bb4d6f38 https://github.com/NDN-Routing/ndnSIM/blob/master/apps/ndn-consumer.cpp Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 8, 2015, at 8:02 AM, Hitesh Wadekar wrote: > > Hello Guys, > > Do we have a function in NFD at app level such as InterestTimeOut()? like if I send an interest and if we didn't get any response of that interest then we should get a notification (event) InterestTimeOut. > > I could see a function in NDN face, (ndn-cxx/face.hpp) > > const PendingInterestId* > expressInterest(const Interest& interest, > const OnData& onData, const OnTimeout& onTimeout = OnTimeout()); > > But don't know how to use it or call NDF app level > > Thanks for the input. > > Thanks, > Hitesh From science.mart at yahoo.com Mon Jun 8 09:32:37 2015 From: science.mart at yahoo.com (Science Mart) Date: Mon, 8 Jun 2015 16:32:37 +0000 (UTC) Subject: [ndnSIM] Route L2 frames with NDN (ndnSIM environment) In-Reply-To: <57C7BE06-9479-47ED-B0FD-0BFA84228635@gmail.com> References: <57C7BE06-9479-47ED-B0FD-0BFA84228635@gmail.com> Message-ID: <1362636465.8720538.1433781157525.JavaMail.yahoo@mail.yahoo.com> Hi Spyros,I have a network working in L2 as TSN (time-sensitive networking) which consists of real-time Ethernet frames.Now, I am going to transfer its frames through NDN. So, could you please give me some clues? /Armin On Monday, June 8, 2015 5:17 PM, Spyridon (Spyros) Mastorakis wrote: Hi Armin, could you please be more specific regarding what exactly you are trying to simulate and what is the goal of the simulation? Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 8, 2015, at 7:52 AM, Science Mart wrote: > > Hi Spyros, > Could you please add a scenario/example to show how we can use the class "model/ndn-net-device-face.cpp" for using NDN over L2 frames in ndnSIM environment for educational purposes? > I asked from many registered students in this email-group, and they also wanted to know about this important feature in ndnSIM. Thank you in advance for your support. > > > Best Regards, > Armin > > On Saturday, May 16, 2015 4:32 AM, Alex Afanasyev wrote: > > > Hi Armin, > > ndnSIM already works directly on top of L2 frames, be it PPP frames with PointToPoint channels and network devices or any other type of channels.? Take a look into model/ndn-net-device-face.cpp for more details. > > ? > Alex > >> On May 15, 2015, at 4:59 PM, Science Mart wrote: >> >> Dear friends and Alexander, >> >> >> I have a network working in layer 2 by Ethernet frames. Now, I want to route frames with NDN in ndnSIM. >> Could you please help me to how can I provide "Encapsulation and Decapsulation" properties by Ethernet frames (L2) and NDN packets (L3) by ndnSIM? >> >> >> Thank you very much for any contribution in advance. >> Armin >> > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Mon Jun 8 23:43:04 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Tue, 9 Jun 2015 08:43:04 +0200 Subject: [ndnSIM] NDN with Wifi in Infrastructure Mode In-Reply-To: References: <2246F14D-93E6-4D8C-A57D-1B740F2DA663@gmail.com> Message-ID: Good morning Spyridon, Finally I could solve the issue. It was a problem related with the main syntaxis at the end of the script. Now I have been able to run the Wifi simulation in infrastructure mode using ndn. Thank you very much for your support. Regards. On Mon, Jun 8, 2015 at 5:12 PM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Gustavo, > > please use the ?reply to all? option, so that our email exchange is > visible to all the users, as some of them may have a similar question. > > The thing I meant is that I can see the compilation errors, but if you do > not send me the source code itself as a .cpp file, I am not able to see the > line numbers, so that to identify directly where the errors occur. :) > > Could you please send me the scenario as a .cpp file? > > Thanks. > > -- > 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: From wadekahn at clarkson.edu Tue Jun 9 06:37:12 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Tue, 9 Jun 2015 09:37:12 -0400 Subject: [ndnSIM] InterestProcessTimeOut in NFD In-Reply-To: References: Message-ID: Thank you Spyridon. I have gone through all these. However, they are tracking interest based on sequence number, same case for OnTimeout as well. In my case, I am not generating any sequences, its simple interest to neighbor. Let me explain my thought, I already customized consumer app to simple interest to neighbor without any sequences, so I am simple looking an event for OnTimeout where it will tell me which interest for it timed out rather than sequence number. For instance, event would be called, OnTimeout(shared_ptr interest); Please correct me if I am wrong or going other direction. Regards, Hitesh On Mon, Jun 8, 2015 at 11:25 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Hitesh, > > NFD is the NDN Forwarder, that is it operates somewhere between the Link > and Network layers. > > As far as the application layer timeouts, you should modify the code of > the consumer application under the "/apps? directory (or create your own > consumer application). Specifically, for this purpose, we have the > OnTimeout method and some other methods to handle the retransmission timer > (e.g., GetRetxTimer, CheckRetxTimeout, SetRetxTimer): > > > http://ndnsim.net/2.0/doxygen/classns3_1_1ndn_1_1Consumer.html#a5f4e5baddcb70c734c3c92e7bb4d6f38 > https://github.com/NDN-Routing/ndnSIM/blob/master/apps/ndn-consumer.cpp > > Hope that this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 8, 2015, at 8:02 AM, Hitesh Wadekar > wrote: > > > > Hello Guys, > > > > Do we have a function in NFD at app level such as InterestTimeOut()? > like if I send an interest and if we didn't get any response of that > interest then we should get a notification (event) InterestTimeOut. > > > > I could see a function in NDN face, (ndn-cxx/face.hpp) > > > > const PendingInterestId* > > expressInterest(const Interest& interest, > > const OnData& onData, const OnTimeout& onTimeout = > OnTimeout()); > > > > But don't know how to use it or call NDF app level > > > > Thanks for the input. > > > > Thanks, > > Hitesh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue Jun 9 08:17:12 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 9 Jun 2015 08:17:12 -0700 Subject: [ndnSIM] InterestProcessTimeOut in NFD In-Reply-To: References: Message-ID: <18E518C7-3152-4B97-B206-5996E869C3D8@gmail.com> Hi Hitesh, if this approach works for you, I do not see any reasons not to use it. :) Let me elaborate on the sequence number a little bit: the sequence number is just a way to distinguish among the multiple segments of a file (i.e., name prefix ? at least that is the way I think of it). You can keep the sequence number and remove it after the transmission using the the getPrefix method of the name class: http://named-data.net/doc/ndn-cxx/current/doxygen/da/d3e/classndn_1_1Name.html#accf5de89558b3bd59a009cb74ceccb4d We used the sequence number as a way to specify which segment of the file has not been retrieved and request again only the specific segment. If you are planning to retrieve a single data packet for each name prefix, then you do not need a sequence number. In general, I do not see the sequence number as a limitation or problem, as: 1) it can be removed/added any time, 2) the Interest forwarding is being performed based on the longest name prefix match principle. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 9, 2015, at 6:37 AM, Hitesh Wadekar wrote: > > Thank you Spyridon. > > I have gone through all these. However, they are tracking interest based on sequence number, same case for OnTimeout as well. In my case, I am not generating any sequences, its simple interest to neighbor. > Let me explain my thought, > > I already customized consumer app to simple interest to neighbor without any sequences, so I am simple looking an event for OnTimeout where it will tell me which interest for it timed out rather than sequence number. > > For instance, event would be called, > OnTimeout(shared_ptr interest); > > Please correct me if I am wrong or going other direction. > > Regards, > Hitesh > > On Mon, Jun 8, 2015 at 11:25 AM, Spyridon (Spyros) Mastorakis wrote: > Hi Hitesh, > > NFD is the NDN Forwarder, that is it operates somewhere between the Link and Network layers. > > As far as the application layer timeouts, you should modify the code of the consumer application under the "/apps? directory (or create your own consumer application). Specifically, for this purpose, we have the OnTimeout method and some other methods to handle the retransmission timer (e.g., GetRetxTimer, CheckRetxTimeout, SetRetxTimer): > > http://ndnsim.net/2.0/doxygen/classns3_1_1ndn_1_1Consumer.html#a5f4e5baddcb70c734c3c92e7bb4d6f38 > https://github.com/NDN-Routing/ndnSIM/blob/master/apps/ndn-consumer.cpp > > Hope that this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 8, 2015, at 8:02 AM, Hitesh Wadekar wrote: > > > > Hello Guys, > > > > Do we have a function in NFD at app level such as InterestTimeOut()? like if I send an interest and if we didn't get any response of that interest then we should get a notification (event) InterestTimeOut. > > > > I could see a function in NDN face, (ndn-cxx/face.hpp) > > > > const PendingInterestId* > > expressInterest(const Interest& interest, > > const OnData& onData, const OnTimeout& onTimeout = OnTimeout()); > > > > But don't know how to use it or call NDF app level > > > > Thanks for the input. > > > > Thanks, > > Hitesh > > From wadekahn at clarkson.edu Tue Jun 9 09:38:41 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Tue, 9 Jun 2015 12:38:41 -0400 Subject: [ndnSIM] InterestProcessTimeOut in NFD In-Reply-To: <18E518C7-3152-4B97-B206-5996E869C3D8@gmail.com> References: <18E518C7-3152-4B97-B206-5996E869C3D8@gmail.com> Message-ID: That's really great explanation Spyridon. I got a small picture about sequence :). Let me think how to incorporate it. Also, I am still searching or exploring how to use OnTime with interest name packet approach. I will update you based on my solution. Regards, Hitesh On Tue, Jun 9, 2015 at 11:17 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Hitesh, > > if this approach works for you, I do not see any reasons not to use it. :) > > Let me elaborate on the sequence number a little bit: > > the sequence number is just a way to distinguish among the multiple > segments of a file (i.e., name prefix ? at least that is the way I think of > it). You can keep the sequence number and remove it after the transmission > using the the getPrefix method of the name class: > > > http://named-data.net/doc/ndn-cxx/current/doxygen/da/d3e/classndn_1_1Name.html#accf5de89558b3bd59a009cb74ceccb4d > > We used the sequence number as a way to specify which segment of the file > has not been retrieved and request again only the specific segment. If you > are planning to retrieve a single data packet for each name prefix, then > you do not need a sequence number. > > In general, I do not see the sequence number as a limitation or problem, > as: 1) it can be removed/added any time, 2) the Interest forwarding is > being performed based on the longest name prefix match principle. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 9, 2015, at 6:37 AM, Hitesh Wadekar > wrote: > > > > Thank you Spyridon. > > > > I have gone through all these. However, they are tracking interest based > on sequence number, same case for OnTimeout as well. In my case, I am not > generating any sequences, its simple interest to neighbor. > > Let me explain my thought, > > > > I already customized consumer app to simple interest to neighbor without > any sequences, so I am simple looking an event for OnTimeout where it will > tell me which interest for it timed out rather than sequence number. > > > > For instance, event would be called, > > OnTimeout(shared_ptr interest); > > > > Please correct me if I am wrong or going other direction. > > > > Regards, > > Hitesh > > > > On Mon, Jun 8, 2015 at 11:25 AM, Spyridon (Spyros) Mastorakis < > spiros.mastorakis at gmail.com> wrote: > > Hi Hitesh, > > > > NFD is the NDN Forwarder, that is it operates somewhere between the Link > and Network layers. > > > > As far as the application layer timeouts, you should modify the code of > the consumer application under the "/apps? directory (or create your own > consumer application). Specifically, for this purpose, we have the > OnTimeout method and some other methods to handle the retransmission timer > (e.g., GetRetxTimer, CheckRetxTimeout, SetRetxTimer): > > > > > http://ndnsim.net/2.0/doxygen/classns3_1_1ndn_1_1Consumer.html#a5f4e5baddcb70c734c3c92e7bb4d6f38 > > https://github.com/NDN-Routing/ndnSIM/blob/master/apps/ndn-consumer.cpp > > > > Hope that this helps. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > > > On Jun 8, 2015, at 8:02 AM, Hitesh Wadekar > wrote: > > > > > > Hello Guys, > > > > > > Do we have a function in NFD at app level such as InterestTimeOut()? > like if I send an interest and if we didn't get any response of that > interest then we should get a notification (event) InterestTimeOut. > > > > > > I could see a function in NDN face, (ndn-cxx/face.hpp) > > > > > > const PendingInterestId* > > > expressInterest(const Interest& interest, > > > const OnData& onData, const OnTimeout& onTimeout = > OnTimeout()); > > > > > > But don't know how to use it or call NDF app level > > > > > > Thanks for the input. > > > > > > Thanks, > > > Hitesh > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Wed Jun 10 12:50:49 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Thu, 11 Jun 2015 04:50:49 +0900 Subject: [ndnSIM] How to get the full prefix in policy? Message-ID: Hello. How can I get the full prefix name in insert method in lru-policy.hpp? insert(typename parent_trie::iterator item) *item returns just behind of full prefix that is some kind of %FE%07 if /prefix1/%FE%07. Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From saltarinj at gmail.com Wed Jun 10 14:40:12 2015 From: saltarinj at gmail.com (Jonnahtan Saltarin) Date: Wed, 10 Jun 2015 23:40:12 +0200 Subject: [ndnSIM] Integrating changes to ndnSIM source into NFD source Message-ID: Hi all, I am re-coding a project that I did with CCNx 0.8.2 into NDN. Checking the NFD code, I realized that I need to modify the NFD's forwarder (forwarder.cpp). I am considering writing and testing my code with ndnSIM, and, when it is stable, I would probably need to move to NFD to test in a real scenario. Before starting to code, I would like to know if there is any way to configure ndnSIM to use a standalone version of NFD, as it does with ndn-cxx? This will save me some work in the future. Many thanks and best regards, Jonnahtan Saltarin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Thu Jun 11 10:58:01 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 11 Jun 2015 10:58:01 -0700 Subject: [ndnSIM] Integrating changes to ndnSIM source into NFD source In-Reply-To: References: Message-ID: <8890E7A5-F1DD-42E4-BE88-746F3B7483D2@ucla.edu> Hi Jonnahtan, Unfortunately, ndnSIM has to use a slightly modified version of NFD (some of the behavior must be changed, specifically anything related to real time and real interface operations). As of right now, NFD is embedded inside the ndnSIM codebase, and we almost finished in a slightly different arrangement where NFD is a git submodule inside ndnSIM. This would simplify your task, but still would require additional cherry-pikcing of commits from one branch (ndnSIM) to master branch. --- Alex > On Jun 10, 2015, at 2:40 PM, Jonnahtan Saltarin wrote: > > Hi all, > > I am re-coding a project that I did with CCNx 0.8.2 into NDN. Checking the NFD code, I realized that I need to modify the NFD's forwarder (forwarder.cpp). I am considering writing and testing my code with ndnSIM, and, when it is stable, I would probably need to move to NFD to test in a real scenario. > > Before starting to code, I would like to know if there is any way to configure ndnSIM to use a standalone version of NFD, as it does with ndn-cxx? This will save me some work in the future. > > Many thanks and best regards, > > Jonnahtan Saltarin. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Thu Jun 11 10:59:50 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 11 Jun 2015 10:59:50 -0700 Subject: [ndnSIM] How to get the full prefix in policy? In-Reply-To: References: Message-ID: <11243396-FD43-47B5-9E14-1D7951356E1B@ucla.edu> > On Jun 10, 2015, at 12:50 PM, ??? wrote: > > Hello. > > How can I get the full prefix name in insert method in lru-policy.hpp? > insert(typename parent_trie::iterator item) > > *item returns just behind of full prefix that is some kind of %FE%07 if /prefix1/%FE%07. > Try item->payload()->GetData()->getName() -- Alex > > Best regards. > > 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 alexander.afanasyev at ucla.edu Thu Jun 11 11:02:01 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 11 Jun 2015 11:02:01 -0700 Subject: [ndnSIM] ndnSIM Performance In-Reply-To: References: <00FF109B-76DC-4EB0-A8FA-1E644374A381@ucla.edu> Message-ID: <1C3C0594-1E48-47FD-A817-984C366FF430@ucla.edu> Hi Hisham, Sorry for the delayed reply. Is your simulation scenario written in c++ or python? Also, how do you run the simulation? If with ./waf --run, then the python you see is probably related to this part. --- Alex > On Jun 3, 2015, at 8:28 PM, Hisham Farahat wrote: > > One more thing. > Why python2.7 is taking ~20%? > > > On Wed, Jun 3, 2015 at 10:28 PM, Hisham Farahat > wrote: > Hi, > Yeah, I run my code in optimized mode. > > On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev > wrote: > Hi Hisham, > > I hope you?re compiling and running code in optimized mode (./waf configure -d optimized). > > In optimized mode, ~Ptr() should just decrement a counter, in debug mode there could be more complex things happening, though I?m not sure why would it take 50% of time. > > ? > Alex > > > On May 2, 2015, at 6:59 PM, Hisham Farahat > wrote: > > > > Hi, > > I'm trying to profile ndnSIM 1.0, because My simulation scenarios are taking too long to finish. This was the results: > > CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated) > > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000 > > samples % app name symbol name > > 610808 49.4017 ndn ns3::Ptr::~Ptr() > > 268401 21.7081 python2.7 /usr/bin/python2.7 > > 107633 8.7053 ndn ns3::Ptr::~Ptr() > > 76617 6.1967 ndn ns3::Ptr::~Ptr() > > 23462 1.8976 ndn ns3::Ptr::~Ptr() > > ..... > > > > is this normal? 50% on ~Ptr() ? > > Am i doing something wrong? > > > > Regards, > > > > > -- > Hisham Farahat > > > > -- > Hisham Farahat -------------- 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 hishamfarahat at gmail.com Thu Jun 11 11:07:23 2015 From: hishamfarahat at gmail.com (Hisham Farahat) Date: Thu, 11 Jun 2015 14:07:23 -0400 Subject: [ndnSIM] ndnSIM Performance In-Reply-To: <1C3C0594-1E48-47FD-A817-984C366FF430@ucla.edu> References: <00FF109B-76DC-4EB0-A8FA-1E644374A381@ucla.edu> <1C3C0594-1E48-47FD-A817-984C366FF430@ucla.edu> Message-ID: Hi, My program is in C++. Is there another method to run my program? Is it more efficient? On Jun 11, 2015 2:02 PM, "Alex Afanasyev" wrote: > Hi Hisham, > > Sorry for the delayed reply. Is your simulation scenario written in c++ > or python? Also, how do you run the simulation? If with ./waf --run, then > the python you see is probably related to this part. > > --- > Alex > > On Jun 3, 2015, at 8:28 PM, Hisham Farahat > wrote: > > One more thing. > Why python2.7 is taking ~20%? > > > On Wed, Jun 3, 2015 at 10:28 PM, Hisham Farahat > wrote: > >> Hi, >> Yeah, I run my code in optimized mode. >> >> On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev < >> alexander.afanasyev at ucla.edu> wrote: >> >>> Hi Hisham, >>> >>> I hope you?re compiling and running code in optimized mode (./waf >>> configure -d optimized). >>> >>> In optimized mode, ~Ptr() should just decrement a counter, in debug mode >>> there could be more complex things happening, though I?m not sure why would >>> it take 50% of time. >>> >>> ? >>> Alex >>> >>> > On May 2, 2015, at 6:59 PM, Hisham Farahat >>> wrote: >>> > >>> > Hi, >>> > I'm trying to profile ndnSIM 1.0, because My simulation scenarios are >>> taking too long to finish. This was the results: >>> > CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated) >>> > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a >>> unit mask of 0x00 (No unit mask) count 100000 >>> > samples % app name symbol name >>> > 610808 49.4017 ndn ns3::Ptr::~Ptr() >>> > 268401 21.7081 python2.7 /usr/bin/python2.7 >>> > 107633 8.7053 ndn ns3::Ptr::~Ptr() >>> > 76617 6.1967 ndn ns3::Ptr::~Ptr() >>> > 23462 1.8976 ndn ns3::Ptr>> const>::~Ptr() >>> > ..... >>> > >>> > is this normal? 50% on ~Ptr() ? >>> > Am i doing something wrong? >>> > >>> > Regards, >>> >>> >> >> >> -- >> Hisham Farahat >> > > > > -- > Hisham Farahat > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Thu Jun 11 11:11:44 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 11 Jun 2015 11:11:44 -0700 Subject: [ndnSIM] ndnSIM Performance In-Reply-To: References: <00FF109B-76DC-4EB0-A8FA-1E644374A381@ucla.edu> <1C3C0594-1E48-47FD-A817-984C366FF430@ucla.edu> Message-ID: <206A0242-F724-4930-9178-50129482D7B9@ucla.edu> > On Jun 11, 2015, at 11:07 AM, Hisham Farahat wrote: > > Hi, > My program is in C++. > Is there another method to run my program? Is it more efficient? > It is not question of efficiency. Either way it would be the same (the other way is directly running scenario binary from ./build folder). Running with ./waf --run just has overhead in the beginning of the simulation, as it checks that the latest code is compiled. It has no effect on later simulation. --- Alex > On Jun 11, 2015 2:02 PM, "Alex Afanasyev" > wrote: > Hi Hisham, > > Sorry for the delayed reply. Is your simulation scenario written in c++ or python? Also, how do you run the simulation? If with ./waf --run, then the python you see is probably related to this part. > > --- > Alex > >> On Jun 3, 2015, at 8:28 PM, Hisham Farahat > wrote: >> >> One more thing. >> Why python2.7 is taking ~20%? >> >> >> On Wed, Jun 3, 2015 at 10:28 PM, Hisham Farahat > wrote: >> Hi, >> Yeah, I run my code in optimized mode. >> >> On Fri, May 15, 2015 at 7:21 PM, Alex Afanasyev > wrote: >> Hi Hisham, >> >> I hope you?re compiling and running code in optimized mode (./waf configure -d optimized). >> >> In optimized mode, ~Ptr() should just decrement a counter, in debug mode there could be more complex things happening, though I?m not sure why would it take 50% of time. >> >> ? >> Alex >> >> > On May 2, 2015, at 6:59 PM, Hisham Farahat > wrote: >> > >> > Hi, >> > I'm trying to profile ndnSIM 1.0, because My simulation scenarios are taking too long to finish. This was the results: >> > CPU: Intel Sandy Bridge microarchitecture, speed 3800 MHz (estimated) >> > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000 >> > samples % app name symbol name >> > 610808 49.4017 ndn ns3::Ptr::~Ptr() >> > 268401 21.7081 python2.7 /usr/bin/python2.7 >> > 107633 8.7053 ndn ns3::Ptr::~Ptr() >> > 76617 6.1967 ndn ns3::Ptr::~Ptr() >> > 23462 1.8976 ndn ns3::Ptr::~Ptr() >> > ..... >> > >> > is this normal? 50% on ~Ptr() ? >> > Am i doing something wrong? >> > >> > Regards, >> >> >> >> >> -- >> Hisham Farahat >> >> >> >> -- >> Hisham Farahat > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From wonjunchoi001 at gmail.com Thu Jun 11 16:51:56 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Fri, 12 Jun 2015 08:51:56 +0900 Subject: [ndnSIM] How to get the full prefix in policy? In-Reply-To: <11243396-FD43-47B5-9E14-1D7951356E1B@ucla.edu> References: <11243396-FD43-47B5-9E14-1D7951356E1B@ucla.edu> Message-ID: thanks for your help! Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaim.rieger at gmail.com Tue Jun 16 12:43:30 2015 From: chaim.rieger at gmail.com (Chaim Rieger) Date: Tue, 16 Jun 2015 12:43:30 -0700 Subject: [ndnSIM] Build fails (./waf) Message-ID: <55807C62.1080406@gmail.com> ON Fedora 22, running the latest ndn-cxx and NFD Fails with the following error [2370/2454] cxxprogram: build/examples/tcp/star.cc.5.o -> build/examples/tcp/ns3-dev-star-debug /bin/ld: /usr/local/lib64/libndn-cxx.a(data.cpp.2.o): relocation R_X86_64_32 against `__pthread_key_create' can not be used when making a shared object; recompile with -fPIC /usr/local/lib64/libndn-cxx.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status From alexander.afanasyev at ucla.edu Tue Jun 16 14:51:22 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 16 Jun 2015 14:51:22 -0700 Subject: [ndnSIM] Build fails (./waf) In-Reply-To: <55807C62.1080406@gmail.com> References: <55807C62.1080406@gmail.com> Message-ID: <5A73AAAC-99D5-4862-9C4B-AD2611475DB1@ucla.edu> Dear Chaim, To make it compile, you just need to recompile ndn-cxx library as a shared library (this was a recent change in order to avoid several problem caused by the static library): // clone ndn-cxx ./waf configure --enable-shared --disable-static ./waf sudo ./waf install Then reconfigure/build ndnSIM as usual. --- Alex > On Jun 16, 2015, at 12:43 PM, Chaim Rieger wrote: > > ON Fedora 22, running the latest ndn-cxx and NFD > > Fails with the following error > > [2370/2454] cxxprogram: build/examples/tcp/star.cc.5.o -> build/examples/tcp/ns3-dev-star-debug > /bin/ld: /usr/local/lib64/libndn-cxx.a(data.cpp.2.o): relocation R_X86_64_32 against `__pthread_key_create' can not be used when making a shared object; recompile with -fPIC > /usr/local/lib64/libndn-cxx.a: error adding symbols: Bad value > collect2: error: ld returned 1 exit status -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From chaim.rieger at gmail.com Wed Jun 17 09:26:35 2015 From: chaim.rieger at gmail.com (Chaim Rieger) Date: Wed, 17 Jun 2015 09:26:35 -0700 Subject: [ndnSIM] Build fails (./waf) In-Reply-To: <5A73AAAC-99D5-4862-9C4B-AD2611475DB1@ucla.edu> References: <55807C62.1080406@gmail.com> <5A73AAAC-99D5-4862-9C4B-AD2611475DB1@ucla.edu> Message-ID: <55819FBB.5000005@gmail.com> Thank you Alex, The install worked. however can not run the sim [crieger at localhost ns-3] $ sudo ./waf Waf: Entering directory `/home/crieger/ndnSIM/ns-3/build' Waf: Leaving directory `/home/crieger/ndnSIM/ns-3/build' 'build' finished successfully (4.288s) Error message when attempting to run the sim Waf: Entering directory `/home/crieger/ndnSIM/ns-3/build' Waf: Leaving directory `/home/crieger/ndnSIM/ns-3/build' 'build' finished successfully (4.270s) /home/crieger/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug: error while loading shared libraries: libndn-cxx.so.0.3.2: cannot open shared object file: No such file or directory Command ['/home/crieger/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug'] exited with code 127 I did sudo ./waf uninstall sudo ./waf clean on both ndn-cxx and NFD and reinstalled them prior to compiling ndn-sim. On 06/16/2015 02:51 PM, Alex Afanasyev wrote: > Dear Chaim, > > To make it compile, you just need to recompile ndn-cxx library as a shared library (this was a recent change in order to avoid several problem caused by the static library): > > // clone ndn-cxx > ./waf configure --enable-shared --disable-static > ./waf > sudo ./waf install > > > Then reconfigure/build ndnSIM as usual. > > --- > Alex > > >> On Jun 16, 2015, at 12:43 PM, Chaim Rieger wrote: >> >> ON Fedora 22, running the latest ndn-cxx and NFD >> >> Fails with the following error >> >> [2370/2454] cxxprogram: build/examples/tcp/star.cc.5.o -> build/examples/tcp/ns3-dev-star-debug >> /bin/ld: /usr/local/lib64/libndn-cxx.a(data.cpp.2.o): relocation R_X86_64_32 against `__pthread_key_create' can not be used when making a shared object; recompile with -fPIC >> /usr/local/lib64/libndn-cxx.a: error adding symbols: Bad value >> collect2: error: ld returned 1 exit status -- -- Chaim Rieger From trade20122012 at gmail.com Wed Jun 17 10:21:23 2015 From: trade20122012 at gmail.com (Trade) Date: Wed, 17 Jun 2015 10:21:23 -0700 Subject: [ndnSIM] Add openssl into .... Message-ID: <5581AC93.3050709@gmail.com> Hi, May I ask how and which file to add openssl ? It keeps showing error message that EVP parameters undefined. I have it successfully installed under /usr/include/openssl Thanks. Trade -------------- next part -------------- An HTML attachment was scrubbed... URL: From moosavi.itsu at yahoo.com Sat Jun 20 04:01:04 2015 From: moosavi.itsu at yahoo.com (Samira Moosavi) Date: Sat, 20 Jun 2015 11:01:04 +0000 (UTC) Subject: [ndnSIM] Mobility in NDN Message-ID: <1202327763.2799868.1434798064554.JavaMail.yahoo@mail.yahoo.com> Hi . ? I want to have a code which implements mobility of consumer in Named Data Network by ndnSIM that it's topology include? simple networking scenario with one mobile endpoint ( consumer) and one static endpoint?(producer)?with three Autonomous Systems(ASs). can any one help me? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalezcga at gmail.com Sat Jun 20 08:20:10 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Sat, 20 Jun 2015 17:20:10 +0200 Subject: [ndnSIM] Simulation error with NDN over Wireless Message-ID: Hello, I am having a problem when I run a simulation of two wired nodes and an access point with two nodes attached. The simulation is based on ndn but when I try to check the transmitted and received packets in the python interface in the access point node and in the other two wired ones the simulation stops suddenly. The error is described below. I have checked and it seems to be a bug (bug#1273). I would really appreciate your help to try to solve this issue. Regards. ---------------------------- *ERROR: * Waf: Entering directory `/root/ndnSIM/ns-3/build' Waf: Leaving directory `/root/ndnSIM/ns-3/build' 'build' finished successfully (0.892s) ** (python:10730): WARNING **: The connection is closed Could not load icon applets-screenshooter due to missing gnomedesktop Python module Could not load icon gnome-terminal due to missing gnomedesktop Python module scanning topology: [0, 5) nodes... No OLSR ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: The connection is closed No OLSR No OLSR terminate called after throwing an instance of 'ndn::tlv::Error' what(): Empty buffer during TLV processing Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). ---------------------------- *CODE:* #include "ns3/core-module.h" #include "ns3/point-to-point-module.h" #include "ns3/csma-module.h" #include "ns3/network-module.h" #include "ns3/applications-module.h" #include "ns3/wifi-module.h" #include "ns3/mobility-module.h" #include "ns3/internet-module.h" #include "ns3/netanim-module.h" #include "ns3/basic-energy-source.h" #include "ns3/simple-device-energy-model.h" #include "ns3/ndnSIM-module.h" using namespace std; namespace ns3 { int main (int argc, char *argv[]) { Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200")); Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200")); Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue("OfdmRate24Mbps")); uint32_t nWifi = 2; CommandLine cmd; cmd.AddValue ("nWifi", "Number of wifi devices", nWifi); cmd.Parse (argc, argv); NodeContainer allNodes; NodeContainer wifiStaNodes; wifiStaNodes.Create (nWifi); allNodes.Add (wifiStaNodes); NodeContainer wifiApNode; wifiApNode.Create (1); allNodes.Add (wifiApNode); YansWifiChannelHelper channel = YansWifiChannelHelper::Default (); YansWifiPhyHelper phy = YansWifiPhyHelper::Default (); phy.SetChannel (channel.Create()); WifiHelper wifi = WifiHelper::Default (); wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); NqosWifiMacHelper mac = NqosWifiMacHelper::Default (); Ssid ssid = Ssid ("ns-3-ssid"); mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false)); NetDeviceContainer staDevices; staDevices = wifi.Install (phy, mac, wifiStaNodes); mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); NetDeviceContainer apDevices; apDevices = wifi.Install (phy, mac, wifiApNode); NodeContainer p2pNodes; p2pNodes.Add (wifiApNode); p2pNodes.Create (1); allNodes.Add (p2pNodes.Get (1)); PointToPointHelper pointToPoint; pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); NetDeviceContainer p2pDevices; p2pDevices = pointToPoint.Install (p2pNodes); NodeContainer csmaNodes; csmaNodes.Add (p2pNodes.Get (1)); csmaNodes.Create (1); allNodes.Add (csmaNodes.Get (1)); CsmaHelper csma; csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560))); NetDeviceContainer csmaDevices; csmaDevices = csma.Install (csmaNodes); MobilityHelper mobility; mobility.SetPositionAllocator ("ns3::GridPositionAllocator", "MinX", DoubleValue (20.0), "MinY", DoubleValue (20.0), "DeltaX", DoubleValue (10.0), "DeltaY", DoubleValue (10.0), "GridWidth", UintegerValue (10), "LayoutType", StringValue ("RowFirst")); mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", "Bounds", RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50)))); mobility.Install (wifiStaNodes); mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); mobility.Install (wifiApNode); AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10); AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30); AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50); ndn::StackHelper ndnHelper; ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "500"); ndnHelper.SetDefaultRoutes(true); ndnHelper.InstallAll(); // Choosing forwarding strategy ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", "/localhost/nfd/strategy/best-route"); // ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", "/localhost/nfd/strategy/broadcast"); // ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", "/localhost/nfd/strategy/broadcast"); // ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; ndnGlobalRoutingHelper.Install(wifiStaNodes); ndnGlobalRoutingHelper.Install(wifiApNode); ndnGlobalRoutingHelper.Install(csmaNodes); // 4. Set up applications ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); consumerHelper.SetPrefix("/test/prefix"); consumerHelper.SetAttribute("Frequency", DoubleValue(1.0)); consumerHelper.Install(wifiStaNodes.Get(0)); /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr"); consumerHelper2.SetPrefix("/test/prefix"); consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0)); consumerHelper2.Install(wifiStaNodes.Get(1));*/ ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetPrefix("/"); producerHelper.SetAttribute("PayloadSize", StringValue("700")); producerHelper.Install(csmaNodes.Get(1)); ndn::GlobalRoutingHelper::CalculateRoutes(); Simulator::Stop (Seconds (10.0)); Simulator::Run (); Simulator::Destroy (); return 0; } } int main(int argc, char* argv[]) { return ns3::main(argc, argv); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From moosavi.itsu at yahoo.com Sat Jun 20 23:39:13 2015 From: moosavi.itsu at yahoo.com (Samira Moosavi) Date: Sun, 21 Jun 2015 06:39:13 +0000 (UTC) Subject: [ndnSIM] help for ndn-mobility Message-ID: <471184771.3094551.1434868753055.JavaMail.yahoo@mail.yahoo.com> Hi I just want? to know which .cc file in nacarino/ndn-mobility/scenarios is about consumer mobility and which one is about producer mobility? please help me. Than -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Sun Jun 21 09:20:53 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 21 Jun 2015 18:20:53 +0200 Subject: [ndnSIM] Simulation error with NDN over Wireless In-Reply-To: References: Message-ID: Hi Gustavo, please when you want us to review some code, include the source file as an attachment. When you mentioned bug #1273, do you refer to NS3? Thank you. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 20, 2015, at 5:20 PM, Gustavo Gonzalez wrote: > > Hello, > > I am having a problem when I run a simulation of two wired nodes and an access point with two nodes attached. The simulation is based on ndn but when I try to check the transmitted and received packets in the python interface in the access point node and in the other two wired ones the simulation stops suddenly. The error is described below. > > I have checked and it seems to be a bug (bug#1273). > > I would really appreciate your help to try to solve this issue. > > Regards. > > ---------------------------- > > ERROR: > > Waf: Entering directory `/root/ndnSIM/ns-3/build' > Waf: Leaving directory `/root/ndnSIM/ns-3/build' > 'build' finished successfully (0.892s) > > ** (python:10730): WARNING **: The connection is closed > Could not load icon applets-screenshooter due to missing gnomedesktop Python module > Could not load icon gnome-terminal due to missing gnomedesktop Python module > scanning topology: [0, 5) nodes... > No OLSR > > ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: The connection is closed > No OLSR > No OLSR > terminate called after throwing an instance of 'ndn::tlv::Error' > what(): Empty buffer during TLV processing > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). > > ---------------------------- > > CODE: > > #include "ns3/core-module.h" > #include "ns3/point-to-point-module.h" > #include "ns3/csma-module.h" > #include "ns3/network-module.h" > #include "ns3/applications-module.h" > #include "ns3/wifi-module.h" > #include "ns3/mobility-module.h" > #include "ns3/internet-module.h" > #include "ns3/netanim-module.h" > #include "ns3/basic-energy-source.h" > #include "ns3/simple-device-energy-model.h" > #include "ns3/ndnSIM-module.h" > > using namespace std; > > namespace ns3 { > > int main (int argc, char *argv[]) { > > Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200")); > Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200")); > Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue("OfdmRate24Mbps")); > > uint32_t nWifi = 2; > CommandLine cmd; > cmd.AddValue ("nWifi", "Number of wifi devices", nWifi); > > cmd.Parse (argc, argv); > NodeContainer allNodes; > NodeContainer wifiStaNodes; > wifiStaNodes.Create (nWifi); > allNodes.Add (wifiStaNodes); > NodeContainer wifiApNode; > wifiApNode.Create (1); > allNodes.Add (wifiApNode); > > > YansWifiChannelHelper channel = YansWifiChannelHelper::Default (); > YansWifiPhyHelper phy = YansWifiPhyHelper::Default (); > phy.SetChannel (channel.Create()); > > WifiHelper wifi = WifiHelper::Default (); > wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); > > NqosWifiMacHelper mac = NqosWifiMacHelper::Default (); > > Ssid ssid = Ssid ("ns-3-ssid"); > mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false)); > > NetDeviceContainer staDevices; > staDevices = wifi.Install (phy, mac, wifiStaNodes); > mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); > > NetDeviceContainer apDevices; > apDevices = wifi.Install (phy, mac, wifiApNode); > > NodeContainer p2pNodes; > p2pNodes.Add (wifiApNode); > p2pNodes.Create (1); > allNodes.Add (p2pNodes.Get (1)); > > PointToPointHelper pointToPoint; > pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); > pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); > > NetDeviceContainer p2pDevices; > p2pDevices = pointToPoint.Install (p2pNodes); > > NodeContainer csmaNodes; > csmaNodes.Add (p2pNodes.Get (1)); > csmaNodes.Create (1); > allNodes.Add (csmaNodes.Get (1)); > > CsmaHelper csma; > csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); > csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560))); > > NetDeviceContainer csmaDevices; > csmaDevices = csma.Install (csmaNodes); > > > MobilityHelper mobility; > mobility.SetPositionAllocator ("ns3::GridPositionAllocator", > "MinX", DoubleValue (20.0), > "MinY", DoubleValue (20.0), > "DeltaX", DoubleValue (10.0), > "DeltaY", DoubleValue (10.0), > "GridWidth", UintegerValue (10), > "LayoutType", StringValue ("RowFirst")); > mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", "Bounds", RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50)))); > mobility.Install (wifiStaNodes); > mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); > mobility.Install (wifiApNode); > AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10); > AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30); > AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50); > > ndn::StackHelper ndnHelper; > ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "500"); > ndnHelper.SetDefaultRoutes(true); > ndnHelper.InstallAll(); > > // Choosing forwarding strategy > ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", "/localhost/nfd/strategy/best-route"); // > ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", "/localhost/nfd/strategy/broadcast"); // > ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", "/localhost/nfd/strategy/broadcast"); // > ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; > ndnGlobalRoutingHelper.Install(wifiStaNodes); > ndnGlobalRoutingHelper.Install(wifiApNode); > ndnGlobalRoutingHelper.Install(csmaNodes); > > > // 4. Set up applications > > ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); > consumerHelper.SetPrefix("/test/prefix"); > consumerHelper.SetAttribute("Frequency", DoubleValue(1.0)); > consumerHelper.Install(wifiStaNodes.Get(0)); > > /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr"); > consumerHelper2.SetPrefix("/test/prefix"); > consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0)); > consumerHelper2.Install(wifiStaNodes.Get(1));*/ > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetPrefix("/"); > producerHelper.SetAttribute("PayloadSize", StringValue("700")); > producerHelper.Install(csmaNodes.Get(1)); > > ndn::GlobalRoutingHelper::CalculateRoutes(); > > Simulator::Stop (Seconds (10.0)); > > Simulator::Run (); > Simulator::Destroy (); > return 0; > } > > } > > int > main(int argc, char* argv[]) > { > return ns3::main(argc, argv); > } > From gonzalezcga at gmail.com Sun Jun 21 09:27:14 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Sun, 21 Jun 2015 18:27:14 +0200 Subject: [ndnSIM] Simulation error with NDN over Wireless In-Reply-To: References: Message-ID: Sorry Spyridon, next time I will do it as you suggest. I am getting the same problem reported in this website http://redmine.named-data.net/issues/1273 . Please let me know if I should modify something in order to fix this issue. Regards. On Sun, Jun 21, 2015 at 6:20 PM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Gustavo, > > please when you want us to review some code, include the source file as an > attachment. > > When you mentioned bug #1273, do you refer to NS3? > > Thank you. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > On Jun 20, 2015, at 5:20 PM, Gustavo Gonzalez > wrote: > > > > Hello, > > > > I am having a problem when I run a simulation of two wired nodes and an > access point with two nodes attached. The simulation is based on ndn but > when I try to check the transmitted and received packets in the python > interface in the access point node and in the other two wired ones the > simulation stops suddenly. The error is described below. > > > > I have checked and it seems to be a bug (bug#1273). > > > > I would really appreciate your help to try to solve this issue. > > > > Regards. > > > > ---------------------------- > > > > ERROR: > > > > Waf: Entering directory `/root/ndnSIM/ns-3/build' > > Waf: Leaving directory `/root/ndnSIM/ns-3/build' > > 'build' finished successfully (0.892s) > > > > ** (python:10730): WARNING **: The connection is closed > > Could not load icon applets-screenshooter due to missing gnomedesktop > Python module > > Could not load icon gnome-terminal due to missing gnomedesktop Python > module > > scanning topology: [0, 5) nodes... > > No OLSR > > > > ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: The > connection is closed > > No OLSR > > No OLSR > > terminate called after throwing an instance of 'ndn::tlv::Error' > > what(): Empty buffer during TLV processing > > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', > '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with > signal SIGIOT. Run it under a debugger to get more information (./waf --run > --command-template="gdb --args %s "). > > > > ---------------------------- > > > > CODE: > > > > #include "ns3/core-module.h" > > #include "ns3/point-to-point-module.h" > > #include "ns3/csma-module.h" > > #include "ns3/network-module.h" > > #include "ns3/applications-module.h" > > #include "ns3/wifi-module.h" > > #include "ns3/mobility-module.h" > > #include "ns3/internet-module.h" > > #include "ns3/netanim-module.h" > > #include "ns3/basic-energy-source.h" > > #include "ns3/simple-device-energy-model.h" > > #include "ns3/ndnSIM-module.h" > > > > using namespace std; > > > > namespace ns3 { > > > > int main (int argc, char *argv[]) { > > > > > Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", > StringValue("2200")); > > Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", > StringValue("2200")); > > Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", > StringValue("OfdmRate24Mbps")); > > > > uint32_t nWifi = 2; > > CommandLine cmd; > > cmd.AddValue ("nWifi", "Number of wifi devices", nWifi); > > > > cmd.Parse (argc, argv); > > NodeContainer allNodes; > > NodeContainer wifiStaNodes; > > wifiStaNodes.Create (nWifi); > > allNodes.Add (wifiStaNodes); > > NodeContainer wifiApNode; > > wifiApNode.Create (1); > > allNodes.Add (wifiApNode); > > > > > > YansWifiChannelHelper channel = YansWifiChannelHelper::Default (); > > YansWifiPhyHelper phy = YansWifiPhyHelper::Default (); > > phy.SetChannel (channel.Create()); > > > > WifiHelper wifi = WifiHelper::Default (); > > wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); > > > > NqosWifiMacHelper mac = NqosWifiMacHelper::Default (); > > > > Ssid ssid = Ssid ("ns-3-ssid"); > > mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), > "ActiveProbing", BooleanValue (false)); > > > > NetDeviceContainer staDevices; > > staDevices = wifi.Install (phy, mac, wifiStaNodes); > > mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); > > > > NetDeviceContainer apDevices; > > apDevices = wifi.Install (phy, mac, wifiApNode); > > > > NodeContainer p2pNodes; > > p2pNodes.Add (wifiApNode); > > p2pNodes.Create (1); > > allNodes.Add (p2pNodes.Get (1)); > > > > PointToPointHelper pointToPoint; > > pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); > > pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); > > > > NetDeviceContainer p2pDevices; > > p2pDevices = pointToPoint.Install (p2pNodes); > > > > NodeContainer csmaNodes; > > csmaNodes.Add (p2pNodes.Get (1)); > > csmaNodes.Create (1); > > allNodes.Add (csmaNodes.Get (1)); > > > > CsmaHelper csma; > > csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); > > csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560))); > > > > NetDeviceContainer csmaDevices; > > csmaDevices = csma.Install (csmaNodes); > > > > > > MobilityHelper mobility; > > mobility.SetPositionAllocator ("ns3::GridPositionAllocator", > > "MinX", DoubleValue (20.0), > > "MinY", DoubleValue (20.0), > > "DeltaX", DoubleValue (10.0), > > "DeltaY", DoubleValue (10.0), > > "GridWidth", UintegerValue (10), > > "LayoutType", StringValue ("RowFirst")); > > mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", "Bounds", > RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50)))); > > mobility.Install (wifiStaNodes); > > mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); > > mobility.Install (wifiApNode); > > AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10); > > AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30); > > AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50); > > > > ndn::StackHelper ndnHelper; > > ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "500"); > > ndnHelper.SetDefaultRoutes(true); > > ndnHelper.InstallAll(); > > > > // Choosing forwarding strategy > > ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", > "/localhost/nfd/strategy/best-route"); // > > ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", > "/localhost/nfd/strategy/broadcast"); // > > ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", > "/localhost/nfd/strategy/broadcast"); // > > ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; > > ndnGlobalRoutingHelper.Install(wifiStaNodes); > > ndnGlobalRoutingHelper.Install(wifiApNode); > > ndnGlobalRoutingHelper.Install(csmaNodes); > > > > > > // 4. Set up applications > > > > ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); > > consumerHelper.SetPrefix("/test/prefix"); > > consumerHelper.SetAttribute("Frequency", DoubleValue(1.0)); > > consumerHelper.Install(wifiStaNodes.Get(0)); > > > > /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr"); > > consumerHelper2.SetPrefix("/test/prefix"); > > consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0)); > > consumerHelper2.Install(wifiStaNodes.Get(1));*/ > > > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > > producerHelper.SetPrefix("/"); > > producerHelper.SetAttribute("PayloadSize", StringValue("700")); > > producerHelper.Install(csmaNodes.Get(1)); > > > > ndn::GlobalRoutingHelper::CalculateRoutes(); > > > > Simulator::Stop (Seconds (10.0)); > > > > Simulator::Run (); > > Simulator::Destroy (); > > return 0; > > } > > > > } > > > > int > > main(int argc, char* argv[]) > > { > > return ns3::main(argc, argv); > > } > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Sun Jun 21 09:31:58 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 21 Jun 2015 18:31:58 +0200 Subject: [ndnSIM] Simulation error with NDN over Wireless In-Reply-To: References: Message-ID: <80E854EF-EC58-4277-8038-0AA243F86D87@gmail.com> Gustavo, this bug was closed a year ago and it was not related to ndnSIM. In any case, I do not think that this is related to your case. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 21, 2015, at 6:27 PM, Gustavo Gonzalez wrote: > > Sorry Spyridon, > > next time I will do it as you suggest. > > I am getting the same problem reported in this website http://redmine.named-data.net/issues/1273 . > > Please let me know if I should modify something in order to fix this issue. > > Regards. > > On Sun, Jun 21, 2015 at 6:20 PM, Spyridon (Spyros) Mastorakis wrote: > Hi Gustavo, > > please when you want us to review some code, include the source file as an attachment. > > When you mentioned bug #1273, do you refer to NS3? > > Thank you. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > On Jun 20, 2015, at 5:20 PM, Gustavo Gonzalez wrote: > > > > Hello, > > > > I am having a problem when I run a simulation of two wired nodes and an access point with two nodes attached. The simulation is based on ndn but when I try to check the transmitted and received packets in the python interface in the access point node and in the other two wired ones the simulation stops suddenly. The error is described below. > > > > I have checked and it seems to be a bug (bug#1273). > > > > I would really appreciate your help to try to solve this issue. > > > > Regards. > > > > ---------------------------- > > > > ERROR: > > > > Waf: Entering directory `/root/ndnSIM/ns-3/build' > > Waf: Leaving directory `/root/ndnSIM/ns-3/build' > > 'build' finished successfully (0.892s) > > > > ** (python:10730): WARNING **: The connection is closed > > Could not load icon applets-screenshooter due to missing gnomedesktop Python module > > Could not load icon gnome-terminal due to missing gnomedesktop Python module > > scanning topology: [0, 5) nodes... > > No OLSR > > > > ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: The connection is closed > > No OLSR > > No OLSR > > terminate called after throwing an instance of 'ndn::tlv::Error' > > what(): Empty buffer during TLV processing > > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). > > > > ---------------------------- > > > > CODE: > > > > #include "ns3/core-module.h" > > #include "ns3/point-to-point-module.h" > > #include "ns3/csma-module.h" > > #include "ns3/network-module.h" > > #include "ns3/applications-module.h" > > #include "ns3/wifi-module.h" > > #include "ns3/mobility-module.h" > > #include "ns3/internet-module.h" > > #include "ns3/netanim-module.h" > > #include "ns3/basic-energy-source.h" > > #include "ns3/simple-device-energy-model.h" > > #include "ns3/ndnSIM-module.h" > > > > using namespace std; > > > > namespace ns3 { > > > > int main (int argc, char *argv[]) { > > > > Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200")); > > Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200")); > > Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue("OfdmRate24Mbps")); > > > > uint32_t nWifi = 2; > > CommandLine cmd; > > cmd.AddValue ("nWifi", "Number of wifi devices", nWifi); > > > > cmd.Parse (argc, argv); > > NodeContainer allNodes; > > NodeContainer wifiStaNodes; > > wifiStaNodes.Create (nWifi); > > allNodes.Add (wifiStaNodes); > > NodeContainer wifiApNode; > > wifiApNode.Create (1); > > allNodes.Add (wifiApNode); > > > > > > YansWifiChannelHelper channel = YansWifiChannelHelper::Default (); > > YansWifiPhyHelper phy = YansWifiPhyHelper::Default (); > > phy.SetChannel (channel.Create()); > > > > WifiHelper wifi = WifiHelper::Default (); > > wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); > > > > NqosWifiMacHelper mac = NqosWifiMacHelper::Default (); > > > > Ssid ssid = Ssid ("ns-3-ssid"); > > mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false)); > > > > NetDeviceContainer staDevices; > > staDevices = wifi.Install (phy, mac, wifiStaNodes); > > mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); > > > > NetDeviceContainer apDevices; > > apDevices = wifi.Install (phy, mac, wifiApNode); > > > > NodeContainer p2pNodes; > > p2pNodes.Add (wifiApNode); > > p2pNodes.Create (1); > > allNodes.Add (p2pNodes.Get (1)); > > > > PointToPointHelper pointToPoint; > > pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); > > pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); > > > > NetDeviceContainer p2pDevices; > > p2pDevices = pointToPoint.Install (p2pNodes); > > > > NodeContainer csmaNodes; > > csmaNodes.Add (p2pNodes.Get (1)); > > csmaNodes.Create (1); > > allNodes.Add (csmaNodes.Get (1)); > > > > CsmaHelper csma; > > csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); > > csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560))); > > > > NetDeviceContainer csmaDevices; > > csmaDevices = csma.Install (csmaNodes); > > > > > > MobilityHelper mobility; > > mobility.SetPositionAllocator ("ns3::GridPositionAllocator", > > "MinX", DoubleValue (20.0), > > "MinY", DoubleValue (20.0), > > "DeltaX", DoubleValue (10.0), > > "DeltaY", DoubleValue (10.0), > > "GridWidth", UintegerValue (10), > > "LayoutType", StringValue ("RowFirst")); > > mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", "Bounds", RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50)))); > > mobility.Install (wifiStaNodes); > > mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); > > mobility.Install (wifiApNode); > > AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10); > > AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30); > > AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50); > > > > ndn::StackHelper ndnHelper; > > ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "500"); > > ndnHelper.SetDefaultRoutes(true); > > ndnHelper.InstallAll(); > > > > // Choosing forwarding strategy > > ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", "/localhost/nfd/strategy/best-route"); // > > ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", "/localhost/nfd/strategy/broadcast"); // > > ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", "/localhost/nfd/strategy/broadcast"); // > > ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; > > ndnGlobalRoutingHelper.Install(wifiStaNodes); > > ndnGlobalRoutingHelper.Install(wifiApNode); > > ndnGlobalRoutingHelper.Install(csmaNodes); > > > > > > // 4. Set up applications > > > > ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); > > consumerHelper.SetPrefix("/test/prefix"); > > consumerHelper.SetAttribute("Frequency", DoubleValue(1.0)); > > consumerHelper.Install(wifiStaNodes.Get(0)); > > > > /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr"); > > consumerHelper2.SetPrefix("/test/prefix"); > > consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0)); > > consumerHelper2.Install(wifiStaNodes.Get(1));*/ > > > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > > producerHelper.SetPrefix("/"); > > producerHelper.SetAttribute("PayloadSize", StringValue("700")); > > producerHelper.Install(csmaNodes.Get(1)); > > > > ndn::GlobalRoutingHelper::CalculateRoutes(); > > > > Simulator::Stop (Seconds (10.0)); > > > > Simulator::Run (); > > Simulator::Destroy (); > > return 0; > > } > > > > } > > > > int > > main(int argc, char* argv[]) > > { > > return ns3::main(argc, argv); > > } > > > > > > From spiros.mastorakis at gmail.com Sun Jun 21 09:35:54 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 21 Jun 2015 18:35:54 +0200 Subject: [ndnSIM] Add openssl into .... In-Reply-To: <5581AC93.3050709@gmail.com> References: <5581AC93.3050709@gmail.com> Message-ID: <260A3F9D-8FB9-478E-B24D-AB3BA9CCBC83@gmail.com> Hi Trade, you do not need to use openssl. ndnSIM uses ndn-cxx that implements its own crypto primitives. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 17, 2015, at 7:21 PM, Trade wrote: > > Hi, > May I ask how and which file to add openssl ? > It keeps showing error message that EVP parameters undefined. > I have it successfully installed under /usr/include/openssl > > Thanks. > Trade > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Sun Jun 21 09:38:51 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 21 Jun 2015 18:38:51 +0200 Subject: [ndnSIM] Mobility in NDN In-Reply-To: <1202327763.2799868.1434798064554.JavaMail.yahoo@mail.yahoo.com> References: <1202327763.2799868.1434798064554.JavaMail.yahoo@mail.yahoo.com> Message-ID: Hi, you can take a look at this example: https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-simple-wifi.cpp The mobility model for this case is constant, but you can use another one. There are some mobility models offered by NS3. You may take a look at the NS3 documentation: https://www.nsnam.org/docs/models/html/mobility.html Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 20, 2015, at 1:01 PM, Samira Moosavi wrote: > > Hi > > . > > I want to have a code which implements mobility of consumer in Named Data Network by ndnSIM that it's topology include > simple networking scenario with one mobile endpoint ( consumer) and one static endpoint (producer) with three Autonomous Systems(ASs). > can any one help me? > > Thanks > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From gonzalezcga at gmail.com Sun Jun 21 09:39:30 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Sun, 21 Jun 2015 18:39:30 +0200 Subject: [ndnSIM] Simulation error with NDN over Wireless In-Reply-To: <80E854EF-EC58-4277-8038-0AA243F86D87@gmail.com> References: <80E854EF-EC58-4277-8038-0AA243F86D87@gmail.com> Message-ID: Spyridon but do you know what could be the reason of the problem in my simulation?? Everytime that I try to run it starts without any problem but when I try to check in the node the flow of interests and contents. It works in the nodes attached to the wireless AP but if I want to check the same in the wireless AP node, p2p node and csma node the program stops suddenly and shows me the following error: *terminate called after throwing an instance of 'ndn::tlv::Error' what(): Empty buffer during TLV processingCommand ['/root/ndnSIM/ns-3/build/**scratch/sim05_1', '--**SimulatorImplementationType=**ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s ").* If you could provide me some hints to fix it I would appreciate it. Regards. On Sun, Jun 21, 2015 at 6:31 PM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Gustavo, > > this bug was closed a year ago and it was not related to ndnSIM. > > In any case, I do not think that this is related to your case. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 21, 2015, at 6:27 PM, Gustavo Gonzalez > wrote: > > > > Sorry Spyridon, > > > > next time I will do it as you suggest. > > > > I am getting the same problem reported in this website > http://redmine.named-data.net/issues/1273 . > > > > Please let me know if I should modify something in order to fix this > issue. > > > > Regards. > > > > On Sun, Jun 21, 2015 at 6:20 PM, Spyridon (Spyros) Mastorakis < > spiros.mastorakis at gmail.com> wrote: > > Hi Gustavo, > > > > please when you want us to review some code, include the source file as > an attachment. > > > > When you mentioned bug #1273, do you refer to NS3? > > > > Thank you. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > On Jun 20, 2015, at 5:20 PM, Gustavo Gonzalez > wrote: > > > > > > Hello, > > > > > > I am having a problem when I run a simulation of two wired nodes and > an access point with two nodes attached. The simulation is based on ndn but > when I try to check the transmitted and received packets in the python > interface in the access point node and in the other two wired ones the > simulation stops suddenly. The error is described below. > > > > > > I have checked and it seems to be a bug (bug#1273). > > > > > > I would really appreciate your help to try to solve this issue. > > > > > > Regards. > > > > > > ---------------------------- > > > > > > ERROR: > > > > > > Waf: Entering directory `/root/ndnSIM/ns-3/build' > > > Waf: Leaving directory `/root/ndnSIM/ns-3/build' > > > 'build' finished successfully (0.892s) > > > > > > ** (python:10730): WARNING **: The connection is closed > > > Could not load icon applets-screenshooter due to missing gnomedesktop > Python module > > > Could not load icon gnome-terminal due to missing gnomedesktop Python > module > > > scanning topology: [0, 5) nodes... > > > No OLSR > > > > > > ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: The > connection is closed > > > No OLSR > > > No OLSR > > > terminate called after throwing an instance of 'ndn::tlv::Error' > > > what(): Empty buffer during TLV processing > > > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', > '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with > signal SIGIOT. Run it under a debugger to get more information (./waf --run > --command-template="gdb --args %s "). > > > > > > ---------------------------- > > > > > > CODE: > > > > > > #include "ns3/core-module.h" > > > #include "ns3/point-to-point-module.h" > > > #include "ns3/csma-module.h" > > > #include "ns3/network-module.h" > > > #include "ns3/applications-module.h" > > > #include "ns3/wifi-module.h" > > > #include "ns3/mobility-module.h" > > > #include "ns3/internet-module.h" > > > #include "ns3/netanim-module.h" > > > #include "ns3/basic-energy-source.h" > > > #include "ns3/simple-device-energy-model.h" > > > #include "ns3/ndnSIM-module.h" > > > > > > using namespace std; > > > > > > namespace ns3 { > > > > > > int main (int argc, char *argv[]) { > > > > > > > Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", > StringValue("2200")); > > > Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", > StringValue("2200")); > > > Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", > StringValue("OfdmRate24Mbps")); > > > > > > uint32_t nWifi = 2; > > > CommandLine cmd; > > > cmd.AddValue ("nWifi", "Number of wifi devices", nWifi); > > > > > > cmd.Parse (argc, argv); > > > NodeContainer allNodes; > > > NodeContainer wifiStaNodes; > > > wifiStaNodes.Create (nWifi); > > > allNodes.Add (wifiStaNodes); > > > NodeContainer wifiApNode; > > > wifiApNode.Create (1); > > > allNodes.Add (wifiApNode); > > > > > > > > > YansWifiChannelHelper channel = YansWifiChannelHelper::Default (); > > > YansWifiPhyHelper phy = YansWifiPhyHelper::Default (); > > > phy.SetChannel (channel.Create()); > > > > > > WifiHelper wifi = WifiHelper::Default (); > > > wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); > > > > > > NqosWifiMacHelper mac = NqosWifiMacHelper::Default (); > > > > > > Ssid ssid = Ssid ("ns-3-ssid"); > > > mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), > "ActiveProbing", BooleanValue (false)); > > > > > > NetDeviceContainer staDevices; > > > staDevices = wifi.Install (phy, mac, wifiStaNodes); > > > mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); > > > > > > NetDeviceContainer apDevices; > > > apDevices = wifi.Install (phy, mac, wifiApNode); > > > > > > NodeContainer p2pNodes; > > > p2pNodes.Add (wifiApNode); > > > p2pNodes.Create (1); > > > allNodes.Add (p2pNodes.Get (1)); > > > > > > PointToPointHelper pointToPoint; > > > pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); > > > pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); > > > > > > NetDeviceContainer p2pDevices; > > > p2pDevices = pointToPoint.Install (p2pNodes); > > > > > > NodeContainer csmaNodes; > > > csmaNodes.Add (p2pNodes.Get (1)); > > > csmaNodes.Create (1); > > > allNodes.Add (csmaNodes.Get (1)); > > > > > > CsmaHelper csma; > > > csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); > > > csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560))); > > > > > > NetDeviceContainer csmaDevices; > > > csmaDevices = csma.Install (csmaNodes); > > > > > > > > > MobilityHelper mobility; > > > mobility.SetPositionAllocator ("ns3::GridPositionAllocator", > > > "MinX", DoubleValue (20.0), > > > "MinY", DoubleValue (20.0), > > > "DeltaX", DoubleValue (10.0), > > > "DeltaY", DoubleValue (10.0), > > > "GridWidth", UintegerValue (10), > > > "LayoutType", StringValue ("RowFirst")); > > > mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", "Bounds", > RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50)))); > > > mobility.Install (wifiStaNodes); > > > mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); > > > mobility.Install (wifiApNode); > > > AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10); > > > AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30); > > > AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50); > > > > > > ndn::StackHelper ndnHelper; > > > ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "500"); > > > ndnHelper.SetDefaultRoutes(true); > > > ndnHelper.InstallAll(); > > > > > > // Choosing forwarding strategy > > > ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", > "/localhost/nfd/strategy/best-route"); // > > > ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", > "/localhost/nfd/strategy/broadcast"); // > > > ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", > "/localhost/nfd/strategy/broadcast"); // > > > ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; > > > ndnGlobalRoutingHelper.Install(wifiStaNodes); > > > ndnGlobalRoutingHelper.Install(wifiApNode); > > > ndnGlobalRoutingHelper.Install(csmaNodes); > > > > > > > > > // 4. Set up applications > > > > > > ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); > > > consumerHelper.SetPrefix("/test/prefix"); > > > consumerHelper.SetAttribute("Frequency", DoubleValue(1.0)); > > > consumerHelper.Install(wifiStaNodes.Get(0)); > > > > > > /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr"); > > > consumerHelper2.SetPrefix("/test/prefix"); > > > consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0)); > > > consumerHelper2.Install(wifiStaNodes.Get(1));*/ > > > > > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > > > producerHelper.SetPrefix("/"); > > > producerHelper.SetAttribute("PayloadSize", StringValue("700")); > > > producerHelper.Install(csmaNodes.Get(1)); > > > > > > ndn::GlobalRoutingHelper::CalculateRoutes(); > > > > > > Simulator::Stop (Seconds (10.0)); > > > > > > Simulator::Run (); > > > Simulator::Destroy (); > > > return 0; > > > } > > > > > > } > > > > > > int > > > main(int argc, char* argv[]) > > > { > > > return ns3::main(argc, argv); > > > } > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Sun Jun 21 09:43:37 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sun, 21 Jun 2015 18:43:37 +0200 Subject: [ndnSIM] Simulation error with NDN over Wireless In-Reply-To: References: <80E854EF-EC58-4277-8038-0AA243F86D87@gmail.com> Message-ID: <0BC7EDE6-F740-4ACF-AE62-297E2233726C@gmail.com> You could run the debugger and find where the exact runtime error occurs and what exactly this error is. Moreover, you could use the tracers instead of the visualizer. The particular visualizer is a very unstable component of NS3. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 21, 2015, at 6:39 PM, Gustavo Gonzalez wrote: > > Spyridon but do you know what could be the reason of the problem in my simulation?? > > Everytime that I try to run it starts without any problem but when I try to check in the node the flow of interests and contents. It works in the nodes attached to the wireless AP but if I want to check the same in the wireless AP node, p2p node and csma node the program stops suddenly and shows me the following error: > > terminate called after throwing an instance of 'ndn::tlv::Error' > what(): Empty buffer during TLV processing > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). > > If you could provide me some hints to fix it I would appreciate it. > > Regards. > > > > On Sun, Jun 21, 2015 at 6:31 PM, Spyridon (Spyros) Mastorakis wrote: > Gustavo, > > this bug was closed a year ago and it was not related to ndnSIM. > > In any case, I do not think that this is related to your case. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 21, 2015, at 6:27 PM, Gustavo Gonzalez wrote: > > > > Sorry Spyridon, > > > > next time I will do it as you suggest. > > > > I am getting the same problem reported in this website http://redmine.named-data.net/issues/1273 . > > > > Please let me know if I should modify something in order to fix this issue. > > > > Regards. > > > > On Sun, Jun 21, 2015 at 6:20 PM, Spyridon (Spyros) Mastorakis wrote: > > Hi Gustavo, > > > > please when you want us to review some code, include the source file as an attachment. > > > > When you mentioned bug #1273, do you refer to NS3? > > > > Thank you. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > On Jun 20, 2015, at 5:20 PM, Gustavo Gonzalez wrote: > > > > > > Hello, > > > > > > I am having a problem when I run a simulation of two wired nodes and an access point with two nodes attached. The simulation is based on ndn but when I try to check the transmitted and received packets in the python interface in the access point node and in the other two wired ones the simulation stops suddenly. The error is described below. > > > > > > I have checked and it seems to be a bug (bug#1273). > > > > > > I would really appreciate your help to try to solve this issue. > > > > > > Regards. > > > > > > ---------------------------- > > > > > > ERROR: > > > > > > Waf: Entering directory `/root/ndnSIM/ns-3/build' > > > Waf: Leaving directory `/root/ndnSIM/ns-3/build' > > > 'build' finished successfully (0.892s) > > > > > > ** (python:10730): WARNING **: The connection is closed > > > Could not load icon applets-screenshooter due to missing gnomedesktop Python module > > > Could not load icon gnome-terminal due to missing gnomedesktop Python module > > > scanning topology: [0, 5) nodes... > > > No OLSR > > > > > > ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: The connection is closed > > > No OLSR > > > No OLSR > > > terminate called after throwing an instance of 'ndn::tlv::Error' > > > what(): Empty buffer during TLV processing > > > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s "). > > > > > > ---------------------------- > > > > > > CODE: > > > > > > #include "ns3/core-module.h" > > > #include "ns3/point-to-point-module.h" > > > #include "ns3/csma-module.h" > > > #include "ns3/network-module.h" > > > #include "ns3/applications-module.h" > > > #include "ns3/wifi-module.h" > > > #include "ns3/mobility-module.h" > > > #include "ns3/internet-module.h" > > > #include "ns3/netanim-module.h" > > > #include "ns3/basic-energy-source.h" > > > #include "ns3/simple-device-energy-model.h" > > > #include "ns3/ndnSIM-module.h" > > > > > > using namespace std; > > > > > > namespace ns3 { > > > > > > int main (int argc, char *argv[]) { > > > > > > Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200")); > > > Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200")); > > > Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue("OfdmRate24Mbps")); > > > > > > uint32_t nWifi = 2; > > > CommandLine cmd; > > > cmd.AddValue ("nWifi", "Number of wifi devices", nWifi); > > > > > > cmd.Parse (argc, argv); > > > NodeContainer allNodes; > > > NodeContainer wifiStaNodes; > > > wifiStaNodes.Create (nWifi); > > > allNodes.Add (wifiStaNodes); > > > NodeContainer wifiApNode; > > > wifiApNode.Create (1); > > > allNodes.Add (wifiApNode); > > > > > > > > > YansWifiChannelHelper channel = YansWifiChannelHelper::Default (); > > > YansWifiPhyHelper phy = YansWifiPhyHelper::Default (); > > > phy.SetChannel (channel.Create()); > > > > > > WifiHelper wifi = WifiHelper::Default (); > > > wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); > > > > > > NqosWifiMacHelper mac = NqosWifiMacHelper::Default (); > > > > > > Ssid ssid = Ssid ("ns-3-ssid"); > > > mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false)); > > > > > > NetDeviceContainer staDevices; > > > staDevices = wifi.Install (phy, mac, wifiStaNodes); > > > mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); > > > > > > NetDeviceContainer apDevices; > > > apDevices = wifi.Install (phy, mac, wifiApNode); > > > > > > NodeContainer p2pNodes; > > > p2pNodes.Add (wifiApNode); > > > p2pNodes.Create (1); > > > allNodes.Add (p2pNodes.Get (1)); > > > > > > PointToPointHelper pointToPoint; > > > pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); > > > pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); > > > > > > NetDeviceContainer p2pDevices; > > > p2pDevices = pointToPoint.Install (p2pNodes); > > > > > > NodeContainer csmaNodes; > > > csmaNodes.Add (p2pNodes.Get (1)); > > > csmaNodes.Create (1); > > > allNodes.Add (csmaNodes.Get (1)); > > > > > > CsmaHelper csma; > > > csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); > > > csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560))); > > > > > > NetDeviceContainer csmaDevices; > > > csmaDevices = csma.Install (csmaNodes); > > > > > > > > > MobilityHelper mobility; > > > mobility.SetPositionAllocator ("ns3::GridPositionAllocator", > > > "MinX", DoubleValue (20.0), > > > "MinY", DoubleValue (20.0), > > > "DeltaX", DoubleValue (10.0), > > > "DeltaY", DoubleValue (10.0), > > > "GridWidth", UintegerValue (10), > > > "LayoutType", StringValue ("RowFirst")); > > > mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", "Bounds", RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50)))); > > > mobility.Install (wifiStaNodes); > > > mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); > > > mobility.Install (wifiApNode); > > > AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10); > > > AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30); > > > AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50); > > > > > > ndn::StackHelper ndnHelper; > > > ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "500"); > > > ndnHelper.SetDefaultRoutes(true); > > > ndnHelper.InstallAll(); > > > > > > // Choosing forwarding strategy > > > ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", "/localhost/nfd/strategy/best-route"); // > > > ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", "/localhost/nfd/strategy/broadcast"); // > > > ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", "/localhost/nfd/strategy/broadcast"); // > > > ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; > > > ndnGlobalRoutingHelper.Install(wifiStaNodes); > > > ndnGlobalRoutingHelper.Install(wifiApNode); > > > ndnGlobalRoutingHelper.Install(csmaNodes); > > > > > > > > > // 4. Set up applications > > > > > > ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); > > > consumerHelper.SetPrefix("/test/prefix"); > > > consumerHelper.SetAttribute("Frequency", DoubleValue(1.0)); > > > consumerHelper.Install(wifiStaNodes.Get(0)); > > > > > > /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr"); > > > consumerHelper2.SetPrefix("/test/prefix"); > > > consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0)); > > > consumerHelper2.Install(wifiStaNodes.Get(1));*/ > > > > > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > > > producerHelper.SetPrefix("/"); > > > producerHelper.SetAttribute("PayloadSize", StringValue("700")); > > > producerHelper.Install(csmaNodes.Get(1)); > > > > > > ndn::GlobalRoutingHelper::CalculateRoutes(); > > > > > > Simulator::Stop (Seconds (10.0)); > > > > > > Simulator::Run (); > > > Simulator::Destroy (); > > > return 0; > > > } > > > > > > } > > > > > > int > > > main(int argc, char* argv[]) > > > { > > > return ns3::main(argc, argv); > > > } > > > > > > > > > > > > > From gonzalezcga at gmail.com Sun Jun 21 09:47:15 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Sun, 21 Jun 2015 18:47:15 +0200 Subject: [ndnSIM] Simulation error with NDN over Wireless In-Reply-To: <0BC7EDE6-F740-4ACF-AE62-297E2233726C@gmail.com> References: <80E854EF-EC58-4277-8038-0AA243F86D87@gmail.com> <0BC7EDE6-F740-4ACF-AE62-297E2233726C@gmail.com> Message-ID: Thanks, I will do what you suggest and later I will comment the results. Regards. On Sun, Jun 21, 2015 at 6:43 PM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > You could run the debugger and find where the exact runtime error occurs > and what exactly this error is. > > Moreover, you could use the tracers instead of the visualizer. The > particular visualizer is a very unstable component of NS3. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > > On Jun 21, 2015, at 6:39 PM, Gustavo Gonzalez > wrote: > > > > Spyridon but do you know what could be the reason of the problem in my > simulation?? > > > > Everytime that I try to run it starts without any problem but when I try > to check in the node the flow of interests and contents. It works in the > nodes attached to the wireless AP but if I want to check the same in the > wireless AP node, p2p node and csma node the program stops suddenly and > shows me the following error: > > > > terminate called after throwing an instance of 'ndn::tlv::Error' > > what(): Empty buffer during TLV processing > > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', > '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with > signal SIGIOT. Run it under a debugger to get more information (./waf --run > --command-template="gdb --args %s "). > > > > If you could provide me some hints to fix it I would appreciate it. > > > > Regards. > > > > > > > > On Sun, Jun 21, 2015 at 6:31 PM, Spyridon (Spyros) Mastorakis < > spiros.mastorakis at gmail.com> wrote: > > Gustavo, > > > > this bug was closed a year ago and it was not related to ndnSIM. > > > > In any case, I do not think that this is related to your case. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > > > On Jun 21, 2015, at 6:27 PM, Gustavo Gonzalez > wrote: > > > > > > Sorry Spyridon, > > > > > > next time I will do it as you suggest. > > > > > > I am getting the same problem reported in this website > http://redmine.named-data.net/issues/1273 . > > > > > > Please let me know if I should modify something in order to fix this > issue. > > > > > > Regards. > > > > > > On Sun, Jun 21, 2015 at 6:20 PM, Spyridon (Spyros) Mastorakis < > spiros.mastorakis at gmail.com> wrote: > > > Hi Gustavo, > > > > > > please when you want us to review some code, include the source file > as an attachment. > > > > > > When you mentioned bug #1273, do you refer to NS3? > > > > > > Thank you. > > > > > > -- > > > Spyridon (Spyros) Mastorakis > > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > > Internet Research Laboratory > > > PhD Computer Science > > > UCLA > > > > > > > > > > On Jun 20, 2015, at 5:20 PM, Gustavo Gonzalez > wrote: > > > > > > > > Hello, > > > > > > > > I am having a problem when I run a simulation of two wired nodes and > an access point with two nodes attached. The simulation is based on ndn but > when I try to check the transmitted and received packets in the python > interface in the access point node and in the other two wired ones the > simulation stops suddenly. The error is described below. > > > > > > > > I have checked and it seems to be a bug (bug#1273). > > > > > > > > I would really appreciate your help to try to solve this issue. > > > > > > > > Regards. > > > > > > > > ---------------------------- > > > > > > > > ERROR: > > > > > > > > Waf: Entering directory `/root/ndnSIM/ns-3/build' > > > > Waf: Leaving directory `/root/ndnSIM/ns-3/build' > > > > 'build' finished successfully (0.892s) > > > > > > > > ** (python:10730): WARNING **: The connection is closed > > > > Could not load icon applets-screenshooter due to missing > gnomedesktop Python module > > > > Could not load icon gnome-terminal due to missing gnomedesktop > Python module > > > > scanning topology: [0, 5) nodes... > > > > No OLSR > > > > > > > > ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: > The connection is closed > > > > No OLSR > > > > No OLSR > > > > terminate called after throwing an instance of 'ndn::tlv::Error' > > > > what(): Empty buffer during TLV processing > > > > Command ['/root/ndnSIM/ns-3/build/scratch/sim05_1', > '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with > signal SIGIOT. Run it under a debugger to get more information (./waf --run > --command-template="gdb --args %s "). > > > > > > > > ---------------------------- > > > > > > > > CODE: > > > > > > > > #include "ns3/core-module.h" > > > > #include "ns3/point-to-point-module.h" > > > > #include "ns3/csma-module.h" > > > > #include "ns3/network-module.h" > > > > #include "ns3/applications-module.h" > > > > #include "ns3/wifi-module.h" > > > > #include "ns3/mobility-module.h" > > > > #include "ns3/internet-module.h" > > > > #include "ns3/netanim-module.h" > > > > #include "ns3/basic-energy-source.h" > > > > #include "ns3/simple-device-energy-model.h" > > > > #include "ns3/ndnSIM-module.h" > > > > > > > > using namespace std; > > > > > > > > namespace ns3 { > > > > > > > > int main (int argc, char *argv[]) { > > > > > > > > > Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", > StringValue("2200")); > > > > Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", > StringValue("2200")); > > > > Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", > StringValue("OfdmRate24Mbps")); > > > > > > > > uint32_t nWifi = 2; > > > > CommandLine cmd; > > > > cmd.AddValue ("nWifi", "Number of wifi devices", nWifi); > > > > > > > > cmd.Parse (argc, argv); > > > > NodeContainer allNodes; > > > > NodeContainer wifiStaNodes; > > > > wifiStaNodes.Create (nWifi); > > > > allNodes.Add (wifiStaNodes); > > > > NodeContainer wifiApNode; > > > > wifiApNode.Create (1); > > > > allNodes.Add (wifiApNode); > > > > > > > > > > > > YansWifiChannelHelper channel = YansWifiChannelHelper::Default (); > > > > YansWifiPhyHelper phy = YansWifiPhyHelper::Default (); > > > > phy.SetChannel (channel.Create()); > > > > > > > > WifiHelper wifi = WifiHelper::Default (); > > > > wifi.SetRemoteStationManager ("ns3::AarfWifiManager"); > > > > > > > > NqosWifiMacHelper mac = NqosWifiMacHelper::Default (); > > > > > > > > Ssid ssid = Ssid ("ns-3-ssid"); > > > > mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), > "ActiveProbing", BooleanValue (false)); > > > > > > > > NetDeviceContainer staDevices; > > > > staDevices = wifi.Install (phy, mac, wifiStaNodes); > > > > mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid)); > > > > > > > > NetDeviceContainer apDevices; > > > > apDevices = wifi.Install (phy, mac, wifiApNode); > > > > > > > > NodeContainer p2pNodes; > > > > p2pNodes.Add (wifiApNode); > > > > p2pNodes.Create (1); > > > > allNodes.Add (p2pNodes.Get (1)); > > > > > > > > PointToPointHelper pointToPoint; > > > > pointToPoint.SetDeviceAttribute ("DataRate", StringValue > ("5Mbps")); > > > > pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); > > > > > > > > NetDeviceContainer p2pDevices; > > > > p2pDevices = pointToPoint.Install (p2pNodes); > > > > > > > > NodeContainer csmaNodes; > > > > csmaNodes.Add (p2pNodes.Get (1)); > > > > csmaNodes.Create (1); > > > > allNodes.Add (csmaNodes.Get (1)); > > > > > > > > CsmaHelper csma; > > > > csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps")); > > > > csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560))); > > > > > > > > NetDeviceContainer csmaDevices; > > > > csmaDevices = csma.Install (csmaNodes); > > > > > > > > > > > > MobilityHelper mobility; > > > > mobility.SetPositionAllocator ("ns3::GridPositionAllocator", > > > > "MinX", DoubleValue (20.0), > > > > "MinY", DoubleValue (20.0), > > > > "DeltaX", DoubleValue (10.0), > > > > "DeltaY", DoubleValue (10.0), > > > > "GridWidth", UintegerValue (10), > > > > "LayoutType", StringValue ("RowFirst")); > > > > mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", > "Bounds", RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50)))); > > > > mobility.Install (wifiStaNodes); > > > > mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); > > > > mobility.Install (wifiApNode); > > > > AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10); > > > > AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30); > > > > AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50); > > > > > > > > ndn::StackHelper ndnHelper; > > > > ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", > "500"); > > > > ndnHelper.SetDefaultRoutes(true); > > > > ndnHelper.InstallAll(); > > > > > > > > // Choosing forwarding strategy > > > > ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", > "/localhost/nfd/strategy/best-route"); // > > > > ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", > "/localhost/nfd/strategy/broadcast"); // > > > > ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", > "/localhost/nfd/strategy/broadcast"); // > > > > ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; > > > > ndnGlobalRoutingHelper.Install(wifiStaNodes); > > > > ndnGlobalRoutingHelper.Install(wifiApNode); > > > > ndnGlobalRoutingHelper.Install(csmaNodes); > > > > > > > > > > > > // 4. Set up applications > > > > > > > > ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); > > > > consumerHelper.SetPrefix("/test/prefix"); > > > > consumerHelper.SetAttribute("Frequency", DoubleValue(1.0)); > > > > consumerHelper.Install(wifiStaNodes.Get(0)); > > > > > > > > /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr"); > > > > consumerHelper2.SetPrefix("/test/prefix"); > > > > consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0)); > > > > consumerHelper2.Install(wifiStaNodes.Get(1));*/ > > > > > > > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > > > > producerHelper.SetPrefix("/"); > > > > producerHelper.SetAttribute("PayloadSize", StringValue("700")); > > > > producerHelper.Install(csmaNodes.Get(1)); > > > > > > > > ndn::GlobalRoutingHelper::CalculateRoutes(); > > > > > > > > Simulator::Stop (Seconds (10.0)); > > > > > > > > Simulator::Run (); > > > > Simulator::Destroy (); > > > > return 0; > > > > } > > > > > > > > } > > > > > > > > int > > > > main(int argc, char* argv[]) > > > > { > > > > return ns3::main(argc, argv); > > > > } > > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elisam at inf.ufpr.br Tue Jun 23 06:09:46 2015 From: elisam at inf.ufpr.br (Elisa Mannes) Date: Tue, 23 Jun 2015 10:09:46 -0300 Subject: [ndnSIM] Full name requested, but Data packet does not have wire format error Message-ID: Hello all, ?I am simulating a simple producer/consumer scenario with 2914.r0-conv-annotated topology and I am getting the following error:? terminate called after throwing an instance of 'ndn::Data::Error' what(): Full name requested, but Data packet does not have wire format (e.g., not signed) This error happens when the same consumer requests the same file in a short period of time. I found a related problem here http://gerrit.named-data.net/#/c/1484/1/tests/other/cs-smoketest.cpp but I am not sure how to solve my problem with this information. I am using ndnSim 2.0. Could you help me? Thanks in advance, Elisa -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue Jun 23 06:38:31 2015 From: spiros.mastorakis at gmail.com (Spiros Mastorakis) Date: Tue, 23 Jun 2015 06:38:31 -0700 Subject: [ndnSIM] Full name requested, but Data packet does not have wire format error In-Reply-To: References: Message-ID: Hi Elisa, as it is mentioned in the error message, the data packets may have not been signed properly or their wire format has not been created properly. Do you have any specific reasons that you would like to acquire the full name of a data packet? Have you modified any parts of the ndnSIM codebase? Thanks, Spyros On Tuesday, June 23, 2015, Elisa Mannes wrote: > Hello all, > > ?I am simulating a simple producer/consumer scenario with > 2914.r0-conv-annotated topology and I am getting the following error:? > > terminate called after throwing an instance of 'ndn::Data::Error' > what(): Full name requested, but Data packet does not have wire format > (e.g., not signed) > > This error happens when the same consumer requests the same file in a > short period of time. > > I found a related problem here > http://gerrit.named-data.net/#/c/1484/1/tests/other/cs-smoketest.cpp but > I am not sure how to solve my problem with this information. I am using > ndnSim 2.0. Could you help me? > > Thanks in advance, > Elisa > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elisam at inf.ufpr.br Tue Jun 23 08:18:29 2015 From: elisam at inf.ufpr.br (Elisa Mannes) Date: Tue, 23 Jun 2015 12:18:29 -0300 Subject: [ndnSIM] Full name requested, but Data packet does not have wire format error In-Reply-To: References: Message-ID: Hi Spyros, Thank you for your hint. I've managed to isolate the problem, now I wonder if you have some thoughts on how to fix it. Here is what is happening: I am changing signature field in each Data packet to match nonce value of its Interest (it is a workaround I need). I am placing this code on forwarder.cc, Forwarder::onIncomingInterest(Face& inFace, const Interest& interest) method, before the node send data to face in case of a cache hit: ndn::Signature signature; ndn::SignatureInfo signatureInfo(static_cast< ::ndn::tlv::SignatureTypeValue>(interest.getNonce())); signature.setInfo(signatureInfo); signature.setValue(Block(interest.getNonce())); I am doing something wrong here, since I've commented these lines and the error is gone. Do you spot anything unusual? Thanks! On Tue, Jun 23, 2015 at 10:38 AM, Spiros Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hi Elisa, > > as it is mentioned in the error message, the data packets may have not > been signed properly or their wire format has not been created properly. > > Do you have any specific reasons that you would like to acquire the full > name of a data packet? Have you modified any parts of the ndnSIM codebase? > > Thanks, > Spyros > > On Tuesday, June 23, 2015, Elisa Mannes wrote: > >> Hello all, >> >> ?I am simulating a simple producer/consumer scenario with >> 2914.r0-conv-annotated topology and I am getting the following error:? >> >> terminate called after throwing an instance of 'ndn::Data::Error' >> what(): Full name requested, but Data packet does not have wire format >> (e.g., not signed) >> >> This error happens when the same consumer requests the same file in a >> short period of time. >> >> I found a related problem here >> http://gerrit.named-data.net/#/c/1484/1/tests/other/cs-smoketest.cpp but >> I am not sure how to solve my problem with this information. I am using >> ndnSim 2.0. Could you help me? >> >> Thanks in advance, >> Elisa >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadekahn at clarkson.edu Wed Jun 24 12:11:32 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Wed, 24 Jun 2015 15:11:32 -0400 Subject: [ndnSIM] Looking for manuaaly FACE up/down from application Message-ID: Hi All, Is there any way to manually "on/off/disable/enable" faces from application for a particular time or event? Any suggestion will be appreciated. Thanks, Hitesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Wed Jun 24 12:13:09 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 24 Jun 2015 12:13:09 -0700 Subject: [ndnSIM] Looking for manuaaly FACE up/down from application In-Reply-To: References: Message-ID: Check http://ndnsim.net/2.0/helpers.html#link-control-helper This can emulate link going down/up. --- Alex > On Jun 24, 2015, at 12:11 PM, Hitesh Wadekar wrote: > > Hi All, > > > > Is there any way to manually "on/off/disable/enable" faces from application for a particular time or event? > > > > Any suggestion will be appreciated. > > > > Thanks, > > Hitesh > -------------- 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 wadekahn at clarkson.edu Wed Jun 24 18:21:08 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Wed, 24 Jun 2015 21:21:08 -0400 Subject: [ndnSIM] Looking for manuaaly FACE up/down from application In-Reply-To: References: Message-ID: Awesome. Thanks Alex. This will help me :) Regards, Hitesh On Wed, Jun 24, 2015 at 3:13 PM, Alex Afanasyev < alexander.afanasyev at ucla.edu> wrote: > Check http://ndnsim.net/2.0/helpers.html#link-control-helper > > This can emulate link going down/up. > > --- > Alex > > On Jun 24, 2015, at 12:11 PM, Hitesh Wadekar > wrote: > > Hi All, > > > Is there any way to manually "on/off/disable/enable" faces from > application for a particular time or event? > > > Any suggestion will be appreciated. > > > Thanks, > > Hitesh > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.kreuzberger at itec.aau.at Thu Jun 25 05:55:01 2015 From: christian.kreuzberger at itec.aau.at (Christian Kreuzberger) Date: Thu, 25 Jun 2015 14:55:01 +0200 Subject: [ndnSIM] Build fails (./waf) Message-ID: <006601d0af46$263feec0$72bfcc40$@itec.aau.at> Dear all, the problem of "error while loading shared libraries: libndn-cxx.so.0.3.2: cannot open shared object file: No such file or directory" can be easily fixed by editing ndnSIM wscript (usually found in ns-3/src/ndnSIM). Locate the line with "conf.check_cfg(package='libndn-cxx'.. ( see https://github.com/named-data/ndnSIM/blob/master/wscript#L31 ) and below that line append the following code: conf.env.append_value('NS3_MODULE_PATH',conf.env['LIBPATH_NDN_CXX']) The same fix should be working for the scenario template, though I haven't been able to verify that yet. Alternatively, modifying your LD_LIBRARY_PATH appropriately should work too. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu Jun 25 07:45:46 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 25 Jun 2015 16:45:46 +0200 Subject: [ndnSIM] Full name requested, but Data packet does not have wire format error In-Reply-To: References: Message-ID: Hi Elisa, I tried to reproduce the error, but everything works fine for me. Could you please send me as an attachment the source code of your scenario, so that I reproduce the error? Thank you. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 23, 2015, at 5:18 PM, Elisa Mannes wrote: > > Hi Spyros, > > Thank you for your hint. I've managed to isolate the problem, now I wonder if you have some thoughts on how to fix it. Here is what is happening: > > I am changing signature field in each Data packet to match nonce value of its Interest (it is a workaround I need). I am placing this code on forwarder.cc, Forwarder::onIncomingInterest(Face& inFace, const Interest& interest) method, before the node send data to face in case of a cache hit: > > ndn::Signature signature; > ndn::SignatureInfo signatureInfo(static_cast< ::ndn::tlv::SignatureTypeValue>(interest.getNonce())); > > signature.setInfo(signatureInfo); > signature.setValue(Block(interest.getNonce())); > > I am doing something wrong here, since I've commented these lines and the error is gone. Do you spot anything unusual? > > Thanks! > > On Tue, Jun 23, 2015 at 10:38 AM, Spiros Mastorakis wrote: > Hi Elisa, > > as it is mentioned in the error message, the data packets may have not been signed properly or their wire format has not been created properly. > > Do you have any specific reasons that you would like to acquire the full name of a data packet? Have you modified any parts of the ndnSIM codebase? > > Thanks, > Spyros > > On Tuesday, June 23, 2015, Elisa Mannes wrote: > Hello all, > > ?I am simulating a simple producer/consumer scenario with 2914.r0-conv-annotated topology and I am getting the following error:? > > terminate called after throwing an instance of 'ndn::Data::Error' > what(): Full name requested, but Data packet does not have wire format (e.g., not signed) > > This error happens when the same consumer requests the same file in a short period of time. > > I found a related problem here http://gerrit.named-data.net/#/c/1484/1/tests/other/cs-smoketest.cpp but I am not sure how to solve my problem with this information. I am using ndnSim 2.0. Could you help me? > > Thanks in advance, > Elisa > From ohnishi.ryota at jp.panasonic.com Fri Jun 26 03:36:59 2015 From: ohnishi.ryota at jp.panasonic.com (ohnishi.ryota at jp.panasonic.com) Date: Fri, 26 Jun 2015 10:36:59 +0000 Subject: [ndnSIM] =?iso-2022-jp?b?SG93IGNhbiBJIGdldCBQSVQgbGlzdCBpbiBGb3J3?= =?iso-2022-jp?b?YXJkZXIbJEIhKRsoQg==?= Message-ID: <1B331B82D02B1D438A8E1E4906CF418E089092@WEX00081.jp.corp.sanyo.com> Dear All, I want to check PIT list when data arrive to the router. So I added 2 lines to the onIncomingData part in forwarder.cpp. const nfd::Pit::const_iterator pit_iterator = m_pit.begin(); const pit::InRecordCollection& inRecords = (*pit_iterator).getInRecords(); But when I run the ndn-simple scenario, the process was terminated due to the segmentation fault which caused by getInRecords method. Could anyone tell me the appropriate way to check PIT list when data arrive on router? Thanks, Ryota Ohnishi Panasonic From gonzalezcga at gmail.com Fri Jun 26 05:34:47 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Fri, 26 Jun 2015 14:34:47 +0200 Subject: [ndnSIM] Abruptal interrumption of simulation Message-ID: 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 spiros.mastorakis at gmail.com Fri Jun 26 07:09:23 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 26 Jun 2015 17:09:23 +0300 Subject: [ndnSIM] =?utf-8?q?How_can_I_get_PIT_list_in_Forwarder=EF=BC=9F?= In-Reply-To: <1B331B82D02B1D438A8E1E4906CF418E089092@WEX00081.jp.corp.sanyo.com> References: <1B331B82D02B1D438A8E1E4906CF418E089092@WEX00081.jp.corp.sanyo.com> Message-ID: Hello, if you add these two lines of code at the beginning of the onIncomingData method, you will get a segmentation fault. I added these two lines at the end of the method and it worked fine. I am not sure why this happens, I will need to take a closer look at it. As a quick work-around, I would suggest the following: In order to get the PIT entries that are going to be satisfied by the particular data packet, you can use the following code line (forwarder.cpp:279): pit::DataMatchResult pitMatches = m_pit.findAllDataMatches(data); https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/forwarder.cpp#L279 Afterwards, you can use the two lines of code that you mentioned at the end of the method to get the remaining PIT entries. Please let me know shall you need anything else. Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 26, 2015, at 1:36 PM, ohnishi.ryota at jp.panasonic.com wrote: > > const nfd::Pit::const_iterator pit_iterator = m_pit.begin(); > const pit::InRecordCollection& inRecords = (*pit_iterator).getInRecords(); From spiros.mastorakis at gmail.com Fri Jun 26 07:16:03 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 26 Jun 2015 17:16:03 +0300 Subject: [ndnSIM] Abruptal interrumption of simulation In-Reply-To: References: Message-ID: <028EC386-F68C-49F9-BF93-E9ADF9C6339A@gmail.com> 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 gonzalezcga at gmail.com Fri Jun 26 08:30:13 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Fri, 26 Jun 2015 17:30:13 +0200 Subject: [ndnSIM] Abruptal interrumption of simulation In-Reply-To: <028EC386-F68C-49F9-BF93-E9ADF9C6339A@gmail.com> References: <028EC386-F68C-49F9-BF93-E9ADF9C6339A@gmail.com> Message-ID: 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 spiros.mastorakis at gmail.com Fri Jun 26 09:47:02 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 26 Jun 2015 19:47:02 +0300 Subject: [ndnSIM] Abruptal interrumption of simulation In-Reply-To: References: <028EC386-F68C-49F9-BF93-E9ADF9C6339A@gmail.com> Message-ID: <8504A861-F2DC-4C11-8EB1-163FC24998C7@gmail.com> Hmm.. This is the first time I hear about such an issue and I have no idea if it is a ndnSIM-related issue or it is related to NS3. Could you send me your scenario source code to take a look? I would suggest that you also send a high-level description to the NS3 mailing list to check with these guys as well. @Alex: Have you ever experienced such a behavior? Do you have any further clues? Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 26, 2015, at 6: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 wadekahn at clarkson.edu Sun Jun 28 05:23:08 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Sun, 28 Jun 2015 08:23:08 -0400 Subject: [ndnSIM] Looking for manuaaly FACE up/down from application In-Reply-To: References: Message-ID: Thank you Alex for the information. Here is update from me, I used that function to link down, however, I noticed that, rather just down the link, its been shutting down source node. For instance, void ns3::ndn::LinkControlHelper::FailLink(Ptr< Node > node1,Ptr< Node > node2 ) In above function case, node1, whole node is down not just the link. Any idea/thought about it? Thanks ! Regards, Hitesh On Wed, Jun 24, 2015 at 9:21 PM, Hitesh Wadekar wrote: > Awesome. > > Thanks Alex. This will help me :) > > Regards, > Hitesh > > On Wed, Jun 24, 2015 at 3:13 PM, Alex Afanasyev < > alexander.afanasyev at ucla.edu> wrote: > >> Check http://ndnsim.net/2.0/helpers.html#link-control-helper >> >> This can emulate link going down/up. >> >> --- >> Alex >> >> On Jun 24, 2015, at 12:11 PM, Hitesh Wadekar >> wrote: >> >> Hi All, >> >> >> Is there any way to manually "on/off/disable/enable" faces from >> application for a particular time or event? >> >> >> Any suggestion will be appreciated. >> >> >> Thanks, >> >> Hitesh >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Sun Jun 28 11:23:37 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sun, 28 Jun 2015 11:23:37 -0700 Subject: [ndnSIM] Looking for manuaaly FACE up/down from application In-Reply-To: References: Message-ID: Hi Hitesh, There was a small bug with LinkControllerHelper implementation that has been fixed in one of the recent commits (https://github.com/NDN-Routing/ndnSIM/commit/da325915a8109979875b214eb2c87678c42fcb21 ) --- Alex > On Jun 28, 2015, at 5:23 AM, Hitesh Wadekar wrote: > > Thank you Alex for the information. > > Here is update from me, > > I used that function to link down, however, I noticed that, rather just down the link, its been shutting down source node. For instance, > > void ns3::ndn::LinkControlHelper::FailLink ( Ptr< Node > node1, > Ptr< Node > node2 > ) > > In above function case, node1, whole node is down not just the link. > > Any idea/thought about it? > > Thanks ! > > Regards, > Hitesh > > > On Wed, Jun 24, 2015 at 9:21 PM, Hitesh Wadekar > wrote: > Awesome. > > Thanks Alex. This will help me :) > > Regards, > Hitesh > > On Wed, Jun 24, 2015 at 3:13 PM, Alex Afanasyev > wrote: > Check http://ndnsim.net/2.0/helpers.html#link-control-helper > > This can emulate link going down/up. > > --- > Alex > >> On Jun 24, 2015, at 12:11 PM, Hitesh Wadekar > wrote: >> >> Hi All, >> >> >> >> Is there any way to manually "on/off/disable/enable" faces from application for a particular time or event? >> >> >> >> Any suggestion will be appreciated. >> >> >> >> Thanks, >> >> Hitesh >> > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From wadekahn at clarkson.edu Sun Jun 28 19:14:04 2015 From: wadekahn at clarkson.edu (Hitesh Wadekar) Date: Sun, 28 Jun 2015 22:14:04 -0400 Subject: [ndnSIM] Looking for manuaaly FACE up/down from application In-Reply-To: References: Message-ID: Thanks Alex for the information. I will look at Iit and will let you know. On Jun 28, 2015 2:23 PM, "Alex Afanasyev" wrote: > Hi Hitesh, > > There was a small bug with LinkControllerHelper implementation that has > been fixed in one of the recent commits ( > https://github.com/NDN-Routing/ndnSIM/commit/da325915a8109979875b214eb2c87678c42fcb21 > ) > > --- > Alex > > On Jun 28, 2015, at 5:23 AM, Hitesh Wadekar wrote: > > Thank you Alex for the information. > > Here is update from me, > > I used that function to link down, however, I noticed that, rather just > down the link, its been shutting down source node. For instance, > > void ns3::ndn::LinkControlHelper::FailLink(Ptr< Node > node1,Ptr< Node > > node2 ) > > In above function case, node1, whole node is down not just the link. > > Any idea/thought about it? > > Thanks ! > > Regards, > Hitesh > > > On Wed, Jun 24, 2015 at 9:21 PM, Hitesh Wadekar > wrote: > >> Awesome. >> >> Thanks Alex. This will help me :) >> >> Regards, >> Hitesh >> >> On Wed, Jun 24, 2015 at 3:13 PM, Alex Afanasyev < >> alexander.afanasyev at ucla.edu> wrote: >> >>> Check http://ndnsim.net/2.0/helpers.html#link-control-helper >>> >>> This can emulate link going down/up. >>> >>> --- >>> Alex >>> >>> On Jun 24, 2015, at 12:11 PM, Hitesh Wadekar >>> wrote: >>> >>> Hi All, >>> >>> >>> Is there any way to manually "on/off/disable/enable" faces from >>> application for a particular time or event? >>> >>> >>> Any suggestion will be appreciated. >>> >>> >>> Thanks, >>> >>> Hitesh >>> >>> >>> >> > _______________________________________________ > 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 ohnishi.ryota at jp.panasonic.com Sun Jun 28 21:34:47 2015 From: ohnishi.ryota at jp.panasonic.com (ohnishi.ryota at jp.panasonic.com) Date: Mon, 29 Jun 2015 04:34:47 +0000 Subject: [ndnSIM] =?iso-2022-jp?b?SG93IGNhbiBJIGdldCBQSVQgbGlzdCBpbiBGb3J3?= =?iso-2022-jp?b?YXJkZXIbJEIhKRsoQg==?= In-Reply-To: References: <1B331B82D02B1D438A8E1E4906CF418E089092@WEX00081.jp.corp.sanyo.com> Message-ID: <1B331B82D02B1D438A8E1E4906CF418E089394@WEX00081.jp.corp.sanyo.com> Hello Spyridon, Thank you for your suggestion to move PIT log code to the other line. I moved my lines to just below these lines and it worked fine! const_cast(data).setIncomingFaceId(inFace.getId()); ++m_counters.getNInDatas(); So that I can now get PIT list in Forwarder. Thank you again for your advice. Ryota Ohnishi Panasonic -----Original Message----- From: Spyridon (Spyros) Mastorakis [mailto:spiros.mastorakis at gmail.com] Sent: Friday, June 26, 2015 11:09 PM To: Ohnishi, Ryota (?????) Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] How can I get PIT list in Forwarder? Hello, if you add these two lines of code at the beginning of the onIncomingData method, you will get a segmentation fault. I added these two lines at the end of the method and it worked fine. I am not sure why this happens, I will need to take a closer look at it. As a quick work-around, I would suggest the following: In order to get the PIT entries that are going to be satisfied by the particular data packet, you can use the following code line (forwarder.cpp:279): pit::DataMatchResult pitMatches = m_pit.findAllDataMatches(data); https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/forwarder.cpp#L279 Afterwards, you can use the two lines of code that you mentioned at the end of the method to get the remaining PIT entries. Please let me know shall you need anything else. Thanks. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Jun 26, 2015, at 1:36 PM, ohnishi.ryota at jp.panasonic.com wrote: > > const nfd::Pit::const_iterator pit_iterator = m_pit.begin(); const > pit::InRecordCollection& inRecords = (*pit_iterator).getInRecords(); From gonzalezcga at gmail.com Mon Jun 29 13:43:46 2015 From: gonzalezcga at gmail.com (Gustavo Gonzalez) Date: Mon, 29 Jun 2015 22:43:46 +0200 Subject: [ndnSIM] Abruptal interrumption of simulation In-Reply-To: References: <028EC386-F68C-49F9-BF93-E9ADF9C6339A@gmail.com> Message-ID: 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: sim01_problem.cc Type: text/x-c++src Size: 3660 bytes Desc: not available URL: From wonjunchoi001 at gmail.com Mon Jun 29 18:16:51 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Tue, 30 Jun 2015 10:16:51 +0900 Subject: [ndnSIM] Question about the example : ndn-grid-topo-plugin-red-queues.cc Message-ID: Hello. Can we use ip-based red queue in ndnsim2.0? I found the example *ndn-grid-topo-plugin-red-queues.cc *in example folder And the topology is like below: [Node0 Node1 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100] I am not sure it is working well now. and how can I designate minth and maxth in RedQueue? what is the meaning of MeanPktSize? Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Mon Jun 29 18:30:27 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Mon, 29 Jun 2015 18:30:27 -0700 Subject: [ndnSIM] Question about the example : ndn-grid-topo-plugin-red-queues.cc In-Reply-To: References: Message-ID: <9E256768-95E0-4216-9DD8-C267CE9F4F98@ucla.edu> Dear Choi, Please refer to RedQueue documentation about available configuration attributes and their description: https://www.nsnam.org/doxygen/classns3_1_1_red_queue.html --- Alex > On Jun 29, 2015, at 6:16 PM, ??? wrote: > > Hello. > > Can we use ip-based red queue in ndnsim2.0? > I found the example ndn-grid-topo-plugin-red-queues.cc in example folder > And the topology is like below: > [Node0 Node1 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100] > I am not sure it is working well now. and how can I designate minth and maxth in RedQueue? what is the meaning of MeanPktSize? > > Best regards. > Wonjun, Choi > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From wonjunchoi001 at gmail.com Mon Jun 29 23:57:29 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Tue, 30 Jun 2015 15:57:29 +0900 Subject: [ndnSIM] Question about the example : ndn-grid-topo-plugin-red-queues.cc In-Reply-To: <9E256768-95E0-4216-9DD8-C267CE9F4F98@ucla.edu> References: <9E256768-95E0-4216-9DD8-C267CE9F4F98@ucla.edu> Message-ID: I want to get prefix name in RedQueue. I need to convert packet to ndn::Data type to do that. How can I get the prefix name? Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Tue Jun 30 16:54:45 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 1 Jul 2015 08:54:45 +0900 Subject: [ndnSIM] How to change packet to ndn::Data or ndn::Interest? Message-ID: Hello. I like to know how to change a packet to ndn::Data or ndn::Interest. Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: