A message transmission method, device, equipment, computer storage medium and computer program product

By classifying and compressing SRv6 messages, the problem of uncompressible message headers in cross-domain scenarios due to lack of common parts was solved, thus improving message transmission efficiency.

CN118803095BActive Publication Date: 2026-01-16CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410346420.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2026-01-16
Estimated Expiration
2044-03-25

AI Technical Summary

Technical Problem

Existing SRv6 compression schemes cannot effectively compress message headers with no common parts in multiple Locator segments in cross-domain scenarios, resulting in low message transmission efficiency.

Method used

By classifying the messages to be transmitted, setting the message header of the same type of message as the target compressed message header, and modifying it to the original message header at the receiving end, and using segment identifiers to compress the message header, the applicable scope of message header compression is expanded.

Benefits of technology

It improves message transmission efficiency, reduces bandwidth consumption, and enables efficient message transmission in cross-domain scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803095B_ABST
    Figure CN118803095B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a message transmission method, which comprises: if a message header of a to-be-transmitted message is a target type message header, determining a segment identifier of the message header of the to-be-transmitted message; classifying the to-be-transmitted message based on the segment identifier; setting an original message header of the to-be-transmitted message of the same class as a target compressed message header, and transmitting the to-be-transmitted message to a receiving terminal, so that the receiving terminal modifies the target compressed message header to the original message header after receiving the to-be-transmitted message; wherein the target compressed message header is smaller than the original message header. Embodiments of the present application also disclose a message transmission device, equipment, computer storage medium and computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the packet transmission technology in the communication field, and in particular to a packet transmission method, device, equipment, computer storage medium and computer program product. BACKGROUND

[0002] Currently, the most mainstream Segment Routing IPv6 (SRv6) data plane based on IPv6 forwarding plane adopts Segment Routing Header (SRH) encapsulation, and the Segment List information is encapsulated in the SRH, and each segment is a 128-bit IPv6 address. Moreover, the SRv6 segment addresses of the same domain network (usually the SRv6 segment addresses of the same prefix planned in advance) can be compressed. In the related technology, the working principle of the SRv6 compression scheme is that the Segment Identifier (SID) in the SRv6 domain is generally assigned the same block, and if the multiple SIDs in the SID List of the packet header are the same in the block, only one block segment can be carried after compression, and optimization is performed. However, for multiple Locator segments involved in the cross-domain SRv6 scenario, or in the case where the SRv6 Locator segment is not planned in advance, there is no common part among the multiple Locator segments (that is, there is no common part in the Locator of the multiple SIDs contained in the SID List in the SRH header of an SRv6 packet that needs to be forwarded through multiple network devices), and therefore the multiple SIDs in the SID List in the SRH header cannot be compressed, so the applicable scenarios of the SRv6 compression scheme in the related technology are limited. SUMMARY

[0003] To solve the above technical problems, the embodiments of the present application provide a packet transmission method, device, equipment, computer storage medium and computer program product, which solve the problem that the packet compression scheme in the related technology cannot perform packet compression when there is no common part in the Locator segment in the packet header of multiple packets.

[0004] To achieve the above object, the technical scheme of the embodiments of the present application is as follows:

[0005] A packet transmission method, the method comprising:

[0006] If the packet header of the to-be-transmitted packet is a target type packet header, determining the segment identifier of the packet header of the to-be-transmitted packet;

[0007] Classifying the to-be-transmitted packet based on the segment identifier;

[0008] The original packet header of the same type of the to-be-transmitted packet is set as a target compressed packet header, and the to-be-transmitted packet is sent to a receiving terminal, so that the receiving terminal modifies the target compressed packet header to the original packet header after receiving the to-be-transmitted packet; wherein the target compressed packet header is smaller than the original packet header.

[0009] In the above scheme, the classification of the to-be-transmitted packet based on the segment identifier includes:

[0010] The packets with the same information in the target field of the segment identifier in the to-be-transmitted packet are divided into the same type of packets.

[0011] In the above scheme, if the to-be-transmitted packet is transmitted for the first time, the target compressed packet header includes: the original packet header and a category identifier; wherein the category identifier represents the category of the to-be-transmitted packet.

[0012] If the to-be-transmitted packet is not transmitted for the first time, the target compressed packet header includes the category identifier.

[0013] In the above scheme, the method further includes:

[0014] If the transmission information corresponding to the to-be-transmitted packet meets a target transmission condition, the target compressed packet header is deleted; wherein the transmission information is information generated when the to-be-transmitted packet is transmitted.

[0015] In the above scheme, before determining the segment identifier of the packet header of the to-be-transmitted packet, the method further includes:

[0016] If the protocol number of the packet header of the to-be-transmitted packet is a target protocol number, and the value of the field of the routing type of the packet header of the to-be-transmitted packet is a second target value, it is determined that the packet header of the to-be-transmitted packet is the target type packet header.

[0017] A packet transmission method, the method includes:

[0018] Receiving a to-be-transmitted packet sent by a sending terminal; wherein the packet header of the to-be-transmitted packet is a target compressed packet header;

[0019] Obtaining the target compressed packet header of the to-be-transmitted packet;

[0020] Modifying the target compressed packet header of the to-be-transmitted packet to the original packet header of the to-be-transmitted packet; wherein the target compressed packet header is smaller than the original packet header.

[0021] In the above scheme, the method further includes:

[0022] If the to-be-transmitted packet is sent for the first time, the target compressed packet header includes the original packet header and a category identifier; wherein the category identifier represents the category of the to-be-transmitted packet.

[0023] If the to-be-transmitted packet is not sent for the first time, the target compressed packet header includes the category identifier.

[0024] A first packet transmission device, comprising:

[0025] A determination unit is configured to determine a segment identifier of a packet header of a to-be-transmitted packet if the packet header is a target type packet header.

[0026] A classification unit is configured to classify the to-be-transmitted packet based on the segment identifier.

[0027] A first processing unit is configured to set an original packet header of the to-be-transmitted packet of the same category as a target compressed packet header, and send the to-be-transmitted packet to a receiving terminal, so that the receiving terminal modifies the target compressed packet header to the original packet header after receiving the to-be-transmitted packet.

[0028] A second packet transmission device, comprising:

[0029] A receiving unit is configured to receive a to-be-transmitted packet sent by a sending terminal; wherein a packet header of the to-be-transmitted packet is a target compressed packet header.

[0030] An obtaining unit is configured to obtain the target compressed packet header of the to-be-transmitted packet.

[0031] A second processing unit is configured to modify the target compressed packet header of the to-be-transmitted packet to an original packet header of the to-be-transmitted packet.

[0032] A sending terminal, comprising a first processor, a first memory and a first communication bus;

[0033] The first communication bus is configured to realize communication connection between the first processor and the first memory.

[0034] The first processor is configured to execute a packet transmission program in the first memory to realize the steps of the packet transmission method.

[0035] A receiving terminal, comprising a second processor, a second memory and a second communication bus;

[0036] The second communication bus is configured to realize communication connection between the second processor and the second memory.

[0037] The second processor is configured to execute a packet transmission program in the second memory to implement the steps of the packet transmission method.

[0038] A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the packet transmission method.

[0039] A computer program product comprising a computer program which, when executed by a processor, implements the method.

[0040] The packet transmission method, apparatus, device, computer storage medium and computer program product provided by the embodiments of the present application can determine the segment identifier of the packet header of the to-be-transmitted packet, classify the to-be-transmitted packet based on the segment identifier, set the original packet header of the same type of to-be-transmitted packet as the target compressed packet header, and send the to-be-transmitted packet to the receiving terminal, so that the receiving terminal modifies the target compressed packet header to the original packet header after receiving the to-be-transmitted packet. In this way, when transmitting the packet, the to-be-transmitted packet can be classified according to the segment identifier of the packet header of the to-be-transmitted packet, and the packet header of the same type of to-be-transmitted packet can be set as the target compressed packet header, and then the packet is transmitted. Unlike the related art, the packet header does not need to be compressed when the Locator segment in the segment identifier has the same information. Thus, the problem that the packet compression scheme in the related art cannot compress the packet when there is no common part in the Locator segment of the packet header of multiple packets is solved, the applicable range of the packet header compression is expanded, and the packet transmission efficiency is greatly improved. BRIEF DESCRIPTION OF DRAWINGS

[0041] Figure 1 A flowchart of a packet transmission method provided by an embodiment of the present application;

[0042] Figure 2 A flowchart of another packet transmission method provided by an embodiment of the present application;

[0043] Figure 3 A flowchart of another packet transmission method provided by an embodiment of the present application;

[0044] Figure 4 A packet structure diagram of a to-be-transmitted packet in a packet transmission method provided by an embodiment of the present application;

[0045] Figure 5 A transmission diagram of a to-be-transmitted packet in a packet transmission method provided by an embodiment of the present application;

[0046] Figure 6 Another transmission diagram of a to-be-transmitted packet in a packet transmission method provided by an embodiment of the present application;

[0047] Figure 7 Another transmission diagram of a to-be-transmitted packet in a packet transmission method provided by an embodiment of the present application;

[0048] Figure 8 A structural diagram of a first packet transmission device provided by an embodiment of the present application;

[0049] Figure 9 A structural diagram of a second packet transmission device provided by an embodiment of the present application;

[0050] Figure 10 A structural diagram of a sending terminal provided by an embodiment of the present application;

[0051] Figure 11 A structural diagram of a receiving terminal provided by an embodiment of the present application. DETAILED DESCRIPTION

[0052] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application.

[0053] It should be understood that the "embodiments of the present application" or "the foregoing embodiments" mentioned throughout the specification mean that the specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the foregoing embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. In various embodiments of the present application, the size of the serial number of each process does not mean the execution order, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The serial number of the above-mentioned embodiments of the present application is only for description, not representing the advantages and disadvantages of the embodiments.

[0054] Unless otherwise specified, the electronic device executes any step in the embodiments of the present application, which can be a processor of the electronic device executing the step. It is also worth noting that the embodiments of the present application do not limit the order of the steps executed by the electronic device. In addition, the way of processing data in different embodiments can be the same method or different method. It should be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, the electronic device can execute any step in the embodiments below without depending on the execution of other steps.

[0055] It should be appreciated that the specific embodiments described herein are merely illustrative of the application and should not be used in a limiting sense.

[0056] The embodiment of the application provides a message transmission method, which can be applied to a sending terminal, as shown in the figure, the method can comprise the following steps: Figure 1

[0057] Step 101, if the message header of the to-be-transmitted message is a target type message header, determining the segment identifier of the message header of the to-be-transmitted message.

[0058] In the embodiment of the application, the to-be-transmitted message can refer to a plurality of messages that need to be transmitted. The target type message header can refer to the message header of the target type message; in a feasible implementation manner, the target type message can refer to an SRv6 message, and the target type message header can refer to the message header of the SRv6 message.

[0059] The segment identifier of the message header of the to-be-transmitted message can refer to a specific address in the message header of the to-be-transmitted message, which is used to identify a unique segment. Specifically, the segment identifier of the message header of the to-be-transmitted message can refer to the SID in the message header of the to-be-transmitted message. It should be noted that the SID is usually encapsulated in the message header of the SRv6 message in the form of a segment identifier list (SID List).

[0060] Step 102, classifying the to-be-transmitted message based on the segment identifier.

[0061] In the embodiment of the application, the sending terminal can divide a plurality of to-be-transmitted messages into different classes before transmitting the to-be-transmitted messages, that is, the plurality of to-be-transmitted messages can be divided into different sets. Specifically, the sending terminal can divide the to-be-transmitted messages into different message sets according to the content of the field of the SID in the message header of each to-be-transmitted message.

[0062] Step 103, setting the original message header of the to-be-transmitted message of the same class as a target compression message header, and transmitting the to-be-transmitted message to a receiving terminal, so that the receiving terminal modifies the target compression message header to the original message header after receiving the to-be-transmitted message.

[0063] ​In the embodiment of the present application, the target compressed packet header is smaller than the size of the original packet header; the sending terminal can modify the packet header of the to-be-transmitted packet belonging to the same class (i.e., in a packet set) to the target compressed packet header; wherein the target compressed packet header can be pre-set, and the size of the target compressed packet header is smaller than the size of the original packet header of the to-be-transmitted packet. Moreover, after the sending terminal sets the packet header of the to-be-transmitted packet of the same class to the target compressed packet header, the sending terminal can send the to-be-transmitted packet to the corresponding receiving terminal. In this way, when the to-be-transmitted packet is transmitted, the target compressed packet header smaller than the original packet header is used, and efficient compression transmission of the packet can be realized, and the bandwidth can be greatly saved.

[0064] It should be noted that the packet transmission method of the present application can be classified at least for the to-be-transmitted packet in a management domain, and then the target compressed packet header is used as the packet header for the transmission of the packet of the same class; that is, the sending terminal can directly reach the receiving terminal without forwarding through other nodes.

[0065] The packet transmission method provided by the embodiment of the present application can first classify the to-be-transmitted packet according to the segment identifier of the packet header of the to-be-transmitted packet when the packet is transmitted, set the packet header of the to-be-transmitted packet of the same class to the target compressed packet header, and then transmit the packet, without the need to compress the packet header when the Locator segment in the segment identifier has the same information in the related art, thereby solving the problem that the packet compression scheme in the related art cannot be performed when there is no common part in the Locator segment in the packet header of multiple packets during packet transmission, expanding the applicable range of packet header compression, and greatly improving the packet transmission efficiency.

[0066] Based on the foregoing embodiment, the embodiment of the present application provides a packet transmission method, which can be applied to a receiving terminal, as shown in Figure 2 The method can include the following steps:

[0067] Step 201, receiving the to-be-transmitted packet sent by the sending terminal.

[0068] The packet header of the to-be-transmitted packet is a target compressed packet header.

[0069] In the embodiment of the present application, after the sending terminal sends the to-be-transmitted packet with the target compressed packet header set as the packet header to the receiving terminal, the receiving terminal receives the to-be-transmitted packet.

[0070] Step 202, obtaining the target compressed packet header of the to-be-transmitted packet.

[0071] Wherein, after receiving the to-be-transmitted packet, the receiving terminal can parse the to-be-transmitted packet and obtain the target compressed packet header of the to-be-transmitted packet from the to-be-transmitted packet; that is, the newly set new packet header of the to-be-transmitted SRv6 packet can be obtained.

[0072] Step 203, modifying the target compressed packet header of the to-be-transmitted packet into the original packet header of the to-be-transmitted packet.

[0073] In the embodiment of the present application, after obtaining the target compressed packet header (that is, the new packet header) of the to-be-transmitted SRv6 packet, the receiving terminal can modify the target compressed packet header of the to-be-transmitted SRv6 packet into the original packet header of the to-be-transmitted SRv6 packet; that is, after receiving the to-be-transmitted SRv6 packet with the new packet header set as the packet header, the receiving terminal needs to modify the packet header of the to-be-transmitted SRv6 packet into its most initial packet header, so as to obtain the complete to-be-transmitted SRv6 packet and ensure that the receiving terminal can quickly receive the to-be-transmitted packet.

[0074] It should be noted that the same steps and the same content in other embodiments of the present application are described in the description of other embodiments, and will not be described here.

[0075] The packet transmission method provided by the embodiments of the present application can modify the target compressed packet header of the to-be-transmitted packet into the original packet header of the to-be-transmitted packet after receiving the to-be-transmitted packet classified by the sending terminal according to the segment identifier of the packet header of the to-be-transmitted packet, and then transmitting the to-be-transmitted packet with the target compressed packet header set as the packet header, without the need to compress the packet header when the Locator segment in the segment identifier has the same information as in the related art, and the received packet can still be modified into the original packet header, thereby solving the problem that the packet compression scheme in the related art cannot be performed when there is no common part in the Locator segment of the packet header of multiple packets during packet transmission, expanding the applicable range of packet header compression, and greatly improving the packet transmission efficiency.

[0076] Based on the foregoing embodiments, the embodiments of the present application provide a packet transmission method, which can include the following steps, as shown in Figure 3 The method can include the following steps:

[0077] Step 301, if the protocol number of the packet header of the to-be-transmitted packet is a target protocol number, and the value of the field of the routing type of the packet header of the to-be-transmitted packet is a second target value, the sending terminal determines that the packet header of the to-be-transmitted packet is a target type packet header.

[0078] The target protocol number can refer to a protocol number predefined to represent the message header of the extension header; the protocol number of the message header of the to-be-transmitted message can refer to a value of a protocol of the message header of the to-be-transmitted message. The second target value can be a value predefined to represent that the type of the message header is SRH; and the value of the field of the routing type of the message header can refer to a value in a field of a routing type of the message header of the to-be-transmitted message.

[0079] In a possible implementation, the target protocol number can refer to 43, the second target value can refer to 4, and the target type message header can refer to SRH (SR Header). That is, if the Protocol of the to-be-transmitted message is 43, it indicates that the message header of the to-be-processed message is a routing extension header (Routing Extension Header), and if the value in the field of the Routing Type of the Routing Extension Header is 4, it indicates that the message header of the to-be-transmitted message is an SR Header.

[0080] In step 302, if the message header of the to-be-transmitted message is the target type message header, the sending terminal determines the segment identifier of the message header of the to-be-transmitted message.

[0081] In step 303, the sending terminal divides the messages with the same information in the target field of the segment identifier in the to-be-transmitted message into the same type of messages.

[0082] In the embodiment of the present application, the target field can refer to a field used to indicate an address in the to-be-transmitted SRv6 message and related to the Segment List. Specifically, if the information in the target field of the SRH of the SRv6 message in the plurality of to-be-transmitted SRv6 messages to be transmitted has the same information, the SRv6 messages can be divided into the same type of messages.

[0083] It should be noted that the message structure of the SRH of the SRv6 message can be as shown in Figure 4 Therefore, the target field can refer to those fields with the Segment List information in Figure 4

[0084] In step 304, the sending terminal sets the original message header of the same type of to-be-transmitted message as the target compressed message header, and transmits the to-be-transmitted message to the receiving terminal.

[0085] In the embodiment of the present application, if the to-be-transmitted message is transmitted for the first time, the target compressed message header includes the original message header and the category identifier; the category identifier represents the category of the to-be-transmitted message.

[0086] ​Specifically, the original packet header refers to the initial packet header of the to-be-transmitted packet before the packet header is modified; the category identifier can be an identifier capable of representing the category of the to-be-transmitted packet, which is set according to actual application scenarios and requirements; and the category identifier of the to-be-transmitted packet can be any symbol in any form.

[0087] In addition, when the to-be-transmitted packet is initially transmitted, the target compression packet header can also carry state information; specifically, the state information can include a target duration and a target packet quantity. The target duration can refer to the usage duration of the target compression packet header, and the target packet quantity can refer to the quantity of packets in the to-be-transmitted packet whose packet header is the target compression packet header; that is, the target packet quantity refers to the quantity of packets that can use the target compression packet header as a new packet header. That is, the target compression packet header can be used to deliver and maintain state information between the sending terminal and the receiving terminal.

[0088] It should be noted that the sending terminal and the receiving terminal can agree to add a new target compression packet header as a compression packet header to replace the original packet header for the same type of packet.

[0089] In other embodiments of the present application, if the to-be-transmitted packet is not initially transmitted, the target compression packet header includes a category identifier.

[0090] It should be noted that when the sending terminal initially transmits the to-be-transmitted packet, the original packet header of the to-be-transmitted packet is carried in the target compression packet header corresponding to the to-be-transmitted packet, so that the receiving terminal can obtain information about the original packet header of the to-be-transmitted packet; however, in subsequent transmission of the to-be-transmitted packet, the original packet header, the target duration, and the target packet quantity will not change, so only the category identifier of the to-be-transmitted packet needs to be carried in the target compression packet header in subsequent transmission; in this way, the bandwidth required for packet transmission can be further reduced, and efficient compression transmission of the packet is further ensured. In addition, in the same type of packet, the category identifier, the target duration, and the target quantity are fixed and unchangeable.

[0091] Step 305: The receiving terminal receives the to-be-transmitted packet sent by the sending terminal.

[0092] The packet header of the to-be-transmitted packet is a target compression packet header.

[0093] Step 306: The receiving terminal obtains the target compression packet header of the to-be-transmitted packet.

[0094] Step 307: The receiving terminal modifies the target compression packet header of the to-be-transmitted packet to the original packet header of the to-be-transmitted packet.

[0095] In other embodiments of the present application, the method can further include the following steps:

[0096] Step 308: If the transmission information corresponding to the message to be transmitted meets the target transmission conditions, delete the target compressed message header.

[0097] Among them, the transmission information is the information generated during the transmission of the message to be transmitted.

[0098] In this embodiment, the target transmission conditions can be pre-set according to actual application requirements and scenarios to restrict the conditions of the target compressed message header corresponding to the message to be transmitted. The transmission information refers to information related to the transmission of the message to be transmitted, generated during the transmission process. In one feasible implementation, the transmission information may include transmission duration and transmission quantity. The transmission duration may refer to the duration of transmission of the message to be transmitted from the initial transmission, and the transmission quantity may refer to the number of messages to be transmitted from the initial transmission. That is, if the transmission duration of the message to be transmitted meets the target duration, or the transmission quantity of the message to be transmitted meets the target message quantity, then the transmission information is considered to meet the target transmission conditions, and the set target compressed message header can be deleted. In other words, the target compressed message header will not be used subsequently.

[0099] In other embodiments of this application, such as Figure 5 The three messages shown need to span multiple management domains. The SID Lists of each message involve multiple Locator segments with no common parts (e.g., the first message is B1+M1~B2+N1~B3+P1). Therefore, the existing common method of extracting the common parts of multiple SIDs in a message's SID List cannot be used for compression. However, the scheme provided in this application can achieve the following between CPE1 and PE: Figure 6 As shown, compression can be achieved by extracting the common portion from the SIDList of multiple packets; because Figure 6 The SID List of the messages to be transmitted shown contains common information SIDA, at which point it can be... Figure 6 SID A between CPE1 and PE is compressed as a common part of SID List1, SID List2 and SID List3 in different messages. In other words, these three messages to be transmitted can be divided into one category between CPE1 and PE, and the target compressed message header is used as the message header of these three messages to be transmitted, so as to transmit the messages to be transmitted.

[0100] In other embodiments of this application, when transmitting SRv6 messages, such as Figure 7As shown, the packet header of the to-be-transmitted SRv6 packet can be compressed, that is, the packet header of the to-be-transmitted SRv6 packet in the same class is set as the target compressed packet header (that is, the compression of the packet header is realized). Further, the to-be-transmitted SRv6 packet is transmitted to the receiving terminal via the Link-Layer (Data Link-Layer) and the PHY-Layer.

[0101] It should be noted that the descriptions of the same steps and contents in the embodiments can refer to the descriptions in other embodiments, and will not be described here.

[0102] The packet transmission method provided by the embodiments of the present application can first classify the to-be-transmitted packets according to the segment identifier of the packet header of the to-be-transmitted packet, and send the to-be-transmitted packet to the receiving terminal after setting the packet header of the to-be-transmitted packet in the same class as the target compressed packet header. The receiving terminal can modify the target compressed packet header of the to-be-transmitted packet to the original packet header of the to-be-transmitted packet, without the need to compress the packet header when the Locator segment in the segment identifier has the same information as in the related art, and the received packet can still be modified to the original packet header. Thus, the problem of the packet compression scheme in the related art that the packet header cannot be compressed when there is no common part in the Locator segment of the packet header of multiple packets is solved, the applicable range of packet header compression is expanded, and the packet transmission efficiency is greatly improved.

[0103] Based on the foregoing embodiments, the embodiments of the present application provide a first packet transmission device, which can be applied to Figure 1 and 3 In the packet transmission method provided by the corresponding embodiments, reference is made to Figure 8 As shown, the first packet transmission device 4 can include a determination unit 41, a classification unit 42, and a first processing unit 43, wherein:

[0104] The determination unit 41 is configured to determine the segment identifier of the packet header of the to-be-transmitted packet if the packet header of the to-be-transmitted packet is a target type packet header.

[0105] The classification unit 42 is configured to classify the to-be-transmitted packet based on the segment identifier.

[0106] The first processing unit 43 is configured to set the original packet header of the to-be-transmitted packet in the same class as the target compressed packet header, and send the to-be-transmitted packet to the receiving terminal, so that the receiving terminal modifies the target compressed packet header to the original packet header after receiving the to-be-transmitted packet.

[0107] In other embodiments of the present application, the classification unit 42 is further configured to perform the following steps:

[0108] The packets with the same information in the target field of the segment identifier in the to-be-transmitted packet are classified into the same type of packet.

[0109] In other embodiments of the present application, if the to-be-transmitted packet is transmitted for the first time, the target compressed packet header includes the packet header of the to-be-transmitted packet and the category identifier; the category identifier represents the category of the to-be-transmitted packet.

[0110] If the to-be-transmitted packet is not transmitted for the first time, the target compressed packet header includes the category identifier.

[0111] In other embodiments of the present application, the first processing unit 43 is further configured to perform the following steps:

[0112] If the transmission information corresponding to the to-be-transmitted packet meets the target transmission condition, the target compressed packet header is deleted; the transmission information is information generated when the to-be-transmitted packet is transmitted.

[0113] In other embodiments of the present application, the determining unit 41 is further configured to perform the following steps:

[0114] If the protocol number of the packet header of the to-be-transmitted packet is the target protocol number, and the value of the field of the routing type of the packet header of the to-be-transmitted packet is the second target value, it is determined that the packet header of the to-be-transmitted packet is the target type packet header.

[0115] It should be noted that the specific description of the steps performed by each unit can refer to Figure 1 and 2 the packet transmission method provided by the corresponding embodiments, which will not be described here.

[0116] The first packet transmission device provided by the embodiments of the present application can classify the to-be-transmitted packet according to the segment identifier of the packet header of the to-be-transmitted packet when transmitting the packet, set the packet header of the same type of to-be-transmitted packet as the target compressed packet header, and then transmit the packet, without the need to compress the packet header when the Locator segment in the segment identifier has the same information as in the related art, thereby solving the problem that the packet compression scheme in the related art cannot be performed when there is no common part in the Locator segment in the packet header of multiple packets during packet transmission, expanding the applicable range of packet header compression, and greatly improving the packet transmission efficiency.

[0117] Based on the foregoing embodiments, the embodiments of the present application provide a second packet transmission device, which can be applied to Figure 2 and 3 the packet transmission method provided by the corresponding embodiments, which is described in Figure 9As shown, the second message transmission device 5 may include: a receiving unit 51, an acquisition unit 52, and a second processing unit 53, wherein:

[0118] The receiving unit 51 is used to receive a message to be transmitted sent by the sending terminal; wherein the message header of the message to be transmitted is a target compressed message header;

[0119] Acquisition unit 52 is used to acquire the target compressed message header of the message to be transmitted;

[0120] The second processing unit 53 is used to modify the target compressed message header of the message to be transmitted to the original message header of the message to be transmitted.

[0121] In other embodiments of this application, if the message to be transmitted is being transmitted for the first time, the target compressed message header includes: the message header of the message to be transmitted and a category identifier; wherein, the category identifier represents the category of the message to be transmitted;

[0122] If the message to be transmitted is not being transmitted for the first time, the target compressed message header includes a category identifier.

[0123] It should be noted that a detailed explanation of the steps performed by each unit can be found in [reference needed]. Figure 2 and 3 The message transmission method provided in the corresponding embodiments will not be described in detail here.

[0124] The second message transmission apparatus provided in the embodiments of this application, upon receiving a message from a sending terminal, first classifies the messages to be transmitted according to the segment identifier of the message header. Then, for messages of the same type, its message header can be set as the target compressed message header before transmission. The target compressed message header of the message to be transmitted can be modified to the original message header of the message to be transmitted. Unlike related technologies, it does not require the same information in the Locator segment of the segment identifier to compress the message header, and the received message can still have its message header modified to the original message header. This solves the problem in related technologies where message compression schemes cannot compress messages when there is no common part in the Locator segment of the message header of multiple messages. It expands the applicability of message header compression and greatly improves message transmission efficiency.

[0125] Based on the foregoing embodiments, embodiments of this application provide a transmitting terminal, which can be applied to... Figure 1 and 3 In the message transmission method provided in the corresponding embodiment, refer to Figure 10 As shown, the transmitting terminal 6 may include: a first processor 61, a first memory 62, and a first communication bus 63, wherein:

[0126] The first communication bus 63 is configured to realize the communication connection between the first processor 61 and the first memory 62.

[0127] The first processor 61 is configured to execute the message transmission program in the first memory 62 to realize the following steps:

[0128] If the message header of the to-be-transmitted message is a target type message header, the segment identifier of the message header of the to-be-transmitted message is determined.

[0129] The to-be-transmitted message is classified based on the segment identifier.

[0130] The original message header of the to-be-transmitted message of the same type is set as a target compressed message header, and the to-be-transmitted message is sent to a receiving terminal, so that the receiving terminal modifies the target compressed message header to the original message header after receiving the to-be-transmitted message.

[0131] In other embodiments of the present application, the first processor 61 is configured to execute the message transmission program in the first memory 62 to classify the to-be-transmitted message based on the segment identifier, to realize the following steps:

[0132] The messages with the same information in the target field of the segment identifier in the to-be-transmitted message are divided into the same type of messages.

[0133] In other embodiments of the present application, if the to-be-transmitted message is transmitted for the first time, the target compressed message header includes the message header of the to-be-transmitted message and a category identifier; wherein the category identifier represents the category of the to-be-transmitted message.

[0134] If the to-be-transmitted message is not transmitted for the first time, the target compressed message header includes the category identifier.

[0135] In other embodiments of the present application, the first processor 61 is configured to execute the message transmission program in the first memory 62, and can also realize the following steps:

[0136] If the transmission information corresponding to the to-be-transmitted message satisfies a target transmission condition, the target compressed message header is deleted; wherein the transmission information is information generated when the to-be-transmitted message is transmitted.

[0137] In other embodiments of the present application, the first processor 61 is configured to execute the message transmission program in the first memory 62, and can also realize the following steps:

[0138] If the protocol number of the message header of the to-be-transmitted message is a target protocol number, and the value of the field of the routing type of the message header of the to-be-transmitted message is a second target value, the message header of the to-be-transmitted message is determined as a target type message header.

[0139] It should be noted that the specific description of the steps executed by the first processor can be referred to Figure 1 and 3The message transmission method provided by the corresponding embodiments will not be described herein again.

[0140] The sending terminal provided by the embodiments of the present application can first classify the to-be-transmitted message according to the segment identifier of the message header of the to-be-transmitted message when transmitting the message, and set the message header of the to-be-transmitted message of the same category as a target compressed message header, and then transmit the message, without compressing the message header when the Locator segment in the segment identifier has the same information as in the related art, thereby solving the problem that the message compression scheme in the related art cannot be performed when there is no common part in the Locator segment in the message header of multiple messages during message transmission, expanding the applicable range of message header compression, and greatly improving the message transmission efficiency.

[0141] Based on the foregoing embodiments, the embodiments of the present application provide a receiving terminal, which can be applied to Figure 2 and 3 In the message transmission method provided by the corresponding embodiments, referring to Figure 11 , the receiving terminal 7 can include a second processor 71, a second memory 72, and a second communication bus 73, where:

[0142] The second communication bus 73 is configured to realize the communication connection between the second processor 71 and the second memory 72;

[0143] The second processor 71 is configured to execute a message transmission program in the second memory 72 to realize the following steps:

[0144] Receive the to-be-transmitted message sent by the sending terminal; wherein the message header of the to-be-transmitted message is a target compressed message header;

[0145] Obtain the target compressed message header of the to-be-transmitted message;

[0146] Modify the target compressed message header of the to-be-transmitted message to the original message header of the to-be-transmitted message.

[0147] In other embodiments of the present application, if the to-be-transmitted message is transmitted for the first time, the target compressed message header includes the message header of the to-be-transmitted message and a category identifier; wherein the category identifier represents the category of the to-be-transmitted message;

[0148] If the to-be-transmitted message is not transmitted for the first time, the target compressed message header includes the category identifier.

[0149] It should be noted that the specific description of the steps performed by the second processor can refer to Figure 2 and 3 In the message transmission method provided by the corresponding embodiments, the above description will not be repeated herein.

[0150] The receiving terminal provided by the embodiment of the present application classifies the to-be-transmitted messages according to the segment identifiers in the message headers of the to-be-transmitted messages, and then sets the message headers of the to-be-transmitted messages of the same type to target compression message headers, modifies the target compression message headers of the to-be-transmitted messages to the original message headers of the to-be-transmitted messages, and transmits the to-be-transmitted messages. The message header compression is not required when the Locator segment in the segment identifier has the same information, and the message header of the received message can still be modified to the original message header, thereby solving the problem that the message compression scheme in the related art cannot be performed when there is no common part in the Locator segment in the message headers of multiple messages during message transmission, expanding the applicable range of message header compression, and greatly improving the message transmission efficiency.

[0151] Based on the foregoing embodiment, the embodiment of the present application provides a computer readable storage medium storing one or more programs, which can be executed by one or more processors to implement Figures 1-3 The corresponding embodiment provides a message transmission method.

[0152] Based on the foregoing embodiment, the embodiment of the present application provides a computer program product comprising a computer program executable by a first processor 61 and a second processor 71 to complete Figures 1-3 The steps of the message transmission method provided by the corresponding embodiment.

[0153] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can be in the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer usable program code.

[0154] The present application is described with reference to flowcharts and / or block diagrams according to the method, device (system), and computer program product of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The device that implements the functions specified in one flow or multiple flows and / or blocks Figure 1 The device that implements the functions specified in one flow or multiple flows and / or blocks

[0155] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow Figure 1 The flow or flows and / or blocks Figure 1 The flow or flows and / or blocks

[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions that execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 The flow or flows and / or blocks Figure 1 Figure 1 The flow or flows and / or blocks

[0157] The above description is only a specific implementation of the present application. The protection scope of the present application is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of transmitting a packet, characterized by, The method comprises: If the message header of the to-be-transmitted message is a target type message header, determining the segment identifier of the message header of the to-be-transmitted message; Classifying the to-be-transmitted message based on the segment identifier; Setting the original message header of the to-be-transmitted message of the same category as a target compressed message header, and sending the to-be-transmitted message to a receiving terminal, so that the receiving terminal modifies the target compressed message header to the original message header after receiving the to-be-transmitted message; wherein the target compressed message header is smaller than the original message header; if the to-be-transmitted message is transmitted for the first time, the target compressed message header includes the original message header and a category identifier; the category identifier represents the category of the to-be-transmitted message; if the to-be-transmitted message is not transmitted for the first time, the target compressed message header includes the category identifier; If the transmission information corresponding to the to-be-transmitted message meets a target transmission condition, deleting the target compressed message header; wherein the transmission information is information generated when the to-be-transmitted message is transmitted.

2. The method of claim 1, wherein, The method comprises: The to-be-transmitted message in which the target field of the segment identifier has the same information is divided into the same category message.

3. The method of claim 1, wherein, Before the method comprises: If the protocol number of the message header of the to-be-transmitted message is a target protocol number, and the value of the field of the routing type of the message header of the to-be-transmitted message is a second target value, the message header of the to-be-transmitted message is determined to be the target type message header.

4. A message transmission method characterized by comprising: The method comprises: Receiving a to-be-transmitted message sent by a sending terminal; wherein the message header of the to-be-transmitted message is a target compressed message header; Obtaining the target compressed message header of the to-be-transmitted message; Modifying the target compressed message header of the to-be-transmitted message to the original message header of the to-be-transmitted message; wherein the target compressed message header is smaller than the original message header; if the to-be-transmitted message is transmitted for the first time, the target compressed message header includes the original message header and a category identifier; the category identifier represents the category of the to-be-transmitted message; if the to-be-transmitted message is not transmitted for the first time, the target compressed message header includes the category identifier; if the transmission information corresponding to the to-be-transmitted message meets a target transmission condition, the target compressed message header is deleted by the sending terminal; the transmission information is information generated when the to-be-transmitted message is transmitted.

5. A first packet transmission apparatus characterized by comprising: Comprise: A determining unit is configured to, if the message header of the to-be-transmitted message is a target type message header, determine the segment identifier of the message header of the to-be-transmitted message; A classifying unit is configured to classify the to-be-transmitted message based on the segment identifier. The first processing unit is configured to set a raw packet header of the same type of the to-be-transmitted packet as a target compressed packet header, and send the to-be-transmitted packet to a receiving terminal, so that the receiving terminal modifies the target compressed packet header to the raw packet header after receiving the to-be-transmitted packet; wherein the target compressed packet header is smaller than the raw packet header; if the to-be-transmitted packet is transmitted for the first time, the target compressed packet header includes the raw packet header and a type identifier; the type identifier represents the type of the to-be-transmitted packet; if the to-be-transmitted packet is not transmitted for the first time, the target compressed packet header includes the type identifier. The first processing unit is further configured to delete the target compressed packet header if transmission information corresponding to the to-be-transmitted packet meets a target transmission condition; wherein the transmission information is information generated when the to-be-transmitted packet is transmitted.

6. A second packet transmission apparatus characterized by comprising: The receiving terminal comprises: A receiving unit configured to receive a to-be-transmitted packet sent by a sending terminal; wherein a packet header of the to-be-transmitted packet is a target compressed packet header; An obtaining unit configured to obtain the target compressed packet header of the to-be-transmitted packet; A second processing unit configured to modify the target compressed packet header of the to-be-transmitted packet to a raw packet header of the to-be-transmitted packet; wherein the target compressed packet header is smaller than the raw packet header; if the to-be-transmitted packet is transmitted for the first time, the target compressed packet header includes the raw packet header and a type identifier; the type identifier represents the type of the to-be-transmitted packet; if the to-be-transmitted packet is not transmitted for the first time, the target compressed packet header includes the type identifier; if transmission information corresponding to the to-be-transmitted packet meets a target transmission condition, the target compressed packet header is deleted by the sending terminal; the transmission information is information generated when the to-be-transmitted packet is transmitted.

7. A transmitting terminal, characterized by comprising: The sending terminal comprises a first processor, a first memory and a first communication bus; The first communication bus is configured to realize communication connection between the first processor and the first memory; The first processor is configured to execute a packet transmission program in the first memory, so as to realize the steps of the packet transmission method in any one of claims 1-3.

8. A receiving terminal, characterized by The receiving terminal comprises a second processor, a second memory and a second communication bus; The second communication bus is configured to realize communication connection between the second processor and the second memory; The second processor is configured to execute a packet transmission program in the second memory, so as to realize the steps of the packet transmission method in claim 4.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores one or more programs, which can be executed by one or more processors to realize the steps of the packet transmission method in any one of claims 1-3 or 4.

10. A computer program product comprising a computer program, characterized in that, The computer program realizes the method in any one of claims 1-3 or 4 when executed by a processor. The computer program realizes the method in any one of claims 1-3 or 4 when executed by a processor.

Citation Information

Patent Citations

  • SRv6-based SID compression method and device, equipment and storage medium

    CN111628995A

  • Segmented routing message forwarding method and device and preset logic circuit unit

    CN112787927A