+ All Categories
Home > Documents > Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based...

Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based...

Date post: 23-Dec-2015
Category:
Upload: andrew-leonard
View: 221 times
Download: 0 times
Share this document with a friend
Popular Tags:
39
Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises
Transcript
Page 1: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Ping and traceroute

Lab/Homework exercise Assigned 9/12/2006

Due 9/19/2006CSIT 220 Fall, 2006

Based on T. Blum Exercises

Page 2: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Exercise/Assignment

• Assigned 9/12/2006• We will be doing parts of this exercise in class. • Some parts will require outside research and

reference.• You need to submit the results of this exercise in a

hardcopy format. • The lab exercise is due 9/19/2006. It will count as

a homework grade.

Page 3: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging

• Ping is short for Packet Internet Groper• It is a utility that sends a message to a computer

and waits for a response– A utility is part of system software that is used to help

manage the computer’s resources, as opposed to application software

• If the response is received, information about the times required and so on are reported

• If the response is not received in a certain amount of time, the request is said to have “timed out”

Page 4: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging (Cont.)

• It works by sending special packets [ICMP (Internet Control Message Protocol) echo request and echo reply packets] to a destination, an IP address or domain name

• If the destination responds, you have a good TCP/IP connection (working route).

• There are many freeware and shareware PING utilities available for personal computers (see for example http://www.shareware.com)

Page 5: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Breaking it down

• Pinging consists of the command “ping” followed by an IP address or domain name– ping 139.84.10.250– ping www.lasalle.edu

• It sends out special packets which request a response (echo reply) if the destination host is reached

Page 6: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

host

• A computer that is connected to a TCP/IP network, including the Internet.

• Each host has a unique IP address.– A computer may always have the same address

or may have a different address each time it connects to the networks

– Two computers on the same network or internet at the same time should not have the same address

Page 7: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Usual form

• Instead of writing out a string of thirty-two 1’s and 0’s, IP addresses are usually written as four numbers between 0 and 255 separated by periods (the dotted decimal notation)

• For example

139.84.10.250

Page 8: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

How many?

• With 32 bits, 232 devices could be distinguished

• Actually the number of valid IP addresses is less than 232 because certain addresses are reserved for special purposes (127.0.0.1 is one example we’ll see later) – Another problem is that addresses are “owned”

by people not using them

Page 9: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

IP Address (cont.)

• In an isolated network, any set of IP addresses can be assigned.

• On the other hand, connecting a network to the Internet requires using registered IP addresses to avoid duplications.

• The InterNIC Registration Service assigns Internet addresses.

Page 10: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Domain name

• A domain name is a string of characters standing in for an IP address

• Can have– One Name Multiple Addresses – One Address Multiple Names

• Domain names are used in URLs to identify particular Web pages. For example, in the URL http://www.pcwebopedia.com/index.html, the domain name is pcwebopedia.com.

Page 11: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Packet

• A packet is a message (protocol + “some” data) or a piece of a message transmitted over a packet-switching network.

• A packet must also contain an address (identifier) so that it can be routed to its destination.

Page 12: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Packet switching

• A set of protocols (rules for communication) in which messages are broken into pieces called packets before being sent.

• The packets are transmitted individually (connectionless). – They may follow different routes– They can arrive out of order– Share the medium with other packets from other

transmissions

• When the packets arrive, they are reassembled into the original message.

Page 13: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging: Start/Run

Page 14: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging: Type command in Run dialog box

Actually cmd is preferred

Page 15: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging: type ping followed by domain name

Page 16: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging a host which was off at the time

Can use IP instead of domain name

Timed out

Page 17: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging webopedia, also timed out

Page 18: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Webopedia ping timed out, even though site was up

Page 19: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Denial of service

• One possibility is that some companies block pings because their systems could become clogged with ping requests.

• Rejecting pings could make a site less vulnerable to a Denial of Service (DoS) attack, in which a site is flooded with so many requests that it cannot answer them all.

Page 20: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Ping Exercise Part 1 (30 points)

•Pick the address of a site you visit. You are going to use it to test some network diagnostics. What happened when you ping your site?

•Try it with a few more examples. What is happening?

•How can ping be useful?

Page 21: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Type ping /? To find the various options there are

Page 22: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Using the count request option to send 5 instead of 4

Page 23: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Useful or not?

• Simply pinging a remote host (a computer that is on one’s internet but not on one’s network) usually has an all or nothing outcome and as such can provide somewhat limited information

• A sequence of pinging can provide more information (see MCSE TCP/IP for Dummies)

Page 24: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging yourself using localhost or 127.0.0.1: verifies that TCP/IP has been installed and started correctly

Reserved IP address

Page 25: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging yourself using your IP, checks that the IP is valid

Page 26: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

You can use another utility ipconfig to find your IP if you

don’t know it

Page 27: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Go to the start commandSelect the option run and type command.comYou now have the black window and we are

going to use this to check our connection.Run ipconfig—what is your address? What

can you tell from your about your connection?

Page 28: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Pinging the Gateway – timing out here may indicate a problem

with the router

Page 29: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Gateway

• Recall that one gets an internet by connecting more networks

• The point at which data leaves one (local) network and enters another is known as a gateway

• A node (a device on the Internet) can be either a gateway, router, or a host (end-point).

Page 30: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Host/Gateway

• When you are looking at some site on the net, your computer and the one containing the site are hosts

• On the other hand, the computers that direct the traffic, for example your Internet service provider (ISP) are gateway/router nodes.

Page 31: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Traceroute• A utility that traces (determines the route taken

by) a packet from your computer (the local host) to some other host on the network – It doesn’t actually follow a single packet but sends out

a series of packets– The packets are restricted in the number of “hops” they

can take • It is limited by the time-to-live (TTL) field

– When the limit is reached, information about the node is (should be) returned

– Each consecutive packet is allowed one more hop

Page 32: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

hop

• A hop is when a packet is transmitted from one node to the next.

• “Some Internet Service Providers (ISPs) advertise how many hops away from Internet backbone they are. Theoretically, the fewer hops it takes to get your data onto the backbone, the faster your access will be.” (webopedia)

Page 33: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Traceroute (Cont.)

• Traceroute shows how many hops were required to reach the destination as well as the length of time for each hop.

• When the web is sluggish, you can use traceroute to determine where the congestion lies.

Page 34: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Traceroute (Cont.)

• The original traceroute was for UNIX utility • Windows has a traceroute utility called

tracert. • Go to Start/Run, type cmd, and then type

“tracert” followed by the domain name of the host.

• For example: tracert www.webopedia.com

Page 35: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

tracert www.whatis.com

Page 36: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Tracert Exercise Part 2 (40 points)

• Using the command.com and tracert command, find the command to

• www.whatis.com

• 139.84.19.200

• Ask your neighbor for their ip address—trace the route to them.

Page 37: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Other TCP/IP diagnostic commands

• Nbtstat• Netstat• Ipconfig• Arp• Hostname• Route• Look up these commands and see what they mean.

Prepare a table with the list and the job of each command….site your sources.

Page 38: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Another Exercise part 3 (30 points)

• Find the ipconfig for your machine.

• Open the command window

• Look at the options for the NBTSTAT command.

• Run the NBTSTAT command using your ip address for your machine. Use the –A option. What did you find out?

Page 39: Ping and traceroute Lab/Homework exercise Assigned 9/12/2006 Due 9/19/2006 CSIT 220 Fall, 2006 Based on T. Blum Exercises.

Other sources

• http://www.webopedia.com

• http://www.whatis.com


Recommended