01 11 Mlib
01 11 Mlib
• General Advice When Working with the Model Library—describes tips and
techniques to enhance your productivity when working with many of the
models in the library.
Most users work primarily with objects from the standard model library. It is
worthwhile to spend some time discovering what is available in this library, how
it is organized, and how to use the objects it provides.
In actuality, the library also contains many models of networking protocols and
algorithms that allow your network models to simulate real network behavior.
However, as a user of OPNET Modeler, you do not manipulate the internals of
these protocols directly. Instead, you have access to the protocols’ functions via
parameters, much as you do in working with real networks. Their parameters
appear as attributes of the objects and are configurable via OPNET Modeler’s
GUI. One of the goals of this section is to explain the objects you have available
to you, and how to work with their attributes to represent your networks as
desired within the tool.
Device Models
Devices comprise the majority of the objects in the standard model library. They
correspond to a wide class of network hardware, including the following:
• Routers
• Switches
• Hubs
• Workstations
• Servers
• Firewalls
• Printers
As you can see, devices essentially correspond to the boxes, that is, the
chassis-type or rack-mounted systems in your network. They represent the
hardware that performs the information transmission and processing in the
network, ranging from simple repeaters like hubs, to content and computation
servers, like mainframe computers. Of course, these devices must not consist
solely of hardware; most of them contain large numbers of software models,
spanning appropriate layers of the protocol and application stack. What’s inside
a device depends on what its function is. For example, a typical router model
will contain hardware and software models of Ethernet, PPP, and perhaps other
Layer-2 protocols. It will also contain routing protocols such as RIP, OSPF,
IGRP, and BGP4.
Generic models provide behavior that is correct for devices of their class.
However, they are not configured to model any particular manufacturer’s
devices. Instead these devices provide attributes (that is, parameters), allowing
you to configure each one you deploy differently if you choose. For example, the
generic router below offers the forwarding rate attribute, which specifies the
throughput of the router in packets per second. Each instance of the router that
is deployed can be assigned its own forwarding rate. In contrast, a vendor
device model of a router would already be aware of its own forwarding rate, as
you would expect because the device type is already known. A vendor model
would therefore have a preconfigured forwarding rate attribute that is consistent
with the actual router’s forwarding rate.
generic model
vendor models
Link Models
To form a network of devices, you will need to use links and these links will
require specific characteristics. In OPNET Modeler, links represent the physical
media and properties, such as line rate in bits per second, delay, and likelihood
of data corruption. Link models also generally represent a choice of Layer-2
technology, allowing OPNET Modeler to verify compatibility of two or more
attached devices, and the link that connects them. One of the most important
characteristics of a link model from a network performance perspective, is the
speed of transmission, in bits per second. This characteristic is usually implicit
in the choice of link model (for example, a 10BaseT link automatically provides
for a 10 Mb/sec. transmission rate).
Using LAN objects you can quickly generate large amounts of users for your
network. Specifically, each LAN object allows you to specify the number of
users present within it. You can then assign application traffic to a subset, or all
of the users of the LAN. Therefore, scaling the traffic generated by a LAN (to
model more users, for example), is a simple matter of increasing the specified
number of users. LANs can then be interconnected via switches and routers to
carry traffic to and from devices and LANs in other parts of the network.
Cloud models can have numerous applications. For example, your backbone
network may depend on services delivered by an Internet Service Provider
(ISP), which in turn may be connected to a carrier network. Because you do not
know the details of the backbone, a cloud node gives you a simpler model
without losing any detail.
You may also find cloud models useful if you are more interested in modeling
LAN infrastructures than network infrastructures. If your primary focus is on
modeling details on LAN traffic flows, you may not want to model the backbone
network in minute detail. Representing the backbone with a cloud should
suffice.
• Packet (or Cell) Latency—specifies the one-way delay that each packet
experiences while traversing the network. You can run a simple test on your
network to determine this setting. First, configure your ping traffic (using an
option like IP’s record route) to report the number of hops that a packet
traverses. Then measure the response time and number of hops for a typical
ping packet sent across the network. (Keep in mind that this response time
includes transmission delays at each hop.) After you have these two values,
you can use the following equation to compute the actual network latency:
Latency = (Ping Response Time – (Hop Count * (Ping Packet Size/Data Rate)))/2
Use the resulting value for the latency parameter. You can also specify any
built-in or custom distribution to model variability in the delay.
You can also import operational delay information and packet loss metrics for
cloud models using one of the methods listed below. Either method allows you
to specify pair-wise operational delay and packet loss metrics for cloud models
and to apply these metrics on each packet that traverses the cloud during a
simulation. The packet-loss and latency characteristics of cloud models can be
modeled either as single settings that are applied to all routed packets or as
separate settings for individual source and destination pairs using a .gdf file
The following lines constitute the header and are mandatory (see the figure
above), though the data fields need not be in the exact order as shown. A
minimum of three fields must be specified, however, one from each of the
following types:
The data rows following the header are processed based on the format
specified in the header. If a data field does not match the above listed set, it will
be ignored.
You can then specify the name of the file as an attribute in each cloud device,
as shown in Figure 2-6. The performance metrics file will be processed at the
start of simulation and appropriate log messages will be recorded to inform the
user of any inconsistencies in the performance metrics file.
Generate Performance Metrics for a Cloud from Router Information You can
also generate performance metrics for a cloud based on router information. In
imported networks in which delay and loss metrics have been imported for
routers, the performance metrics for the cloud nodes can be determined from
the metrics in the router nodes by selecting Topology >
Generate IP Cloud Metrics File > From Router Metrics Information…, as
shown in the following figure. A new dialog box opens that allows you to specify
whether to use the minimum, maximum, average, or 95th percentile of the
measured round trip delay and of the measured packet loss specified in the
delay, jitter, and loss metrics of the routers.
The process results in the generation of a performance metrics file for each
cloud device in the network. Each file, corresponding to a specific cloud node,
contains performance metrics information accumulated from router nodes
connected to the cloud node.
Utility Objects
Objects that don’t correspond to actual physical infrastructure are also used to
construct network models. In general, these do a logical function in the network,
such as configuration of network resources on a global level (for example,
provisioning of permanent virtual circuits, or PVCs). Another typical role for a
utility object is to enable a simulation-specific function, such as reporting on use
of memory resources. Finally, utility objects can be used to script special events
Figure 2-10 Failure-Recovery Utility Object Supports Scripting of Node and Link
Failures
Most of the features and techniques described apply to all of the models.
X.25 (LAPB)
IP Multicasting
Advanced Servers
• Final—The Final model is derived from the intermediate model and provides
even fewer attributes. The final model is the one you typically work with
unless a special need arises to tune a low-level protocol or hardware
parameter.
The nomenclature used for these models is simple. Advanced model names
bear the suffix “adv”. Intermediate model names carry the suffix “int”, Final
model names have no suffix.
Verify Links
The standard model library link and node objects carry information in them that
allows OPNET Modeler to determine if they are valid to connect to one another.
Most errors with respect to node interconnection can be determined within the
Project Editor before running simulations. Although the simulation will also
detect such errors, you will save time by using the verify links operation prior to
running simulations. In general, you should use it whenever you have made
substantial changes to your network involving links, and you are about to run a
simulation.