CN110662259B - Message processing method and device and computer storage medium - Google Patents

Message processing method and device and computer storage medium Download PDF

Info

Publication number
CN110662259B
CN110662259B CN201911216361.9A CN201911216361A CN110662259B CN 110662259 B CN110662259 B CN 110662259B CN 201911216361 A CN201911216361 A CN 201911216361A CN 110662259 B CN110662259 B CN 110662259B
Authority
CN
China
Prior art keywords
lorawan
message
communication terminal
uplink
lorawan uplink
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.)
Active
Application number
CN201911216361.9A
Other languages
Chinese (zh)
Other versions
CN110662259A (en
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.)
Wuhan Wiregate Technology Co ltd
Original Assignee
Wuhan Wiregate 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 Wuhan Wiregate Technology Co ltd filed Critical Wuhan Wiregate Technology Co ltd
Priority to CN201911216361.9A priority Critical patent/CN110662259B/en
Publication of CN110662259A publication Critical patent/CN110662259A/en
Application granted granted Critical
Publication of CN110662259B publication Critical patent/CN110662259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message processing method, a message processing device and a computer storage medium, wherein the method comprises the following steps: receiving at least one Internet Protocol (IP) uplink message; wherein, at least one IP uplink message belongs to the same communication terminal; performing first processing on the at least one IP uplink message to obtain a first processing result; obtaining LoRaWAN uplink data and at least one gateway metadata based on the first processing result; when determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the LoRaWAN uplink data, obtaining a stored second processing result; obtaining an IP downlink message based on the at least one gateway metadata and the second processing result; the IP downlink packet includes response data corresponding to the LoRaWAN uplink packet.

Description

Message processing method and device and computer storage medium
Technical Field
The present invention relates to Long Range Radio (LoRa) technology in the field of communications, and in particular, to a method and an apparatus for processing a packet, and a computer storage medium.
Background
In a Long-distance Radio Wide Area Network (LoRaWAN), in order to improve the success rate of message transmission, a retransmission function of a message is usually accompanied, if a Network server also processes the retransmitted message according to a normal message, which involves re-parsing, re-checking, re-calculating, etc. of the message, a large amount of resources of the Network server are consumed, thereby causing unnecessary resource overhead of the Network server, and simultaneously, the performance of the Network server is also a huge test, so that a processing method of the retransmitted message is urgently needed to solve the problem.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a message processing method, a message processing apparatus, and a computer storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for processing a packet, where the method includes:
receiving at least one Internet Protocol (IP) uplink message; wherein, at least one IP uplink message belongs to the same communication terminal;
performing first processing on the at least one IP uplink message to obtain a first processing result;
obtaining LoRaWAN uplink data and at least one gateway metadata based on the first processing result;
when determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the LoRaWAN uplink data, obtaining a stored second processing result;
obtaining an IP downlink message based on the at least one gateway metadata and the second processing result; the IP downlink packet includes response data corresponding to the LoRaWAN uplink packet.
In the foregoing scheme, the performing a first process on the at least one IP uplink packet to obtain a first processing result includes: performing first analysis on each IP uplink message in the at least one IP uplink message to obtain a first analysis result;
correspondingly, the obtaining of the LoRaWAN upstream data and the at least one gateway metadata based on the first processing result includes: and acquiring gateway metadata corresponding to each IP uplink message and LoRaWAN uplink data of the communication terminal based on the first analysis result.
In the foregoing solution, the determining, based on the LoRaWAN uplink data, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet includes:
performing second analysis on the LoRaWAN uplink data to obtain a second analysis result;
and determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the second analysis result.
In the foregoing solution, the determining, based on the second analysis result, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet includes:
obtaining the number of the current normal LoRaWAN uplink messages based on the second analysis result;
obtaining the number of the last normal LoRaWAN uplink messages from the conversation with the communication terminal;
comparing the number of the current normal LoRaWAN uplink messages with the number of the previous normal LoRaWAN uplink messages;
and when the number of the current normal LoRaWAN uplink messages is equal to that of the previous normal LoRaWAN uplink messages, determining that the LoRaWAN uplink messages sent by the communication terminal are retransmission messages.
In the foregoing solution, the obtaining the stored second processing result includes:
obtaining the equipment identification of the communication terminal;
obtaining a stored second processing result based on the device identification and the mapping relation; the mapping relation is a corresponding relation between the device identifier and a second processing result.
In the foregoing solution, the obtaining an IP downlink packet based on the at least one gateway metadata and the second processing result includes:
obtaining target gateway metadata based on the at least one gateway metadata;
and obtaining the IP downlink message based on the target gateway metadata and the second processing result.
In the foregoing solution, the obtaining an IP downlink packet based on the target gateway metadata and the second processing result includes:
encapsulating the target gateway metadata and the second processing result according to the IP to obtain an encapsulation result; and taking the encapsulation result as an IP downlink message.
In the above aspect, the method further includes:
when determining that the LoRaWAN uplink message sent by the communication terminal is a non-retransmission message based on the LoRaWAN uplink data, performing second processing on the LoRaWAN uplink data to obtain a second processing result;
determining a mapping relation between the equipment identifier of the communication terminal and the second processing result;
and storing the mapping relation.
In the foregoing solution, after determining that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet based on the LoRaWAN uplink data, the method further includes:
judging whether the LoRaWAN uplink data of the communication terminal needs to be responded or not;
when the LoRaWAN uplink data is judged to need response, a stored second processing result is obtained;
and when the LoRaWAN uplink data does not need to be responded, sending the LoRaWAN uplink data to a log server.
In the above aspect, the method further includes:
determining the current retransmission times of LoRaWAN uplink data of the communication terminal;
comparing the current retransmission times with a set maximum retransmission time;
and when the current retransmission times reach the set maximum retransmission times, stopping processing the LoRaWAN uplink data, and sending alarm information to a monitoring system.
In the above aspect, the method further includes: and stopping sending response data corresponding to the LoRaWAN uplink message to the application server.
In a second aspect, an embodiment of the present invention provides a packet processing apparatus, where the apparatus includes: a receiving unit, a processing unit, a first obtaining unit, a determining unit and a second obtaining unit, wherein,
the receiving unit is used for receiving at least one Internet Protocol (IP) uplink message; wherein, at least one IP uplink message belongs to the same communication terminal;
the processing unit is configured to perform first processing on the at least one IP uplink packet to obtain a first processing result;
the first obtaining unit is configured to obtain LoRaWAN uplink data and at least one gateway metadata based on the first processing result;
the determining unit is configured to obtain a stored second processing result when determining, based on the LoRaWAN uplink data, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet;
the second obtaining unit is configured to obtain an IP downlink packet based on the at least one gateway metadata and the second processing result; the IP downlink packet at least contains response data corresponding to the LoRaWAN uplink packet.
In the foregoing scheme, the processing unit is specifically configured to: performing first analysis on each IP uplink message in the at least one IP uplink message to obtain a first analysis result; correspondingly, the first obtaining unit is specifically configured to: and acquiring gateway metadata corresponding to each IP uplink message and LoRaWAN uplink data of the communication terminal based on the first analysis result.
In the foregoing aspect, the determining unit includes: a determining subunit and a first obtaining subunit, wherein,
the first obtaining subunit is configured to perform a second analysis on the LoRaWAN uplink data to obtain a second analysis result;
and the determining subunit is configured to determine, based on the second analysis result, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet.
In the foregoing solution, the determining subunit is specifically configured to: obtaining the number of the current normal LoRaWAN uplink messages based on the second analysis result; obtaining the number of the last normal LoRaWAN uplink messages from the conversation with the communication terminal; comparing the number of the current normal LoRaWAN uplink messages with the number of the previous normal LoRaWAN uplink messages; and when the number of the current normal LoRaWAN uplink messages is equal to that of the previous normal LoRaWAN uplink messages, determining that the LoRaWAN uplink messages sent by the communication terminal are retransmission messages.
In the above scheme, the determining unit includes a second obtaining subunit, configured to obtain a device identifier of the communication terminal; obtaining a stored second processing result based on the device identification and the mapping relation; the mapping relation is a corresponding relation between the device identifier and a second processing result.
In the above-described aspect, the second obtaining unit includes a third obtaining sub-unit and a fourth obtaining sub-unit, wherein,
the third obtaining subunit is configured to obtain target gateway metadata based on the at least one gateway metadata;
and the fourth obtaining subunit is configured to obtain the IP downlink packet based on the target gateway metadata and the second processing result.
In the foregoing solution, the fourth obtaining subunit is configured to encapsulate, according to an IP, the target gateway metadata and the second processing result, and obtain an encapsulation result; and taking the encapsulation result as an IP downlink message.
In the above solution, the apparatus further comprises: a memory cell, wherein,
the determining unit is further configured to perform a second processing on the LoRaWAN uplink data to obtain a second processing result when determining that the LoRaWAN uplink packet sent by the communication terminal is a non-retransmission packet based on the LoRaWAN uplink data; determining a mapping relation between the equipment identifier of the communication terminal and the second processing result;
the storage unit is used for storing the mapping relation.
In the above solution, the apparatus further comprises a determining unit and a first sending unit, wherein,
the judging unit is used for judging whether the LoRaWAN uplink data of the communication terminal needs to be responded or not;
correspondingly, the determining unit is used for obtaining a stored second processing result when the LoRaWAN uplink data is judged to need to be responded;
and the first sending unit is used for sending the LoRaWAN uplink data to a log server when the LoRaWAN uplink data does not need to be responded.
In the above solution, the apparatus further comprises: a comparison unit, a first stop unit and a second sending unit, wherein,
the determining unit is further configured to determine a current retransmission number of the LoRaWAN uplink data of the communication terminal;
the comparison unit is used for comparing the current retransmission times with a set maximum retransmission time;
the first stopping unit is used for stopping processing of the LoRaWAN uplink data;
and the second sending unit is used for sending alarm information to the monitoring system.
In the foregoing solution, the apparatus further includes a second stopping unit, configured to stop sending, to an application server, response data corresponding to the LoRaWAN uplink packet.
In a third aspect, an embodiment of the present invention provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the methods described above.
In a fourth aspect, an embodiment of the present invention provides a packet processing apparatus, where the packet processing apparatus includes: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any preceding claim when the computer program is executed by the processor.
The embodiment of the invention provides a message processing method, a message processing device and a computer storage medium, wherein the method comprises the following steps: receiving at least one Internet Protocol (IP) uplink message; wherein, the at least one IP uplink message belongs to the same communication terminal; performing first processing on the at least one IP uplink message to obtain a first processing result; obtaining LoRaWAN uplink data and at least one gateway metadata based on the first processing result; when determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the LoRaWAN uplink data, obtaining a stored second processing result; obtaining an IP downlink message based on the at least one gateway metadata and the second processing result; the IP downlink packet includes response data corresponding to the LoRaWAN uplink packet. By adopting the message processing method and the message processing device provided by the embodiment of the invention, the processing time of the network server for the retransmitted message can be reduced, the response speed of the network server is improved, the performance of the network server is improved, the resource overhead of the network server is saved, the efficient and stable work of the network server can be ensured, the same data can be prevented from being sent to the client, and the unnecessary interference to the client is avoided.
Drawings
Fig. 1 is a schematic diagram of a system architecture of a LoRaWAN in the related art;
fig. 2 is a schematic flow chart of a message processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a message processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
To facilitate understanding of the present invention, a brief description will be made of a related art for retransmission of a packet in a LoRaWAN.
LoRaWAN is a set of communication protocol and system architecture designed based on Long distance (LoRa, Long Range) communication network, and is widely applied to the Internet of things, the system architecture is shown in figure 1, and a communication terminal communicates with a gateway (base station) in a LoRa wireless communication mode; the gateway (base station) communicates with the network server via an Internet Protocol (IP), wherein the IP may be: a mobile cellular network protocol, such as a third Generation mobile communication technology (3G) protocol, or a fourth Generation mobile communication technology (4G) protocol, a wireless fidelity (WIFI) protocol, an Ethernet (Ethernet) protocol, etc. In the system architecture, the gateway (base station) plays a role in connecting the network server and the communication terminal in the LoRaWAN, and specifically, the communication terminal may send an uplink message to the network server through the gateway (base station), which is called an uplink process, and the uplink process includes two transmission processes: the transmission process of LoRaWAN uplink message sent by the communication terminal to the gateway (base station) and the transmission process of IP uplink message sent by the gateway (base station) to the network server. The network server can send downlink messages to the communication terminal through a gateway (base station), and the process is called a downlink process, and the downlink process comprises two transmission processes: the transmission process of the IP downlink message sent by the network server to the gateway (base station) and the transmission process of the LoRaWAN downlink message sent by the gateway (base station) to the communication terminal.
Since LoRa wireless communication, mobile cellular, 3G, 4G, WiFi, etc. are all wireless transmission processes, during an uplink process or a downlink process, an uplink message or a downlink message may be lost during the transmission process, for example, during the transmission process from a communication terminal to a gateway (base station), or during the loss of a LoRaWAN uplink message or LoRaWAN downlink message, and further, during the transmission process from the gateway (base station) to a network server, an IP uplink message or an IP downlink message may be lost. Even if wired transmission is used between the gateway (base station) and the network server, there are a large number of gateways (base stations) in the LoRaWAN that need to forward the LoRaWAN upstream message of the communication terminal to the network server, that is: there are a large number of gateways (base stations) sending IP uplink messages to a network server, and in order to ensure the transmission efficiency of the IP uplink messages, the wired transmission between the gateways (base stations) and the network server usually uses a User data packet Protocol (UDP) mode. Although the UDP can ensure the transmission efficiency of the IP uplink packet, when the UDP is used, no connection is established when the IP uplink packet or the IP downlink packet is transmitted between the gateway (base station) and the network server, and when a large amount of IP uplink packets or IP downlink packets are transmitted, a part of the IP uplink packets or IP downlink packets are inevitably lost.
Therefore, in order to ensure the success rate of transmission of the uplink message sent by the communication terminal to the network server through the gateway (base station) and the downlink message sent by the network server to the communication terminal through the gateway (base station), a method for processing the retransmission message is needed to solve the problem. Since retransmission of messages is under discussion, the retransmission principle of the communication terminal must be explained. The retransmission principle of the communication terminal is embodied in two aspects: in a first aspect, when the LoRaWAN uplink packet sent by the communication terminal does not need to respond, the communication terminal may not know whether the network server can receive the IP uplink packet containing LoRaWAN uplink data forwarded by the gateway (base station), where the LoRaWAN uplink data is substantially the LoRaWAN uplink packet sent by the communication terminal, and therefore the communication terminal may retransmit the LoRaWAN uplink packet until the number of times that the communication terminal sends the LoRaWAN uplink packet reaches the set maximum retransmission number, and the communication terminal may stop retransmitting the LoRaWAN uplink packet. In the second aspect, when the LoRaWAN uplink message sent by the communication terminal needs to be responded, and the communication terminal receives the response sent by the network server within the time of opening the downlink window, the LoRaWAN uplink message is not retransmitted, and if the response is not received within the time of opening the downlink window, the communication terminal retransmits the LoRaWAN uplink message until the number of times of sending the LoRaWAN uplink message by the communication terminal reaches the set maximum retransmission number, and the communication terminal stops retransmitting the LoRaWAN uplink message.
In practical application, if the network server also reprocesses the retransmitted message according to the normal message, and analysis, various inspections, various calculations and the like need to be performed again, the network server will consume a large amount of resources, causing unnecessary resource overhead, and simultaneously, the performance of the network server is also a huge test. It should be noted that the role played by the gateway or the base station related in the LoRaWAN is a relay, and the roles of the gateway and the base station are the same, so the inventive concept of the present invention is described below only by taking the gateway as an example.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
As shown in fig. 2, it shows a schematic flow chart of a message processing method, where the method includes:
s201: receiving at least one IP uplink message; wherein, the at least one IP uplink message belongs to the same communication terminal.
It should be noted that the at least one IP uplink packet belongs to the same communication terminal. Since a plurality of gateways are usually deployed in LoRaWAN, a certain communication terminal may send a message to a network server through one or more gateways in an LoRa wireless communication manner. Therefore, the network server receives at least one IP uplink packet belonging to the certain communication terminal, where the IP uplink packet is a packet obtained by adding some gateway metadata to a LoRaWAN uplink packet sent by the communication terminal according to the IP, where the gateway metadata includes a receiving time, a gateway identification code, a channel identification, a signal strength, and the like, and the receiving time is a time when the LoRaWAN uplink packet is received by the gateway; the gateway Identification code is a unique Identification of an identity (Identification) of the gateway, for example, the gateway Identification code may be a Media Access Control (MAC) address allocated when the gateway leaves a factory; the channel identification is the code of the channel adopted by the gateway for receiving the LoRaWAN uplink message; and the signal intensity is the signal intensity of a channel adopted by the gateway for sending the IP uplink message to the network server.
It should be noted that, according to the LoRaWAN protocol, the LoRaWAN uplink packet sent by the communication terminal may be received by one or more gateways, and on this basis, after receiving the LoRaWAN uplink packet, each different gateway encapsulates, according to the IP, its respective gateway metadata and LoRaWAN uplink data included in the LoRaWAN uplink packet, to obtain an IP uplink packet corresponding to each gateway, and sends the IP uplink packet corresponding to each gateway to the network server. The IP uplink messages corresponding to the gateways only contain different gateway metadata.
S202: performing first processing on the at least one IP uplink message to obtain a first processing result; and obtaining LoRaWAN uplink data and at least one gateway metadata based on the first processing result.
In some embodiments, the performing, for the first processing on the at least one IP uplink packet in S202, the obtaining a first processing result may include: performing first analysis on each IP uplink message in the at least one IP uplink message to obtain a first analysis result; correspondingly, the obtaining of the LoRaWAN upstream data and the at least one gateway metadata based on the first processing result may include: and acquiring gateway metadata corresponding to each IP uplink message and LoRaWAN uplink data of the communication terminal based on the first analysis result.
It should be noted that, based on the foregoing description, the gateway and the network server may communicate through an IP, and then the first parsing mentioned herein may be that the network server processes each IP uplink packet according to the IP, and the process of the gateway encapsulating the LoRaWAN uplink data and the gateway metadata of the gateway according to the IP is the inverse process of the first parsing. Therefore, after the network server performs the first analysis on the at least one IP uplink packet, each IP uplink packet is divided into two parts: one part is gateway metadata; the other part is LoRaWAN uplink data, that is, a message sent by the communication terminal to the gateway through the LoRaWAN protocol, that is, a LoRaWAN uplink message.
In an actual application process, for the same communication terminal, the LoRaWAN uplink messages sent by the communication terminal to each gateway are the same, in other words, after the network server performs the first analysis on the at least one IP uplink message, the LoRaWAN uplink data corresponding to each IP uplink message are the same, and at this time, the network server only retains one analyzed LoRaWAN uplink data. However, the LoRaWAN upstream data may be forwarded to the network server by different gateways, so that after the network server performs the first analysis on the at least one IP upstream packet, the gateway metadata corresponding to each IP upstream packet is different, and subsequently, the network server needs to determine a forwarding gateway corresponding to a response of the LoRaWAN upstream data based on each gateway metadata, and therefore, the network server needs to keep each gateway metadata for later use, and how to use the LoRaWAN upstream data in the following detailed description is not described herein again.
S203: and obtaining a stored second processing result when determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the LoRaWAN uplink data.
In some embodiments, the determining, based on the LoRaWAN uplink data, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet may include:
performing second analysis on the LoRaWAN uplink data to obtain a second analysis result;
and determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the second analysis result.
It should be noted that the LoRaWAN uplink data is substantially a LoRaWAN uplink packet, and therefore, the second analysis here may be that the network server processes the LoRaWAN uplink data according to the LoRaWAN protocol, and the second analysis is an inverse process to a process in which the communication terminal generates the LoRaWAN uplink packet according to the LoRaWAN protocol. Therefore, after the network server performs the second analysis on the LoRaWAN uplink data, each field included in the LoRaWAN uplink data may be obtained, for example, the LoRaWAN uplink data includes an equipment identification field, a count field, and the like, where the terminal identification field at least includes an equipment identification of the communication terminal, and the equipment identification is a unique identification, in other words, the equipment identification is like an identity identification, and is used for identifying the uniqueness of the communication terminal. For example, the device identifier may be a product serial number of the communication terminal when the communication terminal leaves a factory; the count field at least includes the number of normal LoRaWAN uplink messages, where the normal LoRaWAN uplink messages are non-retransmission messages, that is, only if the LoRaWAN uplink messages which are not retransmitted are sent by the communication terminal side, the communication terminal will add 1 to the original value in the count field. Based on the foregoing description, after performing the second analysis on the LoRaWAN uplink data, the network server may obtain the device identifier of the communication terminal and the number of normal LoRaWAN uplink messages sent by the communication terminal.
In some embodiments, the determining, based on the second analysis result, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet includes:
obtaining the number of the current normal LoRaWAN uplink messages based on the second analysis result;
obtaining the number of the last normal LoRaWAN uplink messages from the conversation with the communication terminal;
comparing the number of the current normal LoRaWAN uplink messages with the number of the previous normal LoRaWAN uplink messages;
and when the number of the current normal LoRaWAN uplink messages is equal to that of the previous normal LoRaWAN uplink messages, determining that the LoRaWAN uplink messages sent by the communication terminal are retransmission messages.
It should be noted that, when processing the LoRaWAN uplink data sent by the communication terminal, the network server maintains a session with the communication terminal, where the session includes a basic context and a context of some communication terminals, where the basic context and the context include the number of normal LoRaWAN uplink messages in a previous LoRaWAN uplink message processed by the network server, that is, the network server may obtain the number of previous normal LoRaWAN uplink messages from the session.
In the practical application process, because the communication terminal only sends a normal LoRaWAN uplink message according to the characteristics of the LoRaWAN protocol, the numerical value in the counting field in the LoRaWAN uplink message is added with 1, when the LoRaWAN uplink message corresponding to the LoRaWAN uplink data is a retransmission message, the number of the normal LoRaWAN uplink messages is not increased, and after the network server performs second analysis on the LoRaWAN uplink data, the obtained number of the current normal LoRaWAN uplink messages is still the previous numerical value. When processing the LoRaWAN uplink data, the network server maintains a session with the communication terminal, and the session includes a numerical value of the number of normal LoRaWAN uplink messages included in the LoRaWAN uplink message of the communication terminal processed last time by the network server, namely, a numerical value of the number of the previous normal LoRaWAN uplink messages. Therefore, the network server can determine whether the number of the current normal LoRaWAN uplink messages is equal to the number of the previous normal LoRaWAN uplink messages, so as to determine whether the currently processed LoRaWAN uplink message corresponding to the LoRaWAN uplink data is a retransmission message.
In some embodiments, the obtaining the stored second processing result comprises:
obtaining the equipment identification of the communication terminal;
obtaining a stored second processing result based on the device identification and the mapping relation; the mapping relation is a corresponding relation between the device identifier and a second processing result.
It should be noted that, based on the foregoing description, the LoRaWAN uplink data includes the device identifier of the communication terminal, and therefore, after the network server performs the second analysis on the LoRaWAN uplink data, the device identifier of the communication terminal may be obtained.
In some embodiments, obtaining the stored second processing result based on the device identification and the mapping relationship may include:
taking the equipment identification of the communication terminal as a query key value;
and obtaining a stored second processing result based on the query key value and the mapping relation.
It should be noted that the second processing result may be response data when the LoRaWAN uplink packet corresponding to the LoRaWAN uplink packet is a non-retransmission packet, where the response data is a response corresponding to the LoRaWAN uplink packet generated by the network server according to the LoRaWAN protocol.
In some embodiments, the process of the network server storing the second processing result corresponding to the LoRaWAN upstream data may be as follows:
when determining that the LoRaWAN uplink message sent by the communication terminal is a non-retransmission message based on the LoRaWAN uplink data, performing second processing on the LoRaWAN uplink data to obtain a second processing result;
determining a mapping relation between the equipment identifier of the communication terminal and the second processing result;
and storing the mapping relation.
Here, the second process is a process in which the network server generates response data corresponding to the LoRaWAN upstream data in accordance with the LoRaWAN protocol.
In an actual application process, performing second processing on the LoRaWAN uplink data to obtain a second processing result, including: obtaining uplink data based on the LoRaWAN uplink data; determining response data corresponding to the LoRaWAN upstream data based on the upstream data; and taking the response data corresponding to the LoRaWAN uplink data as a second processing result.
It should be noted that the uplink data refers to data that the communication terminal needs to send, for example, when the communication terminal is an electricity meter, the uplink data may be electricity consumption degrees in a certain time that are reported to the network server.
In an actual application process, the network server may determine, based on the uplink data, response data corresponding to the LoRaWAN uplink packet, for example, the LoRaWAN uplink packet sent by the communication terminal is a packet including a network access request, and then, after the network server performs second analysis on the LoRaWAN uplink packet corresponding to the LoRaWAN uplink packet based on the LoRaWAN protocol, the network server may obtain a network access request sent by the communication terminal, and then, the network server obtains, based on the network access request, response data for the communication terminal according to the LoRaWAN protocol, for example, if the communication terminal is allowed to access the network server, the network server may send, to the communication terminal, response data that is allowed for network access.
It should be noted that, based on the foregoing, the LoRaWAN uplink data may be the LoRaWAN uplink packet, and then the second processing result may include response data corresponding to the LoRaWAN uplink packet when the LoRaWAN uplink packet is a non-retransmission packet.
S204: obtaining an IP downlink message based on the at least one gateway metadata and the second processing result; the IP downlink packet includes response data corresponding to the LoRaWAN uplink packet.
In practical application, for S204, the following steps are included:
obtaining target gateway metadata based on the at least one gateway metadata;
and obtaining the IP downlink message based on the target gateway metadata and the second processing result.
It should be noted that, in the LoRaWAN, the uplink packet sent by the communication terminal may be forwarded to the network server through one or more gateways, and for the same communication terminal, the LoRaWAN uplink data sent by the communication terminal to each gateway is the same. Moreover, the communication terminal may receive a plurality of same downlink messages, which causes data redundancy and increases the overhead of the communication terminal. Based on this, the network server selects one gateway from a plurality of gateways forwarding the uplink message of the same communication terminal to forward the response corresponding to the uplink message, in other words, the network server determines a unique forwarding gateway and a unique downlink response from a plurality of gateways. In practical application, there are many strategies for how to select a forwarding gateway, and the embodiment of the present invention only illustrates the concept of the present invention in one of the optional ways.
As an alternative embodiment, the network server may select according to the signal strength in the gateway metadata, and based on this, obtain the target gateway metadata based on the at least one gateway metadata, including:
sequencing the signal intensity contained in each gateway metadata in the at least one gateway metadata according to a set rule to obtain a sequencing result;
and determining target gateway metadata based on the sequencing result.
Specifically, the setting rule may be an order of signal strength from large to small, or an order of signal strength from small to large. When the network server sorts the at least one gateway metadata in a descending order of signal strength, correspondingly, determining the target gateway metadata based on the sorting result, including: taking the gateway metadata corresponding to the first signal intensity as target gateway metadata; when the network server sorts the at least one gateway metadata in a sequence from small signal strength to large signal strength, correspondingly, the determining the target gateway metadata based on the sorting result includes: and taking the gateway metadata corresponding to the final signal intensity as target gateway metadata. In other words, regardless of the ranking of the signal strengths, the network server selects the gateway metadata with the strongest signal strength as the target gateway metadata.
It should be noted that the network server may use the gateway corresponding to the gateway identification code included in the target gateway metadata as the forwarding gateway.
In some embodiments, the obtaining an IP downlink packet based on the target gateway metadata and the second processing result includes:
encapsulating the target gateway metadata and the second processing result according to the IP to obtain an encapsulation result; and taking the encapsulation result as an IP downlink message.
In an actual application process, the transmission flow of the IP downlink packet may be as follows:
the network server obtains the IP downlink message and sends the IP downlink message to the determined forwarding gateway;
the forwarding gateway receives the IP downlink message and performs third analysis on the IP downlink message to obtain a third analysis result; obtaining a second processing result and the equipment identifier of the communication terminal based on the third analysis result; obtaining a LoRaWAN downlink message based on the second processing result; and sending the LoRaWAN downlink message to the communication terminal corresponding to the equipment identifier according to the LoRaWAN protocol.
It should be noted that the third parsing refers to parsing, by the forwarding gateway, the IP downlink packet according to the IP, and the process of encapsulating, by the network server according to the IP, the target gateway metadata and the second processing result into the IP downlink packet is a reverse process. After the third parsing, the forwarding gateway may obtain a second processing result and the device identifier of the communication terminal from the IP downlink packet. And the forwarding gateway generates a LoRaWAN downlink message according to the LoRaWAN protocol package based on the second processing result, and sends the LoRaWAN downlink message to the communication terminal according to the LoRaWAN protocol.
In an actual application process, after determining, based on the LoRaWAN uplink data, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet in S203, the method further includes:
judging whether LoRaWAN uplink data sent by the communication terminal needs to be responded or not;
when the LoRaWAN uplink data is judged to need response, a stored second processing result is obtained;
and when the LoRaWAN uplink data do not need to be responded, sending the LoRaWAN uplink data to a log server so that operation and maintenance personnel can process the LoRaWAN uplink data.
It should be noted that the log server refers to one or more servers, and mainly records information of hardware, software, and system problems in some network servers, for example, the aforementioned log of LoRaWAN upstream data that does not need to be responded.
In the practical application process, for safety, if the LoRaWAN uplink data is intercepted by an illegal person, the illegal person sends an IP uplink packet containing the LoRaWAN uplink data to the network server without limitation, and maliciously attacks the network server, the network server will need to process a large amount of retransmitted IP uplink packets containing the same LoRaWAN uplink data, thereby causing great consumption of the network server. Thus, in some embodiments, the method further comprises:
determining the current retransmission times of LoRaWAN uplink data of the communication terminal;
comparing the current retransmission times with a set maximum retransmission times;
and when the current retransmission times reach the set maximum retransmission times, stopping processing the LoRaWAN uplink data, and sending alarm information to a monitoring system.
It should be noted that the network server may record the current retransmission times through a set retransmission counter, specifically, when the network server determines that the LoRaWAN uplink packet corresponding to the LoRaWAN uplink data is a retransmission packet, the retransmission counter adds 1 to the original value, so that the current retransmission times of the LoRaWAN uplink data may be obtained, and when the current retransmission times of the LoRaWAN uplink data reaches a set maximum retransmission times, the processing of the LoRaWAN uplink data is stopped, and alarm information is sent. The alarm information can be any information with a reminding function, such as sound, light and the like; the set maximum retransmission number may be set artificially, for example, the set maximum retransmission number is set to 5 times.
In some embodiments, the network server may send the alarm information to the operation and maintenance personnel through a monitoring system set by itself; the monitoring system is mainly used for monitoring whether hardware of the network server normally operates, for example, whether a Central Processing Unit (CPU, Central Processing Unit), a Memory (Memory) and the like of the network server normally operate or not is monitored; the method and the device can also be used for monitoring whether the software program runs normally, for example, whether the retransmission times reach the maximum retransmission times or not.
In some embodiments, when the current retransmission number does not reach the set maximum retransmission number, the network server processes the LoRaWAN uplink data according to S203-S204.
In some embodiments, when the network server determines that the LoRaWAN uplink packet with the communication terminal is a retransmission packet based on the LoRaWAN uplink data, the network server stops sending the response data corresponding to the LoRaWAN uplink data to the application server.
It should be noted that, here, the application server does not send the response data corresponding to the LoRaWAN upstream data to the client terminal any more, thereby avoiding sending the same data to the client and reducing the trouble to the client.
It should be noted that LoRaWAN further includes: an application server. The application server is in the application layer of the system architecture and is used for receiving the data transmitted by the network server and forwarding the data to the client terminal so that the client can know the state of the communication terminal. In some embodiments, the client terminal may be a mobile terminal, such as a mobile phone; it may also be a fixed terminal such as a Personal Computer (PC) or the like.
For example, assuming that the communication terminal is an electric meter, the client may be an electric power company or an electric meter user, at this time, if the communication terminal sends an uplink message including a network access request to the network server through the gateway, the network server obtains response data for the communication terminal based on the uplink message including the network access request, for example, if the communication terminal is allowed to access the network server, the network server sends response data including network access permission to the communication terminal, and sends a downlink message including the response data to the communication terminal through the gateway; the network server also sends response data to the communication terminal to the application server, the application server forwards the response data to the client terminal after receiving the response data, the client terminal can know the state that the communication terminal is accessed to the network server based on the response data, and the network server allows the communication terminal to access. Thus, the client can know the state of the communication terminal.
The embodiment of the invention provides a message processing method, a network server processes a message retransmitted by a communication terminal quickly by inquiring a stored previous processing result without carrying out re-analysis, various checks, various calculations and the like, so that the resource expense of the network server is reduced, and the response speed of the network server can be improved.
Based on the same inventive concept, an embodiment of the present invention further provides a message processing apparatus, as shown in fig. 3, where the apparatus 30 includes: a receiving unit 301, a processing unit 302, a first obtaining unit 303, a determining unit 304 and a second obtaining unit 305, wherein,
the receiving unit 301 is configured to receive at least one internet protocol IP uplink packet; wherein, at least one IP uplink message belongs to the same communication terminal;
the processing unit 302 is configured to perform a first processing on the at least one IP uplink packet to obtain a first processing result;
the first obtaining unit 303 is configured to obtain LoRaWAN uplink data and at least one gateway metadata based on the first processing result;
the determining unit 304 is configured to obtain a stored second processing result when determining, based on the LoRaWAN uplink data, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet;
the second obtaining unit 305 is configured to obtain an IP downlink packet based on the at least one gateway metadata and the second processing result; the IP downlink packet at least contains response data corresponding to the LoRaWAN uplink packet.
In some embodiments, the processing unit 302 is specifically configured to: performing first analysis on each IP uplink message in the at least one IP uplink message to obtain a first analysis result; correspondingly, the first obtaining unit 303 is specifically configured to: and acquiring gateway metadata corresponding to each IP uplink message and LoRaWAN uplink data of the communication terminal based on the first analysis result.
In some embodiments, the determining unit 304 includes: a determining subunit and a first obtaining subunit, wherein,
the first obtaining subunit is configured to perform a second analysis on the LoRaWAN uplink data to obtain a second analysis result;
and the determining subunit is configured to determine, based on the second analysis result, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet.
In some embodiments, the determining subunit is specifically configured to: obtaining the number of the current normal LoRaWAN uplink messages based on the second analysis result; obtaining the number of the last normal LoRaWAN uplink messages from the conversation with the communication terminal; comparing the number of the current normal LoRaWAN uplink messages with the number of the previous normal LoRaWAN uplink messages; and when the number of the current normal LoRaWAN uplink messages is equal to that of the previous normal LoRaWAN uplink messages, determining that the LoRaWAN uplink messages sent by the communication terminal are retransmission messages.
In some embodiments, the determining unit 304 comprises a second obtaining subunit configured to obtain a device identifier of the communication terminal; obtaining a stored second processing result based on the device identification and the mapping relation; the mapping relation is a corresponding relation between the device identifier and a second processing result.
In some embodiments, the second obtaining unit 305 includes a third obtaining sub-unit and a fourth obtaining sub-unit, wherein,
the third obtaining subunit is configured to obtain target gateway metadata based on the at least one gateway metadata;
and the fourth obtaining subunit is configured to obtain the IP downlink packet based on the target gateway metadata and the second processing result.
In some embodiments, the fourth obtaining subunit is configured to encapsulate, according to an IP, the target gateway metadata and the second processing result, and obtain an encapsulated result; and taking the encapsulation result as an IP downlink message.
In some embodiments, the apparatus further comprises: a memory cell, wherein,
the determining unit 304 is further configured to perform a second processing on the LoRaWAN uplink data to obtain a second processing result when determining, based on the LoRaWAN uplink data, that the LoRaWAN uplink message sent by the communication terminal is a non-retransmission message; determining a mapping relation between the equipment identifier of the communication terminal and the second processing result;
the storage unit is used for storing the mapping relation.
In some embodiments, the apparatus further comprises a determining unit and a first transmitting unit, wherein,
the judging unit is used for judging whether the LoRaWAN uplink data of the communication terminal needs to be responded or not;
correspondingly, the determining unit 304 is configured to obtain a stored second processing result when it is determined that the LoRaWAN uplink data needs to be responded;
and the first sending unit is used for sending the LoRaWAN uplink data to a log server when the LoRaWAN uplink data does not need to be responded.
In some embodiments, the apparatus further comprises: a comparison unit, a first stop unit and a second sending unit, wherein,
the determining unit 304 is further configured to determine a current retransmission number of LoRaWAN uplink data of the communication terminal;
the comparison unit is used for comparing the current retransmission times with a set maximum retransmission time;
the first stopping unit is used for stopping processing of the LoRaWAN uplink data;
and the second sending unit is used for sending alarm information to the monitoring system.
In some embodiments, the apparatus further includes a second stopping unit configured to stop sending, to an application server, response data corresponding to the LoRaWAN upstream packet.
It should be noted that the message processing apparatus provided in the embodiment of the present invention and the message processing method are based on the same inventive concept, and therefore, the meaning of words in the message processing apparatus is the same as that described above, and is not described herein again.
The embodiment of the invention provides a message processing device, wherein a network server can process a retransmitted message of a communication terminal quickly by inquiring a stored previous processing result without carrying out re-analysis, various checks, various calculations and the like, so that the resource expense of the network server is reduced, and the response speed of the network server can be improved.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the foregoing method embodiments, and the foregoing storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides a packet processing apparatus, where the apparatus includes: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the above-described method embodiments stored in the memory when running the computer program.
Fig. 4 is a schematic diagram of a hardware structure of a message processing apparatus according to an embodiment of the present invention, where the message processing apparatus 40 includes: the message processing apparatus 40 may further include at least one communication interface 403, and the various components of the message processing apparatus 40 are coupled together by a bus system 404. it is understood that the bus system 404 is used to implement the connection communication between these components. The bus system 404 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 404 in FIG. 4.
It will be appreciated that the memory 402 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 402 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 402 in embodiments of the present invention is used to store various types of data to support the operation of the message processing apparatus 40. Examples of such data include: any computer program for operating on the message processing apparatus 40, such as a process of a network server obtaining a stored second processing result, etc., a program implementing the method of the embodiment of the present invention may be contained in the memory 402.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory and a processor reading the information in the memory and combining the hardware to perform the steps of the method.
In an exemplary embodiment, the message processing Device 40 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the above-described methods.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. A message processing method is characterized by comprising the following steps:
receiving at least one Internet Protocol (IP) uplink message; wherein, at least one IP uplink message belongs to the same communication terminal;
performing first processing on the at least one IP uplink message to obtain a first processing result;
obtaining long-distance radio wide area network LoRaWAN uplink data and at least one gateway metadata based on the first processing result;
when determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the LoRaWAN uplink data, obtaining a stored second processing result;
obtaining an IP downlink message based on the at least one gateway metadata and the second processing result; the IP downlink message comprises response data corresponding to the LoRaWAN uplink message;
and the second processing result is response data when the LoRaWAN uplink message corresponding to the LoRaWAN uplink data is a non-retransmission message.
2. The method according to claim 1, wherein the performing the first processing on the at least one IP uplink packet to obtain a first processing result comprises: performing first analysis on each IP uplink message in the at least one IP uplink message to obtain a first analysis result;
correspondingly, the obtaining of the LoRaWAN upstream data and the at least one gateway metadata based on the first processing result includes: and acquiring gateway metadata corresponding to each IP uplink message and LoRaWAN uplink data of the communication terminal based on the first analysis result.
3. The method according to claim 1 or 2, wherein the determining that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet based on the LoRaWAN uplink data includes:
performing second analysis on the LoRaWAN uplink data to obtain a second analysis result;
and determining that the LoRaWAN uplink message sent by the communication terminal is a retransmission message based on the second analysis result.
4. The method according to claim 3, wherein the determining that the LoRaWAN uplink packet sent by the communication terminal is the retransmission packet based on the second parsing result includes:
obtaining the number of the current normal LoRaWAN uplink messages based on the second analysis result;
obtaining the number of the last normal LoRaWAN uplink messages from the conversation with the communication terminal;
comparing the number of the current normal LoRaWAN uplink messages with the number of the previous normal LoRaWAN uplink messages;
and when the number of the current normal LoRaWAN uplink messages is equal to that of the previous normal LoRaWAN uplink messages, determining that the LoRaWAN uplink messages sent by the communication terminal are retransmission messages.
5. The method of claim 1, wherein obtaining the stored second processing result comprises:
obtaining the equipment identification of the communication terminal;
obtaining a stored second processing result based on the device identification and the mapping relation; the mapping relation is a corresponding relation between the device identifier and a second processing result.
6. The method according to claim 1, wherein said obtaining an IP downlink packet based on the at least one gateway metadata and the second processing result comprises:
obtaining target gateway metadata based on the at least one gateway metadata;
and obtaining the IP downlink message based on the target gateway metadata and the second processing result.
7. The method according to claim 6, wherein said obtaining an IP downlink packet based on the target gateway metadata and the second processing result comprises:
encapsulating the target gateway metadata and the second processing result according to the IP to obtain an encapsulation result; and taking the encapsulation result as an IP downlink message.
8. The method of claim 1, further comprising:
when determining that the LoRaWAN uplink message sent by the communication terminal is a non-retransmission message based on the LoRaWAN uplink data, performing second processing on the LoRaWAN uplink data to obtain a second processing result;
determining a mapping relation between the equipment identifier of the communication terminal and the second processing result;
and storing the mapping relation.
9. The method according to claim 1, wherein after determining that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet based on the LoRaWAN uplink data, the method further comprises:
judging whether the LoRaWAN uplink data of the communication terminal needs to be responded or not;
when the LoRaWAN uplink data is judged to need response, a stored second processing result is obtained;
and when the LoRaWAN uplink data does not need to be responded, sending the LoRaWAN uplink data to a log server.
10. The method of claim 1, further comprising:
determining the current retransmission times of LoRaWAN uplink data of the communication terminal;
comparing the current retransmission times with a set maximum retransmission time;
and when the current retransmission times reach the set maximum retransmission times, stopping processing the LoRaWAN uplink data, and sending alarm information to a monitoring system.
11. The method of claim 1, further comprising: and stopping sending response data corresponding to the LoRaWAN uplink message to the application server.
12. A message processing apparatus, the apparatus comprising: a receiving unit, a processing unit, a first obtaining unit, a determining unit and a second obtaining unit, wherein,
the receiving unit is used for receiving at least one Internet Protocol (IP) uplink message; wherein, at least one IP uplink message belongs to the same communication terminal;
the processing unit is configured to perform first processing on the at least one IP uplink packet to obtain a first processing result;
the first obtaining unit is used for obtaining long-distance radio wide area network LoRaWAN uplink data and at least one gateway metadata based on the first processing result;
the determining unit is configured to obtain a stored second processing result when determining, based on the LoRaWAN uplink data, that the LoRaWAN uplink packet sent by the communication terminal is a retransmission packet; the second processing result is response data when the LoRaWAN uplink message corresponding to the LoRaWAN uplink data is a non-retransmission message;
the second obtaining unit is configured to obtain an IP downlink packet based on the at least one gateway metadata and the second processing result; the IP downlink packet at least contains response data corresponding to the LoRaWAN uplink packet.
13. A computer storage medium, characterized in that the computer storage medium stores a computer program which, when executed by at least one processor, implements the method according to any one of claims 1 to 11.
14. A message processing apparatus, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 11 when the computer program is executed.
CN201911216361.9A 2019-12-02 2019-12-02 Message processing method and device and computer storage medium Active CN110662259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911216361.9A CN110662259B (en) 2019-12-02 2019-12-02 Message processing method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911216361.9A CN110662259B (en) 2019-12-02 2019-12-02 Message processing method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN110662259A CN110662259A (en) 2020-01-07
CN110662259B true CN110662259B (en) 2020-04-17

Family

ID=69043730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911216361.9A Active CN110662259B (en) 2019-12-02 2019-12-02 Message processing method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110662259B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996346B (en) * 2020-02-28 2020-06-12 武汉慧联无限科技有限公司 Downlink message trajectory tracking method and device and computer readable storage medium
CN114697388B (en) * 2020-12-11 2024-01-30 成都鼎桥通信技术有限公司 Data transmission method and device
CN115378764B (en) * 2022-08-19 2024-04-05 山石网科通信技术股份有限公司 Communication method, device, storage medium and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1667991A (en) * 2004-03-12 2005-09-14 华为技术有限公司 A data unit retransmission method
CN105376798A (en) * 2014-08-19 2016-03-02 联发科技股份有限公司 Method for handling ul data retransmission and communications apparatus utilizing the same
KR101764135B1 (en) * 2016-04-07 2017-08-14 채령 The wireless self-governing community communication net system and its way to build by CCTV Intranet
EP3207651A1 (en) * 2014-10-13 2017-08-23 Telefonaktiebolaget LM Ericsson (publ) Harq feedback reporting based on mirrored information copied from resource-assignment message
CN108616335A (en) * 2016-12-13 2018-10-02 电信科学技术研究院 A kind of data pack transmission method, user terminal and network side equipment
CN108631961A (en) * 2017-03-24 2018-10-09 中国移动通信有限公司研究院 The method and base station that multilink retransmits are realized under a kind of multi-connection
CN109831768A (en) * 2019-03-25 2019-05-31 山东有人信息技术有限公司 A kind of LoRa multinode big data method for transmission processing, apparatus and system
EP3510713A1 (en) * 2016-09-12 2019-07-17 Sagemcom Energy & Telecom SAS Method for detecting retransmission of a frame
WO2019185552A1 (en) * 2018-03-30 2019-10-03 Sagemcom Energy & Telecom Sas Communication method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712787B (en) * 2018-05-15 2021-08-10 南京易通汇联科技有限公司 Multichannel concurrent downlink Internet of things LoRa base station
CN109257371A (en) * 2018-10-30 2019-01-22 王根平 Negotiate safeguards system and dynamic negotiation method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1667991A (en) * 2004-03-12 2005-09-14 华为技术有限公司 A data unit retransmission method
CN105376798A (en) * 2014-08-19 2016-03-02 联发科技股份有限公司 Method for handling ul data retransmission and communications apparatus utilizing the same
EP3207651A1 (en) * 2014-10-13 2017-08-23 Telefonaktiebolaget LM Ericsson (publ) Harq feedback reporting based on mirrored information copied from resource-assignment message
KR101764135B1 (en) * 2016-04-07 2017-08-14 채령 The wireless self-governing community communication net system and its way to build by CCTV Intranet
EP3510713A1 (en) * 2016-09-12 2019-07-17 Sagemcom Energy & Telecom SAS Method for detecting retransmission of a frame
CN108616335A (en) * 2016-12-13 2018-10-02 电信科学技术研究院 A kind of data pack transmission method, user terminal and network side equipment
CN108631961A (en) * 2017-03-24 2018-10-09 中国移动通信有限公司研究院 The method and base station that multilink retransmits are realized under a kind of multi-connection
WO2019185552A1 (en) * 2018-03-30 2019-10-03 Sagemcom Energy & Telecom Sas Communication method
CN109831768A (en) * 2019-03-25 2019-05-31 山东有人信息技术有限公司 A kind of LoRa multinode big data method for transmission processing, apparatus and system

Also Published As

Publication number Publication date
CN110662259A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
EP3654192B1 (en) Configuration management method, apparatus and device
CN110662259B (en) Message processing method and device and computer storage medium
US10952138B2 (en) Machine type communication method, terminal, and base station
EP3288298B1 (en) Machine type communication method, base station, and terminal
RU2527728C2 (en) Wireless communication method (versions) network node and mobile station
CN110690953B (en) Downlink gateway selection method, device and computer storage medium
JP2020182230A (en) Data transmission method, transmission device, and reception device
US8948131B2 (en) Radio communication system, radio communication method, and gateway
CN110708763B (en) Scheduling method, device and computer storage medium
CN110691375B (en) Selection method, selection device and computer storage medium
CN110463239B (en) Data transmission method, terminal equipment and network equipment
US10880223B1 (en) Dynamic configuration of maximum transmission unit of UE, based on receipt of oversized packet(s) at network entity
JP2024513803A (en) Network information exposure methods, devices, electronic devices, and computer programs
CN110996346B (en) Downlink message trajectory tracking method and device and computer readable storage medium
WO2019149029A1 (en) Service equipment switching method, and device for same
Lodhi et al. ND‐ADR: Nondestructive adaptive data rate for LoRaWAN Internet of Things
WO2017101028A1 (en) Data transmission method, m2m server, pgw, sgw and serving network node
CN105830511A (en) Sgw, mme, and paging method and system
CN112601283B (en) Data transmission method and system applied to electric power Internet of things
CN110972222B (en) Downlink gateway selection method, device and computer storage medium
CN114846774B (en) Communication method and device
CN114830760A (en) Paging method and apparatus in wireless communication system
CN114071377B (en) Voice system switching method, core network equipment, cluster group equipment and cluster group
CN115883047B (en) Signaling data transmission method, device, equipment and medium
EP4340410A1 (en) Server, request entity, and methods therefor

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A message processing method, device and computer storage medium

Effective date of registration: 20220518

Granted publication date: 20200417

Pledgee: Pudong Shanghai Development Bank Limited by Share Ltd. Wuhan branch

Pledgor: WUHAN EASYLINKIN TECHNOLOGY CO.,LTD

Registration number: Y2022420000117

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230804

Granted publication date: 20200417

Pledgee: Pudong Shanghai Development Bank Limited by Share Ltd. Wuhan branch

Pledgor: WUHAN EASYLINKIN TECHNOLOGY CO.,LTD

Registration number: Y2022420000117

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A message processing method, device, and computer storage medium

Effective date of registration: 20230829

Granted publication date: 20200417

Pledgee: Pudong Shanghai Development Bank Limited by Share Ltd. Wuhan branch

Pledgor: WUHAN EASYLINKIN TECHNOLOGY CO.,LTD

Registration number: Y2023980054364

PE01 Entry into force of the registration of the contract for pledge of patent right