<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Severe packet drop on Border Router with certain CoAP packet sizes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31137/severe-packet-drop-on-border-router-with-certain-coap-packet-sizes</link><description>Hello, 
 I asked about this on openthread-users ( https://groups.google.com/forum/#!topic/openthread-users/F8_NmMRDOFE ) and got redirected here. Generally, I observed a severe packet drop on certain CoAP packet sizes, when using Border Router. I.e. when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Mar 2018 09:41:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31137/severe-packet-drop-on-border-router-with-certain-coap-packet-sizes" /><item><title>RE: Severe packet drop on Border Router with certain CoAP packet sizes</title><link>https://devzone.nordicsemi.com/thread/125486?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 09:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad1f6a4-9235-479d-9f18-d3bbc0809da6</guid><dc:creator>Robert Lubos</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been trying to reproduce the issue with current OpenThread master, but it either does not occur anymore or I wasn&amp;#39;t able to trigger it.&lt;/p&gt;
&lt;p&gt;My setup was RPi running current OpenThread border router on top of Raspbian, NCP connected through USB CDC-ACM and CLI application, both on nRF52840. On my RPi I&amp;#39;ve created CoAP server with our python CoAP implementation (&lt;a href="https://github.com/NordicSemiconductor/piccata"&gt;https://github.com/NordicSemiconductor/piccata&lt;/a&gt;), CLI app was slightly modified to enable to send series of CoAP requests. I&amp;#39;ve sent mutliple series with different payload sizes, mostly near the size that caused packet fragmentation. Whatever payload size I&amp;#39;ve used, I had always got nearly 100% packet delivery.&lt;/p&gt;
&lt;p&gt;In your description I was missing a single detail - have you been using Border Router shipped with our recent SDK (0.11.0) or OpenThread&amp;#39;s Border Router? What was the CoAP server that you have used on RPi?&lt;/p&gt;
&lt;p&gt;Anyway, we are going to release updated SDK with up-to-date libraries in the near future, so hopefully you could verify if the issue persists on your setup.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Robert&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Severe packet drop on Border Router with certain CoAP packet sizes</title><link>https://devzone.nordicsemi.com/thread/123179?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 08:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076c3fcb-6641-497a-8416-924ee2dbae2e</guid><dc:creator>Nopik</dc:creator><description>&lt;p&gt;1) I was talking about CoAP payload, using code like this, values I referred to were `aDataLength`:&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;pre&gt;messagePtr = otCoapNewMessage(...&lt;span&gt;);&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;otMessageAppend(messagePtr, aData, aDataLength); // aDataLength was variable here&lt;/pre&gt;
&lt;pre&gt;otCoapSendRequest(...)&lt;/pre&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;No, I didn&amp;#39;t tried.&amp;nbsp;The codebase I was using originally started from cli app, but had some deps added later on and it wasn&amp;#39;t easy for me to try that code on a posix build.&lt;/p&gt;
&lt;p&gt;3) I was using USB CDC-ACM mode. At the moment I don&amp;#39;t have the setup for this on my desk, but later I will try to use UART as well.&lt;/p&gt;
&lt;p&gt;4)&amp;nbsp;Well, my understanding is that the root cause *is* in CoAP implementation (or border router/ncp), not related at all to nRF. &amp;nbsp;Though until proved, that is only a hunch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Severe packet drop on Border Router with certain CoAP packet sizes</title><link>https://devzone.nordicsemi.com/thread/123138?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 19:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02ed4aff-2f1b-4b88-b01e-6adb66b5e584</guid><dc:creator>Lukasz Duda</dc:creator><description>&lt;p&gt;Hello Nopik,&lt;/p&gt;
&lt;p&gt;Thanks for detailed analysis. We will try to reproduce this issue on our side. I have couple questions though:&lt;/p&gt;
&lt;p&gt;1) What&amp;nbsp;do you mean by e.g.&amp;nbsp;90 bytes of payload - CoAP Payload, CoAP Payload + CoAP Header (including URIs) or size of 15.4 frame?&lt;/p&gt;
&lt;p&gt;2) Did you try to reproduce this issue on posix simulator?&lt;/p&gt;
&lt;p&gt;3)&amp;nbsp;You mentioned on openthread-users forum that you use NCP over USB. Is it native USB or J-Link emulated UART over USB? If the first one, could you try reproduce the problem using UART? Although, i don&amp;#39;t think that problem is located there.&lt;/p&gt;
&lt;p&gt;4) Can you reproduce this issue using regular ICMP Echo Req/Rsp? If you see it only using CoAP, it would suggest that root cause may be located in CoAP implementation.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Łukasz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>