[bug #59504] Connection reset

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #59504] Connection reset

yuanjianmin
URL:
  <https://savannah.nongnu.org/bugs/?59504>

                 Summary: Connection reset
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: kiabrin
            Submitted on: Пн 23 ноя 2020 09:37:03
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

Hello.
Using LwIP 2.1.2 on TI TivaC MCU in NO_OS mode.
My code sends a packets via TCP/IP to the application on a computer at the
following rate:
11 12-byte packets at 100Hz and 25 12-byte packets at 1Hz. So overall data
rate is 13500 bytes/s.
After about a minute of such traffic I got and error callback with ERR_RST
code at my side and in the same time I got WSAENETRESET error during recv() at
computer side, which means some keep-alive activity on a connection was
failed.

What could be the cause?




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?59504>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #59504] Connection reset

yuanjianmin
Follow-up Comment #1, bug #59504 (project lwip):

Using Java client application I got the message:

"The connection attempt failed because the other computer did not respond in
the required time, or the connection was broken because the computer already
connected was not responding correctly"

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?59504>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #59504] Connection reset

yuanjianmin
Follow-up Comment #2, bug #59504 (project lwip):

Using Wireshark I see that my side does not ACK any packets after first one:

646 14.463599 172.23.3.32 172.23.3.85 TCP 66 50422 → 8070 [PSH, ACK] Seq=13
Ack=1461 Win=64240 Len=12
649 14.511317 172.23.3.85 172.23.3.32 TCP 1514 8070 → 50422 [PSH, ACK]
Seq=1461 Ack=13 Win=4084 Len=1460

After some timeout host retransmits unacked packets:

673 14.764273 172.23.3.32 172.23.3.85 TCP 66 [TCP Retransmission] 50422 →
8070 [PSH, ACK] Seq=13 Ack=6781 Win=64240 Len=12
...
706 15.363707 172.23.3.32 172.23.3.85 TCP 66 [TCP Retransmission] 50422 →
8070 [PSH, ACK] Seq=13 Ack=14053 Win=63628 Len=12
...
767 16.563900 172.23.3.32 172.23.3.85 TCP 90 [TCP Retransmission] 50422 →
8070 [PSH, ACK] Seq=13 Ack=25281 Win=64240 Len=36
...
911 18.963925 172.23.3.32 172.23.3.85 TCP 114 [TCP Retransmission] 50422 →
8070 [PSH, ACK] Seq=13 Ack=53329 Win=64240 Len=60
...
1260 23.764679 172.23.3.32 172.23.3.85 TCP 174 [TCP Retransmission] 50422 →
8070 [PSH, ACK] Seq=13 Ack=106417 Win=63028 Len=120
...

but my side continues sending ack=13 until connection closed.

1849 33.365213 172.23.3.32 172.23.3.85 TCP 54 50422 → 8070 [RST, ACK]
Seq=241 Ack=218305 Win=0 Len=0
1850 33.365455 172.23.3.85 172.23.3.32 TCP 1514 8070 → 50422 [PSH, ACK]
Seq=218305 Ack=13 Win=4084 Len=1460
1851 33.365476 172.23.3.32 172.23.3.85 TCP 54 50422 → 8070 [RST] Seq=13
Win=0 Len=0
1852 33.365673 172.23.3.85 172.23.3.32 TCP 1514 8070 → 50422 [PSH, ACK]
Seq=219765 Ack=13 Win=4084 Len=1460
1853 33.365685 172.23.3.32 172.23.3.85 TCP 54 50422 → 8070 [RST] Seq=13
Win=0 Len=0


    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?59504>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel