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

about mptcp subflow creation question #530

Open
kangsenlu opened this issue Nov 22, 2024 · 7 comments
Open

about mptcp subflow creation question #530

kangsenlu opened this issue Nov 22, 2024 · 7 comments
Labels

Comments

@kangsenlu
Copy link

Pre-requisites
I am running ubuntu 6.8.0-1018 on a host, and openwrt 6.1.71 on another host.
I have two vpn tunnels created between those two hosts, namely tunUDP1 and tunUDP2.
I am trying to connect a ssh client on the ubuntu and a sshd server on the openwrt with mptcp connection which should create subflows through tunUDP1 and tunUDP2.
On the ubuntu, I configure two mptcp endpoints as follows:
ip mptcp endpoint 198.18.0.1 id 1 subflow dev tunUDP1
ip mptcp endpoint 198.18.016.1 id 2 subflow dev tunUDP2

The ssh command is as follows:
ssh -f -2nN -D 31204 -c aes128-ctr -m hmac-sha1 -p 31334 -o UserKnownHostsFile=/dev/null -o TCPKeepAlive=no -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=300 -o PubkeyAcceptedKeyTypes=+ssh-rsa -i /waav/bonding/mp-bonding/proxy/ssh2/id_rsa [email protected]

My question

@matttbe
Copy link
Member

matttbe commented Nov 22, 2024

Hi,

It looks like your question is missing.

Note that if you want SSH to use MPTCP, you will need to force it, e.g. using mptcpize because SSH doesn't support MPTCP natively (and don't want to...)

@kangsenlu
Copy link
Author

kangsenlu commented Nov 22, 2024 via email

@matttbe
Copy link
Member

matttbe commented Nov 23, 2024

Correct, but then what's your question? There are no questions in your initial post. Did you put it in a comment? (Did you remove the <!-- and --> signs)?

@kangsenlu
Copy link
Author

kangsenlu commented Nov 23, 2024 via email

@matttbe
Copy link
Member

matttbe commented Nov 25, 2024

My guess is that one of the subflow from 198.18.0.1 is created as the primary subflow. The other two are created because of the two mptcp endpoints being configured with the "ip mptcp endpoint add ..." command. I am surprised that two of the three subflows are duplications. It seems that mptcp subsystem is not checking for duplicated subflows.

It should. When the connection is fully established, it will check if the initial subflow is using the same address of an endpoint, and if yes, mark it as 'used'.

I see that you are re-using the old kernel from last time. Can you try with an up-to-date kernel first?

@matttbe matttbe added the feedback-needed Waiting for a reply label Dec 4, 2024
@matttbe
Copy link
Member

matttbe commented Dec 5, 2024

@kangsenlu : by chance, did you manage to check with a more recent kernel?

@kangsenlu
Copy link
Author

kangsenlu commented Dec 5, 2024 via email

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

No branches or pull requests

2 participants