-
Notifications
You must be signed in to change notification settings - Fork 233
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
Does mylg hping do something different every 100 pings? #53
Comments
hping doesn't do anything special on those requests and I have tried running a couple of tests myself and did not see this problem. However, it seems a bit.. weird that you got slow responses on request exactly 100 and 200 if its a network problem. Could you try running hping against something that doesn't have network issues? |
From further experimenting:
Feels like maybe a periodic DNS lookup or something, maybe it is an OS setting rather than hping that is causing it to be every 100. After testing, I certainly don't think it's something wrong with the library, but possibly something to know about when evaluating results. Example testing from an unaffected network:
|
@coffenbacher Thank you for experimenting. I will investigate and try to reproduce! Two questions tho: Did you only try it in docker and what are some domains that you saw this on and domains you didn't see it on? |
@coffenbacher: Im suspecting you are hitting maxclients/max requests per ip or something similar on the other end. The thing is that hping by default uses a interval set to 0s which really means it runs all the requests after each other. I think we will change this to add a longer default interval. Could you try doing the same thing and just add -i 1s and see if you get the same result? |
Hi @gummiboll, I have only tried in Docker, yes. Example affected domain: amazon.com (this and subdomains were the only ones I checked that are affected) I tried with -i 1s and also -i 5s but seemingly nothing changed (not just the problem...but nothing at all, still seemed continuous), perhaps the version on Dockerhub is out of date? It's bizarre because whatever amazon.com's network is doing with those requests happens connecting both from good networks and bad networks, but is for some reason 1000x worse on our bad network (our host told us the network apparently has a bad route to he.net at ISP level). |
Ah, good catch about dockerhub! I rarely use docker myself so haven't tried mylg in it but now I saw that mylg on Dockerhub builds against @presbrey's fork of mylg (which isn't up to date) instead of directly to this repository which is the reason -i doesn't do anything at all I believe (-i wasn't implemented in the version that was forked). I think we should resolve this first and see if running with a longer interval than 0s resolves this problem. So, @presbrey would you mind deleting your dockerhub version of mylg and maybe @mehrdadrad could register this repo in dockerhub so we don't run into this issue again? :) |
Every 100 pings we see ridiculously slow times, is mylg hping doing something different on those requests? Or is this really bizarre ISP behavior? (We're trying to diagnose some bad network problems which is why we're running this at all, so that could easily be the case).
The text was updated successfully, but these errors were encountered: