<?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 Re: RTCS TCP window size issue in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342703#M11042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure!!, If it is possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 23:11:04 GMT</pubDate>
    <dc:creator>alejandrolozan1</dc:creator>
    <dc:date>2014-08-13T23:11:04Z</dc:date>
    <item>
      <title>RTCS TCP window size issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342700#M11039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm currently evaluating the network performances of the Cortex-M4 core in the Vybrid VF6 SoC. For that I'm running a TCP server on MQX to receive any incoming tcp packet. A client sends packets to the server and records the debit. The server is a modified version of the eth-to-serial example. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem is that the TCP rx buffer isn't flushed by the software (I think), as a result the tcp window size decreases until I get a "TCP WINDOW FULL" packet . Increasing the size of the buffer using the OPT_RBSIZE option isn't a solution since the error is still present but appears later. The measured debit is very low compared to what I could expect (about 10 times less). &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you have any idea why the buffer isn't emptied fast or hint about the origin of this error. Please find attached the modified demo.c file and the wireshark capture of the packets (192.168.0.44 is the Vybrid).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brieuc&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338689"&gt;mqx_capture.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338689"&gt;demo.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 15:07:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342700#M11039</guid>
      <dc:creator>brieuc</dc:creator>
      <dc:date>2014-08-07T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS TCP window size issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342701#M11040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me test your code, I will see if I can find the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:44:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342701#M11040</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-08-12T15:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS TCP window size issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342702#M11041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want the linux executable i'm using to inject data packets ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brieuc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 06:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342702#M11041</guid>
      <dc:creator>brieuc</dc:creator>
      <dc:date>2014-08-13T06:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS TCP window size issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342703#M11042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure!!, If it is possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 23:11:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342703#M11042</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-08-13T23:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS TCP window size issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342704#M11043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the same Problem. Every transmission the window size is reducing when a packages is received and after x packages it returns to normal.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have a window size of 300Bytes and i'm sending packages with about 250bytes. After every package the window is reducing by 10Bytes.&lt;/P&gt;&lt;P&gt;1. -&amp;gt; 300&lt;/P&gt;&lt;P&gt;2. -&amp;gt; 290&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;6. -&amp;gt; 240&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After 6 Transmission the window size is to small to receive a complete packages and Data is lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i sending packages with about 100bytes the windows size is also counting down, but after about 12 packages it returns to normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, are there news about this issue??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 07:24:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342704#M11043</guid>
      <dc:creator>chris-quin</dc:creator>
      <dc:date>2015-10-13T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS TCP window size issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342705#M11044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Reason is, that the window size depends on the buffer size of the socket. Every single time a packet is received, the function TCP_Advertise_receive_window checks if it has to send an acknowledge with the new window size. The information about the new window size will only send, if half of the buffersize was used and only increment ist about the half of the buffer size.&lt;/P&gt;&lt;P&gt;So the solution is to increase the buffersize of the socket 2 times larger then the maximum expected packet size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 15:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-TCP-window-size-issue/m-p/342705#M11044</guid>
      <dc:creator>chris-quin</dc:creator>
      <dc:date>2015-10-20T15:05:17Z</dc:date>
    </item>
  </channel>
</rss>

