CN111479293B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN111479293B
CN111479293B CN202010302059.1A CN202010302059A CN111479293B CN 111479293 B CN111479293 B CN 111479293B CN 202010302059 A CN202010302059 A CN 202010302059A CN 111479293 B CN111479293 B CN 111479293B
Authority
CN
China
Prior art keywords
transmitted
queue
data packet
tcp
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.)
Active
Application number
CN202010302059.1A
Other languages
Chinese (zh)
Other versions
CN111479293A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202010302059.1A priority Critical patent/CN111479293B/en
Publication of CN111479293A publication Critical patent/CN111479293A/en
Application granted granted Critical
Publication of CN111479293B publication Critical patent/CN111479293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0289Congestion control
    • 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

Abstract

The embodiment of the application provides a data processing method and device, wherein the method is applied to terminal equipment and comprises the following steps: determining repeated data packets in a plurality of data packets of a first queue to be transmitted when the terminal equipment is in a data packet blocking state; and performing de-duplication operation on the plurality of data packets according to the repeated data packets to obtain a second queue to be transmitted, wherein any two data packets in the second queue to be transmitted are different. According to the scheme provided by the embodiment of the application, aiming at the situation that a large number of repeated and invalid data packets exist when the terminal equipment is in the data packet blocking state, the repeated operation is carried out on the data packets, so that the retransmission of the repeated and invalid data packets is reduced, the number of the data packets needing to be transmitted is reduced, and the blocking of the data packets of the terminal equipment is reduced.

Description

Data processing method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a data processing method and device.
Background
Data transmission is often required between a base station and a terminal, wherein the transmission of uplink data from the terminal to the base station is performed based on uplink scheduling resources allocated by the base station for the terminal.
When the terminal equipment is in a low-field environment, for example, in an edge area covered by a base station or a crowd-intensive area, the uplink scheduling resources allocated to the terminal by the base station are smaller due to signal difference and the like, the data packets sent by the terminal are smaller each time, and the rest data packets need to wait for the next uplink scheduling resources allocated by the base station. In the current scheme, when the terminal does not receive the information of successful data packet transmission, the terminal still continuously retransmits the data packet, so that the data packet is added into a waiting transmission queue for waiting transmission, and a large number of data packets waiting for transmission are accumulated in the waiting transmission queue of the terminal. Under the condition that the uplink scheduling resource of the terminal is small, the data packet blocking can be caused, and each data packet can not be uploaded to the base station in time.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, which are used for solving the problem that each data packet cannot be uploaded in time due to the fact that the data packet is blocked greatly by terminal equipment.
In a first aspect, an embodiment of the present application provides a data processing method, which is applied to a terminal device, including:
determining repeated data packets in a plurality of data packets of a first queue to be transmitted when the terminal equipment is in a data packet blocking state;
and performing de-duplication operation on the plurality of data packets according to the repeated data packets to obtain a second queue to be transmitted, wherein any two data packets in the second queue to be transmitted are different.
In one possible implementation manner, the data packet is a transmission control/network protocol TCP/IP data packet, and the repeated data packet is a TCP/IP data packet with the same packet header key information.
In a possible implementation manner, the second queue to be transmitted includes at least one TCP/IP protocol data packet, and the transmission priority of the at least one TCP/IP protocol data packet in the second queue to be transmitted is higher than that of other TCP/IP data packets except for the at least one TCP/IP protocol data packet in the second queue to be transmitted.
In one possible implementation manner, the packet header key information includes:
IP version, source IP address, destination IP address, source port number, destination port number, TCP SEQ value, packet header length, and data length.
In one possible implementation manner, the packet blocking state is that the length of the first queue to be transmitted is greater than or equal to a preset length.
In one possible embodiment, the method further comprises:
acquiring uplink scheduling resources according to a preset time interval;
if the uplink scheduling resource values obtained for M consecutive times are all smaller than or equal to the preset value, judging whether the terminal equipment is in a data packet blocking state according to the length of the first queue to be transmitted, wherein M is an integer greater than 1.
In one possible embodiment, the method further comprises:
and sending the data packet in the second queue to be transmitted to network equipment.
In a second aspect, an embodiment of the present application provides a data processing apparatus, including:
a determining module, configured to determine, when the terminal device is in a packet blocking state, a repeated packet among a plurality of packets in a first queue to be transmitted;
and the processing module is used for carrying out de-duplication operation on the data packets according to the repeated data packets to obtain a second queue to be transmitted, and any two data packets in the second queue to be transmitted are different.
In one possible implementation manner, the data packet is a transmission control protocol/network protocol TCP/IP data packet, and the repeated data packet is a TCP/IP data packet with the same packet header key information.
In a possible implementation manner, the second queue to be transmitted includes at least one TCP/IP protocol data packet, and the transmission priority of the at least one TCP/IP protocol data packet in the second queue to be transmitted is higher than that of other TCP/IP data packets except for the at least one TCP/IP protocol data packet in the second queue to be transmitted.
In one possible implementation manner, the packet header key information includes:
IP version, source IP address, destination IP address, source port number, destination port number, TCP SEQ value, packet header length, and data length.
In one possible implementation manner, the packet blocking state is that the length of the first queue to be transmitted is greater than or equal to a preset length.
In one possible implementation, the determining module is further configured to:
acquiring uplink scheduling resources according to a preset time interval;
if the uplink scheduling resource values obtained for M consecutive times are all smaller than or equal to the preset value, judging whether the terminal equipment is in a data packet blocking state according to the length of the first queue to be transmitted, wherein M is an integer greater than 1.
In one possible embodiment, the processing module is further configured to:
and sending the data packet in the second queue to be transmitted to network equipment.
In a third aspect, an embodiment of the present application provides a data processing apparatus, including:
a memory for storing a program;
a processor for executing the program stored in the memory, the processor being for executing the data processing method according to any one of the first aspects when the program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the data processing method according to any one of the first aspects.
The data processing method and the data processing device are applied to the terminal equipment, when the terminal equipment is in a data packet blocking state, repeated data packets are determined in a plurality of data packets of a first queue to be transmitted, then a deduplication operation is performed on the plurality of data packets according to the repeated data packets, a second queue to be transmitted is obtained, and any two data packets in the second queue to be transmitted are different. According to the scheme provided by the embodiment of the application, aiming at the situation that a large number of repeated and invalid data packets exist when the terminal equipment is in the data packet blocking state, the repeated operation is carried out on the data packets, so that the retransmission of the repeated and invalid data packets is reduced, the number of the data packets needing to be transmitted is reduced, and the blocking of the data packets of the terminal equipment is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a first queue to be transmitted according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of determining a state of a terminal device according to an embodiment of the present application;
fig. 5 is a schematic diagram of packet deduplication according to an embodiment of the present application;
fig. 6 is a schematic diagram of packet prioritization according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of a data processing device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
For ease of understanding, first, concepts related to the present application will be described.
Terminal equipment: is a device with wireless receiving and transmitting function. The terminal device may be deployed on land, including indoors or outdoors, hand-held, wearable or vehicle-mounted; can also be deployed on the water surface (such as ships, etc.); but may also be deployed in the air (e.g., on aircraft, balloon, satellite, etc.).
The terminal device may be a mobile phone (mobile phone), a tablet (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a vehicle-mounted terminal device, a wireless terminal in unmanned driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city, a wireless terminal in smart home (smart home), a wearable terminal device, or the like.
The terminal device according to the embodiments of the present application may also be referred to as a terminal, a User Equipment (UE), an access terminal device, a vehicle terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a remote terminal device, a mobile device, a UE terminal device, a wireless communication device, a UE agent, or a UE apparatus, etc. The terminal device may also be fixed or mobile.
Network equipment: is an aerial deployed device with wireless transceiver functions. The network device may have a mobile nature, i.e. the network device may be a mobile device. Alternatively, the network device may be a satellite, a balloon station.
For example, the satellite may be a Low Earth Orbit (LEO) satellite, a medium earth orbit (medium earth orbit, MEO) satellite, a geosynchronous orbit (geostationary earth orbit, GEO) satellite, a high elliptical orbit (High Elliptical Orbit, HEO) satellite, or the like.
For example, LEO satellites typically have an orbital altitude ranging from 500km to 1500km, and an orbital period (period of rotation around the earth) ranging from about 1.5 hours to 2 hours. The signal propagation delay of the single-hop communication between users is about 20ms, and the single-hop communication delay between users refers to the transmission delay between terminal equipment and network equipment or the delay between network equipment and transmission equipment. The maximum satellite visibility time, which is the maximum time that the satellite beam covers a certain area of the ground, is about 20 minutes, and the LEO satellite is moving relative to the ground, and the area of the ground that it covers varies as the satellite moves. The LEO satellite has short signal propagation distance, less link loss and low requirement on the transmitting power of terminal equipment. The orbit height of GEO satellites is typically 35786km with an orbit period of 24 hours. The signal propagation delay for single hop communication between users is about 250ms. To ensure coverage of the satellites and to increase the system capacity of the communication network, the satellites may cover the ground with multiple beams, for example, one satellite may form tens or hundreds of beams to cover the ground, and one beam may cover a ground area with a diameter of tens to hundreds of kilometers.
TCP/IP protocol: transmission Control Protocol/Internet Protocol, transmission control protocol/internet protocol, also known as network communication protocol, is a basic and well-established and stable communication protocol.
Next, a scenario to which the data processing method in the present application is applied will be described with reference to fig. 1.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application. Referring to fig. 1, the network device 101 and the terminal device 102 are included, and wireless communication is possible between the network device 101 and the terminal device 102.
When the terminal device 102 needs to transmit an uplink data packet to the network device 101, the network device 101 needs to allocate uplink scheduling resources to the terminal device 102 first, and then the terminal device 102 performs transmission of the data packet according to the uplink scheduling resources allocated by the network device 101.
When the terminal device 102 is in a low-field environment, for example, in an edge region of a coverage area of the network device 101, or in a dense-personnel region, uplink scheduling resources allocated to the terminal device 102 by the network device 101 are very limited due to a signal difference or the like, so that the transmission capability of the terminal device 102 is limited.
At this time, the terminal device 102 performs the transmission of the fragmented data packet according to the limited resources of the uplink scheduling resources of the network device 101, and each time the fragmented data packet sent by the terminal device 102 is smaller, the remaining data packet needs to wait for the next allocation of the uplink scheduling resources by the network device 101.
Fig. 1 illustrates an applicable application scenario of the data processing method provided in the present application, and a scheme of the present application is described in detail below with reference to the accompanying drawings.
Fig. 2 is a flow chart of a data processing method according to an embodiment of the present application, as shown in fig. 2, the method may include:
s21, when the terminal equipment is in a data packet blocking state, determining repeated data packets in a plurality of data packets of a first queue to be transmitted.
The execution main body in the embodiment of the application is a terminal device, and the related devices comprise the terminal device and a network device. Taking a network device as an example of a base station, the base station has a certain coverage area, and terminal devices in the coverage area can communicate with the base station.
When the terminal equipment needs to transmit uplink data to the base station, the base station is required to allocate uplink scheduling resources for the terminal equipment. When the terminal device is in a low-field environment, for example, at the edge of the coverage area of the base station, or in a crowd-sourced area, the uplink resources allocated to the terminal device by the base station are very limited.
On the premise that uplink resources allocated to the terminal device by the base station are very limited, the terminal device needs to send fragmented data packets, for example, one large data packet is split into a plurality of small data packets to be sent respectively. When a certain data packet is transmitted, other data packets need to wait for the next time the base station allocates uplink scheduling resources. When the terminal equipment transmits the data packet successfully, the terminal equipment can receive the confirmation information, and when the terminal equipment fails to transmit the data packet, the terminal equipment cannot receive the confirmation information. At this time, the data is retransmitted inside the terminal device, and the data packet is continuously added into the queue to be transmitted, so that the terminal device forms a data packet blocking state.
The data packet blocking state of the terminal equipment is caused to a certain extent by the fact that uplink scheduling resources allocated to the terminal equipment by the base station are very limited, and the limited uplink scheduling resources can lead to a large number of repeated data packets to be added into a queue to be transmitted of the terminal equipment, so that the data packet blocking of the terminal equipment is aggravated.
Therefore, in order to alleviate such a situation, in the embodiment of the present application, when the terminal device is in a packet blocking state, first, duplicate packets are determined among a plurality of packets in a first to-be-transmitted queue, where the first to-be-transmitted queue is a transmission queue formed by packets to be transmitted in the current terminal device, and each packet in the first to-be-transmitted queue may be sequentially arranged by adding the packets in the first to-be-transmitted queue.
When the terminal device is in a data packet blocking state, a plurality of repeated data packets exist in a first to-be-transmitted queue, and the repeated data packets in the first to-be-transmitted queue may be due to newly added data packets after the previous terminal device fails to transmit a certain data packet, wherein the newly added data packets are identical to the data packets which fail to be transmitted before. This mechanism is to successfully transmit the data packet to the base station by repeating the transmission, but in the case where the uplink scheduling resources are very limited, it causes the data packet to be blocked.
S22, performing de-duplication operation on the data packets according to the repeated data packets to obtain a second queue to be transmitted, wherein any two data packets in the second queue to be transmitted are different.
And after determining the repeated data packets in the first queue to be transmitted, performing a deduplication operation on the plurality of data packets. For example, assuming that the first to-be-transmitted queue includes 4 data packets a, only 1 data packet a may be reserved after the deduplication operation is performed. Assuming that the first queue to be transmitted includes 5 data packets B and 8 data packets C, only 1 data packet B and 1 data packet C may be reserved after the de-duplication operation is performed. That is, if there are a plurality of data packets that overlap with each other, only one of the plurality of repeated data packets remains, and the other repeated data packets can be removed.
And obtaining a second queue to be transmitted through the retransmission operation, wherein any two data packets in the second queue to be transmitted are different. Through the processing, a large number of repeated and invalid data packets in the first queue to be transmitted are removed, and finally the terminal equipment can transmit the data packets according to the data packets in the second queue to be transmitted.
The data processing method provided by the embodiment of the invention is applied to the terminal equipment, when the terminal equipment is in a data packet blocking state, repeated data packets are determined in a plurality of data packets of a first queue to be transmitted, then the repeated data packets are subjected to de-duplication operation according to the repeated data packets, a second queue to be transmitted is obtained, and any two data packets in the second queue to be transmitted are different. According to the scheme provided by the embodiment of the application, aiming at the situation that a large number of repeated and invalid data packets exist when the terminal equipment is in the data packet blocking state, the repeated operation is carried out on the data packets, so that the retransmission of the repeated and invalid data packets is reduced, the number of the data packets needing to be transmitted is reduced, and the blocking of the data packets of the terminal equipment is reduced.
The following describes the embodiments of the present application in detail with reference to the accompanying drawings.
In a weak field environment, due to reasons such as signal difference, uplink scheduling resources allocated by the network device to the terminal device are smaller, but in the process of sending a message to the core network through the terminal device, the TCP/IP mechanism does not know that the sending capability of the terminal device is limited and stops sending the message, and instead, the terminal device retransmits the data packet under the condition that no confirmation information is received, so that the terminal device stacks a large number of data packets to be transmitted, and effective message transmission is blocked. The reason for the above problem is that the TCP/IP protocol stack is not synchronized with the (LTE) protocol stack.
If the message mechanism is added to synchronize the TCP/IP protocol stack with the (LTE) protocol stack, the maturity and stability of the TCP/IP protocol stack are destroyed, and the timers of the TCP/IP protocol stack are numerous and complex, and the cost of modification and maintenance is high, the embodiment of the application provides a scheme to reduce invalid retransmission data packets without synchronizing the TCP/IP protocol stack with the (LTE) protocol stack, thereby avoiding blocking of valid messages.
Fig. 3 is a schematic diagram of a first to-be-transmitted queue according to an embodiment of the present application, as shown in fig. 3, in the first to-be-transmitted queue 30, a plurality of data packets are included, and the data packets are all TCP/IP data packets.
The TCP/IP packets in the first to-be-transmitted queue 30 are sequentially arranged according to the time sequence of entering the first to-be-transmitted queue 30. For example, in fig. 3, the TCP/IP packet arranged at the front is packet a, and when the base station allocates uplink scheduling resources to the terminal device, packet a in the first to-be-transmitted queue 30 is transmitted first.
As described above, when the terminal device is in the packet blocking state, a deduplication operation needs to be performed on the packets in the first queue to be transmitted. Before this, it is first determined whether the terminal device is in a packet blocking state.
Optionally, when the length of the first queue to be transmitted is greater than or equal to the preset length, the terminal device may be considered to be in a packet blocking state. In this embodiment, the length of the first to-be-transmitted queue refers to the number of bytes of the data packet included in the first to-be-transmitted queue, and each data packet needs to occupy a certain number of bytes, where the occupied number of bytes together form the length of the first to-be-transmitted queue.
Based on this, it can be determined whether the terminal device is in the packet blocking state according to the length of the first to-be-transmitted queue.
Fig. 4 is a schematic flow chart of determining a state of a terminal device according to an embodiment of the present application, as shown in fig. 4, including:
s41, obtaining uplink scheduling resources according to a preset time interval.
Specifically, a lower layer (MAC layer) of an (LTE) protocol stack of the terminal device obtains uplink scheduling resources allocated to the terminal device by the network device according to a certain time interval, and the time interval can be adjusted according to actual needs.
S42, judging whether the uplink scheduling resource values acquired for M times continuously are smaller than or equal to a preset value, if yes, executing S43, and if not, executing S45.
And when the lower layer (MAC Layer) of The (LTE) protocol stack of the terminal equipment detects that the uplink scheduling resource values acquired for M times continuously are smaller than or equal to the preset value, judging the blocking state of the data packet.
S43, judging whether the length of the first queue to be transmitted is larger than or equal to the preset length, if yes, executing S44, otherwise, executing S45.
S44, determining that the terminal equipment is in a data packet blocking state.
When the length of the first queue to be transmitted is greater than or equal to the preset length, the terminal equipment can be considered to be in a data packet blocking state, and at the moment, the lower layer (MAC Layer) of The (LTE) protocol stack can inform the higher Layer of The (LTE) protocol stack that the terminal equipment is in the data packet blocking state, so that certain measures need to be taken.
S45, determining that the terminal equipment is not in a data packet blocking state.
If the uplink scheduling resource values acquired for M times are not less than or equal to the preset value, or the length of the first queue to be transmitted is less than the preset length, the terminal equipment is not in the data packet blocking state. If the terminal device is not in the data packet blocking state, the corresponding processing may not be performed. Wherein M is a positive integer greater than 1, M is a constant, and the size of M can be adjusted according to actual needs.
In the above embodiment, it is described how to determine that the terminal device is in the packet blocking state. The de-duplication process of the packet will be described with reference to fig. 5.
Fig. 5 is a schematic diagram of packet de-duplication according to an embodiment of the present application, as shown in fig. 5, a plurality of packets are included in a first to-be-transmitted queue 50, and the plurality of packets are all TCP/IP packets.
The TCP/IP data packets comprise packet header information, and the TCP/IP data packets with the same packet header key information are the same TCP/IP data packets. Therefore, the traversal check can be performed according to the header information in the TCP/IP data packet issued by the TCP/IP protocol stack. Two TCP/IP data packets are considered to be identical TCP/IP data packets if their header key information is identical. Wherein, the packet header information refers to IP packet header information and TCP packet header information.
The key information of the packet header comprises:
IP version, source IP address, destination IP address, source port number, destination port number, TCP sequence number SEQ value, packet header length and data length.
For example, in fig. 5, if the header key information of the data packet 51 and the data packet 54 are the same, it is determined that the data packet 51 and the data packet 54 are duplicate data packets. Similarly, if the packet header key information of the packet 52, the packet 53, and the packet 55 is the same, it is determined that the packet 52, the packet 53, and the packet 55 are also duplicate packets.
After determining the repeated data packets, the data packets in the first queue to be transmitted can be subjected to a de-duplication operation according to the repeated data packets, and only one of the repeated data packets is reserved for each type of the repeated data packets. For example, in fig. 5, the data packet 51 and the data packet 54 are duplicate data packets, and only the data packet 51 may be retained and the data packet 54 may be removed, or only the data packet 54 may be retained and the data packet 51 may be removed. The data packet 52, the data packet 53, and the data packet 55 are repeated data packets, and only the data packet 52 may be retained while the data packet 53 and the data packet 55 may be removed, only the data packet 53 may be retained while the data packet 52 and the data packet 55 may be removed, only the data packet 55 may be retained while the data packet 52 and the data packet 53 may be removed, and so on.
After the deduplication operation, a second queue to be transmitted is obtained, as shown in fig. 5, where the second queue to be transmitted includes a data packet 51 and a data packet 52, and header information of the data packet 51 and header information of the data packet 52 are different, and are different data packets.
In the first queue to be transmitted, a plurality of TCP/IP data packets are included, and the TCP/IP data packets may include common TCP/IP data packets and may also include TCP/IP protocol data packets, where the TCP/IP protocol data packets have higher priority than the common TCP/IP data packets and need to be sent to the base station in time. For example, when a TCP connection needs to be established, a process of three handshakes and four waving is required to be performed, so that the TCP connection is established, and data can be transmitted after the TCP connection is established. Whereas TCP/IP protocol packets establishing a TCP connection cannot be blocked from being sent after ordinary TCP/IP packets.
In the above embodiment, the de-duplication operation is performed on the plurality of data packets included in the first queue to be transmitted, but under the condition of poor signals, the uplink scheduling resources allocated to the terminal device by the base station are still very limited, so that if the plurality of data packets to be transmitted are included after the de-duplication operation, the problem that the data packets to be transmitted later still may not be transmitted in time still exists.
In order to ensure timely transmission of the effective message, in the embodiment of the application, the data packets after the deduplication operation are rearranged in priority.
Fig. 6 is a schematic diagram of packet prioritization according to the embodiment of the present application, as shown in fig. 6, after performing the de-duplication operation of the packets on the basis of fig. 5, two remaining packets are respectively a packet 51 and a packet 52.
Before the rearrangement of the packet priority is not performed, the packet 51 enters the transmission queue before the packet 52, so that the transmission of the packet 51 should be performed first and then the transmission of the packet 52 should be performed according to the time sequence.
The embodiment of the application provides a scheme, and when traversing the header information of the data packets and performing the deduplication operation, the type of each data packet is obtained, wherein the type of the data packet comprises a common TCP/IP data packet and a TCP/IP protocol data packet.
If the transmission queue further comprises a TCP/IP protocol data packet after the deduplication operation, the TCP/IP protocol data packet is inserted forward and arranged in front of the common TCP/IP data packet, so that the transmission priority of the TCP/IP protocol data packet in the second transmission queue is higher than that of the common TCP/IP data packet.
For example, in fig. 6, if the data packet 51 is a normal TCP/IP data packet and the data packet 52 is a TCP/IP protocol data packet, then a pre-insertion operation is required for the data packet 52, and the data packet 52 is set in front of the data packet 51, so that the data packet 52 has a higher transmission priority than the data packet 51, as shown by the second waiting queue 60 in fig. 6.
Through the processing, the transmission of a large number of repeated data packets can be removed, and meanwhile, the TCP/IP protocol data packets comprising the effective messages can be transmitted preferentially, so that the TCP/IP protocol data packets comprising the effective messages are prevented from being blocked, and the TCP/IP protocol data packets comprising the effective messages can be transmitted to the base station in time.
And after performing the de-duplication operation and the front insertion of the TCP/IP protocol data packet, obtaining a second queue to be transmitted. Optionally, after the data packet in the second queue to be transmitted is encrypted, the data packet in the second queue to be transmitted may be sent to the network device.
The data processing method provided by the embodiment of the invention is applied to the terminal equipment, when the terminal equipment is in a data packet blocking state, repeated data packets are determined in a plurality of data packets of a first queue to be transmitted, then the repeated data packets are subjected to de-duplication operation according to the repeated data packets, a second queue to be transmitted is obtained, and any two data packets in the second queue to be transmitted are different. According to the scheme provided by the embodiment of the application, aiming at the situation that a large number of repeated and invalid data packets exist when the terminal equipment is in the data packet blocking state, the repeated operation is carried out on the data packets, so that the retransmission of the repeated and invalid data packets is reduced, the number of the data packets needing to be transmitted is reduced, and the blocking of the data packets of the terminal equipment is reduced. Meanwhile, the forward inserting operation is also carried out on the TCP/IP data packet comprising the effective message, and the transmission priority of the TCP/IP data packet is set to be higher than that of other common TCP/IP data packets, so that the TCP/IP data packet comprising the effective message is further ensured not to be blocked, and can be timely and effectively transmitted to the network equipment. According to the scheme of the embodiment of the application, a TCP/IP protocol stack does not need to be added into a message mechanism of an (LTE) protocol stack, so that the maturity and the stability of the TCP/IP protocol stack are maintained.
Fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, as shown in fig. 7, including a determining module 71 and a processing module 72, where:
the determining module 71 is configured to determine, when the terminal device is in a packet blocking state, a repeated packet among a plurality of packets in a first queue to be transmitted;
the processing module 72 is configured to perform a deduplication operation on the multiple data packets according to the repeated data packets, so as to obtain a second queue to be transmitted, where any two data packets in the second queue to be transmitted are different.
In one possible implementation manner, the data packet is a transmission control protocol/network protocol TCP/IP data packet, and the repeated data packet is a TCP/IP data packet with the same packet header key information.
In a possible implementation manner, the second queue to be transmitted includes at least one TCP/IP protocol data packet, and the transmission priority of the at least one TCP/IP protocol data packet in the second queue to be transmitted is higher than that of other TCP/IP data packets except for the at least one TCP/IP protocol data packet in the second queue to be transmitted.
In one possible implementation manner, the packet header key information includes:
IP version, source IP address, destination IP address, source port number, destination port number, TCP SEQ value, packet header length, and data length.
In one possible implementation manner, the packet blocking state is that the length of the first queue to be transmitted is greater than or equal to a preset length.
In a possible implementation, the determining module 71 is further configured to:
acquiring uplink scheduling resources according to a preset time interval;
if the uplink scheduling resource values obtained for M consecutive times are all smaller than or equal to the preset value, judging whether the terminal equipment is in a data packet blocking state according to the length of the first queue to be transmitted, wherein M is an integer greater than 1.
In one possible implementation, the processing module 72 is further configured to:
and sending the data packet in the second queue to be transmitted to network equipment.
The device provided in the embodiment of the present application may be used to execute the technical solution of the embodiment of the method, and its implementation principle and technical effects are similar, and are not repeated here.
Fig. 8 is a schematic hardware structure of a data processing device according to an embodiment of the present application, as shown in fig. 8, where the data processing device includes: at least one processor 81 and a memory 82. Wherein the processor 81 and the memory 82 are connected by a bus 83.
Optionally, the model determination further comprises a communication component. For example, the communication component may include a receiver and/or a transmitter.
In a specific implementation, at least one processor 81 executes computer-executable instructions stored in the memory 82, so that the at least one processor 81 performs the data processing method as described above.
The specific implementation process of the processor 81 can be referred to the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 8, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The present application also provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement the data processing method as described above.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
The division of the units is merely a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A data processing method, applied to a terminal device, comprising:
determining repeated data packets in a plurality of data packets of a first queue to be transmitted when the terminal equipment is in a data packet blocking state;
performing de-duplication operation on the multiple data packets according to the repeated data packets to obtain a second queue to be transmitted, wherein any two data packets in the second queue to be transmitted are different;
transmitting the data packet in the second queue to be transmitted to network equipment;
the data packet is a transmission control/network protocol (TCP/IP) data packet, and the repeated data packet is a TCP/IP data packet with the same key information of the packet header;
the second queue to be transmitted comprises at least one TCP/IP protocol data packet, and the sending priority of the at least one TCP/IP protocol data packet in the second queue to be transmitted is higher than that of other TCP/IP data packets except the at least one TCP/IP protocol data packet in the second queue to be transmitted.
2. The method of claim 1, wherein the header key information comprises:
IP version, source IP address, destination IP address, source port number, destination port number, TCP sequence number SEQ value, packet header length and data length.
3. The method according to any of claims 1-2, wherein the packet blocking state is that the length of the first queue to be transmitted is greater than or equal to a preset length.
4. A method according to claim 3, characterized in that the method further comprises:
acquiring uplink scheduling resources according to a preset time interval;
if the uplink scheduling resource values obtained for M consecutive times are all smaller than or equal to the preset value, judging whether the terminal equipment is in a data packet blocking state according to the length of the first queue to be transmitted, wherein M is an integer greater than 1.
5. A data processing apparatus, comprising:
a determining module, configured to determine, when the terminal device is in a packet blocking state, a repeated packet among a plurality of packets in a first queue to be transmitted;
the processing module is used for carrying out de-duplication operation on the plurality of data packets according to the repeated data packets to obtain a second queue to be transmitted, and any two data packets in the second queue to be transmitted are different;
the processing module is further configured to:
transmitting the data packet in the second queue to be transmitted to network equipment;
the data packet is a transmission control/network protocol (TCP/IP) data packet, and the repeated data packet is a TCP/IP data packet with the same key information of the packet header;
the second queue to be transmitted comprises at least one TCP/IP protocol data packet, and the sending priority of the at least one TCP/IP protocol data packet in the second queue to be transmitted is higher than that of other TCP/IP data packets except the at least one TCP/IP protocol data packet in the second queue to be transmitted.
6. The apparatus of claim 5, wherein the header key information comprises:
IP version, source IP address, destination IP address, source port number, destination port number, TCP SEQ value, packet header length, and data length.
7. The apparatus according to any one of claims 5-6, wherein the packet blocking state is that a length of the first queue to be transmitted is greater than or equal to a preset length.
8. The apparatus of claim 7, wherein the means for determining is further for:
acquiring uplink scheduling resources according to a preset time interval;
if the uplink scheduling resource values obtained for M consecutive times are all smaller than or equal to the preset value, judging whether the terminal equipment is in a data packet blocking state according to the length of the first queue to be transmitted, wherein M is an integer greater than 1.
9. A data processing apparatus, comprising:
a memory for storing a program;
a processor for executing the program stored in the memory, the processor being for executing the data processing method according to any one of claims 1 to 4 when the program is executed.
10. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the data processing method of any of claims 1 to 4.
CN202010302059.1A 2020-04-16 2020-04-16 Data processing method and device Active CN111479293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010302059.1A CN111479293B (en) 2020-04-16 2020-04-16 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010302059.1A CN111479293B (en) 2020-04-16 2020-04-16 Data processing method and device

Publications (2)

Publication Number Publication Date
CN111479293A CN111479293A (en) 2020-07-31
CN111479293B true CN111479293B (en) 2023-07-25

Family

ID=71755395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010302059.1A Active CN111479293B (en) 2020-04-16 2020-04-16 Data processing method and device

Country Status (1)

Country Link
CN (1) CN111479293B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230239881A1 (en) * 2022-01-25 2023-07-27 Qualcomm Incorporated Lower analog media access control (mac-a) layer and physical layer (phy-a) functions for analog transmission protocol stack

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754760A (en) * 2013-12-27 2015-07-01 重庆重邮信科通信技术有限公司 Packet service reconstruction method and terminal

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7573827B2 (en) * 2003-05-06 2009-08-11 Hewlett-Packard Development Company, L.P. Method and apparatus for detecting network congestion
US7649841B2 (en) * 2006-03-13 2010-01-19 Microsoft Corporation Competitive and considerate congestion control
CN102082674B (en) * 2009-12-01 2013-11-06 中兴通讯股份有限公司 Simulation method and simulation system for data channel
US8340039B2 (en) * 2010-05-04 2012-12-25 International Business Machines Corporation Deduplicated data processing congestion control
US20130170342A1 (en) * 2011-02-03 2013-07-04 King Saud University Data communication systems and methods
CN102521269B (en) * 2011-11-22 2013-06-19 清华大学 Index-based computer continuous data protection method
WO2017075832A1 (en) * 2015-11-06 2017-05-11 华为技术有限公司 Method and device for transmitting downlink data packet and uplink data packet
CN110798860B (en) * 2018-08-01 2023-06-20 华为技术有限公司 Data processing method, device and system
CN110167084B (en) * 2018-08-15 2021-07-27 腾讯科技(深圳)有限公司 Multi-channel data transmission method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754760A (en) * 2013-12-27 2015-07-01 重庆重邮信科通信技术有限公司 Packet service reconstruction method and terminal

Also Published As

Publication number Publication date
CN111479293A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
JP4951766B2 (en) ACARS message transmission method via IP network
CN111224707B (en) Satellite, terminal device, satellite communication system, and satellite communication method
US8228911B2 (en) Enhanced data link communication over iridium
CN105388487B (en) A kind of method that utilization Big Dipper short message differential signal transmission realizes positioning
GB2349302A (en) Protocol segments large message data for transmission using short message service (SMS)
US8755284B2 (en) Method and apparatus for requesting bandwidth in a wireless communication system
CN111479293B (en) Data processing method and device
CN111050381B (en) Data transmission method and device
CN112615662B (en) Data transmission method of MAC layer of low-earth-orbit satellite
US11316582B1 (en) Prospective uplink grant for satellite communications
CN105959085B (en) Short wave communication transmitted in both directions mode based on fountain codes
CN113647040A (en) Data transmission method, device and system
US20230254794A1 (en) Method for transmitting uplink signal by terminal in wireless communication system, and apparatus therefor
CN114629580A (en) Low-orbit satellite link simulation method and device and electronic equipment
CN114390558B (en) Configuration information acquisition method and device
Kusza et al. Intersatellite links: Lower layer protocols for autonomous constellations
CN114157340A (en) Data transmission method and device, ground terminal and satellite
CN115843463A (en) Method, apparatus, device and medium for determining random access response receiving window
WO2020221963A1 (en) Harq with (quasi) feedback-less retransmissions and transport block combination
EP4271062A1 (en) Timer starting method and apparatus, and terminal and storage medium
WO2022027179A1 (en) Data processing method and apparatus, and device and storage medium
EP4318994A1 (en) Communication device, communication method, and communication system
CN116325815A (en) GNSS validity period sending method, device, equipment and medium
US20230389126A1 (en) Pdcch monitoring method and drx uplink retransmission timer control method
CN114788205B (en) Communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant