Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

MQTT protocol communication method and system for realizing multiplexing

A technology of multiplexing and protocol communication, which is applied in the field of MQTT protocol communication method and system for multiplexing, and can solve the problem of incapable of supporting transport layer multiplexing, incapable of multiplexing of TCP channels, and non-support of star Network topology and other issues

Inactive Publication Date: 2020-10-02
NANJING TETRAELC ELECTRONICS TECH CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However if figure 1 As shown, in the prior art, there is a one-to-one correspondence between the MQTT client and the TCP channel, and the TCP channel cannot be multiplexed. Supports multiplexing at the transport layer, with limitations

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • MQTT protocol communication method and system for realizing multiplexing
  • MQTT protocol communication method and system for realizing multiplexing
  • MQTT protocol communication method and system for realizing multiplexing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The technical solutions of the present invention will be described in detail below, but the protection scope of the present invention is not limited to the embodiments.

[0020] Such as figure 2 As shown, the MQTT protocol communication method for realizing multiplexing in this embodiment, the specific steps are as follows:

[0021] Step 1. Establish several TCP channels at the transport layer, and the same group of MQTT clients communicate with the MQTT proxy server through the same TCP channel, that is, make a one-to-many mapping relationship between several MQTT clients and TCP channels of the same group; The one-to-many mapping relationship is dynamically generated according to the login (online) and offline of the MQTT client;

[0022] Step 2, log in to the MQTT proxy server on the MQTT client, and obtain the mapping relationship between the MQTT client and the TCP channel;

[0023] Step 3, when working, when the MQTT proxy server needs to forward messages, firs...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an MQTT protocol communication method and system for realizing multiplexing. The method comprises: establishing a plurality of TCP channels; acquiring a mapping table of a login client and a TCP channel when an MQTT client logs in a proxy server; searching for the TCP channel corresponding to the MQTT client in the mapping table through an MQTT client ID when receiving andsending messages; then acquiring all message content of the TCP channel; and finally realizing multiplexing of the TCP channel. According to the invention, the problem that a star network topologicalstructure of Lora and Zigbee communication accesses an Internet of Things protocol is solved, so that the MQTT proxy server is compatible with a conventional MQTT protocol at the same time, and equipment supporting a standard MQTT protocol can also be normally accessed.

Description

technical field [0001] The invention belongs to network communication technology, and in particular relates to an MQTT protocol communication method and system for realizing multiplexing. Background technique [0002] MQTT (Message Queuing Telemetry Transport) is a messaging protocol based on the publish / subscribe paradigm under the ISO standard (ISO / IEC PRF 20922). It works on the TCP / IP protocol family and is a publish / subscribe message protocol designed for remote devices with low hardware performance and poor network conditions. [0003] For the current MQTT protocol, there is a one-to-one correspondence between the MQTT channel and the TCP channel, resulting in the coupling of the MQTT protocol and the transport layer, which has the advantages of low protocol overhead, tolerance to unstable networks and fault recovery, and support for large concurrent connections. [0004] However if figure 1 As shown, in the prior art, there is a one-to-one correspondence between the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/141H04L69/26H04L67/54H04L67/562
Inventor 王顺刘爽闵济海叶增军姜红杉
Owner NANJING TETRAELC ELECTRONICS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products