Using OpNet
Using OpNet
Introduction
OpNet is a network simulation package that has an easy to use GUI. Other simulators include NS2 and OMNet. It enables what if scenarios to be tested. This means that you can make changes to; the network architecture, the network management, or the traffic profiles
Starting OpNet
OpNet Academic Edition is only available on Windows (and is free to download). You should start the application from the start menu in Windows. If you click File>New... you will be presented with the screen below. We will always develop projects so you should click OK and then give the project an appropriate name (e.g. Level_3_network) and also call the scenario something appropriate (for example if you are doing experiment with MPLS you may have one scenario called Without_MPLS).
We will always start from an empty scenario which should take you to the next startup box,
This box enables you to set up the size of the canvas that you will draw your network on, or to overlay your network onto a map of a country or the world. It also enables you to ignore propagation delays and logically test a network, by choosing the logical network scale. The final menus in start-up will either require you to enter in the map you want to use or the size of the canvas or you can ignore them.
This is a router with 4 ethernet ports and 8 SLIP (serial line Internet protocol) ports.
This component emulates a workstation. The workstation must have the appropriate application profile applied to it to emulate a user using that workstation. This component emulates many workstations. You set it up in a similar way to the ethernet_workstation but with the additional attribute of setting the number of workstations that you want to generate traffic.
This component has no TCP/UDP/IP stack therefore it cannot be used in a network with routers. It emulates a basic ON/OFF state traffic generator. These are cables that can be used to connect components. You must ensure that the component you are connecting a cable to has the correct interface on it. The 100BaseT cable using the ethernet protocol so can only be connected to ethernet interfaces. The PPP_DS3 cable uses the point to point protocol and should be connected to interfaces supporting SLIP. This is a logical way to generate traffic without configuring the application configuration, profile configuration and the workstation.
You will configure all of the nodes in your network to have the same properties. Rather than setting the properties of each individual node you can do this automatically, right-click on any workstation and click select similar nodes. All nodes should now be selected. Right-click on any of the nodes that are selected and choose edit attributes. You will be shown the nodes attribute box. It is from here that you can configure any node attribute (traffic generating attributes, router configuration etc). In order for the changes you make to this node to be applied to all other nodes you must check the apply changes to selected objects box. Expand the Traffic generation parameters (how traffic is generated) and the packet generation arguments (how often packets are generated when the node is generating traffic). Set the ON state time to an exponential distribution with a mean of 100 and the OFF state time to a constant of 0. In the packet generation arguments set the interarrival time to a constant of 0.02 and the packet size to a constant of 1500 bytes. When you click OK the parameters should have changed for all of the nodes check this.
Choose Statistics
Before you simulate the network you must choose which statistics you want to gain while the simulation is in progress. If you right-click on anywhere in the workspace (though not on the objects) and select choose individual DES statistics you can select the statistics that you want to obtain for all of the nodes in the workspace. (If you right-click on a particular node or connection you can select the statistics for that object). Expand the global statistics box and select, Ethernet delay from Ethernet, traffic received (bits/sec) from traffic sink and traffic sent (bits/sec) from traffic source. Expand node statistics and ethernet and select collision count.
Configure the Simulation
Click on the configure/run simulation button and set the duration to 3 minutes.
Analysis
Questions 1. How much traffic does each node generate? 2. How much traffic is transmitted in the network? 3. What is unexpected in your results? Why is this happening?
You will need to duplicate the scenario a few times to run different tests. You can do this through Scenarios->Duplicate Scenario... Tasks All of these tasks relate to the following statistics: DB Query Response Time, Email Download Response Time and HTTP Object Response Time. All of the tasks are single changes to the network (i.e. each task should be duplicated from the Basic_setup scenario not the task before it). 1. Change the cables to 100BaseT what is the effect on the performance of the network? 2. Change the cables to 1000BaseX - what is the effect on the performance of the network? 3. Remove Server_2 and Server_3 - what is the effect on the performance of the network? 4. Remove Router_2 and connect Router_1 and Router_3 directly together with 10BaseT cables - what is the effect on the performance of the network?