<?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>LWM2M Carrier Library Limitations</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87196/lwm2m-carrier-library-limitations</link><description>Questions regarding the limitations w/ the nRF9160 when using the lwm2m carrier library. From my understanding this library is required by certain carriers. Reading through the requirements and application limitations section there are these lines: The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Apr 2022 14:54:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87196/lwm2m-carrier-library-limitations" /><item><title>RE: LWM2M Carrier Library Limitations</title><link>https://devzone.nordicsemi.com/thread/364759?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 14:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7394ed4b-b6e7-49bb-9e38-d35353c53af3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="wh-eric"]Is it possible to use a mix of offloaded and non-offloaded sockets? As in 1 TLS connection is offloaded to the modem and handled as specified by the carrier library limitations, while additional TLS/DTLS connections are handled on the application core?[/quote]
&lt;p&gt;I haven&amp;#39;t tried this myself, but I believe it is possible with the use of the SOCK_NATIVE_TLS socket flag. For the offloaded sockets, you simply don&amp;#39;t use the flag, while you do use it for the non-offloaded/native sockets.&lt;/p&gt;
&lt;p&gt;From the modem perspective, it should be just the same as you opening a mix of TLS/DTLS and unencrypted TCP/UDP sockets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LWM2M Carrier Library Limitations</title><link>https://devzone.nordicsemi.com/thread/364533?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 17:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc6a700d-68a7-44ae-a407-584b22d90b9c</guid><dc:creator>wh-eric</dc:creator><description>&lt;p&gt;I think I have one last related question. Is it possible to use a mix of offloaded and non-offloaded sockets? As in 1 TLS connection is offloaded to the modem and handled as specified by the carrier library limitations, while additional TLS/DTLS connections are handled on the application core?&lt;/p&gt;
&lt;p&gt;I ask more out of understanding the technical limitations, I think for simplicity we would keep the TLS/DTLS all non-offloaded with an application which required the LWM2M carrier library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LWM2M Carrier Library Limitations</title><link>https://devzone.nordicsemi.com/thread/364527?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 15:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991239cb-8b4b-4ef9-93e4-e2320a78c157</guid><dc:creator>wh-eric</dc:creator><description>&lt;p&gt;Awesome, thank you for digging that up for me. I&amp;#39;m sorry I was not able to find that on my own. Based on this, I think I have a better understanding. I will do some digging into the sample you pointed to and see if I have any more questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LWM2M Carrier Library Limitations</title><link>https://devzone.nordicsemi.com/thread/364523?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 15:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19adeecf-1c7d-4d7e-8b84-240e14b898da</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]2. Where can I find information on the IP stack capabilities of the modem and how they are allocated? I have searched through the docs and modem firmware/library changelogs but came up empty unfortunately[/quote]
&lt;p&gt;What exactly are you looking for?&lt;/p&gt;
&lt;p&gt;The modem FW release notes (inside the modem FW .zip) and the modem_lib documentation are the best places to look for information about the modem.&lt;/p&gt;
&lt;p&gt;Perhaps the most relevant for this ticket is this section from the modem release notes:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;- TLS/DTLS
    - Up to three simultaneous TLS/DTLS connections are possible.
    - Maximum server certificate chain size has a limit of 4kB.
    - Server certificate expiry time is not verified.
    - pkcs#8 is not supported.
    - Absolute maximum number of supported credentials is 32. The actual amount depends on size of
      credentials as memory area reserved for credentials may be a limiting factor as well.
    - DTLS supports PSK authentication only.
    - 2kB secure socket buffer size.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that the maximum number of simultaneous TLS/DTLS connections depends on the mix of TLS and DTLS connections. However, I could not find a place listing the different combinations.&lt;/p&gt;
[quote user=""]1. If we have to include this library, how can we also include application code for our lwm2m client w/ DTLS? Are there specific configs that need to be enabled/modified?[/quote]
&lt;p&gt;Not with the TLS/DTLS stack in the modem.&lt;/p&gt;
&lt;p&gt;However, it is possible to not offload the TLS/DTLS stack, though at a significant flash and RAM cost in the application. We don&amp;#39;t have any samples showing this for DTLS, but you can see how it is done for TLS (the procedure should be similar for DTLS) in the https_client sample:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/nrf/samples/nrf9160/https_client/README.html#using-mbed-tls-and-tf-m"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/nrf/samples/nrf9160/https_client/README.html#using-mbed-tls-and-tf-m&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>