Exercise: Measuring RTT with Ping
We'll cover the following
Round-trip-time
Just to recap the last lesson, the Round Trip Time of a connection is the amount of time it takes to send a packet and receive its acknowledgment.
The ping
command can be used to measure the round-trip-time to send and receive packets from a remote host. We’re just pinging google from here because the location of the server that actually runs these commands from our website may change over time. However, if you try this locally, chose a remote destination which is far from your current location, e.g., a small web server in a distant country.
Checkout ping’s manpage for more details!
Pinging Google
Dissecting The Output
Note that the Time To Live (TTL) is the number of routers a packet can hop. So a ttl of 53 means it can jump 53 more ‘hops’ before being discarded. Each router or intermediary forwarding device decreases the TTL by one. This was a rather simplified definition of the term. We will study it in detail in the next chapter.
Feel free to ask any questions related to the lesson in the following widget. Our AI will answer them and help you better understand the topic
Now that we know some quirks and alterations added to optimize TCP over time, let’s get into TCP congestion control algorithms!
Get hands-on with 1400+ tech skills courses.