Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Multiplexed MQTT

Hi Roger,

three bytes in front of each packet:

1. header - MQTT packet, or close session. Obviously room for more commands. 2 and 3 - channel (connection number). So up to 64k MQTT connections per socket.

Ian

On 27/02/15 20:30, Roger Light wrote:
Hi Ian,

Sounds interesting - how do you implement it?

Cheers,

Roger


On Fri, Feb 27, 2015 at 3:34 PM, Ian Craggs
<icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi All, and Roger especially.

One function that is implemented (by Nick O'Leary, as it happens) in one of
the brokers in the RSMB repository is multiple MQTT sessions over one TCP
connection.  This was used for an MQTT-SN gateway of the transparent style.
Transparent means that each MQTT-SN connection arriving at the gateway
results in another MQTT connection, but using MQTT multiplexed over a single
socket, resources are saved.

As I'm thinking about coding up an embedded MQTT-SN to MQTT gateway I
thought again how useful this could be.  So how about in Mosquitto?  It's
not in the MQTT standard, but that hasn't stopped us before, and the
standard can be driven by what people find useful.

This sort of multiplexing could also be used in bridges, so that you could
have an MQTT connection which hopped over multiple bridges before getting to
its final destination.  I haven't thought that one through though, but it
sounds cool :-)

--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



Back to the top