Commit c91780b6 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Automatically process pcaps for throughput

parent 8c514c11
......@@ -35,9 +35,7 @@ Analyze obfs4 throughput from pcap files:
3. Plot the results: Rscript plot-throughput.R download.csv
Analyze snowflake throughput from pcap files:
1. Adapt the LOG_PATH variable in snowflake-throughput.py
2. Run the script: python snowflake-throughput.py > download.csv
3. Plot the results: Rscript snowflake-throughput.R download.csv
1. Plot the results: Rscript snowflake-throughput.R snowflake-throughput.csv
Analyze snowflake reachability from log files:
1. Run the script find log -name '*.log' | sort | ./snowflake-stage.py > stage.csv
......
......@@ -25,5 +25,7 @@ case $CASE in
# Throughput/reachibility test of 100 snowflakes
"$dirname/snowflaketest"
# Process .pcap files and delete
"$dirname/snowflake-throughput.py" > snowflake-throughput.csv
rm *.pcap
;;
esac
......@@ -17,8 +17,6 @@ import time
import scapy.all as scapy
LOG_PATH="log/linux-na/20191127-1845"
# Change this to whatever client/server tuple you want to analyze.
ip_addr = "127.0.0.1"
server_port = 0
......@@ -104,8 +102,8 @@ if __name__ == "__main__":
for i in range(0,100):
test_id = i
pcap_file = ("%s/snowflake-probe-%d-lo.pcap" % (LOG_PATH, i) )
log_file = ("%s/snowflake-probe-%d.log" % (LOG_PATH, i) )
pcap_file = ("snowflake-probe-%d-lo.pcap" % i )
log_file = ("snowflake-probe-%d.log" % i )
sys.stderr.write("Processing snowflake probe %d\n" % i)
# Figure out the Socks port from the log file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment