malloc(1025), sendData = 0x2040eec0 connect: 192.168.8.130 port 3030 No, Conn, Receiv, Error, byes(default: 1 F1: TCP_NODELAY (0), F2: TCP_DELAY)(1) tcp_connect to port 3030 tcp_enqueue(pcb=0x201c9690, arg=0x00000000, len=0, flags=2, apiflags=0) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 8655:8656 (0x2) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 16060, cwnd 1, wnd 1, effwnd 0, seq 8655, ack 8655 tcp_output: snd_wnd 16060, cwnd 1, wnd 1, effwnd 0, seq 8655, ack 8655, i 0 tcp_output_segment: rtseq 8655 tcp_output_segment: 8655:8655 tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4107 | (src port, dest port) +-------------------------------+ | 2712639489 | (seq no) +-------------------------------+ | 0000008656 | (ack no) +-------------------------------+ | 6 | |010010| 8192 | (hdrlen, flags (SYN ACK ), win) +-------------------------------+ | 0xd6aa | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags SYN ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: SYN_SENT tcp_parseopt: MSS SYN-SENT: ackno 8656 pcb->snd_nxt 8656 unacked 8655 tcp_process: SYN-SENT --queuelen 0 tcp_output: sending ACK for 2712639490 State: ESTABLISHED tcp_write(pcb=0x201c9690, data=0x2040eec0, len=1025, apiflags=1) tcp_enqueue(pcb=0x201c9690, arg=0x2040eec0, len=1025, flags=0, apiflags=1) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 8656:9681 (0x0) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 8192, cwnd 2920, wnd 2920, effwnd 1025, seq 8656, ack 8656 tcp_output: snd_wnd 8192, cwnd 2920, wnd 2920, effwnd 1025, seq 8656, ack 8656, i 0 tcp_output_segment: 8656:9681 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4107 | (src port, dest port) +-------------------------------+ | 2712639490 | (seq no) +-------------------------------+ | 0000009680 | (ack no) +-------------------------------+ | 5 | |010000| 1024 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0x0668 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 1024 tcp_receive: slow start cwnd 4380 tcp_receive: ACK for 9680, unacked->seqno 8656:9681 tcp_receive: pcb->rttest 400 rtseq 8655 ackno 9680 tcp_receive: experienced rtt 3 ticks (1500 msec). tcp_receive: RTO 8 (4000 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 4380, wnd 1024, seg == NULL, ack 9680 State: ESTABLISHED tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: polling application tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 4380, wnd 1024, seg == NULL, ack 9680 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: rtime 8 pcb->rto 8 tcp_slowtmr: cwnd 1460 ssthresh 2920 tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, effwnd 1, seq 8656, ack 9680 tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, effwnd 1, seq 8656, ack 9680, i 0 tcp_output_segment: rtseq 8656 tcp_output_segment: 8656:9681 tcp_slowtmr: polling application tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, seg == NULL, ack 9680 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4107 | (src port, dest port) +-------------------------------+ | 2712639490 | (seq no) +-------------------------------+ | 0000009681 | (ack no) +-------------------------------+ | 5 | |011000| 1023 | (hdrlen, flags (PSH ACK ), win) +-------------------------------+ | 0x4205 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags PSH ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 1023 tcp_receive: slow start cwnd 2920 tcp_receive: ACK for 9681, unacked->seqno 8656:9681 tcp_receive: removing 8656:9681 from pcb->unacked tcp_receive: queuelen 1 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 411 rtseq 8656 ackno 9681 tcp_receive: experienced rtt 2 ticks (1000 msec). tcp_receive: RTO 8 (4000 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, seg == NULL, ack 9681 State: ESTABLISHED tcp_recved: recveived 1025 bytes, wnd 16060 (0). 1, 690, 5870, 0, 1025 tcp_close: closing in State: ESTABLISHED tcp_enqueue(pcb=0x201c9690, arg=0x00000000, len=0, flags=1, apiflags=1) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 9681:9682 (0x1) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, effwnd 0, seq 9681, ack 9681 tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, effwnd 0, seq 9681, ack 9681, i 0 tcp_output_segment: rtseq 9681 tcp_output_segment: 9681:9681 tcp_connect to port 3030 tcp_enqueue(pcb=0x201c97f0, arg=0x00000000, len=0, flags=2, apiflags=0) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 9481:9482 (0x2) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 16060, cwnd 1, wnd 1, effwnd 0, seq 9481, ack 9481 tcp_output: snd_wnd 16060, cwnd 1, wnd 1, effwnd 0, seq 9481, ack 9481, i 0 tcp_output_segment: rtseq 9481 tcp_output_segment: 9481:9481 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4107 | (src port, dest port) +-------------------------------+ | 2712640515 | (seq no) +-------------------------------+ | 0000009682 | (ack no) +-------------------------------+ | 5 | |010000| 1023 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0x0266 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: FIN_WAIT_1 tcp_receive: window update 1023 tcp_receive: congestion avoidance cwnd 3650 tcp_receive: ACK for 9682, unacked->seqno 9681:9682 tcp_receive: removing 9681:9682 from pcb->unacked tcp_receive: queuelen 1 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 413 rtseq 9681 ackno 9682 tcp_receive: experienced rtt 1 ticks (500 msec). tcp_receive: RTO 7 (3500 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1023, cwnd 3650, wnd 1023, seg == NULL, ack 9682 State: FIN_WAIT_2 TCP header: +-------------------------------+ | 3030 | 4107 | (src port, dest port) +-------------------------------+ | 2712640515 | (seq no) +-------------------------------+ | 0000009682 | (ack no) +-------------------------------+ | 5 | |010001| 1023 | (hdrlen, flags (FIN ACK ), win) +-------------------------------+ | 0x0265 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags FIN ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: FIN_WAIT_2 tcp_receive: pcb->rttest 0 rtseq 9681 ackno 9682 tcp_receive: received FIN. TCP connection closed: FIN_WAIT_2 3030 -> 4107. tcp_pcb_purge tcp_close: closing in State: TIME_WAIT tcp_output: sending ACK for 2712640516 State: TIME_WAIT TCP header: +-------------------------------+ | 3030 | 4108 | (src port, dest port) +-------------------------------+ | 2360983673 | (seq no) +-------------------------------+ | 0000009482 | (ack no) +-------------------------------+ | 6 | |010010| 8192 | (hdrlen, flags (SYN ACK ), win) +-------------------------------+ | 0xbfed | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags SYN ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: SYN_SENT tcp_parseopt: MSS SYN-SENT: ackno 9482 pcb->snd_nxt 9482 unacked 9481 tcp_process: SYN-SENT --queuelen 0 tcp_output: sending ACK for 2360983674 State: ESTABLISHED tcp_write(pcb=0x201c97f0, data=0x2040eec0, len=1025, apiflags=1) tcp_enqueue(pcb=0x201c97f0, arg=0x2040eec0, len=1025, flags=0, apiflags=1) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 9482:10507 (0x0) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 8192, cwnd 2920, wnd 2920, effwnd 1025, seq 9482, ack 9482 tcp_output: snd_wnd 8192, cwnd 2920, wnd 2920, effwnd 1025, seq 9482, ack 9482, i 0 tcp_output_segment: 9482:10507 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4108 | (src port, dest port) +-------------------------------+ | 2360983674 | (seq no) +-------------------------------+ | 0000010506 | (ack no) +-------------------------------+ | 5 | |010000| 1024 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0xefaa | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 1024 tcp_receive: slow start cwnd 4380 tcp_receive: ACK for 10506, unacked->seqno 9482:10507 tcp_receive: pcb->rttest 413 rtseq 9481 ackno 10506 tcp_receive: experienced rtt 3 ticks (1500 msec). tcp_receive: RTO 8 (4000 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 4380, wnd 1024, seg == NULL, ack 10506 State: ESTABLISHED tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: polling application tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 4380, wnd 1024, seg == NULL, ack 10506 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: rtime 8 pcb->rto 8 tcp_slowtmr: cwnd 1460 ssthresh 2920 tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, effwnd 1, seq 9482, ack 10506 tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, effwnd 1, seq 9482, ack 10506, i 0 tcp_output_segment: rtseq 9482 tcp_output_segment: 9482:10507 tcp_slowtmr: polling application tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, seg == NULL, ack 10506 tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4108 | (src port, dest port) +-------------------------------+ | 2360983674 | (seq no) +-------------------------------+ | 0000010507 | (ack no) +-------------------------------+ | 5 | |011000| 1023 | (hdrlen, flags (PSH ACK ), win) +-------------------------------+ | 0x2b48 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags PSH ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 1023 tcp_receive: slow start cwnd 2920 tcp_receive: ACK for 10507, unacked->seqno 9482:10507 tcp_receive: removing 9482:10507 from pcb->unacked tcp_receive: queuelen 1 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 424 rtseq 9482 ackno 10507 tcp_receive: experienced rtt 1 ticks (500 msec). tcp_receive: RTO 7 (3500 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, seg == NULL, ack 10507 State: ESTABLISHED tcp_recved: recveived 1025 bytes, wnd 16060 (0). 2, 750, 5710, 0, 1025 tcp_close: closing in State: ESTABLISHED tcp_enqueue(pcb=0x201c97f0, arg=0x00000000, len=0, flags=1, apiflags=1) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 10507:10508 (0x1) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, effwnd 0, seq 10507, ack 10507 tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, effwnd 0, seq 10507, ack 10507, i 0 tcp_output_segment: rtseq 10507 tcp_output_segment: 10507:10507 tcp_connect to port 3030 tcp_enqueue(pcb=0x201c98a0, arg=0x00000000, len=0, flags=2, apiflags=0) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 10331:10332 (0x2) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 16060, cwnd 1, wnd 1, effwnd 0, seq 10331, ack 10331 tcp_output: snd_wnd 16060, cwnd 1, wnd 1, effwnd 0, seq 10331, ack 10331, i 0 tcp_output_segment: rtseq 10331 tcp_output_segment: 10331:10331 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4108 | (src port, dest port) +-------------------------------+ | 2360984699 | (seq no) +-------------------------------+ | 0000010508 | (ack no) +-------------------------------+ | 5 | |010000| 1023 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0xeba8 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: FIN_WAIT_1 tcp_receive: window update 1023 tcp_receive: congestion avoidance cwnd 3650 tcp_receive: ACK for 10508, unacked->seqno 10507:10508 tcp_receive: removing 10507:10508 from pcb->unacked tcp_receive: queuelen 1 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 425 rtseq 10507 ackno 10508 tcp_receive: experienced rtt 2 ticks (1000 msec). tcp_receive: RTO 8 (4000 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1023, cwnd 3650, wnd 1023, seg == NULL, ack 10508 State: FIN_WAIT_2 TCP header: +-------------------------------+ | 3030 | 4108 | (src port, dest port) +-------------------------------+ | 2360984699 | (seq no) +-------------------------------+ | 0000010508 | (ack no) +-------------------------------+ | 5 | |010001| 1023 | (hdrlen, flags (FIN ACK ), win) +-------------------------------+ | 0xeba7 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags FIN ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: FIN_WAIT_2 tcp_receive: pcb->rttest 0 rtseq 10507 ackno 10508 tcp_receive: received FIN. TCP connection closed: FIN_WAIT_2 3030 -> 4108. tcp_pcb_purge tcp_close: closing in State: TIME_WAIT tcp_output: sending ACK for 2360984700 State: TIME_WAIT TCP header: +-------------------------------+ | 3030 | 4109 | (src port, dest port) +-------------------------------+ | 2218678599 | (seq no) +-------------------------------+ | 0000010332 | (ack no) +-------------------------------+ | 6 | |010010| 8192 | (hdrlen, flags (SYN ACK ), win) +-------------------------------+ | 0x2c48 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags SYN ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: SYN_SENT tcp_parseopt: MSS SYN-SENT: ackno 10332 pcb->snd_nxt 10332 unacked 10331 tcp_process: SYN-SENT --queuelen 0 tcp_output: sending ACK for 2218678600 State: ESTABLISHED tcp_write(pcb=0x201c98a0, data=0x2040eec0, len=1025, apiflags=1) tcp_enqueue(pcb=0x201c98a0, arg=0x2040eec0, len=1025, flags=0, apiflags=1) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 10332:11357 (0x0) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 8192, cwnd 2920, wnd 2920, effwnd 1025, seq 10332, ack 10332 tcp_output: snd_wnd 8192, cwnd 2920, wnd 2920, effwnd 1025, seq 10332, ack 10332, i 0 tcp_output_segment: 10332:11357 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: polling application tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 8192, cwnd 2920, wnd 2920, seg == NULL, ack 10332 TCP header: +-------------------------------+ | 3030 | 4109 | (src port, dest port) +-------------------------------+ | 2218678600 | (seq no) +-------------------------------+ | 0000011356 | (ack no) +-------------------------------+ | 5 | |010000| 1024 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0x5c05 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 1024 tcp_receive: slow start cwnd 4380 tcp_receive: ACK for 11356, unacked->seqno 10332:11357 tcp_receive: pcb->rttest 425 rtseq 10331 ackno 11356 tcp_receive: experienced rtt 4 ticks (2000 msec). tcp_receive: RTO 9 (4500 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 4380, wnd 1024, seg == NULL, ack 11356 State: ESTABLISHED tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: polling application tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 4380, wnd 1024, seg == NULL, ack 11356 tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: processing active pcb tcp_slowtmr: polling application tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1024, cwnd 4380, wnd 1024, seg == NULL, ack 11356 tcp_slowtmr: processing active pcb tcp_slowtmr: rtime 9 pcb->rto 9 tcp_slowtmr: cwnd 1460 ssthresh 2920 tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, effwnd 1, seq 10332, ack 11356 tcp_output: snd_wnd 1024, cwnd 1460, wnd 1024, effwnd 1, seq 10332, ack 11356, i 0 tcp_output_segment: rtseq 10332 tcp_output_segment: 10332:11357 tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4109 | (src port, dest port) +-------------------------------+ | 2218678600 | (seq no) +-------------------------------+ | 0000011357 | (ack no) +-------------------------------+ | 5 | |011000| 1023 | (hdrlen, flags (PSH ACK ), win) +-------------------------------+ | 0x97a2 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags PSH ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: ESTABLISHED tcp_receive: window update 1023 tcp_receive: slow start cwnd 2920 tcp_receive: ACK for 11357, unacked->seqno 10332:11357 tcp_receive: removing 10332:11357 from pcb->unacked tcp_receive: queuelen 1 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 438 rtseq 10332 ackno 11357 tcp_receive: experienced rtt 1 ticks (500 msec). tcp_receive: RTO 8 (4000 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, seg == NULL, ack 11357 State: ESTABLISHED tcp_recved: recveived 1025 bytes, wnd 16060 (0). 3, 740, 6360, 0, 1025 tcp_close: closing in State: ESTABLISHED tcp_enqueue(pcb=0x201c98a0, arg=0x00000000, len=0, flags=1, apiflags=1) tcp_enqueue: queuelen: 0 tcp_enqueue: queueing 11357:11358 (0x1) tcp_enqueue: 1 (after enqueued) tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, effwnd 0, seq 11357, ack 11357 tcp_output: snd_wnd 1023, cwnd 2920, wnd 1023, effwnd 0, seq 11357, ack 11357, i 0 tcp_output_segment: rtseq 11357 tcp_output_segment: 11357:11357 free(), sendData = 0x2040eec0 ===SCREEN DISPLAY=== 19-ADC Test tcp_slowtmr: processing active pcb 20-tcpTest * 21-TNS Test 22-Beep Test ===SCREEN DISPLAY===:37 >> tcp_slowtmr: processing active pcb TCP header: +-------------------------------+ | 3030 | 4109 | (src port, dest port) +-------------------------------+ | 2218679625 | (seq no) +-------------------------------+ | 0000011358 | (ack no) +-------------------------------+ | 5 | |010000| 1023 | (hdrlen, flags (ACK ), win) +-------------------------------+ | 0x5803 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: FIN_WAIT_1 tcp_receive: window update 1023 tcp_receive: congestion avoidance cwnd 3650 tcp_receive: ACK for 11358, unacked->seqno 11357:11358 tcp_receive: removing 11357:11358 from pcb->unacked tcp_receive: queuelen 1 ... 0 (after freeing unacked) tcp_receive: pcb->rttest 439 rtseq 11357 ackno 11358 tcp_receive: experienced rtt 2 ticks (1000 msec). tcp_receive: RTO 8 (4000 milliseconds) tcp_output: nothing to send (0x00000000) tcp_output: snd_wnd 1023, cwnd 3650, wnd 1023, seg == NULL, ack 11358 State: FIN_WAIT_2 TCP header: +-------------------------------+ | 3030 | 4109 | (src port, dest port) +-------------------------------+ | 2218679625 | (seq no) +-------------------------------+ | 0000011358 | (ack no) +-------------------------------+ | 5 | |010001| 1023 | (hdrlen, flags (FIN ACK ), win) +-------------------------------+ | 0x5802 | 0 | (chksum, urgp) +-------------------------------+ +-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags FIN ACK -+-+-+-+-+-+-+-+-+-+-+-+-+-+ State: FIN_WAIT_2 tcp_receive: pcb->rttest 0 rtseq 11357 ackno 11358 tcp_receive: received FIN. TCP connection closed: FIN_WAIT_2 3030 -> 4109. tcp_pcb_purge tcp_close: closing in State: TIME_WAIT tcp_output: sending ACK for 2218679626 State: TIME_WAIT tcp_slowtmr: no active pcbs tcp_slowtmr: no active pcbs tcp_slowtmr: no active pcbs tcp_slowtmr: no active pcbs tcp_slowtmr: no active pcbs tcp_slowtmr: no active pcbs tcp_slowtmr: no active pcbs