CN112714159A - Message forwarding method and device, storage medium and electronic device - Google Patents

Message forwarding method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112714159A
CN112714159A CN202011522252.2A CN202011522252A CN112714159A CN 112714159 A CN112714159 A CN 112714159A CN 202011522252 A CN202011522252 A CN 202011522252A CN 112714159 A CN112714159 A CN 112714159A
Authority
CN
China
Prior art keywords
message
internet
priority
things
equipment
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011522252.2A
Other languages
Chinese (zh)
Inventor
宋元瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Yilai Intelligent Technology Co Ltd
Original Assignee
Qingdao Yilai Intelligent Technology Co Ltd
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 Qingdao Yilai Intelligent Technology Co Ltd filed Critical Qingdao Yilai Intelligent Technology Co Ltd
Priority to CN202011522252.2A priority Critical patent/CN112714159A/en
Publication of CN112714159A publication Critical patent/CN112714159A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a message forwarding method and device, a storage medium and an electronic device, wherein the method comprises the following steps: receiving at least one message sent by at least one piece of Internet of things equipment; determining a priority of each of the at least one internet of things device; and under the condition that target equipment with target priority exists in the at least one piece of equipment of the Internet of things, sending the message received from the target equipment to a server. The invention can solve the technical problem that the real-time performance of the message reported by part of Internet of things equipment is influenced in the related technology, and avoids influencing the real-time performance of the message reported by the target equipment.

Description

Message forwarding method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a message forwarding method and apparatus, a storage medium, and an electronic apparatus.
Background
In the related art, when the internet of things gateway transmits messages reported by various devices in the internet of things network to the cloud, flow control is generally performed in order to prevent the messages from impacting the cloud too much. However, when the flow control is performed in the internet of things gateway, the flow control is also performed on the messages reported by some internet of things devices (including but not limited to the internet of things devices with higher real-time requirements), which will cause the real-time performance of the messages to be reduced, thereby seriously reducing the real-time performance of the messages reported by some internet of things devices.
Aiming at the technical problem that the real-time performance of part of messages reported by Internet of things equipment is influenced in the related technology, an effective technical scheme is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a message forwarding method and device, a storage medium and an electronic device, and aims to at least solve the technical problem that the real-time performance of messages reported by partial Internet of things equipment in the related art is influenced.
According to an embodiment of the present invention, there is provided a message forwarding method, including: receiving at least one message sent by at least one piece of Internet of things equipment; determining a priority of each of the at least one internet of things device; and under the condition that target equipment with target priority exists in the at least one piece of equipment of the Internet of things, sending the message received from the target equipment to a server.
Optionally, the determining the priority of each of the at least one internet of things device includes: determining a priority corresponding to the device type of each Internet of things device; determining the priority corresponding to the equipment type of each piece of Internet of things equipment as the priority of each piece of Internet of things equipment; wherein the method further comprises: and determining the priority of each piece of Internet of things equipment as the priority of the message sent by each piece of Internet of things equipment.
Optionally, after the sending the message received from the target device to the server, the method further includes: caching a first message in the at least one message in a buffer, wherein the first message is all messages except a second message in the at least one message, and the second message is a message received from the target device; and sending the messages in the buffer area to the server within the time of a flow control window according to the priority of each message in the buffer area.
Optionally, the buffering a first message of the at least one message in a buffer includes: sequencing all messages in the first message according to the priority of each message in the first message; caching the sorted first message in the buffer area; wherein the sending the messages in the buffer to the server within a flow control window time according to the priority of each message in the buffer comprises: and in the flow control window time, sequentially taking out the messages with the maximum priority in the buffer area and sending the messages to the server.
Optionally, before the receiving at least one message sent by at least one internet of things device, the method further includes: pre-establishing a one-to-one correspondence between the device types of a plurality of Internet of things devices and a plurality of priorities, and storing the correspondence; wherein the determining the priority of each of the at least one internet of things device comprises: and searching the priority corresponding to the equipment type of each Internet of things equipment from the corresponding relation.
According to another embodiment of the present invention, there is provided a message forwarding apparatus including: the receiving module is used for receiving at least one message sent by at least one piece of Internet of things equipment; a determining module for determining a priority of each of the at least one internet of things device; the sending module is used for sending the message received from the target equipment to a server under the condition that the target equipment with the target priority exists in the at least one piece of Internet of things equipment.
Optionally, the determining module is further configured to: determining a priority corresponding to the device type of each Internet of things device; determining the priority corresponding to the equipment type of each piece of Internet of things equipment as the priority of each piece of Internet of things equipment; and determining the priority of each piece of Internet of things equipment as the priority of the message sent by each piece of Internet of things equipment.
Optionally, the apparatus further comprises a buffering module configured to: after the message received from the target device is sent to a server, caching a first message in the at least one message in a buffer, wherein the first message is all messages except a second message in the at least one message, and the second message is the message received from the target device; the sending module is further configured to send the messages in the buffer to the server within a flow control window time according to the priority of each message in the buffer.
Alternatively, according to another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is arranged to perform the above-mentioned method when executed.
Alternatively, according to another embodiment of the present invention, there is provided an electronic apparatus, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the above method.
According to the invention, at least one message sent by at least one piece of Internet of things equipment is received; determining a priority of each of the at least one internet of things device; and under the condition that target equipment with target priority exists in the at least one piece of equipment of the Internet of things, sending the message received from the target equipment to a server. When the message is sent, the message received from the target device is directly sent to the server, and the message received from the target device is not subjected to flow control, so that the technical problem that the real-time performance of the message reported by part of internet of things devices in the related art is influenced can be solved, and the influence on the real-time performance of the message reported by the target device is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a message forwarding method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a message forwarding apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
An embodiment of the present invention provides a message forwarding method, and fig. 1 is a flowchart of the message forwarding method according to the embodiment of the present invention, and as shown in fig. 1, the method includes:
step S102, receiving at least one message sent by at least one piece of Internet of things equipment;
step S104, determining the priority of each Internet of things device in the at least one Internet of things device;
step S106, under the condition that target equipment with the target priority exists in the at least one piece of Internet of things equipment, sending the message received from the target equipment to a server.
According to the invention, at least one message sent by at least one piece of Internet of things equipment is received; determining a priority of each of the at least one internet of things device; and under the condition that target equipment with target priority exists in the at least one piece of equipment of the Internet of things, sending the message received from the target equipment to a server. When the message is sent, the message received from the target device is directly sent to the server, and the message received from the target device is not subjected to flow control, so that the technical problem that the real-time performance of the message reported by part of internet of things devices in the related art is influenced can be solved, and the influence on the real-time performance of the message reported by the target device is avoided.
It should be noted that the above embodiments may be applied to an internet of things gateway in the internet of things, and the server may include, but is not limited to, a server located in the cloud. Optionally, the target priority is the highest priority among the priorities of the internet of things devices in the whole network, so that based on the above embodiment, when the received at least one message includes a message sent by the internet of things device with the highest priority, the message is not subjected to flow control, but is directly sent to the server, thereby ensuring the real-time performance of message reporting.
Optionally, the determining the priority of each of the at least one internet of things device includes: determining a priority corresponding to the device type of each Internet of things device; determining the priority corresponding to the equipment type of each piece of Internet of things equipment as the priority of each piece of Internet of things equipment; wherein the method further comprises: and determining the priority of each piece of Internet of things equipment as the priority of the message sent by each piece of Internet of things equipment.
After the internet of things gateway receives at least one message sent by at least one piece of internet of things equipment, the priority of each piece of internet of things equipment is determined according to the equipment type of each piece of internet of things equipment, and the priority of the piece of internet of things equipment is determined as the priority of the message received from the piece of internet of things equipment, so that the priority of each message is determined.
Optionally, after the sending the message received from the target device to the server, the method further includes: caching a first message in the at least one message in a buffer, wherein the first message is all messages except a second message in the at least one message, and the second message is a message received from the target device; and sending the messages in the buffer area to the server within the time of a flow control window according to the priority of each message in the buffer area.
In the above embodiment, the message sent to the received internet of things device with the highest priority (i.e. the target device in the above embodiment) is directly sent to the server, and the message sent to the received internet of things device with other priorities is cached in the buffer. And sending the messages in the buffer according to the priority of the messages in the buffer within the time of the empty window.
Optionally, the buffering a first message of the at least one message in a buffer includes: sequencing all messages in the first message according to the priority of each message in the first message; caching the sorted first message in the buffer area; wherein the sending the messages in the buffer to the server within a flow control window time according to the priority of each message in the buffer comprises: and in the flow control window time, sequentially taking out the messages with the maximum priority in the buffer area and sending the messages to the server.
It should be noted that, in the above embodiment, the messages in the buffer are messages sorted according to priority, including but not limited to sorting the messages according to the order of priority from large to small and then buffering the messages in the buffer. And in the flow control window time, taking out the message with the maximum priority from the buffer area every time and sending the message to the server until the total number of the messages sent in the current flow control window time reaches the message number threshold corresponding to the current flow control window time, stopping sending the message and waiting for the next flow control window time.
Optionally, in the above embodiment, the flow control window time includes, but is not limited to, a time period during which the internet of things device may send a message to the server, that is, the internet of things device may send a message to the server during the time period.
Optionally, before the receiving at least one message sent by at least one internet of things device, the method further includes: pre-establishing a one-to-one correspondence between the device types of a plurality of Internet of things devices and a plurality of priorities, and storing the correspondence; wherein the determining the priority of each of the at least one internet of things device comprises: and searching the priority corresponding to the equipment type of each Internet of things equipment from the corresponding relation.
Based on the embodiment, the corresponding relation between the device type and the priority of the internet of things device is established and stored in advance, and after the message sent by the internet of things device is received, the priority corresponding to the internet of things device is searched from the corresponding relation.
Optionally, the message forwarding method in the embodiment may be applied to an internet of things gateway adopting flow control, that is, the embodiment may be executed under the condition of performing flow control on the internet of things gateway. Wherein, the internet of things device includes but is not limited to a sensor.
By the embodiment, the real-time message reporting of the specific equipment in the Internet of things is realized, and the overall design of flow control is not damaged.
The message forwarding method in the foregoing embodiment is explained with reference to an example, but is not limited to the technical solution of the embodiment of the present invention.
The message forwarding method can be applied to an internet of things network, and can be applied to an internet of things gateway, so that message transmission between internet of things equipment and a cloud end is realized through the internet of things gateway, and the message forwarding method comprises the following steps:
step 1, the Internet of things equipment sends a message to a gateway (including but not limited to the Internet of things gateway);
step 2, the gateway adds a priority field to each received message according to the type of the predefined Internet of things equipment;
step 3, transmitting the messages carrying the first priority field (namely the messages sent by the Internet of things equipment with the highest priority) to the cloud in real time without being influenced by gateway flow control; and for messages carrying the second priority field (namely messages sent by other internet of things devices), the messages are influenced by gateway flow control and are transmitted to the cloud end according to the priority order.
Optionally, in the foregoing embodiment, a flow control scheme based on priority preemption is adopted, and a priority attribute "priority N" is determined for each message, where N represents priority (for example, priority is 0 to 128, and a smaller value indicates a higher priority).
After determining the priority for each message and adding the priority field in each message, the format of each message is as follows: { msg: "lamp brightness adjusted to 50%", priority:1}, { msg: "human body sensor detected movement", priority:0}, in which a priority field of "priority: N" is added to a message transmitted from each device.
Based on the embodiment, the message carrying the { priority:0} field is not affected by gateway flow control, is transmitted to the cloud in real time (the { priority:0} represents the highest priority, the message with the field is not limited by flow control, and is immediately reported to the cloud), so that the efficient and real-time reporting of the message sent by the sensor with high real-time requirement is realized.
Messages carrying other fields are sorted according to priority and then placed into a buffer to be sent (i.e. the buffer in the above embodiment, including but not limited to a linked list), then when the messages are sent each time within the flow control window time, the messages are sent from a section of messages with a higher priority, the messages are stopped after the number of messages allowed by the current flow control is sent, and then the next flow control window time is waited.
Optionally, messages carrying other fields may be put into a flow control message pool (including but not limited to a flow control queue), priorities of the messages in the flow control message pool are scanned in real time within a flow control window time, the messages with high priorities are reported first, and the messages with low priorities can be reported later according to the flow control time, so that efficient real-time reporting of the messages with high real-time requirements such as the sensor is realized.
As one example, the internet of things devices include, but are not limited to, sensors, luminaires, and the like. Taking at least one piece of internet-of-things equipment as a sensor A, a bulb B and a desk lamp C as an example, messages sent by the sensor A, the bulb B and the desk lamp C reach a gateway, the gateway determines the priority of each message, and identifies that the priority of the sensor A (namely the target priority in the embodiment) belongs to the real-time level BC message and is the level of the common message according to the priority in the messages, the gateway immediately reports the messages of the sensor A to a cloud, and the messages of the bulb B and the desk lamp C are reported to the cloud when the messages of the bulb B and the desk lamp C reach the permission of flow control; the cloud is used for receiving and processing messages sent by the Internet of things gateway.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to another embodiment of the present invention, a message forwarding apparatus is provided, which is used to implement the foregoing embodiment and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a schematic structural diagram of a message forwarding apparatus according to an embodiment of the present invention, where the apparatus includes:
the receiving module 22 is configured to receive at least one message sent by at least one internet of things device;
a determining module 24, configured to determine a priority of each of the at least one internet of things device;
a sending module 26, configured to send a message received from a target device with a target priority to a server if the target device exists in the at least one internet of things device.
According to the invention, at least one message sent by at least one piece of Internet of things equipment is received; determining a priority of each of the at least one internet of things device; and under the condition that target equipment with target priority exists in the at least one piece of equipment of the Internet of things, sending the message received from the target equipment to a server. When the message is sent, the message received from the target device is directly sent to the server, and the message received from the target device is not subjected to flow control, so that the technical problem that the real-time performance of the message reported by part of internet of things devices in the related art is influenced can be solved, and the influence on the real-time performance of the message reported by the target device is avoided.
Optionally, the determining module is further configured to: determining a priority corresponding to the device type of each Internet of things device; determining the priority corresponding to the equipment type of each piece of Internet of things equipment as the priority of each piece of Internet of things equipment; and determining the priority of each piece of Internet of things equipment as the priority of the message sent by each piece of Internet of things equipment.
Optionally, the apparatus further comprises a buffering module configured to: after the message received from the target device is sent to a server, caching a first message in the at least one message in a buffer, wherein the first message is all messages except a second message in the at least one message, and the second message is the message received from the target device; the sending module is further configured to send the messages in the buffer to the server within a flow control window time according to the priority of each message in the buffer.
Optionally, the buffering module is further configured to: sequencing all messages in the first message according to the priority of each message in the first message; caching the sorted first message in the buffer area; wherein the sending module is further configured to: and in the flow control window time, sequentially taking out the messages with the maximum priority in the buffer area and sending the messages to the server.
Optionally, the apparatus further comprises a processing module configured to: before receiving at least one message sent by at least one piece of Internet of things equipment, pre-establishing a one-to-one correspondence between equipment types and priorities of a plurality of pieces of Internet of things equipment, and storing the correspondence; wherein the determining module is further configured to: and searching the priority corresponding to the equipment type of each Internet of things equipment from the corresponding relation.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
step S1, receiving at least one message sent by at least one Internet of things device;
step S2, determining the priority of each Internet of things device in the at least one Internet of things device;
step S3, when there is a target device with a target priority in the at least one internet of things device, sending a message received from the target device to a server.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
step S1, receiving at least one message sent by at least one Internet of things device;
step S2, determining the priority of each Internet of things device in the at least one Internet of things device;
step S3, when there is a target device with a target priority in the at least one internet of things device, sending a message received from the target device to a server.
Fig. 3 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention. Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 3 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 3 is a diagram illustrating the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 3, or have a different configuration than shown in FIG. 3.
The memory 1002 may be used to store software programs and modules, such as program instructions/modules corresponding to the message forwarding method and the message forwarding apparatus in the embodiment of the present invention, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implementing the message forwarding method described above. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. As an example, the memory 1002 may include, but is not limited to, the receiving module 22, the determining module 24, and the sending module 26 of the message forwarding apparatus. In addition, other module units in the above message forwarding apparatus may also be included, but are not limited to these, and are not described in detail in this example.
Optionally, the transmission device 1006 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transport device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable to communicate with the internet or a local area Network. In one example, the transmission device 1006 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1008 for displaying a screen; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal or the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication form. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A message forwarding method, comprising:
receiving at least one message sent by at least one piece of Internet of things equipment;
determining a priority of each of the at least one internet of things device;
and under the condition that target equipment with target priority exists in the at least one piece of equipment of the Internet of things, sending the message received from the target equipment to a server.
2. The method of claim 1, wherein the determining the priority of each of the at least one internet of things device comprises:
determining a priority corresponding to the device type of each Internet of things device;
determining the priority corresponding to the equipment type of each piece of Internet of things equipment as the priority of each piece of Internet of things equipment;
wherein the method further comprises: and determining the priority of each piece of Internet of things equipment as the priority of the message sent by each piece of Internet of things equipment.
3. The method of claim 2, wherein after sending the message received from the target device to a server, the method further comprises:
caching a first message in the at least one message in a buffer, wherein the first message is all messages except a second message in the at least one message, and the second message is a message received from the target device;
and sending the messages in the buffer area to the server within the time of a flow control window according to the priority of each message in the buffer area.
4. The method of claim 3, wherein the buffering a first message of the at least one message in a buffer comprises:
sequencing all messages in the first message according to the priority of each message in the first message;
caching the sorted first message in the buffer area;
wherein the sending the messages in the buffer to the server within a flow control window time according to the priority of each message in the buffer comprises:
and in the flow control window time, sequentially taking out the messages with the maximum priority in the buffer area and sending the messages to the server.
5. The method of claim 1, wherein prior to the receiving at least one message sent by at least one internet of things device, the method further comprises:
pre-establishing a one-to-one correspondence between the device types of a plurality of Internet of things devices and a plurality of priorities, and storing the correspondence;
wherein the determining the priority of each of the at least one internet of things device comprises:
and searching the priority corresponding to the equipment type of each Internet of things equipment from the corresponding relation.
6. A message forwarding apparatus, comprising:
the receiving module is used for receiving at least one message sent by at least one piece of Internet of things equipment;
a determining module for determining a priority of each of the at least one internet of things device;
the sending module is used for sending the message received from the target equipment to a server under the condition that the target equipment with the target priority exists in the at least one piece of Internet of things equipment.
7. The apparatus of claim 6, wherein the determining module is further configured to:
determining a priority corresponding to the device type of each Internet of things device;
determining the priority corresponding to the equipment type of each piece of Internet of things equipment as the priority of each piece of Internet of things equipment;
and determining the priority of each piece of Internet of things equipment as the priority of the message sent by each piece of Internet of things equipment.
8. The apparatus of claim 7, further comprising a buffer module to:
after the message received from the target device is sent to a server, caching a first message in the at least one message in a buffer, wherein the first message is all messages except a second message in the at least one message, and the second message is the message received from the target device;
the sending module is further configured to send the messages in the buffer to the server within a flow control window time according to the priority of each message in the buffer.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 by means of the computer program.
CN202011522252.2A 2020-12-21 2020-12-21 Message forwarding method and device, storage medium and electronic device Pending CN112714159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522252.2A CN112714159A (en) 2020-12-21 2020-12-21 Message forwarding method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522252.2A CN112714159A (en) 2020-12-21 2020-12-21 Message forwarding method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112714159A true CN112714159A (en) 2021-04-27

Family

ID=75544937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522252.2A Pending CN112714159A (en) 2020-12-21 2020-12-21 Message forwarding method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112714159A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222787A (en) * 2021-05-08 2021-08-06 广州富融信息技术有限公司 Internet of things-based method, device and equipment for processing management pipe data and storage medium
CN114884997A (en) * 2022-05-26 2022-08-09 广州番禺电缆集团有限公司 Intelligent cable monitoring system for sensor data grading transmission

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286578A (en) * 2018-09-27 2019-01-29 上海联寓智能科技有限公司 Message treatment method, device, gateway and storage medium
CN110460541A (en) * 2019-07-30 2019-11-15 秒针信息技术有限公司 Current-limiting method and device applied to web server
US20200329368A1 (en) * 2019-04-10 2020-10-15 T-Mobile Usa, Inc. Systems and Methods for Distributing Internet-of-Things Messages
CN111935310A (en) * 2020-09-18 2020-11-13 翱捷科技(深圳)有限公司 Data reporting system and data reporting method applied to terminal of Internet of things

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286578A (en) * 2018-09-27 2019-01-29 上海联寓智能科技有限公司 Message treatment method, device, gateway and storage medium
US20200329368A1 (en) * 2019-04-10 2020-10-15 T-Mobile Usa, Inc. Systems and Methods for Distributing Internet-of-Things Messages
CN110460541A (en) * 2019-07-30 2019-11-15 秒针信息技术有限公司 Current-limiting method and device applied to web server
CN111935310A (en) * 2020-09-18 2020-11-13 翱捷科技(深圳)有限公司 Data reporting system and data reporting method applied to terminal of Internet of things

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222787A (en) * 2021-05-08 2021-08-06 广州富融信息技术有限公司 Internet of things-based method, device and equipment for processing management pipe data and storage medium
CN114884997A (en) * 2022-05-26 2022-08-09 广州番禺电缆集团有限公司 Intelligent cable monitoring system for sensor data grading transmission
CN114884997B (en) * 2022-05-26 2023-10-24 广州番禺电缆集团有限公司 Intelligent cable monitoring system for hierarchical transmission of sensor data

Similar Documents

Publication Publication Date Title
EP3836486A1 (en) Service link selection control method and device
CN110633442A (en) Pushing method and device and electronic equipment
CN110808948B (en) Remote procedure calling method, device and system
GB2589211A (en) Methods and systems of using remote subscriber identification modules at device
JP2017526223A (en) Data transmission method and device
CN112714159A (en) Message forwarding method and device, storage medium and electronic device
CN111917562B (en) Broadcast message forwarding method, device, equipment and storage medium
CN104468547A (en) Long connection establishing method, device and system
CN111181873B (en) Data transmission method, data transmission device, storage medium and electronic equipment
CN111884875A (en) Offline device determination method and device
US10050895B2 (en) Terminal device, terminal-device control method, and terminal-device control program
CN108900433B (en) Method, terminal and server for transmitting lora message
CN107204924B (en) Link discovery method and device
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN112887416B (en) Frequency adjustment method and device for sending keep-alive packets
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN105991567B (en) Transmission processing method and device
CN112188562B (en) Multicast scheduling method and device for relay base station, storage medium and electronic device
CN111050356A (en) Data transmission processing method and device, storage medium and electronic device
CN108574637B (en) Address self-learning method and device and switch
CN110912717B (en) Broadcasting method and server of centerless multi-channel concurrent transmission system
CN110661697B (en) Message synchronization method, device, readable storage medium, electronic device and system
CN106209666B (en) Link multiplexing method and system based on load balancer
CN108055305B (en) Storage expansion method and storage expansion device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210427

RJ01 Rejection of invention patent application after publication