opnet sec d1

4
LAB 1 ICMP Ping OPNET Experiments By Ya Bao Page 1 of 4 LAB 1 ICMP Ping OPNET IT Guru Over view OPNET IT Guru is a virtual environment for modelling, analyzing and performance prediction of IT infrastructures, including applications, servers and network technol ogi es. Thi s OPNET academi c version i s based upon the commerci al version IT Guru 9. It can be downloaded from the websi te http://www.opnet.com/university_program/itguru_academic_edition/index.html and used for free wi th some li cense constrai nts. 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 Interne t Control Message Protocol (ICMP)

Upload: linh-nguyen

Post on 18-Apr-2015

15 views

Category:

Documents


10 download

TRANSCRIPT

Page 1: Opnet Sec d1

LAB 1 ICMP Ping OPNET Experiments

By Ya Bao Page 1 of 4

LAB 1 ICMP Ping

OPNET IT Guru Overview

OPNET IT Guru is a virtual environment for modelling, analyzing and performance prediction of IT infrastructures, including applications, servers andnetwork 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 andused 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)

Page 2: Opnet Sec d1

LAB 1 ICMP Ping OPNET Experiments

By Ya Bao Page 2 of 4

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 willstudy 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 menu bar go to 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 by click . Select Sim_Int_Model_List thenDrag & 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.

Page 3: Opnet Sec d1

LAB 1 ICMP Ping OPNET Experiments

By Ya Bao Page 3 of 4

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_toolboxpalette 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 Checkonly 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

Page 4: Opnet Sec d1

LAB 1 ICMP Ping OPNET Experiments

By Ya Bao Page 4 of 4

the packets have gone through and hop delay. Table 2.1 shows the Ping Report.

IP Address Hop Delay Node Name

192.0.14.2 0.00000 Campus Network.WS1

192.0.5.2 0.00020 Campus Network.Borough_Road

192.0.6.1 0.00280 Campus Network.Techno_Park

192.0.8.1 0.00110 Campus Network.Perry_Library

192.0.8.2 0.00027 Campus Network.WS2

192.0.8.2 0.00001 Campus Network.WS2

192.0.6.2 0.00020 Campus Network.Perry_Library

192.0.5.1 0.00110 Campus Network.Techno_Park

192.0.14.1 0.00111 Campus Network.Borough_Road

192.0.14.2 0.00026 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.