Independent Preparation Bank for Pakistani Computing Graduates • 100% Free • No Signup
NSCTPrep.
All Articles
Home/Articles/Subject Deep-Dive
Subject Deep-Dive

Computer Networks & Cloud Computing: Protocols, Subnetting & AWS/GCP Basics

A targeted breakdown of Computer Networks and Cloud infrastructure (10% of NSCT). Master OSI models, TCP 3-way handshakes, CIDR subnetting, and containerization.

NSCT Editorial & Syllabus Hub
Curated Technical Curriculum & Testing Benchmarks
8 min readNov 16, 2026Mock Exam

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 LayerPDUKey ProtocolsHardware Devices
7. ApplicationDataHTTP/HTTPS, DNS, SSH, FTP, SMTP, DHCPL7 Load Balancers
6. PresentationDataTLS/SSL, JPEG, ASCII, JSON formatting-
5. SessionDataRPC, NetBIOS, PPTP-
4. TransportSegment (TCP) / Datagram (UDP)TCP, UDPL4 Load Balancer, Firewalls
3. NetworkPacketIPv4, IPv6, ICMP, OSPF, BGP, ARPRouters, L3 Switches
2. Data LinkFrameEthernet (802.3), Wi-Fi (802.11), VLANsSwitches, Bridges
1. PhysicalBitsCables, Fiber, Repeaters, HubsHubs, 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:
    1. Client sends SYN (seq = x)
    2. Server responds SYN-ACK (seq = y, ack = x + 1)
    3. Client responds ACK (ack = y + 1)
  • 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 /27 prefix 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.
Indexed Competency Concepts:
#Networks#Cloud Computing#TCP/IP#Subnetting#AWS#Docker
Official Standards Verification

Content structured in accordance with Higher Education Commission (HEC) Computing National Curriculum, PSEB TechLift competency standards, and the 120-minute Virtual University assessment model.