用物理时钟实现因果关系
Achieving Causality with Physical Clocks
摘要:
物理时钟提供的精度比应用程序可以使用的精度更高。例如,64位NTP时钟允许233皮秒的精度。在本文中,我们专注于是否最低有效位是没有用的应用程序可以用来跟踪(单向)事件之间的因果关系。我们提出了PWC(物理时钟与因果关系),使用物理时钟中的无关位。我们表明,PWC是非常强大的时钟偏差和瞬态错误的错误。我们表明,PWC可以被用作一个典型的分布式应用程序的物理和逻辑时钟,即使只有6-9个无关的位(对应于15-120纳秒的精度)。PWC的另一个重要特性是标准的整数<操作可以用于比较时间戳,以推断事件之间的(单向)因果关系。因此,PWC比以前使用物理时钟提供因果关系信息的方法更加通用。
英文摘要:
Physical clocks provide more precision than applications can use. For example, a 64 bit NTP clock allows a precision of 233 picoseconds. In this paper, we focus on whether the least significant bits that are not useful to the applications could be used to track (one way) causality among events. We present PWC (Physical clock With Causality) that uses the extraneous bits in the physical clock. We show that PWC is very robust to errors in clock skew and transient errors. We show that PWC can be used as both a physical and logical clock for a typical distributed application even if just 6-9 extraneous bits (corresponding to precision of 15-120 nanoseconds) are available. Another important characteristic of PWC is that the standard integer < operation can be used to compare timestamps to deduce (one-way) causality among events. Thus, PWC is significantly more versatile than previous approaches for using the physical clock to provide causality information.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。