-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: [Multiping] The avg_rtt and min_rtt values are sometimes negative #29
Comments
Hi, thank you for taking the time to report your issue 👍 However, I don't understand how these values can be negative. Could you tell me:
Thank you in advance for your answers 😄 From my side, I just retested on different platforms and I do not encounter this problem. |
I hope my questions didn't scare you! 😄 |
I close this issue because I don't think the problem comes from this library. Nothing could explain it at the code level. If you encounter this problem again, feel free to open a new issue. |
sorry, I see it now. |
I'm having this issue as well.. |
Hi @tkoch96! Sorry, I forgot to answer your question. The identifier and the sequence number are used to match an ICMP request and a response. In the event that you execute several pings simultaneously (threads or others), you must make sure that the identifier used is different. Concerning the sequence number, it is automatically incremented by one by the library. So you don't have to worry about this number. Why is there a difference when you run the library with or without privileges? When the library is run with root privileges and the privileged parameter is When using the library without privileges, DGRAM sockets are used. These sockets only receive the response associated with the request sent. This operation is handled by the Kernel automatically and therefore the identifier is of little use here. Otherwise, some systems such as Linux automatically replace this identifier with a random number. I hope to have answered your question 😄 |
What you said makes sense, but the problem remains that I'm seeing negative RTTs. I was trying to probe ~4k addresses every ~20s using multiping. Worked fine on Windows. |
You encounter this problem on the |
In multiping |
Can you give me the parameters passed to the Finally, can you install an older version of icmplib (1.2.2) and tell me if you still experience this behavior? pip3 uninstall icmplib
pip3 install icmplib==1.2.2 Thanks 😃 |
The |
When I test the multiping function, I get the result below:
xxx rtt: min[-4411.397] avg[-4411.397] max[0.0] lose_packet:0.5 packets_received:1
xxx rtt: min[-4625.375] avg[-3237.526] max[0.0] lose_packet:0.0 packets_received:2
Test Case like below:
The text was updated successfully, but these errors were encountered: