nuttx/net/tcp
chao an 22348c890b net/tcp: debug feature to drop the tx/rx packet
Add 2 configurations
1. Config to drop recived packet
CONFIG_NET_TCP_DEBUG_DROP_RECV=y
CONFIG_NET_TCP_DEBUG_DROP_RECV_PROBABILITY=50 /* Default drop probability is 1/50 */

2. Config to drop sent packet
CONFIG_NET_TCP_DEBUG_DROP_SEND=y
CONFIG_NET_TCP_DEBUG_DROP_SEND_PROBABILITY=50 /* Default drop probability is 1/50 */

Iperf2 client/server test on esp32c3:

---------------------------------------------------------
|  TCP Config            | Server | Client |            |
|-------------------------------------------------------|
|  Original              |   12   |     9  |  Mbits/sec |
|  Drop(1/50)            |  0.6   |   0.3  |  Mbits/sec |
|  Drop(1/50) + OFO/SACK |    8   |     8  |  Mbits/sec |
---------------------------------------------------------

Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-14 14:05:26 +08:00
..
Kconfig net/tcp: debug feature to drop the tx/rx packet 2023-01-14 14:05:26 +08:00
Make.defs
tcp_accept.c net: remove psock reference from connect 2022-11-24 22:57:42 +08:00
tcp_appsend.c
tcp_backlog.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
tcp_callback.c net/tcp: reprepare response buffer from unthrottle pool 2023-01-06 16:33:13 +08:00
tcp_close.c net/tcp: use independent work to free the conn instance 2022-09-22 23:33:00 +08:00
tcp_conn.c net/tcp: Avoid starting TCP sequence number 0 2022-11-13 09:09:36 +08:00
tcp_connect.c sem:remove sem default protocl 2022-10-22 14:50:48 +08:00
tcp_devpoll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
tcp_dump.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
tcp_finddev.c tcp: find bound device when laddr is ANY 2022-11-12 18:36:09 +08:00
tcp_getsockopt.c
tcp_input.c net/tcp: debug feature to drop the tx/rx packet 2023-01-14 14:05:26 +08:00
tcp_ioctl.c net: Align the prototype of sock_intf_s::si_ioctl with file_operations::ioctl 2022-09-06 22:46:37 +08:00
tcp_ipselect.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
tcp_listen.c
tcp_monitor.c net/soerr: add new _SO_CONN_SETERRNO() macro 2022-11-24 22:57:42 +08:00
tcp_netpoll.c net/soerr: add new _SO_CONN_SETERRNO() macro 2022-11-24 22:57:42 +08:00
tcp_notifier.c
tcp_recvfrom.c net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00
tcp_recvwindow.c
tcp_send_buffered.c net/tcp: Do not trigger retransmission if the new data has not been consumed. 2023-01-03 16:28:30 +08:00
tcp_send_unbuffered.c net/arp: Remove nuttx/net/arp.h 2022-12-16 22:10:59 +02:00
tcp_send.c net/tcp: debug feature to drop the tx/rx packet 2023-01-14 14:05:26 +08:00
tcp_sendfile.c net/arp: Remove nuttx/net/arp.h 2022-12-16 22:10:59 +02:00
tcp_seqno.c net/tcp: Avoid starting TCP sequence number 0 2022-11-13 09:09:36 +08:00
tcp_setsockopt.c
tcp_timer.c
tcp_txdrain.c sem:remove sem default protocl 2022-10-22 14:50:48 +08:00
tcp_wrbuffer.c Initialize global mutext/sem by NXMUTEX_INITIALIZER and SEM_INITIALIZER 2022-11-14 09:34:04 +09:00
tcp.h net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00