[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] what wrong with my tcp?
From: |
乔崇 |
Subject: |
[lwip-users] what wrong with my tcp? |
Date: |
Fri, 7 Nov 2003 21:0:20 +0800 |
dear Sir:
My lwip send out tcp packets with tcp_write.After 30-40 packets
sents out,it halt in the tcp_write.
if (conn->type == NETCONN_TCP) {
if (tcp_sndbuf(conn->pcb.tcp) == 0) {
sys_sem_wait(conn->sem);
~~~~~~~~~~~~~~~~~~~~~~~~~halt here
if (conn->err != ERR_OK) {
goto ret;
}
It never return again.
I turn on TCP_CWND_DEBUG,the lwip stack print all those message.
tcp_output: snd_wnd 8192, cwnd 1, wnd 1, effwnd 0, seq 6509, ack 6509
tcp_output: snd_wnd 8192, cwnd 1, wnd 1, effwnd 0, seq 6509, ack 6509, i0
tcp_output: snd_wnd 5840, cwnd 2048, wnd 2048, seg == NULL, ack 6510
tcp_output: snd_wnd 5840, cwnd 2048, wnd 2048, effwnd 1460, seq 6510, ack 6510
tcp_output: snd_wnd 5840, cwnd 2048, wnd 2048, effwnd 1460, seq 6510, ack 6510,
i0
tcp_receive: slow start cwnd 3508
tcp_output: snd_wnd 5840, cwnd 3508, wnd 3508, effwnd 1460, seq 7970, ack 7970
tcp_output: snd_wnd 5840, cwnd 3508, wnd 3508, effwnd 1460, seq 7970, ack 7970,
i0
tcp_output: snd_wnd 5840, cwnd 3508, wnd 3508, effwnd 2635, seq 9430, ack 7970,
i1
tcp_receive: slow start cwnd 4968
tcp_output: snd_wnd 5840, cwnd 4968, wnd 4968, seg == NULL, ack 9430
tcp_receive: slow start cwnd 6428
tcp_output: snd_wnd 5840, cwnd 6428, wnd 5840, seg == NULL, ack 10605
tcp_output: snd_wnd 5840, cwnd 6428, wnd 5840, effwnd 589, seq 10605, ack 10605
tcp_output: snd_wnd 5840, cwnd 6428, wnd 5840, effwnd 589, seq 10605, ack
10605, i0
tcp_receive: slow start cwnd 7888
tcp_output: snd_wnd 5840, cwnd 7888, wnd 5840, seg == NULL, ack 11194
tcp_output: snd_wnd 5840, cwnd 7888, wnd 5840, effwnd 752, seq 11194, ack 11194
tcp_output: snd_wnd 5840, cwnd 7888, wnd 5840, effwnd 752, seq 11194, ack
11194, i0
tcp_receive: slow start cwnd 9348
tcp_output: snd_wnd 5840, cwnd 9348, wnd 5840, seg == NULL, ack 11946
tcp_output: snd_wnd 5840, cwnd 9348, wnd 5840, effwnd 1124, seq 11946, ack 11946
tcp_output: snd_wnd 5840, cwnd 9348, wnd 5840, effwnd 1124, seq 11946, ack
11946, i0
tcp_receive: slow start cwnd 10808
tcp_output: snd_wnd 5840, cwnd 10808, wnd 5840, seg == NULL, ack 13070
tcp_output: snd_wnd 5840, cwnd 10808, wnd 5840, effwnd 880, seq 13070, ack 13070
tcp_output: snd_wnd 5840, cwnd 10808, wnd 5840, effwnd 880, seq 13070, ack
13070, i0
tcp_receive: slow start cwnd 12268
tcp_output: snd_wnd 5840, cwnd 12268, wnd 5840, seg == NULL, ack 13950
tcp_output: snd_wnd 5840, cwnd 12268, wnd 5840, effwnd 792, seq 13950, ack 13950
tcp_output: snd_wnd 5840, cwnd 12268, wnd 5840, effwnd 792, seq 13950, ack
13950, i0
tcp_receive: slow start cwnd 13728
tcp_output: snd_wnd 5840, cwnd 13728, wnd 5840, seg == NULL, ack 14742
tcp_output: snd_wnd 5840, cwnd 13728, wnd 5840, effwnd 732, seq 14742, ack 14742
tcp_output: snd_wnd 5840, cwnd 13728, wnd 5840, effwnd 732, seq 14742, ack
14742, i0
tcp_receive: slow start cwnd 15188
tcp_output: snd_wnd 5840, cwnd 15188, wnd 5840, seg == NULL, ack 15474
tcp_output: snd_wnd 5840, cwnd 15188, wnd 5840, effwnd 772, seq 15474, ack 15474
tcp_output: snd_wnd 5840, cwnd 15188, wnd 5840, effwnd 772, seq 15474, ack
15474, i0
tcp_receive: slow start cwnd 16648
tcp_output: snd_wnd 5840, cwnd 16648, wnd 5840, seg == NULL, ack 16246
tcp_output: snd_wnd 5840, cwnd 16648, wnd 5840, effwnd 852, seq 16246, ack 16246
tcp_output: snd_wnd 5840, cwnd 16648, wnd 5840, effwnd 852, seq 16246, ack
16246, i0
tcp_receive: slow start cwnd 18108
tcp_output: snd_wnd 5840, cwnd 18108, wnd 5840, seg == NULL, ack 17098
tcp_output: snd_wnd 5840, cwnd 18108, wnd 5840, effwnd 844, seq 17098, ack 17098
tcp_output: snd_wnd 5840, cwnd 18108, wnd 5840, effwnd 844, seq 17098, ack
17098, i0
tcp_receive: slow start cwnd 19568
tcp_output: snd_wnd 5840, cwnd 19568, wnd 5840, seg == NULL, ack 17942
tcp_output: snd_wnd 5840, cwnd 19568, wnd 5840, effwnd 772, seq 17942, ack 17942
tcp_output: snd_wnd 5840, cwnd 19568, wnd 5840, effwnd 772, seq 17942, ack
17942, i0
tcp_receive: slow start cwnd 21028
tcp_output: snd_wnd 5840, cwnd 21028, wnd 5840, seg == NULL, ack 18714
tcp_output: snd_wnd 5840, cwnd 21028, wnd 5840, effwnd 684, seq 18714, ack 18714
tcp_output: snd_wnd 5840, cwnd 21028, wnd 5840, effwnd 684, seq 18714, ack
18714, i0
tcp_receive: congestion avoidance cwnd 21129
tcp_output: snd_wnd 5840, cwnd 21129, wnd 5840, seg == NULL, ack 19398
tcp_output: snd_wnd 5840, cwnd 21129, wnd 5840, effwnd 492, seq 19398, ack 19398
tcp_output: snd_wnd 5840, cwnd 21129, wnd 5840, effwnd 492, seq 19398, ack
19398, i0
tcp_receive: congestion avoidance cwnd 21229
tcp_output: snd_wnd 5840, cwnd 21229, wnd 5840, seg == NULL, ack 19890
tcp_output: snd_wnd 5840, cwnd 21229, wnd 5840, effwnd 448, seq 19890, ack 19890
tcp_output: snd_wnd 5840, cwnd 21229, wnd 5840, effwnd 448, seq 19890, ack
19890, i0
tcp_receive: congestion avoidance cwnd 21329
tcp_output: snd_wnd 5840, cwnd 21329, wnd 5840, seg == NULL, ack 20338
tcp_output: snd_wnd 5840, cwnd 21329, wnd 5840, effwnd 968, seq 20338, ack 20338
tcp_output: snd_wnd 5840, cwnd 21329, wnd 5840, effwnd 968, seq 20338, ack
20338, i0
tcp_receive: congestion avoidance cwnd 21428
tcp_output: snd_wnd 5840, cwnd 21428, wnd 5840, seg == NULL, ack 21306
tcp_output: snd_wnd 5840, cwnd 21428, wnd 5840, effwnd 924, seq 21306, ack 21306
tcp_output: snd_wnd 5840, cwnd 21428, wnd 5840, effwnd 924, seq 21306, ack
21306, i0
tcp_receive: congestion avoidance cwnd 21527
tcp_output: snd_wnd 5840, cwnd 21527, wnd 5840, seg == NULL, ack 22230
tcp_output: snd_wnd 5840, cwnd 21527, wnd 5840, effwnd 788, seq 22230, ack 22230
tcp_output: snd_wnd 5840, cwnd 21527, wnd 5840, effwnd 788, seq 22230, ack
22230, i0
tcp_receive: congestion avoidance cwnd 21626
tcp_output: snd_wnd 5840, cwnd 21626, wnd 5840, seg == NULL, ack 23018
tcp_output: snd_wnd 5840, cwnd 21626, wnd 5840, effwnd 924, seq 23018, ack 23018
tcp_output: snd_wnd 5840, cwnd 21626, wnd 5840, effwnd 924, seq 23018, ack
23018, i0
tcp_receive: congestion avoidance cwnd 21724
tcp_output: snd_wnd 5840, cwnd 21724, wnd 5840, seg == NULL, ack 23942
tcp_output: snd_wnd 5840, cwnd 21724, wnd 5840, effwnd 652, seq 23942, ack 23942
tcp_output: snd_wnd 5840, cwnd 21724, wnd 5840, effwnd 652, seq 23942, ack
23942, i0
tcp_receive: congestion avoidance cwnd 21822
tcp_output: snd_wnd 5840, cwnd 21822, wnd 5840, seg == NULL, ack 24594
tcp_output: snd_wnd 5840, cwnd 21822, wnd 5840, effwnd 552, seq 24594, ack 24594
tcp_output: snd_wnd 5840, cwnd 21822, wnd 5840, effwnd 552, seq 24594, ack
24594, i0
tcp_receive: congestion avoidance cwnd 21919
tcp_output: snd_wnd 5840, cwnd 21919, wnd 5840, seg == NULL, ack 25146
tcp_output: snd_wnd 5840, cwnd 21919, wnd 5840, effwnd 584, seq 25146, ack 25146
tcp_output: snd_wnd 5840, cwnd 21919, wnd 5840, effwnd 584, seq 25146, ack
25146, i0
tcp_receive: congestion avoidance cwnd 22016
tcp_output: snd_wnd 5840, cwnd 22016, wnd 5840, seg == NULL, ack 25730
tcp_output: snd_wnd 5840, cwnd 22016, wnd 5840, effwnd 712, seq 25730, ack 25730
tcp_output: snd_wnd 5840, cwnd 22016, wnd 5840, effwnd 712, seq 25730, ack
25730, i0
tcp_receive: congestion avoidance cwnd 22112
tcp_output: snd_wnd 5840, cwnd 22112, wnd 5840, seg == NULL, ack 26442
tcp_output: snd_wnd 5840, cwnd 22112, wnd 5840, effwnd 876, seq 26442, ack 26442
tcp_output: snd_wnd 5840, cwnd 22112, wnd 5840, effwnd 876, seq 26442, ack
26442, i0
tcp_receive: congestion avoidance cwnd 22208
tcp_output: snd_wnd 5840, cwnd 22208, wnd 5840, seg == NULL, ack 27318
tcp_output: snd_wnd 5840, cwnd 22208, wnd 5840, effwnd 916, seq 27318, ack 27318
tcp_output: snd_wnd 5840, cwnd 22208, wnd 5840, effwnd 916, seq 27318, ack
27318, i0
tcp_receive: congestion avoidance cwnd 22303
tcp_output: snd_wnd 5840, cwnd 22303, wnd 5840, seg == NULL, ack 28234
tcp_output: snd_wnd 5840, cwnd 22303, wnd 5840, effwnd 912, seq 28234, ack 28234
tcp_output: snd_wnd 5840, cwnd 22303, wnd 5840, effwnd 912, seq 28234, ack
28234, i0
tcp_receive: congestion avoidance cwnd 22398
tcp_output: snd_wnd 5840, cwnd 22398, wnd 5840, seg == NULL, ack 29146
tcp_output: snd_wnd 5840, cwnd 22398, wnd 5840, effwnd 808, seq 29146, ack 29146
tcp_output: snd_wnd 5840, cwnd 22398, wnd 5840, effwnd 808, seq 29146, ack
29146, i0
tcp_receive: congestion avoidance cwnd 22493
tcp_output: snd_wnd 5840, cwnd 22493, wnd 5840, seg == NULL, ack 29954
tcp_output: snd_wnd 5840, cwnd 22493, wnd 5840, effwnd 676, seq 29954, ack 29954
tcp_output: snd_wnd 5840, cwnd 22493, wnd 5840, effwnd 676, seq 29954, ack
29954, i0
tcp_receive: congestion avoidance cwnd 22587
tcp_output: snd_wnd 5840, cwnd 22587, wnd 5840, seg == NULL, ack 30630
tcp_output: snd_wnd 5840, cwnd 22587, wnd 5840, effwnd 568, seq 30630, ack 30630
tcp_output: snd_wnd 5840, cwnd 22587, wnd 5840, effwnd 568, seq 30630, ack
30630, i0
tcp_receive: congestion avoidance cwnd 22681
tcp_output: snd_wnd 5840, cwnd 22681, wnd 5840, seg == NULL, ack 31198
tcp_output: snd_wnd 5840, cwnd 22681, wnd 5840, effwnd 640, seq 31198, ack 31198
tcp_output: snd_wnd 5840, cwnd 22681, wnd 5840, effwnd 640, seq 31198, ack
31198, i0
tcp_receive: congestion avoidance cwnd 22774
tcp_output: snd_wnd 5840, cwnd 22774, wnd 5840, seg == NULL, ack 31838
tcp_output: snd_wnd 5840, cwnd 22774, wnd 5840, effwnd 768, seq 31838, ack 31838
tcp_output: snd_wnd 5840, cwnd 22774, wnd 5840, effwnd 768, seq 31838, ack
31838, i0
tcp_receive: congestion avoidance cwnd 22867
tcp_output: snd_wnd 5840, cwnd 22867, wnd 5840, seg == NULL, ack 32606
tcp_output: snd_wnd 5840, cwnd 22867, wnd 5840, effwnd 1076, seq 32606, ack
32606
tcp_output: snd_wnd 5840, cwnd 22867, wnd 5840, effwnd 1076, seq 32606, ack
32606, i0
tcp_receive: congestion avoidance cwnd 22960
tcp_output: snd_wnd 5840, cwnd 22960, wnd 5840, seg == NULL, ack 33682
tcp_output: snd_wnd 5840, cwnd 22960, wnd 5840, effwnd 696, seq 33682, ack 33682
tcp_output: snd_wnd 5840, cwnd 22960, wnd 5840, effwnd 696, seq 33682, ack
33682, i0
tcp_receive: congestion avoidance cwnd 23052
tcp_output: snd_wnd 5840, cwnd 23052, wnd 5840, seg == NULL, ack 34378
tcp_output: snd_wnd 5840, cwnd 23052, wnd 5840, effwnd 896, seq 34378, ack 34378
tcp_output: snd_wnd 5840, cwnd 23052, wnd 5840, effwnd 896, seq 34378, ack
34378, i0
tcp_receive: congestion avoidance cwnd 23144
tcp_output: snd_wnd 5840, cwnd 23144, wnd 5840, seg == NULL, ack 35274
tcp_output: snd_wnd 5840, cwnd 23144, wnd 5840, effwnd 764, seq 35274, ack 35274
tcp_output: snd_wnd 5840, cwnd 23144, wnd 5840, effwnd 764, seq 35274, ack
35274, i0
tcp_receive: congestion avoidance cwnd 23236
tcp_output: snd_wnd 5840, cwnd 23236, wnd 5840, seg == NULL, ack 36038
tcp_output: snd_wnd 5840, cwnd 23236, wnd 5840, effwnd 764, seq 36038, ack 36038
tcp_output: snd_wnd 5840, cwnd 23236, wnd 5840, effwnd 764, seq 36038, ack
36038, i0
tcp_receive: congestion avoidance cwnd 23327
tcp_output: snd_wnd 5840, cwnd 23327, wnd 5840, seg == NULL, ack 36802
tcp_output: snd_wnd 5840, cwnd 23327, wnd 5840, effwnd 664, seq 36802, ack 36802
tcp_output: snd_wnd 5840, cwnd 23327, wnd 5840, effwnd 664, seq 36802, ack
36802, i0
tcp_receive: congestion avoidance cwnd 23418
tcp_output: snd_wnd 5840, cwnd 23418, wnd 5840, seg == NULL, ack 37466
tcp_output: snd_wnd 5840, cwnd 23418, wnd 5840, effwnd 652, seq 37466, ack 37466
tcp_output: snd_wnd 5840, cwnd 23418, wnd 5840, effwnd 652, seq 37466, ack
37466, i0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
halt,no more message
How can fix it?I am very confused now.
qiaochong
address@hidden
2003-11-07
- [lwip-users] what wrong with my tcp?,
乔崇 <=