casaroli opened a new pull request, #4145:
URL: https://github.com/apache/nuttx-apps/pull/4145

   depends-on: apache/nuttx#22355
   
   ## Summary
   
   `cmocka_net_tun` gets a second case, `test_tun_tcp_partack`. The peer sends 
an MSS of 256 bytes and opens a window of two segments. It ignores the first 
transmission of each segment. Of the segments that come again after a timeout, 
it keeps only the first one, and acknowledges it when no segment comes for 100 
ms. So at each timeout the peer acknowledges one segment, but not all the data 
sent. After `CONFIG_NET_TCP_MAXRTX` + 2 rounds the window opens. The server 
must send every byte at its own sequence number, the whole stream and the FIN, 
and no RST.
   
   With TCP write buffers, NuttX set the retry count of the connection to zero 
only when an ACK covered the last segment sent. So the timeout doubled at each 
round, and the connection was reset after `TCP_MAXRTX` timeouts. 
apache/nuttx#22355 fixes that. The review of apache/nuttx#22132 asked for this 
case.
   
   ## Impact
   
   Test only: one more case in `cmocka_net_tun` (`CONFIG_TESTING_NET_TUN`). The 
first case sends the same MSS as before (1460). The two cases take about one 
minute.
   
   ## Testing
   
   qemu-armv8a:knsh (kernel build) under QEMU TCG, 1 CPU, 3 runs in one boot, 
and qemu-intel64:knsh_romfs (kernel build) under QEMU KVM, 1 run. TCP write 
buffers, 96 IOBs of 196 bytes, `NET_TUN_PKTSIZE` 1500. NuttX master 4f8706c4b35.
   
   | Case | NuttX master | NuttX master + apache/nuttx#22355 |
   |---|---|---|
   | `test_tun_tcp_partack`, arm64 | FAIL 3 of 3 (`5 != 10`: 5 of 10 rounds in 
the time limit) | PASS 3 of 3 |
   | `test_tun_tcp_partack`, x86_64 | FAIL (`5 != 10`) | PASS |
   | `test_tun_tcp_lossy`, both | PASS | PASS |
   
   Builds with `-Werror` in the NuttX CI image: qemu-armv8a:nsh and :knsh, 
rv-virt:netnsh (32-bit), qemu-intel64:knsh_romfs (CMake). `tools/checkpatch.sh 
-c -u -m -g` passes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to