0

I need to test performance of UDP echo server application.

I use nping to generate traffic however nping always reports 100% packet loss no matter to which port the server returns the echo packets.

Nping works OK when I run it in ICMP mode but this does not tests the server.

Is there anything special about UDP echo packet to make it detectable by nping?

jackhab
  • 771
  • 1
  • 8
  • 21
  • There is nothing known about your UDP echo server. What makes you think that it even works, i.e. how did you test it? – Steffen Ullrich Oct 02 '22 at 15:23
  • @SteffenUllrich My server returns the same UDP payload to the source port of nping. I checked it in Wireshark. – jackhab Oct 02 '22 at 16:06
  • Could you please check with netcat, that the echoed data actually arrive at the client application? – Steffen Ullrich Oct 02 '22 at 16:13
  • Yes, the data arrives – jackhab Oct 03 '22 at 09:13
  • No idea what you are exactly doing. I've made a small UDP echo server for testing, checked nping against it and it works without packet loss. nping does not have any special requirements here. – Steffen Ullrich Oct 03 '22 at 13:58
  • Sorry if my question is not clear enough but I am asking about the the REPORT at the end of nping run. Does your nping reports 0% packet loss? What's the command line switches you run nping with? I have packets going both from and to nping but nping reports packet loss 100% – jackhab Oct 04 '22 at 14:43
  • I just test with a local udp echo server `nping --udp -p 9999 127.0.0.1`. After exit (i.e. after I end nping with ^C) I get `UDP packets sent: 3 | Rcvd: 3 | Lost: 0 (0.00%)` - so nothing lost. – Steffen Ullrich Oct 04 '22 at 15:22

0 Answers0