A simple UDP benchmark program. It consists of two programs, a server and a client. The server will simply send back any UDP packets it receives. The client will send a packet to the server and wait for the reply before sending the next one. If it doesn't get a reply within 1 second, it will send the same packet again. The result is that the server and the client will packets back and forth (hence the name). The client then prints the packet size, the total elapsed time and the bandwidth (in one direction).

Here is the source. Warning: This program comes with NO documentation. You have to read the source to figure out how it works. You will also need a GNUmakerules and a GNUmakevars file to use the supplied GNUmakefile.

pingpong-1.0.tar.gz 1998-02-28

Here are some results from our network. wsrk, wifok, and titan are all HP/9000 servers connected to a switch with 100Mbit full duplex ethernet lines. caliban, posbi, and wsrx are PCs running Linux connected to the same switch with 10Mbit thinwire cable, caliban and wsrx are in the same segment, posbi is in a different one.
We can see that all results are far below the theoretical bandwidth of the connections and that the switch introduces a very noticable overhead.