WORKING OF INTERNET

HOW Does Internet Work


  1. The Need to Share Information

  2. The Problem of scale

  3. Connecting Multiple Networks

  4. Addressing: Finding the Right device

  5. Reliability and fairness



Term Description
Direct Link Basic connection between two computers
Switch Central device for LAN communication
Router Connects different networks
IP Address Unique identifier for each device
Packet Small unit of data for transmission
TCP/IP Main protocol for reliable communication

NETWORKING ESSENTIALS

  1. IP Address(Internet Protool)
  2. IPv6 (Internet Protocol version 6)
  3. MAC Address (Media Access Control)
  4. Port Numbers
Port Service
21 FTP (File Transfer Protocol)
22 SSH (Secure Shell)
25 SMTP (Email Sending)
53 DNS (Domain Name System)
80 HTTP (Web Traffic)
443 HTTPS (Secure Web Traffic)

Key Takeaways for Interview

DNS(DOMAIN NAME SYSTEM)

What is DNS?

DNS translates human-friendly domain names (e.g., google.com) into computer-friendly IP addresses (e.g., 142.250.72.206).
Without DNS, users would need to memorize numeric IPs to access websites.

STEP-BY-STEP DNS Resolution Process
  1. Local Cache Lookup
    Before querying the internet,your system checks:
    1. Browser Cache – Recently visited sites.
    2. OS Cache – Stored by your operating system.
    3. Router Cache – Some routers store DNS responses.
  2. Recursive DNS Reslover
  3. Hierarchical DNS Lookup
  4. Returning the Answer
    1. Authoritative Server → Recursive Resolver
    2. Resolver caches the result (based on TTL)
    3. Resolver → Operating System
    4. OS → Browser → Website loads
Term Description
DNS Translates domain names to IP addresses
Cache Stores previously resolved IPs for speed
Recursive Resolver Server that performs full DNS lookup
Root Server Top-level DNS server (13 logical ones globally)
TLD Server Manages top-level domains like .com, .org
Authoritative Server Final source of truth for a domain’s IP
TTL (Time-To-Live) Duration for which DNS result is cached

Flow Diagram:-



Flow Diagram