发送一个长 ping(等待超时时间长)与发送多个短 ping

Sending one long ping (with big waiting timeout) vs sending multiple short pings

发送一个长 ping(等待超时时间长)和发送多个短 ping(等待超时时间短)有区别吗?

我正在用 C# 编写并使用 Ping.Send / Ping.Send 发送 ping 的异步方法,但我猜这是一个普遍的问题。

编辑

我了解到,向某些地址发送ping可能需要很长时间,并且比较不是很清楚。我真正感兴趣的是发送长ping的结果是否为假,发送多个短ping的结果的析取是否为真?

好吧,假设对于给定的服务器,ping 响应需要 1 秒才能到达。如果您发送一个超时为 2 秒的 ping,您将收到响应。但是如果你发送20个0.1秒超时的ping,你不会得到任何响应,而是20个超时。

编辑:

can the result of sending long ping be false and the disjunction of results of sending multiple short pings be true?

是的。 ping 并非 100% 可靠,例如可能有丢包或者服务器负载过重,delay/ignore 请求。