Methods are proposed to integrate MQTT Server functionality into the oneM2M CSE, as well as to interconnect such CSE-based MQTT Servers into a network organized around a topic structure based on resource address. Methods can dynamically allocate, assign and deliver an identifier that can be used as the AE-ID by the AE, CSE and MQTT Server. The MQTT Server can be internetworked into the M2M Service Layer such that an MQTT Server is available in every Service Layer node that hosts a CSE. MQTT Server-to-Server connections can be dynamically established to facilitate traffic between Service Layer entities