Hello everyone, I had posted the same in march with no response so I'll try it again with a simplified version.
the simplest 1-node scenario I could think of. this is the code:
#include "ns3/network-module.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/dce-module.h"
using namespace ns3;
int main (int argc, char *argv[])
{
CommandLine cmd;
cmd.Parse (argc, argv);
NodeContainer nodes;
nodes.Create (1);
InternetStackHelper stack;
stack.Install (nodes);
DceManagerHelper dceManager;
dceManager.Install (nodes);
DceApplicationHelper dce;
ApplicationContainer apps;
dce.SetBinary ("netserver2.6");
dce.SetStackSize (1 << 20);
apps = dce.Install (nodes.Get (0));
apps.Start (Seconds (4.0));
dce.SetBinary ("netperf2.6");
dce.SetStackSize (1 << 20);
apps = dce.Install (nodes.Get (0));
apps.Start (Seconds (7.0));
Simulator::Stop (Seconds (1000100.0));
Simulator::Run ();
Simulator::Destroy ();
return 0;
}
My small script that parses the output of a given node states:
n3w@peixe:~/gits/proyecto_2.6.36/source/ns-3-dce/myscripts/HEH$ printnode.sh files-0/
NODE: 0
38881/
CMDLINE: netserver2.6
STATUS:
Start Time: NS3 Time: 4s ( +4000000000.0ns) , REAL Time: 1432995336
Time: NS3 Time: 4s ( +4000000000.0ns) , REAL Time: 1432995336 --> Starting: /home/n3w/gits/proyecto_2.6.36/build/bin/netserver2.6
Time: NS3 Time: 4s ( +4000000000.0ns) , REAL Time: 1432995336 --> Exit (0)
STDERR:
STDOUT:
Starting netserver with host 'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
38883/
CMDLINE: netperf2.6
STATUS:
Start Time: NS3 Time: 7s ( +7000000000.0ns) , REAL Time: 1432995336
Time: NS3 Time: 7s ( +7000000000.0ns) , REAL Time: 1432995336 --> Starting: /home/n3w/gits/proyecto_2.6.36/build/bin/netperf2.6
Time: NS3 Time: 7s ( +7000000000.0ns) , REAL Time: 1432995336 --> Exit (-1)
STDERR:
STDOUT:
establish control: are you sure there is a netserver listening on localhost at port 12865?
establish_control could not establish the control connection from 0.0.0.0 port 0 address family AF_UNSPEC to localhost port 12865 address family AF_UNSPEC
I honestly can't think of anything simpler and still doesn't work. I also tried to add a dce.AddArgument ("127.0.0.1") just in case, but nothing.
Any help is welcome,
Thank you.