Telecom Network Management Lab 1
Telecom Network Management Lab 1
Open the linux terminal and execute the following basic networking tools and utilities.
Make your observations and record the output of each command.
1. ifconfig
Observe the details that are displayed and record
o Number of interfaces that are shown.
o IP address and MAC address of the respective interfaces.
o Other statistical information.
o What is Subnet Mask of each interface and its significance.
Output:
IP Address and MAC Address of the Respective Interfaces
ens5:
o IP Address: 172.31.6.245
o MAC Address: 0a:7b:c0:f4:54:a3
lo (Loopback):
o IP Address: 127.0.0.1
o MAC Address: Not applicable (loopback interface does not use MAC
addresses).
o RX packets: 22,760
o RX bytes: 31,603,089 (31.6 MB)
o TX packets: 5,344
o TX bytes: 1,409,015 (1.4 MB)
o RX errors: 0
o TX errors: 0
lo (Loopback):
o RX packets: 353
o RX bytes: 29,963 (29.9 KB)
o TX packets: 353
o TX bytes: 29,963 (29.9 KB)
o RX errors: 0
o TX errors: 0
Subnet Mask of Each Interface:
ens5:
lo (Loopback):
Output:
I tried to ping IP address of the en5 interface of the machine which is 172.31.6.245,
If we use the command ping 172.31.6.245 in our Linux terminal, we will be sending
ICMP Echo Request packets to the IP address of the node itself, which is the same
IP address assigned to the ens5 interface of your machine.
The Ping utility is a command-line tool used to test the reachability of a host on an
Internet Protocol (IP) network. It operates by sending Internet Control Message
Protocol (ICMP) Echo Request messages to the target host and waiting for Echo
Reply.
Observations:
Bytes Sent:
o 56(84) bytes of data indicates that each ICMP request packet sent is 56
bytes in size, but the total packet size is 84 bytes (which includes
additional headers).
Reply Information:
icmp_seq=:
ttl=64:
o TTL stands for "Time to Live," which is the maximum number of hops
(routers) that the packet can traverse before being discarded. A TTL of
64 is common for many operating systems.
time=0.021 ms:
o This shows the round-trip time from the sender to the receiver and
back. The response times here are quite low, indicating a fast local
connection.
Pinging non-existent IP address :
When pinging a valid address (like your own IP), you receive replies indicating
the connection is operational, along with timing and TTL data.
When pinging an invalid IP or a non-existent domain, We don’t see any
outcome on the terminal as shown in the below screenshot the terminal does
not move ahead and while pining in non existent domain it says ‘ping:
nonexistent.domain: Name or service not known’.
> IP :
>domain:
3. nslookup www.abc.com (or any other website)
o What is the purpose of nslookup utility in computer networks?
o Make a query to obtain the IP address of some website using nslookup utility
and record the same.
o Observe the type A, server, non-authoritative or other type information that
are displayed for the ip addresses and record the same.
Output:
Observe the type A, server, non-authoritative or other type information that are
displayed for the ip addresses and record the same.
- Server Information:
This indicates the DNS server used for the query. Here, it is a local resolver
with the address 127.0.0.53.
- Non-authoritative Answer:
We can see Non-authoritative answer here, which means the information was
obtained from a DNS server's cache rather than directly from the authoritative DNS
server for the domain.
This describes the final resolved name and its associated type A record, which
points to the IP address 23.37.86.46. This specifies that the domain ultimately
resolves to an IPv4 address.
4. dig www.abc.com (or any other website)
o What does “dig” stand for and why it being used in networking?
o Make a query for one website and record the output of the command such
as IP addresses, query time etc.
o Observe for any other additional details.
Output:
"DIG" stands for Domain Information Groper, this utility is used primarily for
querying the Domain Name System (DNS) to retrieve information about a domain
name, such as its associated IP addresses, mail servers, and other DNS records.
- Recorded details from the above command:
* Header Information:
Flags:
OPT PSEUDOSECTION:
Contains details regarding the extension mechanisms for DNS (EDNS). It includes:
o version: 0 referring to the EDNS version being used.
o udp: 65494, indicating the maximum UDP packet size for this query.
Question Section:
It shows the question asked, specifically looking for the A record of www.dell.com.
Answer Section:
It details the CNAME chain leading to the final A record, providing insight into how
DNS resolves the requested domain name.
Server Information:
The DNS server that answered the query was 127.0.0.53 (typically a local resolver
on the machine).
Timestamp:
The query was executed on: Sat Oct 26 17:45:03 UTC 2024.
Message Size:
The total size of the response message is 230 bytes, which gives an indication of the
overhead associated with DNS responses.
5. host www.abc.com (or any other website)
o Observe the details that are displayed containing various ip addresses of the
server queried.
Output:
1. CNAME Chains:
2. Final A Record:
3. IP Address Information:
Output:
The output from the netstat command provides a snapshot of active internet
connections and UNIX domain sockets on a Linux terminal.
Connections:
i. First Connection:
Protocol: TCP
Local Address: ip-172-31-6-245.ap-:679
Foreign Address: ip-172-31-7-195.ap-:nfs
State: ESTABLISHED
Output:
The command netstat -i focuses on network interfaces, providing relevant interface statistics
rather than detailed connection information.
Observed Connections:
1. TCP Connection:
o Local Address: ip-172-31-6-245.ap-:679
o Foreign Address: ip-172-31-7-195.ap-:nfs
o State: ESTABLISHED
o This indicates that a TCP connection to an NFS (Network File System) share is
active.
2. TCP6 Connection:
o Local Address: ip-172-31:ms-wbt-server
o Foreign Address: ec2-3-7-172-124.a:40520
o State: ESTABLISHED
o This suggests communication with a service over IPv6.
Active TCP Connections: Show interactions with remote servers, with details
about local and foreign addresses.
Active UNIX Domain Sockets: Display a range of local communications used
by system services and applications.
8. netstat –r
o Observe the details of the routing table
Output:
Observation:
1. Destination: The destination network or IP address that the route applies to.
2. Gateway: The IP address of the gateway through which the destination can be
reached. If the gateway is 0.0.0.0, it means that the destination is directly reachable
on the local network.
3. Genmask: This is the subnet mask associated with the destination. It helps determine
the size of the network and which part of the address refers to the network and which
part refers to the host.
4. Flags: This indicates the status of the route:
o U: The route is up.
o G: The route is a gateway.
o H: The route is a host route (specific to a single IP).
5. MSS: Maximum Segment Size (MSS) for TCP connections using this route (not
specifically relevant here).
6. Window: TCP window size for the route (not used often in routing table reviews).
7. irtt: Initial round-trip time for connections using this route (also often not used).
8. Iface: The network interface associated with the route.
o Destination: default
o Gateway: ip-172-31-0-1.a
o Genmask: 0.0.0.0 (indicating this is a default route)
o Flags: UG (up and is a gateway)
o Iface: ens5
o Meaning: This route is the default for all traffic not matching other routes. It
directs packets to the gateway ip-172-31-0-1.a via the ens5 network
interface. This is the route used when no more specific match is found.
2. Directly Connected Network:
o Destination: 172.31.0.0
o Gateway: 0.0.0.0
o Genmask: 255.255.240.0
o Flags: U (up)
o Iface: ens5
o Meaning: This indicates that the network 172.31.0.0 (with a subnet mask
of 255.255.240.0, which allows for a range of IP addresses) is directly
reachable via the ens5 interface.
o Destination: ip-172-31-0-1.a
o Gateway: 0.0.0.0
o Genmask: 255.255.255.255 (indicating this is specific to a single host)
o Flags: UH (up and is a host route)
o Iface: ens5
o Meaning: This route is a specific path to the host ip-172-31-0-1.a. Since the
gateway is 0.0.0.0, it implies that it's reachable directly via the ens5 interface.
9. arp –a
o What does “arp” stands for and what is the purpose of the arp utility?
o Observe the details on the entries in ARP table and record the same.
Output:
ARP stands for Address Resolution Protocol. It is a protocol used for mapping
an Internet Protocol (IP) address to a physical machine address that is recognized
in the local network, essentially translating IP addresses into MAC (Media Access
Control) addresses.
The ARP utility is used to view and manage the ARP cache on a device. The ARP
cache stores IP-to-MAC address mappings, which enables a system to efficiently
send packets to the correct physical destination on a local network without
needing to broadcast ARP requests for every packet.
Observations:
The observed entries indicate the local network hosts and their corresponding
MAC addresses, facilitating direct packet delivery in the network.