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
..
2023-01-14 14:05:26 +08:00
2022-05-18 07:54:17 +09:00
2022-11-24 22:57:42 +08:00
2022-07-12 11:04:39 +03:00
2022-09-26 08:04:58 +02:00
2023-01-06 16:33:13 +08:00
2022-09-22 23:33:00 +08:00
2022-11-13 09:09:36 +08:00
2022-10-22 14:50:48 +08:00
2023-01-13 16:41:10 +08:00
2022-08-26 20:58:11 +08:00
2022-11-12 18:36:09 +08:00
2022-05-18 18:40:41 +03:00
2023-01-14 14:05:26 +08:00
2022-09-06 22:46:37 +08:00
2022-10-28 00:32:16 -04:00
2022-03-12 19:24:17 +02:00
2022-11-24 22:57:42 +08:00
2022-11-24 22:57:42 +08:00
2022-05-14 00:35:29 +03:00
2022-12-03 11:47:04 +08:00
2021-07-07 03:55:41 -05:00
2023-01-03 16:28:30 +08:00
2022-12-16 22:10:59 +02:00
2023-01-14 14:05:26 +08:00
2022-12-16 22:10:59 +02:00
2022-11-13 09:09:36 +08:00
2022-05-28 16:29:51 +08:00
2022-06-07 20:15:41 +03:00
2022-10-22 14:50:48 +08:00
2022-11-14 09:34:04 +09:00
2022-12-03 11:47:04 +08:00