OPNET Modeler Day 1. © copyright 2001 OPNET Technologies, Inc. 2 Introduction Prerequisites –Ability to understand C or C++ –Basic understanding of networks.

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Chapter 9: Access Control Lists
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Database Systems: Design, Implementation, and Management Tenth Edition
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
1 Fall 2005 Hardware Addressing and Frame Identification Qutaibah Malluhi CSE Department Qatar University.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Chapter 15 Chapter 15: Network Monitoring and Tuning.
Shared vs. Switched Ethernet (Modeling and Simulation using OPNET)
Protocols and the TCP/IP Suite
1 Process Description and Control Chapter 3. 2 Process Management—Fundamental task of an OS The OS is responsible for: Allocation of resources to processes.
CSCE 351: Operating System Kernels
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
WSN Simulation Template for OMNeT++
© Copyright Eliyahu Brutman Programming Techniques Course.
1 Introduction to Modeler © copyright 2004 OPNET Technologies, Inc.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Textbook: Applied Simulation, modeling and Analysis using FlexSim
C++ fundamentals.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Network Simulation Internet Technologies and Applications.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
1//hw Cherniak Software Development Corporation ARM Features Presentation Alacrity Results Management (ARM) Major Feature Description.
Visual Basic Chapter 1 Mr. Wangler.
OPNET Modeler - An Introduction For COSC (taught by Dr. Osborne) - Zankar Parekh.
Introduction to LabVIEW
Microsoft Visual Basic 2005: Reloaded Second Edition
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Chapter 7 Structuring System Process Requirements
Protocol Architectures. Simple Protocol Architecture Not an actual architecture, but a model for how they work Similar to “pseudocode,” used for teaching.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Connecting to the Network Networking for Home and Small Businesses.
Protocols and the TCP/IP Suite
WEKA - Explorer (sumber: WEKA Explorer user Guide for Version 3-5-5)
HyunJun Choi Aug 27, 2004 OPNET Simulator HyunJun Choi Aug 27, 2004 Informational Communication University.
William Stallings Data and Computer Communications 7 th Edition Data Communications and Networks Overview Protocols and Architecture.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Prepared by: Sanaz Helmi Hoda Akbari Zahra Ahmadi Sharif University of Tech. Summer 2006 An Introduction to.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
OPNET TM Modeler CS 541 Advanced Networking Spring 2009.
1 Modeler Day 1 © copyright 2003 OPNET Technologies, Inc. DES Log (cont.) To view the DES log: Right-click in the Project Editor workspace and choose “Open.
Copyright © 2000 MIL 3, Inc. Modeling Custom Wireless Effects– 1 OPNET UNIVERSITY 2000 Transceiver Pipeline and Radio Modeling.
1 Extend is a simulation tool to create models quickly, with all the blocks you need and without even having to type an equation. You can use a series.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
4 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved. Computer Software Chapter 4.
Cisco 3 - Switching Perrine. J Page 16/4/2016 Chapter 4 Switches The performance of shared-medium Ethernet is affected by several factors: data frame broadcast.
Agilent Technologies Copyright 1999 H7211A+221 v Capture Filters, Logging, and Subnets: Module Objectives Create capture filters that control whether.
Programmable Logic Training Course HDL Editor
SOFTWARE DESIGN. INTRODUCTION There are 3 distinct types of activities in design 1.External design 2.Architectural design 3.Detailed design Architectural.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
—————————— CACI Products Company - ——————————————————— COMNET III —————————————— 1-1 Day 1 - COMNET Program Operation, Network Topology.
Chapter 3 System Performance and Models Introduction A system is the part of the real world under study. Composed of a set of entities interacting.
Chapter 5 Introduction to VHDL. 2 Hardware Description Language A computer language used to design circuits with text-based descriptions of the circuits.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Computer Simulation of Networks ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
OPNET Modeler Day 2 © copyright 2001 OPNET Technologies, Inc. 2 Course Outline Events and Event List Concepts Process Modeling Process Modeling Lab Collecting.
Network Simulation with Opnet
OPERATING SYSTEMS CS 3502 Fall 2017
Working in the Forms Developer Environment
Introduction to Opnet Mobile Networks Introduction to Opnet
Computer Simulation of Networks
Modeler Day 2.
Analysis models and design models
Presentation transcript:

OPNET Modeler Day 1

© copyright 2001 OPNET Technologies, Inc. 2 Introduction Prerequisites –Ability to understand C or C++ –Basic understanding of networks Class moves quickly Ask questions as they come up

© copyright 2001 OPNET Technologies, Inc. 3 Course Outline Modeling Framework Other Editors –Packet Format Editor –ICI Editor –PDF Editor –Antenna Pattern Editor –Modulation Curve Editor –Simulation Sequence –Analysis Configuration –Animation Viewer Node Modeling

Modeling Framework

© copyright 2001 OPNET Technologies, Inc. 5 Conceptual Goals –Objects available in the modeling domains –Data transfer between objects in a simulation –Network, node, and process models –Object attributes –Object naming paradigm –Role of packets in a simulation Agenda

© copyright 2001 OPNET Technologies, Inc. 6 The Three-Tiered OPNET Hierarchy Three domains: network, node, and process Node model specifies object in network domain Process model specifies object in node domain Process model rip_udp_v3

© copyright 2001 OPNET Technologies, Inc. 7 Network Domain: Network Objects Generic Devices Vendor Devices Network models consist of nodes, links and subnets Nodes represent network devices and groups of devices –Servers, workstations, routers, etc. –LAN nodes, IP clouds, etc. Links represent point-to-point and bus links Icons assist the user in quickly locating the correct nodes and links Vendor models are distinguished by a specific color and logo for each company

© copyright 2001 OPNET Technologies, Inc. 8 Network Objects - Nodes Node objects are represented by icons. Different icons may represent the same underlying object. Icons shown are the default icons. A fixed node remains stationary during a simulation. A mobile node changes position during a simulation, following an assigned trajectory or using vector based mobility (ground speed, bearing, and ascent rate). Trajectories can easily be created graphically in Modeler, or by ASCII text files. A satellite node changes position during a simulation, following an assigned orbit. Modeler has supporting tools to create and view orbits. Satellite Mobile Fixed

© copyright 2001 OPNET Technologies, Inc. 9 Organize network components into a single object Represent identical constructs in an actual network Have no behavioral aspects May be stationary, mobile, or satellite 3 Subnet Types Network Objects - Subnets

© copyright 2001 OPNET Technologies, Inc. 10 Network Objects - Links Link objects model physical layer effects between nodes, such as delays, noise, etc. A radio link, established during a simulation, can be created between any radio transmitter-receiver channel pair. Satellite and mobile nodes must use radio links. Fixed nodes may use radio links. A radio link is not drawn but is established if nodes contain radio transceivers. A bus link transfers data among many nodes and is a shared media. A point-to-point link transfers data between two fixed nodes. Radio link

© copyright 2001 OPNET Technologies, Inc. 11 Node Domain Basic building blocks (modules) include processors, queues, and transceivers –Processors are fully programmable via their process model –Queues also buffer and manage data packets –Transceivers are node interfaces Interfaces between modules –Packet streams –Statistic wires Receiver Transmitter Processor Queue Stat Wire Packet Stream

© copyright 2001 OPNET Technologies, Inc. 12 Node Objects - Modules Modules are the basic building blocks of node models. Modules include processors, queues, transceivers, and generators. Processors are the primary general purpose building blocks of node models, and are fully programmable. Queues offer all the functionality of processors, and can also buffer and manage a collection of data packets. Generators model a probabilistic packet source. Processor Queue

© copyright 2001 OPNET Technologies, Inc. 13 Transmitters and Receivers Transmitters are the outbound interfaces between objects inside a node and communication links outside it. Receivers are the inbound interface.

© copyright 2001 OPNET Technologies, Inc. 14 Transmitters and Receivers Three types of transmitter and receiver modules correspond to different models of communication links. Antennas may be used with radio transceivers to specify antenna properties. Bus transceiversPoint-to-point transceiversPacket radio transceivers TransmitterReceiverTransmitterReceiverTransmitterReceiver Antenna

© copyright 2001 OPNET Technologies, Inc. 15 Module Connections Packet streams carry data packets from a source to a destination module. Statistic wires carry a single data value from a source to a destination module. In this case, hub_rx0 might report a packet reception to mac.

© copyright 2001 OPNET Technologies, Inc. 16 Sample Node Model Node models support: –Layering of protocol functions –Dynamic inter-module monitoring –Arbitrary node architectures –Definition of node classes through attribute promotion ethernet_wkstn_adv Node Model

© copyright 2001 OPNET Technologies, Inc. 17 OPNET process models consist of –State transition diagrams –Blocks of C code –OPNET Kernel Procedures (KPs) –State variables –Temporary variables A process is an instance of a process model Processes can dynamically create child processes Processes can respond to interrupts Process Domain

© copyright 2001 OPNET Technologies, Inc. 18 Process Model Objects - States The initial state is the place where execution begins in a process. A forced state does not allow a pause during the process. An unforced state allows a pause during the process. Later chapters will fully discuss the differences between these types of states. Initial stateForced state Unforced state red green

© copyright 2001 OPNET Technologies, Inc. 19 State Connections - Transitions Transitions describe the possible movement of a process from state to state and the conditions allowing such a change. Exactly one condition must evaluate to true. If the condition statement (x == y) is true, the transition executive (Reset_Timers;) is invoked. Transition executiveCondition statement

© copyright 2001 OPNET Technologies, Inc. 20 Executive blocks Each state has two executive blocks: –Enter executives are invoked on entering a state. –Exit executives are invoked before exiting a state.

© copyright 2001 OPNET Technologies, Inc. 21 Kernel Procedures - Introduction KPs are pre-written functions that abstract difficult, tedious, or common operations. KPs free users from addressing memory management, data structure, handling event processing, etc. All KPs begin with prefix “op_”. KPs focus on communication modeling.

© copyright 2001 OPNET Technologies, Inc. 22 Kernel procedures Packet Package: op_pk_create () op_pk_create_fmt () op_pk_copy () op_pk_get () op_pk_total_size_get () op_pk_nfd_set () op_pk_nfd_get () op_pk_send () op_pk_send_delayed () op_pk_destroy () Subq Package: op_subq_pk_insert () op_subq_pk_remove () Stat Package: op_stat_reg () op_stat_write () op_stat_local_read () op_stat_scalar_write () Interrupt Package: op_intrpt_schedule_self () op_intrpt_type () op_intrpt_strm () op_intrpt_code () Simulation and Event Packages: op_ev_cancel () op_sim_time () ID, Topo and Internal Model Access Packages: op_id_self () op_topo_parent () op_topo_child () op_ima_obj_attr_get () Distribution Package: op_dist_load () op_dist_outcome () Commonly used KPs: Naming convention for Kernel Procedures - –op_ _

© copyright 2001 OPNET Technologies, Inc. 23 Proto-C consists of: –State transition diagrams –The complete C programming language –The library of OPNET Kernel Procedures (KPs) State variables (private to each process) –Temporary variables What is Proto-C™ ?

© copyright 2001 OPNET Technologies, Inc. 24 Object Attributes Attributes are parameters of an object that can configure its behavior. Attributes are dynamically changeable during simulation. Processes have access to all object attributes. Different attribute values allow objects of the same type to behave differently.

© copyright 2001 OPNET Technologies, Inc. 25 Object Attributes Because the attribute pk_gen_rate is different, the generators have different traffic generation rates, though they use the same process model.

© copyright 2001 OPNET Technologies, Inc. 26 Assigning Attribute Values You can assign attribute values by right-clicking on an object and selecting or specifying the attribute value. Attributes are of a certain type. Commonly used types are listed. TypeDefinition IntegerWhole numbers: storage capacities; transmission window size DoubleDecimal numbers: processing speeds; timer values StringGeneral text info: statistic names, object names, options ToggleTrue/false condition: status flags, semaphores Typed fileUser defined file: routing tables, address mappings, script file Nested, complex data: routing table, circuit table, subqueues Compound

© copyright 2001 OPNET Technologies, Inc. 27 Promoting Attribute Values You can “promote” an attribute. This means that you assign a value at a higher hierarchical level. Passing control of a lower-level object to a higher level provides more flexibility in how objects are used. You can leave an attribute unspecified at even the network level, and assign a value at run time.

© copyright 2001 OPNET Technologies, Inc. 28 Promoting Attributes Example When an attribute assignment is made, promotion stops. An attribute value was assigned at mktg_lan, so the attribute does not appear in the object corporate. Attribute names are used as prefixes at each new level of the object hierarchy. buf router mktg_lan priority has been promoted from buf and set at mktg_lan buf.priority: promoted priority: promoted router.buf.priority: high corporate

© copyright 2001 OPNET Technologies, Inc. 29 Model Hierarchy The internal structure and behavior of each node is dictated by the node model, specified in the model attribute. The node model is created in the Node Editor.

© copyright 2001 OPNET Technologies, Inc. 30 Model Hierarchy The internal structure and behavior of each processor and queue is dictated by the process model specified in the process model attribute. The process model is created in the Process Editor. Process model rip_udp_v3

© copyright 2001 OPNET Technologies, Inc. 31 Object Naming Each object has a unique name that defines its place in the hierarchy. Format of name is: network_type.subneta.subnetb...subnetz.node_name. object_name Each object has one and only one parent object.

© copyright 2001 OPNET Technologies, Inc. 32 Object Naming full name of generator is usa.dc.opnet.wk9.gen

© copyright 2001 OPNET Technologies, Inc. 33 Data Flow Among Objects Packets are the basic unit of information exchange in Modeler simulations. Information is exchanged among different objects via various communication mechanisms: –Node to node: Links –Module to module: Packet streams and statistic wires –State to state: Transitions

© copyright 2001 OPNET Technologies, Inc. 34 Packets Packets are: –The information-carrying entity that circulates among system components. –General data structures, organized into fields of information you define. –Dynamic simulation entities that are created and destroyed as the simulation progresses. A single system may rely on multiple types of packets with different formats.

© copyright 2001 OPNET Technologies, Inc. 35 Communication Mechanisms - Links In the network domain, packets flow between nodes via links. Point-to-point and bus links are visible. Radio links are not visible.

© copyright 2001 OPNET Technologies, Inc. 36 Communication Mechanisms – Packet Streams & Statistic Wires Packets flow between modules via packet streams. At the end of each stream is a built-in packet buffer. A statistic wire (statwire) communicates a single value that may cause an interrupt to occur at the destination module.

© copyright 2001 OPNET Technologies, Inc. 37 Summary Network Objects: Nodes (fixed, mobile, satellite), Subnets, and Links (point-to-point, bus, radio). Node Objects: Modules (Processors, Queues, Generators, Transmitters, Receivers) and Connections (Packet Streams and Statistic Wires). Process Model Objects: States (initial, forced, unforced) and Transitions. Kernel Procedures: Pre-written functions that abstract communication modeling operations. Object Attributes: Dynamic parameters that can configure the behavior of an object. Packets : Basic units of information exchange in OPNET simulation.

Other Editors

© copyright 2001 OPNET Technologies, Inc. 39 Agenda Conceptual Goals –Modeler’s architecture and philosophy. –Brief look at all other Editors –Hierarchy of modeling

© copyright 2001 OPNET Technologies, Inc. 40 Modeling Approach Modeler provides a structured modeling approach: –Hierarchical models parallel the layered structure of communications networks and distributed systems: Node models represent data flow between functional blocks. Network models consist of nodes and links. Each state of an STD can contain general logic expressed in C. State transition diagrams (STDs) model node element behavior.

© copyright 2001 OPNET Technologies, Inc. 41 Modeler Editors A variety of editors allow the user to view and configure different layers of the network structure.

© copyright 2001 OPNET Technologies, Inc. 42 Lab : Project Editor Define topology of your network Represent the actual topology using node and link objects Select objects from an object palette.

© copyright 2001 OPNET Technologies, Inc. 43 Lab : Node Editor Define node architecture Represent data flow within a communications device (router, bridge, etc.) Depict layering of protocols View the Ethernet server node. Node domain

© copyright 2001 OPNET Technologies, Inc. 44 Lab : Process Editor Define control flow within programmable elements of objects in node domain Represent models in Proto-C language (to be described in detail in a later chapter) designed for protocol and algorithm development Use industry-standard graphical state transition diagrams to define control logic Process Domain

© copyright 2001 OPNET Technologies, Inc. 45 Example : Link Editor Create a user defined link model Represent the behavior of a link by assigning values to various attributes.

© copyright 2001 OPNET Technologies, Inc. 46 Packet An object that contains formatted information that can change dynamically Stored by and transferred between objects in each of the modeling domains –Node domain - streams –Network domain - links Composed of three main storage areas –User-defined –Pre-defined –Transmission data attributes

© copyright 2001 OPNET Technologies, Inc. 47 Packet Format Defines the user-defined internal structure of packets as a set of fields –Unique name –Data type (integer, floating point, structure, packet, information) –Size (in bits) –Default value Referenced as attributes of generator modules and KP (Kernel Procedure) calls

© copyright 2001 OPNET Technologies, Inc. 48 Example : Packet Format Editor Create a user-defined packet Represent the structure of a packet by adding and configuring various field attributes

© copyright 2001 OPNET Technologies, Inc. 49 Packet Format Editor 1. From File menu, choose New -> Packet Format Editor. 2. From File menu, choose open -> Packet Format to view or edit a defined Packet Form 3. Left-click the create new field action button to add new field objects to the workspace.

© copyright 2001 OPNET Technologies, Inc. 50 Packet Format Editor 5. Save the packet model by choosing save as from the File menu. 4. Right-click on the field object to modify it’s attributes.

© copyright 2001 OPNET Technologies, Inc. 51 Antenna Pattern A graphical or functional definition of an antenna’s directional gain Gain is defined as the amount of amplification or attenuation applied to an incoming or outgoing communications signal –Units in decibels (dB) –Unity gain (1) is 0 dB

© copyright 2001 OPNET Technologies, Inc. 52 Antenna Pattern Table A three-dimensional table that maps direction angles  (phi) and  theta) into antenna gain values Defined using two-dimensional, cone-shaped slices with respect to angle  (phi) Gain is set graphically with respect to angle  (theta)

© copyright 2001 OPNET Technologies, Inc. 53 Example : Antenna Pattern Editor Create custom antenna patterns for use in radio modeling Represent the gain of an antenna in dB in three dimensions. Antenna Pattern Antenna pattern viewer

© copyright 2001 OPNET Technologies, Inc. 54 Antenna Pattern Example Antenna Pattern Antenna gain (ordinate) with respect to angle  (abscissa) Two-dimensional slice with respect to angle F (phi)  (phi)  (theta)

© copyright 2001 OPNET Technologies, Inc. 55 Antenna Pattern Table Editor 2. From File menu, open the existing Antenna Pattern to view or edit. 4. Save the model by choosing save as from the File menu 1. From File menu, choose New -> Antenna Pattern. 3. Create, edit, or view the Antenna Pattern.

© copyright 2001 OPNET Technologies, Inc. 56 Additional Antenna Pattern Action Buttons Normalize Function – scales a graph either up or down so that the total gain over 360 O is zero (0 dB) for an antenna. Set Sampling Resolution – set the number of phi planes.

© copyright 2001 OPNET Technologies, Inc. 57 Interface Control Information (ICI) Collections of data used to formalize interrupt-based inter-process communications Generally, a structure of state information that can be associated with an interrupt at the interrupt source and then extracted at the interrupt destination Used to pass indications and requests between protocol layers.

© copyright 2001 OPNET Technologies, Inc. 58 ICI Editor Define the fields within “interface control information” formats Represent the structure of an ICI format by adding and configuring various attributes.

© copyright 2001 OPNET Technologies, Inc. 59 ICI Format Defines the internal structure of ICI’s as a set of fields –Unique name –Data type ( integer, double, structure ) –Default value Referenced in ICI Kernel Procedure calls

© copyright 2001 OPNET Technologies, Inc. 60 ICI Format Example Bridge Indication ICI format

© copyright 2001 OPNET Technologies, Inc. 61 ICI Format Editor 2. From File menu, open the existing ICI format to view or edit. 4. Save the model by choosing Save As from the File menu 1. From File menu, choose New -> ICI Format. 3. Create, edit, or view ICI fields.

© copyright 2001 OPNET Technologies, Inc. 62 Modulation Curve Editor Create modulation tables for radio modeling Represent the dependence of bit-error-rate (BER) on the effective signal- to-noise ratio (Eb/No).

© copyright 2001 OPNET Technologies, Inc. 63 Modulation Function A mapping between effective signal-to-noise ratio (E b /N 0 ) values measured on a radio communications link, and the expected value of the bit error rate (BER) that would result Generally used to characterize the vulnerability of an information coding and modulation scheme to noise.

© copyright 2001 OPNET Technologies, Inc. 64 Modulation Curve A list of E b /N 0 - BER values that approximates a continuous modulation function Defined graphically Stored in a look-up table.

© copyright 2001 OPNET Technologies, Inc. 65 Modulation Curve Editor 3. Create, edit, or view the Modulation Curve. 2. From File menu, open the existing modulation curve to view or edit. 4. Save the curve by choosing save as from the File menu 1. From File menu, choose New -> Modulation Curve

© copyright 2001 OPNET Technologies, Inc. 66 Probability Density Function (PDF) Describes the spread of probability over a range of possible outcomes Uses –Generate random variable values –Model the likelihoods associated with packet interarrival times –Model probability of transmission error

© copyright 2001 OPNET Technologies, Inc. 67 PDF Table A list of discrete outcome-property pairs that approximates the continuous PDF Defined graphically Stored in a look-up table.

© copyright 2001 OPNET Technologies, Inc. 68 PDF Editor Create user-defined probability density functions Represent a PDF by establishing a list of discrete outcome-property pairs that approximate the continuous PDF.

© copyright 2001 OPNET Technologies, Inc. 69 PDF Format Editor 2. From File menu, open the existing PDF format to view or edit. 4. Save the model by choosing save as from the File menu 1. From File menu, choose New -> PDF Format. 3. Create, edit, or view the PDF.

© copyright 2001 OPNET Technologies, Inc. 70 Additional PDF Action Buttons Add Impulse – adds an impulse to a PDF Normalize Function – scales a graph either up or down so that the total probability for all outcomes is unity (1) for a PDF.

© copyright 2001 OPNET Technologies, Inc. 71 Probe Model Editor Specify which statistics should be collected at which locations Collect built-in statistics or specify your own statistics to be collected Specify animation views and format.

© copyright 2001 OPNET Technologies, Inc. 72 Example: Creating a Node Statistic Probe 1) Select the Probe of Interest from the toolbar. 2) Right-click on the probe created and select “Choose Probed Object” Node Statistic Probe

© copyright 2001 OPNET Technologies, Inc. 73 Example: Creating a Node Statistic Probe 3) Select the Node of interest. 4) Right-click on the probe created and select “Choose Statistic” Note: Sometime, a submodule needs to be chosen.

© copyright 2001 OPNET Technologies, Inc. 74 Example: Creating a Node Statistic Probe 5) Select a Statistic. 6) Save your Probe Model. File / Save.

© copyright 2001 OPNET Technologies, Inc. 75 Lab : Simulation Sequence Editor Create user defined configurations for single simulations or a batch of simulations Assign values for promoted attributes.

© copyright 2001 OPNET Technologies, Inc. 76 Analysis Configuration Editor Present graphs of data collected during simulations Operations can be applied to data sets to produce histograms, PDFs, CDFs, confidence intervals, and single-input filters.

© copyright 2001 OPNET Technologies, Inc. 77 Filter Model Editor Allows the user to create custom mathematical filters for further analysis of the results. Build hierarchical filter models from pre-defined filter components.

© copyright 2001 OPNET Technologies, Inc. 78 Other C / C++ File Editors Other File Editors: –External Source Create / Compile External Source Code –Pipeline Stage Create / Review / Modify / Compile Pipeline Stage Models –Generic Data File View.gdf files Example:.gdf of exported routing table Example: Default pt-pt transmission delay Pipeline stage

© copyright 2001 OPNET Technologies, Inc. 79 Animation Viewer Dynamic, highly visual presentation of model behavior Useful in debugging in conjunction with Modeler’s text-based debugger, ODB.

© copyright 2001 OPNET Technologies, Inc. 80 Animation An animation can be viewed using the OPNET utility, op_vuanim. This capability is valuable for presentation purposes and better understanding of the behavior of the model. There are two types of animation in OPNET. –Packet Flow Animation –Statistic Animation

© copyright 2001 OPNET Technologies, Inc. 81 Animation - Automatic Packet flow animation displays node and packet movement. This is an effective way to graphically depict the movement of traffic throughout your network. To collect packet flow animation: –Open the desired project-scenario. –Enter the desired subnet. –Right-click on the project workspace and select “Record Animation.” –Run the simulation.

© copyright 2001 OPNET Technologies, Inc. 82 Animation - Statistic Statistic animation allows the user to view the statistics in a graph format as they are being collected. In “Choose Statistics”, right-click the Statistic and select “Record Animation”.

© copyright 2001 OPNET Technologies, Inc. 83 Example : Animation Open the project “anim_lab”. Right click in the project workspace and select “Record Animation.” Configure the simulation to run for a duration of 20 seconds. Run the simulation.

© copyright 2001 OPNET Technologies, Inc. 84 Example : View Animation From the “Results” pull-down menu, select “Play Animation” and wait for the animation viewer to pop up. Click on the play button to view the animation. Note that op_vuanim’s “VCR-like” controls make it easy to use.

Node Modeling

© copyright 2001 OPNET Technologies, Inc. 86 Agenda Conceptual Goals –Creating and configuring nodes –Configuring transceivers –Configuring traffic generators –Testing predicted behavior –Deriving new models Tools –Node Editor –Link Editor –Probe Editor

© copyright 2001 OPNET Technologies, Inc. 87 Sequence of Events Follow these steps: 1.Understand the problem: –Understand the network or system to be modeled. –Understand the questions to be answered by the model. 2.Create models: –Create the node models first. –Create the network model. 3.Set probes to collect statistics. 4.Configure simulation. 5.Determine expected output. 6.Run the simulation. 7.Analyze output. 8.Compare actual results to expected output. Explain any differences.

© copyright 2001 OPNET Technologies, Inc. 88 Create descriptive names for nodes, modules, network models and node models. Create node models first, and only then the network model. To determine a particular button’s function, place the mouse on it and read the explanatory text in the display areas. Check link consistency before exiting the Network Editor. To avoid confusion, you may want to exit each editor as you finish using it. General Hints

© copyright 2001 OPNET Technologies, Inc. 89 Node Editor The Node Editor provides the resources necessary to model the internal functions of nodes. Users have access to different modules which are used to model internal aspects of node behavior. Modules represent the internal capabilities of a node such as: Data creation Transmission Reception Storage Internal routing Queuing

© copyright 2001 OPNET Technologies, Inc. 90 Node Editor ToolbarNode Workspace Create queue Create module connection Packet stream / statistic wire / tx/rx association Create transceivers (tx/rx) point-to-point / bus / radio / antenna Create processor

© copyright 2001 OPNET Technologies, Inc. 91 Processor. A module that represents the most general building block of node models. The behavior of a processor can be completely specified by the user and its links can be arbitrarily connected to other modules. Queue module. A module that provides a superset of the functionality of processor modules. Queue modules can execute an arbitrary process model that describes the behavior of a particular process or protocol, and can be connected via packet streams to other modules. Node Editor - Toolbar

© copyright 2001 OPNET Technologies, Inc. 92 Statistic wire. A connection between modules that conveys numeric values between devices or processes in the same node. Statistic wires are primarily used to allow processes to monitor changes in state and performance of the devices that make up a node, and to create a simple signaling mechanism between processes. Logical association. A connection used to indicate that a relationship exists between two modules in a node model, for example, between a receiver and transmitter used as a pair. Logical associations do not carry any data. Packet stream. A connection between modules that carries data packets from a source module to a destination module. They represent the flow of data across the hardware and software interfaces within a communications node Node Editor - Toolbar

© copyright 2001 OPNET Technologies, Inc. 93 Transmitters: the outbound interface between packet streams inside a node and communications links outside the node. Receivers: the inbound interface between communications links outside a node and packet streams inside a node. Point-to-point Bus Radio Point-to-point Bus Radio Antenna: A module that is used to specify the antenna properties for radio transmitter or receiver modules. Antenna Node Editor - Toolbar

© copyright 2001 OPNET Technologies, Inc. 94 The “Node Interfaces” option allows you to specify various characteristics of the node. * Node types (fixed, mobile, satellite) * Keywords * Attributes * Node Documentation * Comments Specifying Node Interfaces

© copyright 2001 OPNET Technologies, Inc. 95 Specifying Available Node Statistics Node Statistics allows the user to select which statistics can be chosen for collection from within the Project Editor.

© copyright 2001 OPNET Technologies, Inc. 96 If a statistic is not promoted, a user can still collect it using the “Probe Editor”. Selecting a statistic from the “Available Statistics” table adds the statistic to the “Statistic Promotion” table. By selecting an empty field in the “Orig. Name” column, a table of available statistics appears. Specifying Available Node Statistics

© copyright 2001 OPNET Technologies, Inc. 97 Node Modeling: Lab Lab Book: Lab #10 The Worst National Bank wants to model the flow of bank transactions (represented as packets) from Washington, D.C. to Philadelphia –Bank transactions originate in Washington, D.C. and are routed to Philadelphia via a modem at 9,600 bits/second. –The size of a transaction varies according to a normal distribution with a mean size of 3,200 bits and a variance of 400 bits. –Transactions are modeled as exponential interarrivals, with a mean interarrival time of 0.5 sec/trans. Analyze the system in steady state –Does the queue size of the WDC transmitter steadily increase? –What is the throughput (in bits/second) at the WDC transmitter? –What is the throughput (in bits/second) at the Philadelphia receiver? –What is the utilization of the DC-to-Philadelphia link?

© copyright 2001 OPNET Technologies, Inc. 98 Lab : Creating a Link Model Lab Book: Lab #11 Create a custom link –Point-to-point –Simplex or Duplex –Data rate of 9600 bps.

© copyright 2001 OPNET Technologies, Inc. 99 Lab: Creating a Network Lab Book: Lab #12 –Create a new project –Place topology –Choose Statistics –Run Simulation –View Results

© copyright 2001 OPNET Technologies, Inc. 100 Node Modeling: Summary Modules include processors, queues, transceivers, and antennas Modules are connected with packet streams and stat wires Node statistics configured Lab accomplishments –Built two node models Generator to send out packets Receiver to accept and destroy packets