Assignment 4
Assignment 4
KEERTHI
2023002211
ASSIGNMENT-4
Command Line Utilities:
There are several command line utilities (slightly different for each
operating system). Some of these are:
1. ping: Used to test if two hosts can communicate with each
other. Usage: ping [options] target name
Some Options:
-t ping till stopped -a resolve host addresses to names
-i TTL set time to live .
2. tracert (traceroute on Linux) Used to trace the route to the
target host
Usage: tracert [options] target_name
Some Options:
• -h maximum number of hops to host
• -d use ip addresses
• -w timeout in ms for each hop
3.pathping (mtr on Linux) Gives route with statistics latency a
loss statistics
2.1 Exercise
3. Use the ping command with the -i option to get the number of
hops to www.gitam.edu. Report the steps you followed to do this.
(a) Use the tracert command to find the route to find the route to
www.gitam.edu. Note the route.
(b) Now use tracert with the option-d to find the route to
www.gitam.edu. Do you observe anything different now? If yes,
what is it?
M.KEERTHI
2023002211
Differences Observed:
✔ The hostnames are missing (only IP addresses are shown).
✔ The command runs faster because it doesn’t need to resolve domain names.
Ans. Here are two possible options for the pathping command:
-n (Do not resolve addresses to hostnames)-This option prevents pathping
from performing a DNS lookup on IP addresses, which can speed up the process.
-h <maximum_hops> (Set maximum number of hops)-Specifies the
maximum number of hops the command will trace before stopping.
M.KEERTHI
2023002211