Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ping and traceroute.

Similar presentations


Presentation on theme: "Ping and traceroute."— Presentation transcript:

1 Ping and traceroute

2 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”

3 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

4 Breaking it down Pinging consists of the command “ping” followed by an IP address or domain name ping ping It sends out special packets which request a response (echo reply) if the destination host is reached

5 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

6 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

7 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 ( is one example we’ll see later) Another problem is that addresses are “owned” by people not using them

8 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.

9 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 the domain name is pcwebopedia.com.

10 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.

11 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.

12 Pinging: Start/Run

13 Pinging: Type command in Run dialog box
Actually cmd is preferred

14 Pinging: type ping followed by domain name

15 Pinging a host which was off at the time
Timed out Can use IP instead of domain name

16 Pinging webopedia, also timed out

17 Webopedia ping timed out, even though site was up

18 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.

19 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?

20 Type ping /? To find the various options there are

21 Using the count request option to send 5 instead of 4

22 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)

23 Pinging yourself using localhost or 127
Pinging yourself using localhost or : verifies that TCP/IP has been installed and started correctly Reserved IP address

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

25 You can use another utility ipconfig to find your IP if you don’t know it

26 Go to the start command Select the option run and type command.com You 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?

27 Pinging the Gateway – timing out here may indicate a problem with the router

28 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).

29 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.

30 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

31 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)

32 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.

33 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

34 tracert

35 Tracert Exercise Part 2 (40 points)
Using the command.com and tracert command, find the command to Ask your neighbor for their ip address—trace the route to them.

36 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.

37 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?

38 Other sources


Download ppt "Ping and traceroute."

Similar presentations


Ads by Google