public boolean runBandwidthTests() { // first run iperf throughput tests // Trying to send message to northwestern to show availability appendDebug("Sending HTTP GET to Northwestern"); HTTPModule http = new HTTPModule(this, null, null, null); JSONObject argt = new JSONObject(); try { argt.put("port", 6000); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } HTTPProbeResponse http_response = http.doHTTP("165.124.182.238", "", "Xfinity", argt); currentResult.http = http_response; // appendDebug("Running IPerf Tests"); // IPerfModule iperf = new IPerfModule(this, "iperf", null, null, " -P 1 -i 0.5 -f k -t 10", // "syrah.cs.northwestern.edu", 8282); // IPerfResponse iperf_response = null;//iperf.doIPerf(""); currentResult.iperf = null; // iperf_response; appendDebug("Running NDT Tests"); // now run an NDT test -- problem with NDT is that callbacks are asynchronous for some reason // spin wait for NDT to finish ... yup ... NDTModule ndt = new NDTModule(this, "ndt", null, null); Map<String, Object> ndtResult = ndt.run(); // really hope this blocks... currentResult.ndt = ndtResult; // no speed test for now // log successful results String json_result = (new Gson()).toJson(currentResult); appendDebug(json_result); // Local.appendExternalFileFromString("xfinity", EXPERIMENT_LOG_FILE, json_result, this); // reset results // currentResult = new XfinityExperimentResult(); return true; }