This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCP/IP does not retransmit

Hello,

Sorry for asking a non-Keil related question.
I am using lwIP on a LPC2478 to quickly send a lot of data to a server. When I connect the product to a VPN located far away (New Zealand...) often some characters are replaced by lwIP device drive due to some race condition that I haven't identified yet (that does not happen when data is sent from less distant locations). I have seen from Wireshark logs that the corrupted frames are marked as having a bad checksum - that is no surprise - but the receiving end never kicks in the TCP re-transmission mechanism (it rather acknowledges the corrupt frames!). Any idea what is going on here?

Parents
  • "but the receiving end never kicks in the TCP re-transmission mechanism"

    From the point of view of the TCP stack, it is not the responsibility of the receiver to 'kick' the retransmission. It should ignore the bad packet and the sender (because it sees no acknowledge) should retransmit the data.

    "(it rather acknowledges the corrupt frames!)."

    That really goes with my last point. If the receiver is returning an acknowledgement, then the sender should assume correct reception has occured.

    I think you need to check some details - Especially determine why the receiver is returning an acknowledge.

    DJR

Reply
  • "but the receiving end never kicks in the TCP re-transmission mechanism"

    From the point of view of the TCP stack, it is not the responsibility of the receiver to 'kick' the retransmission. It should ignore the bad packet and the sender (because it sees no acknowledge) should retransmit the data.

    "(it rather acknowledges the corrupt frames!)."

    That really goes with my last point. If the receiver is returning an acknowledgement, then the sender should assume correct reception has occured.

    I think you need to check some details - Especially determine why the receiver is returning an acknowledge.

    DJR

Children