Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very interested to try this out #8

Open
mdhuynh opened this issue Jan 5, 2022 · 13 comments
Open

Very interested to try this out #8

mdhuynh opened this issue Jan 5, 2022 · 13 comments

Comments

@mdhuynh
Copy link

mdhuynh commented Jan 5, 2022

Hello,

I'm very interested to try this out. Is there a guide for installation for this mptcpanalyzer? And also which kernel version or OS you are using to make it work properly?
Any guidance would be greatly appreciated!

@teto
Copy link
Owner

teto commented Jan 5, 2022

Depends what you want to do, I suppose it is for mptcp analysis. How familiar are you with haskell ? the annoying bit right now is that I forked one of the dependency but it should be possible to make it work.

You need to install ghc and cabal on your computer (what distrib ?).
1/ Clone the repo
2/ move to the mptcpanalyzer subfolder cd mptcpanalyzer
3/ then run cabal build
4/ cabal run mptcpanalyzer should launch the program

This has been a huge task to rewrite mptcpanalyzer in haskell so I am glad to help anyone wanting to try and who can help me find bugs :p

@mdhuynh
Copy link
Author

mdhuynh commented Jan 5, 2022

image
Hello, thank you so much, after playing around, I got cabal 3.6.2.0 working (ghcup helps a lot). However, I got the above message, should I install the exact version of cabal 3.0.0.0 to make this work.

@teto
Copy link
Owner

teto commented Jan 5, 2022

I see, will try to fix this within 24h.

@teto
Copy link
Owner

teto commented Jan 6, 2022

does it compile with this branch #15 ?

@mdhuynh
Copy link
Author

mdhuynh commented Jan 6, 2022

Thank you so much for the PR
First encountered bug: Failed to build zlib-0.6.2.3: sudo apt-get install zlib1g-dev seems to fix the issue.
Second bug: Failed to build cairo-0.13.8.1: sudo apt-get install libcairo2-dev
After this, I got this message:
image

@teto
Copy link
Owner

teto commented Jan 6, 2022

I see, it asks for the linux kernel headers. Maybe try with sudo apt install linux-headers-$(uname -r) I will fix the nix package since this is the most reproducible builder. I will try to see if I can embed the header in the package too so that it's easier to compile (while keeping the ability to override them).

@mdhuynh
Copy link
Author

mdhuynh commented Jan 6, 2022

Hi, thank you for your reply
I still get the same error message:

<no location info>: error:
    module ‘Net.Mptcp.Upstream.Constants’ cannot be found locally
cabal: Failed to build mptcp-pm-0.0.5 (which is required by exe:mptcpanalyzer
from mptcpanalyzer-0.0.2.0).

I can wait for the nix package as well. Thank you so much!

@teto
Copy link
Owner

teto commented Jan 16, 2022

I've added the header file in the PR and the build system should pick it up automatically if you can try again

@mdhuynh
Copy link
Author

mdhuynh commented Jan 17, 2022

Hello, thank you so much again for your help!
I think I sucessfully installed it:
image
If I run into any issues when using it, I will let you know

@teto
Copy link
Owner

teto commented Jan 17, 2022

yes it worked \o/
You are the first user, there are many things that can be wrong so dont hesitate to make a list.
I am trying to write a few guides https://teto.github.io/tags/mptcp.html

@mdhuynh
Copy link
Author

mdhuynh commented Jan 18, 2022

image
I encountered this when running mptcp-summary --full 0

@teto
Copy link
Owner

teto commented Jan 23, 2022

I pushed a fix but the stats are wrong. I need to double check with wireshark + fix the precision / print the units.

Mptcp stats towards  :
- Duration: 50.869754285s (from Timestamp 0.0 to Timestamp 50.869754285)
- Goodput 3.1649455017610375B/s
- Applicative Bytes : Bytes 161B
Subflow stats:
stream StreamId 0: transferred 308.0 out of Bytes 161 between 5.211195538 end time: 50.869754285 , accounting for 1.91 %
stream StreamId 2: transferred 0.0 out of Bytes 161 between 6.235584666 end time: 50.803757013 , accounting for 0.00 %
stream StreamId 6: transferred 0.0 out of Bytes 161 between 7.943047833 end time: 45.887953648999996 , accounting for 0.00 %
stream StreamId 4: transferred 4.294967295e9 out of Bytes 161 between 0.0 end time: 0.0 , accounting for 26676815.50 %

Will try to do this thursday.

@teto
Copy link
Owner

teto commented Feb 1, 2022

I've fixed a bunch of these issues in #18 . Let me know if you have other comments/needs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants