Skip to contentSkip to conversation

packetdrill MP_JOIN failures

MPTCP Davide Caratti 3 participants 5 messages Aug 25, 2020 – Aug 27, 2020 Networking MPTCP

lore
Share & tools
lore

Davide Caratti

author
#0 lore raw

hello,

after commit 3960b799b496 ("mptcp: allow creating non-backup subflows"), the mp_join_client.pkt packetdrill scenario detects a mismatch in the contents of MP_JOIN SYN: when the server's additional address is transmitted through an ADD_ADDR, the client has no way to set the 'B' flag [1]. If I well understand, we can toggle the 'B' flag using the MP_PRIO suboption, but this is not yet in mptcp-net-next [2].

Given the current state of mptcp-net-next, I'm for removing the 'B' flag from the current test [2] and adding another specific test case once the support for MP_PRIO is implemented (by the way, in case nobody is already planning to do it I can have a look at it in the next days).

Any opinions/feedback appreciated, thank you in advance!

Signature · 13 lines
davide


[1] in mptcp_pm_nl_add_addr_received() "local" is memset to 0 and
local.flags is never assigned, so I think we should at least copy the
value of MPTCP_PM_ADDR_FLAG_BACKUP from the value configured by iproute.
Am I missing something?
[2] https://github.com/multipath-tcp/mptcp_net-next/issues/51
[3] clearing the 'B' flag in the MP_JOIN SYN makes the test progress until
the FIN packet, then it will fail because of known issue #69:
mp_join_client.pkt:28: error handling packet: live packet field ipv4_total_length: expected: 76 (0x4c) vs actual: 52 (0x34)
script packet:  2.238278 F. 3:3(0) ack 1 <nop,nop,TS val 4074418292 ecr 4074418293,dss dack4 16777216 dsn8 216172782113783808 ssn 0 dll 256 no_checksum flags: MmAF,nop,nop>
actual packet:  2.238122 F. 3:3(0) ack 1 win 256 <nop,nop,TS val 4074412883 ecr 4074418293>
#1 lore raw
Quoted 9 lines · Davide Caratti

hello,

after commit 3960b799b496 ("mptcp: allow creating non-backup subflows"), the mp_join_client.pkt packetdrill scenario detects a mismatch in the contents of MP_JOIN SYN: when the server's additional address is transmitted through an ADD_ADDR, the client has no way to set the 'B' flag [1]. If I well understand, we can toggle the 'B' flag using the MP_PRIO suboption, but this is not yet in mptcp-net-next [2].

Quoted 6 lines

Given the current state of mptcp-net-next, I'm for removing the 'B' flag from the current test [2] and adding another specific test case once the support for MP_PRIO is implemented (by the way, in case nobody is already planning to do it I can have a look at it in the next days).

Any opinions/feedback appreciated, thank you in advance!

That looks the easier option and is looks reasonable to me.

Additionally and not completely related, we could extend the netlink interface to let user space configure the backup flag for subflows created in response to ADD_ADDR options.

@Christoph: how does mptcp.org behave WRT the above?

Thanks!

Paolo

#2 lore raw

Hello,

Quoted 17 lines · Paolo Abeni
Quoted 9 lines · Davide Caratti

hello,

after commit 3960b799b496 ("mptcp: allow creating non-backup subflows"), the mp_join_client.pkt packetdrill scenario detects a mismatch in the contents of MP_JOIN SYN: when the server's additional address is transmitted through an ADD_ADDR, the client has no way to set the 'B' flag [1]. If I well understand, we can toggle the 'B' flag using the MP_PRIO suboption, but this is not yet in mptcp-net-next [2].

Quoted 6 lines

Given the current state of mptcp-net-next, I'm for removing the 'B' flag from the current test [2] and adding another specific test case once the support for MP_PRIO is implemented (by the way, in case nobody is already planning to do it I can have a look at it in the next days).

Any opinions/feedback appreciated, thank you in advance!

Quoted 7 lines

That looks the easier option and is looks reasonable to me.

Additionally and not completely related, we could extend the netlink interface to let user space configure the backup flag for subflows created in response to ADD_ADDR options.

@Christoph: how does mptcp.org behave WRT the above?

I'm not sure which scenario exactly you have in mind ?

Christoph

#3 lore raw
Quoted 22 lines · Christoph Paasch

Hello,

Quoted 19 lines · Paolo Abeni
Quoted 9 lines · Davide Caratti

hello,

after commit 3960b799b496 ("mptcp: allow creating non-backup subflows"), the mp_join_client.pkt packetdrill scenario detects a mismatch in the contents of MP_JOIN SYN: when the server's additional address is transmitted through an ADD_ADDR, the client has no way to set the 'B' flag [1]. If I well understand, we can toggle the 'B' flag using the MP_PRIO suboption, but this is not yet in mptcp-net-next [2].

Quoted 6 lines

Given the current state of mptcp-net-next, I'm for removing the 'B' flag from the current test [2] and adding another specific test case once the support for MP_PRIO is implemented (by the way, in case nobody is already planning to do it I can have a look at it in the next days).

Any opinions/feedback appreciated, thank you in advance!

That looks the easier option and is looks reasonable to me.

Quoted 7 lines
Quoted 5 lines

Additionally and not completely related, we could extend the netlink interface to let user space configure the backup flag for subflows created in response to ADD_ADDR options.

@Christoph: how does mptcp.org behave WRT the above?

I'm not sure which scenario exactly you have in mind ?

I mean: how does mptcp.org handle the 'backup' flag for subflow created in response to add_Addr options? is there some default behavior, or it replies on netlink/user-space?

Thanks

Paolo

#4 lore raw
Quoted 27 lines · Paolo Abeni
Quoted 26 lines · Christoph Paasch

Hello,

Quoted 23 lines · Paolo Abeni
Quoted 9 lines · Davide Caratti

hello,

after commit 3960b799b496 ("mptcp: allow creating non-backup subflows"), the mp_join_client.pkt packetdrill scenario detects a mismatch in the contents of MP_JOIN SYN: when the server's additional address is transmitted through an ADD_ADDR, the client has no way to set the 'B' flag [1]. If I well understand, we can toggle the 'B' flag using the MP_PRIO suboption, but this is not yet in mptcp-net-next [2].

Quoted 6 lines

Given the current state of mptcp-net-next, I'm for removing the 'B' flag from the current test [2] and adding another specific test case once the support for MP_PRIO is implemented (by the way, in case nobody is already planning to do it I can have a look at it in the next days).

Any opinions/feedback appreciated, thank you in advance!

That looks the easier option and is looks reasonable to me.

Additionally and not completely related, we could extend the netlink interface to let user space configure the backup flag for subflows created in response to ADD_ADDR options.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

@Christoph: how does mptcp.org behave WRT the above?

I'm not sure which scenario exactly you have in mind ?

I mean: how does mptcp.org handle the 'backup' flag for subflow created in response to add_Addr options? is there some default behavior, or it replies on netlink/user-space?

By default, the backup flag is not set on a subflow. To mark it as "backup" it depends on which PM is loaded.

For the "fullmesh", one can use "ip link set dev ethX multipath backup".

For the netlink PM, one can mark a specific local address as backup which means that a subflow using that address will get the B-flag in the MP_JOIN.

Does that clarify it?

Christoph