Back to Module 1 notes

These problems practise reading an execution against the definitions of Module 1 and proving small facts about the models.

Problem 1

Problem 1.1 (Warm-up: true or false).

Decide whether each statement is true or false, and justify it in one or two sentences using the definitions of Module 1.

  1. Under reliable broadcast, if a node delivers and later crashes, every correct node eventually delivers .
  2. Under FIFO broadcast, if A broadcasts and, one second later in real time, B broadcasts , then every node delivers before .
  3. Every execution that satisfies causal broadcast also satisfies FIFO broadcast.
  4. Under total order broadcast, at the end of an execution all nodes, faulty or not, have delivered the same set of messages.
  5. Under causal broadcast, two correct nodes may deliver the same two messages in different orders.

Problem 2

Problem 1.2 (Which models does this execution satisfy?).

Three nodes A, B, C; no node crashes. Node A broadcasts and later . Node B delivers and then broadcasts ; when B broadcasts it has not yet delivered , and when A broadcasts it has not yet delivered . Every node eventually delivers all three messages.

  1. List all pairs of messages related by causal precedence, and the concurrent pairs.
  2. For each of the following delivery sequences, say whether the execution satisfies FIFO, causal, total order and FIFO-total order broadcast, or explain why it cannot occur at all under the stated assumptions.
A deliversB deliversC delivers
X1
X2
X3
X4
X5

Problem 3

Problem 1.3 (Hold-back at a receiver).

Four nodes A, B, C, D, no crashes. A broadcasts . B delivers and then broadcasts . C broadcasts at the very start, before receiving anything, and reaches A and B only after they have broadcast and ; nobody broadcasts anything else. The messages reach node D in the order , , , and D’s broadcast layer delivers a message as soon as the model allows.

  1. Which pairs are causally related, and which are concurrent?
  2. Under FIFO broadcast, which messages does D deliver at each of the three arrivals?
  3. Under causal broadcast, which messages does D deliver at each of the three arrivals?
  4. List every delivery sequence that causal order allows at D.
  5. Suppose the broadcast is causal-total order and node A has already delivered in that order. Which sequence must D deliver?

Problem 4

Problem 1.4 (Total order makes nodes wait for their own messages).

Call a broadcast algorithm self-immediate if, whenever a node broadcasts , it delivers to its own application in the same step, before receiving any further message. Kleppmann notes that FIFO and causal broadcast can be implemented this way.

Prove that no self-immediate algorithm satisfies total order broadcast in the asynchronous model, even if no node ever crashes and .

Problem 5

Problem 1.5 (Uniform agreement restores the causal arrow).

Consider an execution that satisfies integrity, FIFO order, total order (Definition 1.10) and uniform agreement (Definition 1.6), and in which at least one node is correct. Prove that it satisfies causal order. Then explain which hypothesis Example 1.15 violates.