Skip to main content

Data Communication and Networking in IT: Difference between Ping and Traceroute

Data Communication and Networking in IT
Difference between Ping and Traceroute
    • Notifications
    • Privacy
  • Project HomeData Communication and Networking in IT
  • Projects
  • Learn more about Manifold

Notes

Show the following:

  • Annotations
  • Resources
Search within:

Adjust appearance:

  • font
    Font style
  • color scheme
  • Margins
table of contents
  1. About the Instructor
  2. Course Project Guide
  3. Module 1
    1. Study Guide
    2. Overview of Networks
  4. Module 2
    1. Study Guide
    2. Checksum for Network
  5. Module 3
    1. Study Guide
    2. LANs
  6. Module 4
    1. Study Guide
    2. Links
  7. Module 5
    1. Study Guide
    2. Packets
  8. Module 6
    1. Study Guide
    2. IP Protocols
  9. Module 7
    1. Study Guide
    2. Routing
  10. Module 8
    1. Study Guide
    2. Scheduling
  11. Module 9
    1. Study Guide
    2. Difference between Ping and Traceroute
  12. Module 10
    1. Study Guide
    2. Security and Network Management
  13. Lab Instructions

Difference between Ping and Traceroute

In computer networks, data is sent in small blocks known as packets. Each packet is transmitted individually and may also follow a different route to reach the destination. Once all these packets of the original message reach the destination, they are re-assembled to form the original message. But, sometimes, it may happen that the webserver is down, network congestion, or some other technical glitch is there, that may prevent the message from reaching the destination. To diagnose such congestions and network failures, we use two common programs namely Ping and Traceroute.

Ping – It is a utility that helps one to check if a particular IP address is accessible or not. Ping works by sending a packet to the specified address and waits for the reply. It also measures round trip time and reports errors.

Ping is also used in checking if the computers on a local network are active. For this, the user has to go in command prompt and type: ping 127.0.0.1, and if the address is active, the ping would return a message like this :

Pinging 127.0.0.1 with 32 bytes of data

Reply from 127.0.0.1: bytes=32 time<10ms TTL=32
Reply from 127.0.0.1: bytes=32 time<10ms TTL=32
Reply from 127.0.0.1: bytes=32 time<10ms TTL=32
Reply from 127.0.0.1: bytes=32 time<10ms TTL=32

The IP address 127.0.0.1 is the address of the local host and would receive a ping reply even if the sender is not connected to internet.

Traceroute – It is a utility that traces a packet from your computer to the host, and will also show the number of steps (hops) required to reach there, along with the time by each step. Traceroute works by sending the packets of data with low survival time (Time to Live – TTL) which specifies how many steps (hops) can the packet survive before it is returned. When a packet can’t reach the final destination and expires at an intermediate step, that node returns the packet and identifies itself. So, by increasing the TTL gradually, Traceroute is able to identify the intermediate hosts. If any of the hops come back with  “Request timed out”, it denotes network congestion and a reason for slow loading Web pages and dropped connections.

The main difference between Ping and Traceroute is that Ping is a quick and easy utility to tell if the specified server is reachable and how long will it take to send and receive data from the server whereas Traceroute finds the exact route taken to reach the server and time taken by each step (hop).

Annotate

Next Chapter
Study Guide
PreviousNext
Powered by Manifold Scholarship. Learn more at
Opens in new tab or windowmanifoldapp.org