Multiplexing is a technique in computer networks that allows multiple signals to share a single communication channel.
Instead of using separate communication channels for every device, multiplexing combines multiple signals and transmits them through one shared medium.
At the receiving end, a technique called Demultiplexing separates the combined signals and delivers them to their respective destinations.
Multiplexing involves two main devices:
MUX (Multiplexer): Combines multiple input signals into one combined signal.
DEMUX (Demultiplexer): Separates the combined signal into individual signals.
Working:
Multiple sources generate data.
MUX combines the data.
Combined data travels through a shared communication channel.
DEMUX separates the data.
Data reaches the correct destination.
Types of Multiplexing
FDM (Frequency Division Multiplexing)
The available bandwidth is divided into different frequency bands.
Each signal gets a separate frequency range.
TDM (Time Division Multiplexing)
Each signal gets a specific time slot.
Each user gets access to the channel during their assigned time slot.
WDM (Wavelength Division Multiplexing)
Multiple signals are transmitted using different wavelengths (colors) of light.
What is framing? Explain its methods (character count, byte stuffing, bit stuffing).
What is a MAC address? How is it different from an IP address?
What is error detection vs error correction?
Explain parity check, checksum, CRC, and Hamming code.
What are flow control mechanisms? Explain stop-and-wait, Go-Back-N, and Selective Repeat.
What is sliding window protocol?
What is the efficiency of stop-and-wait and sliding window?
What are multiple access protocols? (ALOHA, Slotted ALOHA, CSMA, CSMA/CD, CSMA/CA)
What is a switch? How does it learn MAC addresses?
Hub vs switch vs bridge?
What is a VLAN? Why is it used? What is trunking (802.1Q)?
4. Network Layer
What are the functions of the network layer?
What is IP addressing? IPv4 header format?
Explain IP address classes (A to E) and private vs public addresses.
What is subnetting? Subnet mask? CIDR notation?
How do you calculate the number of hosts and subnets? (Practical problems)
What is IPv6? Why is it needed? Compare IPv4 vs IPv6.
Explain the IPv6 address types and header format.
What is fragmentation? Which fields are used (MF, offset, ID)?
Explain routing vs forwarding.
Static vs dynamic routing?
Distance vector vs link state routing?
5. Transport Layer
What are the functions of the transport layer?
What is a port number? Well-known ports (HTTP, HTTPS, FTP, SSH, DNS, SMTP, etc.)?
What is a socket?
TCP vs UDP: differences and use cases.
Explain the TCP header format.
Explain the TCP 3-way handshake. Why 3 and not 2?
Explain the TCP connection termination (4-way handshake). What is TIME_WAIT?
What is a SYN flood attack?
How does TCP ensure reliability? (sequence numbers, ACK, retransmission)
Explain TCP flow control and the sliding window.
What is the receiver window (rwnd) vs congestion window (cwnd)?
Explain TCP congestion control: slow start, congestion avoidance, fast retransmit, fast recovery.
6. Application Layer
What is HTTP? Explain request and response structure.
HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS)? Idempotent methods?
GET vs POST?
HTTP status codes (1xx to 5xx)?
What are cookies and sessions?
What is HTTPS? How does it work?
What is DNS? How does DNS resolution work?
Iterative vs recursive DNS queries?
DNS record types (A, AAAA, CNAME, MX, NS, PTR, TXT, SOA)?
What is DNS caching and TTL? What is DNS poisoning?
What happens when you type a URL in the browser and press Enter? (Very common question)
What are SMTP, POP3, and IMAP? Differences?
What is FTP? Active vs passive mode? FTP vs SFTP?
What are Telnet and SSH?
What is DHCP? What is SNMP? What is NTP?
What is a proxy server? Forward vs reverse proxy?
What is a CDN?
What is a load balancer? Types (L4 vs L7)?
What are REST, WebSocket, and long polling?
7. Network Security
What are the CIA triad and common network threats?
What is a firewall? Types (packet filter, stateful, application, NGFW)?
What is a VPN? Types and protocols (IPSec, SSL VPN, OpenVPN, WireGuard)?
What is SSL/TLS? Explain the TLS handshake.
Symmetric vs asymmetric encryption?
What is a digital signature, a certificate, and a CA?
What are hashing and MAC? What is HMAC?
What are DoS and DDoS attacks? How do you mitigate them?
What are man-in-the-middle, IP spoofing, session hijacking, sniffing, phishing?
10. Scenario and Troubleshooting Questions
You can ping an IP but not a domain name. What's wrong?
A user can't access the internet but can access the LAN. How do you troubleshoot?
Two devices on the same switch can't communicate. What do you check?
Why might a website load slowly?
How would you design a network for an office of 500 users?
How do you detect and resolve an IP conflict?
What happens if two DHCP servers are on the same network?
What happens when a switch receives a frame with an unknown destination MAC?
How does a packet travel from your laptop to a server across the internet, hop by hop?
How would you secure a small office network?
What is the difference between a public and a private IP in this scenario?
How would you troubleshoot high latency or packet loss?
Most Frequently Asked Questions
What happens when you type a URL in the browser?
Subnetting and IP addressing
How DNS works
Hub vs switch vs router
TCP congestion control
Firewall, VPN, and common attacks