Computer Networking Basics and Concepts
Computer Networking Basics and Concepts
Part – A
SET – 1 (Basic)
1. What is a Computer Network?
A computer network is a system in which two or more computing devices are connected together to share
resources, data, and applications. It allows communication between devices using wired or wireless media.
2. What is the difference between LAN and WAN?
• LAN (Local Area Network): Covers a small geographical area like a room, building, or campus; high
speed and low cost.
• WAN (Wide Area Network): Covers a large geographical area like cities or countries; slower and more
expensive than LAN.
3. Define IP Address.
An IP address is a unique numerical identifier assigned to each device on a network so it can communicate
with other devices. Example: IPv4 address like [Link].
4. What is a Protocol in networking?
A protocol is a set of rules that govern data communication between devices. It defines how data is formatted,
transmitted, and received. Examples: TCP, IP, HTTP, FTP.
5. What is the function of a Router?
A router is a networking device that forwards data packets between two or more networks. It selects the best
path for data using routing tables.
6. What is a Switch?
A switch is a network device used in LAN to connect multiple devices. It forwards data only to the specific
device (MAC address) for which it is intended, improving network efficiency.
7. What is the difference between Hub and Switch?
• Hub: Broadcasts data to all connected devices; less efficient; works at physical layer.
• Switch: Sends data only to the intended device; more efficient; works at data link layer.
8. What is MAC Address?
MAC address (Media Access Control address) is a unique 48-bit hardware address assigned to a network
interface card (NIC). Example: 00-A0-C9-14-C8-29.
9. What is DNS?
DNS (Domain Name System) is a service that translates human-readable domain names (like [Link]) into
IP addresses. It acts like a "phonebook" of the internet.
10. What is Bandwidth?
Bandwidth is the maximum amount of data that can be transmitted over a network in a given time. It is
measured in bits per second (bps), Mbps, or Gbps.
11. What is the difference between Upload and Download?
• Upload: Sending data from a local device to a server or another device.
• Download: Receiving data from a server to a local device.
12. What is Firewall?
A firewall is a network security device/software that monitors and controls incoming and outgoing network
traffic based on security rules. It protects the network from unauthorized access.
13. What is Network Topology?
Network topology refers to the physical or logical arrangement of devices in a network. Examples: Bus, Star,
Ring, Mesh.
14. Define Transmission Media.
Transmission media are physical or wireless pathways through which data is transmitted in a network.
Examples: optical fibre, twisted-pair cable, radio waves.
15. What is Client–Server Model?
It is a networking architecture where the server provides resources or services, and clients request and use
them. Example: web servers providing web pages to browsers.
--------------------------------------------------------------------------------------------------------------------------------------------------
SET – 2 (Advanced)
1. What is Circuit Switching?
Circuit switching is a communication method where a dedicated communication path is established between
sender and receiver before data transmission begins. It provides guaranteed bandwidth but is less efficient for
bursty traffic.
2. What is Packet Switching?
Packet switching divides data into small packets and transmits each independently across the network. It
improves bandwidth utilization and reliability, used in IP networks.
3. What is TCP 3-Way Handshake?
TCP establishes a connection using a 3-step process:
1. SYN → Client requests connection
2. SYN-ACK → Server acknowledges
3. ACK → Client confirms
This ensures a reliable, synchronized connection before data transfer.
4. Define Subnetting.
Subnetting is the process of dividing a large network into smaller subnetworks (subnets) to improve
performance, enhance security, and efficiently use IP addresses.
5. What is QoS (Quality of Service)?
QoS refers to techniques used to manage network resources by assigning priority to specific types of traffic
(e.g., VoIP, video). It ensures low delay, low jitter, and high reliability.
6. Explain the role of OSI Layer 3 (Network Layer).
The network layer handles routing, logical addressing (IP), and packet forwarding between different
networks. Devices used: routers and layer-3 switches.
7. What is ARP and why is it used?
ARP (Address Resolution Protocol) maps an IP address to its corresponding MAC address within a local
network. It is required for communication within LAN using IPv4.
8. Define Encapsulation in networking.
Encapsulation is the process of adding protocol-specific headers and trailers to data as it passes down the OSI
layers. It ensures proper routing, addressing, and delivery.
9. What is NAT (Network Address Translation)?
NAT translates private IP addresses into a public IP address for internet communication. It conserves public
IPv4 addresses and provides basic security by hiding internal devices.
10. What is a VLAN?
A VLAN (Virtual Local Area Network) logically segments a network into separate broadcast domains even if the
devices are not physically separated. It improves security and reduces network congestion.
11. What is DNS Caching?
DNS caching stores previously resolved domain-to-IP mappings locally (in routers or OS). This reduces DNS
lookup time and speeds up network access.
12. What is the difference between Unicast, Multicast, and Broadcast?
• Unicast: One-to-one communication
• Multicast: One-to-many selected receivers
• Broadcast: One-to-all devices in the network
Used for optimizing data traffic based on need.
13. What is MTU (Maximum Transmission Unit)?
MTU is the largest size of a data packet that can be transmitted in a network without fragmentation. Example:
Ethernet MTU = 1500 bytes.
14. What is a Congestion Control mechanism in TCP?
TCP uses algorithms like Slow Start, Congestion Avoidance, Fast Retransmit, and Fast Recovery to prevent
network overload and ensure efficient packet delivery.
15. What is the purpose of a Proxy Server?
A proxy server acts as an intermediary between users and the internet. It provides caching, security, content
filtering, and hides internal IP addresses.
16. Define Jitter.
Jitter is the variation in packet arrival time. High jitter negatively affects real-time applications like VoIP and
video conferencing.
17. What is MPLS?
MPLS (Multiprotocol Label Switching) is a high-performance routing technique that directs data using labels
instead of long IP lookups, improving speed and QoS.
18. What is DHCP Lease Time?
It is the duration for which a device is assigned an IP address by the DHCP server. After expiry, the device must
renew the lease.
19. What is a Routing Table?
A routing table contains information about network paths and next-hop addresses. Routers use it to determine
the best path for forwarding data.
20. What is the Spanning Tree Protocol (STP)?
STP prevents loops in a switched Ethernet network by creating a loop-free logical topology. It disables
redundant links and activates them only if needed.
_____________________________________________________________________________
Part – B
1. Explain the OSI Model with functions of all layers.
Answer:
The OSI (Open Systems Interconnection) model is a conceptual framework that standardizes communication
functions into seven layers.
Functions:
1. Physical Layer:
o Transmits raw bits over physical media.
o Deals with cables, voltage levels, connectors, modulation.
2. Data Link Layer:
o Ensures error-free transmission between adjacent nodes.
o Performs MAC addressing, framing, and flow control.
o Example protocols: Ethernet, PPP.
3. Network Layer:
o Handles routing of packets between networks.
o Uses logical addressing (IP) and routing algorithms.
4. Transport Layer:
o Ensures reliable or unreliable end-to-end delivery.
o TCP provides reliability (ACK, flow control), UDP provides fast delivery.
5. Session Layer:
o Manages sessions between applications.
o Handles session creation, maintenance, and termination.
6. Presentation Layer:
o Translates data formats (encryption, compression, encoding).
o Ensures interoperability between systems.
7. Application Layer:
o Provides services directly to applications (HTTP, FTP, SMTP).
Thus, the OSI model helps standardize networking and ensures vendor interoperability.
_____________________________________________________________________________
Part – C
1. What is a Wireless LAN (WLAN)?
A Wireless LAN is a local area network that uses radio waves instead of cables to connect devices. It allows
users to access network resources through wireless access points (APs) within a limited coverage area,
typically using IEEE 802.11 standards.
2. Mention any two advantages of Wireless LAN.
• Provides mobility and flexibility to users.
• Easy installation, no need for cabling, and supports rapid deployment.
3. What is IEEE 802.11?
IEEE 802.11 is a set of wireless networking standards that define specifications for WLAN communication such
as radio frequencies, data rates, authentication, and MAC/PHY layer operations.
4. Distinguish between 802.11a and 802.11b.
• 802.11a: Uses 5 GHz band, supports up to 54 Mbps, less interference.
• 802.11b: Uses 2.4 GHz band, supports up to 11 Mbps, higher range but more interference.
5. What is an Access Point (AP) in WLAN?
An Access Point is a base station that connects wireless devices to wired networks. It manages wireless
communication, coordinates client devices, and handles authentication and association.
6. What is Infrastructure Mode in WLAN?
Infrastructure mode uses one or more access points (APs) to allow wireless devices to communicate with each
other and the wired network. It is the most common WLAN mode.
7. What is an Ad-hoc Wireless Network?
An Ad-hoc network is a decentralized WLAN where devices connect directly without an access point. Each
device acts as both a host and a router.
8. What is WAN Architecture?
WAN architecture defines how devices are connected across large geographical areas using technologies such
as leased lines, MPLS, VPNs, and satellite links. WAN provides enterprise-level connectivity between distant
locations.
9. What are WAN Services?
WAN services include leased lines, Frame Relay, MPLS, ATM, ISDN, and broadband services that allow long-
distance communication between branches of an organization.
10. What is the Physical Layer in IEEE 802.11?
The 802.11 Physical Layer (PHY) defines the methods for transmitting data over the wireless medium, including
modulation techniques, frequency bands, channel width, and data rates.
11. What is the MAC Sublayer in Wireless LAN?
The MAC (Medium Access Control) sublayer controls how wireless devices access the shared medium. It uses
mechanisms like CSMA/CA, RTS/CTS, acknowledgment frames, and frame control to avoid collisions.
12. What is CSMA/CA?
CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) is the MAC protocol used in WLANs.
Devices check whether the channel is free before transmitting and avoid collisions using ACKs, RTS/CTS, and
backoff algorithms.
13. What is the MAC Management Sublayer?
The MAC Management sublayer handles control and management operations such as:
• Beacon generation
• Authentication
• Association and re-association
• Power management
• Roaming
It ensures that wireless clients can join and stay connected to the network.
14. What are Beacon Frames?
Beacon frames are broadcast messages sent by Access Points at regular intervals to announce network
information like SSID, timestamp, and supported data rates.
15. What is Association in WLAN?
Association is the process where a wireless client (station) connects to an access point. It involves
authentication, capability exchange, and allocation of resources.
16. What is RTS/CTS in 802.11?
RTS (Request to Send) and CTS (Clear to Send) are control frames used to reduce collisions in WLANs,
especially in hidden node problems. RTS is sent by sender, CTS is replied by receiver.
17. What is 802.11g standard?
802.11g operates at 2.4 GHz and supports data rates up to 54 Mbps. It is backward compatible with 802.11b.
18. What is 802.11n?
802.11n uses MIMO (Multiple Input Multiple Output) technology, supports both 2.4 GHz and 5 GHz, and
delivers speeds up to 600 Mbps. It provides higher throughput and better range.
19. What is 802.11ac?
802.11ac operates in the 5 GHz band and supports very high data rates up to several Gbps using wider
channels (80/160 MHz) and multi-user MIMO (MU-MIMO).
20. What is 802.11ax (Wi-Fi 6)?
802.11ax improves efficiency and performance in dense environments using OFDMA, uplink/downlink MU-
MIMO, and target wake time (TWT). It supports data rates above 10 Gbps.
21. What is the Hidden Node Problem in WLAN?
It occurs when two stations cannot detect each other's signals but both can communicate with an AP. This
causes collisions. RTS/CTS mechanism helps solve this issue.
22. Define BSS and ESS in IEEE 802.11.
• BSS (Basic Service Set): A group of stations using the same AP.
• ESS (Extended Service Set): Multiple BSSs connected through a distribution system for wider coverage.
23. What is Roaming in WLAN?
Roaming is the process where a wireless device moves from one AP to another within the same ESS while
maintaining uninterrupted connectivity and session.
24. What is SSID?
SSID (Service Set Identifier) is the network name used to identify a wireless LAN. It is broadcast in beacon
frames by Access Points.
_____________________________________________________________________________
Part – D
1. Explain the architecture and components of a Wireless LAN (WLAN).
Answer:
A Wireless LAN is a network that uses radio waves to provide mobility and wireless connectivity. Its
architecture consists of the following components:
1. Stations (STAs):
Devices with wireless network interfaces such as laptops, smartphones, and IoT devices.
2. Access Point (AP):
A central device that provides wireless connectivity to clients and connects the WLAN to a wired LAN. It
performs authentication, association, and beacon generation.
3. Basic Service Set (BSS):
The fundamental building block of WLAN. It consists of stations connected through a single AP.
4. Extended Service Set (ESS):
Formed by multiple BSSs connected via a distribution system (DS). It supports roaming across APs.
5. Distribution System (DS):
Connects multiple APs using wired or wireless backbones, enabling network-wide communication.
6. Wireless Medium:
Uses radio frequencies (2.4 GHz or 5 GHz) for data transmission.
WLAN architecture provides flexibility, easier installation, mobility, and scalability.
2. Describe the IEEE 802.11 architecture and the key functions it performs.
Answer:
IEEE 802.11 defines the standards for wireless LANs at the MAC and PHY layers.
Architecture Components:
1. Stations (STAs): Devices with wireless capabilities.
2. Access Points (APs): Connect the wireless medium to the wired infrastructure.
3. Basic Service Set (BSS): Group of stations controlled by an AP.
4. Independent BSS (IBSS): Ad-hoc network without an AP.
5. Extended Service Set (ESS): Multiple BSSs interconnected.
6. Distribution System (DS): Links APs to form ESS.
Key Functions:
• Authentication & association of clients
• Medium access control using CSMA/CA
• Fragmentation & reassembly of frames
• Power management to save battery in mobile devices
• Roaming support within ESS
• Security through WEP, WPA, WPA2/WPA3
Thus, IEEE 802.11 defines the foundational framework for all Wi-Fi communication.
4. Explain the Physical Layer of IEEE 802.11. What are its functions?
Answer:
The Physical Layer (PHY) of IEEE 802.11 specifies how data is transmitted over the wireless medium.
Key Functions:
1. Modulation and Encoding:
Uses techniques such as DSSS, OFDM, QAM to modulate bits into radio waves.
2. Frequency Selection:
Operates in 2.4 GHz and 5 GHz ISM bands (later versions include 6 GHz).
3. Transmission & Reception:
Defines how waveforms are generated and detected.
4. Channelization:
Divides the frequency spectrum into multiple channels; 802.11n/ac use wide channels (40/80/160
MHz).
5. Data Rate Selection:
Supports multiple data rates (e.g., 1–600 Mbps for 802.11n, multiple Gbps for 802.11ac).
6. Error Detection & Correction:
Uses Forward Error Correction (FEC) such as convolutional coding and LDPC.
The PHY layer ensures reliable wireless communication by managing radio frequencies, modulation, and signal
quality.
5. Describe the MAC Sublayer in IEEE 802.11 and its operations.
Answer:
The MAC (Medium Access Control) sublayer controls access to the wireless medium and ensures orderly
communication.
Core Operations:
1. CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance):
Devices sense the medium and avoid collisions using backoff algorithms.
2. RTS/CTS Mechanism:
Used to reduce the hidden node problem. Sender transmits RTS; receiver responds with CTS.
3. Frame Types:
o Data frames
o Control frames (RTS, CTS, ACK)
o Management frames (Beacon, Probe)
4. Acknowledgment Mechanism:
Each unicast frame must be acknowledged to ensure reliability.
5. Fragmentation & Reassembly:
MAC layer breaks large frames to reduce error impact.
6. NAV (Network Allocation Vector):
Virtual sensing mechanism to avoid collisions.
The MAC layer enhances reliability in the noisy wireless medium and ensures effective utilization of
bandwidth.
_____________________________________________________________________________
Part – E
1. What is Subnetting? Why is it used?
Answer:
Subnetting is the process of dividing a large IP network into smaller logical networks called subnets.
Uses:
• Efficient utilization of IP addresses
• Improved network performance and reduced congestion
• Enhanced security by isolating network segments
2. What is Multicasting in IPv4?
Answer:
Multicasting is a communication method where data is sent from one sender to multiple specific receivers
simultaneously using a multicast group address ([Link]–[Link]).
It optimizes bandwidth by sending a single stream of data to many clients.
3. What is IGMP and why is it needed?
Answer:
IGMP (Internet Group Management Protocol) is used by hosts and routers to manage multicast group
membership.
Needed for:
• Informing routers about joining/leaving multicast groups
• Efficient multicast traffic distribution
4. What is PIM (Protocol Independent Multicast)?
Answer:
PIM is a multicast routing protocol used to route multicast packets across different networks.
It is independent of the unicast routing protocol, meaning it works with any routing table.
Used in large-scale multicast environments like video streaming.
5. Explain DVMRP.
Answer:
DVMRP (Distance Vector Multicast Routing Protocol) uses a distance-vector algorithm to forward multicast
packets. It employs a flood-and-prune method:
• Floods packets to all routers
• Prunes routers that do not need multicast traffic
Useful in early multicast implementations.
6. What is TCP Flow Control?
Answer:
TCP flow control ensures the sender does not overwhelm the receiver.
It uses the receiver window (RWND) field to control how much data the sender can transmit before receiving
an acknowledgment.
7. What is TCP Congestion Avoidance?
Answer:
TCP congestion avoidance prevents network congestion by controlling the sending rate.
Mechanisms include:
• Slow Start
• Congestion Avoidance (AIMD)
• Fast Retransmit & Fast Recovery
8. What is Protocol Spoofing?
Answer:
Protocol spoofing is a method used in high-latency networks (e.g., satellite links) where an intermediate device
fakes TCP acknowledgments to improve performance.
Reduces delays and improves throughput.
9. What is IPv6? Mention its advantages.
Answer:
IPv6 is the next-generation IP protocol with 128-bit addresses, replacing IPv4.
Advantages:
• Huge address space
• Simplified header
• Built-in security (IPsec mandatory)
• Better support for mobility and multicast
10. What is Dual-Stack in IPv6 Deployment?
Answer:
Dual-stack allows devices to run both IPv4 and IPv6 simultaneously.
This ensures a smooth transition from IPv4 to IPv6 without needing to replace existing infrastructure.
_____________________________________________________________________________
Part – F
1. Explain Subnetting in IPv4. Why is it required? Give an example.
Answer:
Subnetting is the technique of dividing a large IP network into smaller logical networks called subnets. It
modifies the subnet mask to borrow bits from the host portion of the IP address.
Need for Subnetting:
1. Efficient IP Address Utilization: Avoids wastage of IP addresses.
2. Improved Network Performance: Decreases broadcast domain size.
3. Better Security: Each department or group can be isolated.
4. Simplifies Network Management: Easier troubleshooting and control.
Example:
IP: [Link]/24, subnet into 4 subnets
Borrow 2 bits → New mask = /26 → Subnets:
• [Link] – 63
• [Link] – 127
• [Link] – 191
• [Link] – 255
Each subnet has 64 addresses.
Thus, subnetting increases flexibility and efficiency of IPv4 networks.