The parties involved in this project are
(a) a coordinator who communicates to the attackers a time of attack
(b) attackers who serve as clients to open a connection to the server and
(c) the server, who allows TCP connections on some designated port. The objective of the attackers is to open a TCP connection (each) to the server at as close a time to the time specified by the coordinator as possible.
Notice that for this functionality to be supported the attackers must be in server mode (listening on a port) until they hear from the coordinator and then they switch to being in client mode, connecting to the server at the specified time.
Demonstrate that your program works by using one coordinator, 4 clients and a server. Record the times of opening the connections at the server as accurately as you can. Keep each connection alive 10-30 seconds to allow overlap between connections. Have the server write the log of connections to a file.
Instructions for submitting assignment 2 Submit the programs using the following command:
Grading
Program works correctly : 50%
quality of code and in-line documentation : 25%
report : 25%
NOTE: Late submissions get no credit.
Copying, teamwork
Copying of programs (also written homeworks and exams) or teamwork on an assignment (written or programming) is not permitted. No form of copying is tolerated in this (or any) course, in accordance with departmental policy.