CN110650079B - Information transmission method, device, terminal, system and storage medium - Google Patents

Information transmission method, device, terminal, system and storage medium Download PDF

Info

Publication number
CN110650079B
CN110650079B CN201910996046.6A CN201910996046A CN110650079B CN 110650079 B CN110650079 B CN 110650079B CN 201910996046 A CN201910996046 A CN 201910996046A CN 110650079 B CN110650079 B CN 110650079B
Authority
CN
China
Prior art keywords
information
target
message
preset
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910996046.6A
Other languages
Chinese (zh)
Other versions
CN110650079A (en
Inventor
文曦畅
钟德财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910996046.6A priority Critical patent/CN110650079B/en
Publication of CN110650079A publication Critical patent/CN110650079A/en
Application granted granted Critical
Publication of CN110650079B publication Critical patent/CN110650079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an information transmission method, a device, a terminal, a system and a storage medium, wherein a message sending end processes target first information in a packet header of a message acquired based on a preset information acquisition rule according to a preset processing rule to obtain target second information, the target second information replaces the target first information in the message to generate a target message, and the target message is transmitted to a message receiving end so that the message receiving end can restore the target message into the message. Based on the invention, the bytes in the packet header occupied by the non-expansibility field in the transmission protocol can be reduced, thereby improving the utilization rate and the expandability of the bandwidth.

Description

Information transmission method, device, terminal, system and storage medium
Technical Field
The present invention relates to the field of information transmission technologies, and in particular, to an information transmission method, apparatus, terminal, system, and storage medium.
Background
With the rapid development of internet technology, more and more customers choose to use Virtual Private Networks (VPNs) as the transmission of service data packets.
Although the existing VPN transmission protocol can realize message transmission, the non-extension field of the transmission protocol needs to occupy the bytes in the packet header and the non-extension bytes occupy more bytes, which results in the problems of low bandwidth utilization rate and poor expandability.
In view of the above, it is an urgent need to solve the problem of how to provide an information transmission method, apparatus, terminal, system and storage medium to improve bandwidth utilization and scalability.
Disclosure of Invention
In view of the above, the present invention provides an information transmission method, apparatus, terminal, system and storage medium, so as to improve bandwidth utilization and scalability.
In order to achieve the above object, the following solutions are proposed:
the first aspect of the invention discloses an information transmission method, which is applied to a message sending end and comprises the following steps:
acquiring target first information in a packet header of a message based on a preset information acquisition rule; the target first information is all/partial information in the intranet information of the packet header;
processing the target first information according to a preset processing rule to obtain target second information, wherein the target second information is smaller than the target first information;
replacing the target first information in the message with the target second information to generate a target message;
transmitting the target message to a message receiving end so that the message receiving end can restore the target message into the message;
the processing the target first information according to the preset processing rule to obtain the target second information comprises: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; and taking the hash value of the target first information as target second information.
Optionally, the method further includes:
acquiring information in a packet header of a message sample based on the information acquisition rule;
processing the first information according to the processing rule to obtain second information;
and generating a first corresponding relation, wherein the first corresponding relation represents that the first information corresponds to the second information.
Optionally, the obtaining target first information in the packet header of the packet based on the preset information obtaining rule includes:
and acquiring information of a preset bit in a packet header of the message as target first information based on a preset information acquisition rule.
The second aspect of the present invention discloses an information transmission method, which is applied to a message receiving end, and comprises:
receiving a target message sent by a message sending end;
determining first information corresponding to target second information in the target message according to a preset corresponding relation between the first information and the second information; the preset second information corresponding to the first information is obtained by processing the first information according to a preset processing rule;
replacing the target second information in the target message with the determined first information to obtain a message;
the target message is obtained by processing the message at the message sending end; processing the first information according to a preset processing rule to obtain the second information, wherein the processing rule comprises the following steps: performing hash calculation on the first information according to a preset hash algorithm to obtain a hash value of the first information; and taking the hash value of the first information as the second information.
Optionally, the generating process of the preset corresponding relationship between the first information and the second information includes:
receiving a message sample sent by the message sending end;
acquiring first information in a packet header of the message sample based on a preset information acquisition rule;
processing the first information according to the processing rule to obtain second information and generating a second corresponding relation; the second correspondence represents correspondence between the first information and the second information.
A third aspect of the present invention discloses an information transmission apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring target first information in a packet header based on a preset information acquisition rule, and the target first information is all/partial information in intranet information of the packet header;
the target second information determining unit is used for processing the target first information according to a preset processing rule to obtain target second information, and the target second information is smaller than the target first information; the processing the target first information according to the preset processing rule to obtain the target second information includes: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; taking the hash value of the target first information as target second information;
a target message generating unit, configured to replace the target first information in the target message with the target second information to generate a target message;
and the first transmission unit is used for outputting the target message to a message receiving end so that the message receiving end can restore the target message into the message.
A fourth aspect of the present invention discloses an information transmission apparatus, including:
the receiving unit is used for receiving a target message sent by a message sending end;
the determining unit is used for determining first information corresponding to target second information in the target message according to a preset corresponding relation between the first information and the second information; the preset second information corresponding to the first information is obtained by processing the first information according to a preset processing rule;
a replacing unit, configured to replace the second information in the target message with the determined first information to obtain a message; the target message is obtained by processing the message at the message sending end; processing the first information according to a preset processing rule to obtain the second information, wherein the processing rule comprises the following steps: performing hash calculation on the first information according to a preset hash algorithm to obtain a hash value of the first information; and taking the hash value of the first information as the second information.
A fifth aspect of the present invention discloses a terminal, including: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is configured to store a program for implementing the information transmission method as disclosed in any one of the first aspects of the present invention.
A sixth aspect of the present invention discloses a final information transmission system, including:
the message sending end is used for obtaining target first information in a packet header of a message based on a preset information obtaining rule; the target first information is all/partial information in the intranet information of the packet header; processing the target first information according to a preset processing rule to obtain target second information, wherein the target second information is smaller than the target first information; replacing the target first information in the message with the target second information to generate a target message; transmitting the target message to a message receiving end; the processing the target first information according to the preset processing rule to obtain the target second information includes: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; taking the hash value of the target first information as target second information;
the message receiving end is used for receiving the target message sent by the message sending end; determining first information corresponding to second information in the target message according to a preset corresponding relation between the first information and the second information; the preset second information corresponding to the first information is obtained by processing the first information according to a preset processing rule; replacing the determined first information with the target second information in the target message to obtain a message, wherein the target message is obtained by processing the message at the message sending end; processing the first information according to a preset processing rule to obtain the second information, wherein the processing rule comprises the following steps: performing hash calculation on the first information according to a preset hash algorithm to obtain a hash value of the first information; and taking the hash value of the first information as the second information.
A seventh aspect of the present invention discloses a storage medium having stored therein computer-executable instructions for performing the information transmission method as disclosed in any one of the first aspects of the present invention.
Based on the foregoing embodiments of the present invention, an information transmission method, an apparatus, a terminal, a system, and a storage medium are provided, where a message sending end obtains target first information in a packet header of a message based on a preset information obtaining rule, where the target first information is all/part of information in intranet information of the packet header, and processes the target first information according to a preset processing rule to obtain target second information, and then replaces the target first information in the message with the target second information to generate a target message, and transmits the target message to a message receiving end, where the message receiving end receives the target message sent by the message, and determines first information corresponding to target second information in the target message according to a correspondence between the preset first information and the preset second information, and the preset second information corresponding to the first information is the first information according to the preset processing rule And finally, replacing the determined first information with the target second information in the target message to obtain a message after information is processed. According to the technical scheme provided by the invention, the message sending end processes the target first information according to the preset processing rule to obtain the target second information smaller than the target first information, replaces the target first information with the obtained target second information to obtain the target message, and sends the obtained target message to the message receiving end so that the message receiving end can restore the target message into the message, therefore, the bytes in the packet header required to be occupied by the non-expansibility field in the transmission protocol can be reduced, and the utilization rate and the expandability of the bandwidth are further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only 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 schematic flowchart of an information transmission method according to an embodiment of the present invention;
fig. 2 is an effect diagram of the message receiving end processing 36-bit IPv6 quintuple according to the preset Hash algorithm to obtain a 4-bit Hash value according to the embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for generating a first corresponding relationship according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating another information transmission method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating another information transmission method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an information transmission apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an information transmission system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It can be known from the above background art that the bytes occupied by the non-extension field of the existing VPN transmission protocol are the bytes in the packet header, so that more bytes are occupied by the non-extension field, which results in more bytes occupied by the packet header, and more bytes occupied by the packet header result in a larger proportion of the bytes occupied by the packet header in the packet, thereby resulting in a low bandwidth utilization. For example, the header of the IPV4 transmission protocol is generally about 60 bytes, and if the packet has 64 bytes in total, only the header occupies 60 bytes, so that the bandwidth utilization rate is only about 50%, and the bandwidth utilization rate is very low.
Therefore, embodiments of the present invention provide an information transmission method, apparatus, terminal, system, and storage medium, which can reduce bytes in a packet header that a non-extensible field in a transmission protocol needs to occupy, thereby improving a bandwidth utilization rate and extensibility.
As shown in fig. 1, an embodiment of the present invention provides a flowchart of an information service method. The information service method comprises the following steps:
s101: and the message sending end establishes connection with the message receiving end.
In the process of executing step S101, the message sending end and the message receiving end establish a VPN connection.
S102: the message sending end determines a message sample, and the intranet information of the packet head of the message sample comprises first information.
It should be noted that the first information may be any one or more of an IP header, a VPN quintuple, and a data packet header in the packet header, and the first information may also include other contents in the intranet information, which may be set according to practical applications, and the embodiment of the present invention is not limited.
S103: and the message sending end transmits the determined message sample to the message receiving end.
In the process of specifically executing step S103, after determining the message sample, the message sending end transmits the determined message sample to the message receiving end.
S104: the message receiving end obtains first information in the message sample based on a preset information obtaining rule.
In the specific process of executing step S104, after receiving the message sample transmitted by the message sending end, the message receiving end obtains the first information in the message sample based on the preset information obtaining rule. For example, when the first information in the message sample is an IPv6 quintuple in the intranet information of the packet header, the message receiving end obtains an IPv6 quintuple in the message sample after receiving the message sample transmitted by the message transmitting end.
S105: and the message receiving end processes the first information according to a preset processing rule to obtain second information and generates a second corresponding relation.
And the second corresponding relation represents that the first information corresponds to the second information.
It should be noted that, a processing rule is preset, the preset processing rule may be a Hash algorithm, the first information is processed according to the preset Hash algorithm to obtain a Hash value, the obtained Hash value is determined as the second information, and the processing rule may be set according to an actual application, which is not limited in the embodiment of the present invention.
It should be noted that the Hash algorithm refers to converting an input of any length into a Hash value of a fixed length, i.e., a Hash value, by the Hash algorithm.
In the process of specifically executing step S105, the message receiving end processes the first information according to a preset Hash algorithm to obtain a Hash value, uses the obtained Hash value as the second information, and generates a second correspondence for representing correspondence between the first information and the second information.
For example, when the first information in the packet sample is a 36-bit IPv6 quintuple in the intranet information of the packet header, after receiving the packet sample, the packet receiving end processes the 36-bit IPv6 quintuple according to the preset Hash algorithm, so as to obtain a 4-bit Hash value, as shown in fig. 2, an effect diagram is shown in which the packet receiving end processes the 36-bit IPv6 quintuple according to the preset Hash algorithm, so as to obtain the 4-bit Hash value.
S106: the message sending end obtains target first information in a packet header of a message based on a preset information obtaining rule.
The target first information is all/partial information in the intranet information of the packet header.
It should be noted that, the message sending end obtains first information in a packet header of the message based on a preset information obtaining rule (for convenience of distinguishing, the first information here is temporarily referred to as target first information), and the target first information may be any one or more of an IP header, a VPN quintuple, and a data packet header in intranet information of the packet header of the message, and may be set according to an actual application, which is not limited in the embodiment of the present invention.
In the process of specifically executing step S106, the message sending end uses the information of the preset bit in the packet header of the message, which is obtained based on the preset information obtaining rule, as the target first information (i.e., the first information in the obtained packet header of the message).
It should be noted that the preset bits may be bits 3 to 39 in the packet header of the packet, and when the preset bits may be bits 3 to 39 in the packet header of the packet, the information of the preset bits is the information in bits 3 to 39 in the packet header of the packet. The present invention can be set according to practical applications, and the embodiments of the present invention are not limited.
S107: and the message sending end processes the target first information according to a preset processing rule to obtain target second information.
It should be noted that the target second information is smaller than the target first information.
It should be noted that the preset processing rule may be a Hash algorithm, and when the preset processing rule is the Hash algorithm, the target first information is processed according to the preset processing rule to obtain a Hash value, and the obtained Hash value is used as the target second information.
In the process of specifically executing step S107, the message sending end performs Hash calculation on the target first information according to a preset Hash algorithm to obtain a Hash value of the target first information, and uses the Hash value of the target first information as the target second information.
S108: and the message sending end replaces the target first information in the message with the target second information to generate a target message.
In the process of specifically executing step S108, after the message sending end processes the target first information according to the preset Hash algorithm to obtain the Hash value of the target first information, the obtained Hash value of the target first information is used as the target second information to replace the target first information in the message, so as to generate the target message.
It should be noted that the target message is smaller than the message.
S109: and the message sending end transmits the target message to the message receiving end.
S110: and the message receiving end determines first information corresponding to the target second information in the target message according to the preset corresponding relation between the first information and the second information.
It should be noted that, according to the preset correspondence between the first information and the second information, the message receiving end determines that the first information corresponding to the target second information in the target message information is the same as the target first information in the packet header of the message sending end.
S111: and the message receiving end replaces the determined first information with the target second information in the target message to obtain a message.
Further, in the embodiment of the present invention, the preset information obtaining rule adopted when the message sending end and the message receiving end obtain the first information from the message is the same, and the preset processing rule adopted when the message sending end and the message receiving end process the obtained first information to obtain the second information is also the same, so that the message finally obtained by the message receiving end is the same as the message sent by the message sending end.
An information transmission method provided by an embodiment of the present invention includes firstly, establishing a connection between a message sending end and a message receiving end, the message sending end transmitting a determined message sample to the message receiving end, the message receiving end obtaining first information in the message sample based on a preset information obtaining rule, processing the first information according to a preset processing rule to obtain second information, and generating a second correspondence relationship, secondly, obtaining target first information in a header of the message by the message sending end, the target first information being all or part of intranet information of the header, processing the target first information according to the preset processing rule to obtain target second information, replacing the target first information in the message with the target second information to generate a target message, and transmitting the target message to the message receiving end, after receiving the target message, according to the preset correspondence relationship between the first information and the second information, and determining first information corresponding to the second target information in the target message, and replacing the second target information in the target message with the determined first information to obtain the message. According to the technical scheme provided by the invention, the message sending end processes the target first information according to the preset processing rule to obtain the target second information smaller than the target first information, replaces the target first information with the obtained target second information to obtain the target message, and sends the obtained target message to the message receiving end so that the message receiving end can restore the target message into the message, therefore, the bytes in the packet header required to be occupied by the non-expansibility field in the transmission protocol can be reduced, and the utilization rate and the expandability of the bandwidth are further improved.
Further, in the information transmission method provided in the embodiment of the present invention, after the connection is established between the message sending end and the message receiving end, the message sending end not only transmits the determined message sample to the message receiving end, so that the message receiving end establishes the second corresponding relationship, but also processes the message sample, and establishes the first corresponding relationship at the message sending end, referring to fig. 3, which specifically includes the following steps:
s301: the message sending end obtains first information in a message sample based on a preset information obtaining unit.
S302: and the message sending end processes the first information according to a preset processing rule to obtain second information.
In the process of specifically executing step S302, the preset processing rule is a preset Hash algorithm, the message sending end processes the first information according to the preset Hash algorithm to obtain a Hash value, and uses the obtained Hash value as the second information.
For example, when the first information in the packet sample is a 36-bit IPv6 quintuple in the intranet information of the packet header, after receiving the packet sample, the packet sending end processes the 36-bit IPv6 quintuple according to a preset Hash algorithm, so as to obtain a 4-bit Hash value.
S303: and the message sending end generates a first corresponding relation according to the obtained second information.
It should be noted that the first correspondence relationship is used to represent correspondence between the first information and the second information.
In the process of specifically executing step S303, the message sending end processes the first information according to a preset Hash algorithm to obtain a Hash value, uses the obtained Hash value as the second information, and generates a first corresponding relationship for representing the first information and the second information.
In the embodiment of the present invention, after the connection between the message sending end and the message receiving end is established, the message sending end not only sends the determined message sample to the message receiving end, but also processes the first information included in the packet header intranet information of the message sample according to the preset processing rule to obtain the second information, and generates the first corresponding relationship for representing the correspondence between the first information and the second information, so that the message sending end can be used as the message receiving end, and the message receiving end can be used as the message sending end, thereby implementing the information transmission method provided by the present invention.
The following describes an information transmission method provided by the embodiment of the present invention from the perspective of a message sending end and a message receiving end, respectively.
Referring to fig. 4, a schematic flow chart of another information transmission method provided in the embodiment of the present invention is shown, where the information transmission method is applied to a message sending end, and specifically includes the following steps:
s401: the message sending end obtains target first information in a packet header of a message based on a preset information obtaining rule.
The target first information is all/partial information in the intranet information of the packet header.
S402: and the message sending end processes the target first information according to a preset processing rule to obtain target second information.
It should be noted that the target second information is smaller than the target first information.
It should be noted that the preset processing rule may be a Hash algorithm, and specific contents of the preset processing rule are related, and the inventor may set the processing rule according to his own needs, which is not limited in the embodiment of the present application.
In the specific process of executing step S402, the target first information is processed according to a preset Hash algorithm to obtain a Hash value of the target first information, and the Hash value of the target first information is used as the target second information.
S403: and the message sending end replaces the target first information in the message with the target second information to generate a target message.
S404: the message sending end transmits the target message to the message receiving end so that the message receiving end can restore the target message into the message.
The method for the message receiving end to restore the target message into the message may be as follows: after receiving a target message sent by a message sending end, a message receiving end determines first information corresponding to target second information according to a preset corresponding relation between the first information and the second information, and replaces the target second information with the determined first information to obtain the message.
The specific principle and the implementation process of each step in the information transmission method disclosed in the embodiment of the present invention are the same as the specific implementation principle and the implementation process of steps S106 to S109 disclosed in the embodiment of fig. 1, and reference may be made to the corresponding parts disclosed in the embodiment of fig. 1, which are not described herein again.
The information transmission method provided by the embodiment of the invention is applied to a message sending end, the target first information in the packet header of the message is obtained based on the preset information obtaining rule, then the target first information is processed according to the preset processing rule to obtain the target second information, the target first information is replaced by the target second information to obtain the target message, and the obtained target message is sent to a message receiving end, so that the message receiving end can restore the target message into the message, the bytes in the packet header occupied by the non-expansibility field in the transmission protocol can be reduced, and the utilization rate and the expandability of the bandwidth are further improved.
Referring to fig. 5, a schematic flow chart of another information transmission method provided in the embodiment of the present invention is shown, where the information transmission method is applied to a message receiving end, and specifically includes the following steps:
s501: and the message receiving end receives the target message sent by the message sending end.
S502: and the message receiving end determines first information corresponding to the target second information in the target message according to the preset corresponding relation between the first information and the second information.
It should be noted that the preset second information corresponding to the first information is obtained by processing the first information according to a preset processing rule. For example, when the preset processing rule is a hash algorithm, the hash value of the first information is obtained by performing hash calculation on the first information according to the preset hash algorithm, and the hash value of the first information is used as the second information.
S503: and the message receiving end replaces the determined first information with the target second information in the target message to obtain a message.
It should be noted that the target message is obtained by processing the message at the message sending end, for example, the target message is generated by the message sending end obtaining target first information in a packet header of the message based on a preset information obtaining rule, processing the target first information according to the processing rule to obtain target second information, and replacing the target first information in the message with the target second information, where the target second information is smaller than the target first information.
The specific principle and the implementation process of each step in the information transmission method disclosed in the embodiment of the present invention are the same as the specific implementation principle and the implementation process of steps S110 to S111 disclosed in fig. 1 in the embodiment of the present invention, and reference may be made to the corresponding parts disclosed in fig. 1 in the embodiment of the present invention, which are not described herein again.
The information transmission method provided by the embodiment of the invention is applied to the message receiving end, after the message receiving end receives the target message sent by the message sending end, the first information corresponding to the target second information is determined according to the preset corresponding relation between the first information and the second information, and the determined first information is used for replacing the target second information to obtain the message, so that the bytes in the packet header required to be occupied by the non-expansibility field in the transmission protocol can be reduced, and the utilization rate and the expandability of the bandwidth are further improved.
Corresponding to the information transmission method disclosed in the above embodiment of the present invention, referring to fig. 6, an embodiment of the present invention further provides a schematic structural diagram of an information transmission apparatus, where the information transmission apparatus 600 includes:
a first obtaining unit 601, configured to obtain, based on a preset information obtaining rule, target first information in a packet header, where the target first information is all/part of information in intranet information of the packet header.
A target second information determining unit 602, configured to process the target first information according to a preset processing rule to obtain target second information, where the target second information is smaller than the target first information; the processing of the target first information according to the preset processing rule to obtain the target second information includes: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; and taking the hash value of the target first information as the target second information.
And a target message generating unit 603, configured to replace the target first information in the target message with the target second information to generate a target message.
The first transmission unit 604 is configured to output the target packet to the packet receiving end, so that the packet receiving end can restore the target packet to a packet.
The specific principle and the implementation process of each unit in the information transmission device disclosed in the above embodiment of the present invention are the same as those of the information transmission method disclosed in fig. 4 in the above embodiment of the present invention, and reference may be made to corresponding parts in the information transmission method disclosed in fig. 4 in the above embodiment of the present invention, and details are not repeated here.
In the information transmission apparatus provided in the embodiment of the present invention, the obtaining unit obtains the target first information in the packet header of the packet based on the preset information obtaining rule, the target second information determining unit processes the target first information according to the preset processing rule to obtain the target second information, the target second information replaces the target first information with the target second information to obtain the target packet, and the transmission unit sends the obtained target packet to the packet receiving end, so that the packet receiving end can reduce the bytes in the packet header that need to be occupied by the non-extensible field in the transmission protocol, and further improve the utilization rate and the extensibility of the bandwidth.
Preferably, the information transmission apparatus 600 further includes: the device comprises a second acquisition unit, a processing unit and a first corresponding relation generation unit.
And the second obtaining unit is used for obtaining the first information of the packet header of the message sample based on the information obtaining rule.
And the processing unit is used for processing the first information according to the processing rule to obtain second information.
And the first corresponding relation generating unit is used for generating a first corresponding relation, and the first corresponding relation represents that the first information corresponds to the second information.
In the embodiment of the present invention, after the connection between the message sending end and the message receiving end is established, the message sending end not only sends the determined message sample to the receiving end, but also processes the first information included in the packet header intranet information of the message sample according to the preset processing rule to obtain the second information, and generates the first corresponding relationship for representing the correspondence between the first information and the second information, so that the message sending end can be used as the message receiving end, and the message receiving end can be used as the message sending end, thereby implementing the information transmission method provided by the present invention.
Preferably, the first obtaining unit 601 includes: a subunit is acquired.
And the obtaining subunit is configured to obtain, based on a preset information obtaining rule, information of a preset bit in a packet header of the packet as the target first information.
Corresponding to the information transmission method disclosed in the above embodiment of the present invention, referring to fig. 7, an embodiment of the present invention further provides a schematic structural diagram of another information transmission apparatus, where the information transmission apparatus 700 includes:
a receiving unit 701, configured to receive a target packet sent by a packet sending end.
A determining unit 702, configured to determine, according to a preset correspondence between first information and second information, first information corresponding to target second information in a target message; the preset second information corresponding to the first information is obtained by processing the first information according to a preset processing rule.
A replacing unit 703, configured to replace the second information in the target message with the determined first information to obtain a message; the target message is obtained by processing the message at the message sending end; processing the first information according to a preset processing rule to obtain second information, wherein the processing rule comprises the following steps: performing hash calculation on the first information according to a preset hash algorithm to obtain a hash value of the first information; and taking the hash value of the first information as the second information.
The specific principle and the implementation process of each unit in the information transmission device disclosed in the above embodiment of the present invention are the same as those of the information transmission method disclosed in fig. 5 in the above embodiment of the present invention, and reference may be made to corresponding parts in the information transmission method disclosed in fig. 5 in the above embodiment of the present invention, and details are not repeated here.
In the information service device provided in the embodiment of the present invention, the receiving unit receives a target message sent by the message sending end, the determining unit determines, according to a correspondence between preset first information and preset second information, first information corresponding to the target second information, and the replacing unit replaces the target second information with the determined first information to obtain a message, so that bytes in a packet header that need to be occupied by a non-extensible field in a transmission protocol can be reduced, and thus, a utilization rate and extensibility of a bandwidth are improved.
Preferably, the determining unit 702 includes: the message sample receiving unit, the third acquiring unit and the second corresponding relation generating unit.
And the message sample receiving unit is used for receiving the message sample sent by the message sending end.
And the third obtaining unit is used for obtaining the first information in the packet header of the message sample based on a preset information obtaining rule.
The second corresponding relation generating unit is used for processing the first information according to the processing rule to obtain second information and generating a second corresponding relation; the second corresponding relation represents that the first information corresponds to the second information.
An embodiment of the present invention further provides a terminal, referring to fig. 8, including: a processor 801 and a memory 802.
The processor 801 and the memory 802 are connected via a communication bus, wherein the processor is configured to call and execute a program stored in the memory 802.
The memory 802 is used for storing programs, and the programs are used for realizing the information transmission method provided by any embodiment of the invention.
Corresponding to the information transmission method disclosed in the above embodiment of the present invention, referring to fig. 9, an embodiment of the present invention further provides a schematic structural diagram of an information transmission system, where the information transmission system 900 includes: a message sending terminal 901 and a message receiving terminal 902.
A message sending end 901, configured to obtain target first information in a packet header of a message based on a preset information obtaining rule, where the target first information is all/part information in intranet information of the packet header; processing the target first information according to a preset processing rule to obtain target second information, wherein the target second information is smaller than the target first information; replacing the target first information in the message with the target second information to generate a target message; and transmitting the target message to a message receiving end.
The method comprises the steps of carrying out Hash calculation on the target first information according to a preset Hash algorithm to obtain a Hash value of the target first information, and using the Hash value of the target first information as the target second information.
A message receiving end 902, configured to receive a target message sent by a message sending end; determining first information corresponding to second information in the target message according to a preset corresponding relation between the first information and the second information; the preset second information corresponding to the first information is obtained by processing the first information according to a preset processing rule; and replacing the determined first information with the target second information in the target message to obtain a message.
The target message is obtained by processing the message at the message sending end, and the first information is processed according to the preset processing rule to obtain the second information, and the method comprises the following steps: performing hash calculation on the first information according to a preset hash algorithm to obtain a hash value of the first information; and taking the hash value of the first information as second information.
The specific principle and the implementation process of the message sending end and the message receiving unit in the information transmission system disclosed in the embodiment of the present invention are the same as those of the information transmission method disclosed in fig. 1 in the embodiment of the present invention, and reference may be made to corresponding parts in the information transmission method disclosed in fig. 1 in the embodiment of the present invention, which are not described herein again.
In the information transmission system provided in the embodiment of the present invention, a message sending end processes target first information in a packet header of a message, which is obtained based on a preset information obtaining rule, according to a preset processing rule to obtain target second information, and after the target first information in the message is replaced by the target second information to generate a target message, the target message is transmitted to a message receiving end, and after the message receiving end receives the target message sent by the message sending end, the message receiving end determines first information corresponding to second information in the target message according to a preset correspondence between the first information and the second information, and replaces the target second information in the target message with the determined first information to obtain the message. According to the technical scheme provided by the invention, the message sending end processes the target first information according to the preset processing rule to obtain the target second information smaller than the target first information, replaces the target first information with the obtained target second information to obtain the target message, and sends the obtained target message to the message receiving end so that the message receiving end can restore the target message into the message, therefore, the bytes in the packet header required to be occupied by the non-expansibility field in the transmission protocol can be reduced, and the utilization rate and the expandability of the bandwidth are further improved.
Embodiments of the present invention provide a storage medium, where computer-executable instructions are stored to implement an information transmission method according to any embodiment of the present invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
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 application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (9)

1. An information transmission method is characterized in that the method is applied to a message sending end and comprises the following steps:
acquiring target first information in a packet header of a message based on a preset information acquisition rule; the target first information is all/partial information in the intranet information of the packet header;
the acquiring of the target first information in the packet header of the packet based on the preset information acquisition rule includes:
acquiring information of a preset bit in a packet header of the message as the target first information based on the preset information acquisition rule;
processing the target first information according to a preset processing rule to obtain target second information, wherein the target second information is smaller than the target first information;
replacing the target first information in the message with the target second information to generate a target message;
transmitting the target message to a message receiving end so that the message receiving end can restore the target message into the message;
the processing the target first information according to the preset processing rule to obtain the target second information comprises: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; and taking the hash value of the target first information as target second information.
2. The method of claim 1, further comprising:
acquiring the target first information in the packet header of the message sample based on the information acquisition rule;
processing the target first information according to the processing rule to obtain target second information;
and generating a first corresponding relation, wherein the first corresponding relation represents that the target first information corresponds to the target second information.
3. An information transmission method is applied to a message receiving end, and comprises the following steps:
receiving a target message sent by a message sending end;
determining target first information corresponding to target second information in the target message according to a preset corresponding relation between the target first information and the target second information; the preset target second information corresponding to the target first information is obtained by processing the target first information according to a preset processing rule;
replacing the determined target first information with the target second information in the target message to obtain a message;
the target message is obtained by processing the message at the message sending end; processing the target first information according to a preset processing rule to obtain the target second information, wherein the processing rule comprises the following steps: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; and taking the hash value of the target first information as the target second information.
4. The method according to claim 3, wherein the generation process of the preset correspondence between the target first information and the target second information comprises:
receiving a message sample sent by the message sending end;
acquiring the target first information in the packet header of the message sample based on a preset information acquisition rule;
processing the target first information according to the processing rule to obtain target second information and generating a second corresponding relation; the second corresponding relation represents that the target first information corresponds to the target second information.
5. An information transmission apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring target first information in a packet header of a message based on a preset information acquisition rule; the target first information is all/partial information in the intranet information of the packet header;
the target second information determining unit is used for processing the target first information according to a preset processing rule to obtain target second information, and the target second information is smaller than the target first information; the processing the target first information according to a preset processing rule to obtain target second information includes: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; taking the hash value of the target first information as target second information;
a target message generating unit, configured to replace the target first information in the target message with the target second information to generate a target message;
and the first transmission unit is used for outputting the target message to a message receiving end so that the message receiving end can restore the target message into the message.
6. An information transmission apparatus, comprising:
the receiving unit is used for receiving a target message sent by a message sending end;
a determining unit, configured to determine, according to a preset correspondence between target first information and target second information, the target first information corresponding to the target second information in the target message; the preset target second information corresponding to the target first information is obtained by processing the target first information according to a preset processing rule;
a replacing unit, configured to replace the determined target first information with the target second information in the target message to obtain a message; the target message is obtained by processing the message at the message sending end; processing the target first information according to a preset processing rule to obtain the target second information, wherein the processing rule comprises the following steps: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; and taking the hash value of the target first information as the target second information.
7. A terminal, comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is configured to store a program for implementing the information transmission method according to any one of claims 1 to 2 or for implementing the information transmission method according to any one of claims 3 to 4.
8. An information transmission system, comprising:
the message sending end is used for obtaining target first information in a packet header of the message based on a preset information obtaining rule; the target first information is all/partial information in the intranet information of the packet header; processing the target first information according to a preset processing rule to obtain target second information, wherein the target second information is smaller than the target first information; replacing the target first information in the message with the target second information to generate a target message; transmitting the target message to a message receiving end; the processing the target first information according to the preset processing rule to obtain the target second information includes: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; taking the hash value of the target first information as target second information;
the message receiving end is used for receiving the target message sent by the message sending end; determining the target first information corresponding to the target second information in the target message according to a preset corresponding relation between the target first information and the target second information; the preset target second information corresponding to the target first information is obtained by processing the target first information according to a preset processing rule; replacing the determined target first information with the target second information in the target message to obtain a message, wherein the target message is obtained by processing the message at the message sending end; processing the target first information according to a preset processing rule to obtain the target second information, wherein the processing rule comprises the following steps: performing hash calculation on the target first information according to a preset hash algorithm to obtain a hash value of the target first information; and taking the hash value of the target first information as the target second information.
9. A storage medium having stored thereon computer-executable instructions for performing the information transfer method of any one of claims 1-2 or for performing the information transfer method of any one of claims 3-4.
CN201910996046.6A 2019-10-18 2019-10-18 Information transmission method, device, terminal, system and storage medium Active CN110650079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910996046.6A CN110650079B (en) 2019-10-18 2019-10-18 Information transmission method, device, terminal, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910996046.6A CN110650079B (en) 2019-10-18 2019-10-18 Information transmission method, device, terminal, system and storage medium

Publications (2)

Publication Number Publication Date
CN110650079A CN110650079A (en) 2020-01-03
CN110650079B true CN110650079B (en) 2022-06-21

Family

ID=68994242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910996046.6A Active CN110650079B (en) 2019-10-18 2019-10-18 Information transmission method, device, terminal, system and storage medium

Country Status (1)

Country Link
CN (1) CN110650079B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109936492A (en) * 2017-12-15 2019-06-25 华为技术有限公司 A kind of methods, devices and systems by tunnel transmission message

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077272B (en) * 2014-06-23 2017-01-04 华为技术有限公司 A kind of method and apparatus of dictionary compression
CN108696492B (en) * 2017-04-12 2020-12-22 联芯科技有限公司 Method and device for processing IP message

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109936492A (en) * 2017-12-15 2019-06-25 华为技术有限公司 A kind of methods, devices and systems by tunnel transmission message

Also Published As

Publication number Publication date
CN110650079A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
Hui et al. The routing protocol for low-power and lossy networks (rpl) option for carrying rpl information in data-plane datagrams
EP3761591B1 (en) Tcp link configuration method, apparatus, and computer program product
CN102325076B (en) Method for discovering PMTU (Path Maximum Transfer Unit) and node
Palma Enabling the maritime Internet of Things: CoAP and 6LoWPAN performance over VHF links
CN107196834B (en) Message processing method and device
CN108200158A (en) Ask Transmission system, method, apparatus and storage medium
CN105897610A (en) Flow control method and device
EP4057576A1 (en) Packet encapsulating method and apparatus, and packet decapsulating method and apparatus
CN102427452B (en) Synchronize (SYN) message transmitting method and device and network equipment
CN106027599B (en) Data transmission channel establishing method, system and server
CN108809549B (en) Data transmission method and equipment
GB2592315A (en) Methods and systems for sending packets through a plurality of tunnels
CN110650079B (en) Information transmission method, device, terminal, system and storage medium
CN113497752B (en) Message sending method, first network equipment and network system
EP3297210A1 (en) Method for setting packet transmission mode and device
CN105939404B (en) The acquisition methods and device of NAT resource
US9942823B2 (en) Communication terminal, communication method, and communication program
CN108234325B (en) System based on IP anycast and message forwarding method
WO2015096734A1 (en) Downlink transmission method for service data, and packet data gateway
US20180248765A1 (en) Method for selecting negotiation counterpart, method for responding to discovery message, and related apparatus
CN106656813B (en) Data transmission method
CN110719178A (en) Network topology acquisition method and device
CN114827078A (en) Node access method and data transmission system
CN109981463B (en) Information processing method, device, gateway and storage medium
EP3896926A1 (en) Network device and packet processing method using same

Legal Events

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