MQTT Random Topic Assignment for Secure IoT Node Communication

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing MQTT protocols face security risks due to malicious nodes intercepting or interfering with communication by exploiting agreed-upon topics, and current authentication methods are vulnerable to software cracking and network attacks.

Innovation Solution

Implementing a device communication method using an MQTT topic management server that generates random topics for secure communication, where IoT devices report their IDs, and only authenticated management nodes receive these random topics for secure communication.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If TLS bidirectional authentication is applied at the lower layer to prevent malicious nodes, then network security is improved, but the system becomes vulnerable to software cracking and network attacks

Engineering Contradiction:
Improvenetwork securityVSAvoidvulnerability to cracking and attacks
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The patent introduces an intermediary mechanism where the MQTT broker acts as a trusted mediator that dynamically generates and manages random topics for each device pair. Instead of relying solely on lower-layer TLS authentication which can be cracked, the broker mediates the topic assignment process, ensuring that even if device authentication is compromised, the actual communication topics remain secure and unpredictable. This intermediary layer adds an additional security dimension that is independent of the device authentication mechanism.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent implements dynamic topic generation where random topics are created on-demand for each communication session rather than using static pre-configured topics. The topics change dynamically based on device IDs and random elements, making them unpredictable and unique for each interaction. This dynamic approach ensures that even if one topic is compromised, other communication channels remain secure, and the system adapts to security threats in real-time.

Inventive Principle:
Principle #15Dynamics

2Ease of operation

If static topics are used for MQTT communication, then implementation simplicity is improved, but security against malicious nodes deteriorates

Engineering Contradiction:
Improveimplementation simplicityVSAvoidcommunication security
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent transforms static topics into dynamic random topics that are generated on-demand by the MQTT broker. Each device receives unique random topics based on its device ID and random elements, ensuring that topics change for each communication session. This maintains ease of operation from the device perspective while dramatically improving security, as malicious nodes cannot predict or intercept communications using static topic patterns.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the fundamental parameter of topic identification from static strings to dynamically generated random values. The topic parameter is transformed from a fixed, predictable value to a random, session-specific value that includes device IDs and random elements. This parameter change ensures that each communication uses unique topics, preventing topic-based attacks while maintaining the simplicity of the MQTT publish-subscribe model.

Inventive Principle:
Principle #35Parameter changes

3Device complexity

If device IDs are used directly as topics, then topic management simplicity is improved, but information security deteriorates due to predictable patterns

Engineering Contradiction:
Improvetopic management complexityVSAvoidexposure of device information
Core Design Contradiction:
Device complexityVSLoss of information

Solution Approach 1:

The MQTT broker serves as an intermediary that receives device IDs and transforms them into secure random topics. Instead of devices using their IDs directly as topics, the broker mediates this process by adding random elements and generating unique topic strings. This intermediary transformation protects device information while maintaining manageable topic structures that the broker can efficiently handle and route.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent creates an asymmetric relationship between device IDs and communication topics. Device IDs remain simple and manageable on the device side, while the actual communication topics are complex random strings generated by the broker. This asymmetry allows devices to maintain simple device IDs for identification purposes while using secure, unpredictable topics for communication, preventing information exposure without increasing device complexity.

Inventive Principle:
Principle #4Asymmetry

Data Source

PatentUS12489767B2Device communication method and apparatus based on MQTT protocol
Publication Date: 2025.12.02 ZTE CORP
  • US12489767B2 patent drawing
  • US12489767B2 patent drawing
  • US12489767B2 patent drawing

AI summary

Provided are a device communication method and apparatus based on an MQTT protocol. The device communication method is performed by an MQTT topic management server and includes: receiving a first message reported by a controlled node, wherein the first message comprises a device Identifier (ID) of the controlled node; generating a random topic corresponding to the device ID of the controlled node, and returning the random topic to the controlled node; after authenticating a controlling node, sending the random topic to the controlling node, so that the controlling node and the controlled node perform MQTT protocol communication by using the random topic.