Launch the first server by typing: ./arr_serv
- Or - launch the second server by typing: ./delta_serv
The server will also generate a text file which is written to each time the program is executed. The file is called “arrData.txt” for the first server option and “deltaData.txt” for the second server option. “arrData.txt” contains a list of the time stamp of each UDP packet arrival relative to the server or target machine’s clock. “deltaData.txt” contains a list of the difference in time between when the UDP packet was received (relative to the target or server’s clock) and when the packet was sent (relative to the sender or client’s clock).
Please note that the text files "arrData.txt" and "deltaData.txt" are written to the process owner's home directory. There is a commented-out section of code to write the text files to the local machine's "tmp" directory. The author did not have permission to write to the "tmp" directory and had to write to his home directory. Writing to the home directories can impact the quality of the measured data because each write to the text file will generte network traffic. For most accurate results, write to the "tmp" directory if you have permission.
Place the following files into a single directory on the client machine:
compile the source code with: gcc –o UDP_cli UDP_cli.c
execute the client with: ./UDP_cli
After LOOP number of UDP packets have been sent, the command line prompt will be returned.