session: "5102-foundations-of-comp-sys/2026-09-12 0000 FCS 12 Sep"
title: "FCS 12 Sep"
date: "2026-09-12 00:00"
duration: "2h 23m"
language: "en"
model: "deepseek-ai/DeepSeek-V3.2"
parts: 4
transcript_chars: 86546
generated: "2026-11-23T15:21:44+05:30"
FCS 12 Sep
Overview
This class session introduced the practical lab module focused on understanding hardware's role within a cloud-based system. The instructor outlined the architecture for a three-tier web application deployed on AWS, detailing components like the Virtual Private Cloud (VPC), subnets, Application Load Balancer (ALB), and database. The session then shifted to a methodology for learning technical concepts, especially for students from non-computer science backgrounds, using structured prompts with AI tools. Finally, networking fundamentals were reviewed, including IP addressing (IPv4/IPv6), CIDR notation, network classes, and the OSI model, with an emphasis on the physical layer. This class connects cloud infrastructure to the course's core themes of hardware, memory, and system observability.
Learning outcomes
- Design a basic three-tier cloud architecture using AWS VPC, subnets, ALB, and RDS.
- Apply a structured, five-step methodology (Orient, Diagnose, Deep Dive, Practice, Repair) to learn technical hardware concepts.
- Explain IPv4 addressing, CIDR notation, and the difference between public and private IP ranges.
- Map physical hardware components, like a Network Interface Card (NIC), to the OSI model.
Core concepts
Cloud Lab Architecture
A practical setup for observing hardware behavior involves deploying a scalable web application on AWS. The design uses a VPC (10.0.0.0/16) with segregated subnets: a public subnet for the ALB, a private subnet for EC2 application servers, and another private subnet for the RDS database. This separation enforces security and clarifies traffic flow (user -> ALB -> app -> DB). Monitoring is done via AWS CloudWatch.
Structured Learning Methodology
For students, especially from non-CS backgrounds, to effectively learn complex topics like registers or cache. The method involves using an AI tool to: 1) get a plain-English overview, 2) self-test with quizzes, 3) deep-dive using official documentation based on weaknesses, 4) practice with more questions, and 5) review incorrect answers. This promotes focused, consistent study over unfocused sessions.
Networking Fundamentals & OSI Model
IP addresses (IPv4) provide identity for network devices, structured in four 8-bit quadrants. CIDR notation (e.g., /16) specifies the network portion of the address. Networks are divided into classes (A, B, C) with reserved private ranges (10.x.x.x, 172.x.x.x, 192.168.x.x). The OSI model is essential for understanding system components; for instance, the Network Interface Card (NIC) operates at the Physical Layer (Layer 1).
Formulas and maths
- IPv4 Address Structure: 32 bits total, organized as 4 quadrants of 8 bits each. Each quadrant's value ranges from 0 to 255.
- CIDR Notation:
/n, where n is the number of bits used for the network portion of the address. The remaining 32 - n bits are for host addresses within that network. - Symbols:
n = number of network bits (e.g., 16, 24). - Used when designing networks and subnets to determine the size (number of possible hosts) and scope of a network.
Worked examples
- VPC and Subnet CIDRs:
- VPC:
10.0.0.0/16 - Public Subnet (ALB):
10.0.1.0/24 - Private App Subnet:
10.0.2.0/24 - Private DB Subnet:
10.0.3.0/24 - Resource Allocation Example: If an application tier uses 3 virtual machines (VMs) and each VM is a
t3 type with 2 GB of memory, the total memory available for that application tier is 3 VMs * 2 GB = 6 GB. - IPv4 Network Example: For the network
172.31.0.0/16, the first two quadrants (172.31) are the network portion. A host within this network could have an address like 172.31.31.21 or 172.31.250.1. The gateway is often 172.31.0.1.
Questions asked in class
- Q: What is the difference between a name server and a DNS server?
- A: A DNS (Domain Name Service) server is the service. A name server is the specific device (VM/hardware) that holds the mapping between domain names and IP addresses and knows the location and routing path to that IP.
- Q: Why are we using two subnets for the AWS load balancer?
- A: We are not. Only one public subnet hosts the ALB. The ALB has a public IP for external access and connects internally to the private app subnet.
- Q: Where and how do we define memory consumption/allocation for applications and database?
- A: For the ALB, memory is managed internally by AWS. For the application and database, memory is defined when provisioning the EC2 instance type (e.g.,
t3 with 2 GB) or the RDS instance type. The allocated memory is available to the software running on those resources. - Q: To what extent should we go through computer architecture topics like registers?
- A: Industry expectations are the same for all backgrounds. Use the structured AI Prep Guide methodology and deep-dive iteratively until you reach a level sufficient for your needs. Consistent, focused daily practice (15-30 minutes) is key.
- Q: Where does the Network Interface Card (NIC) fit in the OSI model?
- A: The NIC is a physical hardware component and belongs to the Physical Layer (Layer 1) of the OSI model.
Key takeaways
- A three-tier cloud architecture separates web, application, and database layers into distinct subnets for security and manageability.
- The Application Load Balancer (ALB) sits in a public subnet, while application servers and databases reside in private subnets.
- Learning complex hardware topics requires a structured approach: Orient, Diagnose, Deep Dive, Practice, Repair.
- Official documentation (AWS, Linux) is the preferred source for deep dives; avoid third-party blogs for foundational learning.
- An IPv4 address is 32 bits, divided into four 8-bit quadrants, each holding a value from 0 to 255.
- CIDR notation (e.g.,
/24) defines how many bits of the IP address are allocated to the network prefix. - Private IP ranges (
10.x.x.x, 172.16-31.x.x, 192.168.x.x) are for internal networks and are not routable on the public internet. - The Network Interface Card (NIC) operates at the Physical Layer (Layer 1) of the OSI model.
- Network design is driven by the number of devices, how they are partitioned, and security requirements.
- A gateway (e.g.,
172.31.0.1) is a network's entry/exit point to the internet. - CloudWatch is AWS's service for monitoring and observability of cloud resources.
- Consistency in focused, daily study sessions is more effective than long, unfocused cramming.
Exam-style questions
1. Question: You are designing a VPC for a web application. You need one public-facing load balancer, four application servers, and one database. Propose a CIDR block for the VPC and subnet allocations that follow security best practices. Justify your design.
- Answer Outline: VPC CIDR:
10.0.0.0/16. Public subnet: 10.0.1.0/24 for the ALB. Private app subnet: 10.0.2.0/24 for EC2 instances (supports up to 254 hosts). Private DB subnet: 10.0.3.0/24 for RDS. Justification: Separation of tiers limits blast radius; public subnet only for ingress/egress point; private subnets protect application and data layers.
2. Question: A student is struggling to understand the concept of CPU registers. Describe the five-step methodology they should use to learn this topic effectively.
- Answer Outline: 1) Orient: Use an AI tool for a plain-English overview. 2) Diagnose: Quiz yourself with MCQs. 3) Deep Dive: Use official CPU architecture documentation to study weak areas. 4) Practice: Attempt more scenario-based questions. 5) Repair: Review incorrect answers to close knowledge gaps.
3. Question: Given the IP address 192.168.50.100 and a netmask of 255.255.255.0 (or /24), identify the network address and the broadcast address. How many host addresses are available in this network?
- Answer Outline: Network address:
192.168.50.0. Broadcast address: 192.168.50.255. Available host addresses: 254 (total of 256 addresses minus network and broadcast).
Glossary
- VPC (Virtual Private Cloud) - A logically isolated network section within a cloud provider like AWS.
- Subnet - A segmented range of IP addresses within a VPC.
- CIDR (Classless Inter-Domain Routing) - A notation for specifying IP address ranges and their routing prefixes (e.g.,
/24). - ALB (Application Load Balancer) - An AWS service that distributes incoming application traffic across multiple targets.
- NIC (Network Interface Card) - A physical hardware component that connects a computer to a network; operates at OSI Layer 1.
- Private IP Address - An IP address from a reserved range used only within a private network, not routable on the public internet.
- Gateway - A network node that serves as an access point to another network, often the route to the internet.
- DHCP (Dynamic Host Configuration Protocol) - A network protocol that dynamically assigns IP addresses to devices on a network.
Follow-ups
- The step-by-step practical demonstration of creating the VPC, subnets, ALB, Auto Scaling Group, RDS, and security groups on AWS is pending.
- Setup and use of AWS CloudWatch for monitoring will be detailed in a future lab.
- Assignment details (covering both theory and lab) will be posted on Moodle.
- A document/model for the cloud lab environment setup will be provided.
- Deep dive into network components, routing tables, and traffic analysis is planned for the next session.
- IPv6 address structure (clarifying the "six quadrants" mention) will be covered later.