Explain ping.
Packet InterNet Groper (ping) is a CLI tool used to check reachability of a host by sending ICMP ECHO_REQUEST packet to target host and waits to see if host responds.
The program reports error, packet loss and round trip time (RTT).
What protocol does ping use?
Internet Control Message Protocol (ICMP)
What could it mean if ping isn’t working?
It could mean one of the following
What is the default interval between sending each packet during ping in Linux? How can we change it?
Default interval: 1 second
To change the interval: ping -i 3 www.example.com
How to make ping stop sending packets after a particular count?
Windows: ping -n 5 www.example.com
Linux: ping -c 5 www.example.com
Which ping switch is used to ping host until externally stopped?
Windows: ping -t www.example.com
Which ping switch in Linux is used to check the response of the network under high-load conditions?
ping -f www.example.com
How does ping work?
What is traceroute?
It provides the sequence of gateways through which IP packets travel to reach destination.
The command is
“traceroute hostname”
where hostname can be DNS name or IP address.
Which command to run if do not want tracert to resolve the intermediate IP addresses?
tracert -d google.com
What protocol does traceroute use?
Internet Control Message Protocol (ICMP)
What is the meaning of * in place of one of the RTTs?
No response was received from the router
What is the meaning of * in all the time fields for a given gateway?
No ICMP Time Exceeded error message was received from that particular gateway.
How does traceroute work?
What is asymmetric routing?
When the packets take one path to travel from source to destination and another path to travel from destination to source, the configuration is called asymmetric routing.
What does the !N notation mean in traceroute RTT?
Network unreachable error
What does the !H notation mean in traceroute RTT?
Host unreachable error
What does the !P notation mean in traceroute RTT?
Protocol unreachable error
What is MTR program?
My TraceRoute (MTR) is a program which combines functions of traceroute and ping in one network diagnostic tool like Unix/Linux’s top.
What is netstat and what does it do?
Network Statistics (netstat) is a CLI tool that displays network connections, routing table, network interfaces and protocol stats.
It is used for finding problems in network and to determine amount of traffic on a network for performance measurement.
What does the state LISTEN in netstat mean?
It shows the processes that are listening on the network for incoming connections.
We can use netstat -l (small L) to see only listening ports.
What does the state ESTABLISHED in netstat mean?
It means that the connection is currently active.
We can use netstat -a to see all connections.
What does the state TIME_WAIT in netstat mean?
It shows the connections in the process of closing.
What does the state SYN_SENT in netstat mean?
It shows the process that is trying to contact a nonexistent/inaccessible network server.