UDP Testbench
The UDP Testbench is a collection of C programs that sends and receives
UDP Datagrams over the network. It is very useful in testing network
applications that is implemented in the UDP level.
Installation
The toolkit is available via CVS. You can checkout the sources with:
cvs -d /project/arl/fpx/cvsroot co udptestbench
You can also download the distribution file
udptestbench.tar.gz.
To compile the programs, just type make.
Description
The tools are also described in the technical report about the
FPX KCPSM Module. They take in the .TBP file
that uses UDP protocol generated by the
IPTESTBENCH as input.
The following tools are available:
- send Creates a socket, binds it to the source port, and sends
the payload to the destination IP Address / port.
- recv Creates a socket, binds it to the source port, and receives
the payload from that port.
- udptest Sends and receives a KCPSM program packet. It can be
modified to do other tasks.
- udpstr Sends and receives a KCPSM data packet. It allows the user
to enter the string that he wants to send. It can be
modified to do other tasks.
The TBP (test-bench pattern) file format contains blocks of data in hex values.
Every data block starts with ! followed by a keyword. Because
this package sends and receives UDP datagrams only, the keyword must be
!UDP.
An example TBP file that uses the UDP protocol is shown below:
# example UDP datagram
# UDP block, will be prepended by an UDP header
# parameter: ip-address, dest-port, src-port
!UDP 192.168.10.1 7 64000
00000001
48656C6C
6F000000