\section{Rep:2.a}

editcap -F libpcap team15_ex21.pcap ex21.pcap

filter out large flows (>=400 packets)

./readflows.py
% (src, dst) : (srctodst, dsttosrc)
%{('113.15.85.25', '179.160.238.111'): (463, 0),
% ('114.176.157.191', '221.72.61.209'): (541, 0),
% ('134.134.122.170', '179.187.246.122'): (419, 0),
% ('179.187.53.117', '129.49.173.82'): (472, 0),
% ('211.2.138.61', '144.66.241.253'): (462, 151),
% ('221.100.234.92', '161.194.49.146'): (547, 0),
% ('8.73.98.88', '144.66.191.77'): (535, 0)}

split into separate files

(ip.addr == 113.15.85.25 and ip.addr == 179.160.238.111) % large_flow_1.pcap
(ip.addr == 114.176.157.191 and ip.addr == 221.72.61.209) % large_flow_2.pcap
(ip.addr == 134.134.122.170 and ip.addr == 179.187.246.122) % large_flow_3.pcap
(ip.addr == 179.187.53.117 and ip.addr == 129.49.173.82) % large_flow_4.pcap
(ip.addr == 211.2.138.61 and ip.addr == 144.66.241.253) % large_flow_5.pcap
(ip.addr == 221.100.234.92 and ip.addr == 161.194.49.146) % large_flow_6.pcap
(ip.addr == 8.73.98.88 and ip.addr == 144.66.191.77) % large_flow_7.pcap

generate csv from wireshark for full pcap


