This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 packet data receive buffer size

What is the receive buffer size for IP packet data, i.e. how many bytes of data can the modem receive (in one or several UDP packets) before I call recv() or recvfrom() on the UDP socket? I cannot find any Information on that in the product specs. Are things like this documented somewhere and where can I get such information?

Parents Reply Children
  • OK, thanks. Actually I am interested in the cumulative size of packets that can be buffered by the modem. The maximum IP packet size is not necessarily the same as the modem's receive buffer size. I do not expect packets larger than the MTU size anyway, because I don't want to handle arbitrarily fragmented packets. But I expect to receive more than one packet within short time.

    So for example, if the modem receives a burst of 512-byte packets, how many of them can the modem store before packets are dropped or I call recv()? Is it 8 packets? Of course I could try to determine this limit experimentally, but I prefer solid data ;-)

  • Hi, and sorry for the long wait.

    Turns out your question was not straight forward to answer, and due to vacations it took some time to find someone that could answer.

    The answer I got from the developers is that there is no fixed buffer. Instead, the buffer is allocated dynamically. We can therefore not say how much that can be buffered at a given time. It will depend on the overall memory allocation status in the application.

    Best regards,

    Didrik

  • OK, thank you for your answer. So I will just assume the max IP packet size as a safe lower limit.

Related