Lab Session 7: Network Analysis: IP Address
Lab Session 7: Network Analysis: IP Address
IP Config Command
This command gives IP information about interfaces within that machine.
Go to:
Start → Run → cmd
>ipconfig
Ping
Ping (Packet Internet Groper) is a computer network tool used to test whether a particular
host is reachable across an IP network. Ping works by sending a small packet of information
containing an ICMP ECHO_REQUEST to a specified computer, which then sends an
ECHO_REPLY packet in return. ICMP is used by hosts and routers to communicate network
layer information to each other. The most common use of ICMP is for error reporting. ICMP
messages are carried as IP payloads. The Ping program sends an ICMP type 8 code 0
message to the specified host. The destination host seeing the echo request sends back a type
0 code 0 ICMP echo reply.
Ping places a unique sequence number on each packet it transmits, and reports which
sequence numbers it receives back. Thus, you can determine if packets have been dropped,
duplicated, or reordered. Ping checksums each packet it exchanges. You can detect some
forms of damaged packets. Ping places a timestamp in each packet, which is echoed back
and can easily be used to compute how long each packet exchange took - the Round Trip
Time (RTT).
Page | 15
Lab Manual of Data Communication and Networks
>ping ipaddress
Tracert
Traceroute is a computer network tool used to determine the route taken by packets across an
IP network.
Page | 16
Lab Manual of Data Communication and Networks
MAC Address
A MAC address is essentially a unique, fixed serial number of your computer’s network
card in a globally agreed format. This network card can also be referred to as a Network
adapter or Network Interface Card (NIC).
The standard form for MAC addresses is six groups of two hexadecimal digits (characters 0 –
9 and A – F) separated by a hyphen (-) or a colon (:):
12 – 34 – 56 – 78 – 90 – AB
To find out your computers MAC Address open the command prompt and type
ipconfig /all and then press the ENTER. The window should then display a whole load of
information about all of the network cards in your machine.
The MAC address for each network adapter is displayed as its physical address.
Page | 17
Lab Manual of Data Communication and Networks
ARP
Address resolution Protocol (ARP) is a network layer protocol used to convert an IP address
into a physical address. A host wishing to obtain a physical address broadcasts an ARP
request onto the TCP/IP network. The host on the network that has the IP address in the
request then replies with its physical hardware address.
RARP
Reverse Address Resolution Protocol (RARP) is a network layer protocol used to obtain an
IP address for a given hardware address. Why is a rarp command not needed?
Page | 18