Lab 3 - Tan Chiu Shyen - 18000810
Lab 3 - Tan Chiu Shyen - 18000810
September 2022
The Network Diagnostic method is used to identify the network configurations of a computer
and diagnose Internet issues. A network diagnostic will typically assist in identifying the root
cause of connection issues if a computer cannot connect to the Internet or if the Internet
connection is particularly slow. Usually, hardware or software network diagnostic tools are
used for network diagnostic processes. For resolving network connection issues with the
Internet, certain operating systems come with built-in utilities.
While software applications and tools known as "network diagnostics tools" give us the
ability to recognise network problems and their likely causes. It enables us to carry out a variety
of network activities, including switch, server, and network performance monitoring. These
software tools provide information about the network, such as hostnames and latency values.
When we have many Wi-Fi network connections, many of these applications can also assist in
locating routing problems.
METHODOLOGY
Objectives
Method
Experiment 1 – Ping
Experiment 2 – Ipconfig
Experiment 3 – ARP
Experiment 1 - Ping
4. What is TTL? And can we change its value with ping command? How? What will happen
if you change the TTL value to 10?
TTL is time to live which refers to the amount of time or “hops” that a packet is set to exist
inside a network before being discarded by a router. TTL is also used in other contexts
including CDN caching and DNS caching. We can change its value with ping command
with “ping -i <value> <PC IP>”. If the TTL value is changed to 10, then the packet send
from own PC is having TTL value equal to 10 in Wireshark software.
5. Which command we have to use to ping a PC infinitely? Give a scenario in which we
need to use the infinite ping.
We have to use “ping -t” command to ping a PC infinitely. Infinite ping is a common
debugging method to check network devices are reachable. With the infinite ping, the
connection between computers can be tested in an infinite loop.
6. What would the following syntax do? What does the pinged IP mean?
Ping 127.0.0.1
The command “ping 127.0.0.1” means that our PC will send a packet to the device
which is having this IP address. Pinged IP also allows us to test and verify if a particular
destination IP address exist and can accept requests in computer network administration.
“Ping –n <Next PC IP>” syntax allows users to set the numbers of packets that they
like to send. When a negative value has been set, such as “ping -n -1 172.17.103.8”, the
ping function loop infinitely. While a positive value has been set, such as “ping -n 5
172.17.103.8”, thus 5 packets are sent and 5 reply packets are received.
8. Ping the PC next to you with 7 requests command. What would be the reply?
If ping the PC next to me with 7 requests command, 7 reply packets will be received
from the PC next to me correspond to the 7 packets sent.
9. Unplug the Networking Adapter from the PC next to you then ping its IP. What would
be the output?
The output results show that the PC still able to send and receive replies.
10. Ping the PC next to you infinitely. While it’s sending and receiving echoes and replies,
unplug the network adapter. What would be the output?
The output results shows that the PC does not affect and keep sending and receiving
echoes and replies.
11. Log off the PC next to you then ping its IP. What would be the output?
The output results show that the PC still able to send and receive replies.
12. Shutdown the PC next to you then ping its IP. What would be the output?
The ping has requested time out shows that the destination host is unreachable after the
PC next to me is shut down.
Experiment 2 – Ipconfig
4. If we want to know the MAC address of a remote PC, can we get it using ipconfig
command? How?
No, we can’t know the MAC address of a remote PC using ipconfig command. This is
because ipconfig can only display information of own PC as the answer for Question 2.
5. If we want to know the Computer Name of a remote PC, can we get it using ipconfig
command ONLY? How?
No, we can’t know the Computer Name of a remote PC using ipconfig command. This
is because ipconfig can only display the information of own PC as the answer for
Question 3.
6. What does the following syntex do (Explain the results):
i. Run Ipconfig /displaydns observe the result.
The Windows IP configuration has been shown after executing
“ipconfig/displaydns”.
iv. What is the difference between the two results (Step i and iii)?
In the results in Step (i), the Windows IP configuration still can be observed while
in step (iii) the Windows IP configuration is blank. This is because the details in the
Windows IP configuration have been deleted when executing “ipconfig/flushdns” as
this command purges the cached DNS entries on the PC.
7. If we want to know the current full TCP configuration for our host, what would be the
full statement to be used?
“ipconfig/all” command can be used in command prompt to know the current full TCP
configuration for our host.
Experiment 3 – ARP
2. Run arp –a
3. Run arp –d <next PC IP>
4. Run arp –a
Step 3
Step 4
Step 6
In this lab session, there are several network diagnostic syntaxes are executed such as “ping”,
“ipconfig”, and “arp”. In experiment 1, “ping” command is executed to troubleshoot
connectivity, reachability and name resolution. It is also a very common method used to
troubleshoot accessibility of devices. It uses a series of Internet Control Message Protocol
(ICMP) Echo messages to determine whether a remote host is active or inactive. The 2 major
pieces of information that the ping command provides are how many of those responses are
returned and how long it takes for them to return. While in this experiment 1, Lab’s PC has
been pinged to check the accessibility of the PC. Besides, UTP proxy has also been pinged and
the results are observed. To change the TTL value, “ping -i <value> <PC IP>” command has
been executed. Since the TTL value is requested to change to 10, thus “ping -i 10 172.17.103.8”
command is executed to change the TTL value. Besides, “ping -t” has also been executed in
experiment 1 to ping the Lab’s PC infinitely. When the networking adapter of the Lab’s PC is
unplugged, the output results should be “request time out” or “unreachable”. However, in this
lab session, we can still get responds from the Lab’s PC after the networking adapter has been
unplugged. This is because the settings inside the Lab’s PC is different from normal PC and
the Internet settings of the Labs have been modified by the lab’s technician. Thus, we still get
the responds even if the networking adapter of the Lab’s PC is unplugged or logged off. When
the PC is totally shut down, the ping command is executed, and the results are “request time
out” and “unreachable”. This has shown that the Lab’s PC has failed to reply to the echo request
packet send from host PC.
While in experiment 2, “ipconfig” command has been executed. Ipconfig is one of the
better-known command-line utilities available through Windows, since it is highly useful for
configuring and analysing networks. It is used to display information about the network
configuration and refresh DHCP and DNS settings. Ipconfig command also allows users to get
the IP address information of the host PC. It is very useful for network setup, configuration and
administration. In experiment 2, ipconfig command has been used to get the IP address, MAC
address, and computer name of the host PC. Moreover, ipconfig command has been modified
into “ipconfig/displaydns” to display the Window IP configuration and “ipconfig/flushdns” to
delete or purges the DNS resolver cache.
Lastly, “arp” command is used in experiment 3 which stands for “Address Resolution
Protocol”. On a local area network, it is a protocol that converts an IP address to a MAC address.
A computer system typically uses ARP to determine the MAC address of another computer
based on that computer's IP address. An ARP table or cache's details and information can be
viewed, displayed, or changed. The "arp -a" command can be used to inspect an ARP table on
a PC. The IP and MAC addresses of recent local network connections that the host computer
has made are dynamically listed in the ARP table/cache. By keeping an ARP table, the host PC
can communicate with another PC without having to submit an ARP request for the other PC's
MAC address. The ARP command is also used to switch the network type from one form to
another (static or dynamic). While the ARP programme receives dynamic entries, static ARP
entries must be manually added to the ARP cache table.
CONCLUSION
In conclusion, this lab has been successfully conducted as all the objectives have been achieved.
We have the chance to learn and grasp the functions performed by various network diagnostic
syntax, including "ping," "ipconfig," and "arp." We finally understand how to use the "ping"
command to test connectivity, reachability, and name resolution. While networks are
configured and analysed using the "ipconfig" command. Information about the network
settings is also displayed using it. Last but not least, the "arp" command is used to view the
ARP table/cache and switch the network's form (static to dynamic or dynamic to static). Sum
up, we now have a better understanding of the three network diagnostic syntaxes, have
practised using them in this lab, and are more familiar with how they work.