Lab 1 Icmp Ping

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

LAB 1

ICMP Ping

OPNET Experiments

LAB 1
OPNET IT Guru Overview

ICMP Ping

OPNET IT Guru is a virtual environment for modelling, analyzing and performance prediction of IT infrastructures, including applications, servers and network technologies.
This OPNET academic version is based upon the commercial version IT Guru 9. It can be downloaded from the website http://www.opnet.com/university_program/itguru_academic_edition/index.html and used for free with some license constraints.

1. Objective The purpose of designing this lab is to study the traces of ping in following scenarios. There is no failure occur in network. There is a failure occur in network.

Fig 1.1 Network Overview Internet Control Message Protocol (ICMP)


By Ya Bao Page 1 o 4 f

LAB 1

ICMP Ping

OPNET Experiments

Internet Control Message Protocol (ICMP) provides a means for transmitting messages from routers and other hosts to a host. It is encapsulated in IP datagram and is used for troubleshooting the network. ICMP is used when datagram cannot reach to its destination due to unreachable host or time to live exceeded. 2. Lab Description Scenario consists of 7-routers-Randomised Mesh Topology-backbone with 2 workstations WS1 and WS2. WS1 sends an echo request to WS2 and WS2 will responds with an echo reply. We will study the path of request and reply packets went through the network. In the other scenario there is link failure occur and we will study how does it effect on ping traces. 3. Creating Network 1. Start OPNET and create a new project. File New and chose a Project. 2. Project name: <your name>_Ping Scenario name: Link_UP and Click OK. 3. Select Create Empty Scenario and click Next. 4. Select Campus and click Next. 5. Select Kilometre and X Span to 10 and Y Span to 10 then click Next. 6. Do not include any Technologies and press Next. 7. Review the values and press OK. 8. Now from m e n u b a r g o t o Topology Rapid Configuration. Select Mesh,Randomized. Set the dialogue box appeared as Fig 1.2.

Fig 1.2 Rapid Configuration (Randomized Mesh)

9. Open the Object Palette b y click . Select Sim_Int_Model_List then Drag & Drop two Sm_Int_wkstn workstations in the Grid. 10. Change their attributes. Right click on the station, press Edit Attributes. Select Application Supported Profiles_ rows: 0. Repeat this process for the two workstations.
By Ya Bao Page 2 o 4 f

LAB 1

ICMP Ping

OPNET Experiments

11. Connect the two workstations to the two routers directly using 10BaseT wires from the same palette as in Fig 1.1. 12. Rename all routers by right click on the router and selecting Set Name. 13. Now Set up ICMP traffic. Place IP Attribute Config from internet_toolbox palette in to Grid. Right click on it Edit Attribute in IP Ping Parameters_row 0, click to open Details and set Pattern: Default Interval (Sec): 120 Packet Size (bytes): 128 Count: 700 Record Route: Enabled And then Press OK to accept the changes. 14. Draw an ICMP ping demand from one to other host. Select the object of ip_ping_traffic. It can be found from Object Palette (Internet_toolbox). Click on one workstation (start) and then to the other one (end). Then press the right click and select Abort Demand Definition to stop drawing wires. To edit the attribute of ICMP demand, right click on the flow line and then select Edit Attribute do the only change in Start Time as Constant (100). 15. Now choose RIP as routing protocol in this scenario by from the Menu Bar of the Project Editor, Protocols IP Routing Configure Routing Check only on RIP and press OK. 16. Again from Project Editor, Protocol RIP Configure Start Time. Select Mean Outcome: 10 and press is OK. 4. Configuring Simulation 1. Click on configure/ run simulation button and configure these values. From Common Tab set the Duration: 30 minutes and from Global Attributes Tab and configure these values IP Routing Table Export / Import: Export (It will export routing tables to a file at the end). RIP Sim Efficiency: Disable RIP Stop Time: 1000 2. Click on Run 5. Result Analysis Once the simulation is over, 1. Close the Simulation window by pressing Close. 2. Right Click anywhere in Grid and select Open Simulation Log. Check the paths for Echo Message and Echo Reply, Node names and IP addresses from
By Ya Bao Page 3 o 4 f

LAB 1

ICMP Ping

OPNET Experiments

the packets have gone through and hop delay. Table 2.1 shows the Ping Report. IP Address 192.0.14.2 192.0.5.2 192.0.6.1 192.0.8.1 192.0.8.2 192.0.8.2 192.0.6.2 192.0.5.1 192.0.14.1 192.0.14.2 Hop Delay 0.00000 0.00020 0.00280 0.00110 0.00027 0.00001 0.00020 0.00110 0.00111 0.00026 Node Name Campus Network.WS1 Campus Network.Borough_Road Campus Network.Techno_Park Campus Network.Perry_Library Campus Network.WS2 Campus Network.WS2 Campus Network.Perry_Library Campus Network.Techno_Park Campus Network.Borough_Road Campus Network.WS1

Table 2.1 Ping Report for Link_UP 6. Question Duplicate the current scenario and named it Link_Down. Fail the link between the routers which is used by ping in Link_UP scenario by right clicking on Link and select Fail This Link because that link is used by Ping in Link_UP scenario. Analyze the new result.

By Ya Bao

Page 4 o 4 f

You might also like