CN107733903B - Data transmission confirmation method based on UDP (user Datagram protocol) and base station - Google Patents

Data transmission confirmation method based on UDP (user Datagram protocol) and base station Download PDF

Info

Publication number
CN107733903B
CN107733903B CN201710998300.7A CN201710998300A CN107733903B CN 107733903 B CN107733903 B CN 107733903B CN 201710998300 A CN201710998300 A CN 201710998300A CN 107733903 B CN107733903 B CN 107733903B
Authority
CN
China
Prior art keywords
data packet
layer protocol
timer
packet
base station
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
CN201710998300.7A
Other languages
Chinese (zh)
Other versions
CN107733903A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201710998300.7A priority Critical patent/CN107733903B/en
Publication of CN107733903A publication Critical patent/CN107733903A/en
Application granted granted Critical
Publication of CN107733903B publication Critical patent/CN107733903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements 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/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements 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/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1848Time-out mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a UDP-based data transmission confirmation method and a UDP-based base station, relates to the field of data transmission, and can save uplink network resources and improve the utilization rate of uplink wireless resources. The method comprises the following steps: the base station receives the data packet sent by the server and analyzes the data packet to obtain IP quintuple information; when the base station determines that the transmission layer protocol of the data packet is UDP according to the transmission layer protocol field, the destination IP address and the destination port number in the IP quintuple information and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, the base station sends the data packet to the corresponding user terminal according to the destination IP address and sets a timer to start timing; and when the timing time of the timer is equal to the threshold value of the timer, the base station simulates the user terminal to generate a message confirmation packet according to the IP quintuple information and the application layer protocol and sends the message confirmation packet to the server.

Description

Data transmission confirmation method based on UDP (user Datagram protocol) and base station
Technical Field
The present invention relates to the field of data transmission, and in particular, to a data transmission confirmation method based on UDP and a base station.
Background
In network communication, since a User Datagram Protocol (UDP) has characteristics of small resource consumption and high processing speed when processing a data packet, the UDP is widely applied to audio, video and data transmission. The main role of UDP is to compress network data traffic into a data packet form, but UDP does not provide packet grouping and assembly and cannot sequence data packets, and a receiving end does not acknowledge received packets. Therefore, some data services select UDP as a transport layer protocol based on the characteristic of low transmission overhead, but in order to enable the server to determine whether data transmission succeeds or not and determine whether transmission continues or stops, a message confirmation mechanism needs to be additionally added to an application layer, so that the reliability of data transmission is guaranteed. For example, TFTP (simple File Transfer Protocol) is a simple File Transfer Protocol based on UDP Protocol, and the user terminal uses an ACK (Acknowledgement character) packet as a message Acknowledgement packet to inform the server that it has successfully received data.
Although reliable Transmission based on the UDP Protocol can be achieved by using a message acknowledgement packet mechanism such as an ACK packet, the problem of increased overhead of Transmission network resources similar to a Transmission Control Protocol (TCP) Protocol is also caused. Particularly, the ACK packet message based on the UDP protocol has a single function, is only used for confirming the packet reception, has a simple packet format and a very small packet length, for example, the ACK packet of the TFTP protocol has only 4 bytes, but the ACK packet is sent to the base station by the user terminal through the wireless network, and when the ACK packet is forwarded to the server by the base station, UDP encapsulation and IP (internet protocol, protocol interconnection between networks) encapsulation need to be superimposed, the size of the data portion of the IP packet is even smaller than that of the packet header, and then the ACK packet needs to be further encapsulated into a physical layer packet in the mobile network. Therefore, how to improve the sending efficiency of the ACK packet, thereby improving the utilization rate of the uplink transmission resource, becomes an urgent problem to be solved.
Disclosure of Invention
Embodiments of the present invention provide a data transmission confirmation method and a base station based on UDP, which can improve the utilization rate of uplink network resources of a wireless network.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a UDP-based data transmission acknowledgement method is provided, including:
the base station receives the data packet sent by the server and analyzes the data packet to acquire the internet protocol IP quintuple information of the data packet; the base station judges whether the transport layer protocol of the data packet is a User Datagram Protocol (UDP) according to the transport layer protocol field in the IP quintuple information, and simultaneously judges the application layer protocol type of the data packet according to the destination IP address and the destination port number in the IP quintuple information; when the base station determines that the transmission layer protocol of the data packet is UDP and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, the base station sends the data packet to a corresponding user terminal according to the destination IP address and sets a timer to start timing; and when the timing time of the timer is equal to the threshold value of the timer, the base station simulates the user terminal to generate a message confirmation packet according to the IP quintuple information and the application layer protocol and sends the message confirmation packet to the server.
In the UDP-based data transmission confirmation method provided in the foregoing embodiment, when the transport layer protocol of the data packet is UDP and the application layer protocol is a packet requiring return of a message confirmation packet, the base station sets a timer when sending the data packet received from the server to the user terminal, where a threshold of the timer is a sum of a round-trip time length of data transmission of the data packet between the base station and the user terminal and a time length of processing and generating an error packet by the user client, and if all is normal, the user terminal will already receive the data packet before the timer times the threshold, the base station generates a message confirmation packet according to IP quintuple information generated by parsing the data packet when the timer times the threshold, and sends the message confirmation packet to the concurrent server, where the message confirmation packet is generated according to parsing information of the data packet, that is, the message confirmation packet is generated by the base station in a manner that the base station simulates the user terminal, after receiving the message confirmation packet, the server determines that the user has received the data packet and can prepare for sending the next data packet; therefore, in the whole method flow, the user terminal does not need to send the message confirmation packet to the base station through the wireless network, the network resource usage at this stage is saved, and the utilization rate of the uplink wireless resource is further improved.
Optionally, the determining, by the base station, whether a transport layer protocol of the packet is a user datagram protocol UDP according to a transport layer protocol field in the IP quintuple information includes: the base station acquires the value of a transport layer protocol field according to the transport layer protocol field in the IP quintuple information; and if the value of the transport layer protocol is a preset value, the transport layer protocol of the data packet is UDP.
Illustratively, when the base station sends a data packet to the ue, the ue may also have a timer, and normally, when the timer reaches a threshold value, the ue may receive the data packet successfully, but if data congestion occurs or other reasons cause the timer to reach the threshold value, the ue may not receive the data packet, and then the ue may generate an error packet to send to the base station to notify the base station that the ue cannot receive the data packet normally, and then, preferably, the method further includes: if the timing time of the timer is less than the threshold value of the timer, the base station receives an error packet sent by the user terminal, and then the base station controls the timer to stop timing and sends the error packet to the server; the error packet is used to identify that the user terminal failed to successfully receive the data packet.
Optionally, the method further includes: when the timing time of the timer is equal to the threshold value of the timer, the base station controls the timer to reset, and the timer is set to start timing when the next data packet of which the transmission layer protocol is UDP and the application layer protocol is the type of the message acknowledgement packet needing to be transmitted is sent.
Optionally, after the base station controls the timer to stop timing, the method further includes: the base station controls the timer to reset, and the timer is set to start timing when the next data packet of which the transmission layer protocol is UDP and the application layer protocol is the type of the message acknowledgement packet needs to be transmitted is sent.
In a second aspect, a base station is provided, including: the device comprises a receiving module, an analysis module, a sending module and a simulation module; the receiving module is used for receiving a data packet sent by the server; the analysis module is used for analyzing the data packet received by the receiving module to acquire IP five-tuple information of the data packet, judging whether a transport layer protocol of the data packet is UDP according to a transport layer protocol field in the IP five-tuple information, and judging the application layer protocol type of the data packet according to a target IP address and a target port number in the IP five-tuple information; the sending module is used for sending the data packet to the user terminal when the analysis module determines that the transmission layer protocol of the data packet is a User Datagram Protocol (UDP) and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, and simultaneously setting a timer to start timing; and when the timing time of the timer is equal to the threshold value of the timer, the simulation module is used for simulating the user terminal to generate a message confirmation packet according to the parameter information of the data packet acquired by the analysis module and sending the message confirmation packet to the server by the sending module.
Specifically, the parsing module is specifically configured to: acquiring a value of a transport layer protocol field according to the transport layer protocol field in the IP five-tuple information; and if the value of the transport layer protocol field is a preset value, the transport layer protocol of the data packet is UDP.
Preferably, if the timing time of the timer is less than the threshold value of the timer, the receiving module receives an error packet sent by the user terminal, and the sending module is further configured to control the timer to stop timing and send the error packet to the server; the error packet is used to identify that the user terminal failed to successfully receive the data packet.
Optionally, when the timer timing time is equal to the timer threshold, the sending module controls the timer to reset, and the timer is set to start timing when the next data packet is sent, where the transport layer protocol is UDP and the application layer protocol is a type of data packet that needs to transmit the message acknowledgement packet.
Optionally, the sending module resets the timer after controlling the timer to stop timing, and sets the timer to start timing when the next sending of the data packet is the data packet of which the transport layer protocol is UDP and the application layer protocol is the type of the message acknowledgement packet that needs to be transmitted.
The data transmission confirmation method and the base station based on the UDP provided by the embodiment of the invention are characterized in that the method comprises the following steps: the base station receives the data packet sent by the server and analyzes the data packet to acquire the internet protocol IP quintuple information of the data packet; the base station judges whether the transport layer protocol of the data packet is a User Datagram Protocol (UDP) according to the transport layer protocol field in the IP quintuple information, and simultaneously judges the application layer protocol type of the data packet according to the destination IP address and the destination port number in the IP quintuple information; when the base station determines that the transmission layer protocol of the data packet is UDP and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, the base station sends the data packet to a corresponding user terminal according to the destination IP address and sets a timer to start timing; and when the timing time of the timer is equal to the threshold value of the timer, the base station simulates the user terminal to generate a message confirmation packet according to the IP quintuple information and the application layer protocol and sends the message confirmation packet to the server. In the method, when the transmission layer protocol of a data packet is UDP and an application layer protocol needs to return a message confirmation packet, a base station sets a timer when sending the data packet received from a server to a user terminal, the threshold value of the timer is the sum of the round-trip time length of the data transmission of the data packet between the base station and the user terminal and the time length of an error packet processed and generated by the user client, if all are normal, the user terminal already receives the data packet before the timer times to the threshold value, the base station generates a message confirmation packet according to IP quintuple information generated by analyzing the data packet when the timer times to the threshold value and sends the message confirmation packet to the server, because the message confirmation packet is generated according to the analysis information of the data packet, namely the message confirmation packet is equivalent to the message confirmation packet generated by simulating the user terminal by the base station, the server determines that the user has received the data packet after receiving the message confirmation packet and can prepare the sending of the next data packet (ii) a Therefore, in the whole method flow, the user terminal does not need to send the message confirmation packet to the base station through the wireless network, the network resource usage at this stage is saved, and the utilization rate of the uplink wireless resource is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a UDP-based data transmission confirmation method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a UDP-based data transmission confirmation method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a base station according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, in the embodiments of the present invention, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that, when the difference is not emphasized, the intended meaning is consistent.
In the prior art, a message acknowledgement packet for acknowledging the successful transmission of a data packet in the UDP-based data transmission process between a server, a base station and a user terminal has a simple format and a very small packet length, so that the size of various encapsulated data to be added in the wireless network transmission from the user terminal to the server is even larger than the size of data actually required to be transmitted by the message acknowledgement packet, which is a waste for uplink wireless resources to a certain extent.
In view of the above problem, referring to fig. 1, an embodiment of the present invention provides a data transmission confirmation method based on UDP, where the method includes:
101. and the base station receives the data packet sent by the server and analyzes the data packet to acquire the IP quintuple information of the data packet.
Specifically, the parsing packet is to separate the encapsulation of the packet from the original data, and decapsulate each item of information included in the encapsulation of the packet, where the IP quintuple information obtained by parsing includes: a destination IP address, a source IP address, a destination port number, a source port number, and a transport layer protocol field.
102. And the base station judges whether the transport layer protocol of the data packet is UDP according to the transport layer protocol field in the IP five-tuple information, and simultaneously judges the application layer protocol type of the data packet according to the destination IP address and the destination port number in the IP five-tuple information.
Specifically, when the values of the transport layer protocol fields are different, the transport layer protocols are also different, and in the prior art, each transport layer protocol corresponds to one value; the step 102, the base station determining whether the transport layer protocol of the data packet is the user datagram protocol UDP according to the transport layer protocol field in the IP quintuple information may specifically include: the base station acquires the value of a transport layer protocol field according to the transport layer protocol field in the IP quintuple information; if the value of the transport layer protocol is a preset value, the transport layer protocol of the data packet is UDP; in the prior art, the transport layer protocol field for UDP has a value of 17.
103. When the base station determines that the transmission layer protocol of the data packet is UDP and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, the base station sends the data packet to the corresponding user terminal according to the destination IP address and sets a timer to start timing.
Specifically, the application layer protocol that needs to transmit the message acknowledgement packet is generally a UDP-based application layer protocol designed to ensure the reliability of data packet transmission, such as TFTP; when the data packet uses the application layer protocol, after the user terminal and the server establish a communication channel to prepare the data packet to be sent, the user terminal determines which application layer protocol is used by the data packet, if the data packet is the application layer protocol based on the UDP, a message confirmation packet for indicating that the user terminal has received the data packet is returned to the server, or an error packet for indicating that the data packet cannot be received is returned to the server when the data packet cannot be received; illustratively, the destination port number corresponding to TFTP is generally 69.
It should be noted that, when the IP quintuple information of the packet cannot determine that the transport layer protocol of the packet is UDP and the application layer protocol of the packet is the type of the message acknowledgement packet that needs to be transmitted, data transmission and acknowledgement are performed according to the transport layer protocol and the application layer protocol, which is determined with reference to the actual situation and will not be described herein.
104. And when the timing time of the timer is equal to the threshold value of the timer, the base station simulates the user terminal to generate a message confirmation packet according to the IP quintuple information and the application layer protocol and sends the message confirmation packet to the server.
Specifically, the threshold of the timer is the sum of the round trip time length of data transmission between the base station and the user terminal and the time length of processing and generating an error packet by the user client, generally, the round trip time length of data transmission between the base station and the user terminal is constant, and the time length of processing and generating an error packet after the user terminal finds that the data packet cannot be received is related to the processing capability of the user terminal, so the size of the timer threshold is mainly related to the processing capability of the user terminal when being set, and the stronger the processing capability of the user terminal is, the shorter the timer threshold corresponding to the user terminal is, and certainly, the shortest is also greater than the round trip time length of data transmission between the base station and the user terminal; if all is normal, the user terminal will already receive the data packet before the timer counts the threshold value, the base station generates a message confirmation packet according to the IP quintuple information generated by analyzing the data packet when the timer counts the threshold value and sends the message confirmation packet to the server, because the message confirmation packet is generated according to the analyzed information of the data packet, namely the message confirmation packet is generated by simulating the user terminal by the base station, the server determines that the user has received the data packet after receiving the message confirmation packet and can prepare for sending the next data packet.
In the UDP-based data transmission confirmation method provided in the foregoing embodiment, when the transport layer protocol of the data packet is UDP and the application layer protocol is a packet requiring return of a message confirmation packet, the base station sets a timer when sending the data packet received from the server to the user terminal, where a threshold of the timer is a sum of a round-trip time length of data transmission of the data packet between the base station and the user terminal and a time length of processing and generating an error packet by the user client, and if all is normal, the user terminal will already receive the data packet before the timer times the threshold, the base station generates a message confirmation packet according to IP quintuple information generated by parsing the data packet when the timer times the threshold, and sends the message confirmation packet to the concurrent server, where the message confirmation packet is generated according to parsing information of the data packet, that is, the message confirmation packet is generated by the base station in a manner that the base station simulates the user terminal, after receiving the message confirmation packet, the server determines that the user has received the data packet and can prepare for sending the next data packet; therefore, in the whole method flow, the user terminal does not need to send the message confirmation packet to the base station through the wireless network, the network resource usage at this stage is saved, and the utilization rate of the uplink wireless resource is further improved.
Referring to fig. 2, another embodiment of the present invention further provides a UDP-based data transmission confirmation method as a further supplementary description of the UDP-based data transmission confirmation method provided in the foregoing embodiment, where the method includes:
201. and the base station receives the data packet sent by the server and analyzes the data packet to acquire the IP quintuple information of the data packet.
202. And the base station judges whether the transport layer protocol of the data packet is UDP according to the transport layer protocol field in the IP five-tuple information, and simultaneously judges the application layer protocol type of the data packet according to the destination IP address and the destination port number in the IP five-tuple information.
203. When the base station determines that the transmission layer protocol of the data packet is UDP and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, the base station sends the data packet to the corresponding user terminal according to the destination IP address and sets a timer to start timing.
2041. And when the timing time of the timer is equal to the threshold value of the timer, the base station simulates the user terminal to generate a message confirmation packet according to the IP quintuple information and the application layer protocol and sends the message confirmation packet to the server.
2042. If the timing time of the timer is less than the threshold value of the timer, the base station receives an error packet sent by the user terminal, and then the base station controls the timer to stop timing and sends the error packet to the server; the error packet is used to identify that the user terminal failed to successfully receive the data packet.
Illustratively, when a base station sends a data packet to a user terminal, the user terminal also has a timer, and under normal conditions, the user terminal will successfully receive the data packet when the timer times to a threshold value, but if data congestion or other reasons cause the timer times to reach the threshold value of the timer, the user terminal will generate an error packet and send the error packet to the base station to inform the base station that the user terminal cannot normally receive the data packet; of course, the user terminal may also detect the sending condition of the data packet in real time after establishing a communication channel with the base station, if the data packet cannot be received due to channel congestion, an error packet may be generated and sent to the base station, and the specific form of how the user terminal generates the error packet depends on the reality.
205. The base station controls the timer to reset, and the timer is set to start timing when the next data packet of which the transmission layer protocol is UDP and the application layer protocol is the type of the message acknowledgement packet needs to be transmitted is sent.
Specifically, in order to ensure the continuity of data packets transmitted by the base station, after the timing operation of the transmission process of the timer is completed, the timer restarts to perform the timing operation when the next data packet needs to be transmitted by the base station.
The data transmission confirmation method based on UDP provided by the embodiment of the invention comprises the following steps: the base station receives the data packet sent by the server and analyzes the data packet to acquire the internet protocol IP quintuple information of the data packet; the base station judges whether the transport layer protocol of the data packet is a User Datagram Protocol (UDP) according to the transport layer protocol field in the IP quintuple information, and simultaneously judges the application layer protocol type of the data packet according to the destination IP address and the destination port number in the IP quintuple information; when the base station determines that the transmission layer protocol of the data packet is UDP and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, the base station sends the data packet to a corresponding user terminal according to the destination IP address and sets a timer to start timing; and when the timing time of the timer is equal to the threshold value of the timer, the base station simulates the user terminal to generate a message confirmation packet according to the IP quintuple information and the application layer protocol and sends the message confirmation packet to the server. In the method, when the transmission layer protocol of a data packet is UDP and an application layer protocol needs to return a message confirmation packet, a base station sets a timer when sending the data packet received from a server to a user terminal, the threshold value of the timer is the sum of the round-trip time length of the data transmission of the data packet between the base station and the user terminal and the time length of an error packet processed and generated by the user client, if all are normal, the user terminal already receives the data packet before the timer times to the threshold value, the base station generates a message confirmation packet according to IP quintuple information generated by analyzing the data packet when the timer times to the threshold value and sends the message confirmation packet to the server, because the message confirmation packet is generated according to the analysis information of the data packet, namely the message confirmation packet is equivalent to the message confirmation packet generated by simulating the user terminal by the base station, the server determines that the user has received the data packet after receiving the message confirmation packet and can prepare the sending of the next data packet (ii) a Therefore, in the whole method flow, the user terminal does not need to send the message confirmation packet to the base station through the wireless network, the network resource usage at this stage is saved, and the utilization rate of the uplink wireless resource is further improved.
Referring to fig. 3, in order to better implement the UDP-based data transmission acknowledgement method provided in the foregoing embodiment, an embodiment of the present invention further provides a base station 02, where the base station 02 includes: a receiving module 31, an analyzing module 32, a sending module 33 and a simulating module 34;
the receiving module 31 is configured to receive a data packet sent by the server 01;
the analyzing module 32 is configured to analyze the data packet received by the receiving module 31 to obtain IP quintuple information of the data packet, determine whether a transport layer protocol of the data packet is UDP according to a transport layer protocol field in the IP quintuple information, and determine an application layer protocol type of the data packet according to a destination IP address and a destination port number in the IP quintuple information;
the sending module 33 is configured to send the data packet to the user terminal 03 when the parsing module 32 determines that the transport layer protocol of the data packet is the user datagram protocol UDP and the application layer protocol of the data packet is the type of the acknowledgement packet of the message to be transmitted, and sets a timer to start timing;
when the timer timing time equals to the timer threshold value, the simulation module 34 is configured to simulate the user terminal 03 to generate a message confirmation packet according to the parameter information of the data packet acquired by the parsing module 32, and send the message confirmation packet to the server 01 by the sending module 33.
Specifically, as shown in fig. 3, the parsing module 32 is specifically configured to: acquiring a value of a transport layer protocol field according to the transport layer protocol field in the IP five-tuple information; and if the value of the transport layer protocol field is a preset value, the transport layer protocol of the data packet is UDP.
Preferably, as shown in fig. 3, if the time counted by the timer is less than the timer threshold value, and the receiving module 31 receives the error packet sent by the user terminal 03, the sending module 33 is further configured to control the timer to stop counting time and send the error packet to the server 01; the error packet is used to identify that the user terminal 03 failed to receive the data packet successfully.
Optionally, referring to fig. 3, when the timer timing time equals to the timer threshold, the sending module 33 controls the timer to reset, and starts timing when the next data packet is sent, where the transport layer protocol is UDP and the application layer protocol is a type of data packet that needs to transmit a message acknowledgement packet.
Alternatively, referring to fig. 3, the sending module 33 resets the timer after controlling the timer to stop timing, and controls the timer to start timing when the next data packet is sent, where the transport layer protocol is UDP and the application layer protocol is a type of data packet that needs to transmit the message acknowledgement packet.
In the base station provided in the embodiment of the present invention, the base station includes: the device comprises a receiving module, an analysis module, a sending module and a simulation module; the receiving module is used for receiving a data packet sent by the server; the analysis module is used for analyzing the data packet received by the receiving module to acquire IP five-tuple information of the data packet, judging whether a transport layer protocol of the data packet is UDP according to a transport layer protocol field in the IP five-tuple information, and judging the application layer protocol type of the data packet according to a target IP address and a target port number in the IP five-tuple information; the sending module is used for sending the data packet to the user terminal when the analysis module determines that the transmission layer protocol of the data packet is a User Datagram Protocol (UDP) and the application layer protocol of the data packet is the type of the message confirmation packet needing to be transmitted, and simultaneously setting a timer to start timing; and when the timing time of the timer is equal to the threshold value of the timer, the simulation module is used for simulating the user terminal to generate a message confirmation packet according to the parameter information of the data packet acquired by the analysis module and sending the message confirmation packet to the server. Therefore, when the base station transmits the data packet received by the receiving module from the server, and the analysis module determines that the transport layer protocol of the data packet is UDP and the application layer protocol is a message confirmation packet which needs to be returned, the sending module sets a timer when sending the data packet received from the server to the user terminal, the threshold value of the timer is the sum of the round trip time length of the data transmission of the data packet between the base station and the user terminal and the time length of the processing and error packet generated by the user client, if all are normal, the user terminal will already receive the data packet before the timer times the threshold value, the simulation module generates a message confirmation packet according to the IP quintuple information generated by the analysis module when the timer times the threshold value, and sends the message confirmation packet to the server, because the message confirmation packet is generated according to the analysis information of the data packet, namely the message confirmation packet is generated by the base station simulating the user terminal, after receiving the message confirmation packet, the server determines that the user has received the data packet and can prepare for sending the next data packet; therefore, the base station can enable the user terminal not to send the message confirmation packet to the base station through the wireless network in the process of sending the data packet, thereby saving the network resource usage at this stage and further improving the utilization rate of the uplink wireless resource.
The embodiment of the present invention further provides a computer program, where the computer program may be directly loaded into a memory and contains a software code, and the computer program is loaded and executed by a computer, so as to implement the UDP-based data transmission validation method.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Illustratively, the user terminal may specifically be: mobile phones, navigators, Personal Computers (PCs), netbooks, Personal Digital Assistants (PDAs), servers, and the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A data transmission confirmation method based on UDP is characterized by comprising the following steps:
a base station receives a data packet sent by a server and analyzes the data packet to acquire Internet Protocol (IP) quintuple information of the data packet;
the base station judges whether the transport layer protocol of the data packet is a User Datagram Protocol (UDP) according to the transport layer protocol field in the IP quintuple information, and simultaneously judges the application layer protocol type of the data packet according to the destination IP address and the destination port number in the IP quintuple information;
when the base station determines that the transmission layer protocol of the data packet is UDP and the application layer protocol of the data packet is the type of a message confirmation packet needing to be transmitted, the base station sends the data packet to a corresponding user terminal according to the destination IP address and sets a timer to start timing;
and when the timing time of the timer is equal to the threshold value of the timer, the base station simulates the user terminal to generate a message confirmation packet according to the IP quintuple information and the application layer protocol and sends the message confirmation packet to the server.
2. The method of claim 1, wherein the base station determining whether the transport layer protocol of the packet is UDP according to the transport layer protocol field in the IP quintuple information comprises:
the base station acquires the value of the transport layer protocol field according to the transport layer protocol field in the IP quintuple information;
and if the value of the transport layer protocol is a preset value, the transport layer protocol of the data packet is UDP.
3. The method of claim 1, further comprising:
if the timing time of the timer is less than the threshold value of the timer, the base station receives an error packet sent by the user terminal, and the base station controls the timer to stop timing and sends the error packet to the server; the error packet is used to identify that the user terminal failed to successfully receive the data packet.
4. The method of claim 1, further comprising:
and when the timing time of the timer is equal to the threshold value of the timer, the base station controls the timer to reset, and controls the timer to start timing when the next data packet of which the transmission layer protocol is UDP and the application layer protocol is the type of the message acknowledgement packet needing to be transmitted is sent.
5. The method of claim 3, wherein after the base station controlling the timer to stop timing, further comprising:
and the base station controls the timer to reset, and controls the timer to start timing when the next data packet of which the transmission layer protocol is UDP and the application layer protocol is the type of the message acknowledgement packet needing to be transmitted is sent.
6. A base station, comprising: the device comprises a receiving module, an analysis module, a sending module and a simulation module;
the receiving module is used for receiving a data packet sent by the server;
the analysis module is used for analyzing the data packet received by the receiving module to acquire IP five-tuple information of the data packet, judging whether a transport layer protocol of the data packet is UDP according to a transport layer protocol field in the IP five-tuple information, and judging an application layer protocol type of the data packet according to a target IP address and a target port number in the IP five-tuple information;
the sending module is used for sending the data packet to a user terminal and simultaneously setting a timer to start timing when the analysis module determines that the transmission layer protocol of the data packet is a User Datagram Protocol (UDP) and the application layer protocol of the data packet is the type of a message acknowledgement packet needing to be transmitted;
and when the timing time of the timer is equal to the threshold value of the timer, the simulation module is used for simulating a user terminal to generate a message confirmation packet according to the IP quintuple information of the data packet acquired by the analysis module and sending the message confirmation packet to the server by the sending module.
7. The base station of claim 6, wherein the parsing module is specifically configured to:
acquiring the value of the transport layer protocol field according to the transport layer protocol field in the IP five-tuple information;
and if the value of the transport layer protocol field is a preset value, the transport layer protocol of the data packet is UDP.
8. The base station of claim 6, wherein if the time counted by the timer is less than a timer threshold value, and the receiving module receives an error packet sent by the ue, the sending module is further configured to control the timer to stop counting time and send the error packet to the server; the error packet is used to identify that the user terminal failed to successfully receive the data packet.
9. The base station of claim 6, wherein the sending module controls the timer to reset when the timer times out equal to a timer threshold value, and controls the timer to start timing when the next data packet is sent when the transport layer protocol is UDP and the application layer protocol is a type of data packet requiring transmission of a message acknowledgement packet.
10. The base station of claim 8, wherein the sending module resets the timer after controlling the timer to stop timing, and controls the timer to start timing when the next data packet is sent, wherein the transport layer protocol is UDP and the application layer protocol is a type of data packet requiring transmission of a message acknowledgement packet.
CN201710998300.7A 2017-10-18 2017-10-18 Data transmission confirmation method based on UDP (user Datagram protocol) and base station Active CN107733903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710998300.7A CN107733903B (en) 2017-10-18 2017-10-18 Data transmission confirmation method based on UDP (user Datagram protocol) and base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710998300.7A CN107733903B (en) 2017-10-18 2017-10-18 Data transmission confirmation method based on UDP (user Datagram protocol) and base station

Publications (2)

Publication Number Publication Date
CN107733903A CN107733903A (en) 2018-02-23
CN107733903B true CN107733903B (en) 2019-12-20

Family

ID=61213652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710998300.7A Active CN107733903B (en) 2017-10-18 2017-10-18 Data transmission confirmation method based on UDP (user Datagram protocol) and base station

Country Status (1)

Country Link
CN (1) CN107733903B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385068B (en) * 2018-12-29 2023-09-22 阿里巴巴集团控股有限公司 Data transmission method, device, electronic equipment and communication system
CN112468513B (en) * 2020-12-14 2022-09-23 南京中孚信息技术有限公司 Terminal management communication method for enterprise network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651612A (en) * 2008-08-15 2010-02-17 深圳富泰宏精密工业有限公司 Data transmission system and method
WO2010105411A1 (en) * 2009-03-17 2010-09-23 华为技术有限公司 Method, device and system for sending data packet
CN102957730A (en) * 2011-08-29 2013-03-06 腾讯科技(深圳)有限公司 UDP (User Datagram Protocol)-based data transmission method and data transmission system
CN103051436A (en) * 2012-12-27 2013-04-17 青岛飞鸽软件有限公司 System and method for improving reliability of user datagram protocol (UDP) connection

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090240824A1 (en) * 2008-03-11 2009-09-24 Boris Rekhtman UDP Hole Punch Timeout Discovery Algorithm Over Network Address Translation Connection
JP5676067B1 (en) * 2014-07-16 2015-02-25 かもめエンジニアリング株式会社 Communication method and communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651612A (en) * 2008-08-15 2010-02-17 深圳富泰宏精密工业有限公司 Data transmission system and method
WO2010105411A1 (en) * 2009-03-17 2010-09-23 华为技术有限公司 Method, device and system for sending data packet
CN102957730A (en) * 2011-08-29 2013-03-06 腾讯科技(深圳)有限公司 UDP (User Datagram Protocol)-based data transmission method and data transmission system
CN103051436A (en) * 2012-12-27 2013-04-17 青岛飞鸽软件有限公司 System and method for improving reliability of user datagram protocol (UDP) connection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于跨层设计的简单可靠UDP协议;李志强 等;《解放军理工大学学报(自然科学版)》;20090630;第209-214页 *

Also Published As

Publication number Publication date
CN107733903A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN113411313B (en) Data transmission method, device and system
US9037745B2 (en) Methods and devices for processing incomplete data packets
US9832681B2 (en) Higher layer compression with lower layer signaling
EP3331205B1 (en) Data packet transmission method utilized in ipv6 network and device utilizing same
EP3005601B1 (en) Predictive scheduling for uplink transmission in a cellular network
CN106612284B (en) Streaming data transmission method and device
CN107567107B (en) Data transmission method and device
US20220174477A1 (en) Method and apparatus for realizing network capability opening, electronic device and storage medium
JP2014509483A (en) Mechanisms to improve the performance of transmission control protocols in wireless networks
US20140173104A1 (en) Method and device for spreading deep packet inspection result
US8301685B2 (en) Method and apparatus for managing transmission of TCP data segments
EP3490293B1 (en) Data receiving method, data sending method, receiving device and system
CN111711680A (en) File breakpoint continuous transmission method and device based on UDP (user Datagram protocol)
US10136375B2 (en) Method for service data management, apparatus, and system
CN107733903B (en) Data transmission confirmation method based on UDP (user Datagram protocol) and base station
CN114553730A (en) Application identification method and device, electronic equipment and storage medium
CN114390054A (en) Core network acceleration method, electronic equipment and computer storage medium
CN107431965B (en) Method and device for realizing Transmission Control Protocol (TCP) transmission
CN107548105B (en) Data transmission confirmation method based on UDP (user Datagram protocol) and base station
CN113259490B (en) Multi-level node network data transmission method based on UDP transmission protocol
JP5958355B2 (en) Analysis apparatus, analysis method, and analysis program
CN108429700B (en) Method and device for sending message
EP2768197A1 (en) Deep packet inspection result dissemination method and device
WO2017067224A1 (en) Packet processing method and apparatus
Vernersson Analysis of UDP-based reliable transport using network emulation

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