Your SlideShare is downloading. ×
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Tutorial 3   getting started with omnet
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Tutorial 3 getting started with omnet

13,477

Published on

Visit the source: …

Visit the source:
https://omnetgroup.wordpress.com/

Published in: Technology
0 Comments
9 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
13,477
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
0
Comments
0
Likes
9
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. ByMohammed Amer Al-Batati 2012
  • 2.  Start the OMNet IDE:1. Lunch “mingwenv.cmd”2. Type: omnetpp
  • 3.  Then you will be asked to select the workspace path. Let’s create our own. (e.g.; C:Myworkspace) Click ‘OK’
  • 4. Overview Workbench Whats New Tutorials Migration
  • 5.  An OMNeT++ model consists of modules that communicate with message passing. Simple modules can be grouped into compound modules and so forth. The number of hierarchy levels is unlimited.
  • 6. Gate(s) Input gate (receive data from) Output gate (send data from)Connection (link)Modules communicate by exchanging messages.In an actual simulation, messages can representframes, packets , jobs, etc.
  • 7.  Go to “Project Explorer” (Window-> Show View-> Project Explorer) Right-Click-> New -> OMNet++ Project Name it (myproject) -> select empty project -> Finish
  • 8.  Right-Click on “myproject” -> New -> Simple Module Name it (Node.ned) -> A simple module -> Finish
  • 9.  Double Click on “Node.ned”. A dual-mode (Design and Source) NED editor is opened.
  • 10.  Double Click on “Node.ned”. A dual-mode (Design and Source) NED editor is opened.
  • 11.  For now, let our Node with only two gates: input and output gates. Use keyword “gates” followed by “:” to define gates. Use keyword “input” for input gates. Use keyword “output” for output gates. Don’t forget semi-colons or to save your file.
  • 12.  Go back to “Design” view. By Right-click on Node module, you can modify the module properties (e.g.; base, icon and polygon). Let’s change the icon.
  • 13.  Let’s create a network with two nodes (node1 and node2) connected to each other. Right-Click on “myproject” -> New -> Network Name it (mynetwork.ned) -> An empty network -> Finish. Still with NED editor, so it can be done using either Design or Source mode.
  • 14.  One click on module “Node” in ‘Submodules’. Another click on “mynetwork” to create first node. Rename it if needed. Do the same with the other node.
  • 15.  Connect them together by using “Connection”, which can be founded in Palette. There are three types of channels: Activate “Connection” by clicking on it. Connect Node1 with Node2 by clicking Node1 first then Node2. (From node1 to Node2) Do the same with Node 2.
  • 16.  By opening the Source mode we will find: CTRL+SHIFT+O To import needed packages. CTRL+SHIFT+F To reformat the NED file. CTRL+SPACE When help is needed.
  • 17.  lets test what we have done so far. Right-click on “mynetwork.ned” Run As -> OMNet++ Simulator. OK -> OK

×