-
|
If for openthread the IEEE mac frame size used is 127 bytes, what's the recommended coap message size to reduce the likelihood of retransmission in a lossy network? For instance i use aiocoap for my coap server. When i transmit an observe message of 119 bytes to esp-idf device, where i have about 35-40 esp-idf devices as client connecting to the coap server, it can make it but sometimes it would also retransmit even possibly where it could take 40 seconds to reach to the client. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The behavior you're seeing—long latencies and frequent retransmissions—is a classic symptom of 6LoWPAN fragmentation in a lossy or congested network. Why 119 bytes is problematicWhile the IEEE 802.15.4 physical frame size is 127 bytes, the actual space available for your data is much smaller due to overhead at every layer:
In a typical Thread configuration (short addresses, security enabled), you generally have roughly 75–90 bytes available for the CoAP payload before the packet must be fragmented. A 119-byte CoAP message will almost certainly be split into two 6LoWPAN fragments. The Impact of FragmentationFragmentation is particularly "expensive" in lossy environments for several reasons:
By keeping your messages small enough to avoid fragmentation, you should see a significant improvement in both latency and success rate. |
Beta Was this translation helpful? Give feedback.
The behavior you're seeing—long latencies and frequent retransmissions—is a classic symptom of 6LoWPAN fragmentation in a lossy or congested network.
Why 119 bytes is problematic
While the IEEE 802.15.4 physical frame size is 127 bytes, the actual space available for your data is much smaller due to overhead at every layer:
In a typical Thread configuration (short addresses, security enabled), you generally have roughly 75–9…