Unit II message ordering & snapshots message ordering and group communication: Message ordering paradigms


Marker receiving rule for process pj



tải về 0.79 Mb.
Chế độ xem pdf
trang19/19
Chuyển đổi dữ liệu15.11.2023
Kích0.79 Mb.
#55654
1   ...   11   12   13   14   15   16   17   18   19
MESSAGE ORDERING & SNAPSHOTS
c5 cacdacdiemhtttdl
Marker receiving rule for process pj 
On receiving a marker along channel C: 
if p

has not recorded its state then 
Record the state of C as the empty set 
Execute the “marker sending rule” 
else 
Record the state of C as the set of messages 
received along C after p
j
,

state was recorded 
and before p

received the marker along C 
 
Correctness 
• To prove the correctness of the algorithm, it is shown that a recorded snapshot satisfies 
conditions C1 and C2
• Since a process records its snapshot when it receives the first marker on any incoming 
channel, no messages that follow markers on the channels incoming to it are recorded 
in the process’s snapshot. 
• Moreover, a process stops recording the state of an incoming channel when a marker is 
received on that channel. 
• Due to FIFO property of channels, it follows that no message sent after the marker on 
that channel is recorded in the channel state. Thus, condition C2 is satisfied. 
When a process p

receives message m
ij 
that precedes the marker on channel C
ij
, it acts 
as follows: 
• If process p

has not taken its snapshot yet, then it includes m
ij 
in its recorded snapshot. 
Otherwise, it records m
ij 
in the state of the channel C
ij
. Thus, condition C1 is satisfied. 
Complexity 
• The recording part of a single instance of the algorithm requires O(e) messages and 
O(d) time, where e is the number of edges in the network and d is the diameter of the 
network. 

tải về 0.79 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   11   12   13   14   15   16   17   18   19




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương