Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么在 TCP 的 Go-Back-N 算法中窗口大小(N)必须小于序列号空间(S):S>N?我试着自己弄清楚,但不要安静地得到它
假设序列空间是四个(序列号 0、1、2、3)。假设窗口大小也是 4。发送方发送 4 个数据包,序列号为 (0,1,2,3)。接收方接收所有四个数据包。所以它发送 4 个确认(0,1,2,3)。现在假设所有确认都丢失了。发送者将重新发送所有四个数据包,但接收者会认为它们是新的。为了避免由于丢失确认而引起的混淆,我们保持 n < s
Is casting from Iterable<?> to Iterable<Object> always safe?
Iterable<?>
Iterable<Object>
It looks like it is, since I can't see any way how to misuse it to produce a