OWL Data

mflib.owl_data.convert_pcap_to_csv(pcap_files, outfile='out.csv', append_csv=False, verbose=False)

Extract data from the list of pcap files and write to one csv file.

Parameters:
  • pcap_files ([posix.Path]) – list of pcap file paths

  • outfile (str) – name of csv file

  • append_csv (bool) – whether to append data to an existing csv file of that name

  • verbose (bool) – if True, prints each line as it is appended to csv

mflib.owl_data.convert_to_df(owl_csv)

Convert CSV output from the method above to Panda Dataframe

Parameters:

owl_csv (str) – path/to/csv/file

mflib.owl_data.filter_data(df, src_ip, dst_ip)

Filter data by source and destination IPs

Parameters:
  • df (Panda Dataframe) – latency data

  • src[dst]_ip (str) – Source and destination IPv4 addresses

mflib.owl_data.get_summary(df, src_node, dst_node, src_ip=None, dst_ip=None)

Print summary of latency data collected between source and destination nodes

Parameters:
  • df (Panda Dataframe) – latency data

  • src[dst]_node (fablib.Node) – source/destination nodes

  • src[dst]_ip (str) – needed only if there are multiple experimenter IP interfaces

mflib.owl_data.graph_latency_data(df, src_node, dst_node, src_ip=None, dst_ip=None)

Graph latency data collected between source and destination nodes

Parameters:
  • df (Panda Dataframe) – latency data

  • src[dst]_node (fablib.Node) – source/destination nodes

  • src[dst]_ip (str) – needed only if there are multiple experimenter IP interfaces

mflib.owl_data.list_experiment_ip_addrs(node)

Get experimenter IPv4 addresses for each node.

Parameters:

node (fablib.Node) – Node on which IPv4 address is queried.

Returns:

a list of of IPv4 addresses assigned to node interfaces

Return type:

[ipaddress.IPv4Address,]

mflib.owl_data.list_pcap_files(root_dir)

Search recursively for pcap files under root_dir

Parameters:

root_dir (str) – Directory that will be treated as root for this search

Returns:

absolute paths for all the *.pcap files under the root_dir

Return type:

[posix.Path]