Computer ยท Chapter 05

๐ŸŒ 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).

๐Ÿ”Œ Network types and topologies

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.

๐Ÿ“ง Internet terms โ€” SSC/CCC exam

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

Animation
INTERNET PROTOCOLS โ€” CLICK EACH TO LEARN ๐ŸŒ HTTP/HTTPS Web pages Port 80 / 443 ๐Ÿ“ FTP File Transfer Port 20/21 ๐Ÿ“ค SMTP Send emails Port 25/587 ๐Ÿ“ฅ POP3 / IMAP Receive emails Port 110 / 143 NETWORK REQUEST JOURNEY ๐Ÿ’ป Your Computer DNS query ๐Ÿ“ก Router/ISP IP packets โ˜๏ธ INTERNET TCP/IP ๐Ÿ–ฅ๏ธ Web Server ๐Ÿ“„ Web Page (HTML) OSI MODEL (7 LAYERS) 7. Application โ€” HTTP, FTP, SMTP (User-facing protocols) 6. Presentation โ€” SSL/TLS encryption, data formatting 5. Session โ€” manages connections between systems 4. Transport โ€” TCP/UDP โ€” ports, error checking 3. Network โ€” IP addressing, routing (routers) 2. Data Link โ€” MAC addresses, switches, frames 1. Physical โ€” cables, Wi-Fi signals, bits over medium CLICK A PROTOCOL ABOVE FOR DETAILS

Every website visit involves DNS lookup, TCP handshake, HTTP request, server response โ€” all in milliseconds.

๐Ÿ’ป

Network Concepts Explorer

Interactive
IPv432-bit โ€” 192.168.1.1 โ€” 4 billion addresses
IPv6128-bit โ€” 2001:db8::1 โ€” 340 undecillion addresses
Localhost127.0.0.1 โ€” your own computer
Private IP ranges192.168.x.x, 10.x.x.x, 172.16-31.x.x
MAC Address48-bit hardware ID โ€” AA:BB:CC:DD:EE:FF
Practice (CCC/O-Level): What is the difference between TCP and UDP? When is each used?
TCP (Transmission Control Protocol):
โ€ข 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.
Practice (SSC): What is the difference between a Hub, Switch, and Router?
Hub:
โ€ข 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.
โ†
Previous
MS Office