Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Compter Networks Important Questions for Placements + Networking Basics

Rating
-
Sold
-
Pages
97
Grade
A+
Uploaded on
30-11-2025
Written in
2025/2026

This document includes a complete collection of Computer Networks (CN) interview questions and answers, specially designed for campus placements, technical interviews, and university viva exams. It covers all major networking topics including OSI model, TCP/IP architecture, routing and switching, TCP vs UDP, congestion control, flow control, IP addressing, subnetting, DNS, HTTP, ARP, wireless networks, and more. The answers are written in a simple, clear, and easy-to-understand manner, making it perfect for quick revision before interviews. This material is ideal for students preparing for IT jobs, networking roles, computer science exams, and anyone who wants a strong understanding of basic to advanced networking concepts. Well-structured, accurate, and interview-focused — this document helps you confidently handle commonly asked questions in CN interviews.

Show more Read less
Institution
Course

Content preview

Q1: What is an IPv4 address? What are the different classes of IPv4?
An IP address is a 32-bit dynamic address of a node in the network. An IPv4 address has 4 octets of 8-bit each
with each number with a value up to 255.
IPv4 classes are differentiated based on the number of hosts it supports on the network. There are five types of
IPv4 classes and are based on the first octet of IP addresses which are classified as Class A, B, C, D, or E.
IPv4 Class IPv4 Start Address IPv4 End Address Usage
A 0.0.0.0 127.255.255.255 Used for Large Network
B 128.0.0.0 191.255.255.255 Used for Medium Size Network
C 192.0.0.0 223.255.255.255 Used for Local Area Network
D 224.0.0.0 239.255.255.255 Reserved for Multicasting
E 240.0.0.0 255.255.255.254 Study and R&D


Q2: Explain different types of networks.
Below are few types of networks:
 PAN (Personal Area Network): Let devices connect and communicate over the range of a person.
E.g. connecting Bluetooth devices.
 LAN (Local Area Network): Privately owned network that operates within and nearby a single
building like a home, office, or factory.
 MAN (Metropolitan Area Network): Connects and covers the whole city. E.g. TV Cable connection.
 WAN (Wide Area Network): Spans a large geographical area, often a country or continent. The
Internet is the largest WAN.
 GAN (Global Area Network): Connects the globe using satellites. The Internet is also called the
Network of WANs.
Q3: Explain LAN (Local Area Network).
LANs are widely used to connect computers/laptops and consumer electronics which enables them to share
resources (e.g., printers, fax machines) and exchange information.
 Enterprise networks: when LANs are used by companies or organizations.
 Types:
o Wireless LAN (Wi-Fi): No wires, useful where installing cable is difficult.
o Wired LAN: Uses LAN cables for connectivity.
Q4: Tell me something about VPN (Virtual Private Network).
VPN or Virtual Private Network is a private WAN (Wide Area Network) built on the internet. It allows the
creation of a secured tunnel (protected network) between different networks using the internet (public
network). By using the VPN, a client can connect to the organization’s network remotely.
Q5: What are the advantages of using a VPN?
 Connect offices in different geographical locations remotely (cheaper than WAN).
 Secure transactions and confidential data transfer.
 Protects organizational data against threats/intrusions.
 Encrypts internet traffic and disguises online identity.
Q6: What are the different types of VPN?
 Access VPN: Provides connectivity to remote mobile users and telecommuters. Alternative to dial-up
or ISDN connections.

,  Site-to-Site VPN: Connects office networks in different locations.
o Intranet VPN: Connects remote offices within an organization.
o Extranet VPN: Connects suppliers, customers, and partners over a shared infrastructure.
Q7: What are nodes and links?
 Node: Any communicating device in a network (e.g., computer, printer, modem, server).
 Link: Connectivity between two nodes (wired or wireless).
Q8: What is the network topology?
Network topology is the physical layout of the network, connecting different nodes using links. It depicts
connectivity between computers, devices, and cables.
Q9: Define different types of network topology.
 Bus Topology: All nodes connected to a central bus. Simple but one cable failure damages the
network.
 Star Topology: All nodes connect to a central node. Robust, easy to troubleshoot, common in
home/office networks.
 Ring Topology: Each node connects to exactly two nodes forming a ring. Failure in one node affects
the network. Rare and expensive.
 Mesh Topology: Each node connects to multiple nodes. Robust but difficult to install/manage.
 Tree Topology: Combination of star and bus topology. Failure of main bus breaks the network.
 Hybrid Topology: Mix of different topologies to combine strengths and minimize drawbacks.
Q10: How are Network types classified?
Network types are classified based on the area of distribution: PAN, LAN, MAN, WAN, and GAN.
Q11: What are Private and Special IP addresses?
 Private Address: Reserved IPs not routable on the internet.
IPv4 Class Start Address End Address
A 10.0.0.0 10.255.255.255
B 172.16.0.0 172.31.255.255
C 192.168.0.0 192.168.255.255
 Special Address: Range 127.0.0.1 to 127.255.255.255 (loopback addresses for testing).


Q12: What is the DNS?
DNS is the Domain Name System. It is considered as the devices/services directory of the Internet. It is a
decentralized and hierarchical naming system for devices/services connected to the Internet. It translates the
domain names to their corresponding IPs, for example, interviewbit.com to 172.217.166.36. It uses port 53 by
default.
Q13: What is the use of a router and how is it different from a gateway?
A router is a networking device used for connecting two or more network segments. It directs the traffic in the
network and transfers information such as web pages, emails, images, and videos from source to destination in
the form of packets. It operates at the network layer. A gateway also routes and regulates network traffic, but
unlike routers, gateways can send data between dissimilar networks, whereas routers can only send data
between similar networks.
Q14: What is the SMTP protocol?
SMTP is the Simple Mail Transfer Protocol. It sets the rule for communication between servers, helping
software to transmit emails over the internet. It supports both End-to-End and Store-and-Forward methods. It
runs in always-listening mode on port 25.

,Q15: Describe the OSI Reference Model.
Open System Interconnections (OSI) is a network architecture model based on ISO standards. It is called the
OSI model as it deals with connecting systems that are open for communication with other systems. The OSI
model has seven layers, each with a well-defined function, and their functionality is chosen based on
standardized international protocols.
Q16: Define the 7 different layers of the OSI Reference Model.
The seven layers are:
Physical Layer: Transmits raw bits over a communication channel and decides the transmission mode
(Simplex, Half Duplex, Full Duplex).
Data Link Layer: Transforms a raw transmission facility into an error-free line, detects damaged packets using
error-detecting codes, and manages access control when multiple nodes share a link.
Network Layer: Controls the operation of the subnet and uses ICMP messages for feedback.
Transport Layer: Accepts data from higher layers, splits it into smaller units if required, and ensures all pieces
arrive correctly at the destination. It performs segmentation and reassembly.
Session Layer: Establishes, manages, and terminates sessions between users. Provides dialogue control and
synchronization.
Presentation Layer: Concerned with syntax and semantics of transmitted information, it translates messages
into formats understood by the receiver.
Application Layer: Provides protocols commonly needed by users, such as email, file transfer, and browsing.
Q17: Describe the TCP/IP Reference Model.
The TCP/IP model is a compressed version of the OSI model with four layers. It was developed by the US
Department of Defence in the 1980s. The name comes from its two key protocols, TCP (Transmission Control
Protocol) and IP (Internet Protocol).
Q18: Define the 4 different layers of the TCP/IP Reference Model.
Link Layer: Determines which links, such as serial lines or Ethernet, must be used for the connectionless
internet layer.
Internet Layer: The core layer of TCP/IP, responsible for delivering IP packets to their correct destination.
Transport Layer: Similar to the OSI transport layer, it enables peer entities on the network to converse
reliably.
Application Layer: Contains higher-level protocols needed for user interaction, such as HTTP, FTP, and
SMTP.
Q19: Differentiate OSI Reference Model with TCP/IP Reference Model.
The OSI model has seven layers while the TCP/IP model has four. OSI has fixed boundaries and functionality
for each layer, while TCP/IP is more flexible with overlapping functions. OSI is considered less reliable,
while TCP/IP is highly reliable. OSI follows a vertical layer approach, whereas TCP/IP follows a horizontal
approach.
Q20: What are the HTTP and the HTTPS protocol?
HTTP stands for HyperText Transfer Protocol. It defines the rules and standards for transmitting information
on the World Wide Web. It is a stateless application layer protocol built on TCP and uses port 80 by default.
HTTPS stands for HyperText Transfer Protocol Secure. It is the secured version of HTTP, using SSL/TLS
protocols to provide encryption and authentication. It ensures secure transactions and server verification.
HTTPS uses port 443 by default.


Q21: What is the FTP protocol?
FTP is the File Transfer Protocol. It is an application layer protocol used to transfer files and data reliably and
efficiently between hosts. It can also be used to download files from remote servers to a computer. It uses port
27 by default.
Q22: What is the TCP protocol?
TCP or TCP/IP is the Transmission Control Protocol/Internet Protocol. It is a set of rules that decides how a
computer connects to the Internet and how data is transmitted over the network. It creates a virtual network
when more than one computer is connected and uses the three-way handshake model to establish connections,
which makes it reliable.

, Q23: What is the UDP protocol?
UDP is the User Datagram Protocol and is based on datagrams. It is mainly used for multicasting and
broadcasting. Its functionality is almost the same as TCP/IP except for the three-way handshake and error
checking. It uses simple transmission without handshaking, making it less reliable but faster.
Q24: Compare between TCP and UDP.
TCP is a connection-oriented protocol, while UDP is connectionless. TCP is more reliable but slower, while
UDP is less reliable but faster. TCP preserves packet order using a three-way handshake, whereas UDP
packets are independent and may arrive out of order. TCP offers error checking, while UDP does not. TCP
packets are heavy-weight, while UDP packets are light-weight. Protocols like HTTP, FTP, Telnet, SMTP, and
HTTPS use TCP, while DNS, RIP, SNMP, RTP, BOOTP, and TFTP use UDP.
Q25: What is the ICMP protocol?
ICMP is the Internet Control Message Protocol. It is a network layer protocol used for error handling. It is
mainly used by network devices like routers for diagnosing connection issues. It is crucial for error reporting
and testing if data is reaching the preferred destination in time. It uses port 7 by default.
Q26: What do you mean by the DHCP protocol?
DHCP is the Dynamic Host Configuration Protocol. It is an application layer protocol used to auto-configure
devices on IP networks, enabling them to use TCP and UDP-based protocols. DHCP servers automatically
assign IP addresses and other configurations to devices, allowing them to communicate on the network. It
helps obtain subnet masks, IP addresses, and resolve DNS. It uses port 67 by default.
Q27: What is the ARP protocol?
ARP is the Address Resolution Protocol. It is a network-level protocol used to convert a logical address (IP
address) into a physical address (MAC address). It can also be used to get the MAC address of devices when
they attempt to communicate over a local network.
Q28: What is the MAC address and how is it related to NIC?
The MAC address is the Media Access Control address. It is a 48-bit or 64-bit unique identifier for devices in
a network. Also known as a physical address, it is embedded in the Network Interface Card (NIC) and
operates at the Data Link Layer. The NIC is the hardware component that allows a device to connect to the
network, and the MAC address uniquely identifies it.
Q29: Differentiate the MAC address with the IP address.
A MAC address is a physical address, while an IP address is a logical address. A MAC address is a 6 or 8-byte
hexadecimal number embedded in the NIC, while an IP address is a 4-byte (IPv4) or 16-byte (IPv6) number
assigned by the network. A MAC address operates at the Data Link Layer, while an IP address operates at the
Network Layer. A MAC address identifies the device itself, whereas an IP address identifies the device’s
connection within the network.
Q30: What is a subnet?
A subnet is a network inside a network created through a process called subnetting, which divides a larger
network into smaller sub-networks. Subnetting improves routing efficiency, enhances network security, and
reduces the time required to extract host addresses from the routing table.
Q31: Compare the hub vs switch.
A hub operates at the Physical Layer, while a switch operates at the Data Link Layer. Hubs work in half-
duplex mode, whereas switches support full-duplex transmission. Hubs can connect Ethernet devices, while
switches connect LAN devices. Hubs are less complex, less intelligent, and cheaper, while switches are more
intelligent and effective. Hubs have no software support for administration, while switches often include
administration software. Hubs support speeds up to 100 Mbps, while switches can operate at gigabit speeds.
Hubs are less efficient as they cannot prevent collisions, while switches are more efficient as collisions can be
avoided or reduced.
Q32: What is the difference between the ipconfig and the ifconfig?
The ipconfig command stands for Internet Protocol Configuration and is used in Microsoft operating systems
to view and configure network interfaces. The ifconfig command stands for Interface Configuration and is
used in MAC, Linux, and UNIX operating systems to view and configure network interfaces. Ipconfig can
also provide a TCP/IP summary and allows changes to DHCP and DNS settings.
Q33: What is the firewall?
A firewall is a network security system that monitors incoming and outgoing traffic and blocks or allows it

Written for

Institution
Course

Document information

Uploaded on
November 30, 2025
Number of pages
97
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$3.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sajeemaj

Get to know the seller

Seller avatar
sajeemaj Sri Ramakrishna Engineering College
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
5 months
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions