CN113194125A - Packet loss retransmission method and system based on Internet of things platform - Google Patents
Packet loss retransmission method and system based on Internet of things platform Download PDFInfo
- Publication number
- CN113194125A CN113194125A CN202110419246.2A CN202110419246A CN113194125A CN 113194125 A CN113194125 A CN 113194125A CN 202110419246 A CN202110419246 A CN 202110419246A CN 113194125 A CN113194125 A CN 113194125A
- Authority
- CN
- China
- Prior art keywords
- internet
- packet loss
- things platform
- data
- original data
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1443—Transmit or communication errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The invention relates to a packet loss retransmission method and system based on an Internet of things platform, comprising the following steps: the Internet of things platform receives original data transmitted by equipment and transmits the original data to an application system; the application system receives the original data and writes the original data into a message queue of the application system; analyzing and processing original data in the message queue through a consumption process to obtain packet loss information; the application system transmits a retransmission command to the Internet of things platform according to the packet loss information; and the Internet of things platform transmits the retransmission command to the specified equipment. According to the invention, when the application system detects packet loss, the command is automatically issued to the Internet of things platform, the Internet of things platform forwards the command to the designated equipment, and the equipment retransmits the data which is failed to be transmitted after receiving the command, so that the processing time is more accurate, the packet loss processing effect can be enhanced, the accuracy and the integrity of data transmission are ensured, and the data transmission efficiency and quality are improved.
Description
Technical Field
The invention relates to the technical field of network data transmission, in particular to a packet loss retransmission method and system based on an Internet of things platform.
Background
The Internet of things platform is connected with hardware equipment downwards and is in upward butt joint with an application system to play a role in starting and stopping, communication between the Internet of things platform and the equipment and communication between the Internet of things platform and the application system are asynchronous, the equipment sends data to the Internet of things platform through a southbound interface, and then the Internet of things platform sends the data to the application system through a northbound interface, so that data transmission is achieved. According to the scheme, when the network is unstable, a serious packet loss phenomenon occurs, and an application system is difficult to sense packet loss and cannot trigger equipment to retransmit packet loss data through a feedback mechanism. In summary, designing a packet loss retransmission scheme based on the internet of things platform becomes an urgent problem to be solved.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a packet loss retransmission method and system based on an Internet of things platform, which are used for improving the data transmission efficiency and quality.
The invention is realized by the following technical scheme:
a packet loss retransmission method based on an Internet of things platform is characterized by comprising the following steps: a. the Internet of things platform receives original data transmitted by equipment and transmits the original data to an application system; b. the application system receives original data and writes the original data into a message queue of the application system; c. analyzing and processing the original data in the message queue through a consumption process to acquire packet loss information; d. the application system transmits a retransmission command to the Internet of things platform according to the packet loss information; e. and the Internet of things platform transmits the retransmission command to the appointed equipment.
According to the above technical solution, preferably, the raw data includes sensor data, an equipment attribution item ID, an equipment site ID, and an ID of the current communication session.
According to the above technical solution, preferably, step c includes: acquiring original data from the message queue, and analyzing a data header and a packet body; judging whether data are lost or not; if no data is lost, writing the normal data into the database; and if the data loss exists, performing packet loss marking processing.
According to the above technical solution, preferably, the packet loss marking process includes: and writing the packet loss data with the retransmission identifier into a database and a cache.
According to the above technical solution, preferably, step d includes: acquiring packet loss data from the database; and generating a retransmission command according to the packet loss data, and transmitting the retransmission command to the Internet of things platform.
According to the above technical solution, preferably, step d further includes: and judging whether the retransmission command is transmitted successfully or not.
This patent still discloses a packet loss retransmission system based on thing networking platform, its characterized in that includes: the equipment unit is used for transmitting original data to the Internet of things platform; the Internet of things platform is used for receiving the original data transmitted by the equipment unit, transmitting the original data to the application system and receiving a retransmission command sent by the application system according to the packet loss information; and the application system is used for receiving the original data transmitted by the Internet of things platform, analyzing and processing the original data through a consumption process and acquiring packet loss information.
The invention has the beneficial effects that:
according to the invention, when the application system detects packet loss, the command is automatically issued to the Internet of things platform, the Internet of things platform forwards the command to the designated equipment, and the equipment retransmits the data which is failed to be transmitted after receiving the command, so that the processing time is more accurate, the packet loss processing effect can be enhanced, the accuracy and the integrity of data transmission are ensured, and the data transmission efficiency and quality are improved.
Drawings
Fig. 1 is a schematic diagram of the connection transmission of the present invention.
FIG. 2 is a schematic diagram of the data consumption process processing logic of the present invention.
Fig. 3 is a schematic diagram of the retransmission process processing logic of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the present invention will be further described in detail with reference to the accompanying drawings and preferred embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in the figure, the invention comprises the following steps: a. the device transmits data to the Internet of things platform through a southbound interface based on 4G/5G/NBIOT and other networks, and the Internet of things platform receives original data transmitted by the device and transmits the original data to the application system through a northbound interface; b. the application system receives original data and writes the original data into a message queue of the application system; c. analyzing and abnormal processing are carried out on the original data in the message queue through a consumption process, and packet loss information is obtained; d. the application system transmits a retransmission command to the Internet of things platform according to the packet loss information; e. and the Internet of things platform transmits the retransmission command to the appointed equipment. According to the invention, when the application system detects packet loss, the command is automatically issued to the Internet of things platform, the Internet of things platform forwards the command to the designated equipment, and the equipment retransmits the data which is failed to be transmitted after receiving the command, so that the processing time is more accurate, the packet loss processing effect can be enhanced, the accuracy and the integrity of data transmission are ensured, and the data transmission efficiency and quality are improved.
According to the above technical solution, preferably, the raw data includes sensor data, an equipment attribution item ID, an equipment site ID, and an ID of the current communication session.
According to the above technical solution, preferably, step c includes:
(1) and acquiring original data from the message queue, and analyzing a data header and a packet body.
(2) And judging whether data are lost or not. In this step, the consumption process determines whether packet loss exists by combining the current communication session ID in the cache, and the specific determination principle is as follows: and the session IDs are sorted from small to large, the range is 0-65536, the session ID is reset to 0 after exceeding 65536, the session ID is updated once when data is reported each time, and if the difference between the session ID of the data reported next time and the last session ID cached in the system is more than 1, the packet drop is considered to exist. Such as: and if the session ID sequence 1,2,3,5 is determined that the packet with the session ID of 4 is lost, the station information with the session ID of 4 is written into the database, the retransmission process reads the record and then sends a retransmission command to the IOT platform, the IOT platform sends the command to the equipment, and the equipment reports the retransmission data after receiving the command.
(3) And if no data is lost, writing the normal data into the database, namely if no packet loss exists, analyzing the data, writing the data into the database, updating the session ID, and continuously consuming the next piece of data.
(4) And if the data loss exists, performing packet loss marking processing. The packet loss marking processing comprises the following steps: and writing the packet loss data with the retransmission identifier into a database and a cache. After the consumption process judges that the packet is lost, the item ID, the site ID and the session ID of the lost data are written into a retransmission table of the database, and when the data are lost, retransmission identification information is written into the database and the cache, so that after the retransmission is successful, the cache identification is deleted, and the state of the retransmission record inserted into the database is updated.
According to the above technical solution, preferably, step d includes:
(1) and acquiring packet loss data from the database.
(2) And generating a retransmission command according to the packet loss data, and transmitting the retransmission command to the Internet of things platform.
(3) And judging whether the retransmission command is transmitted successfully or not. The method for determining whether the retransmission command is successfully transmitted in this example is as follows: the telecommunication IOT platform is provided with a callback mechanism, and if command retransmission is successful and failed, corresponding callback actions are triggered. If the retransmission command is successfully issued, a retransmission success flag is set, the information with the cache identification in the cache is deleted, and the state of the retransmission record inserted into the database is also updated. And if the retransmission command fails to be issued, deleting the recorded cache information, continuously processing the next lost data, after one iteration cycle, issuing the retransmission command to the data packet which is not successfully retransmitted again, and if the retransmission still fails after N times of attempts, giving up the retransmission.
This patent still discloses a packet loss retransmission system based on thing networking platform, its characterized in that includes: the equipment unit is used for transmitting original data to the Internet of things platform; the Internet of things platform is used for receiving the original data transmitted by the equipment unit, transmitting the original data to the application system and receiving a retransmission command sent by the application system according to the packet loss information; and the application system is used for receiving the original data transmitted by the Internet of things platform, analyzing and processing the original data through a consumption process and acquiring packet loss information.
According to the invention, when the application system detects packet loss, the command is automatically issued to the Internet of things platform, the Internet of things platform forwards the command to the designated equipment, and the equipment retransmits the data which is failed to be transmitted after receiving the command, so that the processing time is more accurate, the packet loss processing effect can be enhanced, the accuracy and the integrity of data transmission are ensured, and the data transmission efficiency and quality are improved.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (7)
1. A packet loss retransmission method based on an Internet of things platform is characterized by comprising the following steps: a. the Internet of things platform receives original data transmitted by equipment and transmits the original data to an application system; b. the application system receives original data and writes the original data into a message queue of the application system; c. analyzing and processing the original data in the message queue through a consumption process to acquire packet loss information; d. the application system transmits a retransmission command to the Internet of things platform according to the packet loss information; e. and the Internet of things platform transmits the retransmission command to the appointed equipment.
2. The packet loss retransmission method based on the internet of things platform according to claim 1, wherein the raw data includes sensor data, a device attribution item ID, a device site ID, and a current communication session ID.
3. The packet loss retransmission method based on the internet of things platform according to claim 2, wherein step c comprises: acquiring original data from the message queue, and analyzing a data header and a packet body; judging whether data are lost or not; if no data is lost, writing the normal data into the database; and if the data loss exists, performing packet loss marking processing.
4. The packet loss retransmission method based on the internet of things platform according to claim 3, wherein the packet loss marking process comprises: and writing the packet loss data with the retransmission identifier into a database and a cache.
5. The packet loss retransmission method based on the internet of things platform according to claim 4, wherein the step d comprises: acquiring packet loss data from the database; and generating a retransmission command according to the packet loss data, and transmitting the retransmission command to the Internet of things platform.
6. The packet loss retransmission method based on the internet of things platform according to claim 5, wherein the step d further comprises: and judging whether the retransmission command is transmitted successfully or not.
7. A packet loss retransmission system based on an Internet of things platform is characterized by comprising:
the equipment unit is used for transmitting original data to the Internet of things platform;
the Internet of things platform is used for receiving the original data transmitted by the equipment unit, transmitting the original data to the application system and receiving a retransmission command sent by the application system according to the packet loss information;
and the application system is used for receiving the original data transmitted by the Internet of things platform, analyzing and processing the original data through a consumption process and acquiring packet loss information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110419246.2A CN113194125A (en) | 2021-04-19 | 2021-04-19 | Packet loss retransmission method and system based on Internet of things platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110419246.2A CN113194125A (en) | 2021-04-19 | 2021-04-19 | Packet loss retransmission method and system based on Internet of things platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113194125A true CN113194125A (en) | 2021-07-30 |
Family
ID=76977720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110419246.2A Pending CN113194125A (en) | 2021-04-19 | 2021-04-19 | Packet loss retransmission method and system based on Internet of things platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113194125A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621368A (en) * | 2009-08-13 | 2010-01-06 | 北京必创科技有限公司 | Method, device and system for retransmitting data packet |
CN101924625A (en) * | 2010-08-23 | 2010-12-22 | 华为技术有限公司 | Data packet retransmission control method and network side equipment |
US20150365250A1 (en) * | 2013-01-17 | 2015-12-17 | Zte Corporation | Method of data retransmission in collaborative service transmission and access network gateway thereof |
CN108173863A (en) * | 2017-12-29 | 2018-06-15 | 深圳市泛海三江科技发展有限公司 | Establish the method and system of the lightweight WebRTC systems suitable for internet of things equipment |
CN108282277A (en) * | 2018-01-22 | 2018-07-13 | 西安万像电子科技有限公司 | A kind of packet loss repeating method, apparatus and system |
CN108536544A (en) * | 2018-03-21 | 2018-09-14 | 微梦创科网络科技(中国)有限公司 | Consuming method, device, server based on database message queue and medium |
CN109120383A (en) * | 2017-06-26 | 2019-01-01 | 深圳市道通智能航空技术有限公司 | Unmanned plane and its earth station, data transmission method |
CN111190747A (en) * | 2019-12-20 | 2020-05-22 | 北京金山云网络技术有限公司 | Message loss detection method and device for message queue |
-
2021
- 2021-04-19 CN CN202110419246.2A patent/CN113194125A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621368A (en) * | 2009-08-13 | 2010-01-06 | 北京必创科技有限公司 | Method, device and system for retransmitting data packet |
CN101924625A (en) * | 2010-08-23 | 2010-12-22 | 华为技术有限公司 | Data packet retransmission control method and network side equipment |
US20150365250A1 (en) * | 2013-01-17 | 2015-12-17 | Zte Corporation | Method of data retransmission in collaborative service transmission and access network gateway thereof |
CN109120383A (en) * | 2017-06-26 | 2019-01-01 | 深圳市道通智能航空技术有限公司 | Unmanned plane and its earth station, data transmission method |
CN108173863A (en) * | 2017-12-29 | 2018-06-15 | 深圳市泛海三江科技发展有限公司 | Establish the method and system of the lightweight WebRTC systems suitable for internet of things equipment |
CN108282277A (en) * | 2018-01-22 | 2018-07-13 | 西安万像电子科技有限公司 | A kind of packet loss repeating method, apparatus and system |
CN108536544A (en) * | 2018-03-21 | 2018-09-14 | 微梦创科网络科技(中国)有限公司 | Consuming method, device, server based on database message queue and medium |
CN111190747A (en) * | 2019-12-20 | 2020-05-22 | 北京金山云网络技术有限公司 | Message loss detection method and device for message queue |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108696773B (en) | Real-time video transmission method and device | |
CN107592185B (en) | Forward retransmission method suitable for network coding transmission control protocol | |
CN109451032B (en) | Message transmission system | |
CN112566282B (en) | Internet of things information transmission method and platform | |
CN105119810A (en) | Instant communication method based on XMPP protocol and system thereof | |
CN104954348A (en) | Reliable message pushing method based on XMPP | |
CN103684707A (en) | Server-side and user-side message transmission processing method, message transmission method and message transmission system | |
WO2023098430A1 (en) | Data packet processing method, communication apparatus and communication system | |
CN110545243B (en) | ICN message forwarding method | |
CN114612101A (en) | Reliable inter-link route cross-link method and system for connection | |
CN104639613B (en) | Implementation method based on the mobile data synchronization middleware for improving procotol | |
CN113194125A (en) | Packet loss retransmission method and system based on Internet of things platform | |
JPH10262093A (en) | Transmission control method | |
CN108632383A (en) | A kind of method of serial ports transmitting file | |
CN113794622B (en) | Message processing method and device, electronic equipment and storage medium | |
WO2016165289A1 (en) | Inter-board data processing method and device | |
CN111064674B (en) | Data transmission method, device and system | |
CN116155826A (en) | Message receiving and transmitting method, network equipment, system and storage medium | |
CN113489786A (en) | Long connection network weak network reconnection method and retransmission method | |
CN111756645A (en) | Ad hoc network elastic transmission control method based on block chain security attribute | |
CN114157674A (en) | Wireless communication method, device, system, server and medium | |
CN108259393A (en) | Out of order correcting method and system in a kind of flow data processing | |
JPS6362435A (en) | Packet transmission and reception system | |
CN106101018A (en) | A kind of infallible data sending method of Based on Distributed mass data loading system | |
CN115001630B (en) | Data transmission method, device, equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210730 |