WO2020063044A1 - 节点通讯方法,服务器,客户端 - Google Patents

节点通讯方法,服务器,客户端 Download PDF

Info

Publication number
WO2020063044A1
WO2020063044A1 PCT/CN2019/096208 CN2019096208W WO2020063044A1 WO 2020063044 A1 WO2020063044 A1 WO 2020063044A1 CN 2019096208 W CN2019096208 W CN 2019096208W WO 2020063044 A1 WO2020063044 A1 WO 2020063044A1
Authority
WO
WIPO (PCT)
Prior art keywords
mqtt
message
information
client
topic
Prior art date
Application number
PCT/CN2019/096208
Other languages
English (en)
French (fr)
Inventor
李晖
黄晓庆
Original Assignee
深圳前海达闼云端智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Publication of WO2020063044A1 publication Critical patent/WO2020063044A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/27Arrangements for networking
    • H04B10/272Star-type networks or tree-type networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a node communication method, a server, and a client.
  • MQTT Message Queuing Telemetry Transport
  • M2M machine-to-machine communication
  • IoT Internet of Things
  • MQTT-SN MQTT For Sensor Networks
  • MQTT-SN Sensor version of MQTT
  • Any network can support MQTT-SN as long as it can provide two-way data transmission service between any node and a specific node (gateway).
  • the main purpose of the present disclosure is to provide a node communication method, a server, and a client, which are used to solve the problem that the inter-node communication scheme provided by the existing MQTT-SN protocol is not flexible enough to quantitatively describe the service specifications required for publishing messages.
  • a first aspect of an embodiment of the present disclosure provides a node communication method, which is applied to a message version telemetry transmission MQTT-SN client of a sensor version, including:
  • the REGISTER message includes service specification information, and the service specification information is used to quantitatively describe the data service specification of the subject requesting registration;
  • the topic registration If the topic registration is successful, send a topic message of the registered topic to the MQTT server, so that the MQTT server sends the topic message to the MQTT-SN client subscribing to the topic according to the service specification information.
  • the service specification information includes the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • the REGACK message includes a service flow tag, and the service flow tag is used to perform flow classification on a subject for which registration is requested.
  • a second aspect of the embodiments of the present disclosure provides a node communication method, the method being applied to a message queue telemetry transmission MQTT server, including:
  • the configuring the data service specifications of the subject requesting registration according to the service specification information in the REGISTER message includes:
  • one or more of a bandwidth for publishing a topic message, a data transmission method for publishing the topic message, and a data transmission method for subscribing to the topic message are configured.
  • the service specification information includes the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • the REGACK message includes a service flow tag, and the service flow tag is used to perform flow classification on a subject for which registration is requested.
  • a third aspect of the embodiments of the present disclosure provides an MQTT-SN client, including:
  • a first sending module configured to send a topic registration REGISTER message to an MQTT server, where the REGISTER message includes service specification information, and the service specification information is used to quantitatively describe a data service specification of a subject requesting registration;
  • a receiving module configured to receive a REGACK message sent by the MQTT server and used to respond to the REGISTER message, wherein the REGACK message includes a return code ReturnCode for indicating whether the topic is successfully registered;
  • a second sending module configured to send a topic message of the registered topic to the MQTT server when the topic registration is successful, so that the MQTT server sends the topic message to the subscribed topic according to the service specification information MQTT-SN client.
  • the service specification information includes the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • the REGACK message includes a service flow tag, and the service flow tag is used to perform flow classification on a subject for which registration is requested.
  • a fourth aspect of the embodiments of the present disclosure provides an MQTT server, including:
  • a receiving module for receiving a subject registration REGISTER message sent by the MQTT-SN client
  • a configuration module configured to configure the data service specifications of the subject requesting registration according to the service specification information in the REGISTER message
  • a sending module configured to return a REGACK message for responding to the REGISTER message.
  • the configuration module is configured to:
  • one or more of a bandwidth for publishing a topic message, a data transmission method for publishing the topic message, and a data transmission method for subscribing to the topic message are configured.
  • the service specification information includes the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • the REGACK message includes a service flow tag, and the service flow tag is used to perform flow classification on a subject for which registration is requested.
  • a fifth aspect of the embodiments of the present disclosure provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.
  • a sixth aspect of the embodiments of the present disclosure provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method described in the second aspect.
  • a seventh aspect of the embodiments of the present disclosure provides an MQTT-SN client, including:
  • a processor configured to execute the computer program in the memory to implement the steps of the method according to the first aspect.
  • An eighth aspect of the embodiments of the present disclosure provides an MQTT server, including:
  • a processor configured to execute the computer program in the memory to implement the steps of the method according to the second aspect.
  • a ninth aspect of the embodiments of the present disclosure provides a computer program product, the computer program product including a computer program executable by a programmable device, the computer program having a function of executing a first program when executed by the programmable device; The code part of the method described in one aspect.
  • a tenth aspect of the embodiments of the present disclosure provides a computer program product, the computer program product including a computer program executable by a programmable device, the computer program having a function for executing a first program when executed by the programmable device; The code part of the method described in the second aspect.
  • the technical solution provided by the embodiment of the present disclosure allows the MQTT-SN client to quantitatively describe the data service specifications of the subject for which the registration is requested, and the MQTT server can perform message publishing, subscription, etc. of the registration subject according to the service specification information in the REGISTER message
  • the configuration makes the publication and subscription of topic messages more flexible, can quantitatively describe the service specifications required for publishing messages, and improves the generality of the communication scheme between nodes based on the MQTT-SN protocol.
  • Figure 1 is a schematic diagram of the MQTT-SN system architecture
  • FIG. 2 is a schematic flowchart of a node communication method according to an embodiment of the present disclosure
  • FIG. 3 is a network data link layer MQTT-SN system control and management plane architecture diagram illustrating a G-PON network as an example according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of another node communication method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart of another node communication method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an MQTT-SN client according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an MQTT server according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another MQTT-SN client according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another MQTT server according to an embodiment of the present disclosure.
  • the MQTT-SN system architecture is shown in Figure 1. It includes three MQTT-SN components: MQTT-SN client, MQTT-SN gateway, and MQTT-SN repeater.
  • MQTT-SN client uses the MQTT-SN protocol to connect itself to the MQTT server through the MQTT-SN gateway.
  • MQTT-SN gateway can be integrated or not integrated into the MQTT server. In the case of a stand-alone gateway, MQTT-SN
  • the MQTT protocol is used between the gateway and the MQTT server.
  • the main function of the MQTT-SN gateway is to convert between the MQTT protocol and the MQTT-SN protocol.
  • MQTT runs on the Transmission Control Protocol (TCP) layer
  • MQTT-SN can run on the data link layer
  • IP Internet Protocol Address
  • UDP User Datagram Protocol, user data
  • An embodiment of the present disclosure provides a node communication method.
  • the method is applied to a sensor version of a message queue telemetry transmission MQTT-SN client. As shown in FIG. 2, the method includes:
  • S202 Receive a REGACK message sent by the MQTT server in response to the REGISTER message, where the REGACK message includes a return code ReturnCode for indicating whether the topic is successfully registered;
  • the above method steps allow the MQTT-SN client to quantitatively describe the data service specifications of the subject that it requested to register, and the MQTT server can configure the message publishing, subscription, etc. of the registered subject according to the service specification information in the REGISTER message, so that the subject message Publish and subscribe can be more flexible, can quantitatively describe the service specifications required to publish messages, and improve the versatility of the inter-node communication scheme based on the MQTT-SN protocol.
  • the service specification information includes one or more of the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • Version is the specification version information
  • DISTRIBUTION Encryption is the encryption mode information
  • PUBLISH Mode is the release mode information
  • DISTRIBUTION Mode is the distribution mode information
  • Fixed Bandwidth is the fixed bandwidth
  • Assured Bandwidth is the guaranteed bandwidth
  • Maximum Bandwidth is the maximum bandwidth .
  • the relationship between the fixed bandwidth, the guaranteed bandwidth, and the maximum bandwidth can be referred to the corresponding description in the G-PON technical specification ITU-TG.984.3 standard.
  • table 2 is an illustration of the specification version information Version in the service specification information:
  • the version number is included, and the bit carrying the version information indicates the specific number, and the corresponding version description information.
  • the following table 3 is the encryption mode information in the service specification information.
  • DISTRIBUTION refers to the transmission path from the MQTT-SN gateway to the subscribed MQTT-SN client, which is suitable for unicast and multicast.
  • the following table 4 is a schematic representation of the release mode information PUBLISH Mode in the service specification information:
  • the following table 5 is a schematic of the distribution mode information DISTRIBUTION Mode in the service specification information:
  • DISTRIBUTION Mode Bit 5 Bit 4 Description 0 0 0 MQTT-SN gateway to subscribing MQTT-SN client to this section of transmission path, using shared (unicast) 1 0 1 The MQTT-SN gateway to the subscribed MQTT-SN client to this section of the transmission path, using a dedicated (unicast) 2 1 0 The MQTT-SN gateway to the subscribed MQTT-SN client to this section of the transmission path, using shared (multicast) 3 1 1 1 The MQTT-SN gateway to the subscribed MQTT-SN client to this section of the transmission path, using dedicated (multicast) multicast
  • the MQTT server can configure the bandwidth for publishing the topic message, the data transmission method for publishing the topic message, and the data transmission method for subscribing to the topic message.
  • FIG. 3 is an architecture diagram of the control and management plane of the MQTT-SN system at the data link layer of the G-PON network as an example.
  • the G-PON message bus layer implements an MQTT-SN client and an MQTT server integrated with the MQTT-SN gateway function (the embodiment of the present disclosure is referred to as the MQTT-SN gateway server).
  • Layer 2 N MP Bridge-map-filtering, multicast service and other configurations handle unicast, multicast, and GEM port (G-PON Encapsulation Mode port) channel encryption and other services, which are directly applicable to G-PON network systems .
  • GEM port G-PON Encapsulation Mode port
  • the data channel (end-to-end) segment of the topic message release can be defined as:
  • PUBLISH data channel refers to the uplink transmission path from the MQTT-SN client that publishes the subject message to the MQTT server, which can only be unicast, not encrypted, and can be shared or dedicated unicast;
  • DISTRIBUTION data channel refers to the downlink transmission path from the MQTT server to the subscribed MQTT-SN client, which can be unicast and multicast, can be encrypted, and can be shared or dedicated unicast, or shared or Dedicated multicast.
  • the above service specification information is used to configure the release data channel and the distribution data channel.
  • embodiments of the present disclosure also define a subject message data service flow tag (Service Flow Tag).
  • Service Flow Tag a subject message data service flow tag
  • ServiceFlowTag Values ServiceFlowTag Description 0-4095 Classify topic message data
  • Service flow tokens used by MQTT server-distributed clients when publishing topic message data
  • the REGACK message for responding to the REGISTER message includes a service flow tag allocated by the MQTT server for the subject requesting registration, and the service flow tag is used for classifying the subject message requesting registration, All messages released by the MQTT-SN client to this topic later carry the service flow token.
  • the embodiment of the present disclosure also defines a return code ReturnCode. It is worth noting that the value of ReturnCode can be used to indicate Registration / subscription / publishing succeeds or fails, and in the case of failure indication, there can be multiple values to indicate the cause of failure.
  • Table 7 is a schematic of the values used by ReturnCode to characterize the cause of the failure:
  • the embodiment of the present disclosure extends the definition of the optional message field based on the message format defined by the existing MQTT-SN protocol (referred to as the basic message format) and compatible with the basic message format of the MQTT-SN ( It is called extended message format) and is used to implement the above service specification information and service flow mark.
  • the basic message format the message format defined by the existing MQTT-SN protocol
  • extended message format the basic message format of the MQTT-SN
  • Table 8 is the definition of the extended message format:
  • the definition of the extended message format follows the definition of the existing basic message format.
  • the length in the message header is the full length of the message, including the message header itself, the Message Variable Part-Baseline. Message Variable Part-Extended.
  • Table 9 is a definition of the optional message fields of the extended variable message part in the extended message format, wherein, according to the specific message, zero or more different optional message fields may be superimposed in the extended variable message part.
  • Extended Field Preamble (Byte n + 1: n + 2)
  • Extended Field (Byte n + 3: n + m)
  • n + m Extended Field Preamble
  • each Extended Field has a specific leading identifier
  • each ExtendedField has a specific leading identifier.
  • the leading identifier of the service specification information ServiceSpec is "$$"
  • the leading identifier of the service flow tag ServiceFlowTag is "@@”.
  • the optional message field Extended Field shown in Table 9 may carry service specification information or a service flow tag.
  • the embodiment of the present disclosure can further expand the definition of the topic registration REGISTER message with an extended message format, where the extended topic registration message is superimposed on the basic topic registration message Service specification information, Table 10 and Table 11 are two types of extension topic registration messages:
  • ServiceFlowTagPreamble (Byte n + 9: n + 10) ServiceFlowTag (Byte (n + 11: n + 12) Optional, leading identifier of the following Service Flow Tag, fixed pattern "@@” Optional.
  • the ServiceTag used when the client topic message data PUBLISH is assigned by the MQTT-SN gateway. In the specific implementation, it is the GEM port-ID, which is placed in the inner VLAN ID field of the Ethernet frame.
  • the embodiments of the present disclosure may also use the extended message format to extend the definition of the subject registration confirmation REGACK message.
  • the extended topic registration confirmation message superimposes the service specification information of the extended topic message data and the service flow tag of the topic message data on the basic topic registration confirmation message, as shown in Table 12:
  • An embodiment of the present disclosure also provides another node communication method.
  • the method is applied to a message queue telemetry transmission MQTT server, as shown in FIG. 4, and includes:
  • the above method steps allow the MQTT-SN client to quantitatively describe the data service specifications of the subject that it requested to register, and the MQTT server can configure the message publishing, subscription, etc. of the registered subject according to the service specification information in the REGISTER message, so that the subject message Publish and subscribe can be more flexible, can quantitatively describe the service specifications required to publish messages, and improve the versatility of the inter-node communication scheme based on the MQTT-SN protocol.
  • the configuring the data service specifications of the subject requesting registration according to the service specification information in the REGISTER message includes:
  • one or more of a bandwidth for publishing a topic message, a data transmission method for publishing the topic message, and a data transmission method for subscribing to the topic message are configured.
  • the service specification information includes the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • the REGACK message includes a service flow tag, and the service flow tag is used to perform flow classification on a subject for which registration is requested.
  • the topic message data service specification for this video stream can be clearly defined Service Spec. Assuming the system allows video stream to drop frames, use MQTT-SN QoS level 0. In this case, the MQTT-SN client 1/2/3 subscribes to this video stream, and the method for the MQTT-SN client 1/2/2 to register and publish the topic message is shown in Figure 5, including:
  • the MQTT-SN client 1/2/2 sends a topic registration message to the MQTT-SN gateway server.
  • the MQTT-SN gateway server returns a subject registration confirmation to the MQTT-SN client 1/2/2.
  • the MQTT-SN client 1/2/2 sends a topic message to the MQTT-SN gateway server for publication.
  • the MQTT-SN client 1/2/3 sends a topic subscription message to the MQTT-SN gateway server.
  • the MQTT-SN gateway server returns a topic subscription confirmation to the MQTT-SN client 1/2/3.
  • the subject message issued by the MQTT-SN client 1/2/2 is transmitted to the MQTT-SN client 1/2/3 via the MQTT-SN gateway server.
  • topic message registration and publication are performed through the MQTT-SN client 1/2/2, and subscription and reception are performed by the MQTT-SN client 1/2/3 to realize the MQTT-SN client 1/2/2 and Communication between MQTT-SN clients 1/2/3.
  • An embodiment of the present disclosure further provides an MQTT-SN client, which is used to implement the node communication method on the MQTT-SN client side provided by the foregoing method embodiments.
  • the MQTT-SN client 600 includes:
  • a first sending module 601 is configured to send a subject registration REGISTER message to an MQTT server, where the REGISTER message includes service specification information, and the service specification information is used to quantitatively describe a data service specification of a subject requesting registration;
  • the receiving module 602 is configured to receive a REGACK message sent by the MQTT server and used to respond to the REGISTER message, where the REGACK message includes a return code ReturnCode for indicating whether the topic is successfully registered;
  • a second sending module 603, configured to send a topic message of the registered topic to the MQTT server when the topic registration is successful, so that the MQTT server sends the topic message to the subscribed subscriber according to the service specification information Subject MQTT-SN client.
  • the service specification information includes the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • the REGACK message includes a service flow tag, and the service flow tag is used to perform flow classification on a subject for which registration is requested.
  • An embodiment of the present disclosure further provides an MQTT server for implementing the node communication method on the MQTT server side provided by the foregoing method embodiments.
  • the MQTT server 700 includes:
  • a receiving module 701 configured to receive a topic registration REGISTER message sent by an MQTT-SN client;
  • a configuration module 702 configured to configure the data service specifications of the subject requesting registration according to the service specification information in the REGISTER message;
  • the sending module 703 is configured to return a REGACK message for responding to the REGISTER message.
  • the configuration module 702 is configured to:
  • one or more of a bandwidth for publishing a topic message, a data transmission method for publishing the topic message, and a data transmission method for subscribing to the topic message are configured.
  • the service specification information includes the following information: specification version information, encryption mode information, distribution mode information, distribution mode information, and bandwidth description information;
  • the specification version information is used to identify a current service specification
  • the encryption mode information is used to specify whether data distribution is encrypted
  • the publishing mode information is used to specify a data transmission mode between the MQTT-SN client and the MQTT server;
  • the distribution mode information is used to specify a data transmission mode between the MQTT server and the subscribed MQTT-SN client;
  • the bandwidth description information is used to specify a fixed bandwidth, a guaranteed bandwidth, and a maximum bandwidth for the topic message release.
  • the REGACK message includes a service flow tag, and the service flow tag is used to perform flow classification on a subject for which registration is requested.
  • the embodiment of the present disclosure also provides another MQTT-SN client, including:
  • a processor configured to execute the computer program in the memory to implement the steps of the node communication method on the client side of the MQTT-SN provided by the foregoing method embodiment.
  • FIG. 8 is a schematic structural diagram of the MQTT-SN client.
  • the MQTT-SN client may be an electronic terminal device, for example, an OLT or an ONU.
  • the MQTT-SN client 800 may include: a processor 801 and a memory 802.
  • the MQTT-SN client 800 may further include one or more of a sensor component 803, an input / output (I / O) interface 804, and a communication component 805.
  • the processor 801 is configured to control the overall operation of the MQTT-SN client 800 to complete the steps of the node communication method on the MQTT-SN client side provided by the foregoing method embodiments.
  • the memory 802 is configured to store various types of data to support operations on the MQTT-SN client 800, and the data may include, for example, instructions for any application program or method for operating on the MQTT-SN client 800, and Application related data.
  • the memory 802 may be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory Programmable Read-Only Memory (referred to as EPROM), Programmable Read-Only Memory (referred to as PROM), Read-Only Memory (Read-Only Memory (referred to as ROM)), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM Static Random Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory Programmable Read-Only Memory
  • PROM Programmable Read-Only Memory
  • ROM Read-Only Memory
  • magnetic memory flash memory
  • flash memory magnetic disk or optical disk.
  • the sensor component 803 may include, for example, a mechanical sensor, a tactile sensor, a proximity sensor, a vision sensor, a thermal sensor, and the like, and details are not described herein.
  • the communication component 805 is used for wired or wireless communication between the MQTT-SN client 800 and other devices.
  • An embodiment of the present disclosure further provides a computer-readable storage medium including program instructions, and the program instructions, when executed by a processor, implement the steps of the node communication method of the MQTT-SN client provided by the foregoing method embodiments.
  • the computer-readable storage medium may be the foregoing memory 802 including program instructions, and the foregoing program instructions may be executed by the processor 801 of the MQTT-SN client 800 to complete node communication on the MQTT-SN client side provided by the foregoing method embodiment.
  • the embodiment of the present disclosure also provides another MQTT server, including:
  • a processor configured to execute the computer program in the memory to implement the steps of the node communication method on the MQTT server side provided by the foregoing method embodiment.
  • FIG. 9 is a schematic structural diagram of the MQTT server.
  • the MQTT server 900 may include a processing component 901, a memory 902, a camera 903, a lidar 904, an actuator 905, an input / output (I / O) interface 906, and a communication component 907.
  • the processing component 901 may include one or more processors 9010 to execute instructions to complete all or part of the steps of the node communication method on the MQTT server side.
  • the memory 902 is configured to store various types of data to support operation at the MQTT server 900. Examples of such data include instructions for any application or method operating on the MQTT server 900.
  • the memory 902 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Programming read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM Programming read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory
  • flash memory magnetic disk or optical disk.
  • the actuator 905 can be various robotic actuators, including servo motors, hydraulic actuators, and the like.
  • the I / O interface 906 provides an interface between the processing component 901 and a peripheral interface module.
  • the communication component 907 is configured to facilitate wired or wireless communication between the MQTT server 900 and other devices. Such as WiFi, 4G or 5G, or a combination of them.
  • An embodiment of the present disclosure further provides a computer-readable storage medium including program instructions, and the program instructions, when executed by a processor, implement the steps of the node communication method on the MQTT server side provided by the foregoing method embodiments.
  • the computer-readable storage medium may be the foregoing memory 902 including program instructions, and the foregoing program instructions may be executed by the processing component 901 of the MQTT server 900 to complete the node communication method on the MQTT server side provided by the foregoing method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computing Systems (AREA)
  • Small-Scale Networks (AREA)
  • Information Transfer Between Computers (AREA)
  • Communication Control (AREA)

Abstract

本公开涉及一种节点通讯方法,服务器,客户端,用于解决现有MQTT-SN协议提供的节点间通讯方案不够灵活,不能定量描述发布消息所需的服务规格的问题。该方法包括:向MQTT服务器发送主题注册REGISTER消息,所述REGISTER消息包括服务规格信息;接收所述MQTT服务器发送的用于响应所述REGISTER消息的REGACK消息,其中,所述REGACK消息中包括用于指示主题是否注册成功的返回代码ReturnCode;若所述主题注册成功,则向所述MQTT服务器发送已注册主题的主题消息,以便所述MQTT服务器根据所述服务规格信息将所述主题消息发送给订阅所述主题的MQTT-SN客户端。

Description

节点通讯方法,服务器,客户端 技术领域
本公开涉及通信领域,具体地,涉及一种节点通讯方法,服务器,客户端。
背景技术
消息总线和发布/订阅消息通讯模式在现代系统设计中的应用越来越广泛。消息队列遥测传输(Message Queuing Telemetry Transport,MQTT)是一个基于代理的支持发布/订阅消息通讯模式的消息传输协议。它的设计思想是轻巧、开放、简单、规范,易于实现。这些特点使得它对很多场景来说都是很好的选择,特别是对于受限的环境,如机器与机器的通信(MachinetoMachine,M2M),物联网环境(Internet of Things,IoT)以及机器人系统内部通信。
传感器版本的MQTT(MQTT For Sensor Networks,MQTT-SN)是在MQTT基础上专门针对各种低成本的电池驱动设备以及传感器的一个优化设计。MQTT-SN对底层网络服务没有严格要求。任何网络只要能在任何节点和特定节点(网关)之间提供双向数据传输服务就能够支持MQTT-SN。
但是,基于现有MQTT-SN协议进行节点间通讯的方案还不够灵活,不能定量描述发布消息所需的服务规格的问题。
发明内容
本公开的主要目的是提供一种节点通讯方法,服务器,客户端,用于解决现有MQTT-SN协议提供的节点间通讯方案不够灵活,不能定量描述发布消息所需的服务规格的问题。
为了实现上述目的,本公开实施例第一方面提供一种节点通讯方法,所述方法应用于传感器版本的消息队列遥测传输MQTT-SN客户端,包括:
向MQTT服务器发送主题注册REGISTER消息,所述REGISTER消息包括服务规格信息,所述服务规格信息用于对请求注册的主题的数据服务规格进行定量描述;
接收所述MQTT服务器发送的用于响应所述REGISTER消息的REGACK消息,其中,所述REGACK消息中包括用于指示主题是否注册成功的返回代码ReturnCode;
若所述主题注册成功,则向所述MQTT服务器发送已注册主题的主题消息,以便所述MQTT服务器根据所述服务规格信息将所述主题消息发送给订阅所述主题的MQTT-SN客户端。
可选地,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
可选地,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
本公开实施例第二方面提供一种节点通讯方法,所述方法应用于消息队列遥测传输MQTT服务器,包括:
接收MQTT-SN客户端发送的主题注册REGISTER消息;
根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置;
返回用于响应所述REGISTER消息的REGACK消息。
可选地,所述根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置,包括:
根据所述服务规格信息对发布主题消息的带宽,发布主题消息的数据传输方式,订阅主题消息的数据传输方式中的一者或多者进行配置。
可选地,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
可选地,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
本公开实施例第三方面提供一种MQTT-SN客户端,包括:
第一发送模块,用于向MQTT服务器发送主题注册REGISTER消息,所述REGISTER消息包括服务规格信息,所述服务规格信息用于对请求注册的主题的数据服务规格进行定量描述;
接收模块,用于接收所述MQTT服务器发送的用于响应所述REGISTER消息的REGACK消息,其中,所述REGACK消息中包括用于指示主题是否注册成功的返回代码ReturnCode;
第二发送模块,用于在所述主题注册成功时,向所述MQTT服务器发送已注册主题的主题消息,以便所述MQTT服务器根据所述服务规格信息将所述主题消息发送给订阅所述主题的MQTT-SN客户端。
可选地,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
可选地,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
本公开实施例第四方面提供一种MQTT服务器,包括:
接收模块,用于接收MQTT-SN客户端发送的主题注册REGISTER消息;
配置模块,用于根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置;
发送模块,用于返回用于响应所述REGISTER消息的REGACK消息。
可选地,所述配置模块用于:
根据所述服务规格信息对发布主题消息的带宽,发布主题消息的数据传输方式,订阅主题消息的数据传输方式中的一者或多者进行配置。
可选地,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
可选地,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
本公开实施例第五方面提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面所述方法的步骤。
本公开实施例第六方面提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第二方面所述方法的步骤。
本公开实施例第七方面提供一种MQTT-SN客户端,包括:
存储器,其上存储有计算机程序;
处理器,用于执行所述存储器中的所述计算机程序,以实现第一方面所述方法的步骤。
本公开实施例第八方面提供一种MQTT服务器,包括:
存储器,其上存储有计算机程序;
处理器,用于执行所述存储器中的所述计算机程序,以实现第二方面所述方法的步骤。
本公开实施例第九方面提供一种计算机程序产品,所述计算机程序产品包含能够由可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行第一方面所述方法的代码部分。
本公开实施例第十方面提供一种计算机程序产品,所述计算机程序产品包含能够由可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行第二方面所述方法的代码部分。
采用上述技术方案,至少能够达到如下技术效果:
本公开实施例提供的技术方案允许MQTT-SN客户端对自身请求注册的主题的数据服务规格进行定量描述,MQTT服务器可以根据REGISTER消息中的服务规格信息对请求注册主题的消息发布,订阅等进行配置,使得主题消息的发布订阅可以更加灵活,可以定量描述发布消息所需的服务规格,提高了基于MQTT-SN协议进行节点间通讯方案的通用性。
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。
附图说明
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:
图1是MQTT-SN系统架构的一种示意图;
图2是本公开实施例提供的一种节点通讯方法的流程示意图;
图3是本公开实施例提供的一种以G-PON网络为例示出的网络数据链路层MQTT-SN系统控制管理平面架构图;
图4是本公开实施例提供另一种节点通讯方法的流程示意图;
图5是本公开实施例提供另又一种节点通讯方法的流程示意图;
图6是本公开实施例提供的一种MQTT-SN客户端的结构示意图;
图7是本公开实施例提供的一种MQTT服务器的结构示意图;
图8是本公开实施例提供的另一种MQTT-SN客户端的结构示意图;
图9是本公开实施例提供的另一种MQTT服务器的结构示意图。
具体实施方式
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。
为了使本领域技术人员能够更加容易理解本公开实施例提供的技术方案,首选对本公开实施例涉及到的相关技术进行简单介绍。
MQTT-SN系统架构如图1所示,包括三种MQTT-SN组件:MQTT-SN客户端,MQTT-SN网关和MQTT-SN转发器。MQTT-SN客户端使用MQTT-SN协议通过MQTT-SN网关将自身连接到MQTT服务器。MQTT-SN网关可以集成或不集成到MQTT服务器中。在独立网关的情况下,MQTT-SN
网关和MQTT服务器之间使用MQTT协议。MQTT-SN网关的主要功能是在MQTT协议和MQTT-SN协议之间进行转换。其中,MQTT运行在TCP(Transmission Control Protocol,传输控制协议)层之上,MQTT-SN可以运行在数据链路层,IP(Internet Protocol Address,网际协议地址)层和UDP(User Datagram Protocol,用户数据报协议)之上。值得说明的是,本文中所描述的MQTT服务器与MQTT-SN客户端之间的交互均可以理解为是通过MQTT-SN网关进行的。并且,为了描述简便,后文所出现的MQTT-SN网关服务器是指集成MQTT-SN网关功能的MQTT服务器。
本公开实施例提供一种节点通讯方法,所述方法应用于传感器版本的消息队列遥测传输MQTT-SN客户端,如图2所示,包括:
S201、向MQTT服务器发送主题注册REGISTER消息,所述REGISTER消息包括服务规格信息,所述服务规格信息用于对请求注册的主题的数据服务规格进行定量描述;
S202、接收所述MQTT服务器发送的用于响应所述REGISTER消息的REGACK消息,其中,所述REGACK消息中包括用于指示主题是否注册成功的返回代码ReturnCode;
S203、若所述主题注册成功,则向所述MQTT服务器发送已注册主题的主题消息,以便所述MQTT服务器根据所述服务规格信息将所述主题消息发送给订阅所述主题的MQTT-SN客户端。
上述方法步骤允许MQTT-SN客户端对自身请求注册的主题的数据服务规格进行定量描述,MQTT服务器可以根据REGISTER消息中的服务规格信息对请求注册主题的消息发布,订阅等进行配置,使得主题消息的发布订阅可以更加灵活,可以定量描述发布消息所需的服务规格,提高了基于MQTT-SN协议进行节点间通讯方案的通用性。
可选地,所述服务规格信息包括以下信息中的一者或多者:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
示例地,下表1是服务规格信息ServiceSpec的一种示意:
Figure dest_path_image001
表1
如表1所示,Version为规格版本信息,DISTRIBUTION Encryption为加密模式信息,PUBLISH Mode为发布模式信息,DISTRIBUTION Mode为分发模式信息,Fixed Bandwidth为固定带宽,Assured Bandwidth为保证带宽,Maximum Bandwidth为最大带宽。在具体实施时,固定带宽,保证带宽以及最大带宽三者之间的关系可以参照G-PON技术规范ITU-TG.984.3标准中对应的描述。
具体地,下表2是服务规格信息中的规格版本信息Version的一种示意:
Version Bit 7 Bit 6 Description
0 0 0 Experimental
1 0 1 Reserved
2 1 0 Reserved
3 1 1 Reserved
表2
如表2所示,包括了版本的编号,以及携带版本信息的比特位上表示具体编号的值,以及对应的版本描述信息。
下表3是服务规格信息中的加密模式信息DISTRIBUTION Encryption的一种示意:
DISTRIBUTION Encryption Bit 0 Description
0 0 MQTT-SN网关到订阅的MQTT-SN客户端这一段传送路径不加密
1 1 MQTT-SN网关到订阅的MQTT-SN客户端这一段传送路径加密
表3
如表3所示,携带加密模式信息的比特位的值为0时,表示MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径不加密。携带加密模式信息的比特位的值为1时,表示MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径加密。其中,DISTRIBUTION即是指从MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,适合于单播(unicast)和组播(multicast)。
下表4是服务规格信息中的发布模式信息PUBLISH Mode的一种示意:
PUBLISH Mode Bit 7 Bit 6 Description
0 0 0 MQTT-SN客户端到MQTT-SN网关这一段传送路径,用共享(shared)单播(unicast)
1 0 1 MQTT-SN客户端到MQTT-SN网关这一段传送路径,用专一(dedicated)单播(unicast)
2 1 0 Reserved
3 1 1 Reserved
表4
如表4所示,携带加密模式信息的比特位的值为00时,表示MQTT-SN客户端到MQTT-SN网关这一段传送路径,用共享(shared)单播(unicast)传输数据。携带加密模式信息的比特位的值为01时,表示MQTT-SN客户端到MQTT-SN网关这一段传送路径,用专一(dedicated)单播(unicast)传输数据。其中,PUBLISH在这里特指从MQTT-SN客户端到MQTT-SN网关这一段传送路径,只能单播(unicast)。
下表5是服务规格信息中的分发模式信息DISTRIBUTION Mode的一种示意:
DISTRIBUTION Mode Bit 5 Bit 4 Description
0 0 0 MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,用共享(shared)单播(unicast)
1 0 1 MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,用专一(dedicated)单播(unicast)
2 1 0 MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,用共享(shared)组播(multicast)
3 1 1 MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,用专一(dedicated)组播(multicast)
表5
如表5所示,携带分发模式信息的比特位的值为00时,表示MQTT-SN网关到订阅的MQTT-SN客户端这一段传送路径用共享(shared)单播(unicast);携带分发模式信息的比特位的值为01时,表示MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,用专一(dedicated)单播(unicast);携带分发模式信息的比特位的值为10时,表示MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,用共享(shared)组播(multicast);携带分发模式信息的比特位的值为11时,表示MQTT-SN网关到订阅的MQTT-SN客户端到这一段传送路径,用专一(dedicated)组播(multicast)。其中,DISTRIBUTION在这里特指从MQTT-SN网关到订阅的MQTT-SN客户端这一段传送路径,可以单播(unicast)和组播(multicast)。
这样,根据本公开实施例提供的服务规格信息,MQTT服务器可以对发布主题消息的带宽,发布主题消息的数据传输方式,订阅主题消息的数据传输方式进行配置。
示例地,图3是以G-PON网络为例示出的网络数据链路层MQTT-SN系统控制管理平面架构图,如图3所示,在G-PON网络OLT的控制管理平面GTC层之上,G-PON消息总线层实现了MQTT-SN客户端,集成MQTT-SN网关功能的MQTT服务器(本公开实施例简称MQTT-SN网关服务器)。
具体地,利用ITU-T G.988中的OMCI配置模型,例如Layer 2 N:MP bridge-map-filtering,multicast service等配置处理单播,组播,和GEM port(G-PON Encapsulation Mode port,G-PON封装模式端口)通道加密等各种业务,直接适用于G-PON网络系统。上述只是举例说明,在具体实施时,也可以利用ITU-TG.984.3中AnnexCOMCIinEthernetPONSystems的定义,使得本公开实施例提供的方法适用于EPON网络系统。
针对图3所示的MQTT-SN系统控制管理平面架构,根据G-PON网络的QoS传送特性,可以将主题消息发布的数据通道(端到端)分段定义为:
发布(PUBLISH)数据通道:指从发布主题消息的MQTT-SN客户端到MQTT服务器这一段的上行传送路径,只能单播,不加密,可以选择共享或者专一单播;
分发(DISTRIBUTION)数据通道:指从MQTT服务器到订阅的MQTT-SN客户端这一段的下行传送路径,可以单播和组播,可以加密,可以选择共享或者专一单播,或者可以选择共享或者专一组播。
上述服务规格信息即是用于对发布数据通道和分发数据通道进行配置。
可选地,为了准确地对主题消息数据进行流分类,本公开实施例还定义了主题消息数据服务流标记(Service Flow Tag)。
下表6是服务流标记的一种示意:
ServiceFlowTag Values ServiceFlowTag Description
0-4095 对主题消息数据进行流分类 MQTT服务器分配的客户端发布主题消息数据时使用的服务流标记
表6
也就是说,步骤S202中,用于响应所述REGISTER消息的REGACK消息中包括MQTT服务器为请求注册的主题分配的服务流标记,所述服务流标记用于对请求注册的主题消息进行流分类,MQTT-SN客户端在之后向该主题发布的消息均携带所述服务流标记。
可选地,为了准确地描述主题消息注册,主题消息订阅,主题消息发布时可能出现的错误和故障,本公开实施例还扩展定义了返回代码ReturnCode,值得说明的是,ReturnCode的值可用于表明注册/订阅/发布成功或者失败,而在表明失败的情况下,还可以有多种取值表明失败原因。
表7是ReturnCode用于表征失败原因的取值的一种示意:
ReturnCode Value Meaning
0x10 服务规格信息中的规格版本信息出错
0x11 服务规格信息中的模式加密信息出错
0x12 服务规格信息中的发布模式信息出错
0x13 服务规格信息中的分发模式信息出错
0x14 服务规格信息中的带宽描述信息出错
0x22 组播资源不足
0x23 固定带宽不足
0x24 保证带宽不足
0x25 最大带宽不足
表7
下面具体说明上述服务规格信息以及服务流标记的实现方式。
具体地,本公开实施例在现有MQTT-SN协议定义的消息格式(称之为基本消息格式)的基础上,在兼容MQTT-SN基本消息格式的前提下,扩展可选项消息域的定义(称之为扩展消息格式),用于实现上述服务规格信息以及服务流标记。
表8是扩展消息格式的定义:
Message Header (2 or 4 octets) Message Variable Part – Baseline (n octets) Message Variable Part – Extended (m octets)
表8
如表8所示,扩展消息格式的定义遵循现有基本消息格式的定义,消息头中的长度是消息的全部长度,包括消息头本身Message Header,基本可变消息部分Message Variable Part-Baseline,扩展可变消息部分Message Variable Part-Extended。
表9是扩展消息格式中的扩展可变消息部分的可选消息域的定义,其中,根据具体消息的不同,零个到多个不同的可选消息域可以叠加在扩展可变消息部分中。
Extended Field Preamble (Byte n+1:n+2) Extended Field (Byte n+3:n+m)
可选项,是后面ExtendedField的前导识别符,每一个Extended  Field有特定的前导识别符 可选项,主题消息数据的ExtendedField
表9
其中,每一个ExtendedField都有特定的前导识别符。例如,服务规格信息ServiceSpec的前导识别符是“$$”,服务流标记ServiceFlowTag的前导识别符是“@@”。表9中所示的可选消息域Extended Field可以携带服务规格信息或者是服务流标记。
这样,针对本公开实施例提供的服务规格信息,本公开实施例可以用扩展消息格式进一步扩展定义主题注册REGISTER消息,其中,扩展主题注册消息在基本主题注册消息上叠加了扩展的主题消息数据的服务规格信息,表10和表11是扩展主题注册消息两种示意:
Length (Byte 0) MsgType (Byte 1) TopicId (Byte 2:3) MsgId (Byte 4:5) TopicName (Byte 6:n) ServiceSpecPreamble (Byte n+1:n+2) ServiceSpec (Byte n+3:n+8)
全部长度包括扩展定义的可选项   固定0x0     可选项,是后面服务规格信息的前导识别符,固定模式“$$” 可选项,定义主题消息数据的服务规格信息
表10
Length (Byte 0) MsgType (Byte 1) TopicId (Byte 2:3) MsgId (Byte 4:5) TopicName (Byte 6:n) ServiceSpecPreamble (Byte n+1:n+2) ServiceSpec (Byte n+3:n+8)
全部长度包括扩展定义的可选项   MQTT-SN网关分配的TopicId     可选项,是后面ServiceSpec的前导识别符,固定模式“$$” 可选项,定义主题消息数据的ServiceSpec,如果不存在,则将本主题放入控制管理GEM port
ServiceFlowTagPreamble (Byte n+9:n+10) ServiceFlowTag (Byte n+11:n+12)
可选项,是后面Service Flow Tag的前导识别符,固定模式“@@” 可选项,MQTT-SN网关分配的客户端主题消息数据PUBLISH时使用的ServiceTag,在具体实现中它是GEM port-ID,放在Ethernet帧的inner VLAN ID域中
表11
进一步地,本公开实施例还可以用扩展消息格式扩展定义主题注册确认REGACK消息。其中,扩展主题注册确认消息在基本主题注册确认消息上叠加了扩展的主题消息数据的服务规格信息和主题消息数据的服务流标记,如表12所示:
Length (Byte 0) MsgType (Byte 1) TopicId (Byte 2:3) MsgId (Byte 4:5) ReturnCode (Byte 6) ServiceTagPreamble (Byte 7:8) ServiceFlowTag (Byte 9:10)
全部长度包括扩展定义的可选项   MQTT服务器分配的TopicId     可选项,是后面服务流标记的前导识别符,固定模式“@@” 可选项,MQTT服务器分配的客户端发布主题消息数据时使用的服务流标记
表12
本公开实施例还提供另一种节点通讯方法,所述方法应用于消息队列遥测传输MQTT服务器,如图4所示,包括:
S401、接收MQTT-SN客户端发送的主题注册REGISTER消息;
S402、根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置;
S403、返回用于响应所述REGISTER消息的REGACK消息。
上述方法步骤允许MQTT-SN客户端对自身请求注册的主题的数据服务规格进行定量描述,MQTT服务器可以根据REGISTER消息中的服务规格信息对请求注册主题的消息发布,订阅等进行配置,使得主题消息的发布订阅可以更加灵活,可以定量描述发布消息所需的服务规格,提高了基于MQTT-SN协议进行节点间通讯方案的通用性。
可选地,所述根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置,包括:
根据所述服务规格信息对发布主题消息的带宽,发布主题消息的数据传输方式,订阅主题消息的数据传输方式中的一者或多者进行配置。
可选地,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
可选地,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
REGISTER消息,REGACK消息的具体格式上述方法实施例中详细说明,此处将不做详细阐述说明。
下面具体给出一个在本公开实现的G-PON系统中,主题消息注册,订阅,发布和接收的实例。
在G-PON系统中有一个MQTT-SN客户端1/2/2有一个摄像头,需要传送1280 x 720 H.264视频流。假定帧数是24帧每秒,运动系数是2,根据Kush Gauge计算出来的最优带宽是3096kbps。如果再额外预留25%的带宽(包括Ethernet帧映射到GEM帧后的额外开销22bytes,以及主题消息发布的消息头开销9bytes),则总带宽需求是3870kbps (以32kbps为单位,则121*32kbps = 3872kbps)。如果采用保证带宽,则固定带宽为0,保证带宽为121(3872kbps),最大带宽为121(3872kbps)。若假定其它参数为发布模式=共享单播,分发模式=共享组播,加密模式=不加密,则可以明确定义这个视频流的主题消息数据服务规格Service Spec。假定系统允许视频流丢帧,使用MQTT-SN QoS级别0。在此种情况下,MQTT-SN客户端1/2/3订阅这个视频流,MQTT-SN客户端1/2/2进行主题消息注册和发布的方法如图5所示,包括:
S501、MQTT-SN客户端1/2/2向MQTT-SN网关服务器发送主题注册消息。
其中,该主题注册消息中的主题标识TopicId=0x0,主题名称TopicName="1/2/2/video1",服务规格信息ServiceSpec为固定带宽FixedBandwidth=0,保证带宽AssuredBandwidth=121,最大带宽MaximumBandwidth=121,发布模式PublishMode=SharedUnicast,分发模式DistributionMode=SharedMulticast,加密模式DistributionEncryption=No。
S502、MQTT-SN网关服务器向MQTT-SN客户端1/2/2返回主题注册确认。
其中,该主题注册确认包括主题标识TopicId=0x1000,服务流标记Service Flow Tag=100。
S503、MQTT-SN客户端1/2/2向MQTT-SN网关服务器发送主题消息发布。
该主题消息发布PUBLISH包括主题标识TopicId=0x1000,QoS=0。
S504、MQTT-SN客户端1/2/3向MQTT-SN网关服务器发送主题订阅消息。
该主题订阅消息SUBSCRIBE包括主题名称TopicName="1/2/2/video1",QoS=0。
S505、MQTT-SN网关服务器向MQTT-SN客户端1/2/3返回主题订阅确认。
该主题订阅确认SUBACK包括主题标识TopicId=0x1000,QoS=0。
S506、MQTT-SN客户端1/2/2发布的主题消息经由MQTT-SN网关服务器传送到MQTT-SN客户端1/2/3。
采用上述方法步骤,通过MQTT-SN客户端1/2/2进行主题消息注册和发布,MQTT-SN客户端1/2/3进行订阅和接收,实现MQTT-SN客户端1/2/2与MQTT-SN客户端1/2/3之间的通讯。
本公开实施例还提供一种MQTT-SN客户端,用于实施上述方法实施例提供的MQTT-SN客户端侧的节点通讯方法,如图6所示,MQTT-SN客户端600包括:
第一发送模块601,用于向MQTT服务器发送主题注册REGISTER消息,所述REGISTER消息包括服务规格信息,所述服务规格信息用于对请求注册的主题的数据服务规格进行定量描述;
接收模块602,用于接收所述MQTT服务器发送的用于响应所述REGISTER消息的REGACK消息,其中,所述REGACK消息中包括用于指示主题是否注册成功的返回代码ReturnCode;
第二发送模块603,用于在所述主题注册成功时,向所述MQTT服务器发送已注册主题的主题消息,以便所述MQTT服务器根据所述服务规格信息将所述主题消息发送给订阅所述主题的MQTT-SN客户端。
可选地,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
可选地,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开实施例还提供一种MQTT服务器,用于实施上述方法实施例提供的MQTT服务器侧的节点通讯方法,如图7所示,MQTT服务器700包括:
接收模块701,用于接收MQTT-SN客户端发送的主题注册REGISTER消息;
配置模块702,用于根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置;
发送模块703,用于返回用于响应所述REGISTER消息的REGACK消息。
可选地,所述配置模块702用于:
根据所述服务规格信息对发布主题消息的带宽,发布主题消息的数据传输方式,订阅主题消息的数据传输方式中的一者或多者进行配置。
可选地,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
其中,所述规格版本信息用于标识当前的服务规格;
所述加密模式信息用于指定数据的分发是否加密;
所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
可选地,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开实施例还提供另一种MQTT-SN客户端,包括:
存储器,其上存储有计算机程序;
处理器,用于执行所述存储器中的所述计算机程序,以实现上述方法实施例提供的MQTT-SN客户端侧的节点通讯方法的步骤。
图8是上述MQTT-SN客户端的一种结构示意图。具体的,该MQTT-SN客户端可以为电子终端设备,例如,OLT或者ONU。如图8所示,该MQTT-SN客户端800可以包括:处理器801,存储器802。该MQTT-SN客户端800还可以包括传感器组件803,输入/输出(I/O)接口804,以及通信组件805中的一者或多者。
其中,处理器801用于控制该MQTT-SN客户端800的整体操作,以完成上述方法实施例提供的MQTT-SN客户端侧的节点通讯方法的步骤。存储器802用于存储各种类型的数据以支持在该MQTT-SN客户端800的操作,这些数据例如可以包括用于在该MQTT-SN客户端800上操作的任何应用程序或方法的指令,以及应用程序相关的数据。该存储器802可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。
在机器人领域中,传感器组件803例如可以包括力学传感器,触觉传感器,接近传感器,视觉传感器,热觉传感器等,此处不做赘述。
通信组件805用于该MQTT-SN客户端800与其他设备之间进行有线或无线通信。
本公开实施例还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述方法实施例提供的MQTT-SN客户端的节点通讯方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器802,上述程序指令可由MQTT-SN客户端800的处理器801执行以完成上述方法实施例提供的MQTT-SN客户端侧的节点通讯方法的步骤。
本公开实施例还提供另一种MQTT服务器,包括:
存储器,其上存储有计算机程序;
处理器,用于执行所述存储器中的所述计算机程序,以实现上述方法实施例提供的MQTT服务器侧的节点通讯方法的步骤。
图9是是上述MQTT服务器的一种结构示意图。参照图9,MQTT服务器900可以包括:处理组件901,存储器902,摄像头903,激光雷达904,执行器905,输入/输出(I/ O)的接口906,以及通信组件907。
处理组件901可以包括一个或多个处理器9010来执行指令,以完成MQTT服务器侧的节点通讯方法的全部或部分步骤。
存储器902被配置为存储各种类型的数据以支持在MQTT服务器900的操作。这些数据的示例包括用于在MQTT服务器900上操作的任何应用程序或方法的指令。存储器902可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
在机器人领域中,执行器905可以为各种机器人执行器,包括伺服电机,液压驱动器等。
I/ O接口906为处理组件901和外围接口模块之间提供接口。
通信组件907被配置为便于MQTT服务器900和其他设备之间有线或无线方式的通信。如WiFi,4G或5G,或它们的组合。
本公开实施例还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述方法实施例提供的MQTT服务器侧的节点通讯方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器902,上述程序指令可由MQTT服务器900的处理组件901执行以完成上述方法实施例提供的MQTT服务器侧的节点通讯方法。
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。

Claims (16)

  1. 一种节点通讯方法,其特征在于,所述方法应用于传感器版本的消息队列遥测传输MQTT-SN客户端,包括:
    向MQTT服务器发送主题注册REGISTER消息,所述REGISTER消息包括服务规格信息,所述服务规格信息用于对请求注册的主题的数据服务规格进行定量描述;
    接收所述MQTT服务器发送的用于响应所述REGISTER消息的REGACK消息,其中,所述REGACK消息中包括用于指示主题是否注册成功的返回代码ReturnCode;
    若所述主题注册成功,则向所述MQTT服务器发送已注册主题的主题消息,以便所述MQTT服务器根据所述服务规格信息将所述主题消息发送给订阅所述主题的MQTT-SN客户端。
  2. 根据权利要求1所述的方法,其特征在于,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
    其中,所述规格版本信息用于标识当前的服务规格;
    所述加密模式信息用于指定数据的分发是否加密;
    所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
    所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
    所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
  3. 根据权利要求1或2所述的方法,其特征在于,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
  4. 一种节点通讯方法,其特征在于,所述方法应用于消息队列遥测传输MQTT服务器,包括:
    接收MQTT-SN客户端发送的主题注册REGISTER消息;
    根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置;
    返回用于响应所述REGISTER消息的REGACK消息。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置,包括:
    根据所述服务规格信息对发布主题消息的带宽,发布主题消息的数据传输方式,订阅主题消息的数据传输方式中的一者或多者进行配置。
  6. 根据权利要求4所述的方法,其特征在于,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
    其中,所述规格版本信息用于标识当前的服务规格;
    所述加密模式信息用于指定数据的分发是否加密;
    所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
    所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
    所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
  7. 根据权利要求4至6中任一项所述的方法,其特征在于,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
  8. 一种MQTT-SN客户端,其特征在于,包括:
    第一发送模块,用于向MQTT服务器发送主题注册REGISTER消息,所述REGISTER消息包括服务规格信息,所述服务规格信息用于对请求注册的主题的数据服务规格进行定量描述;
    接收模块,用于接收所述MQTT服务器发送的用于响应所述REGISTER消息的REGACK消息,其中,所述REGACK消息中包括用于指示主题是否注册成功的返回代码ReturnCode;
    第二发送模块,用于在所述主题注册成功时,向所述MQTT服务器发送已注册主题的主题消息,以便所述MQTT服务器根据所述服务规格信息将所述主题消息发送给订阅所述主题的MQTT-SN客户端。
  9. 根据权利要求8所述的MQTT-SN客户端,其特征在于,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
    其中,所述规格版本信息用于标识当前的服务规格;
    所述加密模式信息用于指定数据的分发是否加密;
    所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
    所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
    所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
  10. 根据权利要求8或9所述的MQTT-SN客户端,其特征在于,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
  11. 一种MQTT服务器,其特征在于,包括:
    接收模块,用于接收MQTT-SN客户端发送的主题注册REGISTER消息;
    配置模块,用于根据所述REGISTER消息中的服务规格信息对请求注册的主题的数据服务规格进行配置;
    发送模块,用于返回用于响应所述REGISTER消息的REGACK消息。
  12. 根据权利要求11所述的MQTT服务器,其特征在于,所述配置模块用于:
    根据所述服务规格信息对发布主题消息的带宽,发布主题消息的数据传输方式,订阅主题消息的数据传输方式中的一者或多者进行配置。
  13. 根据权利要求11所述的MQTT服务器,其特征在于,所述服务规格信息包括以下信息:规格版本信息,加密模式信息,发布模式信息,分发模式信息,带宽描述信息;
    其中,所述规格版本信息用于标识当前的服务规格;
    所述加密模式信息用于指定数据的分发是否加密;
    所述发布模式信息用于指定MQTT-SN客户端到MQTT服务器之间数据传输模式;
    所述分发模式信息用于指定MQTT服务器到订阅的MQTT-SN客户端之间的数据传输方式;
    所述带宽描述信息用于指定主题消息发布的固定带宽,保证带宽,以及最大带宽。
  14. 根据权利要求11至13中任一项所述的MQTT服务器,其特征在于,所述REGACK消息包括服务流标记,所述服务流标记用于对请求注册的主题进行流分类。
  15. 一种MQTT-SN客户端,其特征在于,包括:
    存储器,其上存储有计算机程序;
    处理器,用于执行所述存储器中的所述计算机程序,以实现权利要求1至3中任一项所述方法的步骤。
  16. 一种MQTT服务器,其特征在于,包括:
    存储器,其上存储有计算机程序;
    处理器,用于执行所述存储器中的所述计算机程序,以实现权利要求4至7中任一项所述方法的步骤。
PCT/CN2019/096208 2018-09-29 2019-07-16 节点通讯方法,服务器,客户端 WO2020063044A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201862739214P 2018-09-29 2018-09-29
US62/739,214 2018-09-29

Publications (1)

Publication Number Publication Date
WO2020063044A1 true WO2020063044A1 (zh) 2020-04-02

Family

ID=69950254

Family Applications (8)

Application Number Title Priority Date Filing Date
PCT/CN2019/096208 WO2020063044A1 (zh) 2018-09-29 2019-07-16 节点通讯方法,服务器,客户端
PCT/CN2019/096217 WO2020063048A1 (zh) 2018-09-29 2019-07-16 Pon网络及其通讯方法,olt,mqtt-sn网关,onu及mqtt服务器
PCT/CN2019/109252 WO2020063993A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109247 WO2020063992A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109256 WO2020063995A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109257 WO2020063996A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109246 WO2020063991A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109263 WO2020063997A1 (zh) 2018-09-29 2019-09-30 节点间通信方法、通信节点以及通信系统

Family Applications After (7)

Application Number Title Priority Date Filing Date
PCT/CN2019/096217 WO2020063048A1 (zh) 2018-09-29 2019-07-16 Pon网络及其通讯方法,olt,mqtt-sn网关,onu及mqtt服务器
PCT/CN2019/109252 WO2020063993A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109247 WO2020063992A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109256 WO2020063995A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109257 WO2020063996A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109246 WO2020063991A1 (zh) 2018-09-29 2019-09-29 Pon网络,用于pon网络的方法及装置,以及机器人系统
PCT/CN2019/109263 WO2020063997A1 (zh) 2018-09-29 2019-09-30 节点间通信方法、通信节点以及通信系统

Country Status (1)

Country Link
WO (8) WO2020063044A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297144A (zh) * 2022-07-29 2022-11-04 中汽创智科技有限公司 节点数据交互方法和装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383904B (zh) * 2020-10-22 2023-03-14 赞同科技股份有限公司 无配对快速外设调用方法及装置
WO2021237229A2 (en) * 2020-12-09 2021-11-25 Futurewei Technologies, Inc. Efficient protection switching in wdm-pon
CN114979097B (zh) * 2021-06-03 2023-07-21 中移互联网有限公司 基于mqtt的消息推送方法、装置及电子设备
CN114338082A (zh) * 2021-11-30 2022-04-12 福建超智集团有限公司 一种智能网关安全连接云平台方法和系统
CN114363422A (zh) * 2021-12-31 2022-04-15 深圳市普渡科技有限公司 室内机器人及其控制系统和方法
CN114938329A (zh) * 2022-01-25 2022-08-23 厦门锐谷通信设备有限公司 一种基于mqtt的路由器网关设备管理方法及系统
CN115086380B (zh) * 2022-07-25 2022-11-15 苏州思萃工业互联网技术研究所有限公司 基于能源管理平台的数据传输系统及方法
CN116208379B (zh) * 2022-12-30 2023-08-22 金茂云科技服务(北京)有限公司 物联网设备mqtt主题发布订阅权限校验方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123649A (zh) * 2006-08-08 2008-02-13 中国移动通信集团公司 信息服务系统及服务信息提供和获取的方法
CN106657340A (zh) * 2016-12-26 2017-05-10 安徽超清科技股份有限公司 一种警情无线采集推送系统及方法
WO2018091658A1 (de) * 2016-11-21 2018-05-24 Beckhoff Automation Gmbh Konzept zum steuern einer nachrichtenübermittlung zwischen kommunikationsteilnehmern eines automatisierungssystems
CN108989372A (zh) * 2017-06-02 2018-12-11 华为技术有限公司 服务发现的方法、注册中心和设备

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355387B (zh) * 2007-07-26 2012-04-04 华为技术有限公司 光网络单元接入网络的方法、设备及系统
CN102075247B (zh) * 2009-11-25 2014-08-06 中国科学院空间应用工程与技术中心 高速光纤总线
US20110274428A1 (en) * 2010-05-07 2011-11-10 Rong-Nan Chiou Bus-based optical network system
US9071536B2 (en) * 2010-05-07 2015-06-30 Rong-Nan Chiou Bus-based optical network system
CN101841747B (zh) * 2010-05-12 2013-04-10 烽火通信科技股份有限公司 插板式fttb型onu及实现语音业务的方法
JP5564393B2 (ja) * 2010-10-06 2014-07-30 株式会社日立製作所 受動光網システム
CN103916442A (zh) * 2013-01-07 2014-07-09 阿里巴巴集团控股有限公司 消息推送实现方法、移动终端及消息推送系统
CN203300035U (zh) * 2013-04-25 2013-11-20 国家电网公司 一种采集器及用电信息采集系统
CN103347221B (zh) * 2013-07-04 2016-08-10 北京邮电大学 一种针对EPON(Ethernet Passive Optical Network)的阀值讨论式节能方法
ES2710703T3 (es) * 2014-01-23 2019-04-26 Huawei Tech Co Ltd Método de comunicación de terminal de línea óptica y dispositivo con estructura de datos
CN104837077B (zh) * 2014-02-12 2019-05-07 中兴通讯股份有限公司 光线路终端/光网络单元波长调节方法及装置
JP6458274B2 (ja) * 2014-06-27 2019-01-30 ソリッド インコーポレーテッドSolid,Inc. 通信システム
US10313858B2 (en) * 2014-07-21 2019-06-04 Convida Wireless, Llc Service layer interworking using MQTT protocol
CN107615791B (zh) * 2015-04-23 2020-07-28 康维达无线有限责任公司 用于添加m2m服务的装置和方法
CN106713124A (zh) * 2017-01-24 2017-05-24 深圳市启仑智能科技有限公司 一种基于mqtt和mysql的消息推送方法和系统
CN107708112A (zh) * 2017-11-02 2018-02-16 重庆邮电大学 一种适用于mqtt‑sn协议的加密方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123649A (zh) * 2006-08-08 2008-02-13 中国移动通信集团公司 信息服务系统及服务信息提供和获取的方法
WO2018091658A1 (de) * 2016-11-21 2018-05-24 Beckhoff Automation Gmbh Konzept zum steuern einer nachrichtenübermittlung zwischen kommunikationsteilnehmern eines automatisierungssystems
CN106657340A (zh) * 2016-12-26 2017-05-10 安徽超清科技股份有限公司 一种警情无线采集推送系统及方法
CN108989372A (zh) * 2017-06-02 2018-12-11 华为技术有限公司 服务发现的方法、注册中心和设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297144A (zh) * 2022-07-29 2022-11-04 中汽创智科技有限公司 节点数据交互方法和装置
CN115297144B (zh) * 2022-07-29 2024-03-08 中汽创智科技有限公司 节点数据交互方法和装置

Also Published As

Publication number Publication date
WO2020063992A1 (zh) 2020-04-02
WO2020063996A1 (zh) 2020-04-02
WO2020063048A1 (zh) 2020-04-02
WO2020063997A1 (zh) 2020-04-02
WO2020063995A1 (zh) 2020-04-02
WO2020063993A1 (zh) 2020-04-02
WO2020063991A1 (zh) 2020-04-02

Similar Documents

Publication Publication Date Title
WO2020063044A1 (zh) 节点通讯方法,服务器,客户端
KR102139712B1 (ko) 패킷 프로세싱 방법 및 디바이스
US10212233B2 (en) Data transfer in a system of connected things
US11296968B2 (en) Control method, device, computer program, computer readable medium and method for data communication in an industrial network
KR101961049B1 (ko) 타임 슬롯화 채널 홉핑 네트워크에서의 효율적인 중앙 집중식 자원 및 스케줄 관리
CN110022264B (zh) 控制网络拥塞的方法、接入设备和计算机可读存储介质
RU2614856C2 (ru) Способ и устройство для обработки имен и пакетов прозрачного соединения множества каналов (trill)
US9609065B2 (en) Bridge for implementing a converged network protocol to facilitate communication between different communication protocol networks
US11616835B2 (en) External injection of cloud based network functions into network services
US10615997B2 (en) In-vehicle gateway device
CN108512758B (zh) 报文处理方法、控制器以及转发设备
US20160112502A1 (en) Distributed computing based on deep packet inspection by network devices along network path to computing device
JP6121548B2 (ja) パケットを送信するための方法、ルーティング・ブリッジ、およびシステム
US10455038B2 (en) Indirect integration of network connected devices into service function chains
TWI721103B (zh) 集群精確限速方法和裝置
CN108833591A (zh) P2p网络中数据传输的方法、电子设备、装置、网络架构
EP3032801B1 (en) Method and device for generating forwarding information
CN114125983A (zh) 移动网络用户面的路由方法、会话管理实体、系统和介质
US10291750B1 (en) Aggregating data sessions between autonomous systems
CN104320322A (zh) 一种报文控制方法和设备
WO2021031092A1 (zh) 报文处理方法及网络设备
CN110493191B (zh) Windows平台数据转发方法、装置、电子设备及可读存储介质
WO2014063612A1 (zh) 智能终端接入trill网络的方法、智能终端及路由网桥
DeSanti et al. FCoE in perspective
US10361946B2 (en) Methods and systems for determining data transport paths through data transport

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19867512

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19867512

Country of ref document: EP

Kind code of ref document: A1