Size of Vector Clocks, Matrix Clocks, Virtual Time and Physical Clock Synchronization

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/49

flashcard set

Earn XP

Description and Tags

Flashcards covering vector clocks, matrix clocks, virtual time, physical clock synchronization (NTP), global state recording (Chandy-Lamport), and distributed mutual exclusion (Lamport, Ricart-Agrawala, Maekawa, Agarwal-El Abbadi).

Last updated 4:44 PM on 7/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

50 Terms

1
New cards

Is a vector clock of size nn necessary for a computation with nn processes if the goal is to explicitly track progress at every other process?

Yes, a size of nn is necessary in that scenario.

2
New cards

In terms of causality, what is the necessary size of a vector clock?

The size must be equal to the dimension of the partial order (E,)(E, \text{≻}).

3
New cards

What is defined as a linear ordering of events EE that is consistent with the partial order (E,)(E, \text{≻})?

A linear extension.

4
New cards

What is the dimension of a partial order?

The minimum number of linear extensions whose intersection gives exactly the partial order.

5
New cards

What is the dimension of the partial order in a client-server interaction where queries and responses alternate strictly?

One (11).

6
New cards

What is a "crown" in the context of concurrent send-receive executions?

A graphical property where messages are such that Send(mi)Receive(mi+1 mod (n1))Send(m_i) \text{≻} Receive(m_{i + 1 \text{ mod } (n - 1)}) for all ii from 00 to n1n - 1.

7
New cards

What is the dimension of a crown of nn messages?

nn

8
New cards

In a matrix clock system maintained by process pip_i, what does mti[i,i]mt_i[i, i] represent?

The local logical clock of pip_i.

9
New cards

In a matrix clock mti[1..n,1..n]mt_i[1..n, 1..n], what does the entry mti[i,j]mt_i[i, j] denote?

The latest knowledge process pip_i has about the local logical clock of process pjp_j, which is mtj[j,j]mt_j[j, j].

10
New cards

What does mti[j,k]mt_i[j, k] represent in a matrix clock?

The knowledge pip_i has about the latest knowledge that pjp_j has about the local logical clock of pkp_k.

11
New cards

According to Rule R1 for Matrix Time, how does process pip_i update its local logical time before an event?

mti[i,i]:=mti[i,i]+dmt_i[i, i] := mt_i[i, i] + d (where d>0d > 0).

12
New cards

What information is piggybacked with every message mm in a matrix clock system?

The matrix time mtmt.

13
New cards

What is the significance of the property mink(mti[k,l])t\text{min}_k(mt_i[k, l]) \text{≥} t in matrix clocks?

Process pip_i knows that every other process knows that plp_l's local time has progressed until tt, allowing for the disposal of obsolete information.

14
New cards

Which mechanism does the implementation of virtual time use for organizing and synchronizing distributed systems?

The Time Warp mechanism.

15
New cards

On what optimistic assumption does the Time Warp mechanism rely?

That synchronization conflicts and rollbacks generally occur rarely.

16
New cards

How is Virtual Time defined as a coordinate system?

It is a global, one-dimensional, temporal coordinate system on a distributed computation used to measure computational progress and define synchronization.

17
New cards

What are the four components that characterize every message in a virtual time system?

The name of the sender, the virtual send time, the name of the receiver, and the virtual receive time.

18
New cards

State Semantic Rule 1 for virtual time systems.

Virtual send time of each message<Virtual receive time of that message\text{Virtual send time of each message} < \text{Virtual receive time of that message}.

19
New cards

State Semantic Rule 2 for virtual time systems.

Virtual time of each event in a process<Virtual time of next event in that process\text{Virtual time of each event in a process} < \text{Virtual time of next event in that process}.

20
New cards

What happens in a Virtual Time system if a message's virtual receive time is less than the local virtual time at the receiver?

A conflict is discovered and offending processes are rolled back.

21
New cards

What is the relationship between the Time Warp mechanism and Lamport's logical clock scheme?

Time Warp is an inverse of Lamport's scheme.

22
New cards

What is the role of the global control mechanism in the Time Warp implementation of virtual time?

It handles global issues such as global progress, termination detection, I/O error handling, and flow control.

23
New cards

Why do physical clocks in distributed systems require periodic synchronization?

Because clocks tick at different rates and can drift seconds per day, accumulating errors over time.

24
New cards

To what accurate real-time standard are physical clocks typically synchronized?

UTCUTC (Universal Coordinated Time).

25
New cards

What is the formula representing the specification for a physical timer working correctly with a maximum skew rate ρ\rho?

1ρdCdt1+ρ1 - \rho \text{≤} \frac{dC}{dt} \text{≤} 1 + \rho

26
New cards

Which protocol is widely used for clock synchronization on the Internet and employs the Offset Delay Estimation method?

NTPNTP (Network Time Protocol).

27
New cards

In the hierarchy of NTP time servers, what is the role of the primary server?

The primary server at the root synchronizes directly with UTCUTC.

28
New cards

How are the clock offset θ\theta and roundtrip delay ρ\rho estimated in NTP if the differential delay is small?

θ=a+b2\theta = \frac{a + b}{2} and ρ=ab2\rho = \frac{a - b}{2}, where a=T1T3a = T_1 - T_3 and b=T2T4b = T_2 - T_4.

29
New cards

What is the estimated offset OiO_i between A's clock and B's clock in NTP?

Oi=Ti2Ti3+Ti1Ti2O_i = \frac{T_{i - 2} - T_{i - 3} + T_{i - 1} - T_i}{2}

30
New cards

What is the estimated round-trip delay DiD_i in NTP symmetric mode?

Di=(TiTi3)(Ti1Ti2)D_i = (T_i - T_{i - 3}) - (T_{i - 1} - T_{i - 2})

31
New cards

Why are logical clocks preferred over physical clocks for capturing causality in distributed systems?

Because the rate of event occurrence is much higher than physical clock precision, and physical clocks are only loosely synchronized.

32
New cards

How is the global state GSGS of a distributed system defined notationally?

GS=iLSi,i,jSCijGS = \text{∪}_i LS_i, \text{∪}_{i, j} SC_{ij}, where LSiLS_i is the local state of process ii and SCijSC_{ij} is the state of the channel from ii to jj.

33
New cards

What defines a strongly consistent global state?

A global state that is both consistent and transitless.

34
New cards

What is a "cut" in a space-time diagram?

A zigzag line joining one arbitrary point on each process line that slices the diagram into a PAST and a FUTURE.

35
New cards

What characterizes a consistent cut in a space-time diagram?

Every message received in the PAST of the cut was also sent in the PAST of that cut.

36
New cards

State the consistency condition C2 for a global state recording.

send(mij)LSimijSCij∧rec(mij)LSj\text{send}(m_{ij}) \text{∈} LS_i \text{⇐} m_{ij} \text{∈} SC_{ij} \text{∧} \text{rec}(m_{ij}) \text{∈} LS_j

37
New cards

What control message is used by the Chandy-Lamport algorithm for FIFO channels to separate messages?

A marker.

38
New cards

When does the Chandy-Lamport algorithm terminate for a process?

After the process has received a marker on all of its incoming channels.

39
New cards

What is the message complexity for a single instance of the Chandy-Lamport snapshot algorithm?

O(e)O(e) messages, where ee is the number of edges in the network.

40
New cards

What are the three basic approaches for distributed mutual exclusion?

Non-token based, Quorum based, and Token based.

41
New cards

Define the safety property of a mutual exclusion algorithm.

Only one process can execute the critical section at any given instant.

42
New cards

What is the formula for system throughput in mutual exclusion?

system throughput=1SD+E\text{system throughput} = \frac{1}{SD + E}, where SDSD is synchronization delay and EE is average critical section execution time.

43
New cards

In Lamport’s mutual exclusion algorithm, when is a process allowed to enter the critical section?

When it has received messages with higher timestamps from all other sites (L1L1) and its request is at the top of its own request queue (L2L2).

44
New cards

What is the message complexity per critical section execution for the Ricart-Agrawala algorithm?

2(N1)2(N - 1) messages.

45
New cards

In Maekawa’s algorithm, what is the required size of a request set (quorum) for NN sites?

K≈√NK \text{≈} \text{√}N

46
New cards

Which message types does Maekawa’s algorithm use to handle deadlocks?

FAILEDFAILED, INQUIREINQUIRE, and YIELDYIELD.

47
New cards

In the Agarwal-El Abbadi algorithm, how are sites logically organized?

Into a complete binary tree.

48
New cards

What is the best-case scenario size for a tree-structured quorum in the Agarwal-El Abbadi algorithm?

O(log n)O(\text{log } n) sites.

49
New cards

What property is exhibited by the tree quorum algorithm when it can still form a quorum despite site failures less than log n\text{log } n?

Graceful degradation.

50
New cards

In a token-based mutual exclusion algorithm, how is mutual exclusion fundamentally ensured?

By the uniqueness of the token (PRIVILEGE message).