MQTT Network Address Mapping for Cross-Network IoT Data Transmission
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The increasing distribution of IoT devices across different networks poses challenges for communication between servers and terminal devices, as existing IoT data transmission architectures are designed for centralized deployments within the same network, making direct communication between devices operating in different networks difficult.
Innovation Solution
A data transmission method utilizing the MQTT protocol to map network addresses between different networks, allowing data transmission between a network device in one network and a terminal device in another by establishing virtual terminal devices and network tunnels, enabling communication through the MQTT protocol.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If terminal devices are widely distributed across different networks, then device coverage and accessibility are improved, but communication difficulty and network complexity increase
Solution Approach 1:
The patent introduces a server as an intermediary component that establishes mapping relationships between first network addresses (in the first network) and second network addresses (in the second network). This server acts as a mediator that receives data from terminal devices in the first network, performs address translation using the mapping relationship, and forwards data to terminal devices in the second network, thereby enabling communication across different networks without direct connectivity
Solution Approach 2:
The patent segments the communication system into two distinct networks (first network and second network) with separate address spaces, and introduces a dedicated server component to handle the complexity of cross-network communication. This segmentation allows each network to operate independently while the server manages the bridging functionality, reducing the complexity burden on individual terminal devices
2Reliability
If address mapping is implemented between different networks, then data transmission capability is improved, but system complexity increases
Solution Approach 1:
The server serves as an intermediary that centralizes the address mapping functionality. Instead of requiring each terminal device to implement complex address mapping logic, the server maintains the mapping relationship between first network addresses and second network addresses, performing the translation automatically when forwarding data, thus improving reliability while keeping terminal devices simple
Solution Approach 2:
The patent creates a virtual representation of terminal devices by establishing mapping relationships between real device addresses and virtual addresses in the other network. This copying approach allows data to be transmitted to virtual addresses that are then resolved to real device addresses, simplifying the transmission process while maintaining accurate device identification
Data Source
AI summary
The present disclosure provides a data transmission method, a network device, a terminal device, and a computer readable storage medium, the data transmission method including: on a first network side, providing first data to a first network address in a first network; determining, based on mapping of first network addresses in the first network and second network addresses in a second network, a second network address according to the first network address; and transmitting the first data to a terminal device located at the determined second network address in the second network based on a Message Queue Telemetry Transmission (MQTT) protocol.


