Menu

Earn Premium with Referrals

Invite your friends and earn Premium rewards through our referral program.

See how it works and start inviting friends.

Top 50 - Part 3
CN

Top 50 - Part 3

Practice advanced Computer Networks questions from the top 50 interview and placement question series.

1. What is the purpose of a host Loopback Address, and what are its standard values in IPv4 and IPv6?

The loopback address lets a device send traffic to itself — useful for testing network software without any physical interface.

  • IPv4: 127.0.0.1 (whole 127.0.0.0/8 range is reserved)
  • IPv6: ::1
            SAME COMPUTER
        ┌─────────────────────┐
        │                     │
App ───→│  Network Stack      │
        │       │             │
        │       ↓             │
        │   127.0.0.1         │
        │      / ::1           │
        │       │             │
        │       └──────→ App   │
        │                     │
        └─────────────────────┘

         Never leaves
         the machine

Use cases:

  • Testing a web server running locally (curl http://127.0.0.1).
  • Verifying the TCP/IP stack works without cables.

Think of it as the network saying “talk to myself.” It never leaves the machine, so no NIC, router, or cable is involved.


2. Which structural field is found inside a standard IPv4 Packet Header?

Time to Live (TTL).

The IPv4 header contains fields like: version, IHL, ToS, total length, identification, flags, fragment offset, TTL, protocol, header checksum, source IP, destination IP.

IPv4 Header
┌─────────┬─────────┬──────────────┬──────────┐
│ Version │   IHL   │     ToS      │  Length  │
├─────────┴─────────┴──────────────┴──────────┤
│ Identification │ Flags │ Fragment Offset   │
├────────────────┼───────┼───────────────────┤
│      TTL       │ Protocol │ Header Checksum│
├─────────────────────────────────────────────┤
│              Source IP Address              │
├─────────────────────────────────────────────┤
│           Destination IP Address            │
└─────────────────────────────────────────────┘

                        TTL

The distractors are all TCP segment (Layer 4) fields:

  • Sequence Number — TCP
  • Window Size — TCP
  • Urgent Pointer — TCP

TTL belongs to the Layer 3 IP header. It’s an 8-bit field counting down router hops.


3. What is the function of the 8-bit Time to Live (TTL) field in an IP header?

TTL limits a packet’s lifespan to prevent infinite routing loops.

Every router that forwards the packet decrements TTL by 1:

Packet
TTL=4


[Router 1] ──→ TTL=3


[Router 2] ──→ TTL=2


[Router 3] ──→ TTL=1


[Router 4] ──→ TTL=0


 DROP
  • Normal path: plenty of TTL left, packet arrives fine.
  • Routing loop: the packet bounces between routers forever — but each hop drops TTL by 1.
        ┌───────────────┐
        │               ▼
      [R1] ──────────→ [R2]
        ▲                 │
        │                 ▼
      [R4] ←────────── [R3]

        └── packet keeps looping
             until TTL = 0

When TTL reaches 0, the router drops the packet and may send an ICMP “TTL exceeded” message back.

Without TTL, a misconfigured route could loop packets indefinitely and saturate the network. It’s the network’s built-in self-destruct timer.


4. Which layer issue CANNOT be detected by a standard IP Header Checksum calculation?

The IP header checksum only validates the Layer 3 header fields — not the payload and not Layer 2.

Ethernet Frame
┌───────────┬──────────────────────┬─────────────┐
│ L2 Header │   IPv4 Packet        │ L2 FCS      │
│           │ ┌──────────────────┐ │             │
│           │ │ IP Header ✓      │ │              │
│           │ │ Payload ✗        │ │              │
│           │ └──────────────────┘ │             │
└───────────┴──────────────────────┴─────────────┘

              IP checksum
              protects this

It CAN detect:

  • Corrupted source IP
  • Altered TTL
  • Bad protocol field

It CANNOT detect:

  • Corruption in the payload data — TCP/UDP checksum handles this.
  • Layer 2 physical/frame errors — Ethernet FCS handles these.

Each layer protects its own territory:

Layer 2 → Ethernet FCS → protects frame
Layer 3 → IP checksum  → protects IP header
Layer 4 → TCP/UDP      → protects transport data

5. What is the primary role of a Backbone Network?

A backbone is the high-capacity central pathway that interconnects different network segments — buildings, floors, or geographic regions.

       Floor 3
   [Switch]


       ├──────────────┐
       │              │
       ▼              ▼
   Floor 2       [BACKBONE]
   [Switch]      ═══════════════
       │              │
       ▼              │
   Floor 1            ├──── [Data Center]
   [Switch]           │
                      └──── [Remote Site]

Characteristics:

  • High speed — fiber, 10/40/100 Gbps, etc.
  • Carries aggregated traffic between segments.
  • Forms the core of a hierarchical network.
Local Networks


┌───────────────┐
│   BACKBONE    │  ← high-speed core
└───────────────┘

      ├──── Building A
      ├──── Building B
      ├──── Data Center
      └──── Remote Site

If the backbone fails, connected segments can become isolated, so backbone networks are normally designed with redundancy.


6. Which structural header field is unique to a TCP segment and completely absent from a UDP datagram?

Acknowledgment Number.

TCP carries reliability-related fields:

TCP Header
┌───────────────┬──────────────────┐
│ Source Port   │ Destination Port │
├───────────────┴──────────────────┤
│         Sequence Number          │
├──────────────────────────────────┤
│       Acknowledgment Number      │ ← TCP only
├──────────────────────────────────┤
│ Window │ Flags │ ...             │
└──────────────────────────────────┘

UDP’s header is minimal:

UDP Header
┌────────────────┬─────────────────┐
│  Source Port   │ Destination Port│
├────────────────┼─────────────────┤
│     Length     │    Checksum     │
└────────────────┴─────────────────┘

TCP needs an acknowledgment number because it tracks received data:

A ── data ─────────→ B
A ←── ACK 1001 ───── B

"Everything up to byte 1000 arrived."

UDP has no such reliability mechanism.


7. What occurs if a TCP SYN-ACK packet is lost in transit during the 3-Way Handshake connection process?

The client’s retransmission timer expires, and the client resends its original SYN.

Client                         Server
  │                              │
  │──────── SYN ────────────────→│
  │                              │
  │←──── SYN-ACK ─── X LOST      │
  │                              │
  │     [Timer expires]          │
  │                              │
  │──────── SYN ────────────────→│
  │                              │
  │←────── SYN-ACK ──────────────│
  │                              │
  │──────── ACK ────────────────→│
  │                              │
  │       CONNECTION OPEN        │

Because the client never received the SYN-ACK, it doesn’t know whether the server received the original SYN.

So it waits and retransmits:

SYN

wait

timeout

SYN again

wait

timeout

SYN again

Retransmissions use increasing backoff until the connection succeeds or the attempt eventually fails.


8. What is the primary functional difference between a Forward Proxy and a Reverse Proxy?

They sit on opposite sides of the traffic flow.

Forward Proxy:

Internal Client


[Forward Proxy]


  Internet


 Hides CLIENT

A forward proxy acts on behalf of clients making outbound requests.

Reverse Proxy:

   Internet


[Reverse Proxy]

      ├────────→ [Server A]

      └────────→ [Server B]


     Hides SERVERS

A reverse proxy stands in front of backend servers and handles inbound requests.

Forward ProxyReverse Proxy
RepresentsClientsServers
TrafficOutboundInbound
HidesClient identityServer identity
Common useWeb filteringLoad balancing

Easy memory trick:

Forward = Client → Internet
Reverse = Internet → Server

9. How does Anycast routing differ from Multicast routing?

Multicast = one-to-many

             ┌──→ Receiver A
Sender ──────┼──→ Receiver B
             └──→ Receiver C

One sender sends traffic to a group of subscribed receivers.

Anycast = one-to-closest

                    ┌── Server A
Client ──→ Network ├── Server B
                    └── Server C

                    nearest/best
                    server chosen

Multiple servers advertise the same IP address, and routing sends the client to the nearest or lowest-cost instance.

MulticastAnycast
PatternOne → manyOne → one
DestinationGroupOne best instance
ExampleLive videoDNS/CDN

Easy memory:

Multicast = "Send to MANY"
Anycast   = "Send to ANY ONE nearby"

10. What is the defining characteristic of an Anonymous FTP configuration?

Anonymous FTP lets anyone access the server without a pre-registered account.

FTP Client

    │ username: anonymous
    │ password: email

┌───────────────┐
│  FTP Server   │
└───────────────┘


 Public files

Typical login:

ftp> open files.example.com
Name: anonymous
Password: you@example.com

Why it exists: public distribution of files such as drivers, open-source software, and public documents.

It is commonly configured as read-only and restricted to a public directory.


11. What is protocol Pipelining?

Pipelining lets a client send multiple requests without waiting for each response.

Without pipelining:

Client                         Server
  │──── Request 1 ────────────→│
  │←─── Response 1 ────────────│
  │──── Request 2 ────────────→│
  │←─── Response 2 ────────────│
  │──── Request 3 ────────────→│
  │←─── Response 3 ────────────│

With pipelining:

Client                         Server
  │──── Request 1 ────────────→│
  │──── Request 2 ────────────→│
  │──── Request 3 ────────────→│
  │                            │
  │←─── Response 1 ────────────│
  │←─── Response 2 ────────────│
  │←─── Response 3 ────────────│

Instead of waiting after every request:

Serial:
REQ1 → WAIT → RESP1 → REQ2 → WAIT → RESP2

Pipelined:
REQ1 → REQ2 → REQ3 → WAIT → RESP1 → RESP2 → RESP3

The result is fewer waiting periods and better performance on high-latency connections.


12. Which multiplexing type relies on combining different colors of laser light down a single physical strand of fiber-optic cabling?

WDM — Wavelength Division Multiplexing.

Each wavelength represents a different color/channel of light.

             ┌── Red       λ1 ──┐
             ├── Orange    λ2 ──┤
Sources ─────┼── Green     λ3 ──┼──→ ONE FIBER
             └── Blue      λ4 ──┘


                         [Combined signal]


                            [Receiver]
                         separates λ1-λ4

Think:

WDM

├── λ1 = Channel 1
├── λ2 = Channel 2
├── λ3 = Channel 3
└── λ4 = Channel 4

Comparison:

FDM → different frequencies
TDM → different time slots
WDM → different light wavelengths/colors

A single fiber can therefore carry many independent channels simultaneously.


13. What advantage does Orthogonal Frequency Division Multiplexing (OFDM) have over standard Frequency Division Multiplexing (FDM)?

OFDM packs subcarriers very closely together using mathematical orthogonality, reducing or eliminating the need for guard bands.

FDM:

[ch1]  GAP  [ch2]  GAP  [ch3]  GAP  [ch4]
       ↑          ↑          ↑
    wasted frequency space


OFDM:

[ch1][ch2][ch3][ch4][ch5][ch6]
  ↑    ↑    ↑    ↑    ↑    ↑
 closely packed
 but mathematically orthogonal

The key idea:

FDM
Channel 1 ──────      ──────
             GAP
Channel 2       ──────      ──────

OFDM
Channel 1 ────────╲╱──────
Channel 2 ────────╱╲──────

            signals overlap
            but don't interfere

Result: better spectral efficiency — more data can fit into the same bandwidth.

OFDM is widely used in technologies such as Wi-Fi and cellular networks.


14. What is the primary function of the Beaconing process within historical local network loops (like Token Ring or FDDI)?

Beaconing is a fault-detection and recovery mechanism used in ring networks.

Normal Ring:

       ┌────→ B ────→ C ────→ D ────┐
       │                              │
       └──────────── A ←─────────────┘

Suppose the link between B and C fails:

       ┌────→ B    X    C ────→ D ──┐
       │         BREAK               │
       └──────────── A ←─────────────┘

B can send a beacon indicating that it has detected a problem.

B

└── Beacon:
    "I cannot communicate with C.
     There may be a fault here."

The ring can then perform recovery actions, such as wrapping traffic around the failed section.

Easy idea:

Beaconing

Detect failure

Identify fault location

Reconfigure/recover ring

Keep network operating

FDDI’s dual-ring architecture provided additional resilience against link failures.


15. When comparing wireless frequencies, what are the trade-offs of using the 5 GHz band instead of the 2.4 GHz band?

              2.4 GHz              5 GHz
                 │                   │
                 │                   │
          Longer range          Shorter range
          Better wall           More easily blocked
          penetration
                 │                   │
                 ▼                   ▼
             slower               faster
             more crowded         less crowded
2.4 GHz5 GHz
SpeedLowerHigher
ChannelsFewerMore
CongestionHigherLower
RangeLongerShorter
Wall penetrationBetterWorse

Why?

Higher frequency

       ├── More available bandwidth

       ├── More channels

       └── Higher potential speed
       
       BUT

Higher frequency

       ├── Greater attenuation

       └── Worse wall penetration

So:

5 GHz   → speed + less congestion + shorter range
2.4 GHz → range + better wall penetration + more congestion

Rule of thumb: use 5 GHz when you want higher speed and are relatively close to the access point; use 2.4 GHz when range and wall penetration matter more.

My Private Notes

Notes are auto-saved locally to this device.