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 2
CN

Top 50 - Part 2

Continue practicing important Computer Networks questions covering commonly tested placement concepts.

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
┌───────────────────────────┐
│                           │
│  Application              │
│      │                    │
│      ▼                    │
│  127.0.0.1 / ::1          │
│      │                    │
│      ▼                    │
│  TCP/IP Network Stack     │
│      │                    │
│      └──────────────┐     │
│                     │     │
│              back to app  │
│                           │
└───────────────────────────┘

No cable
No router
No physical NIC required

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           │
├─────────┴─────────┼─────────────────────┤
│       Total Length                      │
├───────────────────┬─────────────────────┤
│ Identification    │ Flags / Frag Offset │
├─────────┬─────────┴─────────────────────┤
│   TTL   │ Protocol │  Header Checksum   │
├─────────┴──────────┴────────────────────┤
│              Source IP                  │
├─────────────────────────────────────────┤
│            Destination IP               │
└─────────────────────────────────────────┘

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.


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 starts:
TTL = 4

        ┌───────┐
        │Router1│  TTL 4 → 3
        └───┬───┘


        ┌───────┐
        │Router2│  TTL 3 → 2
        └───┬───┘


        ┌───────┐
        │Router3│  TTL 2 → 1
        └───┬───┘


        ┌───────┐
        │Router4│  TTL 1 → 0
        └───┬───┘


          DROP
  • Normal path: plenty of TTL left, packet arrives fine.
  • Routing loop: the packet bounces between routers, but each hop reduces TTL.
        ┌────────┐
        │Router A│
        └───┬────┘


        ┌────────┐
        │Router B│
        └───┬────┘


        ┌────────┐
        │Router C│
        └───┬────┘

            └──────────────→ Router A

                         LOOP!

TTL keeps decreasing:
10 → 9 → 8 → 7 → ... → 1 → 0 → DROP

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

Without TTL, a routing loop could circulate packets indefinitely and saturate the network.


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.

IP PACKET
┌──────────────────────────────┐
│ IPv4 Header                  │ ← CHECKSUM PROTECTS THIS
├──────────────────────────────┤
│ Payload / Data               │ ← NOT protected by IP header checksum
└──────────────────────────────┘

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)
Layer 2          Layer 3           Layer 4
Ethernet         IP                TCP/UDP
   │              │                   │
   ▼              ▼                   ▼
  FCS       IP Header Checksum    TCP/UDP Checksum
   │              │                   │
Frame errors   IP header errors    Data/segment errors

Each layer protects its own territory.


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.

                    BACKBONE

          ┌────────────┼────────────┐
          │            │            │
          ▼            ▼            ▼
     [Floor 1]     [Floor 2]    [Floor 3]
       Switch         Switch       Switch
          │            │            │
       Users         Users        Users



                 [Core Router]

              ┌────────┴────────┐
              ▼                 ▼
        [Data Center]      [Remote Site]

Characteristics:

  • High speed (fiber, 10/40/100 Gbps)
  • Carries aggregated traffic between segments
  • Forms the core of a hierarchical network
Users → Access Switches → Backbone/Core → Other Networks

If the backbone fails, network segments can become isolated, so enterprise backbones are usually designed with redundancy.


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

Acknowledgment Number.

TCP contains reliability and ordering information:

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

UDP’s header is minimal:

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

Only 4 fields
8 bytes total

TCP needs the Acknowledgment Number to track received data.

UDP is connectionless and best-effort, so it has no acknowledgment 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 ESTABLISHED  │

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

So it waits for a timeout and retransmits the SYN.

This can repeat with 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

Proxy hides the CLIENT

It acts on behalf of internal clients making outbound requests.

Uses include:

  • Hiding client identities
  • Web filtering
  • Caching
  • Access control

Reverse Proxy:

             Internet


        ┌────────────────┐
        │ Reverse Proxy  │
        └───────┬────────┘

          ┌─────┴─────┐
          ▼           ▼
      [Server A]   [Server B]

Reverse proxy hides the SERVERS

It stands in front of backend servers and manages inbound requests.

Uses include:

  • Load balancing
  • TLS termination
  • Caching
  • Protecting backend servers
Forward Proxy → hides CLIENTS
Reverse Proxy → hides SERVERS

9. How does Anycast routing differ from Multicast routing?

  • Multicastone-to-many. One sender delivers traffic to a group of subscribed hosts.
  • Anycastone-to-closest. Multiple servers share the same IP address, and routing sends traffic to one best/nearest server.
MULTICAST

                 ┌──→ Receiver A

Sender ──────────┼──→ Receiver B

                 └──→ Receiver C

             ONE → MANY
ANYCAST

                    ┌──→ Server A

Client ─────────────┼──→ Server B  ← selected

                    └──→ Server C

             ONE → ONE BEST SERVER

Multicast fans the same traffic out to multiple receivers.

Anycast chooses one server from several servers advertising the same address.


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

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

Typical login:

ftp> open files.example.com

Name: anonymous
Password: you@example.com
             Internet User


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


              anonymous
               login

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

It is commonly configured with limited permissions, often read-only, to reduce security risks.


11. What is protocol Pipelining?

Pipelining lets a client send multiple requests back-to-back 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 ────────────│

The advantage is fewer waiting periods and better use of high-latency connections.

HTTP/2 improved on this concept with multiplexing, allowing multiple concurrent streams over one connection.


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 of light represents a different channel.

                 WDM


        ┌──────────────────────┐
        │      ONE FIBER       │
        ├──────────────────────┤
        │ λ1 = Red             │
        │ λ2 = Orange          │
        │ λ3 = Green           │
        │ λ4 = Blue            │
        └──────────────────────┘


          Multiple channels
          on ONE fiber

At the receiving end:

Red ───────┐
Orange ────┤
Green ─────┼──→ [MUX/DEMUX] → Separate channels
Blue ──────┘
  • FDM — frequency bands
  • TDM — time slots
  • WDM — optical wavelengths

WDM allows a single fiber to carry many independent channels simultaneously.


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

OFDM packs subcarriers orthogonally, allowing them to overlap without interfering with each other.

FDM

Frequency →
┌────┐     ┌────┐     ┌────┐
│CH 1│     │CH 2│     │CH 3│
└────┘     └────┘     └────┘
    ↑          ↑          ↑
  guard      guard      guard
  band       band       band

Guard bands waste some available spectrum.

With OFDM:

OFDM

Frequency →
┌────┬────┬────┬────┬────┬────┐
│ C1 │ C2 │ C3 │ C4 │ C5 │ C6 │
└────┴────┴────┴────┴────┴────┘
     ↑    ↑    ↑    ↑    ↑
   overlapping subcarriers
   but mathematically orthogonal

Result:

FDM  → separate channels + guard bands
OFDM → tightly packed orthogonal channels

                Better spectrum use

This makes OFDM highly efficient and is why it is widely used in technologies such as Wi-Fi and modern 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 self-healing diagnostic mechanism used to identify failures in a ring network.

Suppose the ring normally looks like:

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

If the link between B and C fails:

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

B can send a beacon frame indicating that it has lost communication.

B

│  "I cannot reach C"

└──────→ Beacon frame

The network uses this information to locate the failed segment and, depending on the technology, rewrap/reconfigure the ring around the failure.

Normal:

A → B → C → D → A


After failure:

A → B
↑       ↓
D ← C

Traffic is rerouted around the fault.

The goal is to detect faults and maintain connectivity despite a broken link or failed node.


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 GHz5 GHz
SpeedLowerFaster
ChannelsFewerMany more
CongestionHigherLower
RangeLongerShorter
Wall penetrationBetterWorse
2.4 GHz

Router ─────────────────────────────→ Device
          LONGER RANGE
          Better through walls


5 GHz

Router ───────────────→ Device
          SHORTER RANGE
          Faster nearby

A simplified comparison:

                 2.4 GHz              5 GHz
                    │                   │
                    ▼                   ▼
               Longer range        Shorter range
               More interference   Less interference
               Fewer channels      More channels
               Lower speed         Higher speed
               Better walls        Worse walls

Why: higher frequency generally provides more available bandwidth and more channels, but it also attenuates more quickly and is more easily weakened by obstacles.

Need maximum range?

        └──→ 2.4 GHz

Need higher speed nearby?

        └──→ 5 GHz

Rule of thumb: 5 GHz for speed at close range; 2.4 GHz for range and better wall penetration.

My Private Notes

Notes are auto-saved locally to this device.