multipath-tcp / mptcp-analysis-scripts

Multipath TCP analysis scripts
GNU General Public License v3.0
9 stars 9 forks source link

Empty folders created #1

Open mdhuynh opened 2 years ago

mdhuynh commented 2 years ago

Hello,

I run into some problems trying to ./analyze -i my_script.pcap I think I got it wrong in cofig.py file, two of my sever's IP addresses are: 10.0.0.2 and 10.1.0.2 Therefore, I have a config.py file as follow:

# IP address of the proxy/server (either str or a list of str)
IP_PROXY = ['10.0.0.2', '10.1.0.2']
# Prefix of the IP addres of the proxy/server (either str or a list of str)
PREFIX_IP_PROXY = ['10.0', '10.1']
# Prefix of IPs belonging to WiFi access points
PREFIX_IP_WIFI = '192.168.'
# The password of SOCKS sessions
PASSWORD = 'My awesome password'

Is this why all the created folders (stats and graphs) return all empty? Is there a way to see the log of ./analyze.py file? Thank you so much for reading, any recommendation would be greatly appreiciated

qdeconinck commented 2 years ago

The default value of the -p parameter is somewhat misleading. You should instead call ./analyze.py -I my_script.pcap -p ''

mdhuynh commented 2 years ago

Thank you for replying,

After some debugging, I think I stuck at this and I cannot find the solution anywhere:

./analyze.py -i mptcp.pcap --p '' -M
Copying mptcp.pcap to /home/manh/mptcp-analysis-scripts/traces
Thread 0: Analyze: /home/manh/mptcp-analysis-scripts/traces/mptcp.pcap (1/1)
MPTCP trace V0.0 alpha : says Hello.
Seq graph init...
Seq graph Destroy...
Unable to open file 'net.all'
Error while loading NET addresses configuration
Wrong or missing net.all
Error of tcptrace with /home/manh/mptcp-analysis-scripts/traces/mptcp.pcap: skip process
End for file /home/manh/mptcp-analysis-scripts/traces/mptcp.pcap
Thread 0: End
End of analyze
qdeconinck commented 2 years ago

You are hitting a tstat error (https://github.com/multipath-tcp/mptcp-analysis-scripts/blob/0041e69eac9d532e5c06bdee3db4b6d3e3a546c5/tcp.py#L344). Have a look at the command being executed to understand what is going wrong.