Network Fundamentals Interview Questions Computer Networks (original) (raw)

Last Updated : 14 Apr, 2026

Network fundamentals cover the core principles that enable devices to communicate and share data. They include networking models like OSI and TCP/IP, addressing schemes such as IP and MAC. Understanding these basics is essential for troubleshooting, designing, and optimizing modern communication systems, making them a foundation for advanced networking discussions and interviews.

1. If two computers are connected directly using a cross-over cable, can they communicate without IP addresses? Why or why not?

2. What are the different classes of IP addresses and give the range of each class?

IP address is an address having information about how to reach a specific host, especially outside the LAN. An IP address is a 32-bit unique address having an address space of 232.

**Class **Leading Bits **Network ID Bits **Host ID Bits **No. of Networks **Addresses per Network **IP Address Range
**A 0 8 24 2⁷ = 128 2²⁴ = 16,777,216 0.0.0.0 – 127.255.255.255
**B 10 16 16 2¹⁴ = 16,384 2¹⁶ = 65,536 128.0.0.0 – 191.255.255.255
**C 110 24 8 2²¹ = 2,097,152 2⁸ = 256 192.0.0.0 – 223.255.255.255
**D 1110 Multicast 224.0.0.0 – 239.255.255.255
**E 1111 Experimental 240.0.0.0 – 255.255.255.255

For more details, please refer to introduction of Classful IP addressing.

3. What is Subnet mask?

A subnet mask is a 32-bit number that is used to identify the subnet of an IP address. The subnet mask is a combination of 1’s and 0’s. 1’s represents network and subnet ID while 0’s represents the host ID. In this case, the subnet mask is,

11111111.11111111.11111111.11000000
or
255.255.255.192

So, in order to get the network to which the destination address belongs, we have to bitwise & with a subnet mask.

11111111.11111111.11111111.11000000
&& 11001000.00000001.00000010.00010100
-----------------------------------------------------
11001000.00000001.00000010.00000000

The address belongs to,

11001000.00000001.00000010.00000000
or
200.1.2.0

4. Why CIDR is used?

The problem with this classful addressing method is that millions of class A addresses are wasted, many of the class B addresses are wasted, whereas, number of addresses available in class C is so small that it cannot cater to the needs of organizations. Class D addresses are used for multicast routing and are therefore available as a single block only. Class E addresses are reserved. Since there are these problems, Classful networking was replaced by Classless Inter-Domain Routing (CIDR).

For more details please refer CIDR full-form to the article.

5. What is the LOOPBACK address?

Loopback Address is used to let a system send a message to itself to make sure that the TCP/IP stack is installed correctly on the machine.

For more details, please refer Local Broadcast and Loopback address article.

6. What is a Default Gateway?

A Default Gateway is the device (usually a router) that connects your local network to other networks, including the internet.

**Example:

7. Why Hop limit field is used?

The Hop Limit field (in IPv6, similar to TTL in IPv4) is used to prevent packets from circulating endlessly in case of routing loops.

For more details, please refer to Internet Protocol version 6 (IPv6) Header article.

8. What protocol is used by PING?

PING uses the ICMP (Internet Control Message Protocol).

For more details, please refer to the Difference between Ping and Traceroute article.

9. What is used of Tracert?

Tracert (Windows) or traceroute (Linux) is a network diagnostic tool used to trace the path packets take from your computer to a destination host.

For more details, please refer to the Difference between Ping and Traceroute article.

10. Name the ports used by FTP protocol?

FTP protocol uses two ports:

For more details, please refer to File Transfer Protocol (FTP) in the Application Layer article.

11. What is MAC address?

MAC Addresses are unique 48-bit hardware numbers of computers, which are embedded into a network card (known as Network Interface Card) during the time of manufacturing. The MAC Address is also known as the Physical Address of a network device. In IEEE 802 standard, the Data Link Layer is divided into two sublayers –

  1. Logical Link Control(LLC) Sublayer
  2. Media Access Control(MAC) Sublayer

The MAC address is used by the Media Access Control (MAC) sublayer of the Data-Link Layer. MAC Address is unique worldwide since millions of network devices exist and we need to uniquely identify each.

For more details, please refer to Introduction of MAC Address in Computer Network article.

12. Explain ARP?

ARP (Address Resolution Protocol) is a network protocol used to map an IP address (logical address) to a MAC address (physical address) within a local network.

For more details, please refer to the How Address Resolution Protocol works article.

13. What is MTU?

A maximum transmission unit also called MTU, is a term used in networking and operating systems. It defines the largest size of the packet that can be transmitted as a single entity in a network connection. The size of the MTU dictates the amount of data that can be transmitted in bytes over a network.

For more details, please refer What is MTU article.

14. If a class B network on the Internet has a subnet mask of 255.255.248.0, what is the maximum number of hosts per subnet?

**Final Answer: 2046 hosts per subnet

15. What is IP multicast?

IP Multicast is a communication method where data is sent from one source to multiple receivers at once using a single transmission.

16. Difference between public and private IP addresses?

1. Public IP address

2. Private IP address

18. What is Network Address Translation?

For more details, please refer to Network Address Translation.

19. An organization requires a range of IP addresses to assign one to each of its 1500 computers. The organization has approached an Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17. The ISP wants to assign address space to the organization which will minimize the number of routing entries in the ISP’s router using route aggregation. To calculate the address spaces are potential candidates from which the ISP can allow any one of the organizations?

Subnet Mask for the given IP address:

202.61.0.0/17
⇒ 11111111 11111111 10000000 00000000
⇒ 255.255.128.0

Now, since we need 1500 hosts, so, bits for host address,

= ceiling (log2 (1500))
= ceiling (10.55)
= 11 bits for host address

So, the last 11 bits will be for host addresses:

00000000.00000000→00000111.11111111 (0.0→7.255)
00001000.00000000→00010000.00000000 (8.0-15.255)
00001111.11111111→00010111.11111111 (16.0-23.255)

Sequences are 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120.

Hence, 64 and 104 are present in the sequence, so 202.61.104.0 / 21 and 202.61.64.0 / 21 are the possible IP addresses.

20. Explain the difference between Static and Dynamic IP?

Static IP Address Dynamic IP address
It is provided by ISP(Internet Service Provider). While it is provided by DHCP (Dynamic Host Configuration Protocol).
The static IP address does not change at IP any time, which means if a static ip address is provided then it can’t be changed or modified. While dynamic IP addresses static changes at any time.
A static IP address is less secure. While in a dynamic IP address, there is a low amount of risk than static ip address’s risk.
A static IP address is difficult to designate. While the dynamic IP address is easy to designate.
The device designed by static IP address can be trace. But the device designed by dynamic ip address can’t be traced.
The static IP address is more stable than a dynamic IP address. While dynamic ip address is less stable than static ip address.
The cost to maintain the static ip address is higher than the dynamic IP address. While the maintaining cost of dynamic ip address is less than static IP address.
It is used where computational data is less confidential. While it is used where data is more confidential and needs more security.

For more details, please refer to Difference between Static and Dynamic IP addresses.

21. In a switched Ethernet network, if two hosts send frames to the same destination MAC address simultaneously, will there be a collision? Why or why not?

No, there will be no collision at the MAC layer in a switched Ethernet network. Here’s why:

22. What are the features of Gateway?

Gateways provide a wide variety of features. Some of which are:

23. Is Ipv6 Backward Compatible With Ipv4?

No, IPv6 is not backward compatible with IPv4 protocol.

For more details, please refer to the Internet protocol version 6 article.

24. Is It Possible To Have An Ipv4 And An Ipv6 Addresses Simultaneously?

Yes, it is possible to have an IPv4 and IPv6 addresses simultaneously.

For more details, please refer to the Internet protocol version 6 and the difference between IPv4 and IPv6 articles.

25. What is TTL?

The lifespan or lifetime of data that is being sent. Once after that specified time is over or elapsed, the data will be discarded Or it can also be stated as the number of hops that packet is set to exist in the network, after which that packet is discarded. The purpose of the TTL field is to avoid a situation in which an undeliverable datagram keeps circulating in the network.

For more details, please refer to the difference between RTT and TTL article.

26. If the TTL field has the value of 10. How many routers (max) can process this datagram?

TTL (Time To Live) represents the maximum number of routers (hops) a packet can pass through. Each router decreases the TTL value by 1. When TTL becomes 0, the packet is discarded.

Given TTL = 10, Maximum number of routers = 10

For more details, please refer to the difference between RTT and TTL articles.

27. If the value in the protocol field is 17, the transport layer protocol used is which protocol?

If the value in the protocol field is 17, the transport layer protocol uses UDP (User Datagram Protocol).

For more details, please refer to UDP article.

28. What happens in classless addressing, if there are no classes but addresses are still granted?

In classless addressing, there are no classes but addresses are still granted in blocks. The total number of addresses in a block of classless IP addresses = 2(32 – CIDR_value).

For more details, please refer to the introduction of Classful IP addressing.

29. Suppose two IPv6 nodes want to interoperate using IPv6 datagrams, but they are connected to each other by intervening IPv4 routers. Then what is the best solution?

If two IPv6 nodes want to interoperate using IPv6 datagrams, they are connected to each other by intervening IPv4 routers. Then tunneling is the best solution.

For more details, please refer to Internet protocol version 6 article.

30. What is IANA?

IANA, the Internet Assigned Numbers Authority, is an administrative function of the Internet that keeps track of IP addresses, domain names, and protocol parameter identifiers that are used by Internet standards. Some of these identifiers are parameters, such as those used by Internet protocols (like TCP, ICMP or UDP) to specify functions and behaviour; some of them represent Internet addresses and others represent domain names. Regardless of the type of identifier, the IANA function (IANA for short below) ensures that values are managed for uniqueness and made available in publicly accessible registries.

31. What is DHCP?

DHCP is an abbreviation for Dynamic Host Configuration Protocol. It is an application layer protocol used by hosts for obtaining network setup information. The DHCP is controlled by a DHCP server that dynamically distributes network configuration parameters such as IP addresses, subnet mask, and gateway address.

For more details, please refer to Dynamic Host Configuration Protocol (DHCP) article.

32. How can you manage a network using a router?

Routers have built-in console that lets you configure different settings, like security and data logging.We can assign restrictions to computers, such as what resources they are allowed to access, or what particular time of the day they can browse the internet.We can even put restrictions on what websites are not viewable across the entire network.

For more details, please refer to the introduction of a Router.

33. What is ipconfig?

IPCONFIG stands for Internet Protocol Configuration. This is a command-line application that displays all the current TCP/IP (Transmission Control Protocol/Internet Protocol) network configuration, refreshes the DHCP (Dynamic Host Configuration Protocol) and DNS (Domain Name Server). It also displays an IP address, subnet mask, and a default gateway for all adapters. It is available for Microsoft Windows, ReactOS, and Apple macOS. ReactOS version was developed by Ged Murphy and licensed under the General Public License.

For more details, please refer to ipconfig full form article.

34. When you move the NIC cards from one PC to another PC, does the MAC address get transferred as well?

Yes, if we move the NIC cards from one PC to another PC, then the MAC address also gets transferred, because the MAC address is hard-wired into the NIC circuit, not the personal computer. This also means that a PC can have a different MAC address when another one replaces the NIC card.

35. Explain clustering support?

Clustering support refers to the ability of a network operating system to connect multiple servers in a fault-tolerant group. The main purpose of this is that in the event that one server fails, all processing will continue on with the next server in the cluster.

36. What is Brouter?

It is also known as the bridging router is a device that combines features of both bridge and router. It can work either at the data link layer or a network layer. Working as a router, it is capable of routing packets across networks, and working as the bridge, it is capable of filtering local area network traffic.

For more details, please refer to the difference between Router and Brouter article.

37. Explain the features of VPN?

  1. VPN also ensures security by providing an encrypted tunnel between client and vpn server.
  2. VPN is used to bypass many blocked sites.
  3. VPN facilitates anonymous browsing by hiding your ip address.
  4. Also, the most appropriate Search engine optimization(SEO) is done by analyzing the data from VPN providers which provide country-wise states for browsing a particular product. This method of SEO is used widely by many internet marketing managers to form new strategies For more details, please refer to Virtual Private Network.

38. What are the important differences between MAC address and IP address?

**MAC Address **IP Address
Stands for Media Access Control Address Stands for Internet Protocol Address
A 6-byte (48-bit) hexadecimal address IPv4: 4-byte (32-bit), IPv6: 16-byte (128-bit)
Assigned by the device manufacturer (NIC) Assigned by ISP or network administrator
Physical (hardware) address of a device Logical address of a device
Operates at the Data Link Layer Operates at the Network Layer
Used for communication within a local network (LAN) Used for communication across networks (Internet)
Helps in uniquely identifying a device on a network Identifies the device’s location in a network
Generally fixed, but can be changed (MAC spoofing possible) Can change over time (dynamic IP)
Used by ARP to map IP to MAC address Uses ARP to resolve MAC address from IP

39. What is 127.0.0.1?

In IPv4, IP addresses that start with decimal 127 or that has 01111111 in the first octet are loopback addresses(127.X.X.X). Typically 127.0.0.1 is used as the local loopback address.
This leads to the wastage of many potential IP addresses. But in IPv6 ::1 is used as local loopback address and therefore there isn’t any wastage of addresses.

40. What is a DNS?

DNS is a host name to IP address translation service. DNS is a distributed database implemented in a hierarchy of name servers. It is an application layer protocol for message exchange between clients and servers.

For more details, please refer to DNS in the application layer.

41. What is the use of a proxy server?

Proxy server refers to a server that acts as an intermediary between the request made by clients, and a particular server for some services or requests for some resources. There are different types of proxy servers available that are put into use according to the purpose of a request made by the clients to the servers. The basic purpose of Proxy servers is to protect the direct connection of Internet clients and internet resources. The proxy server also prevents the identification of the client’s IP address when the client makes any request is made to any other servers.

42. What is the difference between ipconfig and ifconfig commands?

**IPCONFIG (Windows)

**IFCONFIG (Linux/Unix)

43. What is the importance of APIPA in networking?

44. What is the difference between Firewall and Antivirus?

Firewall Antivirus
Firewall is implemented in both hardware and software. Antivirus is implemented in software only.
Firewall deals with external threats only. Antivirus deals with both external threats and internal threats.
In firewall counter attacks are possible such as IP Spoofing and routing attacks. In antivirus no counter attacks are possible after removing the malware.>
Firewall works on monitoring and filtering. Antivirus works on Scanning of infected files and software.
Firewall checks the threat from incoming packets. Antivirus checks the threat from malicious software.
Firewall saves the system from all kinds of threats to the system. Antivirus saves the system only from viruses.
Firewall’s programming is complex than antivirus. Antivirus’s programming is simpler as comparison to firewall.

45. What is SLIP?

46. What is Kerberos protocol?

Kerberos provides a centralized authentication server whose function is to authenticate users to servers and servers to users. In Kerberos Authentication server and database is used for client authentication. Kerberos runs as a third-party trusted server known as the Key Distribution Center (KDC). Each user and service on the network is a principal.

The main components of Kerberos are:

For more details, please refer to Kerberos article.

47. What is HSRP?

Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol, which provides redundancy for a local subnet. In HSRP, two or more routers give an illusion of a virtual router.

HSRP allows you to configure two or more routers as standby routers and only a single router as an active router at a time. All the routers in a single HSRP group share a single MAC address and IP address, which acts as a default gateway to the local network. The Active router is responsible for forwarding the traffic. If it fails, the Standby router takes up all the responsibilities of the active router and forwards the traffic.

For more details, please refer to HSRP protocol.

48. Why is the MAC address called the Physical address?

The MAC address is a physical address (also called a hardware address) because it physically identifies an item of hardware. MAC addresses use three types of number systems and all use the same format, only the size of the identifier differs. The addresses can be “Universally Managed” or “Locally Managed”. For more details, please refer to Introduction of MAC Address in Computer Network article.

49. Process of DHCP(DORA)?

In DHCP, the client and the server exchange mainly 4 DHCP messages in order to make a connection. This process is known as DORA process (discovery, offer, request, and acknowledgment), but there are 8 DHCP messages in the process. For more details, please refer to Dynamic Host Configuration Protocol (DHCP) article.

50. What is ‘APIPA’?

APIPA stands for Automatic Private IP Addressing (APIPA). It is a feature or characteristic in operating systems (eg. Windows) which enables computers to self-configure an IP address and subnet mask automatically when their DHCP(Dynamic Host Configuration Protocol) server isn’t reachable. The IP address range for APIPA is (169.254.0.1 to 169.254.255.254) having 65, 534 usable IP addresses, with the subnet mask of 255.255.0.0.

For more details please read What is APIPA article.