Thread Communication Maximum Packet Size

Hi, I'm currently playing around with the nRF5340 dev boards, in order to see if I can implement thread communication. I'm trying to test the limits of the thread protocol, and I had some confusion with the maximum packet size. I see the IEEE 802.15.4 specification says that the maximum frame should be 127 bytes, and that after that it will split the packets into fragments. When testing this on WireShark I noticed that the biggest packet I'm able to send before it fragments, is 141 bytes. There's an extra 14 bytes from the ethernet frame on top of the 802.15.4 frame, which means the maximum 802.15.4 frame size I can get is 125 bytes. Is there a limit set on the 802.15.4 frame in the nRF boards to 125 bytes, or am I missing something?

Parents Reply
  • I see, that's interesting. So the way I've tried sending is with both a Ping and a UDP send. I have two devices flashed with the OpenThread CLI application which are connected to my host computer (an nRF5340dk and an nRF52840 dongle). I capture all the packets with a sniffer using WireShark. I send the following ping command:

    This gives the same packet information as the image I attached earlier. If I change the ping size from 79 to 80, it sends fragments the packet.

    I also use this UDP command:

    This also generates a packet send of 141 bytes (data of 125 Bytes), a larger udp send fragments the packet.

    Is there a better way to send data, and see the maximum data packet size?

Children
Related