14
By Mohammed Amer Al-Batati https://omnetgroup.wordpress.com/ 2012 OMNet++ Projects Part - 1

Tutorial 1 installing mixim and mixnet

Embed Size (px)

Citation preview

Page 1: Tutorial 1   installing mixim and mixnet

ByMohammed Amer Al-Batati

https://omnetgroup.wordpress.com/

2012

OMNet++

Projects

Part - 1

Page 2: Tutorial 1   installing mixim and mixnet

“MiXiM is an OMNeT++ modeling framework created for mobile and fixed wireless networks (wireless sensor networks, body area networks, ad-hoc networks, vehicular networks, etc.). It offers detailed models of radio wave propagation, interference estimation, radio transceiver power consumption and wireless MAC protocols (e.g. Zigbee).”

What is MiXiM?

Page 3: Tutorial 1   installing mixim and mixnet

“The INET Framework is an open-source communication networks simulation package for the OMNeT++ simulation environment. The INET Framework contains models for several wired and wireless networking protocols, including UDP, TCP, SCTP, IP, IPv6, Ethernet, PPP, 802.11, MPLS, OSPF, and many others. “

What is INET?

Page 4: Tutorial 1   installing mixim and mixnet

“Mixnet was a project contained in MiXiM's "inet" folder which provides all modules, examples and documentation concerning using MiXiM and INET together in the same network.”

“Since MiXiM concentrates on providing very detailed models of wireless network interface cards it does not provide very sophisticated upper layers (network layer, application layer, etc.). Fortunately these are the layers for which the INET framework provides a lot of very detailed modules. So the idea of Mixnet was to bring INET and MiXiM together to be able to use the wireless NICs from MiXiM together with the upper network stack from INET.”

What is Mixnet?

Why?

Page 5: Tutorial 1   installing mixim and mixnet

This tutorial shows how to install Mixnet using OMNet version 4.1 under windows platform, to do so you need the following:

1. OMNeT++, version 4.1, can be found here.2. MiXiM version 2.1 archive containing two

projects: MiXiM and Mixnet, can be found here.

3. The "inet4mixnet“, which is INET but has been made compatible with MiXiM by removing all wireless related modules. It can be found here

Requirements

Page 6: Tutorial 1   installing mixim and mixnet

1. Install omnet++ version 4.1. To those who have no experience with OMNet, it is highly recommended to start reading about it first. Try to start with this.

2. Open OMNet IDE.3. When you are asked about Workspace

folder, create your own (i.e.; myMiXiM), don’t use spaces.

Installation

Page 7: Tutorial 1   installing mixim and mixnet

4. OMNet IDE will be opened with empty projects.

5. First, import inet project. File -> Import -> General

6. “Exiting Project into Workspace” -> Next

Installation- cont.

Page 8: Tutorial 1   installing mixim and mixnet

7. “Select archive file” -> Browse to inet archive file -> Open

Installation- cont.

Page 9: Tutorial 1   installing mixim and mixnet

8. INET project should appear in the projects list.

9. Select inet project -> Finish.10. INET project is imported and built

automatically (if not build it). It takes a while!

Installation- cont.

Page 10: Tutorial 1   installing mixim and mixnet

11. After building the project correctly, you can see the inet libraries and zero errors.

12. Now, import MiXiM and Mixnet project.13. Uncheck “Build Automatically”, at Project

label. 14. From File -> Import -> General -> Existing

project to Workspace -> Select archive file -> Browse to MiXiM-2.1.tar.gz -> Open

Installation- cont.

Page 11: Tutorial 1   installing mixim and mixnet

14. Select both “MiXiM (MiXiM)” and “Mixnet (inet)”.

15. Select Finish.16. After importing. You can see that Mixnet

depends on both MiXiM and inet. Right-click on Mixnet -> properties -> Project references.

Installation- cont.

Page 12: Tutorial 1   installing mixim and mixnet

17. Build all projects from Project -> Build All.18. After building the projects. You can see all

project libraries with no errors.19. Good Luck! We have done with installation.

Installation- cont.

Page 14: Tutorial 1   installing mixim and mixnet

I would like to thank Eng. Suleiman Zubair (PhD Student) for his feedback, suggestions, and comments.

Acknowledgment