Brendan Ang

Search

Search IconIcon to open search

2203 Distributed Systems

Last updated Jan 21, 2023 Edit Source

# 2203 Distributed Systems

#moc

# What are distributed systems

A set of nodes, connected by a network, which appear to its users as a single coherent system.

# Core problems

# Agreement

# Two generals problem

“Two generals need to coordinate an attack”

# Consensus Problem

All nodes/processes propose a value
Some nodes (non correct nodes) might crash & stop responding
The algorithm must ensure a set of properties (specification):

# Broadcast Problem

Atomic Broadcast

Atomic broadcast can be used to solve consensus in the following way:

  1. Decide on the first received proposal
  2. Since all messages are in the same order, all nodes will decide the same

Consensus can be solved by Atomic broadcast

Atomic broadcast is equivalent to Consensus

# Modelling Distributed Systems

# Timing assumptions

# Failure assumptions

# Asynchronous System Model

# Synchronous system

“My server always serves requests within 1 week”

# Partial Synchrony

“My server processes requests within one week when it is running, and it will eventually be running for at least a week, I just don’t know when that will be.”

# Measuring Performance

# Message complexity

The number of messages required to terminate an operation of an abstraction

# Time complexity (Rounds)

One time unit in an Execution E is the longest message delay in E. We assume all communication steps takes one time unit. We also call this a round or step.

Time Complexity is Maximum time taken by any execution of the algorithm under the assumptions