Skip to contentSkip to conversation

rare MPTCP self-test failure

MPTCP Paolo Abeni 1 participant 2 messages Mar 17, 2020 Networking MPTCP

lore
Share & tools
lore

Paolo Abeni

author
#0 lore raw

Hi all,

sharing here some results alreay presented on IRC.

I see a poll() timeout on the client side while running MP_JOIN self- tests in loop. That happens quite rarely (once every ~500 self-tests runs), like this:

---
copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
client exit code 2, server 0
\nnetns ns1-0-pjF9LD socket stat for 10000:
State Recv-Q Send-Q Local
Address:Port Peer
Address:Port
CLOSE-WAIT 1 0 10.0.1.1:10000 10.0.3.2:41501

         ts sack cubic wscale:7,7 rto:215 rtt:15/7.5 ato:40 mss:1448 rcvmss:536 advmss:1448 cwnd:10 bytes_received:1 segs_out:1 segs_in:3 send 7.7Mbps lastsnd:30699 lastrcv:30702 lastack:30078 pacing_rate 15.4Mbps rcv_space:14600 minrtt:15

\nnetns ns2-0-pjF9LD socket stat for 10000:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
FIN-WAIT-2 0 0 10.0.3.2:41501 10.0.1.1:10000 timer:(timewait,59sec,0)

TIME-WAIT 0 0 10.0.1.2:35014 10.0.1.1:10000 timer:(timewait,29sec,0)

single subflow syn[ ok ] - synack[ ok ] - ack[ ok ]
---

e.g. the MP_JOIN handshake is successful, but we miss a state change on the msk client socket.

The pcap captures shows that the server _is not_ sending the TCP fin for the MP_JOIN subflow. Due to the current mptcp_check_for_eof() hack, that causes the missing state transition (see the attached pcap capture).

Full DATA FIN support will addresses the above for good, but I was wondering why the server don't send that FIN pkt?!?

[much later the above self-question, after digging more]

It looks like we need an additional __mptcp_flush_join_list() in mptcp_shutdown(). I'll test a patch ASAP.

Cheers,

Paolo

author
#1 lore raw
Quoted 2 lines · Paolo Abeni

It looks like we need an additional __mptcp_flush_join_list() in mptcp_shutdown(). I'll test a patch ASAP.

That is not enough. We still have a race between mptcp_finish_join() and mptcp_stream_accept() if MPJ completes before accept() the MPJ subflow does not land into join_list. More patches in the work

/P