-
Notifications
You must be signed in to change notification settings - Fork 121
hping3 rtt >> sockperf latency #106
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
Comments
Hi Vikrantsingh, Two main differences between hping3 and Sockperf:
Below captures for both hping3 and Sockperf: Hping3 capture for 5 iterations: “sudo hping3 -S -p 22 11.4.3.33 -c 5”: 21:21:13.822505 IP 11.4.3.32.enl-name > 11.4.3.33.ssh: Flags [S], seq 1159970548, win 512, length 0 21:21:14.822622 IP 11.4.3.32.musiconline > 11.4.3.33.ssh: Flags [S], seq 457729767, win 512, length 0 21:21:15.822730 IP 11.4.3.32.fhsp > 11.4.3.33.ssh: Flags [S], seq 1374506466, win 512, length 0 21:21:16.822836 IP 11.4.3.32.oracle-vp2 > 11.4.3.33.ssh: Flags [S], seq 595293511, win 512, length 0 Part of Sockperf capture for : “sockperf ping-pong -i 11.4.3.32 -p 8302 --pps=max --tcp”: • We recommend to use 50K Messages Per Second in order not to impact latency by cache warmup hping3 and Sockperf output is shown below: Hping3 output: --- 11.4.3.33 hping statistic --- Sockperf output: [ 0] IP = 11.4.3.32 PORT = 8302 # TCP Please note that "sockperf.bin ping-pong -i 10.1.0.8 -p 8302 -t 15 --pps=max" is for UDP while for TCP you need to pass "--tcp". Thanks |
Thank you for insight. |
I tried to run tcp hping3
sudo hping3 -S -p 22 10.1.0.8 -c 5
HPING 10.1.0.8 (eth0 10.1.0.8): S set, 40 headers + 0 data bytes
len=44 ip=10.1.0.8 ttl=64 DF id=0 sport=22 flags=SA seq=0 win=29200 rtt=1.6 ms
len=44 ip=10.1.0.8 ttl=64 DF id=0 sport=22 flags=SA seq=1 win=29200 rtt=3.9 ms
len=44 ip=10.1.0.8 ttl=64 DF id=0 sport=22 flags=SA seq=2 win=29200 rtt=6.0 ms
len=44 ip=10.1.0.8 ttl=64 DF id=0 sport=22 flags=SA seq=3 win=29200 rtt=4.4 ms
len=44 ip=10.1.0.8 ttl=64 DF id=0 sport=22 flags=SA seq=4 win=29200 rtt=11.9 ms
--- 10.1.0.8 hping statistic ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.6/5.5/11.9 ms
If I measure latency using sockperf tool avg latency is getting ~ 0.5ms
(sockperf.bin ping-pong -i 10.1.0.8 -p 8302 -t 15 --pps=max )
Does internal way of measuring tcp rtt from hping3 and tcp latency from sockperf same?
Am I doing anything wrong here?
Could you please help with this issue?
The text was updated successfully, but these errors were encountered: