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.
翻译:物理时钟比应用时钟更精确。 例如, 64 位 NTP 时钟可以精确到 233 微秒。 在本文中, 我们集中关注对应用无效的最不重要的位子是否可以( 一种方式) 用于跟踪事件之间的因果关系。 我们展示物理时钟中使用外部位的 PWC( 具有特性的物理时钟) 。 我们显示 PWC 功能强于时针和瞬时误差中的误差。 我们显示, 即使只有 6- 9 倍外位( 相当于 15 - 120 毫秒的精度), 也可以同时使用 PWC 来作为典型分布应用程序的物理和逻辑时钟。 PWC 的另一个重要特征是, 标准整数 < 操作可以用来比较时间戳来推断事件( 单向) 因果关系。 因此, PWC 使用物理时钟来提供因果关系信息比以前的方法灵活得多。