<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RTCS send TCP packet with zero (raw) sequence number in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RTCS-send-TCP-packet-with-zero-raw-sequence-number/m-p/1076056#M8048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am investigating an Ethernet connection issue on our custom PCB with K66 MCU (LQFP package). The application is utilized with MQX, and RTCS from KSDK 1.3.0 by KDS 3.0.0. The application basically initialize the RTCS when boot-up, open and listen on two sockets. Once the host PC connect to the listen port, they start to exchange information. Most of time, the application runs pretty well. However, after certain time, the connection will be closed itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had chance to observe the protocol from Wireshark, and found the issue always happened when the device application sent packets with raw sequence number zero. This cause the host side keep re-sending the acknowledgment and finally close the port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;In the following screenshot, on packet 1159669, our device (10.0.4.208) was trying to send data to the host PC (10.0.4.163). However, On packet 1159733, the Sequence number (raw) was reset to zero instead of 578995+5 = 579000. All the following packets sent from the device have the wrong sequence number. Eventually, the host side close the port. The Acknowledgement number seems OK all the time.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116590i52C7725CD2642AE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116591iA2DB17220E0D7795/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am not sure what cause this happened and not sure if the issue is in the application or RTCS. I did applied the RTCS 4.2.0.2 software patch and it didn't help. If you have any idea or recommendation, please let me know. Thanks your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter Shih&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2020 14:35:12 GMT</pubDate>
    <dc:creator>petershih</dc:creator>
    <dc:date>2020-07-22T14:35:12Z</dc:date>
    <item>
      <title>RTCS send TCP packet with zero (raw) sequence number</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RTCS-send-TCP-packet-with-zero-raw-sequence-number/m-p/1076056#M8048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am investigating an Ethernet connection issue on our custom PCB with K66 MCU (LQFP package). The application is utilized with MQX, and RTCS from KSDK 1.3.0 by KDS 3.0.0. The application basically initialize the RTCS when boot-up, open and listen on two sockets. Once the host PC connect to the listen port, they start to exchange information. Most of time, the application runs pretty well. However, after certain time, the connection will be closed itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had chance to observe the protocol from Wireshark, and found the issue always happened when the device application sent packets with raw sequence number zero. This cause the host side keep re-sending the acknowledgment and finally close the port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;In the following screenshot, on packet 1159669, our device (10.0.4.208) was trying to send data to the host PC (10.0.4.163). However, On packet 1159733, the Sequence number (raw) was reset to zero instead of 578995+5 = 579000. All the following packets sent from the device have the wrong sequence number. Eventually, the host side close the port. The Acknowledgement number seems OK all the time.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116590i52C7725CD2642AE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116591iA2DB17220E0D7795/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am not sure what cause this happened and not sure if the issue is in the application or RTCS. I did applied the RTCS 4.2.0.2 software patch and it didn't help. If you have any idea or recommendation, please let me know. Thanks your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter Shih&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RTCS-send-TCP-packet-with-zero-raw-sequence-number/m-p/1076056#M8048</guid>
      <dc:creator>petershih</dc:creator>
      <dc:date>2020-07-22T14:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS send TCP packet with zero (raw) sequence number</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RTCS-send-TCP-packet-with-zero-raw-sequence-number/m-p/1076057#M8049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you refer to the attached document written by Carlos Musich. It seems&amp;nbsp; similar to your issue.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 03:27:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RTCS-send-TCP-packet-with-zero-raw-sequence-number/m-p/1076057#M8049</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-08-13T03:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS send TCP packet with zero (raw) sequence number</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RTCS-send-TCP-packet-with-zero-raw-sequence-number/m-p/1149102#M8066</link>
      <description>&lt;P&gt;Hi Daniel:&lt;/P&gt;&lt;P&gt;Thanks your feedback. I read through your enclosed document regarding the re-transmission timeout, and implemented the "_TCP_rto_min = 250;" in the source code after RTCS initialization. However, it doesn't help. I am still seeing the sequence number been reset to zero.&lt;/P&gt;&lt;P&gt;I think the situation mentioned in the document is different with our issue. In our case, the TCP re-transmission and duplicate acknowledgement are cause by unexpected sequence number. I need to find out what cause the sequence number reset to zero in the RTCS. If you have any idea or suggestion, please let me know. Thanks! Appreciate your help.&lt;/P&gt;&lt;P&gt;Peter Shih&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 18:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RTCS-send-TCP-packet-with-zero-raw-sequence-number/m-p/1149102#M8066</guid>
      <dc:creator>petershih</dc:creator>
      <dc:date>2020-09-04T18:05:17Z</dc:date>
    </item>
  </channel>
</rss>

