知识卡片

结构图卡 · 10384.a.2 · 生成模型:未记录

两将军与最后一条确认

理解等级:高级

两个参与者都只有在确信对方也会行动时才敢行动。每条确认可能丢失,最后的接收者知道前一条消息已发出,但最后的发送者不能确认那条确认已收到。继续发送确认会把同一不确定性推到链尾,无法建立双方所需的共同知识。

结构图:

sequenceDiagram
participant A as 甲
participant B as 乙
A->>B: 行动提议
B-->>A: 确认提议
A-->>B: 确认已收到确认
Note over A,B: 最后一条消息仍可能丢失
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 8. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch08.html#idm46104530954408,段 163) - 结论依据:原文说明任意有限轮确认后仍差一条确认,且未设通信时间上限。 - 原始内容:No matter how many further confirmations the generals send to each other, they will always be one ACK away from knowing if they can safely proceed with the attack. The generals are doomed to wonder if the message carrying this last acknowledgment has reached the destination.