Message Ordering
Virtual synchrony allows an application developer to think about multicasts as taking place in epochs that are separated by group membership changes. However, nothing has yet been said concerning the ordering of multicasts. In general, four different orderings are distinguished:
- Unordered multicasts
- FIFO-ordered multicasts
- Causally ordered multicasts
- Totally ordered multicasts
A reliable, unordered multicast is a virtually synchronous multicast in which no guarantees are given concerning the order in which received messages are delivered by different processes.
P1 multicasts two messages to a group while two other processes in that group are waiting for messages to arrive. It is possible that the message-handling component at P2 first receives message m1 and then m2. Because there are no message ordering constraints, the messages may be delivered in the order that they are received. In contrast, the message-handling component at P3 may first receive message m2 followed by m1, and delivers these two in this same order to the higher-level application of P3.
Get Miguel’s stories in your inbox
Join Medium for free to get updates from this writer.
In the case of reliable FIFO-ordered multicasts, the message-handling component layer is forced to deliver incoming messages from the same process in the same order as they have been sent.
With FIFO ordering, the only thing that matters is that message m1 is always delivered before m2, and, likewise, that message m3 is always delivered before m4. This rule has to be obeyed by all processes in the group.
Reliable causally ordered multicast delivers messages so that potential causality between different messages is preserved. In other words, if a message m1 causally precedes another message m2, regardless of whether they were multicast by the same sender, then the communication layer at each receiver will always deliver m2 after it has received and delivered m1. Note that causally ordered multicasts can be implemented using vector timestamps.
Total-ordered delivery means that regardless of whether message delivery is unordered, FIFO ordered, or causally ordered, it is required additionally that when messages are delivered, they are delivered in the same order to all group members.
For example, with the combination of FIFO and totally ordered multicast, processes P2 and P3 in Figure 8.27 may both first deliver message m3 and then message m1. However, if P2 delivers m1 before m3, while P3 delivers m3 before delivering m1, they would violate the total-ordering constraint. Note that FIFO ordering should still be respected. In other words, m2 should be delivered after m1 and, accordingly, m4 should be delivered after m3.
Virtually synchronous reliable multicasting offering total-ordered delivery of messages is called atomic multicasting.









