๐ Internet & Networking
Protocols, IP, DNS, OSI model and network types.
๐ Connecting the World
The Internet is a global network of interconnected computers. The World Wide Web (WWW) is a service that runs on the Internet โ invented by Tim Berners-Lee in 1989 at CERN.
Key protocols:
โข HTTP/HTTPS โ HyperText Transfer Protocol. Used for web pages. HTTPS = secure (SSL/TLS encrypted).
โข FTP โ File Transfer Protocol. Transfer files between computers.
โข SMTP โ Simple Mail Transfer Protocol. Send emails.
โข POP3/IMAP โ Receive emails. POP3 downloads and deletes from server. IMAP syncs with server.
โข TCP/IP โ Transmission Control Protocol/Internet Protocol. Foundation of the Internet.
โข DNS โ Domain Name System. Converts domain names (google.com) to IP addresses.
IP Address โ unique address of each device on network. IPv4: 32-bit (e.g., 192.168.1.1). IPv6: 128-bit (e.g., 2001:0db8::1). MAC Address โ hardware address of network card (48-bit, unique).
LAN (Local Area Network) โ within a building/campus. Fast. Low cost. Office Wi-Fi, school lab.
MAN (Metropolitan Area Network) โ city-wide. Cable TV networks.
WAN (Wide Area Network) โ across countries. The Internet is the largest WAN.
PAN (Personal Area Network) โ Bluetooth devices around a person.
Topologies: Bus (single cable), Star (hub at center, most common), Ring (circle), Mesh (every device connected to every other), Tree (hierarchical), Hybrid.
URL (Uniform Resource Locator) โ web address. https://www.example.com/page
Browser โ Chrome, Firefox, Safari, Edge. Renders web pages.
ISP (Internet Service Provider) โ Jio, Airtel, BSNL, ACT.
Bandwidth โ data transfer rate (Mbps, Gbps).
Modem โ modulates/demodulates analog signals for digital data.
Router โ routes data packets between networks.
Cookies โ small files stored by browser to remember your preferences.
Cache โ stored copies of web pages for faster loading.
How the Internet Works
AnimationEvery website visit involves DNS lookup, TCP handshake, HTTP request, server response โ all in milliseconds.
Network Concepts Explorer
Interactiveโข Connection-oriented โ establishes connection before data transfer (3-way handshake: SYN, SYN-ACK, ACK)
โข Reliable โ guarantees delivery, maintains order, retransmits lost packets
โข Slower due to overhead
โข Used for: HTTP/HTTPS (web), Email (SMTP, IMAP), FTP, SSH
UDP (User Datagram Protocol):
โข Connectionless โ sends data without establishing connection first
โข Unreliable โ no guarantee of delivery, no order maintenance
โข Much faster โ low overhead
โข Used for: Video streaming (YouTube), Online gaming, VoIP (WhatsApp calls), DNS queries, Live TV
Analogy:
TCP = Registered post โ confirmed delivery, acknowledgment
UDP = Regular post โ fast, no delivery confirmation
Why use UDP for video streaming? If a few frames are lost, it is better to skip them and continue than to wait and retransmit (that would cause stuttering). Speed and continuity matters more than perfect delivery.
Port numbers: HTTP uses TCP port 80, DNS uses UDP port 53.
โข Operates at Physical Layer (Layer 1)
โข Broadcasts data to ALL connected devices
โข Dumb device โ no intelligence
โข Security risk โ any connected device can see all traffic
โข Rarely used today โ replaced by switches
Switch:
โข Operates at Data Link Layer (Layer 2)
โข Sends data only to the specific destination device (using MAC address table)
โข Smart โ learns which device is on which port
โข Efficient โ reduces unnecessary traffic
โข Used in LANs โ connects computers in an office
Router:
โข Operates at Network Layer (Layer 3)
โข Connects different networks โ routes data between them
โข Uses IP addresses to make routing decisions
โข Your home Wi-Fi device is a router (+ switch + modem combined)
โข Routes your home network to the internet via ISP
Summary: Hub = flood everyone, Switch = smart delivery in LAN, Router = connects different networks.