<div dir="ltr"><div><div><div>Spyridon but do you know what could be the reason of the problem in my simulation?? <br><br></div>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:<br><br><i>terminate called after throwing an instance of 'ndn::tlv::Error'<br>  what():  Empty buffer during TLV processing<br>Command ['/root/ndnSIM/ns-3/build/</i><i>scratch/sim05_1', '--</i><i>SimulatorImplementationType=</i><i>ns3::VisualSimulatorImpl']
 terminated with signal SIGIOT. Run it under a debugger to get more 
information (./waf --run <program> --command-template="gdb --args 
%s <args>").</i><br><br></div>If you could provide me some hints to fix it I would appreciate it.<br><br></div>Regards. <br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 21, 2015 at 6:31 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:spiros.mastorakis@gmail.com" target="_blank">spiros.mastorakis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Gustavo,<br>
<br>
this bug was closed a year ago and it was not related to ndnSIM.<br>
<br>
In any case, I do not think that this is related to your case.<br>
<span class="im HOEnZb"><br>
--<br>
Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" rel="noreferrer" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
Internet Research Laboratory<br>
PhD Computer Science<br>
UCLA<br>
<br>
<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">> On Jun 21, 2015, at 6:27 PM, Gustavo Gonzalez <<a href="mailto:gonzalezcga@gmail.com">gonzalezcga@gmail.com</a>> wrote:<br>
><br>
> Sorry Spyridon,<br>
><br>
> next time I will do it as you suggest.<br>
><br>
> I am getting the same problem reported in this website <a href="http://redmine.named-data.net/issues/1273" rel="noreferrer" target="_blank">http://redmine.named-data.net/issues/1273</a> .<br>
><br>
> Please let me know if I should modify something in order to fix this issue.<br>
><br>
> Regards.<br>
><br>
> On Sun, Jun 21, 2015 at 6:20 PM, Spyridon (Spyros) Mastorakis <<a href="mailto:spiros.mastorakis@gmail.com">spiros.mastorakis@gmail.com</a>> wrote:<br>
> Hi Gustavo,<br>
><br>
> please when you want us to review some code, include the source file as an attachment.<br>
><br>
> When you mentioned bug #1273, do you refer to NS3?<br>
><br>
> Thank you.<br>
><br>
> --<br>
> Spyridon (Spyros) Mastorakis<br>
> Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" rel="noreferrer" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
> Internet Research Laboratory<br>
> PhD Computer Science<br>
> UCLA<br>
><br>
><br>
> > On Jun 20, 2015, at 5:20 PM, Gustavo Gonzalez <<a href="mailto:gonzalezcga@gmail.com">gonzalezcga@gmail.com</a>> wrote:<br>
> ><br>
> > Hello,<br>
> ><br>
> > 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.<br>
> ><br>
> > I have checked and it seems to be a bug (bug#1273).<br>
> ><br>
> > I would really appreciate your help to try to solve this issue.<br>
> ><br>
> > Regards.<br>
> ><br>
> > ----------------------------<br>
> ><br>
> > ERROR:<br>
> ><br>
> > Waf: Entering directory `/root/ndnSIM/ns-3/build'<br>
> > Waf: Leaving directory `/root/ndnSIM/ns-3/build'<br>
> > 'build' finished successfully (0.892s)<br>
> ><br>
> > ** (python:10730): WARNING **: The connection is closed<br>
> > Could not load icon applets-screenshooter due to missing gnomedesktop Python module<br>
> > Could not load icon gnome-terminal due to missing gnomedesktop Python module<br>
> > scanning topology: [0, 5) nodes...<br>
> > No OLSR<br>
> ><br>
> > ** (python:10730): WARNING **: Unable to create Ubuntu Menu Proxy: The connection is closed<br>
> > No OLSR<br>
> > No OLSR<br>
> > terminate called after throwing an instance of 'ndn::tlv::Error'<br>
> >   what():  Empty buffer during TLV processing<br>
> > 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 <program> --command-template="gdb --args %s <args>").<br>
> ><br>
> > ----------------------------<br>
> ><br>
> > CODE:<br>
> ><br>
> > #include "ns3/core-module.h"<br>
> > #include "ns3/point-to-point-module.h"<br>
> > #include "ns3/csma-module.h"<br>
> > #include "ns3/network-module.h"<br>
> > #include "ns3/applications-module.h"<br>
> > #include "ns3/wifi-module.h"<br>
> > #include "ns3/mobility-module.h"<br>
> > #include "ns3/internet-module.h"<br>
> > #include "ns3/netanim-module.h"<br>
> > #include "ns3/basic-energy-source.h"<br>
> > #include "ns3/simple-device-energy-model.h"<br>
> > #include "ns3/ndnSIM-module.h"<br>
> ><br>
> > using namespace std;<br>
> ><br>
> > namespace ns3 {<br>
> ><br>
> > int main (int argc, char *argv[]) {<br>
> ><br>
> > Config::SetDefault("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue("2200"));<br>
> > Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("2200"));<br>
> > Config::SetDefault("ns3::WifiRemoteStationManager::NonUnicastMode", StringValue("OfdmRate24Mbps"));<br>
> ><br>
> > uint32_t nWifi = 2;<br>
> > CommandLine cmd;<br>
> > cmd.AddValue ("nWifi", "Number of wifi devices", nWifi);<br>
> ><br>
> > cmd.Parse (argc, argv);<br>
> > NodeContainer allNodes;<br>
> > NodeContainer wifiStaNodes;<br>
> > wifiStaNodes.Create (nWifi);<br>
> > allNodes.Add (wifiStaNodes);<br>
> > NodeContainer wifiApNode;<br>
> > wifiApNode.Create (1);<br>
> > allNodes.Add (wifiApNode);<br>
> ><br>
> ><br>
> > YansWifiChannelHelper channel = YansWifiChannelHelper::Default ();<br>
> > YansWifiPhyHelper phy = YansWifiPhyHelper::Default ();<br>
> > phy.SetChannel (channel.Create());<br>
> ><br>
> >   WifiHelper wifi = WifiHelper::Default ();<br>
> >   wifi.SetRemoteStationManager ("ns3::AarfWifiManager");<br>
> ><br>
> > NqosWifiMacHelper mac = NqosWifiMacHelper::Default ();<br>
> ><br>
> > Ssid ssid = Ssid ("ns-3-ssid");<br>
> > mac.SetType ("ns3::StaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false));<br>
> ><br>
> > NetDeviceContainer staDevices;<br>
> > staDevices = wifi.Install (phy, mac, wifiStaNodes);<br>
> > mac.SetType ("ns3::ApWifiMac", "Ssid", SsidValue (ssid));<br>
> ><br>
> > NetDeviceContainer apDevices;<br>
> > apDevices = wifi.Install (phy, mac, wifiApNode);<br>
> ><br>
> >   NodeContainer p2pNodes;<br>
> >   p2pNodes.Add (wifiApNode);<br>
> >   p2pNodes.Create (1);<br>
> >   allNodes.Add (p2pNodes.Get (1));<br>
> ><br>
> >   PointToPointHelper pointToPoint;<br>
> >   pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps"));<br>
> >   pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms"));<br>
> ><br>
> >   NetDeviceContainer p2pDevices;<br>
> >   p2pDevices = pointToPoint.Install (p2pNodes);<br>
> ><br>
> >   NodeContainer csmaNodes;<br>
> >   csmaNodes.Add (p2pNodes.Get (1));<br>
> >   csmaNodes.Create (1);<br>
> >   allNodes.Add (csmaNodes.Get (1));<br>
> ><br>
> >   CsmaHelper csma;<br>
> >   csma.SetChannelAttribute ("DataRate", StringValue ("100Mbps"));<br>
> >   csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (6560)));<br>
> ><br>
> >   NetDeviceContainer csmaDevices;<br>
> >   csmaDevices = csma.Install (csmaNodes);<br>
> ><br>
> ><br>
> > MobilityHelper mobility;<br>
> > mobility.SetPositionAllocator ("ns3::GridPositionAllocator",<br>
> >                 "MinX", DoubleValue (20.0),<br>
> >                 "MinY", DoubleValue (20.0),<br>
> >                 "DeltaX", DoubleValue (10.0),<br>
> >                 "DeltaY", DoubleValue (10.0),<br>
> >                 "GridWidth", UintegerValue (10),<br>
> >                 "LayoutType", StringValue ("RowFirst"));<br>
> > mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel", "Bounds", RectangleValue (RectangleValue (Rectangle (-50, 50, -25, 50))));<br>
> > mobility.Install (wifiStaNodes);<br>
> > mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");<br>
> > mobility.Install (wifiApNode);<br>
> > AnimationInterface::SetConstantPosition (wifiApNode.Get (1), 10, 10);<br>
> > AnimationInterface::SetConstantPosition (p2pNodes.Get (1), 10, 30);<br>
> > AnimationInterface::SetConstantPosition (csmaNodes.Get (1), 10, 50);<br>
> ><br>
> > ndn::StackHelper ndnHelper;<br>
> >   ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "500");<br>
> >   ndnHelper.SetDefaultRoutes(true);<br>
> >   ndnHelper.InstallAll();<br>
> ><br>
> > // Choosing forwarding strategy<br>
> >   ndn::StrategyChoiceHelper::Install(wifiStaNodes, "/localhost/nfd", "/localhost/nfd/strategy/best-route"); //<br>
> >   ndn::StrategyChoiceHelper::Install(wifiApNode, "/localhost", "/localhost/nfd/strategy/broadcast"); //<br>
> >   ndn::StrategyChoiceHelper::Install(csmaNodes, "/localhost", "/localhost/nfd/strategy/broadcast"); //<br>
> >   ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;<br>
> >   ndnGlobalRoutingHelper.Install(wifiStaNodes);<br>
> >   ndnGlobalRoutingHelper.Install(wifiApNode);<br>
> >   ndnGlobalRoutingHelper.Install(csmaNodes);<br>
> ><br>
> ><br>
> >   // 4. Set up applications<br>
> ><br>
> >   ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");<br>
> >   consumerHelper.SetPrefix("/test/prefix");<br>
> >   consumerHelper.SetAttribute("Frequency", DoubleValue(1.0));<br>
> >   consumerHelper.Install(wifiStaNodes.Get(0));<br>
> ><br>
> >  /* ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerCbr");<br>
> >   consumerHelper2.SetPrefix("/test/prefix");<br>
> >   consumerHelper2.SetAttribute("Frequency", DoubleValue(5.0));<br>
> >   consumerHelper2.Install(wifiStaNodes.Get(1));*/<br>
> ><br>
> >   ndn::AppHelper producerHelper("ns3::ndn::Producer");<br>
> >   producerHelper.SetPrefix("/");<br>
> >   producerHelper.SetAttribute("PayloadSize", StringValue("700"));<br>
> >   producerHelper.Install(csmaNodes.Get(1));<br>
> ><br>
> >   ndn::GlobalRoutingHelper::CalculateRoutes();<br>
> ><br>
> >  Simulator::Stop (Seconds (10.0));<br>
> ><br>
> >   Simulator::Run ();<br>
> >   Simulator::Destroy ();<br>
> >   return 0;<br>
> > }<br>
> ><br>
> > }<br>
> ><br>
> > int<br>
> > main(int argc, char* argv[])<br>
> > {<br>
> >   return ns3::main(argc, argv);<br>
> > }<br>
> ><br>
><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>