MiXiM or MiXiM+INET

1,212 views
Skip to first unread message

Nauman Javed

unread,
Jul 15, 2012, 4:41:23 PM7/15/12
to omn...@googlegroups.com
Hi all,

I have to simulate a wireless mesh network in which individual links would be separately affected by some external phenomena (possibly correlated over the space of different links).

I need to implement wireless (mesh) routing to mitigate the effects of such external phenomena on network performance.

Hence, I need:

1- Physical layer simulation, where the effect of external phenomena will be simulated.

2- MAC layer simulation, that simulates channel access in the face of interference and such.

3- Network layer simulation, to simulate some standard as well as my own routing protocols

4- Application layer simulation, to simulate some traffic for performance measurement purposes.

Should I use just OMNet++, OR MiXiM on top of it, OR MiXiM+INET both? Also, any other general suggestions would be helpful.

Regards,

Nauman Javed
PhD Candidate,
Electrical and Computer Engineering,
University of Massachusetts Amherst

Aravind

unread,
Jul 15, 2012, 9:15:04 PM7/15/12
to omn...@googlegroups.com
Hello,

My suggestion could be to use Mixim + INET. My observation tells, Mixim is used for the physical and mac layer. And, INET is used for network layer and above. So, first start working out with Mixim and finish till the channel assignment and then integrate with INET when needed for routing.

Thanks

Nauman Javed

unread,
Jul 16, 2012, 8:26:19 AM7/16/12
to omn...@googlegroups.com
Hi all,

Which versions of MiXiM and INET should I use if I want them both to work together?

Thanks,

Nauman
P.S. Thanks Aravind for your reply.





From: Aravind <monar...@gmail.com>
Sent: Sunday, July 15, 2012 9:15 PM
To: omn...@googlegroups.com
Subject: [Omnetpp-l] Re: MiXiM or MiXiM+INET
--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp

Rudolf Hornig

unread,
Jul 16, 2012, 9:18:08 AM7/16/12
to omn...@googlegroups.com
MIXIM: https://github.com/omnetpp/mixim
INET: https://github.com/inet-framework/inet/tree/integration (i.e. use the integration branch, or INET 1.99.5 or later should be fine too)

Rudolf

Nauman Javed

unread,
Jul 16, 2012, 1:39:21 PM7/16/12
to omn...@googlegroups.com
Thanks Rudolf. So I can't really install the latest versions of MiXiM and INET and instead should install the ones you mentioned?

Also, are there some easy-to-follow installation instructions that tell me which model to install first and such?

Thanks,

Nauman





From: Rudolf Hornig <ru...@omnetpp.org>
Sent: Monday, July 16, 2012 9:18 AM
To: omn...@googlegroups.com
Subject: Re: [Omnetpp-l] Re: MiXiM or MiXiM+INET

Rudolf Hornig

unread,
Jul 16, 2012, 3:18:18 PM7/16/12
to omn...@googlegroups.com
The latest INET 1.99.5 is fine, but you will need the latest head from https://github.com/omnetpp/mixim 

Just install INET, build and test if that works, after that checkout mixim, make sure the mixim project refers to INET (in project references), and then build MIXIM. Inet specific examples are available in  MIXIM/examples/inet

The INSTALL instructions are obsolete at the moment in the repo. Actually this branch REQURES INET and cannot be used without it.
Rudolf

Nauman Javed

unread,
Jul 18, 2012, 7:48:44 PM7/18/12
to omn...@googlegroups.com, Rudolf Hornig
Hi Rudolf,

I installed OMNeT++ and INET 1.99.5 successfully. Now shall I download
MiXiM and extract the tar file using tar xvfz theMiXiMfile.tar.gz
(like in the case of INET tar file)?

Also, do I need to turn off the "Radio" feature in the INET's Project
Features?

Another query: For running INET, I have to run "module load mpi" every
time BEFORE launching OMNeT++. Otherwise, the project INET (examples)
won't run. How can I automate loading of mpi module? Sorry about the
trivial query.

Thanks,

Nauman




Quoting Rudolf Hornig <ru...@omnetpp.org>:

> The latest INET 1.99.5 is fine, but you will need the latest head from
> https://github.com/omnetpp/mixim
>
> Just install INET, build and test if that works, after that checkout mixim,
> make sure the mixim project refers to INET (in project references), and
> then build MIXIM. Inet specific examples are available in
> MIXIM/examples/inet
>
> The INSTALL instructions are obsolete at the moment in the repo. Actually
> this branch REQURES INET and cannot be used without it.
> Rudolf
>
> On Monday, July 16, 2012 7:39:21 PM UTC+2, Nauman Javed wrote:
>>
>> Thanks Rudolf. So I can't really install the latest versions of MiXiM and
>> INET and instead should install the ones you mentioned?
>>
>> Also, are there some easy-to-follow installation instructions that tell me
>> which model to install first and such?
>>
>> Thanks,
>>
>> Nauman
>>
>>
>>
>>
>> ------------------------------
>> From: Rudolf Hornig <ru...@omnetpp.org>
>> Sent: Monday, July 16, 2012 9:18 AM
>> To: omn...@googlegroups.com
>> Subject: Re: [Omnetpp-l] Re: MiXiM or MiXiM+INET
>>
>> MIXIM: https://github.com/omnetpp/mixim
>> INET: https://github.com/inet-framework/inet/tree/integration (i.e. use
>> the integration branch, or INET 1.99.5 or later should be fine too)
>>
>> Rudolf
>>
>> On Monday, July 16, 2012 2:26:19 PM UTC+2, Nauman Javed wrote:
>>>
>>> Hi all,
>>>
>>> Which versions of MiXiM and INET should I use if I want them both to work
>>> together?
>>>
>>> Thanks,
>>>
>>> Nauman
>>> P.S. Thanks Aravind for your reply.
>>>
>>>
>>>
>>>
>>> ------------------------------

Nauman Javed

unread,
Jul 18, 2012, 7:51:01 PM7/18/12
to omn...@googlegroups.com, Rudolf Hornig
Also, do I need to check the Mixnet option in OMNeT++ IDE while
importing MiXiM?

Nauman



Quoting Rudolf Hornig <ru...@omnetpp.org>:

> The latest INET 1.99.5 is fine, but you will need the latest head from
> https://github.com/omnetpp/mixim
>
> Just install INET, build and test if that works, after that checkout mixim,
> make sure the mixim project refers to INET (in project references), and
> then build MIXIM. Inet specific examples are available in
> MIXIM/examples/inet
>
> The INSTALL instructions are obsolete at the moment in the repo. Actually
> this branch REQURES INET and cannot be used without it.
> Rudolf
>
> On Monday, July 16, 2012 7:39:21 PM UTC+2, Nauman Javed wrote:
>>
>> Thanks Rudolf. So I can't really install the latest versions of MiXiM and
>> INET and instead should install the ones you mentioned?
>>
>> Also, are there some easy-to-follow installation instructions that tell me
>> which model to install first and such?
>>
>> Thanks,
>>
>> Nauman
>>
>>
>>
>>
>> ------------------------------
>> From: Rudolf Hornig <ru...@omnetpp.org>
>> Sent: Monday, July 16, 2012 9:18 AM
>> To: omn...@googlegroups.com
>> Subject: Re: [Omnetpp-l] Re: MiXiM or MiXiM+INET
>>
>> MIXIM: https://github.com/omnetpp/mixim
>> INET: https://github.com/inet-framework/inet/tree/integration (i.e. use
>> the integration branch, or INET 1.99.5 or later should be fine too)
>>
>> Rudolf
>>
>> On Monday, July 16, 2012 2:26:19 PM UTC+2, Nauman Javed wrote:
>>>
>>> Hi all,
>>>
>>> Which versions of MiXiM and INET should I use if I want them both to work
>>> together?
>>>
>>> Thanks,
>>>
>>> Nauman
>>> P.S. Thanks Aravind for your reply.
>>>
>>>
>>>
>>>
>>> ------------------------------

Rudolf Hornig

unread,
Jul 19, 2012, 5:00:30 AM7/19/12
to omn...@googlegroups.com, Rudolf Hornig
On Thursday, July 19, 2012 1:48:44 AM UTC+2, Nauman Javed wrote:
Hi Rudolf,

I installed OMNeT++ and INET 1.99.5 successfully. Now shall I download  
MiXiM and extract the tar file using tar xvfz theMiXiMfile.tar.gz  
(like in the case of INET tar file)?

For now I would go with the mixim repo's head.

 

Also, do I need to turn off the "Radio" feature in the INET's Project  
Features?

No, after compiling INET, you should be able to build MIXIM without turning off any features in INET (I have resolved some name clashes in MIXIM, so the mixim radio should fit anywhere where IWirlessNic is used). Check examples/inet in mixim. Those are using INET infrastructure and should work.

 

Another query: For running INET, I have to run "module load mpi" every  
time BEFORE launching OMNeT++. Otherwise, the project INET (examples)  
won't run. How can I automate loading of mpi module? Sorry about the  
trivial query.

surly you can add that command to your .bahsrc but I guess you are not doing parallel simulations so I would advise turning off PARALLEL_SIMULATION support in OMNET.
set 

WITH_PARSIM=no 

in configure.user, then reconfigure (./configure) and rebuild OMNeT++. This will tell the build system not to try detect the parallel sym stuff automatically.

Regarding the feature: There is no "Mixnet" feature in the head version, the feature you need is called "MiXiM-INET Bridge" and it is turned on by default.


Rudolf

Nauman Javed

unread,
Jul 19, 2012, 3:41:01 PM7/19/12
to omn...@googlegroups.com, Rudolf Hornig
Rudolf,

Thanks for all your help up to now.

Everything shows up in the OMNeT++ IDE exactly as you mention, the
MiXiM project refers to INET project, the MiXiM-INET Bridge in the
project features etc, BUT
................................................................................................................................................................... the MiXiM project is not compiling. When I build the project in OMNeT++ IDE, it gives me the following
message:



**** Build of configuration gcc-debug for project MiXiM ****

make MODE=debug CONFIGNAME=gcc-debug all
make: *** No rule to make target `all'. Stop.

**** Build Finished ****



Would you know what is going wrong?

Thanks much,

Aravind

unread,
Jul 19, 2012, 10:01:47 PM7/19/12
to omn...@googlegroups.com, Rudolf Hornig, nja...@ecs.umass.edu
Hi, I have also got the similar errors while integrating both. Rudolph, do you have any idea on this?

Thanks
Aravind

Rudolf Hornig

unread,
Jul 20, 2012, 8:46:55 AM7/20/12
to omn...@googlegroups.com, nja...@ecs.umass.edu
First, there is no such thing as "mixnet" in the head of the mixim repo, so I'm not sure you are importing the right thing. Where this option is offered?
As for the makefile issue, I'm not sure what's happening. I've just compiled INET and then MIXIM without any problem.

Rudolf

Nauman Javed

unread,
Jul 20, 2012, 10:26:11 AM7/20/12
to omn...@googlegroups.com, Rudolf Hornig
Rudolf,

I have installed the INET and MiXiM versions exactly as you recommended. But MiXiM still doesn't compile (error message in my earlier email below).

I really need to get this up and running quickly; I'll use the simulations for my dissertation. Urgent help would be highly appreciated.

Thanks,

Nauman




-----Original Message-----
From: Nauman Javed <nja...@ecs.umass.edu>
Sent: Thursday, July 19, 2012 3:41 PM
To: omn...@googlegroups.com; Rudolf Hornig <ru...@omnetpp.org>
Subject: Re: [Omnetpp-l] Re: MiXiM or MiXiM+INET

Rudolf,

Thanks for all your help up to now.

Everything shows up in the OMNeT++ IDE exactly as you mention, the
MiXiM project refers to INET project, the MiXiM-INET Bridge in the
project features etc, BUT
................................................................................................................................................................... the MiXiM project is not compiling. When I build the project in OMNeT++ IDE, it gives me the following
message:



**** Build of configuration gcc-debug for project MiXiM ****

make MODE=debug CONFIGNAME=gcc-debug all
make: *** No rule to make target `all'. Stop.

**** Build Finished ****



Would you know what is going wrong?

Thanks much,

Nauman




Quoting Rudolf Hornig <ru...@omnetpp.org>:

Nauman Javed

unread,
Jul 20, 2012, 4:17:24 PM7/20/12
to omn...@googlegroups.com, Rudolf Hornig
Hi,

The MiXiM project asked for a "custom makefile" for the top-level
(/mixim) folder. And probably that's why I was getting the error that
I mentioned in my email below.

But after I set the build option to "Makemake" for the top-level
(/mixim), I get the following build errors:





basePhyLayer/TestGlobals.h:44:104: error: ‘class AirFrame’ has no
member named ‘getState’
In file included from basePhyLayer/TestPhyLayer.h:6:0,
from basePhyLayer/TestMacLayer.h:7,
from basePhyLayer/BasePhyTests.cc:17:
basePhyLayer/TestDecider.h: In member function ‘void
TestDecider::testRun7(int, cMessage*)’:
basePhyLayer/TestDecider.h:70:28: error: ‘class AirFrame’ has no
member named ‘getSignal’
basePhyLayer/TestDecider.h: In member function ‘simtime_t
TestDecider::processSignal(AirFrame*)’:
basePhyLayer/TestDecider.h:97:28: error: ‘class AirFrame’ has no
member named ‘getSignal’
basePhyLayer/TestDecider.h:117:46: error: no matching function for
call to ‘DeciderToPhyInterface::sendUp(AirFrame*&, DeciderResult*)’
basePhyLayer/TestDecider.h:117:46: note: candidate is:
../src/base/phyLayer/DeciderToPhyInterface.h:84:22: note: virtual void
DeciderToPhyInterface::sendUp(MiximAirFrame*, DeciderResult*)
../src/base/phyLayer/DeciderToPhyInterface.h:84:22: note: no known
conversion for argument 1 from ‘AirFrame*’ to ‘MiximAirFrame*’
basePhyLayer/TestGlobals.h: In member function ‘virtual bool
AssertAirFrame::isMessage(cMessage*)’:
basePhyLayer/TestGlobals.h:45:2: warning: control reaches end of
non-void function [-Wreturn-type]
make[1]: *** [../out/gcc-debug/tests/basePhyLayer/BasePhyTests.o] Error 1
make: *** [tests_dir] Error 2

**** Build Finished ****





Any clues?

Thanks,

Nauman

Rudolf Hornig

unread,
Jul 21, 2012, 6:08:03 AM7/21/12
to omn...@googlegroups.com, nja...@ecs.umass.edu
Yeah, indeed the toplevel makefiles were missing (my fault) from the repository. You should NOT change anything in the project config. The top level makefile is indded a custom one...

Please delete your whole MIXIM directory checkout again now (I have added the needed makefiles to the repo), import it and try again...
Rudolf

Nauman Javed

unread,
Jul 21, 2012, 4:21:53 PM7/21/12
to omn...@googlegroups.com, Rudolf Hornig
Thanks Rudolf, now MiXiM build was successful. I am unable to run the
examples though. I get the following message when I run the
"baseNetwork" example, for instance:



Exception occurred executing command line.
Cannot run program
"/home/omnetpp-4.2.2/workspaces/MiXiM/examples/miximexamples" (in
directory
"/home/omnetpp-4.2.2/workspaces/MiXiM/examples/baseNetwork"):
java.io.IOException: error=2, No such file or directory



Indeed, there is no "miximexamples" in the "baseNetwork" directory, or
the "examples" directory even. The "baseNetwork" directory contains
only four files: 1) BaseNetwork.ned, 2) config.xml, 3) omnetpp.ini,
and 4) README.

Can you please resolve this one?

Thanks again,

Aravind

unread,
Jul 21, 2012, 5:27:09 PM7/21/12
to omn...@googlegroups.com, Rudolf Hornig, nja...@ecs.umass.edu
Nauman, once the build(right click on the project and select Build) is successful, then just right click on the omnetpp.ini file in any example, and the click on Run..I hope you can see the output, I feel little embrassed when executing through command line..

Nauman Javed

unread,
Jul 21, 2012, 10:48:35 PM7/21/12
to omn...@googlegroups.com, Rudolf Hornig
Aravind,

The examples in my case just don't execute.

Rudolf,

Did you find anything the matter with the MiXiM repo regarding this issue?

Thanks,

Nauman







From: Aravind <monar...@gmail.com>
Sent: Saturday, July 21, 2012 5:27 PM
To: omn...@googlegroups.com
Cc: Rudolf Hornig <ru...@omnetpp.org>; nja...@ecs.umass.edu

Nauman Javed

unread,
Jul 23, 2012, 5:15:36 PM7/23/12
to omn...@googlegroups.com, Rudolf Hornig
Hi,

I need urgent help with running MiXiM. I have finally been able to
install and build the MiXiM project (after installing and building the
INET project), but the MiXiM examples just don't run. Please see my
earlier email below. Basically when I run an example, for instance the
mixim/examples/inet/adhoc, it asks me which of the two executable
files I want to run, mixim/examples or mixim/tests, and none of these
two executable files are available in the mixim/ directory.

Please suggest. Urgent help highly appreciated,

Regards,

Nauman



Quoting Nauman Javed <nja...@ecs.umass.edu>:

Piyawad Kasabai

unread,
Jul 24, 2012, 1:20:27 PM7/24/12
to omn...@googlegroups.com, nja...@ecs.umass.edu
Hi all,

I'm using Veins 2.0-rc2  (http://veins.car2x.org/download/) and try to use together with INET framework (http://github.com/inet-framework/inet/tarball/integration) and following instruction http://sourceforge.net/apps/trac/mixim/wiki/mixnet but it fail to build, 
getting the error as follow: 

ConnectionManager/ChannelAccess.h:31:36: fatal error: MobilityAccess.h: No such file or directory

Please help. What should i do to build it? 
Regards, 

เมื่อ วันจันทร์ที่ 16 กรกฎาคม ค.ศ. 2012, 3 นาฬิกา 41 นาที 23 วินาที UTC+7, Nauman Javed เขียนว่า:

Ali Balador

unread,
Feb 11, 2013, 10:51:08 AM2/11/13
to omn...@googlegroups.com, nja...@ecs.umass.edu
Hi Piyawad,

Did you have any progress in installing veins and inet together because i have the same problem.

I would appreciate any help.

Piyawad Kasabai

unread,
Feb 11, 2013, 11:37:21 AM2/11/13
to omn...@googlegroups.com, nja...@ecs.umass.edu

Hi Ali Balador

Veins was written to support only WSMP, currently works only with MiXiM. Veins not supports IP protocol available in INET. I try to use UDP to transmit but got error "WaveMac only accepts WaveShortMessages" according to Mac1609_4.cc

Ali Balador

unread,
Feb 11, 2013, 11:54:22 AM2/11/13
to omn...@googlegroups.com, nja...@ecs.umass.edu
Hi,

you are right, i tried that before. you cannot do that because the upper layer structure in veins is wsmp and tcp/ip is not supported by veins in contrast to the standard. because of that i wanted to install mixim and inet together and solve the lake of tcp/ip structure in veins in that way.
but the problem is that i can only install mixim and inet together and not mixim. mixim is not support traci.

What is your suggestion for having tcp/ip structure in veins?

Piyawad Kasabai

unread,
Feb 11, 2013, 12:09:55 PM2/11/13
to omn...@googlegroups.com
Hi 

Sorry i mistake in previous post. I used my application (it not BaseWaveApplLayer) and got error as about-mentioned. i can't build veins together with inet.

--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
---
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Piyawad Kasabai                                                         
Department of Computer Science, Faculty of Informatics,
Mahasarakham University

Piyawad Kasabai

unread,
Feb 11, 2013, 12:14:28 PM2/11/13
to omn...@googlegroups.com, nja...@ecs.umass.edu
Hi Ali Balador

Sorry i mistake in previous post. I used my application (it not BaseWaveApplLayer) and got error as about-mentioned. i can't build veins together with inet.

Ali Balador

unread,
Feb 11, 2013, 12:17:28 PM2/11/13
to omn...@googlegroups.com
I tried to find a solution by working with two frameworks because mixim can not support tcp/ip structure.

Let me know about your progress and solve our problem together. I think that we are in the same boat.

Piyawad Kasabai

unread,
Feb 11, 2013, 12:32:03 PM2/11/13
to omn...@googlegroups.com
I does not use veins but i'm using mixim and inet. These make together success following instruction in http://sourceforge.net/apps/trac/mixim/wiki/mixnet

Ali Balador

unread,
Feb 11, 2013, 1:08:48 PM2/11/13
to omn...@googlegroups.com
I have installed mixim and inet successfully but my problem is simulating a vehicular ad hoc networks with tcp/ip structure in mixim-inet.

Do you have any idea?

marzieh ghasemi

unread,
Aug 4, 2016, 8:21:25 AM8/4/16
to OMNeT++ Users, nja...@ecs.umass.edu
Hello
This is Marzieh.
I need to implement link correlation in omnet++. I suppose it is related to your thesis. Would you please guide me?

Thank you in advance
Reply all
Reply to author
Forward
0 new messages