Simulate a Mesh Network

1,186 views
Skip to first unread message

Carlos Alessandro Sena de Freitas

unread,
Apr 19, 2011, 3:42:03 PM4/19/11
to omnetpp
Hi I need to simulate a mesh network with omnet 4.1, i already have
downloaded and install the INET and INETMANET frameworks, but i really
don't know how to start.

Someone could help me with some tips?

Thanks for the help :D

Angelos Vassiliou

unread,
Apr 20, 2011, 8:43:39 AM4/20/11
to omnetpp
Have you maneged to create OMNeT++ models? is your issue related to
using the INET framework or OMNeT++ ? You have to get a grasp of the
OMNeT++ package first, and then start trying to use INET.
Also, have tried the INET walkthrough: http://inet.omnetpp.org/doc/INET/walkthrough/tutorial.html
?

Carlos Alessandro Sena de Freitas

unread,
Apr 20, 2011, 9:29:13 AM4/20/11
to omn...@googlegroups.com
Actually my question is how to start, i'm now reading the tutorial and it seems quite good (thanks :D)

My major problem is how to make for example a mesh network with only two nodes sending packages to each other, one of the examples of the inet uses only the arp protocol, but i gona need more than that =(

2011/4/20 Angelos Vassiliou <brave.fr...@gmail.com>
?

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.


Pinto Pinto

unread,
Apr 20, 2011, 11:19:23 AM4/20/11
to omn...@googlegroups.com
Hi,
the easiest way to simulate a mesh network (assuming that you are not interested to routing protocols) is to use ad hoc nodes.
For that you should dowload the InetManet framework.
in your example, you should use two nodes in adhoc mode, connected to each other (i.e. with static routes)
then you can set udp apps to each nodes (i.e. UdpBasicApp which works for both sender and receiver) to exchange traffic.


in my mesh network simulations i use multi-radio ad hoc nodes with static routing

Carlos Alessandro Sena de Freitas

unread,
Apr 30, 2011, 5:46:24 PM4/30/11
to omnetpp
Can you send me (if possible) the code of your simulations?

On 20 abr, 11:19, Pinto Pinto <pintox...@gmail.com> wrote:
> Hi,
> the easiest way to simulate a mesh network (assuming that you are not
> interested to routing protocols) is to use ad hoc nodes.
> For that you should dowload the InetManet framework.
> in your example, you should use two nodes in adhoc mode, connected to each
> other (i.e. with static routes)
> then you can set udp apps to each nodes (i.e. UdpBasicApp which works for
> both sender and receiver) to exchange traffic.
>
> in my mesh network simulations i use multi-radio ad hoc nodes with static
> routing
>
> On Wed, Apr 20, 2011 at 4:29 PM, Carlos Alessandro Sena de Freitas <
>
>
>
>
>
>
>
> veneinzu...@gmail.com> wrote:
> > Actually my question is how to start, i'm now reading the tutorial and it
> > seems quite good (thanks :D)
>
> > My major problem is how to make for example a mesh network with only two
> > nodes sending packages to each other, one of the examples of the inet uses
> > only the arp protocol, but i gona need more than that =(
>
> > 2011/4/20 Angelos Vassiliou <brave.free.wo...@gmail.com>

Pinto Pinto

unread,
May 3, 2011, 6:04:48 AM5/3/11
to omn...@googlegroups.com
hi,
you can find attached a grid mesh scenario with ini files for tcp and udp applications

i hope this helps a bit :)

bye
pintoX
e2gridAFairc.tar.gz

Carlos Alessandro Sena de Freitas

unread,
May 3, 2011, 8:26:00 AM5/3/11
to omn...@googlegroups.com
Hi thanks for the code, but i can't compile it in my computer because of these missing imports:

import inet.world.ChannelControlExtended;
import inet.networklayer.manetrouting.ManetRouting;
import inet.nodes.inet.NetworkLayerGlobalArp2;

I don't have any of this files in my inet project, maybe you create them for your simulations; if this is the case can you send me those files to?

Thanks again :D

Pinto Pinto

unread,
May 3, 2011, 8:42:19 AM5/3/11
to omn...@googlegroups.com
you should download and install "inetmanet" for adhoc/mesh simulations
when you do that the code will run without problems (remove the '2' in the last sentence, for inetmanet it is just import inet.nodes.inet.
NetworkLayerGlobalArp;)

Carlos Alessandro Sena de Freitas

unread,
May 3, 2011, 10:47:10 AM5/3/11
to omn...@googlegroups.com
Hi i install the inetmanet and the code is still with some errors:

in the e2eHost.ned file in the lines: 

  manetRouting: ManetRouting {
            @display("p=146,247");
            manetactive = manetActive;
            manetpurgeRoutingTables = manetPurgeRoutingTables;
        }

The omnet says that the type ManetRouting doesn't has these two last parameters.

The another error is in the line

        networkLayer.TCPOut --> thruputMeter.in;

The omnet says that the gate TCPOut doesn't exist.

Pinto Pinto

unread,
May 3, 2011, 11:39:20 AM5/3/11
to omn...@googlegroups.com
yes ok i had it with a previous version of inetmanet

the gates of networkklayerglobalarp have changes a little bit, it should be tcpOut and tcpIn now

delete these two parameters from the ned file and try to set them in the .ini file

Carlos Alessandro Sena de Freitas

unread,
May 3, 2011, 12:26:18 PM5/3/11
to omn...@googlegroups.com
Thanks it works now :D

Carlos Alessandro Sena de Freitas

unread,
May 4, 2011, 9:37:05 AM5/4/11
to omn...@googlegroups.com
Hi again, one question the udp model isn't working, but it doesn't have any error, it only stops working when i launch the simulation, maybe it's my version of the inet or inetmanet? wich version you use when for this project?

2011/5/3 Carlos Alessandro Sena de Freitas <venei...@gmail.com>

Pinto Pinto

unread,
May 4, 2011, 9:47:20 AM5/4/11
to omn...@googlegroups.com
i just tested it in the new version of inetmanet (from github) and it's working perfectly.
what do you mean by "it stops working when i launch the simulation" ?
how do you see that it's not working?
when the gui launches after pressing the run button it will ask you to set a few parameters (intentionally i had left them unassigned)
you should tick the "use this value for all similar parameters" and just press the ok button until all parameters are set
then it should work

Carlos Alessandro Sena de Freitas

unread,
May 4, 2011, 10:23:18 AM5/4/11
to omn...@googlegroups.com
Thanks again, I just clean the project and build it again and it works fine :D

Sorry for being such a noob >.<

Carlos Alessandro Sena de Freitas

unread,
May 4, 2011, 10:27:05 AM5/4/11
to omn...@googlegroups.com
Another question when i change the routing files but the nodes aren't not following them, besides those files what i need to modify? 

2011/5/4 Carlos Alessandro Sena de Freitas <venei...@gmail.com>

Pinto Pinto

unread,
May 4, 2011, 12:30:41 PM5/4/11
to omn...@googlegroups.com
nothing, just the routing files
but you should pay attention on the channel assignment at the interfaces on the nodes that you have changed.

i.e. what did you change and you say is not working?

Saadia Batool

unread,
Jan 25, 2019, 3:17:54 AM1/25/19
to OMNeT++ Users
can you send me the code file please.
Reply all
Reply to author
Forward
0 new messages