How to run the TCP simulator in the Eclipse development environment:

  1. Download and install the Eclipse from here: http://www.eclipse.org/


  2. Eclipse requires Java JRE 1.3 or higher. Download from here if you don't have it already: http://java.sun.com/j2se/1.4.2/download.html


  3. Download the TCP simulator code and extract somewhere, say in: C:\network\project_example\


  4. Start the Eclipse. It will ask you to enter the workspace location. Beware not to select your workspace in any parent directory (folder) of the folder where you put the example code, say, C:\network\. You could create a new directory parall to the directory where the example code is located, e.g., C:\network\my_workspace


  5. Import the TCP simulator into the workspace.
    In the File menu, select Import... , and then select Existing Project into Workspace. Here, select the root directory to search for the project. For instance, following the above examples, here you could select C:\netwok.
    The existing project, test, will be shown in the Projects box.
    Press the Finish button and all the Java files will be loaded.


  6. Run the simulator.
    In the Run menu, select Run... .
    Under the tab ¦ (x) = Arguments ¦, enter the version of the TCP sender (Tahoe / Reno / NewReno) and the number of iterations (transmission rounds) to run the example, say, Reno 160.
    Finally, hit the Run button, and the console will show the program reporting results.

Prepared by Ivan Marsic
Last updated: Tue Sep 20 17:05:01 EDT 2005