This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1312R7: Wi-SUN stack: is TCP traffic supported?

Part Number: CC1312R7

Tool/software:

Hi,

We were testing the wfantund router node on the lastest SIMPLELINK-LOWPOWER-F2-SDK 8.30.01.01, and we noticed that we were not able to establish a TCP socat connection between the border router and the router node. However, UDP traffic worked as expected.

As a result, we suspect that TI Wi-SUN stack does not support TCP traffic. Is that the case?

Regards,

Mauricio.

  • Hi Mauricio,

    wfantund supports the option of defining a TCP socket.

    However, we recommend it only for debugging purposes and to use the UDP socket for production.

    Is there a specific use-case for that you would like to use TCP?

    Kind regards,
    Theo

  • Hi Theo,

    Thank you for the fast response.

    In our application, our client may open a socat TCP connection for communication between Linux hosts. Additionally, they may establish an ssh connection and use other protocols that operate on top of TCP.

    How do we define the mentioned TCP socket on wfantund?

    Thank you.

    Regards,

    Mauricio.

  • Hi Mauricio,

    since TCP setup will take more time (due to the handshake) it was not added as default to our offering.

    But looking at our src projects you can search (ctr+h) the define NO_TCP and comment it out. Then the TCP events will be added in the Nanostack. Furthermore it might be necessary to modify the packet routing through the tunnel interface.

    Please let me know if commenting this define works out or if you need further help.
    In general the intention was that wfantund is used as UDP interface.

    Kind regards,
    Theo

  • Hi Theo,

    Thank you for the clarification.

    As TI did not implemented TCP yet, I believe it is not worth trying to implement it ourselves.

    I understand that the intention was to use UDP, but are there any plans to implement TCP on TI Wi-SUN FAN stack? For instance, it would be interesting to have TCP support on the planned TI Wi-SUN FAN 1.1 stack, particularly due to the higher data rates OFDM can reach.

    Thank you.

    Regards,

    Mauricio.

  • Hi Mauricio,

    you the TCP socket is part of the nanostack, this is why I stated that is present. But you are right that after enabling it there would be some testing required including modifications to the tunnel interface to route all wanted packet types to the host.
    If you want to start the implementation I can help you to resolve issues on the way.

    Unfortunately, I can't answer roadmap questions on the forum. 

    Please reach out to me per direct message if you need further information on this topic.

    Kind regards,
    Theo