小盒子的小盒

LwIP+uC/OS-ii移植成功了

0
阅读(4323)

经过半个月的时间,终于把LwIP程序包成功移植到我的系统中了,并能正常运行。TCP UDP ICMP各个协议也能正常运行。。。都乖乖的在ARM中跑着,呵呵……看着屏幕的调试信息。看着服务端接收到我发的数据[TCP协议和UDP协议都能接收到],心里有点高兴,但是还是有点忧郁,这么长时间以来,我被这个东西时刻的困饶着我,就连做梦都好几次是在是修改程序。写发送信号量程序,一步一步的跟踪,什么时候该发送邮箱,什么时候该接收邮箱,每个结构体都是做什么用的,把我搞的睡觉也不塌实。。。。好几次的睡觉都是写了一夜的程序,好累好累,早上起来脑袋还处在昏沉沉的状态。。。。。。

下面就是在屏幕上打出来的调试信息。
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 6940:6950 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65105, cwnd 13267, wnd 13267, effwnd 10, seq 6940, ack 6940
tcp_output: snd_wnd 65105, cwnd 13267, wnd 13267, effwnd 10, seq 6940, ack 6940, i 0
tcp_output_segment: rtseq 6940
tcp_output_segment: 6940:6950
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
Task 2 is Running....
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000006950          | (ack no)
+-------------------------------+
|  5 |   |010000|     65095     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65095
tcp_receive: congestion avoidance cwnd 13346
tcp_receive: ACK for 6950, unacked->seqno 6940:6950
tcp_receive: removing 6940:6950 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 6940 ackno 6950
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65095, cwnd 13346, wnd 13346, seg == NULL, ack 6950
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 6950:6960 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65095, cwnd 13346, wnd 13346, effwnd 10, seq 6950, ack 6950
tcp_output: snd_wnd 65095, cwnd 13346, wnd 13346, effwnd 10, seq 6950, ack 6950, i 0
tcp_output_segment: rtseq 6950
tcp_output_segment: 6950:6960
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000006960          | (ack no)
+-------------------------------+
|  5 |   |010000|     65085     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65085
tcp_receive: congestion avoidance cwnd 13424
tcp_receive: ACK for 6960, unacked->seqno 6950:6960
tcp_receive: removing 6950:6960 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 6950 ackno 6960
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65085, cwnd 13424, wnd 13424, seg == NULL, ack 6960
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 6960:6970 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65085, cwnd 13424, wnd 13424, effwnd 10, seq 6960, ack 6960
tcp_output: snd_wnd 65085, cwnd 13424, wnd 13424, effwnd 10, seq 6960, ack 6960, i 0
tcp_output_segment: rtseq 6960
tcp_output_segment: 6960:6970
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
Task 2 is Running....
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000006970          | (ack no)
+-------------------------------+
|  5 |   |010000|     65075     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65075
tcp_receive: congestion avoidance cwnd 13502
tcp_receive: ACK for 6970, unacked->seqno 6960:6970
tcp_receive: removing 6960:6970 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 6960 ackno 6970
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65075, cwnd 13502, wnd 13502, seg == NULL, ack 6970
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 6970:6980 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65075, cwnd 13502, wnd 13502, effwnd 10, seq 6970, ack 6970
tcp_output: snd_wnd 65075, cwnd 13502, wnd 13502, effwnd 10, seq 6970, ack 6970, i 0
tcp_output_segment: rtseq 6970
tcp_output_segment: 6970:6980
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000006980          | (ack no)
+-------------------------------+
|  5 |   |010000|     65065     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65065
tcp_receive: congestion avoidance cwnd 13579
tcp_receive: ACK for 6980, unacked->seqno 6970:6980
tcp_receive: removing 6970:6980 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 6970 ackno 6980
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65065, cwnd 13579, wnd 13579, seg == NULL, ack 6980
State: ESTABLISHED
Task 2 is Running....
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 6980:6990 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65065, cwnd 13579, wnd 13579, effwnd 10, seq 6980, ack 6980
tcp_output: snd_wnd 65065, cwnd 13579, wnd 13579, effwnd 10, seq 6980, ack 6980, i 0
tcp_output_segment: rtseq 6980
tcp_output_segment: 6980:6990
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000006990          | (ack no)
+-------------------------------+
|  5 |   |010000|     65055     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65055
tcp_receive: congestion avoidance cwnd 13656
tcp_receive: ACK for 6990, unacked->seqno 6980:6990
tcp_receive: removing 6980:6990 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 6980 ackno 6990
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65055, cwnd 13656, wnd 13656, seg == NULL, ack 6990
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 6990:7000 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65055, cwnd 13656, wnd 13656, effwnd 10, seq 6990, ack 6990
tcp_output: snd_wnd 65055, cwnd 13656, wnd 13656, effwnd 10, seq 6990, ack 6990, i 0
tcp_output_segment: rtseq 6990
tcp_output_segment: 6990:7000
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007000          | (ack no)
+-------------------------------+
|  5 |   |010000|     65045     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65045
tcp_receive: congestion avoidance cwnd 13732
tcp_receive: ACK for 7000, unacked->seqno 6990:7000
tcp_receive: removing 6990:7000 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 6990 ackno 7000
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65045, cwnd 13732, wnd 13732, seg == NULL, ack 7000
State: ESTABLISHED
Task 2 is Running....
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7000:7010 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65045, cwnd 13732, wnd 13732, effwnd 10, seq 7000, ack 7000
tcp_output: snd_wnd 65045, cwnd 13732, wnd 13732, effwnd 10, seq 7000, ack 7000, i 0
tcp_output_segment: rtseq 7000
tcp_output_segment: 7000:7010
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007010          | (ack no)
+-------------------------------+
|  5 |   |010000|     65035     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65035
tcp_receive: congestion avoidance cwnd 13808
tcp_receive: ACK for 7010, unacked->seqno 7000:7010
tcp_receive: removing 7000:7010 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 7000 ackno 7010
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65035, cwnd 13808, wnd 13808, seg == NULL, ack 7010
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7010:7020 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65035, cwnd 13808, wnd 13808, effwnd 10, seq 7010, ack 7010
tcp_output: snd_wnd 65035, cwnd 13808, wnd 13808, effwnd 10, seq 7010, ack 7010, i 0
tcp_output_segment: rtseq 7010
tcp_output_segment: 7010:7020
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
Task 2 is Running....
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007020          | (ack no)
+-------------------------------+
|  5 |   |010000|     65025     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65025
tcp_receive: congestion avoidance cwnd 13883
tcp_receive: ACK for 7020, unacked->seqno 7010:7020
tcp_receive: removing 7010:7020 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 7010 ackno 7020
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65025, cwnd 13883, wnd 13883, seg == NULL, ack 7020
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7020:7030 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65025, cwnd 13883, wnd 13883, effwnd 10, seq 7020, ack 7020
tcp_output: snd_wnd 65025, cwnd 13883, wnd 13883, effwnd 10, seq 7020, ack 7020, i 0
tcp_output_segment: rtseq 7020
tcp_output_segment: 7020:7030
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007030          | (ack no)
+-------------------------------+
|  5 |   |010000|     65015     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65015
tcp_receive: congestion avoidance cwnd 13958
tcp_receive: ACK for 7030, unacked->seqno 7020:7030
tcp_receive: removing 7020:7030 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 7020 ackno 7030
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65015, cwnd 13958, wnd 13958, seg == NULL, ack 7030
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7030:7040 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65015, cwnd 13958, wnd 13958, effwnd 10, seq 7030, ack 7030
tcp_output: snd_wnd 65015, cwnd 13958, wnd 13958, effwnd 10, seq 7030, ack 7030, i 0
tcp_output_segment: rtseq 7030
tcp_output_segment: 7030:7040
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
Task 2 is Running....
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007040          | (ack no)
+-------------------------------+
|  5 |   |010000|     65005     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 65005
tcp_receive: congestion avoidance cwnd 14033
tcp_receive: ACK for 7040, unacked->seqno 7030:7040
tcp_receive: removing 7030:7040 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 7030 ackno 7040
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 65005, cwnd 14033, wnd 14033, seg == NULL, ack 7040
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7040:7050 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 65005, cwnd 14033, wnd 14033, effwnd 10, seq 7040, ack 7040
tcp_output: snd_wnd 65005, cwnd 14033, wnd 14033, effwnd 10, seq 7040, ack 7040, i 0
tcp_output_segment: rtseq 7040
tcp_output_segment: 7040:7050
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007050          | (ack no)
+-------------------------------+
|  5 |   |010000|     64995     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 64995
tcp_receive: congestion avoidance cwnd 14107
tcp_receive: ACK for 7050, unacked->seqno 7040:7050
tcp_receive: removing 7040:7050 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 7040 ackno 7050
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 64995, cwnd 14107, wnd 14107, seg == NULL, ack 7050
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7050:7060 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 64995, cwnd 14107, wnd 14107, effwnd 10, seq 7050, ack 7050
tcp_output: snd_wnd 64995, cwnd 14107, wnd 14107, effwnd 10, seq 7050, ack 7050, i 0
tcp_output_segment: rtseq 7050
tcp_output_segment: 7050:7060
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
Task 2 is Running....
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007060          | (ack no)
+-------------------------------+
|  5 |   |010000|     64985     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 64985
tcp_receive: congestion avoidance cwnd 14181
tcp_receive: ACK for 7060, unacked->seqno 7050:7060
tcp_receive: removing 7050:7060 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 7050 ackno 7060
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 64985, cwnd 14181, wnd 14181, seg == NULL, ack 7060
State: ESTABLISHED
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7060:7070 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 64985, cwnd 14181, wnd 14181, effwnd 10, seq 7060, ack 7060
tcp_output: snd_wnd 64985, cwnd 14181, wnd 14181, effwnd 10, seq 7060, ack 7060, i 0
tcp_output_segment: rtseq 7060
tcp_output_segment: 7060:7070
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
tcpip_thread: CALLBACK 0041c5bc
LOG_INFO:pppInput[0]: ip in pbuf len=40
TCP header:
+-------------------------------+
|     5000      |     4097      | (src port, dest port)
+-------------------------------+
|           -1374915893          | (seq no)
+-------------------------------+
|           0000007070          | (ack no)
+-------------------------------+
|  5 |   |010000|     64975     | (hdrlen, flags (ACK ), win)
+-------------------------------+
|    0x020F     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+
State: ESTABLISHED
tcp_receive: window update 64975
tcp_receive: congestion avoidance cwnd 14254
tcp_receive: ACK for 7070, unacked->seqno 7060:7070
tcp_receive: removing 7060:7070 from pcb->unacked
tcp_receive: queuelen 2 ... 0 (after freeing unacked)
tcp_receive: pcb->rttest 1 rtseq 7060 ackno 7070
tcp_receive: experienced rtt 0 ticks (0 msec).
tcp_receive: RTO 3 (1500 miliseconds)
tcp_output: nothing to send (00000000)
tcp_output: snd_wnd 64975, cwnd 14254, wnd 14254, seg == NULL, ack 7070
State: ESTABLISHED
Task 2 is Running....
TCP/IP is Running...netconn_write: writing 10 bytes (0)
tcpip_thread: API message 0041c5bc
tcp_write(pcb=0041c058, arg=0042375c, len=10, copy=0)
tcp_enqueue(pcb=0041c058, arg=0042375c, len=10, flags=0, copy=0)
tcp_enqueue: queuelen: 0
tcp_enqueue: queueing 7070:7080 (0x0)
tcp_enqueue: 2 (after enqueued)
tcp_output: snd_wnd 64975, cwnd 14254, wnd 14254, effwnd 10, seq 7070, ack 7070
tcp_output: snd_wnd 64975, cwnd 14254, wnd 14254, effwnd 10, seq 7070, ack 7070, i 0
tcp_output_segment: rtseq 7070
tcp_output_segment: 7070:7080
LOG_INFO:pppifOutput[0]: proto=0x0021
LOG_WARNING:length=56
现在算是完成任务了。