The Worldwide Network
Protocols, Routing, Addressing & Cloud Connectivity
Central Doctrine
A computer becomes part of a larger information civilization only when it can communicate with other machines. This realm maps the invisible infrastructure of the modern world: how data is broken into packets, how IP addresses locate devices globally, how routers navigate the web of connections, and how standardized protocols allow billions of distinct systems to form one unified Internet.
The Internal Chambers
Ontology of Network Architecture
What is a Network?
- Connected devices, nodes, and links
- Data exchange and resource sharing
- Distributed communication and networked computing
- The purpose of networking beyond isolation
Network Components
- Clients, Servers, Hosts, and Nodes
- Switches, Routers, Modems, Access Points
- Firewalls, Gateways, Repeaters
- Network interfaces and adapters
Network Topology
- Physical vs. Logical topology
- Bus, Star, Ring, Mesh, Tree, Hybrid
- Point-to-point and Point-to-multipoint
- Advantages and structural limitations
Network Types
- PAN: Personal Area Network
- LAN: Local Area Network (WLAN for wireless)
- WAN: Wide Area Network
- Intranet, Extranet, and the Internet
Transmission Media
- Wired: Twisted-pair, Coaxial, Fiber-optic
- Wireless: Radio, Microwave, Infrared, Satellite
- Copper (electrical) vs. Fiber (light)
- Signal attenuation and interference
Signals & Data Trans.
- Analog (continuous) vs. Digital (discrete) signals
- Signal encoding, modulation, and demodulation
- Noise, distortion, and transmission quality
Bandwidth & Throughput
- Bandwidth: Theoretical maximum capacity.
- Throughput: Actual successful data rate.
- Latency: Delay/time for data to travel.
- Jitter, packet loss, and bottlenecks
Transmission Modes
- Simplex: One-way only (e.g., Radio broadcast).
- Half-duplex: Two-way, but one at a time (Walkie-talkie).
- Full-duplex: Simultaneous two-way (Telephone).
Packets
- Data segmentation and packetization
- Header (routing info), Payload (data), Trailer (error check)
- Packet forwarding, loss, and reassembly
Circuit vs Packet
- Circuit Switching: Dedicated path (Old telephone networks).
- Packet Switching: Shared network, dynamic paths (The Internet).
- Resource utilization and scalability advantages.
The OSI Model
- Open Systems Interconnection (7-layer conceptual model)
- Standardizes communication functions of telecommunication
TCP/IP Model
- The practical suite driving the Internet
- Condenses OSI into 4 layers
- Protocol layering and network architecture
Encapsulation
- Wrapping data with headers as it moves down the stack
- Data → Segment → Packet → Frame → Bits
- Decapsulation happens at the receiving end
MAC Addresses
- Media Access Control (Layer 2)
- Physical hardware address burned into the Network Interface
- Used for Local delivery within the same network
Switching
- Layer 2 forwarding based on MAC addresses
- Maintains a MAC Address Table
- Learning, Flooding, and Forwarding frames
- Creates separate collision domains
Routing
- Layer 3 forwarding between distinct networks
- Uses IP Addresses and Routing Tables
- Determines the "Next Hop" or Default Route
IP Addressing
- Logical addressing for network-to-network delivery
- Contains a Network portion and a Host portion
- Public (Internet routable) vs. Private (Local only)
Subnetting & CIDR
- Dividing large networks into smaller subnets
- Subnet mask defines Network prefix vs. Host bits
- CIDR: Classless Inter-Domain Routing (e.g., /24)
- Route aggregation and address efficiency
IPv6
- 128-bit addressing to solve IPv4 exhaustion
- Hexadecimal notation and address compression
- Global unicast, Link-local, and Multicast
NAT
- Network Address Translation
- Translates private local IPs to a single public IP
- Allows entire home networks to share one Internet connection
Ports & Sockets
- Logical endpoints for specific services
- Well-known ports (80=HTTP, 443=HTTPS)
- Socket: IP Address + Port Number
DNS
- Domain Name System (The Internet's Phonebook)
- Translates human-readable hostnames to IP addresses
- Recursive queries and Authoritative servers
- Records: A, AAAA, CNAME, MX
DHCP
- Dynamic Host Configuration Protocol
- Automatically assigns IP, Subnet, Gateway, and DNS
- DORA: Discover → Offer → Request → Acknowledge
TCP
- Transmission Control Protocol (Layer 4)
- Reliable, connection-oriented, guaranteed delivery
- Sequence numbers, Acknowledgments, Retransmission
- Flow control and Congestion control
TCP Connection
- Establishing the connection before sending data
- Three-way Handshake: SYN → SYN-ACK → ACK
- Connection termination via FIN packets
UDP
- User Datagram Protocol (Layer 4)
- Connectionless, no delivery or ordering guarantee
- Low overhead and fast (Used for Voice, Video, DNS)
HTTP
- Hypertext Transfer Protocol (Layer 7)
- Client request / Server response
- Methods: GET, POST, PUT, DELETE
- Stateless protocol foundation of the Web
HTTPS
- HTTP over TLS (Encryption in transit)
- Authentication via Certificates (Certificate Authority)
- Public key cryptography and secure handshakes
Firewalls & Security
- Confidentiality, Integrity, Availability
- Packet filtering and Stateful firewalls
- Inbound/Outbound rules (Allow vs. Deny)
- Network segmentation
Routing Protocols
- Static vs. Dynamic routing
- Distance Vector (RIP) vs. Link State (OSPF)
- Route metrics and best-path selection
BGP & Global Internet
- Border Gateway Protocol (The routing of the Internet)
- Autonomous Systems (AS) and Inter-domain routing
- Prefix advertisements, Peering, and Transit
Wireless Networking
- Wi-Fi (WLAN), Access Points, and SSIDs
- Radio spectrum, channels, and interference
- Encryption protocols (WPA2, WPA3)
Load Balancing & CDN
- Distributing traffic across backend servers
- Horizontal scaling and High Availability
- CDNs: Caching static content on edge servers geographically closer to users
Cloud & Virtualization
- Virtual Private Clouds (VPC) and Subnets
- Software-Defined Networking (SDN)
- VLANs for logical layer 2 segmentation
- Decoupling the control plane from the data plane
How a Page Travels
- The synthesis of DNS, TCP, IP, and HTTP.
- Translating human intent into packet routing.
- Data moving from local client, through ISP backbones, to global data centers.
Core Distinctions
A Switch operates at Layer 2, using MAC addresses to forward frames within the same local network. A Router operates at Layer 3, using IP addresses to forward packets between different networks.
TCP vs. UDPTCP is a reliable, connection-oriented protocol that guarantees packet delivery and ordering (used for web, email). UDP is a fast, connectionless protocol that just blasts data without checking if it arrived (used for live video, gaming).
Bandwidth vs. ThroughputBandwidth is the theoretical maximum capacity of a pipe (e.g., a 1 Gigabit connection). Throughput is the actual amount of data successfully transmitted over that pipe under real-world conditions (usually lower due to overhead and congestion).
The Computing Expansion
From silicon chips to global connectivity.