Back to Module 2 notes

These problems practise running the algorithms of Module 2 by hand and adapting their proofs.

Problem 1

Problem 2.1 (Counting messages).

A group has nodes and uses eager reliable broadcast (Theorem 2.2) over reliable links.

  1. How many point-to-point messages does one broadcast cause when no node crashes?
  2. The sender crashes after sending its copy to exactly one other node, which is correct. How many messages are sent in total, at most and at least?
  3. With push gossip of fanout , use Proposition 2.5 to give a number of rounds after the half-informed point such that the probability that some node is still uninformed is at most . Roughly how many messages does this phase send?

Problem 2

Problem 2.2 (Tracing the FIFO algorithm).

Three nodes A, B, C run the FIFO algorithm of Module 2 over reliable broadcast. A broadcasts (sequence numbers 0, 1, 2) and B broadcasts . Node C receives the tuples from reliable broadcast in the order

  1. Give, after each arrival, the messages C delivers, its buffer, and its delivered vector (order A, B, C).
  2. Suppose A crashes and never reaches any correct node. Which messages does C deliver? Is this allowed by FIFO broadcast?

Problem 3

Problem 2.3 (Dependency vectors by hand).

Three nodes A, B, C (in this order) run the causal algorithm of Module 2. The following happens.

  • A broadcasts .

  • C broadcasts , before receiving anything.

  • B delivers and then , and broadcasts .

  • A delivers and broadcasts ; at that time A has not delivered .

  1. Give of .
  2. Node C has delivered only its own . In which order may the messages arrive at C so that C delivers everything at the moment arrives? Give C’s final delivered vector.
  3. Which pairs among are concurrent? Compare their vectors. Can a receiver tell from the vectors alone whether two messages are concurrent?

Problem 4

Problem 2.4 (A tempting simplification breaks FIFO).

A student simplifies the causal algorithm: when node broadcasts, it sets (a copy) and does not overwrite entry with . Every node still delivers its own messages through reliable broadcast.

  1. Give an execution with two nodes in which some node delivers two messages of the same sender in the wrong order.
  2. Which step of the proof of Lemma 2.11 fails?

Problem 5

Problem 2.5 (Lamport total order is causal).

Prove that the Lamport timestamp algorithm of Module 2 satisfies causal order: if and node delivers , then delivered before . Conclude that, in executions without crashes, it implements causal-total order broadcast.