CN115314453A - Data transmission method, data sending end, data receiving end and related equipment - Google Patents

Data transmission method, data sending end, data receiving end and related equipment Download PDF

Info

Publication number
CN115314453A
CN115314453A CN202210939360.2A CN202210939360A CN115314453A CN 115314453 A CN115314453 A CN 115314453A CN 202210939360 A CN202210939360 A CN 202210939360A CN 115314453 A CN115314453 A CN 115314453A
Authority
CN
China
Prior art keywords
data
service data
splicing
splicing sequence
message
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
CN202210939360.2A
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.)
Zhengzhou Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202210939360.2A priority Critical patent/CN115314453A/en
Publication of CN115314453A publication Critical patent/CN115314453A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a data transmission method, a data sending end, a data receiving end and related equipment, wherein the method is applied to the data sending end and comprises the following steps: receiving service data to be sent; each service data comprises a data attribute and a true value; determining a splicing sequence among the service data according to preset configuration information and data attributes, and splicing real values of the service data according to the splicing sequence to obtain message data; sending message data to a data receiving end so that the data receiving end determines a splicing sequence according to preset configuration information, extracting a true value from the message data according to the splicing sequence, and restoring service data by using the true value; the data attribute of the service data is only used for determining the splicing sequence among the service data and is not added to the message data, and the message data only contains the true value of the service data, so that the volume of the message data can be obviously reduced, and the communication bandwidth required for transmitting the message data can be further reduced.

Description

Data transmission method, data sending end, data receiving end and related equipment
Technical Field
The present invention relates to the field of data transmission, and in particular, to a data transmission method, a data transmitting end, a data receiving end, an electronic device, and a computer-readable storage medium.
Background
The data sending end and the data receiving end generally transmit service data in the form of messages. In the related art, when a packet is encapsulated, data attributes (such as a key name) and real values of service data are usually encapsulated in the packet data at the same time. However, when there are many service data or there are situations of the same data attribute among the service data, a large amount of repeated data attribute information is easily encapsulated in the message data, which increases the volume of the message data, and further, the communication bandwidth is easily wasted when transmitting the message data.
Disclosure of Invention
The invention aims to provide a data transmission method, a data sending end, a data receiving end, electronic equipment and a computer readable storage medium, which can only transmit the true value of each service data by using a message without transmitting the data attribute of each service data, thereby reducing the communication bandwidth required by transmitting the message data.
In order to solve the above technical problem, the present invention provides a data transmission method, which is applied to a data transmitting end, and the method includes:
receiving service data to be sent; each service data comprises a data attribute and a true value;
determining a splicing sequence among the service data according to preset configuration information and the data attributes, and splicing real values of the service data according to the splicing sequence to obtain message data;
and sending the message data to a data receiving end so that the data receiving end determines the splicing sequence according to the preset configuration information, extracts the true value from the message data according to the splicing sequence, and restores the service data by using the true value.
Optionally, the determining, according to preset configuration information and the data attribute, a splicing sequence among the service data, and splicing a true value of the service data according to the splicing sequence to obtain message data includes:
determining the splicing sequence according to preset configuration information and the data attributes, determining a preset cache region corresponding to each service data, and writing a true value of each service data into the preset cache region;
and splicing the real values in the preset cache regions according to the splicing sequence to obtain the message data.
Optionally, the writing the real value of the service data into the preset cache region includes:
and when the service data is determined to be fixed-length data according to the data attribute of the service data, writing the real value of the service data into the preset cache region.
Optionally, the writing the real value of the service data into the preset cache region includes:
and when the service data is determined to be non-fixed length data according to the data attribute of the service data, determining a length value of the real value, splicing the length value to the head of the real value, and writing a splicing result into the preset cache region.
The invention also provides a data transmission method, which is applied to a data receiving end and comprises the following steps:
receiving message data sent by a data sending end;
determining a splicing sequence of the true value of each service data in the message data according to preset configuration information and the data attribute of each service data, and extracting the true value from the message data according to the splicing sequence;
and restoring the service data by using the real value and the corresponding data attribute.
Optionally, the determining, according to preset configuration information and data attributes of each service data, a splicing order of the true value of each service data in the packet data, and extracting the true value from the packet data according to the splicing order includes:
determining the splicing sequence according to preset configuration information and data attributes of each service data, and determining a preset cache region corresponding to each service data;
extracting the real values from the message data according to the splicing sequence, and writing the real values into corresponding preset cache regions;
correspondingly, the restoring the service data by using the true value and the corresponding data attribute includes:
and restoring the service data by using the real values stored in the preset cache region and the corresponding data attributes.
Optionally, the extracting the true value from the message data according to the splicing sequence includes:
and determining the current target service data to be extracted according to the splicing sequence, and extracting the true value of the target service data from the message data according to the preset length of the target service data when the target service data is determined to be fixed-length data according to the data attribute of the target service data.
Optionally, the extracting the true value from the message data according to the splicing sequence includes:
and determining the current target service data to be extracted according to the splicing sequence, extracting a length value positioned at the head of a target real value corresponding to the target service data from the message data when the target service data is determined to be non-fixed-length data according to the data attribute of the target service data, and extracting the target real value according to the length value.
The invention also provides a data sending end, comprising:
the receiving module is used for receiving service data to be sent; each service data comprises a data attribute and a true value;
the splicing module is used for determining the splicing sequence among the service data according to preset configuration information and the data attribute, and splicing the real values of the service data according to the splicing sequence to obtain message data;
and the sending module is used for sending the message data to a data receiving end so that the data receiving end determines the splicing sequence according to the preset configuration information, extracts the true value from the message data according to the splicing sequence and restores the service data by using the true value.
The present invention also provides a data receiving end, including:
the receiving module is used for receiving the message data sent by the data sending end;
the analysis module is used for determining the splicing sequence of the true value of each service data in the message data according to preset configuration information and the data attribute of each service data, and extracting the true value from the message data according to the splicing sequence;
and the restoring module is used for restoring the service data by utilizing the real value and the corresponding data attribute.
The present invention also provides an electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the data transmission method as described above when executing the computer program.
The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the data transmission method as described above is implemented.
The invention provides a data transmission method, which is applied to a data sending end and comprises the following steps: receiving service data to be sent; each service data comprises a data attribute and a true value; determining a splicing sequence among the service data according to preset configuration information and the data attribute, and splicing true values of the service data according to the splicing sequence to obtain message data; and sending the message data to a data receiving end so that the data receiving end determines the splicing sequence according to the preset configuration information, extracts the true value from the message data according to the splicing sequence, and restores the service data by using the true value.
It can be seen that, when a data sending end in the present invention receives service data to be sent, it first determines data attributes corresponding to the service data, and then determines a splicing sequence among the service data according to preset configuration information and the data attributes of the service data; then, the data sending end splices the true values of the service data by using the splicing sequence to obtain message data, and sends the message data to the data receiving end. And the receiving end also uses the same preset configuration information to determine the splicing sequence, extracts a true value from the message data according to the sequence, and then restores the service data by using the true value. In other words, in the present invention, the data attribute of the service data is only used to determine the splicing order among the service data, and is not added to the message data; the message data only contains the true value of the service data, so that the volume of the message data can be obviously reduced, and the communication bandwidth required for transmitting the message data is further reduced. The present invention can also provide a data transmission method applied to a data receiving end, a data transmitting end, a data receiving end, an electronic device, and a computer-readable storage medium, having the above-mentioned advantageous effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart of another data transmission method according to an embodiment of the present invention;
fig. 3 is a block diagram of a data transmitting end according to an embodiment of the present invention;
fig. 4 is a block diagram of a data receiving end according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data sending end and the data receiving end generally transmit service data in the form of messages. In the related art, when performing packet encapsulation, data attributes (such as key names) and true values of service data are usually encapsulated in packet data at the same time. However, when there are more service data or there are situations with the same data attribute between service data, a large amount of repeated data attribute information is easily encapsulated in the message data, which increases the volume of the message data, and further, the communication bandwidth is easily wasted when transmitting the message data. In view of this, the present invention provides a data transmission method, which can transmit the true value of each service data only by using a message, but not transmit the data attribute of each service data, thereby reducing the communication bandwidth required for transmitting the message data. Referring to fig. 1, fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention, where the method is applied to a data sending end, and may include:
s101, receiving service data to be sent; each service data includes a data attribute and a true value.
In the embodiment of the present invention, the data attribute is descriptive information of the service data, such as a key name, a data type, and the like, and the real value is specific data content of the service data, where the data type may be an integer type, a floating point type, a character type, and the like. For example, in a key-value pair, the key value belongs to a data attribute, while the value belongs to the true value.
S102, determining a splicing sequence among the service data according to preset configuration information and data attributes, and splicing real values of the service data according to the splicing sequence to obtain message data.
In the existing message encapsulation scheme, data attributes (such as key names) and real values of service data are usually encapsulated in message data at the same time, for example, if the service data is transmitted in a key value pair manner, the message data needs to include a key value and a value of the service data at the same time, which is easy to increase the volume of the message data, and further increases the communication bandwidth needed for transmitting the message data. In the embodiment of the invention, the message data can only encapsulate the true value of the service data, but not encapsulate the data attribute; the purpose of the data attribute is followed by determining the splicing sequence between the actual values of the service data in the embodiment of the present invention. The real values are spliced according to a preset splicing sequence which can be negotiated by the data sending end and the data receiving end in advance and stored in preset configuration information in order to facilitate the analysis of the data receiving end under the condition of not transmitting the data attribute; in addition, considering that the data attribute has a function of uniquely marking the service data, in the preset configuration information, each service data may be represented by its corresponding data attribute. When receiving the service data to be transmitted, the data transmitting end can search the splicing position corresponding to the data in the preset configuration information according to the corresponding attribute data; when the data receiving end extracts the true value from the message data, the data receiving end can also find the data attribute of the corresponding service data in the preset configuration information according to the extraction sequence of the value, so as to recover the service data by using the true value and the data attribute. Therefore, the data attribute of each service data can be prevented from being transmitted in the message data, and the volume of the message data can be reduced and the bandwidth required for transmitting the message data can be reduced.
It should be noted that, the embodiment of the present invention does not limit the specific form of the preset configuration information, as long as the data attribute of each service data and the splicing sequence between the service data can be recorded, and preferably, the preset configuration information may be implemented by using an XML (Extensible Markup Language), because the XML can structurally manage the data attribute of each service data, which is convenient for analyzing and determining the splicing sequence.
Further, in order to improve the processing efficiency, a corresponding preset buffer area (buffer) may be set for each service data, each preset buffer area is marked with a data attribute of the corresponding service data, and each preset buffer area is arranged according to the above-mentioned splicing sequence. Thus, for a data sending end, when service data to be sent is received, only a preset cache region corresponding to the data needs to be determined according to corresponding data attributes of the service data, and a real value corresponding to the data needs to be temporarily stored in the region, and subsequently, when message encapsulation is performed, only the real value needs to be sequentially extracted from the preset cache region and spliced, so that not only can each service data be effectively managed, but also the splicing efficiency can be improved; for the data receiving end, when the message data is received, the true value can be extracted according to the splicing sequence, and the true value is written into the corresponding preset cache region according to the extraction times, so that when the service data is restored, only the true value in the preset cache region and the data attribute of the region mark need to be extracted for restoration, and the restoration efficiency can also be improved.
In a possible case, determining a splicing sequence among the service data according to preset configuration information and data attributes, and splicing real values of the service data according to the splicing sequence to obtain the message data may include:
step 11: determining a splicing sequence according to the preset configuration information and the data attributes, determining a preset cache region corresponding to each service data, and writing the true value of each service data into the preset cache region;
step 12: and splicing the real values in the preset cache regions according to the splicing sequence to obtain message data.
Further, when the true value is spliced, the data type of the service data can be further determined, so as to determine whether further analysis information needs to be added before the true value. For example, when the service data is determined to be fixed-length data according to the data attribute of the service data, that is, the real value of the service data is determined to be fixed-length, the real value can be directly spliced without adding the analysis information.
In a possible case, writing the real value of the service data into the preset cache region may include:
step 21: and when the service data is determined to be fixed-length data according to the data attribute of the service data, writing the true value of the service data into a preset cache region.
For another example, when the service data is determined to be non-fixed-length data according to the data attribute of the service data, that is, when the length of the real value of the service data is determined to be not fixed, the length value corresponding to the real value may be determined, and the length value is added to the head of the real value, so that the data receiving end extracts the real value according to the length value.
In a possible case, writing the real value of the service data into the preset cache region may include:
step 31: when the business data is determined to be non-fixed-length data according to the data attribute of the business data, determining the length value of the real value, splicing the length value to the head of the real value, and writing the splicing result into a preset cache region.
S103, sending the message data to a data receiving end so that the data receiving end determines a splicing sequence according to preset configuration information, extracting a true value from the message data according to the splicing sequence, and restoring the service data by using the true value.
Based on the above embodiment, when the data sending end in the present invention receives the service data to be sent, the data attribute corresponding to the service data may be determined first, and then the splicing sequence between the service data is determined according to the preset configuration information and the data attribute of the service data; then, the data sending end splices the true values of the service data by using the splicing sequence to obtain message data, and sends the message data to the data receiving end. And the receiving end also uses the same preset configuration information to determine the splicing sequence, extracts a true value from the message data according to the sequence, and then restores the service data by using the true value. In other words, in the present invention, the data attribute of the service data is only used to determine the splicing sequence between the service data, and is not added to the message data; the message data only contains the true value of the service data, so that the volume of the message data can be obviously reduced, and the communication bandwidth required for transmitting the message data is further reduced.
Based on the above embodiments, the following describes an implementation of the data receiving side. Referring to fig. 2, fig. 2 is a flowchart of another data transmission method according to an embodiment of the present invention, where the method is applied to a data receiving end, and may include:
s201, receiving message data sent by a data sending end.
S202, determining the splicing sequence of the true values of the business data in the message data according to the preset configuration information and the data attributes of the business data, and extracting the true values from the message data according to the splicing sequence.
In the embodiment of the present invention, since the true values of the service data included in the packet data are concatenated according to the preset concatenation order, the true values of the service data may also be sequentially extracted according to the order during parsing. Specifically, since the preset configuration information represents each service data by using the data attribute, when the splicing order is determined, the splicing order may be determined in the preset configuration information according to the data attribute of each service data related to the packet.
Further, for convenient processing, corresponding preset cache regions can be set for each service data, each preset cache region is marked with a data attribute of the corresponding service data, and each preset cache region is arranged according to the splicing sequence. Therefore, for the data receiving end, when the message data is received, the true value can be extracted according to the splicing sequence, and the true value is written into the corresponding preset cache region according to the extraction times, so that when the service data is reduced, only the true value in the preset cache region and the data attribute marked in the region are extracted for reduction, and the reduction efficiency can be improved.
In a possible case, determining a splicing sequence of the true value of each service data in the message data according to the preset configuration information and the data attribute of each service data, and extracting the true value from the message data according to the splicing sequence, including:
step 41: determining a splicing sequence according to preset configuration information and data attributes of each service data, and determining a preset cache region corresponding to each service data;
step 42: and extracting the real values from the message data according to the splicing sequence, and writing the real values into the corresponding preset cache regions.
Of course, when the actual value is extracted, different methods may be used to extract the actual value according to the type of each service data. For example, when it is determined that the target service data to be currently extracted is fixed-length data, that is, when it is determined that the real value to be currently extracted is fixed-length, the real value can be extracted from the packet according to the preset length corresponding to the service data.
In one possible case, extracting the true value from the message data according to the concatenation order may include:
step 51: and determining the current target service data to be extracted according to the splicing sequence, and extracting the real value of the target service data from the message data according to the preset length of the target service data when the target service data is determined to be fixed-length data according to the data attribute of the target service data.
For another example, when it is determined that the target service data to be currently extracted is non-fixed-length data, that is, when it is determined that the length of the real value to be currently extracted is not fixed, since the data sending end adds the length value of the real value to the header of such real value, only this length value needs to be extracted, and the real value extraction is performed according to the length value.
In one possible case, extracting the true value from the message data according to the concatenation order may include:
step 61: and determining the current target service data to be extracted according to the splicing sequence, extracting a length value positioned at the head of a target real value corresponding to the target service data from the message data when the target service data is determined to be non-fixed-length data according to the data attribute of the target service data, and extracting the target real value according to the length value.
And S203, restoring the service data by using the real value and the corresponding data attribute.
Specifically, if the real value is temporarily stored in the corresponding preset cache region, the real value stored in the preset cache region and the corresponding data attribute can be directly used to restore the service data.
Correspondingly, the restoring the service data by using the real value and the corresponding data attribute may include:
step 71: and restoring the service data by using the real values and the corresponding data attributes stored in the preset cache region.
The data transmitting end, the data receiving end, the electronic device, and the computer-readable storage medium according to the embodiments of the present invention are introduced below, and the data transmitting end, the data receiving end, the electronic device, and the computer-readable storage medium described below may be referred to in correspondence with the data transmission method described above.
Referring to fig. 3, fig. 3 is a block diagram of a structure of a data transmitting end according to an embodiment of the present invention, where the apparatus may include:
a receiving module 301, configured to receive service data to be sent; each service data comprises a data attribute and a true value;
the splicing module 302 is configured to determine a splicing sequence among the service data according to preset configuration information and data attributes, and splice real values of the service data according to the splicing sequence to obtain message data;
the sending module 303 is configured to send the packet data to the data receiving end, so that the data receiving end determines a splicing sequence according to the preset configuration information, extracts a true value from the packet data according to the splicing sequence, and restores the service data by using the true value.
Optionally, the splicing module 302 may include:
the cache submodule is used for determining a splicing sequence according to preset configuration information and data attributes, determining a preset cache region corresponding to each service data, and writing the true value of the service data into the preset cache region;
and the splicing submodule is used for splicing the true values in the preset cache regions according to the splicing sequence to obtain message data.
Optionally, the cache submodule may include:
and the first cache unit is used for writing the true value of the service data into the preset cache region when the service data is determined to be the fixed-length data according to the data attribute of the service data.
Optionally, the cache submodule may include:
and the second cache unit is used for determining the length value of the real value when the service data is determined to be non-fixed-length data according to the data attribute of the service data, splicing the length value to the head of the real value, and writing the splicing result into a preset cache region.
Referring to fig. 4, fig. 4 is a block diagram of a data receiving end according to an embodiment of the present invention, where the apparatus may include:
a receiving module 401, configured to receive message data sent by a data sending end;
the parsing module 402 is configured to determine a splicing sequence of the true value of each service data in the message data according to the preset configuration information and the data attribute of each service data, and extract the true value from the message data according to the splicing sequence;
and a restoring module 403, configured to restore the service data by using the real value and the corresponding data attribute.
Optionally, the parsing module 402 may include:
the information confirmation submodule is used for determining a splicing sequence according to the preset configuration information and the data attribute of each service data and determining a preset cache region corresponding to each service data;
the cache submodule is used for extracting a real value from the message data according to the splicing sequence and writing the real value into a corresponding preset cache region;
correspondingly, the restoring module 403 is specifically configured to:
and restoring the service data by using the real values and the corresponding data attributes stored in the preset cache region.
Optionally, the cache submodule may include:
and the first extraction unit is used for determining the current target service data to be extracted according to the splicing sequence, and extracting the true value of the target service data from the message data according to the preset length of the target service data when the target service data is determined to be fixed-length data according to the data attribute of the target service data.
Optionally, the cache submodule may include:
and the second extraction unit is used for determining the current target service data to be extracted according to the splicing sequence, extracting the length value positioned at the head of the target real value corresponding to the target service data from the message data when the target service data is determined to be non-fixed-length data according to the data attribute of the target service data, and extracting the target real value according to the length value.
An embodiment of the present invention further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the data transmission method as described above when executing the computer program.
Since the embodiment of the electronic device portion corresponds to the embodiment of the data transmission method portion, please refer to the description of the embodiment of the data transmission method portion for the embodiment of the electronic device portion, which is not described herein again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the data transmission method in any of the above embodiments are implemented.
Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the data transmission method portion, please refer to the description of the embodiment of the data transmission method portion for the embodiment of the storage medium portion, which is not described herein again.
The embodiments are described in a progressive mode in the specification, the emphasis of each embodiment is on the difference from the other embodiments, and the same and similar parts among the embodiments can be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The data transmission method, the data sending end, the data receiving end, the electronic device and the computer readable storage medium provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (12)

1. A data transmission method is applied to a data sending end, and the method comprises the following steps:
receiving service data to be sent; each service data comprises a data attribute and a true value;
determining a splicing sequence among the service data according to preset configuration information and the data attribute, and splicing true values of the service data according to the splicing sequence to obtain message data;
and sending the message data to a data receiving end so that the data receiving end determines the splicing sequence according to the preset configuration information, extracts the true value from the message data according to the splicing sequence, and restores the service data by using the true value.
2. The data transmission method according to claim 1, wherein the determining a splicing sequence between the service data according to preset configuration information and the data attribute, and splicing true values of the service data according to the splicing sequence to obtain message data comprises:
determining the splicing sequence according to preset configuration information and the data attributes, determining a preset cache region corresponding to each service data, and writing a true value of each service data into the preset cache region;
and splicing the real values in the preset cache regions according to the splicing sequence to obtain the message data.
3. The data transmission method according to claim 2, wherein the writing the real value of the service data into the preset buffer area includes:
and when the service data is determined to be fixed-length data according to the data attribute of the service data, writing the real value of the service data into the preset cache region.
4. The data transmission method according to claim 2, wherein the writing the real value of the service data into the preset buffer area includes:
and when the service data is determined to be non-fixed length data according to the data attribute of the service data, determining a length value of the real value, splicing the length value to the head of the real value, and writing a splicing result into the preset cache region.
5. A data transmission method, applied to a data receiving end, the method comprising:
receiving message data sent by a data sending end;
determining a splicing sequence of the true value of each service data in the message data according to preset configuration information and the data attribute of each service data, and extracting the true value from the message data according to the splicing sequence;
and restoring the service data by using the true value and the corresponding data attribute.
6. The data transmission method according to claim 5, wherein the determining a splicing sequence of the true value of each service data in the packet data according to preset configuration information and the data attribute of each service data, and extracting the true value from the packet data according to the splicing sequence includes:
determining the splicing sequence according to preset configuration information and data attributes of the service data, and determining a preset cache region corresponding to the service data;
extracting the real values from the message data according to the splicing sequence, and writing the real values into corresponding preset cache regions;
correspondingly, the restoring the service data by using the true value and the corresponding data attribute includes:
and restoring the service data by using the real values and the corresponding data attributes stored in the preset cache region.
7. The data transmission method according to claim 6, wherein the extracting the true value from the packet data according to the splicing order includes:
and determining the current target service data to be extracted according to the splicing sequence, and extracting the true value of the target service data from the message data according to the preset length of the target service data when the target service data is determined to be fixed-length data according to the data attribute of the target service data.
8. The data transmission method according to claim 6, wherein the extracting the true value from the packet data according to the concatenation order includes:
and determining the current target service data to be extracted according to the splicing sequence, extracting a length value positioned at the head of a target real value corresponding to the target service data from the message data when the target service data is determined to be non-fixed length data according to the data attribute of the target service data, and extracting the target real value according to the length value.
9. A data transmitting end, comprising:
the receiving module is used for receiving service data to be sent; each service data comprises a data attribute and a true value;
the splicing module is used for determining a splicing sequence among the service data according to preset configuration information and the data attribute, and splicing the true values of the service data according to the splicing sequence to obtain message data;
and the sending module is used for sending the message data to a data receiving end so that the data receiving end determines the splicing sequence according to the preset configuration information, extracts the true value from the message data according to the splicing sequence and restores the service data by using the true value.
10. A data receiving end, comprising:
the receiving module is used for receiving message data sent by the data sending end;
the analysis module is used for determining the splicing sequence of the true value of each service data in the message data according to preset configuration information and the data attribute of each service data, and extracting the true value from the message data according to the splicing sequence;
and the restoring module is used for restoring the service data by utilizing the real value and the corresponding data attribute.
11. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the data transmission method of any one of claims 1 to 4 and/or 5 to 8 when executing the computer program.
12. A computer-readable storage medium, having stored thereon computer-executable instructions, which, when loaded and executed by a processor, carry out a data transmission method according to any one of claims 1 to 4 and/or claims 5 to 8.
CN202210939360.2A 2022-08-05 2022-08-05 Data transmission method, data sending end, data receiving end and related equipment Pending CN115314453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210939360.2A CN115314453A (en) 2022-08-05 2022-08-05 Data transmission method, data sending end, data receiving end and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210939360.2A CN115314453A (en) 2022-08-05 2022-08-05 Data transmission method, data sending end, data receiving end and related equipment

Publications (1)

Publication Number Publication Date
CN115314453A true CN115314453A (en) 2022-11-08

Family

ID=83860554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210939360.2A Pending CN115314453A (en) 2022-08-05 2022-08-05 Data transmission method, data sending end, data receiving end and related equipment

Country Status (1)

Country Link
CN (1) CN115314453A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140082484A1 (en) * 2012-09-20 2014-03-20 Tencent Technology (Shenzhen) Company Limited Method and apparatus for obtaining information
CN108234393A (en) * 2016-12-14 2018-06-29 北京京东尚科信息技术有限公司 Optimize the method and device of data link layer message
CN110825764A (en) * 2018-07-23 2020-02-21 北京国双科技有限公司 SQL script generation method, system, storage medium and processor
CN111343110A (en) * 2018-12-19 2020-06-26 中国电信股份有限公司 Message processing method, SDN switch and computer readable storage medium
KR20200107136A (en) * 2019-03-06 2020-09-16 주식회사 코코링크 High efficient data transporting method between computing devices
JP2022040724A (en) * 2020-08-31 2022-03-11 楽天グループ株式会社 Communication system, transmission device, reception device, communication method, and program
CN114448719A (en) * 2022-03-08 2022-05-06 中国工商银行股份有限公司 Message interaction method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140082484A1 (en) * 2012-09-20 2014-03-20 Tencent Technology (Shenzhen) Company Limited Method and apparatus for obtaining information
CN108234393A (en) * 2016-12-14 2018-06-29 北京京东尚科信息技术有限公司 Optimize the method and device of data link layer message
CN110825764A (en) * 2018-07-23 2020-02-21 北京国双科技有限公司 SQL script generation method, system, storage medium and processor
CN111343110A (en) * 2018-12-19 2020-06-26 中国电信股份有限公司 Message processing method, SDN switch and computer readable storage medium
KR20200107136A (en) * 2019-03-06 2020-09-16 주식회사 코코링크 High efficient data transporting method between computing devices
JP2022040724A (en) * 2020-08-31 2022-03-11 楽天グループ株式会社 Communication system, transmission device, reception device, communication method, and program
CN114448719A (en) * 2022-03-08 2022-05-06 中国工商银行股份有限公司 Message interaction method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马赛牧;王晶;: "基于文件拆分和缓存预测的日志文件传输算法", 电信工程技术与标准化, no. 08 *

Similar Documents

Publication Publication Date Title
US20170324846A1 (en) Hardware-based packet editor
US7966425B2 (en) Header compression in messages
CN108696899B (en) SIP message transmitting and receiving method and transmitting and receiving device
CN108880875B (en) Log message transmission method and device
CN111541521B (en) Data packet length identification method and system
JP2014526098A (en) Method and system for downloading font files
CN113890897B (en) Message processing method and related device
CN105577480A (en) Monitoring method and device of network connection performances
CN110515797A (en) A kind of data processing method, device, equipment and computer readable storage medium
CN115314453A (en) Data transmission method, data sending end, data receiving end and related equipment
CN111478864A (en) Data packet processing method and device, electronic equipment and storage medium
CN117201601A (en) Internet of things equipment access method, device, equipment and storage medium
US20230106217A1 (en) Web-end video playing method and apparatus, and computer device
CN109617708A (en) A kind of compression method burying a log, equipment and system
CN111063347B (en) Real-time voice recognition method, server and client
CN110896391B (en) Message processing method and device
CN102891732A (en) Data sending method and device and data receiving method and device
CN102957633A (en) Data packing and transmitting method and data packing and transmitting system for message-oriented middleware
CN110795388A (en) Binary file processing method, system, equipment and readable storage medium
CN114401223B (en) Information processing device and method
CN116436909A (en) File transmission method, device, equipment and storage medium
CN113411234B (en) Interface testing method, system and computer readable storage medium
CN109062708B (en) Data sending method, receiving method and device
CN115314544B (en) TCP data unidirectional transmission method, device, equipment and medium
CN116367142B (en) 5G-based network traffic acquisition system, method, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240425

Address after: Room 1801, 18th Floor, Jiyun Investment Building, No. 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province, 450047

Applicant after: Zhengzhou Inspur Data Technology Co.,Ltd.

Country or region after: China

Address before: 250101 room s311, building S05, Inspur Science Park, No. 1036, Inspur Road, Jinan pilot Free Trade Zone, Jinan, Shandong Province

Applicant before: Ji'nan tide data Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right