CN115766914A - Message transmission method, device and system and electronic equipment - Google Patents

Message transmission method, device and system and electronic equipment Download PDF

Info

Publication number
CN115766914A
CN115766914A CN202211419794.6A CN202211419794A CN115766914A CN 115766914 A CN115766914 A CN 115766914A CN 202211419794 A CN202211419794 A CN 202211419794A CN 115766914 A CN115766914 A CN 115766914A
Authority
CN
China
Prior art keywords
transmission
data packets
message
instruction information
homogeneous
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
CN202211419794.6A
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.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information 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 Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202211419794.6A priority Critical patent/CN115766914A/en
Publication of CN115766914A publication Critical patent/CN115766914A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a message transmission method, a message transmission device, a message transmission system and electronic equipment. And the receiving end point receives the transmission message, analyzes the transmission message to obtain a plurality of data packets of the same type, and sends the plurality of data packets of the same type to the target terminal to complete message transmission. The method and the device realize that a plurality of data packets of the same type share the header of one transmission message, are different from the condition that one data packet corresponds to one transmission message in the traditional method, and reduce the bandwidth resource waste of the message in the transmission process caused by a plurality of message headers.

Description

Message transmission method, device and system and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and an electronic device for transmitting a packet.
Background
The virtual extended local area network tunnel technology is widely used in the current data center network, a message header of the virtual extended local area network tunnel occupies a large amount of byte resources, and a corresponding message is generated for each data packet with the same source address and the same destination address in the prior art, so that a plurality of messages occupy more byte resources, and especially serious bandwidth resource waste is caused for a plurality of small-byte messages in the transmission process.
Therefore, it is an urgent problem to provide a method for transmitting a message to reduce the waste of bandwidth resources during the transmission of the message.
Disclosure of Invention
The present disclosure provides a message transmission method, device, system and electronic device, which are used to solve the defect of bandwidth resource waste caused in the transmission process of a message in the prior art, and reduce the bandwidth resource waste in the transmission process of the message.
The present disclosure provides a message transmission method, applied to a sending endpoint, including:
acquiring a data packet and tunnel transmission instruction information of the data packet;
taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating transmission messages according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information;
and sending the transmission message to a receiving end point so that the receiving end point analyzes the transmission message to obtain a plurality of homogeneous data packets, and sending the homogeneous data packets to a target terminal.
According to a message transmission method provided by the present disclosure, the tunneling instruction information includes a source address and a destination address; the step of using the data packets with the same tunneling instruction information as the same type of data packets includes:
and under the condition that the source addresses and the destination addresses in the tunneling instruction information of the data packets are the same, determining the data packets to be a plurality of data packets of the same type.
According to the message transmission method provided by the present disclosure, generating a transmission message according to a plurality of homogeneous data packets and corresponding tunnel transmission instruction information includes:
determining a plurality of homogeneous data packets which are within a preset time interval range and do not exceed a preset number as a plurality of target homogeneous data packets;
and generating a transmission message according to the plurality of target homogeneous data packets and the corresponding tunnel transmission instruction information.
According to a message transmission method provided by the present disclosure, the transmission message comprises a header and a data part;
generating a transmission message according to the plurality of target homogeneous data packets and the corresponding tunnel transmission instruction information, wherein the generating of the transmission message comprises the following steps:
generating a header of the transmission message according to the tunnel transmission instruction information and the data packet sizes of the target homogeneous data packets;
and determining the plurality of target homogeneous data packets as the data part of the transmission message.
According to a packet transmission method provided by the present disclosure, the generating a header of the transmission packet according to the tunneling instruction information and the packet size of the plurality of target homogeneous packets includes:
generating a fixed part of the header of the transmission message according to the tunnel transmission instruction information;
and generating a variable part of the header of the transmission message according to the packet sizes of the target homogeneous packets.
The present disclosure also provides a message transmission method, applied to a receiving endpoint, including:
receiving a transmission message sent by a sending end, wherein the transmission message comprises a plurality of data packets of the same type and corresponding tunnel transmission instruction information, and the data packets of the same type are data packets with the same tunnel transmission instruction information;
analyzing the transmission message to obtain a plurality of data packets of the same type;
and sending the plurality of homogeneous data packets to a target terminal.
According to a packet transmission method provided by the present disclosure, parsing the transmission packet to obtain a plurality of homogeneous data packets includes:
analyzing the transmission message to obtain a header part and a data part of the transmission message; wherein the header includes a fixed portion and a variable portion, the variable portion including a packet size of a plurality of homogeneous packets;
determining the packet sizes of a plurality of homogeneous packets according to the variable part of the header of the transmission message;
and analyzing the data part according to the size of the data packet to obtain a plurality of data packets of the same type.
The present disclosure also provides a message transmission apparatus, applied to a sending endpoint, including:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a data packet and tunnel transmission instruction information of the data packet;
the generating unit is used for taking the data packets with the same tunnel transmission instruction information as the same type of data packets and generating transmission messages according to the plurality of the same type of data packets and the corresponding tunnel transmission instruction information;
and the sending unit is used for sending the transmission message to a receiving end point so that the receiving end point can analyze the transmission message to obtain a plurality of homogeneous data packets and send the homogeneous data packets to a target terminal.
The present disclosure also provides a message transmission apparatus, applied to a receiving endpoint, including:
the receiving unit is used for receiving a transmission message sent by a sending end point, wherein the transmission message comprises a plurality of homogeneous data packets and corresponding tunnel transmission instruction information, and the homogeneous data packets are data packets with the same tunnel transmission instruction information;
the analysis unit is used for analyzing the transmission message to obtain a plurality of homogeneous data packets;
and the forwarding unit is used for sending the plurality of homogeneous data packets to the target terminal.
The present disclosure also provides a message transmission system, including:
the sending end point is used for acquiring the data packet and the tunnel transmission instruction information of the data packet; taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating transmission messages according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information; sending the transmission message to a receiving end point;
the receiving end point is used for receiving the transmission message sent by the sending end point; analyzing the transmission message to obtain a plurality of data packets of the same type; and sending the homogeneous data packets to a target terminal.
The present disclosure also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the message transmission methods described above when executing the computer program.
The present disclosure also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the message transmission method as any one of the above.
The present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the message transmission method as in any one of the above.
According to the message transmission method, the message transmission device, the message transmission system and the electronic equipment, the data packets and the tunnel transmission instruction information of the data packets are obtained, the data packets with the same tunnel transmission instruction information are used as the same type of data packets, transmission messages are generated according to the plurality of the same type of data packets and the corresponding tunnel transmission instruction information, and the transmission messages are sent to the receiving end point. And the receiving end point receives the transmission message, analyzes the transmission message to obtain a plurality of data packets of the same type, and sends the plurality of data packets of the same type to the target terminal to complete message transmission. The method realizes that a plurality of data packets of the same type share the header of one transmission message, is different from the traditional method that one data packet corresponds to one transmission message, and reduces the bandwidth resource waste of the message in the transmission process caused by a plurality of message headers.
Drawings
In order to more clearly illustrate the technical solutions of the present disclosure or the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a virtual extensible lan tunneling technique in the prior art;
fig. 2 is a schematic diagram of a message structure based on the 4 th generation internet protocol in the prior art;
FIG. 3 is a schematic flow chart of message transmission in the prior art;
fig. 4 is a flow diagram of message transmission provided by the present disclosure;
fig. 5 is a schematic flow chart of a message transmission method provided in the present disclosure;
fig. 6 is a schematic structural diagram of a transmission packet provided by the present disclosure;
fig. 7 is a second schematic flow chart of a message transmission method provided by the present disclosure;
fig. 8 is a schematic flow chart of a message transmission apparatus provided in the present disclosure;
fig. 9 is a second schematic structural diagram of a message transmission apparatus provided in the present disclosure;
fig. 10 is a schematic diagram of an architecture of a message transmission system provided by the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device provided by the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the embodiments disclosed herein.
For ease of understanding, the terms to which the invention relates are explained herein.
The VxLAN is also called VxLAN (Virtual extensible Local Area Network), and is one of technologies of a data center Virtualization technology framework of NVO3 (Network Virtualization over Layer 3) defined by IETF (Internet Engineering Task Force), and 2 layers of data are encapsulated by using a three-Layer Protocol in a packet encapsulation mode of encapsulating Ethernet frames (Ethernet frames) of 2 layers into UDP (User Datagram Protocol) datagrams of 4 layers, so that two layers of data can be expanded within a three-Layer range, and requirements of large two-Layer Virtual migration and multiple tenants of a data center can be met.
In the VxLAN tunnel technology used in the current data center network, as shown in fig. 1, a sending end point and a receiving end point perform message transmission through the VxLAN tunnel. In the message structure based on IPv4 (4 th generation internet protocol), as shown in fig. 2, the message includes a message header, original Ethernet frames (Original Ethernet frames), and FCS (Frame Check Sequence, check Frame Sequence, i.e., checksum). The message Header includes an Outer MAC Header, an Outer IP Header, a UDP Header, and a VXLAN Header, which occupy 50 bytes in total. In an IPv6 (6 th generation internet protocol) based message structure, the message header occupies 70 bytes in total. As shown in fig. 3, in the prior art, for each data packet, a sending end point generates a message and sends the message to a receiving end point, and then the receiving end point analyzes each message to obtain a plurality of data packets, which causes serious waste of bandwidth resources in transmission of the message of the small-byte data packet.
The present disclosure aims to implement the packet transmission as shown in fig. 4, where a sending endpoint generates a packet according to a plurality of data packets meeting preset conditions (for example, having the same forwarding behavior or the same tunneling instruction information), sends the packet to a receiving endpoint, and the receiving endpoint analyzes the packet to obtain a plurality of data packets. Different from the case that each data packet in fig. 3 corresponds to one packet, the number of packets is reduced, that is, the resource occupation of the packet header is reduced, and the bandwidth resource waste of the packet in the transmission process caused by a plurality of packet headers is reduced.
The present disclosure provides a message transmission method, applied to a sending endpoint, as shown in fig. 5, including:
and S51, acquiring the data packet and the tunnel transmission instruction information of the data packet.
Specifically, the tunneling instruction information may include, as shown in fig. 6, a source address of a sending end point and a destination address of a receiving end point of a packet in the VxLAN tunnel, and information such as a version, a header length, a differentiated service, a total length, an identifier, a flag, a slice offset, a lifetime, a protocol, a header checksum, and the like of a generated packet.
And S52, taking the data packets with the same tunnel transmission instruction information as the same type of data packets, and generating a transmission message according to the plurality of the same type of data packets and the corresponding tunnel transmission instruction information.
Further, the tunneling instruction information includes a source address and a destination address, and the data packets having the same tunneling instruction information are used as the same type of data packets, specifically:
and S521, determining the plurality of data packets as a plurality of data packets of the same type under the condition that the source addresses and the destination addresses in the tunneling instruction information of the plurality of data packets are the same.
Optionally, a checksum may be generated according to the multiple data packets of the same type, and the checksum is used to check the integrity of the multiple data packets of the same type in the transmission of the packets. When the transmission message is generated according to the plurality of data packets of the same type and the corresponding tunnel transmission instruction information, the checksum can be added into the transmission message, so that the transmission message is generated according to the checksum, the plurality of data packets of the same type and the corresponding tunnel transmission instruction information.
And S53, sending the transmission message to a receiving end point, so that the receiving end point analyzes the transmission message to obtain a plurality of homogeneous data packets, and sending the homogeneous data packets to a target terminal.
In the embodiment of the disclosure, the data packets and the tunnel transmission instruction information of the data packets are acquired, the data packets with the same tunnel transmission instruction information are used as the same type of data packets, transmission messages are generated according to the plurality of the same type of data packets and the corresponding tunnel transmission instruction information, and the transmission messages are sent to the receiving end point. And the receiving end point receives the transmission message, analyzes the transmission message to obtain a plurality of data packets of the same type, and sends the plurality of data packets of the same type to the target terminal to complete the complete message transmission. The method and the device realize that a plurality of data packets of the same type share the header of one transmission message, are different from the condition that one data packet corresponds to one transmission message in the traditional method, and reduce the bandwidth resource waste of the message in the transmission process caused by a plurality of message headers.
According to the packet transmission method provided by the present disclosure, the transmission packet is generated according to the plurality of homogeneous data packets and the corresponding tunnel transmission instruction information, specifically, S522 to S523:
s522, determining a plurality of homogeneous data packets which are within a preset time interval range and do not exceed a preset number as a plurality of target homogeneous data packets.
And S523, generating a transmission message according to the plurality of target homogeneous data packets and the corresponding tunnel transmission instruction information.
Specifically, considering that the data packets have timeliness and the excessive data packets will cause excessive information contained in the message, and if the message is damaged, a large amount of information is lost, so that a time interval and the number of the data packets can be set, a plurality of data packets of the same type within a preset time interval range and not exceeding a preset number are determined as a plurality of target data packets of the same type, and a transmission message is generated according to the plurality of target data packets of the same type and corresponding tunnel transmission instruction information.
In the embodiment of the disclosure, by setting the interval preset time range and the preset number, the plurality of similar data packets within the interval preset time range and not exceeding the preset number are determined to be the plurality of target similar data packets, and the transmission message is generated according to the plurality of target similar data packets and the corresponding tunnel transmission instruction information, so that the timeliness of the data packets is ensured and the risk of data transmission is reduced.
According to the message transmission method provided by the present disclosure, the transmission message comprises a header part and a data part; step S523 is specifically S5231-S5232:
s5231, generating a header of the transmission message according to the tunneling instruction information and the packet size of the plurality of target homogeneous packets.
S5232, determining the plurality of target peer packets as the data portion of the transmission packet.
Wherein S5231 can be subdivided into S52311-S52312:
s52311, generating a fixed part of the header of the transmission message according to the tunneling instruction information.
S52312, generating a variable part of the header of the transmission packet according to the packet sizes of the plurality of target homogeneous packets.
Specifically, as shown in fig. 6, the transmission message includes a header and a data portion, and the header includes a fixed portion and a variable portion. The types of various information in the fixed part are well defined by the existing VxLAN tunnel technology, and the fixed part of the transmission message header can be generated according to the tunnel transmission instruction information. The variable part is a part of the type of information which is not specified in the existing VxLAN tunnel technology, and data can be written and filled in the variable part according to actual needs. Wherein, TLV (Type Length Value) is a start flag of the variable part, and when the TLV is obtained by parsing, it can be determined that the parsed content belongs to the variable part, which indicates that the data after the TLV is the size (Length) of a certain Type of data.
In the above example, the Option field in the IPv4 header is borrowed, the Option field can support 40 bytes at the longest, the TLV occupies 2 bytes except for the TLV, and the content can support 38 bytes. The variable part is used for describing the size of each data packet in the data part, so that during analysis, the data of the data part is segmented according to the size of each data packet described by the variable part to obtain a plurality of corresponding data packets, and on the basis that the content can support 38 bytes, if the size (length) of each data packet is identified by 2 bytes, the maximum combination of 19 data packets can be supported to generate a transmission message. In fig. 6, the sizes (lengths) of the data packets 1, 2, and 3 are a, B, and C bytes, respectively, and the sizes (lengths) of the data packets are stored after the TLV of the variable portion, that is, the sizes (lengths) of the stored 3 data packets occupy 6 bytes in total for a, B, and C, and the remaining portion can be filled to the number of bytes of the header conforming to the VxLAN tunneling technique.
In the above example, the Option field for the variable portion is only used as an example, other fields may be selected according to actual needs, 2 bytes in the variable portion for identifying the size of each data packet are also used as an example, and the byte size may be set according to actual needs.
In the embodiment of the disclosure, a fixed part of a header of a transmission message is generated according to the tunneling instruction information, a variable part of the header of the transmission message is generated according to the data packet size of a plurality of target data packets of the same kind, and the header of the transmission message is generated according to the tunneling instruction information and the data packet size of the plurality of target data packets of the same kind; and determining a plurality of target homogeneous data packets as a data part of the transmission message. Compared with the prior art that each data packet corresponds to one message, the method reduces the number of the transmission messages and also reduces resources occupied by headers of a plurality of transmission messages required by the plurality of transmission messages.
The present disclosure further provides a message transmission method, applied to a receiving endpoint, as shown in fig. 7, including:
s71, receiving a transmission message sent by a sending end, wherein the transmission message comprises a plurality of data packets of the same type and corresponding tunnel transmission instruction information, and the data packets of the same type are data packets with the same tunnel transmission instruction information.
And S72, analyzing the transmission message to obtain a plurality of data packets of the same type.
And S73, sending the homogeneous data packets to a target terminal.
Specifically, the data packet obtained by parsing the transmission packet may have built-in information, and the target terminal of the data packet may be determined according to the built-in information, and the data packet may be sent to the target terminal.
In the embodiment of the disclosure, the receiving end point receives the transmission message, analyzes the transmission message to obtain a plurality of similar data packets, and since the plurality of similar data packets share the transmission message, resource occupation of a plurality of message headers in the conventional method is reduced, and the plurality of similar data packets are sent to the target terminal, thereby realizing complete message transmission.
According to the message transmission method provided by the present disclosure, the header comprises a fixed part and a variable part, wherein the variable part comprises packet sizes of a plurality of packets of the same type;
step S72 includes S721-S723:
and S721, analyzing the transmission message to obtain a header part and a data part of the transmission message.
And S722, determining the data packet sizes of a plurality of data packets of the same type according to the variable part of the header of the transmission message.
And S723, analyzing the data part according to the size of the data packet to obtain a plurality of data packets of the same type.
Specifically, the receiving end analyzes the transmission packet to obtain a header and a data portion of the transmission packet, the size of each data packet (data packets of the same type) originally included in the transmission packet can be determined according to a variable portion of the header, and the data portion can be analyzed according to the size of the data packet to obtain a corresponding data packet.
In one example, the receiving end point parses the transmission packet, and determines the sizes of three packets (i.e. homogeneous packets) 1, 2, and 3 as a, B, and C, respectively, according to the variable part of the header of the transmission packet. The receiving end point analyzes the data part according to the information, the data with the size of 0-A (length) in the data part is determined as a data packet 1, then the data with the size of B (length) is read and determined as a data packet 2, and the data with the size of C (length) is read and determined as a data packet 3 in the same way, so that a plurality of data packets (data packets of the same kind) are obtained.
In the embodiment of the disclosure, the sizes of the data packets of a plurality of data packets of the same type are determined by analyzing the variable part of the header of the transmission message, the data part is analyzed according to the sizes of the data packets to obtain a plurality of data packets of the same type, the transmission message is analyzed, the plurality of data packets of the same type are accurately analyzed, and the integrity of data is ensured.
The following describes the message transmission apparatus provided in the embodiment of the present disclosure, and the message transmission apparatus described below and the message transmission method described above may be referred to correspondingly.
The present disclosure also provides a message transmission apparatus, as shown in fig. 8, which is applied to a sending endpoint, and includes:
the obtaining unit 81 is configured to obtain the data packet and the tunneling instruction information of the data packet.
A generating unit 82, configured to use the data packets with the same tunneling instruction information as the same-class data packets, and generate a transmission packet according to the multiple same-class data packets and the corresponding tunneling instruction information.
The sending unit 83 is configured to send the transmission packet to a receiving end point, so that the receiving end point analyzes the transmission packet to obtain a plurality of homogeneous data packets, and sends the plurality of homogeneous data packets to a target terminal.
In the embodiment of the present disclosure, by obtaining data packets and tunneling instruction information of the data packets, the data packets having the same tunneling instruction information are used as the same type of data packets, a transmission packet is generated according to a plurality of the same type of data packets and corresponding tunneling instruction information, the transmission packet is sent to a receiving endpoint, the plurality of the same type of data packets are sent to a target terminal, and complete packet transmission is completed. The method and the device realize that a plurality of data packets of the same type share the header of one transmission message, are different from the condition that one data packet corresponds to one transmission message in the traditional method, and reduce the bandwidth resource waste of the message in the transmission process caused by a plurality of message headers.
According to the message transmission device provided by the present disclosure, the tunneling instruction information includes a source address and a destination address; the generating unit 82 is specifically configured to:
and under the condition that the source addresses and the destination addresses in the tunneling instruction information of the multiple data packets are the same, determining the multiple data packets as multiple data packets of the same type.
According to the message transmission apparatus provided in the present disclosure, the generating unit 82 is specifically configured to:
determining a plurality of homogeneous data packets which are within a preset time interval range and do not exceed a preset number as a plurality of target homogeneous data packets;
and generating a transmission message according to the plurality of target homogeneous data packets and the corresponding tunnel transmission instruction information.
According to the message transmission device provided by the present disclosure, the transmission message comprises a header part and a data part; the generating unit 82 is specifically configured to:
generating a header of the transmission message according to the tunneling instruction information and the data packet size of the plurality of target homogeneous data packets;
and determining the target homogeneous data packets as the data part of the transmission message.
According to the message transmission apparatus provided in the present disclosure, the generating unit 82 is specifically configured to:
generating a fixed part of the header of the transmission message according to the tunnel transmission instruction information;
and generating a variable part of the header of the transmission message according to the packet sizes of the target homogeneous packets.
The present disclosure also provides a message transmission apparatus, as shown in fig. 9, which is applied to a receiving endpoint, and includes:
the receiving unit 91 is configured to receive a transmission packet sent by a sending end point, where the transmission packet includes multiple homogeneous data packets and corresponding tunneling instruction information, and the homogeneous data packets are data packets having the same tunneling instruction information.
And the analyzing unit 92 is configured to analyze the transmission packet to obtain a plurality of homogeneous data packets.
And the forwarding unit 93 is configured to send the multiple homogeneous data packets to the target terminal.
In the embodiment of the disclosure, the receiving end point receives the transmission message, analyzes the transmission message to obtain a plurality of data packets of the same type, and sends the plurality of data packets of the same type to the target terminal, so as to realize complete message transmission. Because a plurality of data packets of the same type share the transmission message, the method is different from the traditional method that one data packet corresponds to one transmission message, and reduces the bandwidth resource waste of the message in the transmission process caused by a plurality of message headers.
According to the packet transmission device provided in the present disclosure, the parsing unit 92 is specifically configured to:
analyzing the transmission message to obtain a header part and a data part of the transmission message; wherein the header includes a fixed portion and a variable portion, the variable portion including a plurality of packet sizes of like packets;
determining the packet sizes of a plurality of homogeneous packets according to the variable part of the header of the transmission message;
and analyzing the data part according to the size of the data packet to obtain a plurality of data packets of the same type.
The following describes the message transmission system provided in the embodiment of the present disclosure, and the message transmission system described below and the message transmission method and apparatus described above may be referred to correspondingly.
The present disclosure also provides a message transmission system, as shown in fig. 10, including:
a sending endpoint 101, configured to obtain a data packet and tunneling instruction information of the data packet; taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating transmission messages according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information; sending the transmission message to a receiving end point;
a receiving end point 102, configured to receive a transmission packet sent by a sending end point; analyzing the transmission message to obtain a plurality of data packets of the same type; and sending the homogeneous data packets to a target terminal.
In the embodiment of the disclosure, the data packets and the tunneling instruction information of the data packets are obtained, the data packets with the same tunneling instruction information are used as the same type of data packets, transmission messages are generated according to the multiple same type of data packets and the corresponding tunneling instruction information, and the transmission messages are sent to the receiving end point. And the receiving end point receives the transmission message, analyzes the transmission message to obtain a plurality of data packets of the same type, and sends the plurality of data packets of the same type to the target terminal to complete the complete message transmission. The method realizes that a plurality of data packets of the same type share the header of one transmission message, is different from the traditional method that one data packet corresponds to one transmission message, and reduces the bandwidth resource waste of the message in the transmission process caused by a plurality of message headers.
According to the message transmission system provided by the present disclosure, the tunneling instruction information includes a source address and a destination address; the sending endpoint 101 is specifically configured to:
and under the condition that the source addresses and the destination addresses in the tunneling instruction information of the data packets are the same, determining the data packets to be a plurality of data packets of the same type.
According to the packet transmission system provided by the present disclosure, the sending endpoint 101 is specifically configured to:
determining a plurality of homogeneous data packets which are within a preset time interval range and do not exceed a preset number as a plurality of target homogeneous data packets;
and generating a transmission message according to the plurality of target homogeneous data packets and the corresponding tunnel transmission instruction information.
According to the message transmission system provided by the present disclosure, the transmission message includes a header and a data portion; the sending endpoint 101 is specifically configured to:
generating a header of the transmission message according to the tunnel transmission instruction information and the data packet sizes of the target homogeneous data packets;
and determining the target homogeneous data packets as the data part of the transmission message.
According to the packet transmission system provided by the present disclosure, the sending endpoint 101 is specifically configured to:
generating a fixed part of the header of the transmission message according to the tunnel transmission instruction information;
and generating a variable part of the header of the transmission message according to the packet sizes of the target homogeneous packets.
According to the packet transmission system provided by the present disclosure, the receiving endpoint 102 is specifically configured to:
analyzing the transmission message to obtain a header part and a data part of the transmission message; wherein the header includes a fixed portion and a variable portion, the variable portion including a packet size of a plurality of homogeneous packets;
determining the packet sizes of a plurality of homogeneous packets according to the variable part of the header of the transmission message;
and analyzing the data part according to the size of the data packet to obtain a plurality of data packets of the same type.
Fig. 11 illustrates a physical structure diagram of an electronic device, and as shown in fig. 11, the electronic device may include: a processor (processor) 1110, a communication Interface (Communications Interface) 1120, a memory (memory) 1130, and a communication bus 1140, wherein the processor 1110, the communication Interface 1120, and the memory 1130 communicate with each other via the communication bus 1140. Processor 1110 may invoke logic instructions in memory 1130 to perform a messaging method for a sending endpoint, the method comprising: acquiring a data packet and tunnel transmission instruction information of the data packet; taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating a transmission message according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information; and sending the transmission message to a receiving end point so that the receiving end point analyzes the transmission message to obtain a plurality of homogeneous data packets, and sending the homogeneous data packets to a target terminal.
The message transmission method can also be executed and applied to a receiving end point, and the method comprises the following steps: receiving a transmission message sent by a sending end, wherein the transmission message comprises a plurality of data packets of the same type and corresponding tunnel transmission instruction information, and the data packets of the same type are data packets with the same tunnel transmission instruction information; analyzing the transmission message to obtain a plurality of data packets of the same type; and sending the plurality of homogeneous data packets to a target terminal.
In addition, the logic instructions in the memory 1130 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present disclosure also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the message transmission method provided by the above methods, applied to a sending endpoint, the method including: acquiring a data packet and tunnel transmission instruction information of the data packet; taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating transmission messages according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information; and sending the transmission message to a receiving end point so that the receiving end point analyzes the transmission message to obtain a plurality of data packets of the same type, and sending the plurality of data packets of the same type to a target terminal.
The message transmission method provided by the above methods may also be executed, and is applied to a receiving endpoint, where the method includes: receiving a transmission message sent by a sending end, wherein the transmission message comprises a plurality of data packets of the same type and corresponding tunnel transmission instruction information, and the data packets of the same type are data packets with the same tunnel transmission instruction information; analyzing the transmission message to obtain a plurality of data packets of the same type; and sending the homogeneous data packets to a target terminal.
In another aspect, the present disclosure also provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the message transmission method provided by the foregoing methods, and is applied to a sending endpoint, where the method includes: acquiring a data packet and tunnel transmission instruction information of the data packet; taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating transmission messages according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information; and sending the transmission message to a receiving end point so that the receiving end point analyzes the transmission message to obtain a plurality of homogeneous data packets, and sending the homogeneous data packets to a target terminal.
The message transmission method provided by the above methods can also be executed, and is applied to a receiving end point, and the method comprises the following steps: receiving a transmission message sent by a sending end, wherein the transmission message comprises a plurality of homogeneous data packets and corresponding tunnel transmission instruction information, and the homogeneous data packets are data packets with the same tunnel transmission instruction information; analyzing the transmission message to obtain a plurality of data packets of the same type; and sending the homogeneous data packets to a target terminal.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple 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.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present disclosure, not to limit it; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.

Claims (13)

1. A message transmission method, applied to a sending endpoint, comprising:
acquiring a data packet and tunnel transmission instruction information of the data packet;
taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating transmission messages according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information;
and sending the transmission message to a receiving end point so that the receiving end point analyzes the transmission message to obtain a plurality of data packets of the same type, and sending the plurality of data packets of the same type to a target terminal.
2. The message transmission method according to claim 1, wherein the tunneling instruction information includes a source address and a destination address;
the step of using the data packets with the same tunneling instruction information as the same type of data packets includes:
and under the condition that the source addresses and the destination addresses in the tunneling instruction information of the multiple data packets are the same, determining the multiple data packets as multiple data packets of the same type.
3. The message transmission method according to claim 1, wherein the generating of the transmission message according to the plurality of homogeneous data packets and the corresponding tunneling instruction information includes:
determining a plurality of homogeneous data packets which are within a preset time interval range and do not exceed a preset number as a plurality of target homogeneous data packets;
and generating a transmission message according to the plurality of target homogeneous data packets and the corresponding tunnel transmission instruction information.
4. The message transmission method according to claim 3, wherein the transmission message comprises a header and a data portion;
the generating of the transmission message according to the plurality of target homogeneous data packets and the corresponding tunnel transmission instruction information comprises:
generating a header of the transmission message according to the tunneling instruction information and the data packet size of the plurality of target homogeneous data packets;
and determining the plurality of target homogeneous data packets as the data part of the transmission message.
5. The message transmission method according to claim 4, wherein the generating the header of the transmission message according to the tunneling instruction information and the packet sizes of the plurality of target peer packets comprises:
generating a fixed part of the header of the transmission message according to the tunnel transmission instruction information;
and generating a variable part of the header of the transmission message according to the packet sizes of the target homogeneous packets.
6. A message transmission method is applied to a receiving end point, and comprises the following steps:
receiving a transmission message sent by a sending end, wherein the transmission message comprises a plurality of data packets of the same type and corresponding tunnel transmission instruction information, and the data packets of the same type are data packets with the same tunnel transmission instruction information;
analyzing the transmission message to obtain a plurality of data packets of the same type;
and sending the plurality of homogeneous data packets to a target terminal.
7. The message transmission method according to claim 6, wherein the parsing the transmission message to obtain a plurality of homogeneous data packets comprises:
analyzing the transmission message to obtain a header part and a data part of the transmission message; wherein the header includes a fixed portion and a variable portion, the variable portion including a packet size of a plurality of homogeneous packets;
determining the packet sizes of a plurality of homogeneous packets according to the variable part of the header of the transmission message;
and analyzing the data part according to the size of the data packet to obtain a plurality of data packets of the same type.
8. A message transmission apparatus, for a sending endpoint, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a data packet and tunnel transmission instruction information of the data packet;
a generating unit, configured to use data packets with the same tunneling instruction information as homogeneous data packets, and generate a transmission packet according to the homogeneous data packets and corresponding tunneling instruction information;
and the sending unit is used for sending the transmission message to a receiving end point so that the receiving end point can analyze the transmission message to obtain a plurality of homogeneous data packets and send the homogeneous data packets to a target terminal.
9. A message transmission apparatus, applied to a receiving endpoint, comprising:
the receiving unit is used for receiving a transmission message sent by a sending end point, wherein the transmission message comprises a plurality of homogeneous data packets and corresponding tunnel transmission instruction information, and the homogeneous data packets are data packets with the same tunnel transmission instruction information;
the analysis unit is used for analyzing the transmission message to obtain a plurality of homogeneous data packets;
and the forwarding unit is used for sending the plurality of homogeneous data packets to the target terminal.
10. A message transmission system, comprising:
the sending end point is used for acquiring the data packet and the tunnel transmission instruction information of the data packet; taking the data packets with the same tunnel transmission instruction information as the same type data packets, and generating a transmission message according to the plurality of the same type data packets and the corresponding tunnel transmission instruction information; sending the transmission message to a receiving end point;
the receiving end point is used for receiving the transmission message sent by the sending end point; analyzing the transmission message to obtain a plurality of data packets of the same type; and sending the plurality of homogeneous data packets to a target terminal.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the message transmission method according to any of claims 1 to 7 when executing the computer program.
12. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the message transmission method according to any one of claims 1 to 7.
13. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, performs the steps of the message transmission method according to any of claims 1 to 7.
CN202211419794.6A 2022-11-14 2022-11-14 Message transmission method, device and system and electronic equipment Pending CN115766914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211419794.6A CN115766914A (en) 2022-11-14 2022-11-14 Message transmission method, device and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211419794.6A CN115766914A (en) 2022-11-14 2022-11-14 Message transmission method, device and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN115766914A true CN115766914A (en) 2023-03-07

Family

ID=85370395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211419794.6A Pending CN115766914A (en) 2022-11-14 2022-11-14 Message transmission method, device and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN115766914A (en)

Similar Documents

Publication Publication Date Title
KR102555671B1 (en) Packet processing methods, related devices and computer storage media
US20120294211A1 (en) Method and apparatus for compressing nested protocol packet header
EP3972207A1 (en) Message processing method, device, and computer storage medium
EP3073698A1 (en) Method for processing address resolution protocol message, forwarder and controller
EP4037267A1 (en) Method, apparatus and system for sending message
WO2021083341A1 (en) Method for processing message, and network node and system
EP3813318B1 (en) Packet transmission method, communication device, and system
EP4057576A1 (en) Packet encapsulating method and apparatus, and packet decapsulating method and apparatus
CN107370654B (en) Pseudo wire data message encapsulation and decapsulation methods and related devices
EP3965382A1 (en) Method and device for implementing service function processing
CN114553730B (en) Application identification method and device, electronic equipment and storage medium
CN107070719B (en) Equipment management method and device
EP4145729A1 (en) Port state configuration method, apparatus, system, and storage medium
EP4274123A1 (en) Packet encapsulation and de-encapsulation method and device, storage medium, and electronic device
CN116055586B (en) Fragment message matching method, router and storage medium
CN115766914A (en) Message transmission method, device and system and electronic equipment
CN114745456A (en) Message processing method and device and network address translation equipment
EP3913865A1 (en) Message decapsulation method and device, message encapsulation method and device, electronic device, and storage medium
CN111865884B (en) Message processing method, device and equipment
CN114168315A (en) Multi-core-based message processing method and device, electronic equipment and storage medium
JP2023539689A (en) Operation, management, and maintenance OAM packet processing methods and devices
US20240048644A1 (en) Message transmission method and system, and network device and storage medium
WO2023005620A1 (en) Message processing method and apparatus, and communication system
WO2022222693A1 (en) Message processing method and apparatus, electronic device, and computer-readable storage medium
WO2023125767A1 (en) Message transmission method, network device, and system

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