O'Reilly logo

Learning OMNeT++ by Thomas Chamberlain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hello World network simulation

Now that you know how to create a new project inside OMNeT++, let's make a simulation from scratch. We will use the INET framework to save time and to get the simulation up and running as quickly as possible. To continue, you must first include INET as explained earlier.

What this simulation will do

This simulation will be simple, yet accurate. The simulation will contain five computers, all talking to a server via a router.

Defining your network

Start by creating an empty project with the src and simulations folders. I'm calling my simulation HelloWorld. With your new project open, the first step should be to create your network.

  1. Navigate to the simulations folder and open package.ned. Now click on Network under Types ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required