MQTT packet fragmentation

785 views
Skip to first unread message

Paridhika Kayal

unread,
Feb 8, 2016, 9:13:28 PM2/8/16
to MQTT
Hi,

MQTT supports maximum packet size of 268,435,455 bytes. And I read that it does not allow fragmentation. Still when I am trying to send large files of 30-40 MB. I see packets getting fragmented into 64k bytes. Can you please tell me the reason for this.

Thanks
Paridhika

Dan Anderson

unread,
Feb 9, 2016, 12:03:41 AM2/9/16
to mq...@googlegroups.com
Hi,

I assume what you are seeing is fragmentation by the underlying network protocols - like with a sniffer or something.

i.e., while MQTT might support giant packets, it can run fine over IP which has a 64k max datagram size, which in turn is sent over something like ethernet with another smaller packet size (like 1508 mtu).  These other layers are abstract though (from MQTT's perspective) - the ethernet frames are reassembled into IP packets which are assembled into TCP streams which are reassembled into giant MQTT packets - all normally automatically and transparently to you.

Dan




--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages