Mobile IPv6/NEMO (UMIP) + NS3

644 views
Skip to first unread message

Renato Martins

unread,
Nov 6, 2012, 10:28:30 AM11/6/12
to ns-3-...@googlegroups.com
Hi,

I need to simulate a scenario with Mobile Ipv6.

I installed the follow contribution but I don't know how I can compile and run the examples.


In ns3 I put the scripts inside the folder scratch but in this contribution this doesn't work.

Where can I find documentation about the dce functions used in scripts of this contribution?

How can I compile/run my scripts of MobileIPv6(e.g mydce-umip-cmip6).


Thanks very much,
Renato Martins

Hajime Tazaki

unread,
Nov 9, 2012, 2:23:58 AM11/9/12
to ns-3-...@googlegroups.com

Hello Renato,

At Tue, 6 Nov 2012 07:28:30 -0800 (PST),
Renato Martins wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
> Hi,
>
> I need to simulate a scenario with Mobile Ipv6.
>
> I installed the follow contribution but I don't know how I can compile and
> run the examples.
>
> https://groups.google.com/forum/?fromgroups=#!msg/ns-3-users/SJl_9bl-Cm0/6CfjuxJFon4J
>
> In ns3 I put the scripts inside the folder scratch but in this contribution
> this doesn't work.

at this moment, ns-3-dce doesn't support scratch
folder. instead, there is a folder called 'myscripts' in
ns-3-dce directory.

> Where can I find documentation about the dce functions used in scripts of
> this contribution?

You may find the following document.

http://www-sop.inria.fr/members/Frederic.Urbani/DCE/dce-doc.html?highlight=myscripts#write-a-script

> How can I compile/run my scripts of MobileIPv6(e.g mydce-umip-cmip6).

you can put your codes into ns-3-dce/myscripts directory,
and write wscript as myscripts/ping does, then compile it
with "./waf".

-- Hajime

Renato Martins

unread,
Nov 12, 2012, 10:33:00 AM11/12/12
to ns-3-...@googlegroups.com
Hi Hajime,

I apologize for my constant doubts but I have a few more.

If I wanted to compile and run your examples that are within the folder /ns-3-dce-umip/example, I would have to put your scripts inside the folder /ns-3-dce/myscripts and I would have to create a wscritp, right?


Do you have some example of wscript for your scripts that are inside the folder /ns-3-dce-umip/example?


Do I need to change something in the mip6d.helper.cc if I want to change the scenario in your scripts?


Is there some documentation about the methods existing in the scripts?
For example, the following methods:
SetStackSize()
SetBinary()


Thanks a lot.

Renato Martins

unread,
Nov 12, 2012, 10:33:07 AM11/12/12
to ns-3-...@googlegroups.com

Hajime Tazaki

unread,
Nov 14, 2012, 2:59:02 AM11/14/12
to ns-3-...@googlegroups.com

Hi,

At Mon, 12 Nov 2012 07:33:07 -0800 (PST),
Renato Martins wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
> Hi Hajime,
>
> I apologize for my constant doubts but I have a few more.

never mind ;)

> If I wanted to compile and run your examples that are within the folder *
> /ns-3-dce-umip/example*, I would have to put your scripts inside the folder
> */ns-3-dce/myscripts* and I would have to create a wscritp, right?

in ns-3-dce-umip/example directory, there are 6 files, but
only two examples (cmip6 and nemo one) are executable (and
run successfully).


so answer would be yes or no :)
you can put the example script to "myscripts" and can built
it, but it doesn't work well. (especially PMIP and DSMIP
example are not available at this moment)

> Do you have some example of wscript for your scripts that are inside the
> folder */ns-3-dce-umip/example?*

you may find how wscript is configured for examples.

http://code.nsnam.org/thehajime/ns-3-dce-umip/file/0b223f883a47/wscript#l47

> *
> *
> *
> Do I need to change something in the mip6d.helper.cc if I want to change
> the scenario in your scripts?

if you would like to configure extend function rather than
Mip6dHelper, you may change mip6d-helper.cc. but if not,
it's not mandatory.

http://www.nsnam.org/~thehajime/ns-3-dce-umip/getting-started.html#customizing-helper

> Is there some documentation about the methods existing in the scripts?
> For example, the following methods:
> SetStackSize()
> SetBinary()

at this moment, we don't have doxygen documentation for
DCE. sorry.

-- Hajime


> Thanks a lot.
>
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/Fn2E6GzjbQAJ.
> To post to this group, send email to ns-3-...@googlegroups.com.
> To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
>
> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>

Renato Martins

unread,
Nov 19, 2012, 6:09:06 AM11/19/12
to ns-3-...@googlegroups.com
Hi Hajime,

thanks for your help.

If I have to put my scripts into ns-3-dce/myscripts directory, why aren't your scripts dce-umip-cmip6.cc, dce-umip-nemo.cc there?

I tried to modify your script dce-umip-nemo.cc and I compiled with ./waf inside the ns-3-dce-umip/ directory. My changes worked but I don't understand why haven't I to put your scritp inside the ns-3-dce/myscripts directory.

Thanks very much.

Hajime Tazaki

unread,
Nov 19, 2012, 8:16:47 PM11/19/12
to ns-3-...@googlegroups.com

Hi,

At Mon, 19 Nov 2012 03:09:06 -0800 (PST),
Renato Martins wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
> Hi Hajime,
>
> thanks for your help.
>
> If I have to put my scripts into ns-3-dce/myscripts directory, why aren't
> your scripts dce-umip-cmip6.cc, dce-umip-nemo.cc there?

because dce-umip module (ns-3-dce-umip) is managed
separately from dce core module (ns-3-dce).

that is because of the ease of module maintenance. I
(the maintainer of dce-umip) felt it's easier. since dce has
a potential to have so many applications running on it, i
decided to make different module of each.

> I tried to modify your script dce-umip-nemo.cc and I compiled with ./waf
> inside the ns-3-dce-umip/ directory. My changes worked but I don't
> understand why haven't I to put your scritp inside the ns-3-dce/myscripts
> directory.

you can put your own script into ns-3-dce-umip as other
examples do. you may modify wscript to build your example in
ns-3-dce-umip.


-- Hajime

Renato Martins

unread,
Nov 25, 2012, 12:20:17 PM11/25/12
to ns-3-...@googlegroups.com
Hi,

Em terça-feira, 20 de novembro de 2012 01h16min35s UTC, Hajime escreveu:

Hi,

At Mon, 19 Nov 2012 03:09:06 -0800 (PST),
Renato Martins wrote:
>
> [1  <text/plain; ISO-8859-1 (7bit)>]
> Hi Hajime,
>
> thanks for your help.
>
> If I have to put my scripts into ns-3-dce/myscripts directory, why aren't
> your scripts dce-umip-cmip6.cc, dce-umip-nemo.cc there?

because dce-umip module (ns-3-dce-umip) is managed
separately from dce core module (ns-3-dce).

that is because of the ease of module maintenance. I
(the maintainer of dce-umip) felt it's easier. since dce has
a potential to have so many applications running on it, i
decided to make different module of each.


so ns-3-dce-umip module is a module created for you, right?
 

> I tried to modify your script dce-umip-nemo.cc and I compiled with ./waf
> inside the ns-3-dce-umip/ directory. My changes worked but I don't
> understand why haven't I to put your scritp inside the ns-3-dce/myscripts
> directory.

you can put your own script into ns-3-dce-umip as other
examples do. you may modify wscript to build your example in
ns-3-dce-umip.


so I can to compile/run my scripts into ns-3-dce-umip directory or into ns-3-dce/examples?
 

Can you tell me what the following functions do?

RunIp (Ptr<Node> node, Time at, std::string str)

AddAddress (Ptr<Node> node, Time at, const char *name, const char *address)

SetTaskManagerAttribute ("FiberManagerType",EnumValue (0));

SetNetworkStack ("ns3::LinuxSocketFdFactory","Library", StringValue ("libnet-next-2.6.so"));


-- Hajime



Renato Martins 

Renato Martins

unread,
Dec 6, 2012, 5:41:28 AM12/6/12
to ns-3-...@googlegroups.com
Hi,

In this contribution I execute the script with the command ./build/bin/dce-umip-nemo instead ./waf --run /scratch/dce-umip-nemo.

Now, I wanted to use the PyVis to visualize the simulation but I don't know how can I do it?

Can someone help me?

Hajime Tazaki

unread,
Dec 7, 2012, 9:39:44 AM12/7/12
to ns-3-...@googlegroups.com

Hello,

At Thu, 6 Dec 2012 02:41:28 -0800 (PST),
Renato Martins wrote:
>
> [1 <text/plain; ISO-8859-1 (quoted-printable)>]
> Hi,
>
> In this contribution I execute the script with the command *
> ./build/bin/dce-umip-nemo* instead *./waf --run /scratch/dce-umip-nemo.*
>
> Now, I wanted to use the PyVis to visualize the simulation but I don't know
> how can I do it?
>
> Can someone help me?

you need to follow the below steps.

1) build and install PyViz in ns-3-dev
note that python binding needs to be built.
http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.10

% cd ns-3-dev
% ./waf configure --prefix=`pwd`/../build (some options) --with-pybindgen=(location of python binding)
% ./waf
% ./waf install

2) build example (of ns-3-dce-umip) with visualizer option
you need to edit wscript to specify the option

http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.11

3) run simulation with visualizer option
./build/bin/dce-umip-nemo --SimulatorImplementationType=ns3::VisualSimulatorImpl

hope this helps you.

-- Hajime
> > *RunIp (Ptr<Node> node, Time at, std::string str)
> > *
> > *
> > *
> > *AddAddress (Ptr<Node> node, Time at, const char *name, const char
> > *address)*
> > *
> > *
> > *SetTaskManagerAttribute ("FiberManagerType",EnumValue (0));*
> > *
> > *
> > *SetNetworkStack ("ns3::LinuxSocketFdFactory","Library", StringValue ("
> > libnet-next-2.6.so"));*
> >
> >
> >> -- Hajime
> >>
> >>
> >
> > Renato Martins
> >
>
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/L38EvkP0SBUJ.

Renato Martins

unread,
Dec 10, 2012, 1:05:50 PM12/10/12
to ns-3-...@googlegroups.com
Hi Hajime,


Em sexta-feira, 7 de dezembro de 2012 14h39min44s UTC, Hajime escreveu:

Hello,

At Thu, 6 Dec 2012 02:41:28 -0800 (PST),
Renato Martins wrote:
>
> [1  <text/plain; ISO-8859-1 (quoted-printable)>]
> Hi,
>
> In this contribution I execute the script with the command *
> ./build/bin/dce-umip-nemo* instead *./waf --run /scratch/dce-umip-nemo.*
>
> Now, I wanted to use the PyVis to visualize the simulation but I don't know
> how can I do it?
>
> Can someone help me?

you need to follow the below steps.

1) build and install PyViz in ns-3-dev
note that python binding needs to be built.
http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.10

 % cd ns-3-dev
 % ./waf configure --prefix=`pwd`/../build (some options) --with-pybindgen=(location of python binding)
 % ./waf
 % ./waf install


Here, I didn't put any options because I didn't know who options there are.
 
2) build example (of ns-3-dce-umip) with visualizer option
you need to edit wscript to specify the option

http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.11


I don't know where I have to modify the wscript.
May you tell me where?

 
3) run simulation with visualizer option
./build/bin/dce-umip-nemo --SimulatorImplementationType=ns3::VisualSimulatorImpl

hope this helps you.

-- Hajime


Thanks very much. 

Hajime Tazaki

unread,
Dec 10, 2012, 8:42:23 PM12/10/12
to ns-3-...@googlegroups.com

Hi Renato,

At Mon, 10 Dec 2012 10:05:50 -0800 (PST),
Renato Martins wrote:

> > > In this contribution I execute the script with the command *
> > > ./build/bin/dce-umip-nemo* instead *./waf --run /scratch/dce-umip-nemo.*
> > >
> > > Now, I wanted to use the PyVis to visualize the simulation but I don't
> > know
> > > how can I do it?
> > >
> > > Can someone help me?
> >
> > you need to follow the below steps.
> >
> > 1) build and install PyViz in ns-3-dev
> > note that python binding needs to be built.
> > http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.10
> >
> > % cd ns-3-dev
> > % ./waf configure --prefix=`pwd`/../build (some options)
> > --with-pybindgen=(location of python binding)
> > % ./waf
> > % ./waf install
> >
> >
> Here, I didn't put any options because I didn't know who options there are.

the options are to build python binding and visualizer in
'ns-3-dev'. you need to rebuild ns-3-dev to use PyViz in DCE.

> > 2) build example (of ns-3-dce-umip) with visualizer option
> > you need to edit wscript to specify the option
> >
> > http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.11
> >
> >
> I don't know where I have to modify the wscript.
> May you tell me where?

ns-3-dce-umip/wscript is.

current version of ns-3-dce-umip/wscript contains:

module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip'],
target='bin/dce-umip-nemo',
source=['example/dce-umip-nemo.cc'])

while the visualizer option is added as follows.

module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip', 'visualizer],
target='bin/dce-umip-nemo', ^^^^^^^^^^^^^ HERE!!
source=['example/dce-umip-nemo.cc'])

make sure you need to do './waf configure' after editing.


-- Hajime

Renato Martins

unread,
Dec 12, 2012, 5:50:20 AM12/12/12
to ns-3-...@googlegroups.com
Hi Hajime,

I thank you for all help but I still cannot use the Pyviz.

I will describe the steps that I tried.

1º 

 % cd ns-3-dev 
 % ./waf configure --prefix=`pwd`/../build --with-pybindgen="/home/renatomartins/repos/ns-3-allinone/pybindgen"

 % ./waf 
 % ./waf install 

2º Added module visualizer inside wscript

% cd ns-3-dce-umip/

module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip', 'visualizer'],
                       target='bin/dce-umip-nemo',
                       source=['example/dce-umip-nemo.cc'])

3º Build 

% ./waf clean
% ./waf
% ./build/bin/dce-umip-nemo --SimulatorImplementationType=ns3::VisualSimulatorImpl

After that, the bash said the file doesn't exist.

But if I remove the 'visualizer' module inside the wscript the file already is created on the directory build/bin/dce-umip-nemo.

What is the problem?

Best Regards,
Renato Martins

Renato Martins

unread,
Dec 19, 2012, 5:38:41 AM12/19/12
to ns-3-...@googlegroups.com
Someone can help me?

Renato Martins

unread,
Jan 2, 2013, 9:08:16 AM1/2/13
to ns-3-...@googlegroups.com
Someone can help me, please?


Hajime Tazaki

unread,
Jan 3, 2013, 9:00:42 PM1/3/13
to ns-3-...@googlegroups.com

Hi,

please make it sure that the visualizer module in "ns-3-dev"
was built successfully.

>1) build and install PyViz in ns-3-dev
>note that python binding needs to be built.
>http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.10
>
> % cd ns-3-dev
> % ./waf configure --prefix=`pwd`/../build (some options) --with-pybindgen=(location of python binding)
> % ./waf
> % ./waf install

if the module is successfully built, you can see like the
following output that shows the "visualizer" module was built.

% cd ns-3-dev
% ./waf
(snip)
Modules built:
antenna aodv applications
bridge buildings config-store
core csma csma-layout
dsdv dsr emu
energy flow-monitor http
internet lte mesh
mobility mpi netanim (no Python)
network nix-vector-routing olsr
point-to-point point-to-point-layout propagation
spectrum stats tap-bridge
test (no Python) tools topology-read
uan virtual-net-device visualizer
wifi wimax

Modules not built:
click openflow


-- Hajime

At Wed, 12 Dec 2012 02:50:20 -0800 (PST),
Renato Martins wrote:
>
> [1 <text/plain; ISO-8859-1 (quoted-printable)>]
> Hi Hajime,
>
> I thank you for all help but I still cannot use the Pyviz.
>
> I will describe the steps that I tried.
>
> *1º *
>
> % cd ns-3-dev
> % ./waf configure --prefix=`pwd`/../build
> --with-pybindgen="/home/renatomartins/repos/ns-3-allinone/pybindgen"
> % ./waf
> % ./waf install
>
> *2º Added module visualizer inside wscript*
>
> % cd ns-3-dce-umip/
>
> module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility',
> 'wifi', 'dce-quagga', 'dce-umip', 'visualizer'],
> target='bin/dce-umip-nemo',
> source=['example/dce-umip-nemo.cc'])
>
> *3º Build *
>
> % ./waf clean
> % ./waf
> % ./build/bin/dce-umip-nemo
> --SimulatorImplementationType=ns3::VisualSimulatorImpl
>
> After that, the bash said the file doesn't exist.
>
> But if I remove the 'visualizer' module inside the wscript the file already
> is created on the directory build/bin/dce-umip-nemo.
>
> What is the problem?
>
> Best Regards,
> Renato Martins
>
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/lu8wy-BIeUMJ.

Renato Martins

unread,
Jan 7, 2013, 1:27:45 PM1/7/13
to ns-3-...@googlegroups.com
Hi Hajime,

thanks for your answer.

I executed the commands

%cd ns-3-dce
%.waf 

and the outpup was the following:


Modules built:
antenna                   aodv                      applications             
bridge                    buildings                 config-store             
core                      csma                      csma-layout              
dsdv                      dsr                       emu                      
energy                    flow-monitor              internet                 
lte                       mesh                      mobility                 
mpi                       netanim (no Python)       network                  
nix-vector-routing        olsr                      point-to-point           
point-to-point-layout     propagation               spectrum                 
stats                     tap-bridge                test (no Python)         
tools                     topology-read             uan                      
virtual-net-device        visualizer                wifi                     
wimax                    

Modules not built:
click                     openflow  

So, the vizualizer module was sucessfully built.

But when I run the following commands:

%cd ns-3-dce-umip
%./build/bin/my-nemo-v0 --SimulatorImplementationType=ns3::VisualSimulatorImpl

appears file doesn't exist.

In wscript inside ns-3-dce-umip folder I added the following lines:


module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip','visualizer'],
                       target='bin/my-nemo-v0',
                       source=['example/my-nemo-v0.cc'])

What is my problem?

Thanks for your help.

qia...@osdp.cs.tsukuba.ac.jp

unread,
Jan 12, 2013, 6:51:44 AM1/12/13
to ns-3-...@googlegroups.com
Hi Hajime,
 
I also encountered the same problem
 
1) visualizer module be built successfully
 
Modules built:
antenna aodv applications
bridge buildings config-store
core csma csma-layout
dsdv dsr emu
energy flow-monitor http
internet lte mesh
mobility mpi netanim (no Python)
network nix-vector-routing olsr
point-to-point point-to-point-layout propagation
spectrum stats tap-bridge
test (no Python) tools topology-read
uan virtual-net-device visualizer
wifi wimax

Modules not built:
click openflow   
  
"./waf --run scratch/first --vis"     works  smoothly
 
2) update the wscript file in ns-e-dce-umip as follows
 
From:
 ns3waf.check_modules(conf, ['topology-read', 'applications', 'visualizer'], mandatory = False)
To:
 ns3waf.check_modules(conf, ['topology-read', 'applications', 'visualizer'], mandatory = True)
 
From:
 module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip'],
                     target='bin/dce-umip-nemo',
                     source=['example/dce-umip-nemo.cc'])
To:
 module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip', 'visualizer'],
                     target='bin/dce-umip-nemo',
                     source=['example/dce-umip-nemo.cc'])
 
 
3) after step 2) run the follow two commands 
 
./waf clean
./waf
 
after it, I can't find 'dce-umip-nemo' in catalog "ns-3-dce-umip/build/bin"
 
 
BEG FOR YOUR HELP!!!
 
Best regards!
Li

 
 
 
 

2013年1月4日金曜日 11時00分42秒 UTC+9 Hajime:

Renato Martins

unread,
Jan 19, 2013, 12:39:12 PM1/19/13
to ns-3-...@googlegroups.com
Hi.

Did you get to solve the problem?

鹂強

unread,
Jan 19, 2013, 10:02:03 PM1/19/13
to ns-3-...@googlegroups.com
Hi,

1) import the ns.visualizer module in "ns-3-dev/src/visualizer/visualizer/core.py", rebuilt the DEC.

2) update the wscript file in ns-3-dce-umip as follows
    From:
             ns3waf.check_modules(conf, ['topology-read', 'applications', 'visualizer'], mandatory = False)
    To:
             ns3waf.check_modules(conf, ['topology-read', 'applications', 'visualizer'], mandatory = True)
 
   From:
             module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip'], target='bin/dce-umip-nemo',  source=['example/dce-umip-nemo.cc'])

   To:
             module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip', 'visualizer'],  target='bin/dce-umip-nemo', source=['example/dce-umip-nemo.cc']) 



   After  ./waf clean and ./waf,  I can got the 'dce-umip-nemo' in catalog "ns-3-dce-umip/build/bin" successfully,

  BUT ,
    
          ./build/bin/dce-umip-nemo  --SimulatorImplementationType=ns3::VisualSimulatorImpl
 
  GOT 
           assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=419 terminate called without an active exception








2013/1/20 Renato Martins <renato.f...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/ibgtZKpaQXUJ.

Hajime Tazaki

unread,
Feb 5, 2013, 9:49:50 PM2/5/13
to ns-3-...@googlegroups.com

Hi Renato,

sorry to be late.

I've updated ns-3-dce-umip repository with the support of
"./waf --run --vis" style command.

you can try to update your code ("hg pull -u" with merge if
you've modified some code), and execute examples as
following command.

% ./waf --run dce-umip-nemo --vis

Note that current code assumes the following directory
structure so that ./waf can find the required libraries.

+ top
- ns-3-dev
- ns-3-linux
- ns-3-dce
- ns-3-dce-umip
- ./waf --run
- ns-3-dce-quagga

this issue (i.e., dependency) should be fixed in near
future (and also arranged by bake), you can use it .

more comments are below.

At Mon, 7 Jan 2013 10:27:45 -0800 (PST),
Renato Martins wrote:
>
> Hi Hajime,
>
> thanks for your answer.
>
> I executed the commands
>
> %cd ns-3-dce
> %.waf
>
> and the outpup was the following:
>
> Modules built:
> antenna aodv applications
>
> bridge buildings config-store
>
> core csma csma-layout
>
> dsdv dsr emu
>
> energy flow-monitor internet
>
> lte mesh mobility
>
> mpi netanim (no Python) network
>
> nix-vector-routing olsr point-to-point
>
> point-to-point-layout propagation spectrum
>
> stats tap-bridge test (no Python)
>
> tools topology-read uan
>
> virtual-net-device visualizer wifi
>
> wimax
>
> Modules not built:
> click openflow
>
> So, the vizualizer module was sucessfully built.

did you install ns-3-dev somewhere that other DCE modules
(ns-3-dce, ns-3-dce-umip) can be referred.

> But when I run the following commands:
>
> %cd ns-3-dce-umip
> %./build/bin/my-nemo-v0
> --SimulatorImplementationType=ns3::VisualSimulatorImpl
>
> appears file doesn't exist.

now you can use "./waf --run (your example) --vis" instead.

> In wscript inside ns-3-dce-umip folder I added the following lines:
>
> module.add_example(needed = ['core', 'internet', 'dce', 'csma', 'mobility',
> 'wifi', 'dce-quagga', 'dce-umip','visualizer'],
> target='bin/my-nemo-v0',
> source=['example/my-nemo-v0.cc'])

waf automatically detect and attach 'visualizer' if "--vis"
is specified: so you don't have to add 'visualizer' in your
wscript.

let me know if you still got some trouble.

-- Hajime
> > > To post to this group, send email to ns-3-...@googlegroups.com<javascript:>.
> >
> > > To unsubscribe from this group, send email to
> > ns-3-users+...@googlegroups.com <javascript:>.
> > > For more options, visit this group at
> > http://groups.google.com/group/ns-3-users?hl=en.
> > >
> > > [2 <text/html; ISO-8859-1 (quoted-printable)>]
> > >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/8SQ8AGSHwtAJ.

Hajime Tazaki

unread,
Feb 5, 2013, 9:54:12 PM2/5/13
to ns-3-...@googlegroups.com

Hello Qiang,

Could you try the latest code again and --vis option in
ns-3-dce-umip ?

-- Hajime

At Sun, 20 Jan 2013 12:02:03 +0900,
鹂 Š wrote:
>
> [1 <text/plain; UTF-8 (quoted-printable)>]
> Hi,
>
> 1) import the ns.visualizer module in
> "ns-3-dev/src/visualizer/visualizer/core.py", rebuilt the DEC.
>
> 2) update the wscript file in ns-3-dce-umip as follows
> From:
> ns3waf.check_modules(conf, ['topology-read', 'applications',
> 'visualizer'], mandatory = False)
> To:
> ns3waf.check_modules(conf, ['topology-read', 'applications',
> 'visualizer'], mandatory = True)
>
> From:
> module.add_example(needed = ['core', 'internet', 'dce',
> 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip'],
> target='bin/dce-umip-nemo', source=['example/dce-umip-**nemo.cc'])
>
> To:
> module.add_example(needed = ['core', 'internet', 'dce',
> 'csma', 'mobility', 'wifi', 'dce-quagga', 'dce-umip', 'visualizer'],
> target='bin/dce-umip-nemo', source=['example/dce-umip-**nemo.cc'])
>
>
>
> After ./waf clean and ./waf, I can got the 'dce-umip-nemo' in catalog
> "ns-3-dce-umip/build/bin" successfully,
>
> BUT ,
>
> ./build/bin/dce-umip-nemo --SimulatorImplementationType=**
> >> source=['example/dce-umip-**nemo.cc'])
> >>
> >> To:
> >> module.add_example(needed = ['core', 'internet', 'dce', 'csma',
> >> 'mobility', 'wifi', 'dce-quagga', 'dce-umip', 'visualizer'],
> >>
> >> target='bin/dce-umip-nemo',
> >>
> >> source=['example/dce-umip-**nemo.cc'])
> >>
> >>
> >>
> >>
> >>
> >> 3) after step 2) run the follow two commands
> >>
> >>
> >>
> >> ./waf clean
> >>
> >> ./waf
> >>
> >>
> >>
> >> after it, I can't find 'dce-umip-nemo' in catalog "ns-3-dce-umip/build/bin"
> >>
> >>
> >>
> >>
> >>
> >> BEG FOR YOUR HELP!!!
> >>
> >>
> >>
> >> Best regards!
> >>
> >> Li
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> 2013年1月4日金曜日 11時00分42秒 UTC+9 Hajime:
> >>
> >>>
> >>> Hi,
> >>>
> >>> please make it sure that the visualizer module in "ns-3-dev"
> >>> was built successfully.
> >>>
> >>> >1) build and install PyViz in ns-3-dev
> >>> >note that python binding needs to be built.
> >>> >http://www.nsnam.org/wiki/**index.php/PyViz#ns_.3E.3D_3.10<http://www.nsnam.org/wiki/index.php/PyViz#ns_.3E.3D_3.10>
> >>> > --with-pybindgen="/home/**renatomartins/repos/ns-3-**allinone/pybindgen"
> >>>
> >>> > % ./waf
> >>> > % ./waf install
> >>> >
> >>> > *2º Added module visualizer inside wscript*
> >>> >
> >>> > % cd ns-3-dce-umip/
> >>> >
> >>> > module.add_example(needed = ['core', 'internet', 'dce', 'csma',
> >>> 'mobility',
> >>> > 'wifi', 'dce-quagga', 'dce-umip', 'visualizer'],
> >>> > target='bin/dce-umip-nemo',
> >>> > source=['example/dce-umip-**nemo.cc'])
> >>> >
> >>> > *3º Build *
> >>> >
> >>> > % ./waf clean
> >>> > % ./waf
> >>> > % ./build/bin/dce-umip-nemo
> >>> > --SimulatorImplementationType=**ns3::VisualSimulatorImpl
> >>> >
> >>> > After that, the bash said the file doesn't exist.
> >>> >
> >>> > But if I remove the 'visualizer' module inside the wscript the file
> >>> already
> >>> > is created on the directory build/bin/dce-umip-nemo.
> >>> >
> >>> > What is the problem?
> >>> >
> >>> > Best Regards,
> >>> > Renato Martins
> >>> >
> >>> > --
> >>> > You received this message because you are subscribed to the Google
> >>> Groups "ns-3-users" group.
> >>> > To view this discussion on the web visit https://groups.google.com/d/*
> >>> *msg/ns-3-users/-/lu8wy-BIeUMJ<https://groups.google.com/d/msg/ns-3-users/-/lu8wy-BIeUMJ>.
> >>>
> >>> > To post to this group, send email to ns-3-...@googlegroups.com.
> >>> > To unsubscribe from this group, send email to
> >>> ns-3-users+...@googlegroups.**com.
> >>> > For more options, visit this group at http://groups.google.com/**
> >>> group/ns-3-users?hl=en <http://groups.google.com/group/ns-3-users?hl=en>.
> >>>
> >>> >
> >>> > [2 <text/html; ISO-8859-1 (quoted-printable)>]
> >>> >
> >>>
> >> --
> > You received this message because you are subscribed to the Google Groups
> > "ns-3-users" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/ns-3-users/-/ibgtZKpaQXUJ.
> >
> > To post to this group, send email to ns-3-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > ns-3-users+...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/ns-3-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To post to this group, send email to ns-3-...@googlegroups.com.
> To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
>
> [2 <text/html; UTF-8 (quoted-printable)>]
>

Renato Martins

unread,
Feb 12, 2013, 8:33:43 AM2/12/13
to ns-3-...@googlegroups.com
Hi Hajime,

thanks for your update.

I don't understand how can I update ?
Message has been deleted

dương văn hưng

unread,
Nov 18, 2013, 1:02:01 PM11/18/13
to ns-3-...@googlegroups.com

Hello Hajime,.

I need to simulate a scenario with Mobile Ipv6.
http://www.nsnam.org/docs/dce/manual-umip/html/getting-started.html
./test.py -s dce-umip
Traceback (most recent call last):
  File "./test.py", line 1859, in <module>
    sys.exit(main(sys.argv))
  File "./test.py", line 1856, in main
    return run_tests()
  File "./test.py", line 1011, in run_tests
    read_waf_config()
  File "./test.py", line 566, in read_waf_config
    NS3_INSTALL_DIR = os.path.abspath(ns3_dir)
  File "/usr/lib/python2.7/posixpath.py", line 343, in abspath
    if not isabs(path):
  File "/usr/lib/python2.7/posixpath.py", line 53, in isabs
    return s.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'

What is my problem?
Sorry i speak english bad

Hajime Tazaki

unread,
Nov 22, 2013, 10:11:58 AM11/22/13
to ns-3-...@googlegroups.com

At Mon, 18 Nov 2013 10:02:01 -0800 (PST),
something went wrong during build.

could you please give us the contents of following files ?

- dce/source/ns-3-dce/.lock-waf_linux2_build
- dce/source/ns-3-dce/build/config.log

thanks.
-- Hajime

ⁿ°²»» ƒan†aSy ™

unread,
Nov 23, 2013, 1:41:42 AM11/23/13
to ns-3-...@googlegroups.com
Hi,
Thanks you,this is two file:



2013/11/22 Hajime Tazaki <theh...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/WcYv1tH97gY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
waf
config.log

Hajime Tazaki

unread,
Dec 16, 2013, 2:44:11 AM12/16/13
to ns-3-...@googlegroups.com

sorry to be late.

dce-1.1 was broken for a while, and fixed at the beginning
of December.

your built should work now. please try to download it and build again.

-- Hajime

At Sat, 23 Nov 2013 01:41:42 -0500,
ⁿ°²»» ƒan†aSy ™ wrote:
>
> [1 <multipart/alternative (7bit)>]
> [1.1 <text/plain; UTF-8 (quoted-printable)>]
Reply all
Reply to author
Forward
0 new messages