Changes between Version 71 and Version 72 of GeniTmixCalibTutorial
- Timestamp:
- 06/21/14 15:19:50 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GeniTmixCalibTutorial
v71 v72 22 22 23 23 == C. Run Tmix Script and view data files == 24 1. The image loaded on the nodes has the tmix tools already installed and in your path. Each time the system boots, a kernel module is automatically inserted to assist in simulating the packet delays. List the contents of your home directory on either node.24 1. The image loaded on the nodes has the Tmix tools already installed and in your path. Each time the system boots, a kernel module is automatically inserted to assist in simulating the packet delays. List the contents of your home directory on either node. 25 25 {{{ 26 26 ls 27 27 }}} 28 2. If you do not see a tmix.conffile in your home directory type:28 2. If you do not see a "tmix.conf" file in your home directory type: 29 29 {{{ 30 30 /local/tmix-script.sh 31 31 }}} 32 This script generates a tmix.conffile and attempts to reload the kernel module. Ignore the warning that that effect.32 This script generates a "tmix.conf" file and attempts to reload the kernel module. Ignore the warning that that effect. 33 33 34 34 3. '''Repeat''' step 2 for the other node. 35 35 36 4. Open the tmix.conffile with an editor such as vim, emacs, or nano, and browse its contents. The entries represent various settings that control a Tmix experiment. At the end of the file notice the Crecv_Trace and Cinit_Trace lines. These are the only two lines you will need to change as we run our calibration experiments.36 4. Open the "tmix.conf" file with an editor such as vim, emacs, or nano, and browse its contents. The entries represent various settings that control a Tmix experiment. At the end of the file notice the Crecv_Trace and Cinit_Trace lines. These are the only two lines you will need to change as we run our calibration experiments. 37 37 38 5. List the contents of the tmix data directory by typing the following on either node:38 5. List the contents of the Tmix data directory by typing the following on either node: 39 39 {{{ 40 40 ls /opt/tmix-1.2/data 41 41 }}} 42 A set of connection vectors is described by with a pair of tcvec files (labeled cinit.tcvec and crecv.tcvec). These two files correspond to connections that are initiated on either side of the link on which the traffic data was originally captured. Since all of the traffic crossing a busy link cannot generally be replayed using a single pair of nodes, it is customary to split the connection vectors into N pairs of tcvec files. Most of the files displayed in the listing are named 1ofN.crecv.tcvec. This is a single pair of connection vector files obtained by evenly splitting the original set of connection vectors into N parts. For example, running tmix with the pair of files, 1of10.crecv.tcvec and 1of10.cinit.tcvec, will replay about 1/10th the traffic originally recorded on the link. Below we will perform a set of experiments in which we iterate to find the point at which our pair of nodes can no longer work fast enough to simulate all the network traffic.42 A set of connection vectors is described by with a pair of tcvec files (labeled cinit.tcvec and crecv.tcvec). These two files correspond to connections that are initiated on either side of the link on which the traffic data was originally captured. Since all of the traffic crossing a busy link cannot generally be replayed using a single pair of nodes, it is customary to split the connection vectors into N pairs of tcvec files. Most of the files displayed in the listing are named 1ofN.crecv.tcvec. This is a single pair of connection vector files obtained by evenly splitting the original set of connection vectors into N parts. For example, running Tmix with the pair of files, 1of10.crecv.tcvec and 1of10.cinit.tcvec, will replay about 1/10th the traffic originally recorded on the link. Below we will perform a set of experiments in which we iterate to find the point at which our pair of nodes can no longer work fast enough to simulate all the network traffic. 43 43 44 44 == D. Run Tmix Script and view data files == 45 1. Make a new directory for this experiment, change to it, and copy tmix.confthere by typing:45 1. Make a new directory for this experiment, change to it, and copy "tmix.conf" there by typing: 46 46 {{{ 47 47 mkdir 1of10 … … 63 63 }}} 64 64 on the "right" node. 65 Note that the filenames are swapped on the "right" node. All you should need to change is what is after "data/" and before ".cinit" or ".crecv". You are now ready to run the tmix experiment.65 Note that the filenames are swapped on the "right" node. All you should need to change is what is after "data/" and before ".cinit" or ".crecv". You are now ready to run the Tmix experiment. 66 66 67 4. Tmix relies upon a pre-determined start time to synchronize tmix on the two nodes. On both nodes run the following command to determine the time and date:67 4. Tmix relies upon a pre-determined start time to synchronize Tmix on the two nodes. On both nodes run the following command to determine the time and date: 68 68 {{{ 69 69 date 70 70 }}} 71 71 Note that the time may be in a different time zone. 72 Decide on a start time about a minute or two in the future, relative to the time displayed by the date command. It should be far enough in the future for you to issue the following command on both nodes and allow tmix to initialize.72 Decide on a start time about a minute or two in the future, relative to the time displayed by the date command. It should be far enough in the future for you to issue the following command on both nodes and allow Tmix to initialize. 73 73 74 74 5. Finally, execute the following command on both nodes: … … 79 79 80 80 6. Tmix on both hosts will load the data files and then wait until the designated start time. 81 You will see "Running for 720 seconds" once tmix is ready to go. When the start time arrives, Tmix will start running for 12 minutes (a 10 minute experiment plus 2 minutes of buffer). You will not see any indication on the terminal that it has started running.81 You will see "Running for 720 seconds" once Tmix is ready to go. When the start time arrives, Tmix will start running for 12 minutes (a 10 minute experiment plus 2 minutes of buffer). You will not see any indication on the terminal that it has started running. 82 82 83 7. One way to verify that tmix is running is to open another SSH terminal to either node and type:83 7. One way to verify that Tmix is running is to open another SSH terminal to either node and type: 84 84 {{{ 85 85 top 86 86 }}} 87 This shows a listing of the most active processes. You should see tmix at the top of the list once it starts. Top can also give you an indication of what percentage of the CPU tmix is using ( in the %CPU column). If you see numbers near 80% or 90% you are near the capacity of the number of connections that this pair of nodes can simulate. To exit top type 'q'.87 This shows a listing of the most active processes. You should see "tmix" at the top of the list once it starts. Top can also give you an indication of what percentage of the CPU Tmix is using ( in the %CPU column). If you see numbers near 80% or 90% you are near the capacity of the number of connections that this pair of nodes can simulate. To exit top type 'q'. 88 88 89 8. Once the experiment is complete, a list of statistics will be output to the console. Also, a set of log files with extensions .ert, .trt, .unc, .rt, and .ts will be created in the directory. While tmix runs it is customary to experience a few errors, where connections fail to open or close. It is also customary to see several errors at the end of the experiment indicating that some connections failed to close. If, however, you see a steady stream of errors, something is wrong or you are trying to simulate too much traffic. Type "Ctrl-c" on both terminals, and verify your tmix.conffile, and ensure you followed the above directions.89 8. Once the experiment is complete, a list of statistics will be output to the console. Also, a set of log files with extensions .ert, .trt, .unc, .rt, and .ts will be created in the directory. While Tmix runs it is customary to experience a few errors, where connections fail to open or close. It is also customary to see several errors at the end of the experiment indicating that some connections failed to close. If, however, you see a steady stream of errors, something is wrong or you are trying to simulate too much traffic. Type "Ctrl-c" on both terminals, and verify your "tmix.conf" file, and ensure you followed the above directions. 90 90 91 91 9. To determine the number of bytes transferred during your experiment type the following on the '''"right"''' SSH terminal: