NS-3 Nodes

82 views
Skip to first unread message

Mateusz Mowinski

unread,
May 30, 2012, 12:09:07 PM5/30/12
to ns-3-users
I have to make a simulation in several Nodes. How to make this?

Konstantinos

unread,
May 30, 2012, 12:31:28 PM5/30/12
to ns-3-...@googlegroups.com
Could you be more specific? What kind of simulation do you want to make in these nodes?

Mateusz Mowinski

unread,
May 30, 2012, 1:03:48 PM5/30/12
to ns-3-...@googlegroups.com


W dniu środa, 30 maja 2012 18:09:07 UTC+2 użytkownik Mateusz Mowinski napisał:
I have to make a simulation in several Nodes. How to make this?

 My task is:

Implement in NS-3 a several network
For this networks generate some traffic in severeal nodes and do the analyze of that traffic in another nodes of network

Shane Tuohy

unread,
May 31, 2012, 11:15:01 AM5/31/12
to ns-3-...@googlegroups.com
Before asking questions on the mailing list, it is recommended that you go through the ns-3 tutorial. 


It will teach you how to install and use ns-3 and if you have some specific questions that you cannot figure out, then email the mailing list. 

Regards, 
Shane

Mateusz Mowinski

unread,
May 31, 2012, 2:07:58 PM5/31/12
to ns-3-...@googlegroups.com
I have already installed ns-3. 

I mean thath I tested topology builded like that w1-----------w2. (2 Nodes).

Now I have to build topologys:

1. w1--------w2-----------w3
2. w1--------w2-----------w3--------------w4

3. w1--------w2
      \         /
       \       /
         \    /
           w3

How to do this? 

Konstantinos

unread,
May 31, 2012, 2:26:50 PM5/31/12
to ns-3-...@googlegroups.com
If you look at the examples folder there are source scripts with this kind of network topologies.

Mateusz Mowinski

unread,
May 31, 2012, 3:23:29 PM5/31/12
to ns-3-...@googlegroups.com
Which folder do you mean? I click on folder Examples and there are many folders. I`m a new user of ns-3 and i dont know exactly which script conforn to my network topologies


2012/5/31 Konstantinos <dinos.k...@gmail.com>
--
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/-/xzrl82XiMtUJ.

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.

William Bellia

unread,
May 31, 2012, 4:55:45 PM5/31/12
to ns-3-...@googlegroups.com
The tutorial has a very good example on how to implement such a topology. I suggest you take a look at it.

Regards,
Will
--
William Bellia


phuchong kheawchaoom

unread,
May 31, 2012, 10:43:49 PM5/31/12
to ns-3-...@googlegroups.com

Mateusz Mowinski

unread,
Jun 18, 2012, 4:38:13 PM6/18/12
to ns-3-...@googlegroups.com
Can somone write for me this scripts with using this topologies? I don`t have many time and i Don`t know how exactly do this. Please Help. My time is ending. 

2012/6/1 phuchong kheawchaoom <phuch...@gmail.com>

srinivas poram

unread,
Nov 2, 2012, 12:44:49 AM11/2/12
to ns-3-...@googlegroups.com
Hi,
 You need to create 3 nodes or Four nodes as per your requirement as below

  Ptr<Node>w1=CreateObject<Node>();
  Ptr<Node>w2=CreateObject<Node>();
  Ptr<Node>w3=CreateObject<Node>(); ...

After this you need to create Point-to-point links

 NodeContainer w1w2=NodeContainer(w1,w2);
 NodeContainer w2w3=NodeContainer(w2,w3);
 
NodeContainer c=NodeContainer(w1,w2,w3);

Ipv4StackHelper stack;
stack.Install(c);

You create Netdevices for these NodeConatiners.

then remaining is as it is like two node point-to-point network

Thanks,
Srinivas

Amit Rathee

unread,
Nov 3, 2012, 3:37:58 AM11/3/12
to ns-3-...@googlegroups.com
doing like this i face problem in installing netdevices and i simulation it shows 4 nodes instead of 3 as per the ip address displayed(actually i installed client on first and server app. on third nodes, it shows 10.0.0.4 and 10.0.0.1 address in the result displayed, but i have only 3 nodes i.e. address should go from 10.0.0.1 to 10.0.0.3) help plz

--
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/-/UY8IqK3w8nUJ.
Reply all
Reply to author
Forward
0 new messages