session: "5102-foundations-of-comp-sys/2026-08-22 0000 FCS 22 Aug"
title: "FCS 22 Aug"
date: "2026-08-22 00:00"
duration: "2h 39m"
language: "en"
model: "deepseek-ai/DeepSeek-V3.2"
parts: 4
transcript_chars: 103746
generated: "2026-11-23T13:30:32+05:30"
FCS 22 Aug
Overview
This introductory lab session established the practical framework for the Foundations of Computer Systems course. While the syllabus covers core hardware and OS concepts (CPU, memory, instruction sets), this lab uses modern cloud infrastructure (AWS EC2) as a platform to provision and analyze a virtual server, demonstrating how these foundational components enable application execution. The session walked through provisioning a VM, configuring security and networking, and connecting via SSH. It concluded by framing the holistic "production compute stack" and the shared responsibility model for availability, observability, and performance in a managed environment.
Learning outcomes
- Provision a basic virtual machine instance on a cloud platform (AWS EC2).
- Explain the purpose of key cloud concepts (AMI, instance type, security group, key pair) in the context of accessing compute resources.
- Connect to a remote Linux server via SSH using key-pair authentication.
- Describe the layered responsibilities (shared responsibility model) for running a server, distinguishing between cloud provider, DevOps/SRE, and application developer accountabilities.
- Analyze simple performance dashboards to identify resource bottlenecks (CPU, memory, disk, network).
Core concepts
Virtual Machine (VM)
A software-emulated computer system with defined virtual CPU, memory, storage, and networking, provisioned from a cloud provider's physical hardware. It serves as the accessible "server" for this course's practical analysis, replacing a physical on-premises machine.
Production Compute Stack
The layered components required to run an application in a production environment. The listed layers are: Compute, Network, Storage, Identity & Security, Availability, Observability, Performance, and Operations. This framework shifts focus from merely launching a VM to managing its ongoing health and business impact.
Shared Responsibility Model
The division of accountability in cloud computing between the provider and the customer. The provider is responsible for the physical infrastructure (hardware, data centers). The customer is responsible for everything provisioned on top (the VM, OS configuration, application, and monitoring setup). This model clarifies who is accountable during incident analysis.
Observability vs. Simple Monitoring
Observability is the continuous monitoring of all services, resources (CPU, memory, disk, network), and logs to understand system state and often enable automated remediation. It extends beyond simple threshold alerting to provide insights for diagnosis.
Abstraction in Cloud
The underlying physical infrastructure (servers, network cards) is virtualized and not directly visible or manageable by the user. Instead, its services (compute, storage) are consumed as abstractions, allowing focus on application deployment rather than hardware maintenance.
Formulas and maths
(Not covered in this session)
Worked examples
Provisioning an EC2 Instance
1. Region: us-east-1 (Northern Virginia).
2. Instance Name: web-server-id-fata-01.
3. OS/AMI: Ubuntu.
4. Architecture: 64-bit (x86). ARM noted as an alternative.
5. Instance Type: t3.micro.
6. Storage: Default set to 8 GiB (Gibibytes).
7. Key Pair: Created a new RSA key pair for SSH authentication.
8. Network: Used default VPC and subnet. Assigned a public IP (example: 100.31.192.92).
9. Security Group: Configured to allow inbound traffic on port 22 (SSH).
10. User Data: Provided a shell script to update packages and install Apache web server on first boot.
Post-Connection Verification
1. Connected via PuTTY using the private key.
2. Checked Apache service status: systemctl status apache2.
3. Demonstrated need for sudo for privileged commands (e.g., sudo systemctl restart apache2).
Performance Dashboard Analysis
A sample observability dashboard showed:
- CPU utilization: 91%
- Memory utilization: 88%
- Disk I/O utilization: 74% (interpreted as ~750GB used of a 1TB disk)
- Network utilization: 42% (145 Mbps used of a 345 Mbps connection)
High CPU Calculation
For a VM with 3 vCPUs running at 2.5 cores utilization:
\[
\text{Utilization \%} = \frac{2.5}{3} \approx 83\%
\]
This is near the suggested performance threshold of 85%.
Questions asked in class
- Q: The syllabus doesn't mention virtual machines or cloud. Why are we doing this?
- A: The lab aligns with the syllabus but aims to correlate theory with modern cloud environments for contemporary relevance. The correlation will be clarified in future sessions.
- Q: What is Azure Gen Z Storage?
- A: Clarified as likely a transcript error for a next-generation Azure storage type (e.g., "Gen 2"), analogous to a storage bucket.
- Q: Why do IP addresses change?
- A: In the default VPC, IPs are assigned dynamically via DHCP. For a static IP, you must create a custom VPC with a defined CIDR block and configure static assignment.
- Q: How is SSH key-based authentication different from password authentication?
- A: It adds a separate security layer. Access requires both a valid password and the correct private key file.
- Q: Is the course about cloud computing?
- A: No. The cloud is used only to provision a server for analysis. The course sticks to the standard "Foundations of Computer Systems" outline (CPU, hardware, OS).
- Q: Will we recreate the provided scenarios in lab?
- A: No. The six scenarios are for independent analysis. Lab sessions will focus on other practical concepts.
Key takeaways
- The course's objective is to understand computer system architecture and hardware-software dependency, not to become cloud experts.
- A Virtual Machine (VM) is a software-emulated server used as the practical testbed for this course.
- Cloud provisioning involves selecting an OS (AMI), instance architecture (x86/ARM), instance type (defines vCPU/memory), storage (in GiB), and configuring network security (Security Groups).
- SSH key-pair authentication (public/private key) is a critical security practice for remote server access.
- The Shared Responsibility Model clearly divides accountability: the cloud provider manages the physical layer, while the customer manages the VM, OS config, application, and monitoring.
- Observability encompasses continuous monitoring of metrics and logs for automated health checks and incident diagnosis, beyond simple alerts.
- Performance thresholds for application health: CPU <85%, Memory <80%, Disk I/O <50%, Network <60%.
- Incident analysis involves examining metrics to pinpoint the affected resource (application, disk, OS) and escalating to the responsible team.
- On-premises infrastructure is owned and operated locally, whereas cloud provides abstracted, virtual resources.
- The lab uses cloud as a means to access a server for analysis; the core theory (CPU, ISA, memory hierarchy) remains the syllabus focus.
- Student initiative in learning prerequisites (basic hardware concepts) is expected for success in this course.
Exam-style questions
1. You provision an AWS EC2 instance but cannot connect via SSH. List three configuration points you would check and explain the responsibility for each (Provider/Customer).
- Answer Outline: Check Security Group (Customer - must open port 22), Key Pair association (Customer - must use correct private key), and instance state (Provider - instance must be running). The network route/VPC is a shared concern.
2. A performance dashboard shows CPU at 91%, Memory at 88%, Disk I/O at 74%, and Network at 42%. Which resource is most likely the primary bottleneck, and what team (Application, DevOps, Platform) should be engaged first for analysis?
- Answer Outline: CPU (91%) is the most critical as it exceeds the 85% threshold and is nearest to saturation. The DevOps/SRE team responsible for observability should be engaged first to analyze logs and metrics before escalating to the application team if the cause is application logic.
3. Compare the responsibilities for "Operating System Configuration" and "Physical Server Health" between an on-premises deployment and an AWS EC2 deployment.
- Answer Outline: For both models, OS Configuration is the customer's responsibility. For Physical Server Health, the customer is responsible on-premises, but AWS (the provider) is responsible for EC2.
Glossary
- AMI (Amazon Machine Image) - A pre-configured operating system image used to launch an EC2 instance.
- Instance Type - AWS nomenclature defining the hardware profile (vCPU, memory) of a virtual machine.
- Key Pair - A set of cryptographic keys (public and private) used for SSH authentication to a cloud instance.
- On-Premises (On-Prem) - Infrastructure owned and operated locally by an organization.
- Public IP - An internet-routable IP address assigned to a resource.
- Security Group - A virtual firewall controlling inbound/outbound traffic for AWS resources.
- Serverless - A cloud execution model where the provider manages server infrastructure; not literally without servers.
- Subnet - A segment of a VPC's IP address range.
- User Data - Scripts or configuration data passed to an instance at launch for automated initial setup.
- VPC (Virtual Private Cloud) - A logically isolated virtual network in AWS.
Follow-ups
- The precise correlation between FCS theory (CPU, memory architecture) and the cloud demonstrations will be clarified in future sessions.
- The distinction between "monitoring" and "observability" will be detailed later.
- Disadvantages of serverless computing and details of IAM (Identity and Access Management) were noted for later discussion.
- The concept of instance "architecture" (x86 vs. ARM) will be discussed in an upcoming theory lecture.
- Book recommendations for the course will be provided in the theory session.
- The next lab session is scheduled for the following day at 3 PM.