lwIP - A Lightweight TCP/IP stack - Bugs: bug #57976, TCP data communication broken due...
You are not allowed to post comments on this tracker with your current authentication level.
bug #57976: TCP data communication broken due to ACK transmission delay
Submitter: | Praveen Kumar <praveen_embedded> | ||
Submitted: | Mon 09 Mar 2020 10:41:34 AM UTC | ||
Category: | IPv4 | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Works For Me |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Planned Release: | None |
lwIP version: | 2.0.3 |
Tue 10 Mar 2020 07:31:28 AM UTC, comment #4: |
Praveen Kumar <praveen_embedded> |
Mon 09 Mar 2020 07:22:48 PM UTC, comment #3: I won't go through a pcap of multiple 100K and search for the right line that you think is an error. Again, I can see no bug in lwIP here. You might want to explain further. |
Simon Goldschmidt <goldsimon> |
Mon 09 Mar 2020 12:08:42 PM UTC, comment #2: Hi Simon,
|
Praveen Kumar <praveen_embedded> |
Mon 09 Mar 2020 11:40:08 AM UTC, comment #1: Please, no pictures. If you do have pcaps worthy of attaching, attach them, don't attach pictures.
|
Simon Goldschmidt <goldsimon> |
Mon 09 Mar 2020 10:41:34 AM UTC, original submission:
Hi ,
|
Praveen Kumar <praveen_embedded> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-03-09 | goldsimon | Status | None | Works For Me | |
2020-03-09 | praveen_embedded | Attached File | - | Added Cycle1_No@Issues@in@TCP@comm.pcap, #48566 | |
Attached File | - | Added Cycle2_TCP@Comm@Fail.pcap, #48567 | |||
2020-03-09 | praveen_embedded | Attached File | - | Added LWIP_TCP_DataSentoutFirst.JPG, #48564 | |
Attached File | - | Added LWIPCommunicationIssue.JPG, #48565 | |||
Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-758e.
Corresponding source code
Hi Simon,
In Cycle2 log, if you see line number 3,4,5 - The TCP packet is received from ECU at time 0.009955 seconds, immediately I will initiate TCP ACk packet and tcp_output(). But at the same time, data packet needs to be sent to ECU every 10ms once. So I will initiate tcp_write(data) with tcp_output().
Later when I see the packets in wireshark, I am seeing the ACK & SEQ number which needs to be updated with ACK packet, are updated in data packet and sent out, and later around 100uS, the ACK pack t is transmitted with different ACK & SEQ numbers.
As the ACK & SEQ numbers are different in acknowledgment packet, our ECU is recording error and initiating re-transmission.
This is happening very frequently and recording an error in ECU system.
So I just want to know that how to send ACK immediately once I receive input packet.
Regards,
PraveenKumar.