Movatterモバイル変換


[0]ホーム

URL:


CN113556580A - Data transmission method and device - Google Patents

Data transmission method and device
Download PDF

Info

Publication number
CN113556580A
CN113556580ACN202110687156.1ACN202110687156ACN113556580ACN 113556580 ACN113556580 ACN 113556580ACN 202110687156 ACN202110687156 ACN 202110687156ACN 113556580 ACN113556580 ACN 113556580A
Authority
CN
China
Prior art keywords
data
data packet
characteristic value
mapping table
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110687156.1A
Other languages
Chinese (zh)
Inventor
杨璐
范志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co LtdfiledCriticalXian Wanxiang Electronics Technology Co Ltd
Priority to CN202110687156.1ApriorityCriticalpatent/CN113556580A/en
Publication of CN113556580ApublicationCriticalpatent/CN113556580A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The data transmission method and device provided by the embodiment of the disclosure relate to the technical field of data transmission, and can solve the problems that the code stream reduction is strongly related to the service and the application range is very limited in the prior art. The specific technical scheme is as follows: receiving data and determining the type of the data; when the data is the characteristic value and the next node is the data receiving equipment, searching the corresponding data packet in the data stored in the data relay equipment according to the characteristic value and the mapping table and transmitting the data packet to the data receiving equipment; wherein, the mapping table stores the one-to-one mapping relationship between the characteristic value and the data packet.

Description

Data transmission method and device
The application is a divisional application of Chinese patent with application number CN 201910494775.1 and application name "data transmission method and device" filed by the Chinese patent office on 2019, 06, 10.
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a data transmission method and apparatus.
Background
With the rapid development of internet technology, the digital information age has deepened into various aspects of people's life, and the networked transmission of images is more and more common in internet application. The transmission bandwidth of the wide area network is mostly limited, so that it is necessary to reduce the code stream as much as possible for transmission.
At present, the method for reducing the code stream is mainly implemented by processing the image data in a corresponding processing mode according to the characteristics of an application layer from which the image data is sourced, for example, reducing the code stream in a video presentation application scene by using an applicable high-compression-rate image processing method. The prior art scheme has the following problems: the code stream can be reduced only by adopting a corresponding processing mode for the service data in part of application scenes, the reduced code stream is strongly related to the service, and the application range is very limited.
Disclosure of Invention
The embodiment of the disclosure provides a data transmission method and device, which can solve the problems that the reduction of code stream is strongly related to service and the application range is very limited in the prior art. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a data relay device, the method including:
receiving data and determining the type of the data;
when the data is the characteristic value and the next node is the data receiving equipment, searching the corresponding data packet in the data stored in the data relay equipment according to the characteristic value and the mapping table and transmitting the data packet to the data receiving equipment; wherein, the mapping table stores the one-to-one mapping relationship between the characteristic value and the data packet.
In one embodiment, the method further comprises:
when the data is the characteristic value and the next node is another data relay apparatus, the characteristic value is transmitted to the other data relay apparatus.
In one embodiment, the method further comprises:
when the data is a data packet, calculating a characteristic value of the data packet;
inquiring whether the characteristic value of the data packet exists in a mapping table;
and if the characteristic value of the data packet exists and the next node is another data relay device, transmitting the characteristic value to the other data relay device.
If a data packet is transmitted to a receiving end through a transmission path for the first time by a sending end, each data relay device in the transmission path performs the processes of calculating a characteristic value and inquiring a mapping table to find that the characteristic value does not exist and then storing the characteristic value and the data packet, so that the result is that after the data packet is transmitted to the receiving end from the sending end, the characteristic value is stored in the mapping table of all the data relay devices and the data packet is stored in all the data relay devices, and each subsequent data relay device only needs to transmit the characteristic value without transmitting the data packet when transmitting the data packet again, thereby reducing the code stream.
In one embodiment, the method further comprises:
if the characteristic value of the data packet exists and the next node is the data receiving equipment, the corresponding data packet is searched in the data stored in the data relay equipment according to the characteristic value of the data packet and the mapping table and is transmitted to the data receiving equipment.
When the characteristic value of the data packet exists in the mapping table of the data relay device, the fact that the corresponding data packet is stored before is indicated, and when the next node is the data receiving device, the corresponding data packet is found from the stored data according to the characteristic value and is transmitted to the data receiving device.
In one embodiment, the method further comprises:
if the characteristic value of the data packet does not exist, judging whether the quantity of the characteristic values stored in the mapping table reaches a preset threshold value or not;
and if the characteristic value does not reach the preset threshold value, the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment, and then the data packet is transmitted to the next node.
And when the characteristic value of the data packet does not exist in the mapping table of the data relay equipment, the data packet is received for the first time, the characteristic value is added into the mapping table for updating and storing the data packet, and then the data packet is transmitted to the next node.
In one embodiment, the method further comprises:
if the characteristic value reaches the preset threshold value, deleting the characteristic value stored in the mapping table at the earliest time and the data packet corresponding to the characteristic value stored in the data relay equipment at the earliest time;
and after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment, transmitting the data packet to the next node.
The mapping table and the data packets stored by the data relay device are updated within the range of a preset threshold by deleting a characteristic value and a corresponding data packet with the earliest storage time, wherein the preset threshold is used for controlling the number of the data packets stored reasonably by the data relay device, the setting of the preset threshold is related to time, the number of the data packets stored by the data relay device within the time t can be n, and the number of the data packets n is the preset threshold.
According to a second aspect of the embodiments of the present disclosure, there is provided a data transmission method applied to a data relay apparatus, the method including:
receiving data and determining the type of the data;
when the data is the characteristic value and the next node is the data receiving equipment, searching the corresponding data packet in the data stored in the data relay equipment according to the characteristic value and the mapping table and transmitting the data packet to the data receiving equipment; wherein, the mapping table stores the one-to-one mapping relation between the characteristic value and the data packet;
when the data is the characteristic value and the next node is another data relay apparatus, the characteristic value is transmitted to the other data relay apparatus.
When the characteristic value of a data packet exists in the mapping table of each data relay device, each data relay device also stores the data packet, so that when the data packet is transmitted again, only the characteristic value corresponding to the data packet needs to be transmitted between each data relay device, and a data relay device in front of a data receiving device finds the data packet according to the characteristic value and the mapping table and then sends the data packet to the data receiving device, thereby realizing the reduction of the code stream in the transmission process without depending on a service scene, and solving the problems that the reduction of the code stream in the prior art is strongly related to the service and the application range is very limited.
In one embodiment, the method further comprises:
when the data is a data packet, calculating a characteristic value of the data packet;
inquiring whether the characteristic value of the data packet exists in a mapping table;
and if the characteristic value of the data packet exists and the next node is another data relay device, transmitting the characteristic value to the other data relay device.
If a data packet is transmitted to a receiving end through a transmission path for the first time by a sending end, each data relay device in the transmission path performs the processes of calculating a characteristic value and inquiring a mapping table to find that the characteristic value does not exist and then storing the characteristic value and the data packet, so that the result is that after the data packet is transmitted to the receiving end from the sending end, the characteristic value is stored in the mapping table of all the data relay devices and the data packet is stored in all the data relay devices, and each subsequent data relay device only needs to transmit the characteristic value without transmitting the data packet when transmitting the data packet again, thereby reducing the code stream.
In one embodiment, the method further comprises:
if the characteristic value of the data packet exists and the next node is the data receiving equipment, the corresponding data packet is searched in the data stored in the data relay equipment according to the characteristic value of the data packet and the mapping table and is transmitted to the data receiving equipment.
When the characteristic value of the data packet exists in the mapping table of the data relay device, the fact that the corresponding data packet is stored before is indicated, and when the next node is the data receiving device, the corresponding data packet is found from the stored data according to the characteristic value and is transmitted to the data receiving device.
In one embodiment, the method further comprises:
if the characteristic value of the data packet does not exist, judging whether the quantity of the characteristic values stored in the mapping table reaches a preset threshold value or not;
and if the characteristic value does not reach the preset threshold value, the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment, and then the data packet is transmitted to the next node.
And when the characteristic value of the data packet does not exist in the mapping table of the data relay equipment, the data packet is received for the first time, the characteristic value is added into the mapping table for updating and storing the data packet, and then the data packet is transmitted to the next node.
In one embodiment, the method further comprises:
if the characteristic value reaches the preset threshold value, deleting the characteristic value stored in the mapping table at the earliest time and the data packet corresponding to the characteristic value stored in the data relay equipment at the earliest time;
and after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment, transmitting the data packet to the next node.
The mapping table and the data packets stored by the data relay device are updated within the range of a preset threshold by deleting a characteristic value and a corresponding data packet with the earliest storage time, wherein the preset threshold is used for controlling the number of the data packets stored reasonably by the data relay device, the setting of the preset threshold is related to time, the number of the data packets stored by the data relay device within the time t can be n, and the number of the data packets n is the preset threshold.
According to a third aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, including:
the receiving module is used for receiving data and determining the type of the data;
the transmission module is used for searching a corresponding data packet in the data stored in the data relay equipment according to the characteristic value and the mapping table and transmitting the data packet to the data receiving equipment when the data is the characteristic value and the next node is the data receiving equipment; wherein, the mapping table stores the one-to-one mapping relationship between the characteristic value and the data packet.
In one embodiment, the transmission module is further configured to transmit the characteristic value to another data relay device when the data is the characteristic value and the next node is another data relay device.
In one embodiment, the apparatus further comprises:
the computing module is used for computing the characteristic value of the data packet when the data is the data packet;
the query module is used for querying whether the characteristic value of the data packet exists in the mapping table;
and the transmission module is further used for transmitting the characteristic value to another data relay device if the characteristic value of the data packet exists and the next node is another data relay device.
If a data packet is transmitted to a receiving end through a transmission path for the first time by a sending end, each data relay device in the transmission path performs the processes of calculating a characteristic value and inquiring a mapping table to find that the characteristic value does not exist and then storing the characteristic value and the data packet, so that the result is that after the data packet is transmitted to the receiving end from the sending end, the characteristic value is stored in the mapping table of all the data relay devices and the data packet is stored in all the data relay devices, and each subsequent data relay device only needs to transmit the characteristic value without transmitting the data packet when transmitting the data packet again, thereby reducing the code stream.
In an embodiment, the transmission module is further configured to, if the characteristic value of the data packet exists and the next node is a data receiving device, find a corresponding data packet from the data stored in the data relay device according to the characteristic value of the data packet and the mapping table, and transmit the data packet to the data receiving device.
When the characteristic value of the data packet exists in the mapping table of the data relay device, the fact that the corresponding data packet is stored before is indicated, and when the next node is the data receiving device, the corresponding data packet is found from the stored data according to the characteristic value and is transmitted to the data receiving device.
In one embodiment, the apparatus further comprises:
the judging module is used for judging whether the quantity of the characteristic values stored in the mapping table reaches a preset threshold value or not if the characteristic values of the data packet do not exist;
and the storage module is used for calling the transmission module to transmit the data packet to the next node after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment if the judgment result shows that the characteristic value does not reach the preset threshold value.
And when the characteristic value of the data packet does not exist in the mapping table of the data relay equipment, the data packet is received for the first time, the characteristic value is added into the mapping table for updating and storing the data packet, and then the data packet is transmitted to the next node.
In one embodiment, the apparatus further comprises:
a deleting module, configured to delete the data packet corresponding to the earliest stored eigenvalue in the mapping table and the earliest stored eigenvalue in the data relay device if it is determined that the preset threshold has been reached
And the storage module is used for calling the transmission module to transmit the data packet to the next node after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment.
The mapping table and the data packets stored by the data relay device are updated within the range of a preset threshold by deleting a characteristic value and a corresponding data packet with the earliest storage time, wherein the preset threshold is used for controlling the number of the data packets stored reasonably by the data relay device, the setting of the preset threshold is related to time, the number of the data packets which can be stored by the data relay device within the time t can be n, and the number of the data packets n is the preset threshold.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a data transmission apparatus, including:
the receiving module is used for receiving data and determining the type of the data;
the transmission module is used for searching a corresponding data packet in the data stored in the data relay equipment according to the characteristic value and the mapping table and transmitting the data packet to the data receiving equipment when the data is the characteristic value and the next node is the data receiving equipment; wherein, the mapping table stores the one-to-one mapping relation between the characteristic value and the data packet;
and the transmission module is further used for transmitting the characteristic value to another data relay device when the data is the characteristic value and the next node is another data relay device.
When the characteristic value of a data packet exists in the mapping table of each data relay device, each data relay device also stores the data packet, so that when the data packet is transmitted again, only the characteristic value corresponding to the data packet needs to be transmitted between each data relay device, and a data relay device in front of a data receiving device finds the data packet according to the characteristic value and the mapping table and then sends the data packet to the data receiving device, thereby realizing the reduction of the code stream in the transmission process without depending on a service scene, and solving the problems that the reduction of the code stream in the prior art is strongly related to the service and the application range is very limited.
In one embodiment, the apparatus further comprises:
the computing module is used for computing the characteristic value of the data packet when the data is the data packet;
the query module is used for querying whether the characteristic value of the data packet exists in the mapping table;
and the transmission module is further used for transmitting the characteristic value to another data relay device if the characteristic value of the data packet exists and the next node is another data relay device.
If a data packet is transmitted to a receiving end through a transmission path for the first time by a sending end, each data relay device in the transmission path performs the processes of calculating a characteristic value and inquiring a mapping table to find that the characteristic value does not exist and then storing the characteristic value and the data packet, so that the result is that after the data packet is transmitted to the receiving end from the sending end, the characteristic value is stored in the mapping table of all the data relay devices and the data packet is stored in all the data relay devices, and each subsequent data relay device only needs to transmit the characteristic value without transmitting the data packet when transmitting the data packet again, thereby reducing the code stream.
In an embodiment, the transmission module is further configured to, if the characteristic value of the data packet exists and the next node is a data receiving device, find a corresponding data packet from the data stored in the data relay device according to the characteristic value of the data packet and the mapping table, and transmit the data packet to the data receiving device.
When the characteristic value of the data packet exists in the mapping table of the data relay device, the fact that the corresponding data packet is stored before is indicated, and when the next node is the data receiving device, the corresponding data packet is found from the stored data according to the characteristic value and is transmitted to the data receiving device.
In one embodiment, the apparatus further comprises:
the judging module is used for judging whether the quantity of the characteristic values stored in the mapping table reaches a preset threshold value or not if the characteristic values of the data packet do not exist;
and the storage module is used for calling the transmission module to transmit the data packet to the next node after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment if the judgment result shows that the characteristic value does not reach the preset threshold value.
And when the characteristic value of the data packet does not exist in the mapping table of the data relay equipment, the data packet is received for the first time, the characteristic value is added into the mapping table for updating and storing the data packet, and then the data packet is transmitted to the next node.
In one embodiment, the apparatus further comprises:
a deleting module, configured to delete the data packet corresponding to the earliest stored eigenvalue in the mapping table and the earliest stored eigenvalue in the data relay device if it is determined that the preset threshold has been reached
And the storage module is used for calling the transmission module to transmit the data packet to the next node after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment.
The mapping table and the data packets stored by the data relay device are updated within the range of a preset threshold by deleting a characteristic value and a corresponding data packet with the earliest storage time, wherein the preset threshold is used for controlling the number of the data packets stored reasonably by the data relay device, the setting of the preset threshold is related to time, the number of the data packets which can be stored by the data relay device within the time t can be n, and the number of the data packets n is the preset threshold.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is an architectural diagram of an embodiment of the present disclosure;
fig. 2 is a first flowchart of a data transmission method provided by an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
As shown in fig. 1, an architecture diagram of data transmission in the embodiment of the present disclosure is shown, three types of nodes are involved in the data transmission process, where a sending-end device (S-end, for example, may be a server), a data Relay device (Relay, for example, may be a Relay server, a forwarding server), and an end device (R-end, for example, may be a zero terminal), where there may be 1 or more data Relay devices.
The data packet in the embodiment of the present disclosure may be a message transmitted in a network, and includes but is not limited to a User Datagram Protocol (UDP) message, a Transmission Control Protocol (TCP) message, a hypertext Transfer Protocol (HTTP) message, and the like. The characteristic value in the embodiment of the present disclosure is data that is calculated according to a data packet and a corresponding Algorithm and can uniquely identify the data packet, for example, the aforementioned Algorithm may be a Hash Algorithm, an MD5 Algorithm, a Secure Hash Algorithm (SHA 1), a Cyclic Redundancy Check (CRC), and the like, and the corresponding characteristic value may be a Hash value, an MD5 value, a SHA1 value, a CRC value, and the like.
The embodiment of the present disclosure provides a data transmission method, which is applied to a data relay device, and as shown in fig. 2, includes the following steps:
101. data is received and a type of the data is determined.
Specifically, the data relay device receives data transmitted by the previous node, and determines whether the data is a characteristic value or a data packet.
102. When the data is the characteristic value and the next node is the data receiving equipment, searching the corresponding data packet in the data stored in the data relay equipment according to the characteristic value and the mapping table and transmitting the data packet to the data receiving equipment; wherein, the mapping table stores the one-to-one mapping relationship between the characteristic value and the data packet.
Specifically, in the embodiment of the present disclosure, a mapping table is added to each data relay device for transmission, and the mapping table stores a one-to-one mapping relationship between a characteristic value and a data packet. The data packets corresponding to the characteristic values in the mapping table are stored in the data relay device, so that the corresponding data packets can be found in the data relay device through the characteristic values according to the one-to-one mapping relation and sent to the data receiving device.
103. When the data is the characteristic value and the next node is another data relay apparatus, the characteristic value is transmitted to the other data relay apparatus.
Specifically, when the data relay device has the characteristic value, and thus it is determined that the data packet corresponding to the characteristic value is stored in each data relay device, it is only necessary to transmit the characteristic value to the next data relay device.
In the data transmission method provided by the embodiment of the present disclosure, when the feature value of a data packet exists in the mapping table of each data relay device, each data relay device already stores the data packet, so that when the data packet is transmitted again, only the feature value corresponding to the data packet needs to be transmitted between each data relay device, and a data relay device in front of a data receiving device finds the data packet according to the feature value and the mapping table and then transmits the data packet to the data receiving device, thereby reducing the code stream in the transmission process without depending on a service scenario, and solving the problems that the reduction of the code stream in the prior art is related to the service strength and the application range is very limited.
As shown in fig. 3, in one embodiment, the method may further include:
104. when the data is a data packet, calculating the characteristic value of the data packet.
105. And inquiring whether the characteristic value of the data packet exists in a mapping table.
106. And if the characteristic value of the data packet exists and the next node is another data relay device, transmitting the characteristic value to the other data relay device.
If a data packet is transmitted to a receiving end through a transmission path for the first time by a sending end, each data relay device in the transmission path performs the processes of calculating a characteristic value and inquiring a mapping table to find that the characteristic value does not exist and then storing the characteristic value and the data packet, so that the result is that after the data packet is transmitted to the receiving end from the sending end, the characteristic value is stored in the mapping table of all the data relay devices and the data packet is stored in all the data relay devices, and each subsequent data relay device only needs to transmit the characteristic value without transmitting the data packet when transmitting the data packet again, thereby reducing the code stream.
As shown in fig. 3, in one embodiment, the method may further comprise:
107. if the characteristic value of the data packet exists and the next node is the data receiving equipment, the corresponding data packet is searched in the data stored in the data relay equipment according to the characteristic value of the data packet and the mapping table and is transmitted to the data receiving equipment.
When the characteristic value of the data packet exists in the mapping table of the data relay device, the fact that the corresponding data packet is stored before is indicated, and when the next node is the data receiving device, the corresponding data packet is found from the stored data according to the characteristic value and is transmitted to the data receiving device.
108. And if the characteristic value of the data packet does not exist, judging whether the quantity of the characteristic values stored in the mapping table reaches a preset threshold value or not.
Specifically, the setting of the preset threshold is time-dependent, and may be the number n of data packets that can be stored by the data relay device within the time t, where the number n of data packets is the preset threshold.
It is worth mentioning that for video image data, the packet repetition rate may be relatively high only in a short time, for example, several seconds, and then the data is completely different from the data of the first two or three seconds, so the time t should be a relatively small value, for example, 2s, and after all, 10s is selected, and after 8s, the packet may be stored in the data relay device and then not transmitted, so the packet stored in the 8s is meaningless. In the embodiment of the present disclosure, the time t may be an appropriate value according to actual experience, and the preset threshold is determined after the time t is determined.
109. And if the characteristic value does not reach the preset threshold value, the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment, and then the data packet is transmitted to the next node.
When the feature value of the data packet does not exist in the mapping table of the data relay device, it indicates that the data packet is received for the first time, the feature value is added into the mapping table to update and store the data packet, and then the data packet is transmitted to the next node, if the next node is the data relay device,step 104 and the following corresponding steps may be executed.
As shown in fig. 3, in one embodiment, the method may further comprise:
110. and if the judgment result shows that the preset threshold value is reached, deleting the data packet corresponding to the feature value stored in the mapping table at the earliest time and the feature value stored in the data relay equipment at the earliest time.
Specifically, the mapping table and the data packet stored by the data relay device are updated within the range of the preset threshold by deleting the characteristic value and the corresponding data packet with the earliest storage time.
111. And after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay equipment, transmitting the data packet to the next node.
It should be noted that, if a data packet is transmitted from a transmitting end to a receiving end through a transmission path for the first time, each data relay device in the transmission path performs the process of calculating a characteristic value, querying a mapping table to find that the characteristic value does not exist, and then storing the characteristic value and the data packet, and as a result, after the data packet is transmitted from the transmitting end to the receiving end, the characteristic value is stored in the mapping table of all the data relay devices and the data packet is stored in all the data relay devices, and each subsequent data relay device only needs to transmit the characteristic value without transmitting the data packet when transmitting the data packet again, thereby reducing a code stream.
Based on the data transmission method described in the embodiment corresponding to fig. 2 or fig. 3, the following is an embodiment of the apparatus of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.
An embodiment of the present disclosure provides a data transmission apparatus, as shown in fig. 4, thedata transmission apparatus 40 includes:
areceiving module 401, configured to receive data and determine a type of the data;
atransmission module 402, configured to, when the data is the eigenvalue and the next node is a data receiving device, find a corresponding data packet in the data stored in the data relay device according to the eigenvalue and the mapping table, and transmit the data packet to the data receiving device; wherein, the mapping table stores the one-to-one mapping relation between the characteristic value and the data packet;
the transmittingmodule 402 is further configured to transmit the characteristic value to another data relay device when the data is the characteristic value and the next node is another data relay device.
When the characteristic value of a data packet exists in the mapping table of each data relay device, each data relay device also stores the data packet, so that when the data packet is transmitted again, only the characteristic value corresponding to the data packet needs to be transmitted between each data relay device, and a data relay device in front of a data receiving device finds the data packet according to the characteristic value and the mapping table and then sends the data packet to the data receiving device, thereby realizing the reduction of the code stream in the transmission process without depending on a service scene, and solving the problems that the reduction of the code stream in the prior art is strongly related to the service and the application range is very limited.
In one embodiment, as shown in fig. 5, theapparatus 40 further comprises:
a calculatingmodule 403, configured to calculate a characteristic value of the data packet when the data is the data packet;
aquery module 404, configured to query whether a feature value of the data packet exists in the mapping table;
the transmittingmodule 402 is further configured to transmit the characteristic value of the data packet to another data relay device if the characteristic value exists and the next node is another data relay device.
If a data packet is transmitted to a receiving end through a transmission path for the first time by a sending end, each data relay device in the transmission path performs the processes of calculating a characteristic value and inquiring a mapping table to find that the characteristic value does not exist and then storing the characteristic value and the data packet, so that the result is that after the data packet is transmitted to the receiving end from the sending end, the characteristic value is stored in the mapping table of all the data relay devices and the data packet is stored in all the data relay devices, and each subsequent data relay device only needs to transmit the characteristic value without transmitting the data packet when transmitting the data packet again, thereby reducing the code stream.
In an embodiment, the transmittingmodule 402 is further configured to, if the characteristic value of the data packet exists and the next node is a data receiving device, find a corresponding data packet from the data stored in the data relay device according to the characteristic value of the data packet and the mapping table, and transmit the corresponding data packet to the data receiving device.
When the characteristic value of the data packet exists in the mapping table of the data relay device, the fact that the corresponding data packet is stored before is indicated, and when the next node is the data receiving device, the corresponding data packet is found from the stored data according to the characteristic value and is transmitted to the data receiving device.
In one embodiment, as shown in fig. 5, theapparatus 40 further comprises:
a determiningmodule 405, configured to determine whether the number of the feature values stored in the mapping table reaches a preset threshold if the feature value of the data packet does not exist;
thestorage module 406 is configured to, if it is determined that the characteristic value of the data packet does not reach the preset threshold, call thetransmission module 402 to transmit the data packet to the next node after the characteristic value of the data packet is stored in the mapping table and the data packet is stored in the data relay device.
And when the characteristic value of the data packet does not exist in the mapping table of the data relay equipment, the data packet is received for the first time, the characteristic value is added into the mapping table for updating and storing the data packet, and then the data packet is transmitted to the next node.
In one embodiment, as shown in fig. 5, theapparatus 40 further comprises:
a deletingmodule 407, configured to delete the data packet corresponding to the feature value stored at the earliest time in the mapping table and the feature value stored at the earliest time in the data relay device if it is determined that the preset threshold has been reached
And astoring module 406, configured to invoke thetransmitting module 402 to transmit the data packet to the next node after storing the characteristic value of the data packet in the mapping table and storing the data packet in the data relay device.
The mapping table and the data packets stored by the data relay device are updated within the range of a preset threshold by deleting a characteristic value and a corresponding data packet with the earliest storage time, wherein the preset threshold is used for controlling the number of the data packets stored reasonably by the data relay device, the setting of the preset threshold is related to time, the number of the data packets which can be stored by the data relay device within the time t can be n, and the number of the data packets n is the preset threshold.
Based on the data transmission method described in the embodiment corresponding to fig. 2, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the data transmission method described in the embodiment corresponding to fig. 2, which is not described herein again.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (12)

CN202110687156.1A2019-06-102019-06-10Data transmission method and devicePendingCN113556580A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110687156.1ACN113556580A (en)2019-06-102019-06-10Data transmission method and device

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN201910494775.1ACN110418164B (en)2019-06-102019-06-10 Data transmission method and device
CN202110687156.1ACN113556580A (en)2019-06-102019-06-10Data transmission method and device

Related Parent Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910494775.1ADivisionCN110418164B (en)2019-06-102019-06-10 Data transmission method and device

Publications (1)

Publication NumberPublication Date
CN113556580Atrue CN113556580A (en)2021-10-26

Family

ID=68358910

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN201910494775.1AActiveCN110418164B (en)2019-06-102019-06-10 Data transmission method and device
CN202110687156.1APendingCN113556580A (en)2019-06-102019-06-10Data transmission method and device

Family Applications Before (1)

Application NumberTitlePriority DateFiling Date
CN201910494775.1AActiveCN110418164B (en)2019-06-102019-06-10 Data transmission method and device

Country Status (1)

CountryLink
CN (2)CN110418164B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2011193379A (en)*2010-03-162011-09-29Kddi R & D Laboratories IncCommunication system
CN102917080A (en)*2012-09-212013-02-06中国科学院声学研究所Mapping-table based application layer data relay transmission method and device
CN103927135A (en)*2014-04-152014-07-16华为技术有限公司Data storage method and device
CN104156376A (en)*2013-05-152014-11-19腾讯科技(深圳)有限公司Storage method, device and server for file
CN104836632A (en)*2014-02-122015-08-12鸿富锦精密工业(深圳)有限公司Network data transmission management method and system
CN107689927A (en)*2017-09-272018-02-13深圳市盛路物联通讯技术有限公司A kind of asynchronous data transmission method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101438256B (en)*2006-03-072011-12-21索尼株式会社 Information processing device, information communication system, information processing method
CN101795170B (en)*2009-02-022013-11-06中兴通讯股份有限公司Method, receiving equipment and system for realizing data feedback
CN102571936B (en)*2011-12-232015-07-08华为技术有限公司Method, device and system for searching data
CN107332908B (en)*2017-07-032020-11-27网宿科技股份有限公司 A data transmission method and system thereof
JP7110239B2 (en)*2017-07-102022-08-01パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Power control method and communication device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2011193379A (en)*2010-03-162011-09-29Kddi R & D Laboratories IncCommunication system
CN102917080A (en)*2012-09-212013-02-06中国科学院声学研究所Mapping-table based application layer data relay transmission method and device
CN104156376A (en)*2013-05-152014-11-19腾讯科技(深圳)有限公司Storage method, device and server for file
CN104836632A (en)*2014-02-122015-08-12鸿富锦精密工业(深圳)有限公司Network data transmission management method and system
CN103927135A (en)*2014-04-152014-07-16华为技术有限公司Data storage method and device
CN107689927A (en)*2017-09-272018-02-13深圳市盛路物联通讯技术有限公司A kind of asynchronous data transmission method and system

Also Published As

Publication numberPublication date
CN110418164A (en)2019-11-05
CN110418164B (en)2021-06-04

Similar Documents

PublicationPublication DateTitle
CN113037440B (en)Data retransmission processing method and device, computer equipment and storage medium
US11558302B2 (en)Data transmission method and apparatus
US9753794B2 (en)Method and apparatus for controlling sending of heartbeat signal
CN113411313A (en)Data transmission method, device and system
KR20140009931A (en)Communication method of contents requester and contents provider for providing contents and real-time streaming contents in a contents centric network based on contents name
EP3709664A1 (en)Stream pushing method, system and server
JP2002111684A (en) Wireless communication system and timeout value updating method thereof
CN111131179B (en)Service processing method, device, network equipment and storage medium
US10594803B2 (en)Method for delivering content in communication network and apparatus therefor
WO2015090218A1 (en)Message transmission processing method for server and client, and message transmission method and system
US20240397372A1 (en)Data processing method and apparatus, computer-readable medium, and electronic device
WO2016173155A1 (en)Method and apparatus for processing tcp ack packet
US9350484B2 (en)Transport accelerator implementing selective utilization of redundant encoded content data functionality
US20250301197A1 (en)Method and apparatus for media data transmission
CN103312469A (en)Method and device for selecting ACK-leader in multicast retransmission
US7168022B2 (en)Transmission control method and system
CN109428684B (en) A data transmission method, RLC entity and PDCP entity
CN110418164B (en) Data transmission method and device
KR101563779B1 (en)Lightweight end-to-end protocol for retransmitting real-time multimedia data lost over the networks
TW202119791A (en)Wireless communication device and wireless communication method
JP4372814B2 (en) Method for counting the number of transmissions of a data unit, a counting device, a transmitting device, and a computer program
JP2009044695A (en) Communication control method, transmission device, and computer program
WO2020259040A1 (en)Data transmission method, system and device
CN110166185A (en)Audio data processing method and device, storage medium and processor
JP2015165349A (en) Primary response device, control method, and computer program

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20211026

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp