Skip to content

Distributed and Cloud Computing syllabus

ENCT 41111 units · 71 topicsAcademic year 2083/84
Browse the units

1Introduction to Distributed Systems (4 hours)

  1. 1.1
    Distributed systems: definition, characteristics, Importance and Applications
  2. 1.2
    Types of distributed systems: high-performance computing, information and pervasive systems
  3. 1.3
    Properties and Design Goals: transparency, heterogeneity, openness, reliability and scalability
  4. 1.4
    Architectural models: client-server, peer-to-peer, multi-tier and event-based
  5. 1.5
    Fundamental models: interaction, failure and security models
  6. 1.6
    Design challenges and fallacies of distributed computing; overview of real-world distributed systems

2Communication in Distributed Systems (6 hours)

  1. 2.1
    Distributed object concepts
  2. 2.2
    Middleware system concepts
  3. 2.3
    Remote Method Invocation (RMI) and Remote procedure call (RPC)
  4. 2.4
    Modern remote invocation: RESTful web services and gRPC
  5. 2.5
    Data serialization and marshalling: XML, JSON, Protocol Buffers
  6. 2.6
    Message-oriented middleware: message queues and publish-subscribe systems (RabbitMQ, MQTT)

3Synchronization and Coordination (6 hours)

  1. 3.1
    Need for synchronization; physical clock synchronization: Cristian's algorithm, Berkeley algorithm, NTP
  2. 3.2
    Logical clocks: Lamport clocks and vector clocks, event ordering and causality
  3. 3.3
    Global state and distributed snapshots: Chandy-Lamport algorithm
  4. 3.4
    Distributed mutual exclusion: centralized, Ricart-Agrawala, token ring and Maekawa algorithms
  5. 3.5
    Election algorithms: bully and ring
  6. 3.6
    Coordination services: ZooKeeper and etcd

4Replication, Consistency and Consensus (6 hours)

  1. 4.1
    Replication: motivation, Passive, Active, multi-leader and leaderless replication
  2. 4.2
    Data-centric consistency models: linearizability, sequential and causal consistency
  3. 4.3
    Client-centric consistency models: eventual consistency, read-your-writes, monotonic reads
  4. 4.4
    Quorum-based protocols and replica management
  5. 4.5
    Distributed transactions: two-phase commit and three-phase commit
  6. 4.6
    Consensus problem, Paxos

5Distributed Storage and Data Processing (5 hours)

  1. 5.1
    Storage models: file, block and object storage
  2. 5.2
    Distributed file systems: design issues, NFS, Google File System (GFS), Hadoop Distributed File System (HDFS)
  3. 5.3
    Software-defined storage: Ceph; copy-on-write and snapshots (ZFS)
  4. 5.4
    Concurrency control approach: Lock, optimistic concurrency control, timestamp-based concurrency control
  5. 5.5
    Distributed data processing: Overview of MapReduce programming model, Hadoop YARN, Apache Spark

6Cloud Computing (5 hours)

  1. 6.1
    Cloud computing: definition, essential characteristics and reference architecture
  2. 6.2
    Service models (IaaS, PaaS, SaaS, FaaS) and deployment models (public, private, community, hybrid)
  3. 6.3
    Cloud data center architecture: regions, availability zones, software-defined networking and storage
  4. 6.4
    Elasticity and scalability: load balancing, horizontal and vertical scaling, auto-scaling
  5. 6.5
    Cloud security and governance: shared responsibility model, identity and access management (IAM), data encryption, compliance
  6. 6.6
    Service level agreements (SLA), pricing models, cloud economics and vendor lock-in

7Virtualization, Containers and Cloud-Native Systems (5 hours)

  1. 7.1
    Virtualization: full, para- and hardware-assisted virtualization
  2. 7.2
    Hypervisors: type 1 and type 2 (KVM, Xen, ESXi); server, storage and network virtualization
  3. 7.3
    Containers: namespaces, cgroups, containers versus virtual machines
  4. 7.4
    Kubernetes: architecture, pods, deployments, services, scaling and self-healing
  5. 7.5
    Microservices architecture: API gateway, service discovery and service mesh
  6. 7.6
    Cloud-native application design: twelve-factor app, DevOps, CI/CD and infrastructure as code

8Fault Tolerance and Reliability (4 hours)

  1. 8.1
    Dependability concepts: availability, reliability, safety, maintainability, MTTF and MTTR
  2. 8.2
    Fault, error and failure; failure models: crash, omission, timing and Byzantine fault tolerance
  3. 8.3
    Failure detection and process resilience: process resilience, redundancy techniques
  4. 8.4
    Checkpointing, message logging and rollback recovery
  5. 8.5
    High availability and disaster recovery: failover, geo-redundancy, RPO and RTO

9Edge Computing, Emerging Trends and Case Studies (4 hours)

  1. 9.1
    Edge and fog computing: architecture and the IoT-edge-cloud continuum
  2. 9.2
    Task offloading, migration and edge-cloud collaboration models
  3. 9.3
    AI-driven cloud optimization (ML-based auto-scaling) and distributed systems for large-scale AI training and inference
  4. 9.4
    Hybrid and multi-cloud strategies
  5. 9.5
    Case studies: Google (GFS, Bigtable, MapReduce, Spanner), Amazon (Dynamo, AWS global infrastructure), Netflix microservices architecture

10Tutorial (15 hours)

  1. 10.1
    Comparison of architectural models (client-server, peer-to-peer, multi-tier, event-based) with examples; types of transparency
  2. 10.2
    Comparison of RPC, REST, gRPC and message-oriented communication; RPC message flow with stubs and marshalling; JSON versus Protocol Buffers
  3. 10.3
    Clock synchronization problems: Cristian's, Berkeley and NTP offset and delay calculations
  4. 10.4
    Lamport and vector timestamps on event diagrams, happened-before relation, Chandy-Lamport snapshot
  5. 10.5
    Tracing mutual exclusion (Ricart-Agrawala, token ring, Maekawa) and election (bully, ring) algorithms with message complexity
  6. 10.6
    Identification of consistency models from execution histories; CAP and PACELC classification of real systems
  7. 10.7
    Two-phase and three-phase commit message flow with failure scenarios; Raft leader election and log replication
  8. 10.8
    Consistent hashing, data partitioning, replica placement and quorum (N, R, W) calculations
  9. 10.9
    MapReduce job design (word count, inverted index); HDFS read and write flow
  10. 10.10
    Selection of cloud service and deployment models for given scenarios; SLA and cost estimation
  11. 10.11
    Comparison of virtual machines and containers; decomposition of a monolithic application into microservices and Kubernetes objects
  12. 10.12
    Availability calculations for series and parallel systems, RPO/RTO, and design of a fault-tolerant, highly available edge-cloud architecture

11Practical (22.5 hours)

  1. 11.1
    Client-server communication using sockets (TCP/UDP, multi-threaded server) and RPC (gRPC or Java RMI)
  2. 11.2
    Implementation of Lamport logical clocks and vector clocks across multiple processes
  3. 11.3
    Simulation of distributed mutual exclusion (Ricart-Agrawala or token ring) and election (bully or ring) algorithms
  4. 11.4
    Message-oriented middleware and coordination: publish-subscribe using Kafka, RabbitMQ or MQTT; leader election and distributed locks using ZooKeeper or etcd
  5. 11.5
    Setting up a multi-node HDFS cluster and running MapReduce and Spark jobs
  6. 11.6
    Containerization: building Docker images, multi-container applications using Docker Compose and private registries
  7. 11.7
    Deployment of a microservice application on Kubernetes (minikube, kind or equivalent): deployments, services, scaling, rolling updates and self-healing
  8. 11.8
    Cloud deployment on a public cloud (AWS, Azure or GCP free tier) or OpenStack: provisioning virtual machines, storage and serverless functions using infrastructure as code (Terraform), with monitoring