Network Looking Glass
Check routes and latency to other points on the Internet from our networks.
Test File
The following files are on a 1000 Mbit/sec link and contain randomized binary data (to prevent compression) which should reasonably test throughput from our network to any remote destination.
- Chicago: testfile.chi.steadfast.net
- New York: testfile.nyc.steadfast.net
Test IPs
The following IPs are on our primary network and should be used for remote ping/traceroute tests. Note: Just using steadfast.net will not work. Our web site and customer support systems are hosted on a different ASN to provide redundant access in the event of a network outage. Systems located on the secondary ASN are not intended to match the performance our primary network provides.
- Chicago: lookingglass.chi.steadfast.net
- IPv4 - 208.100.4.54
- IPv6 - 2607:f128:1:3::d
- New York: lookingglass.nyc.steadfast.net
- IPv4 - 69.162.170.5
- IPv6 - 2607:f128:400:1::d
Looking Glass (Ping/Traceroute)
ob_end_flush(); if (!preg_match("/^[a-zA-Z0-9.:-]*$/", $host)) { print "Error: Invalid characters in remote host
"; } else if ($host != "") { if (array_key_exists('network', $_POST) && $_POST['network'] == 'ipv6') { $type = "IPv6"; } else { $type = "IPv4"; } if (array_key_exists('city', $_POST) && $_POST['city'] == 'New York') { $loc = "nyc"; } else { $loc = "chi"; } if (array_key_exists('cmd', $_POST)) { if ($_POST['cmd'] == "traceroute") { print "Tracing route to $host via $type from $city...
\n\n";
$tool = "tr";
} else if ($_POST['cmd'] == "ping") {
print "Pinging $host via $type from $city...
\n\n";
$tool = "pn";
} else {
print "Error: Unsupported operation requested
";
$tool = "";
}
if ($tool != "") {
flush();
$handle = fopen($cgi[$loc] . "?tool=$tool&type=$type&host=$host", 'r');
$line = "";
if (!$handle) {
print "Internal Server Error.";
}
while ($handle) {
$char = fread($handle, 1);
if($char == "\n" || $char == "\r") {
if ($line == "__DONE__") {
if ($tool == "tr") {
print "Trace complete.";
}
break;
}
print $line . "\n";
flush();
$line = "";
} else {
$line .= $char;
}
}
fclose($handle);
print "\n";
}
}
}
?>

