Netperf in DCE

130 views
Skip to first unread message

Esteban . Coma

unread,
May 30, 2015, 10:23:34 AM5/30/15
to ns-3-...@googlegroups.com
Hello everyone, I had posted the same in march with no response so I'll try it again with a simplified version.

I am trying to make netperf work in DCE. I've compiled properly with -fPIC  and -U_FORTIFY_SOURCE and I came up with
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.

Hajime Tazaki

unread,
Jun 25, 2015, 6:21:15 AM6/25/15
to ns-3-...@googlegroups.com

At Sat, 30 May 2015 07:23:34 -0700 (PDT),
Esteban . Coma wrote:
(snip)
> tried to add a *dce.AddArgument ("127.0.0.1")* just in case, but nothing.
> Any help is welcome,

I have tried but not any luck either.

you may need to investigate what's going on with the message
"establish_control could not ..." by looking at the netperf
source code and execute it on gdb with DCE, for instance.

-- Hajime
Reply all
Reply to author
Forward
0 new messages