Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

The Unix utility traceroute, or its Windows equivalent tracert, can be used to find the sequence of routers through which a message is routed. Use this to find the path from your site to some others. How well does the number of hops correlate with the RTT times from ping? How well does the number of hops correlate with geographical distance?

Short Answer

Expert verified
Use traceroute/tracert to record the number of hops and RTT to your destination. Compare the number of hops with RTT from ping and estimate geographical distance to analyze correlations.

Step by step solution

01

- Use traceroute or tracert

Open a command line interface on your computer. For Unix-based systems, use the command `traceroute `, and for Windows, use `tracert `, where '' is the address of the site you want to trace.
02

- Record the sequence of routers

Observe the output which lists each router (hop) your packet passes through along with the time taken for each hop. Record the number of hops and the RTT (Round Trip Time) for each hop.
03

- Use ping to find RTT

Next, use the `ping ` command to find the average RTT time for the same destination. Record this information.
04

- Compare hops with RTT

Analyze the data to see how the number of hops correlates with the RTT times from the ping command. Generally, more hops can indicate a higher RTT, but this is not always the case as RTT is affected by other factors such as the speed and performance of each router.
05

- Correlate hops with geographical distance

Estimate the geographical distance to the destination site. You may use map services or online tools for this. Compare this distance with the number of hops recorded. Note that while closer geographical locations often correlate with fewer hops, this is not always accurate due to network architecture and routing policies.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

Key Concepts

These are the key concepts you need to understand to accurately answer the question.

traceroute usage
The 'traceroute' utility is a powerful tool to understand how packets travel across a network. This command traces the path your data takes from your computer to a specified destination. By running `traceroute ` on Unix-based systems or `tracert ` on Windows, you can observe each router or node that your data flows through. This helps diagnose network problems and understand the route taken.
router hops
Router hops are essentially the stops your data packet makes as it travels across the network to its destination. Each hop represents a router that forwards the packet to the next point. By using traceroute, the sequence of these routers, including the time taken for each hop, is displayed. Counting the number of hops helps you see how many intermediary devices are involved.
Round Trip Time (RTT)
Round Trip Time (RTT) measures the time it takes for a packet to travel to the destination and back to the source. With traceroute, the RTT for each hop is displayed, providing insights into which hops might be slowing down the packet. Higher RTT values can indicate network congestion or longer distances. RTT is crucial for assessing network performance.
ping command
The 'ping' command is a simpler yet equally important tool used to measure the RTT of packets to a destination. By running `ping `, you continuously send packets to the target and receive echo responses. The result shows the average RTT, helping diagnose connectivity issues and assessing the performance.
geographical distance and network routing
Geographical distance plays a role in network routing but isn't the only factor. While shorter distances often mean fewer hops and lower RTTs, other elements like network policies and infrastructure impact routing. More hops don't always equal higher RTT, which can be influenced by router performance and congestion. Comparing traceroute hops with physical distance helps comprehend this complexity.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

The Unix utility whois can be used to find the domain name corresponding to an organization, or vice versa. Read the man page documentation for whois and experiment with it. Try whois princeton.edu and whois princeton, for starters.

For the following, assume that no data compression is done; this would in practice almost never be the case. For (a)-(c), calculate the bandwidth necessary for transmitting in real time: (a) Video at a resolution of \(640 \times 480,3\) bytes/pixel, 30 frames/second. (b) \(160 \times 120\) video, 1 byte/pixel, 5 frames/second. (c) CD-ROM music, assuming one CD holds 75 minutes' worth and takes \(650 \mathrm{MB}\). (d) Assume a fax transmits an \(8 \times 10\)-inch black-and-white image at a resolution of 72 pixels per inch. How long would this take over a 14.4-Kbps modem?

Modify the simplex-talk socket program so that it uses UDP as the transport protocol, rather than TCP. You will have to change SOCK_STREAM to SOCK_DGRAM in both client and server. Then, in the server, remove the calls to listen() and ac\(\operatorname{cept}()\), and replace the two nested loops at the end with a single loop that calls recv() with socket s. Finally, see what happens when two such UDP clients simultaneously connect to the same UDP server, and compare this to the TCP behavior.

Consider a simple protocol for transferring files over a link. After some initial negotiation, A sends data packets of size \(1 \mathrm{~KB}\) to B; B then replies with an acknowledgment. A always waits for each ACK before sending the next data packet; this is known as stop-and-wait. Packets that are overdue are presumed lost and are retransmitted. (a) In the absence of any packet losses or duplications, explain why it is not necessary to include any "sequence number" data in the packet headers. (b) Suppose that the link can lose occasional packets, but that packets that do arrive always arrive in the order sent. Is a 2-bit sequence number (that is, \(N\) mod 4) enough for \(\mathrm{A}\) and \(\mathrm{B}\) to detect and resend any lost packets? Is a 1-bit sequence number enough? (c) Now suppose that the link can deliver out of order, and that sometimes a packet can be delivered as much as 1 minute after subsequent packets. How does this change the sequence number requirements?

Suppose a 100-Mbps point-to-point link is being set up between Earth and a new lunar colony. The distance from the moon to Earth is approximately \(385,000 \mathrm{~km}\), and data travels over the link at the speed of light-3 \(\times 10^{8} \mathrm{~m} / \mathrm{s}\). (a) Calculate the minimum RTT for the link. (b) Using the RTT as the delay, calculate the delay \(\times\) bandwidth product for the link. (c) What is the significance of the delay \(\times\) bandwidth product computed in (b)? (d) A camera on the lunar base takes pictures of Earth and saves them in digital format to disk. Suppose Mission Control on Earth wishes to download the most current image, which is \(25 \mathrm{MB}\). What is the minimum amount of time that will elapse between when the request for the data goes out and the transfer is finished?

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free