Computer Networks & Cloud Computing: Protocols, Subnetting & AWS/GCP Basics
Modern computing relies on distributed architectures. The Computer Networks & Cloud Computing domain (10%) tests your comprehension of protocol handshakes, routing mechanisms, IP subnetting, and modern virtualization/cloud paradigms.
1. The OSI vs TCP/IP Model
Memorize layers, protocols, and Protocol Data Units (PDUs):
| OSI Layer | PDU | Key Protocols | Hardware Devices |
|---|---|---|---|
| 7. Application | Data | HTTP/HTTPS, DNS, SSH, FTP, SMTP, DHCP | L7 Load Balancers |
| 6. Presentation | Data | TLS/SSL, JPEG, ASCII, JSON formatting | - |
| 5. Session | Data | RPC, NetBIOS, PPTP | - |
| 4. Transport | Segment (TCP) / Datagram (UDP) | TCP, UDP | L4 Load Balancer, Firewalls |
| 3. Network | Packet | IPv4, IPv6, ICMP, OSPF, BGP, ARP | Routers, L3 Switches |
| 2. Data Link | Frame | Ethernet (802.3), Wi-Fi (802.11), VLANs | Switches, Bridges |
| 1. Physical | Bits | Cables, Fiber, Repeaters, Hubs | Hubs, Repeaters |
2. TCP vs UDP & Handshake Mechanics
Transmission Control Protocol (TCP)
- Connection-oriented, reliable, ordered, flow-controlled (sliding window), and congestion-controlled (Slow Start, Congestion Avoidance).
- 3-Way Handshake:
- Client sends
SYN(seq = x) - Server responds
SYN-ACK(seq = y, ack = x + 1) - Client responds
ACK(ack = y + 1)
- Client sends
- 4-Way Teardown:
FIN$ ightarrow$ACK$ ightarrow$FIN$ ightarrow$ACK.
User Datagram Protocol (UDP)
- Connectionless, unreliable, unordered, lightweight (8-byte header vs TCP's 20-60 bytes).
- Used in DNS queries, VoIP, live video streaming, and online multiplayer gaming.
3. CIDR Subnetting Calculations Made Easy
NSCT questions frequently ask: "Given IP 192.168.10.0/27, find the subnet mask, total hosts, and broadcast address."
- A
/27prefix means 27 bits for network, 5 bits for hosts ($32 - 27 = 5$). - Subnet Mask: $256 - 2^5 = 256 - 32 = 224 \implies 255.255.255.224$.
- Total IP Addresses: $2^5 = 32$.
- Usable Host Addresses: $2^5 - 2 = 30$ (Subtract 1 for Network ID, 1 for Broadcast).
- Network Address:
192.168.10.0 - First Usable Host:
192.168.10.1 - Last Usable Host:
192.168.10.30 - Broadcast Address:
192.168.10.31
4. Cloud Computing & Microservices Essentials
- Cloud Service Models:
- IaaS (Infrastructure as a Service): AWS EC2, Azure VMs, GCP Compute Engine (You manage OS, runtime, and app).
- PaaS (Platform as a Service): Heroku, AWS Elastic Beanstalk (Provider manages OS and runtime; you bring code).
- SaaS (Software as a Service): Google Workspace, Salesforce, Microsoft 365.
- FaaS / Serverless: AWS Lambda, Cloudflare Workers (Event-driven execution billed per millisecond).
- Virtual Machines vs Containers:
- VMs virtualize the hardware layer using a Hypervisor (Type 1 bare-metal or Type 2 hosted). Each VM runs a full guest OS.
- Containers (Docker) virtualize the operating system kernel. They share the host kernel via cgroups and namespaces, resulting in sub-second startup times and low memory footprints.
Content structured in accordance with Higher Education Commission (HEC) Computing National Curriculum, PSEB TechLift competency standards, and the 120-minute Virtual University assessment model.