知识卡片
用接收水位恢复顺序
接收者分别记录已经收到的最高连续序列号,以及已经依序处理的最高序列号。先到 5、缺 4 时,先把 5 放入重排缓冲区,等 4 到达再向上层依序提交。第一条水位判断可排序范围,第二条判断重复处理。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 8. Introduction and Overview Message retransmits · 查看原书依据
If the received message has a nonconsecutive sequence number, the receiver puts it into the reordering buffer. For example, it receives a message with a sequence number 5 after receiving one with 3, and we know that 4 is
参考来源
- 位置:《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#message_order,段 133)
- 结论依据:原文用 3、5、4 的例子解释为什么必须区分收到和处理两条连续边界。
- 原始内容:If the received message has a nonconsecutive sequence number, the receiver puts it into the reordering buffer. For example, it receives a message with a sequence number 5 after receiving one with 3, and we know that 4 is