<?
$title_in = $_GET['title_in'];
$title_list = array( "Index", "Path", "Duration", "Samples", "WCC", "WCF", "Sender",
                      "Receiver", "Start_time", "ER" );
foreach ( $title_list as $title )
{
    if ( isset( $title_in ) && strcmp( $title_in, $title ) == 0 )
        $$title = "#FFFF40";
    else
        $$title = "#E0FFFF";
}

?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Readme</title>
</head>

<body>

<h1 align=center>Help</h1>

<table border="1" cellpadding="5" style="border-collapse: collapse; font-size: 18" align="center">
  <tr bgcolor="<?=$Index?>">
    <td align="center" valign="top">
    <a name="Index"><b>Index</b></a> 
    </td>
    <td>
    Index number of a measurement record. Each measurement record is corresponding to a continuous measurement period. Clicking on the index number will lead you to the <font color=red>raw data files</font> of each record.
    </td>
  </tr>
  <tr bgcolor="<?=$Path?>">
    <td align="center" valign="top">
    <a name="Path"><b>Path</b></a>
    </td>
    <td>
    This is the identifier of the measured path. It is in the format of &lt;source host_id&gt;-&lt;destination_host_id&gt;. Clicking on it will lead you to <font color=red>graphs of spatial congestion distribution</font> across links of a path over different time-scales.
    </td>
  </tr>
  <tr bgcolor="<?=$Duration?>">
    <td align="center" valign="top">
    <a name="Duration"><b>Duration</b></a> 
    </td>
    <td>
    Duration of the measurement.
    </td>
  </tr>
  <tr bgcolor="<?=$Samples?>">
    <td align="center" valign="top">
    <a name="Samples"><b>Samples</b></a> 
    </td>
    <td>
    Total number of probe samples collected during the measurement. Each probe sample consists of a set of probes. For example, if 4-packet probing is in use, the set of probe includes an <i>f probe</i>, a <i>b probe</i>, an <i>s probe</i>, and a <i>d probe</i>.
    </td>
  </tr>
  <tr bgcolor="<?=$WCC?>">
    <td align="center" valign="top">
    <a name="WCC"><b>WCC</b></a> 
    </td>
    <td>
    This is the summarized <i>weighted congestion count</i> (WCC) of a path. Clicking on it will lead you to the <font color=red>graphs of per-link WCC trace</font>.
    </td>
  </tr>
  <tr bgcolor="<?=$WCF?>">
    <td align="center" valign="top">
    <a name="WCF"><b>WCF</b></a> 
    </td>
    <td>
    This is the summarized <i>weighted congestion frequency</i> (WCF) of a path. Clicking on it will lead you to the <font color=red>graphs of per-link WCF trace</font>. WCF is also called <i>congestion intensity</i>.
    </td>
  </tr>
  <tr bgcolor="<?=$Sender?>">
    <td align="center" valign="top">
    <a name="Sender"><b>Sender</b></a> 
    </td>
    <td>
    The sender host. Clicking on it will lead you to a directory that holds all raw measurement records of this sender.
    </td>
  </tr>
  <tr bgcolor="<?=$Receiver?>">
    <td align="center" valign="top">
    <a name="Receiver"><b>Receiver</b></a> 
    </td>
    <td>
    The receiver host. Clicking on it will lead you to a directory that holds all raw measurement records of this receiver.
    </td>
  </tr>
  <tr bgcolor="<?=$Start_time?>">
    <td align="center" valign="top">
    <a name="Start_time"><b>Start_time</b></a> 
    </td>
    <td>
    The time when a measurement starts.
    </td>
  </tr>
  <tr bgcolor="<?=$ER?>">
    <td align="center" valign="top">
    <a name="ER"><b>E.R.</b></a> 
    </td>
    <td width="500">
    End reason &#151; a code representing the reason that measurment ends. The following are meanings of codes:<br>
    0 - Unknown reason<br>
    1 - Route alteration or route change<br>
    2 - Normal quitting due to undesirable conditions<br>
    3 - No heartbeat detected for a certain period of time<br>
    4 - Ended by SIGTERM signal<br>
    5 - No heartbeat detected during router alteration tracing<br>
    6 - "pong_daemon" quits<br>
    7 - Measurement finished<br>
    </td>
  </tr>
</table>

</body>

</html>
