You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/01/02 04:48:51 UTC

[GitHub] [incubator-nuttx] a-lunev opened a new pull request #5137: net/tcp(unbuffered): fast retransmit on duplicate acknowledgments

a-lunev opened a new pull request #5137:
URL: https://github.com/apache/incubator-nuttx/pull/5137


   ## Summary
   
   Fast retransmit on duplicate acknowledgments (RFC 5681).
   This PR is like PR #2414, but for unbuffered mode.
   
   ## Impact
   
   TCP
   
   ## Testing
   
   Activate emulating packet loss on Linux host:
   `$ sudo iptables -A INPUT -p tcp --dport 5471 -m statistic --mode random --probability 0.01 -j DROP`
   
   Build NuttX:
   ```
   $ ./tools/configure.sh -l sim:tcpblaster
   $ make menuconfig (disable CONFIG_NET_TCP_WRITE_BUFFERS, enable CONFIG_NETUTILS_IPERF, set CONFIG_NETUTILS_IPERFTEST_DEVNAME=eth0)
   $ make
   ```
   Enable TUN/TAP on Linux host:
   ```
   $ sudo setcap cap_net_admin+ep ./nuttx
   $ sudo ./tools/simhostroute.sh wlan0 on
   ```
   Start iperf on Linux host:
   `$ iperf -s -p 5471 -i 1 -w 416K`
   
   Run NuttX on Linux host:
   ```
   $ ./nuttx
   NuttShell (NSH) NuttX-10.2.0
   nsh> ifconfig eth0 10.0.1.2
   nsh> ifup eth0
   ifup eth0...OK
   ```
   Start Wireshark (or tcpdump) and capture appeared tap0 interface.
   
   Run iperf in NuttX:
   `nsh> iperf -c 192.168.1.68 -p 5471 -i 1 -t 60`
   
   Observe packet loss -> duplicate ACKs -> Fast Retransmit in TCP dump.
   
   Shutdown NuttX:
   `nsh> poweroff`
   
   Disable TUN/TAP on Linux host:
   `$ sudo ./tools/simhostroute.sh wlan0 off`
   
   Deactivate emulating packet loss on Linux host:
   `$ sudo iptables -D INPUT -p tcp --dport 5471 -m statistic --mode random --probability 0.01 -j DROP`


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #5137: net/tcp(unbuffered): fast retransmit on duplicate acknowledgments

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #5137:
URL: https://github.com/apache/incubator-nuttx/pull/5137


   


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org