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


Issues in recording a global state



tải về 0.79 Mb.
Chế độ xem pdf
trang17/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
Issues in recording a global state 
• If a global physical clock is used then the following simple procedure is used to record 
a consistent global snapshot of a distributed system. 
o Initiator of the snapshot decides a future time at which the snapshot is to be 
taken and broadcasts this time to every process. 
o All processes take their local snapshots at that instant in the global time. 


CS8603:Distributed Systems Department of CSE
2020 – 2021 2. 
18
Jeppiaar Institute of Technology
o The snapshot of channel C
ij 
includes all the messages that process p

receives 
after taking the snapshot and whose timestamp is smaller than the time of the 
snapshot. 
• However, a global physical clock is not available in a distributed system. Hence the 
following two issues need to be addressed to record a consistent global snapshot. 
• 
I1: How to distinguish between the messages to be recorded in the snapshot from those 
not to be recorded? 
• Any message i.e., sent by a process before recording its snapshot, must be recorded in 
the global snapshot. (from C1). 
• Any message that is sent by a process after recording its snapshot, must not be recorded 
in the global snapshot (from C2). 
I2: How to determine the instant when a process takes its snapshot. 
A process p

must record its snapshot before processing a message m
ij 
that was sent by 
process p

after recording its snapshot. 
• These algorithms use two types of messages: computation messages and control 
messages. The former are exchanged by the underlying application and the latter are 
exchanged by the snapshot algorithm. 
2.9 Snapshot algorithms for FIFO channels 

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