Message transmission method, device and equipment, computer storage medium and computer program product

By classifying SRv6 packets and setting target compression headers, the problem that packet headers cannot be compressed in cross-domain scenarios is solved and packet transmission efficiency is improved.

CN118803095AActive Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing SRv6 message transmission technology, in cross-domain scenarios, there is no common part between multiple Locator segments, so the SID List in the message header cannot be compressed, which limits the compression applicable range of message transmission and affects efficiency.

Method used

By classifying the messages to be transmitted according to their segment identifiers, setting the original message header of the same type of message as the target compression header, and modifying it to the original message header at the receiving terminal, efficient compression during message transmission is achieved. .

Benefits of technology

It expands the applicable scope of packet header compression, improves packet transmission efficiency, and solves the problem that packet headers cannot be compressed in cross-domain scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803095A_ABST
    Figure CN118803095A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a message transmission method, and the method comprises the steps: determining a segment identifier of a message header of a to-be-transmitted message if the message header of the to-be-transmitted message is a target type message header; classifying the messages to be transmitted based on the segment identifiers; setting an original message header of the same type of to-be-transmitted message 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 as the original message header after receiving the to-be-transmitted message; wherein the target compressed message header is smaller than the original message header. The embodiment of the invention further discloses a message transmission device and equipment, a computer storage medium and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to message transmission technology in the field of communications, and in particular to a message transmission method, device, equipment, computer storage medium and computer program product. Background Art

[0002] Currently, the most mainstream segment routing (Segment Routing IPv6, SRv6) data plane based on the IPv6 forwarding plane adopts the segment routing header (Segment Routing Header, SRH) encapsulation. The SRH encapsulates the segment list (SegmentList) information, and each segment (segment) is a 128-bit IPv6 address. In addition, the SRv6 segment addresses of the same domain network (usually SRv6 segment addresses with the same prefix planned in advance) can be compressed. The working principle of the SRv6 compression scheme in the related technology is that the programmable segment identifier (Segment Identifier, SID) in the SRv6 domain is generally assigned the same block (Block). If the block segments of multiple SIDs in the message header SID List are the same, they can be compressed to carry only one block segment for optimization. However, for the multiple Locator segments involved in the cross-domain SRv6 scenario, or the situation where the SRv6 Locator segments are not planned in advance, there is no common part between the multiple Locator segments (that is, there is no common part in the Locators of the multiple SIDs contained in the SIDList in the SRH header of an SRv6 message that needs to be forwarded through multiple network devices). There is a problem that the multiple SIDs in the SID List in the SRH header cannot be compressed. Therefore, the applicable scenarios of the SRv6 compression solution in the related art are limited. Summary of the invention

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

[0004] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:

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

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

[0007] Classifying the to-be-transmitted messages based on the segment identifiers;

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

[0009] In the above solution, the classifying the to-be-transmitted message based on the segment identifier includes:

[0010] In the messages to be transmitted, the messages having the same information in the target field of the segment identifier are classified into the same category of messages.

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

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

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

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

[0015] In the above scheme, if the message header of the message to be transmitted is a target type message header, before determining the segment identifier of the message header of the message to be transmitted, the method further includes:

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

[0017] A message transmission method, the method comprising:

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

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

[0020] The target compressed message header of the message to be transmitted is modified to be the original message header of the message to be transmitted; wherein the target compressed message header is smaller than the original message header.

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

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

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

[0024] A first message transmission device, comprising:

[0025] A determination unit, configured to determine a segment identifier of the message header of the message to be transmitted if the message header of the message to be transmitted is a target type message header;

[0026] A classification unit, used for classifying the message to be transmitted based on the segment identifier;

[0027] The first processing unit is used to set the original message header of the same type of the to-be-transmitted message as the target compressed message header, and send the to-be-transmitted message to the 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.

[0028] A second message transmission device, comprising:

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

[0030] An acquisition unit, configured to acquire the target compressed message header of the message to be transmitted;

[0031] The second processing unit 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.

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

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

[0034] The first processor is used to execute the message transmission program in the first memory to implement the steps of the above-mentioned message transmission method.

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

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

[0037] The second processor is used to execute the message transmission program in the second memory to implement the steps of the above-mentioned message transmission method.

[0038] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned message transmission method.

[0039] A computer program product comprises a computer program, wherein the computer program implements the above method when executed by a processor.

[0040] The message transmission method, apparatus, device, computer storage medium and computer program product provided in the embodiments of the present application, if the message header of the message to be transmitted is a target type message header, determine the segment identifier of the message header of the message to be transmitted, classify the message to be transmitted based on the segment identifier, set the original message header of the same type of message to be transmitted as the target compressed message header, and send the message to be transmitted to the receiving terminal, so that the receiving terminal modifies the target compressed message header to the original message after receiving the message to be transmitted. In this way, when transmitting the message, it can first be based on the message to be transmitted. The segment identifier of the message header is used to classify the messages to be transmitted. For the same type of messages to be transmitted, their message headers can be set as target compressed message headers, and then the messages are transmitted. There is no need to compress the message header when the Locator segment in the segment identifier has the same information as in the related art. This solves the problem in the related art that the message compression scheme during message transmission cannot compress the message when there is no common part in the Locator segment in the message headers of multiple messages. This expands the applicable scope of message header compression and greatly improves the message transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a flow chart of a message transmission method provided in an embodiment of the present application;

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

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

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

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

[0046] Figure 6 A transmission schematic diagram of another message to be transmitted in a message transmission method provided in an embodiment of the present application;

[0047] Figure 7 A transmission schematic diagram of another message to be transmitted in a message transmission method provided in an embodiment of the present application;

[0048] Figure 8 A schematic diagram of the structure of a first message transmission device provided in an embodiment of the present application;

[0049] Fig. 9 A schematic diagram of the structure of a second message transmission device provided in an embodiment of the present application;

[0050] Fig.10 A schematic diagram of the structure of a sending terminal provided in an embodiment of the present application;

[0051] Fig.11 A schematic diagram of the structure of a receiving terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0053] It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that 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 aforementioned embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0054] Unless otherwise specified, the electronic device performs any step in the embodiments of the present application, and the processor of the electronic device may perform the step. It is also worth noting that the embodiments of the present application do not limit the order in which the electronic device performs the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, when the electronic device executes any step in the following embodiments, it may not rely on the execution of other steps.

[0055] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] The present application embodiment provides a message transmission method, which can be applied to a sending terminal, referring to Figure 1 As shown, the method may include the following steps:

[0057] Step 101: If the message header of the message to be transmitted is a target type message header, determine the segment identifier of the message header of the message to be transmitted.

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

[0059] The segment identifier of the message header of the message to be transmitted may refer to a specific address in the message header of the message to be transmitted, which is used to identify a unique segment. Specifically, the segment identifier of the message header of the message to be transmitted may refer to the SID in the message header of the message to be transmitted. 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: Classify the messages to be transmitted based on the segment identifiers.

[0061] In an embodiment of the present application, before sending the messages to be transmitted, the sending terminal can classify multiple messages to be transmitted into different categories according to the SID information in the message header of each message to be transmitted; that is, the multiple messages to be transmitted can be divided into different sets. Specifically, the sending terminal can classify the messages to be transmitted into different message sets according to the content of the SID field in the message header of each message to be transmitted.

[0062] Step 103: Set the original message header of the same type of messages to be transmitted as the target compressed message header, and send the messages to be transmitted to the receiving terminal, so that the receiving terminal modifies the target compressed message header to the original message header after receiving the messages to be transmitted.

[0063] In an embodiment of the present application, the target compressed message header is smaller than the size of the original message header; the sending terminal can modify the message header of the to-be-transmitted message belonging to the same category (i.e., in a message set) to the target compressed message header; wherein, the target compressed message header can be pre-set, and the size of the target compressed message header is smaller than the size of the original message header of the to-be-transmitted message. Moreover, after setting the message header of the to-be-transmitted message of the same category as the target compressed message header, the sending terminal can send the to-be-transmitted message to the corresponding receiving terminal. In this way, when transmitting the to-be-transmitted message, a target compressed message header whose size is smaller than the original message header is used, which can achieve efficient compressed transmission of the message and greatly save bandwidth.

[0064] It should be noted that the message transmission method of the present application can classify the messages to be transmitted within at least one management domain, and then the same type of messages are transmitted using the target compressed message header as the message header; that is, the sending terminal can directly reach the receiving terminal without being forwarded by other nodes.

[0065] The message transmission method provided by the embodiment of the present application can first classify the messages to be transmitted according to the segment identifiers of the message headers of the messages to be transmitted, and for the same type of messages to be transmitted, their message headers can be set as target compressed message headers, and then the messages are transmitted, without the need to compress the message headers when the Locator segment in the segment identifier has the same information as in the related art, thereby solving the problem in the related art that the message compression scheme during message transmission cannot perform message compression when there is no common part in the Locator segment in the message headers of multiple messages, expanding the applicable scope of message header compression and greatly improving the message transmission efficiency.

[0066] Based on the above embodiments, the present application provides a message transmission method, which can be applied to a receiving terminal. Figure 2 As shown, the method may include the following steps:

[0067] Step 201: Receive a message to be transmitted sent by a sending terminal.

[0068] The message header of the message to be transmitted is the target compressed message header.

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

[0070] Step 202: Obtain a target compressed message header of the message to be transmitted.

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

[0072] Step 203: Modify the target compressed message header of the message to be transmitted to the original message header of the message to be transmitted.

[0073] In an embodiment of the present application, after the receiving terminal obtains the target compressed header (i.e., the new header) of the SRv6 message to be transmitted, the target compressed header of the SRv6 message to be transmitted can be modified to the original header of the SRv6 message to be transmitted; that is, after the receiving terminal receives the SRv6 message to be transmitted with the header set as the new header, it is necessary to modify the header of the SRv6 message to be transmitted to its most original header so that the complete SRv6 message to be transmitted can be obtained and the receiving terminal can be guaranteed to receive the message to be transmitted faster.

[0074] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0075] The message transmission method provided by the embodiment of the present application first classifies the messages to be transmitted according to the segment identifier of the message header of the message to be transmitted when the sending terminal receives it, and then for the same type of messages to be transmitted, the message header can be set as the target compressed message header, and 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, without the need to compress the message header when the Locator segment in the segment identifier has the same information as in the related art, and the message header of the received message can still be modified to the original message header, thereby solving the problem in the related art that the message compression scheme during message transmission cannot perform message compression when there is no common part in the Locator segment in the message headers of multiple messages, expanding the applicable scope of message header compression, and greatly improving the message transmission efficiency.

[0076] Based on the above embodiments, the present application provides a message transmission method, referring to Figure 3 As shown, the method may include the following steps:

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

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

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

[0080] Step 302: If the message header of the message to be transmitted is a target type message header, the sending terminal determines the segment identifier of the message header of the message to be transmitted.

[0081] Step 303: The sending terminal classifies the messages to be transmitted that have the same information in the target field of the segment identifier into the same type of messages.

[0082] In an embodiment of the present application, the target field may refer to a field in the SRv6 message to be transmitted that is used to indicate an address and is related to the Segment List. Specifically, if the target field information in the SRH of the SRv6 message has the same information among multiple SRv6 messages to be transmitted, then these SRv6 messages can be classified into one type of message.

[0083] It should be noted that the message structure of the SRH of the SRv6 message can be as follows: Figure 4 As shown, the target field can refer to Figure 4 Those fields that contain Segment List information.

[0084] Step 304: The sending terminal sets the original message header of the same type of messages to be transmitted as the target compressed message header, and sends the messages to be transmitted to the receiving terminal.

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

[0086] Specifically, the original message header refers to the initial message header of the message to be transmitted before the message header is modified; the category identifier can be an identifier that can characterize the classification of the message to be transmitted according to the actual application scenario and requirements; the category identifier of the message to be transmitted can be any symbol in any form.

[0087] In addition, when the message to be transmitted is transmitted for the first time, the state information can also be carried in the target compressed message header; specifically, the state information can include the target duration and the target number of messages. Among them, the target duration can refer to the use time of the target compressed message header, and the target number of messages can refer to the number of messages whose message headers are the target compressed message headers in the message to be transmitted; that is, the target number of messages refers to the number of messages that can use the target compressed message header as a new message header. That is to say, the state information can be transmitted and maintained between the sending terminal and the receiving terminal through the target compressed message header.

[0088] It should be noted that the sending terminal and the receiving terminal may agree to add a new target compressed message header as a compressed message header to the same type of message to replace the original message header.

[0089] In other embodiments of the present application, if the message to be transmitted is not transmitted for the first time, the target compressed message header includes a category identifier.

[0090] It should be noted that when the sending terminal initially transmits the message to be transmitted, the original message header of the message to be transmitted will be carried in the target compressed message header corresponding to the message to be transmitted, so that the receiving terminal can obtain the information of the original message header of the message to be transmitted; however, when the message to be transmitted is subsequently transmitted, because the information such as the original message header, the target duration and the target number of messages will not change, it is only necessary to carry the category identifier of the message to be transmitted in the target compressed message header in the subsequent transmission; in this way, the bandwidth required for message transmission can be further reduced, and the efficient compression transmission of the message can be further guaranteed. In addition, in the same type of message, the information such as the category identifier, the target duration and the target number are fixed.

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

[0092] The message header of the message to be transmitted is the target compressed message header.

[0093] Step 306: The receiving terminal obtains the target compressed message header of the message to be transmitted.

[0094] Step 307: The receiving terminal modifies the target compressed message header of the message to be transmitted into the original message header of the message to be transmitted.

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

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

[0097] The transmission information is information generated when the message to be transmitted is transmitted.

[0098] In an embodiment of the present application, the target transmission condition may be pre-set according to actual application requirements and application scenarios, and is used to limit the conditions of the target compressed message header corresponding to the message to be transmitted; wherein, the transmission information may refer to the information related to the transmission generated by the message to be transmitted during the transmission process for the message to be transmitted. In a feasible implementation, the transmission information may include information such as the transmission duration and the number of transmissions; the transmission duration may refer to the duration of transmitting the message to be transmitted from the initial transmission of the message to be transmitted, and the number of transmissions may refer to the number of messages to be transmitted from the initial transmission of the message to be transmitted; that is, if the transmission duration corresponding to the message to be transmitted meets the target duration, or the number of transmissions corresponding to the message to be transmitted meets the target number of messages, then it is considered that the transmission information meets the target transmission condition, and the set target compressed message header can be deleted; that is, the target compressed message header will not be used later.

[0099] In other embodiments of the present application, Figure 5 The three messages shown need to cross multiple management domains, and the multiple Locator segments involved in the SID List of each message have no common parts (such as the first message is B1+M1~B2+N1~B3+P1). It is not possible to use the existing common method to extract the common parts of multiple SIDs in the SID List of a message for compression. However, the solution provided by this application is used between CPE1-PE, such as Figure 6 As shown, the method of extracting the common part of the SIDList of multiple messages can be used for compression; because Figure 6 The SID List of the message to be transmitted shown in has common information SIDA, at this time, Figure 6 SID A between CPE1 and PE is compressed as the common part of SID List1, SID List2 and SID List3 in different messages, that is, the 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 the three messages to be transmitted, so as to transmit the messages to be transmitted.

[0100] In other embodiments of the present application, when transmitting an SRv6 message, such as Figure 7As shown, the header of the SRv6 message to be transmitted can be compressed, that is, the header of the SRv6 message to be transmitted that is classified into the same category is set as the target compressed header (that is, the compression of the header is realized). Then, the SRv6 message to be transmitted is transmitted to the receiving terminal via the link layer (Link-Layer) or the data link layer (Data Link-Layer) and the physical layer (PHY-Layer).

[0101] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0102] The message transmission method provided by the embodiment of the present application can first classify the messages to be transmitted according to the segment identifier of the message header of the message to be transmitted, and for the same type of messages to be transmitted, the message header can be set as the target compressed message header and then the message to be transmitted is sent to the receiving terminal, and the receiving terminal can modify the target compressed message header of the message to be transmitted to the original message header of the message to be transmitted, without the need to compress the message header when the Locator segment in the segment identifier has the same information as in the related art, and the received message can still modify its message header to the original message header, thereby solving the problem in the related art that the message compression scheme during message transmission cannot perform message compression when there is no common part in the Locator segment in the message headers of multiple messages, expanding the applicable scope of message header compression, and greatly improving the message transmission efficiency.

[0103] Based on the above embodiments, the present application provides a first message transmission device, which can be applied to Figure 1 and 3 In the message transmission method provided in the corresponding embodiment, refer to Figure 8 As shown, the first message transmission device 4 may include: a determination unit 41, a classification unit 42 and a first processing unit 43, wherein:

[0104] A determination unit 41, configured to determine a segment identifier of a message header of the message to be transmitted if the message header of the message to be transmitted is a target type message header;

[0105] A classification unit 42, configured to classify the messages to be transmitted based on the segment identifiers;

[0106] The first processing unit 43 is used to set the original message header of the same type of to-be-transmitted message as the target compressed message header, and send the to-be-transmitted message to the 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.

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

[0108] Messages with the same information in the target field of the segment identifier in the messages to be transmitted are classified into the same category of messages.

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

[0110] If the message to be transmitted is not transmitted for the first time, the target compressed message header includes a 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 message to be transmitted meets the target transmission condition, the target compressed message header is deleted; wherein the transmission information is information generated when the message to be transmitted 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 message header of the message to be transmitted is the target protocol number, and the value of the routing type field of the message header of the message to be transmitted is the second target value, it is determined that the message header of the message to be transmitted is a target type message header.

[0115] It should be noted that the specific description of the steps performed by each unit can be referred to Figure 1 and 2 The message transmission method provided in the corresponding embodiment will not be repeated here.

[0116] The first message transmission device provided in the embodiment of the present application can, when transmitting a message, first classify the message to be transmitted according to the segment identifier of the message header of the message to be transmitted, and set the message header of the same type of message to be transmitted as the 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 in the related art that the message compression scheme during message transmission cannot compress the message when there is no common part in the Locator segment in the message headers of multiple messages, expanding the applicable scope of message header compression and greatly improving the message transmission efficiency.

[0117] Based on the above embodiments, the present application provides a second message transmission device, which can be applied to Figure 2 and 3 In the message transmission method provided in the corresponding embodiment, refer to Fig. 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 a sending terminal; wherein the message header of the message to be transmitted is a target compressed message header;

[0119] An acquisition unit 52, used to acquire a target compressed message header of a message to be transmitted;

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

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

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

[0123] It should be noted that the specific description of the steps performed by each unit can be referred to Figure 2 and 3 The message transmission method provided in the corresponding embodiment will not be repeated here.

[0124] The second message transmission device provided in the embodiment of the present application, after receiving the sending terminal, first classifies the message to be transmitted according to the segment identifier of the message header of the message to be transmitted, and then for the same type of message to be transmitted, the message header can be set as the target compressed message header, and 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, without the need to compress the message header when the Locator segment in the segment identifier has the same information as in the related art, and the message header can still be modified to the original message header after the message is received, thereby solving the problem in the related art that the message compression scheme during message transmission cannot perform message compression when there is no common part in the Locator segment in the message headers of multiple messages, expanding the applicability of message header compression, and greatly improving the message transmission efficiency.

[0125] Based on the foregoing embodiments, the embodiments of the present application provide a sending terminal, which can be applied to Figure 1 and 3 In the message transmission method provided in the corresponding embodiment, refer to Fig.10 As shown, the sending 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 used to realize the communication connection between the first processor 61 and the first memory 62;

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

[0128] If the message header of the message to be transmitted is a message header of the target type, determining the segment identifier of the message header of the message to be transmitted;

[0129] Classify the messages to be transmitted based on segment identifiers;

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

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

[0132] Messages with the same information in the target field of the segment identifier in the messages to be transmitted are classified into the same category of messages.

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

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

[0135] In other embodiments of the present application, the first processor 61 is used to execute the message transmission program in the first memory 62, and may further implement the following steps:

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

[0137] In other embodiments of the present application, the first processor 61 is used to execute the message transmission program in the first memory 62, and may further implement the following steps:

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

[0139] It should be noted that the specific description of the steps performed by the first processor can be referred to Figure 1 and 3The message transmission method provided in the corresponding embodiment will not be repeated here.

[0140] The sending terminal provided in the embodiment of the present application can first classify the messages to be transmitted according to the segment identifiers of the message headers of the messages to be transmitted when transmitting the messages. For the same type of messages to be transmitted, their message headers can be set as target compressed message headers, and then the messages are transmitted without the need to compress the message headers when the Locator segment in the segment identifier has the same information as in the related art. This solves the problem in the related art that the message compression scheme during message transmission cannot perform message compression when there is no common part in the Locator segment in the message headers of multiple messages, expands the applicability of message header compression, and greatly improves the message transmission efficiency.

[0141] Based on the above 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 in the corresponding embodiment, refer to Fig.11 As shown, the receiving terminal 7 may include: a second processor 71, a second memory 72 and a second communication bus 73, wherein:

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

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

[0144] Receiving a message to be transmitted sent by a transmitting terminal; wherein the message header of the message to be transmitted is a target compressed message header;

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

[0146] The target compressed message header of the message to be transmitted is modified to be the original message header of the message to be transmitted.

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

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

[0149] It should be noted that the specific description of the steps performed by the second processor can be referred to Figure 2 and 3 The message transmission method provided in the corresponding embodiment will not be repeated here.

[0150] The receiving terminal provided in the embodiment of the present application first classifies the messages to be transmitted according to the segment identifier of the message header of the message to be transmitted after receiving the sending terminal, and then for the same type of messages to be transmitted, the message header can be set as the target compressed message header, and 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, without the need to compress the message header when the Locator segment in the segment identifier has the same information as in the related art, and the message header of the received message can still be modified to the original message header, thereby solving the problem in the related art that the message compression scheme during message transmission cannot perform message compression when there is no common part in the Locator segment in the message headers of multiple messages, expanding the scope of application of message header compression, and greatly improving the message transmission efficiency.

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

[0152] Based on the foregoing embodiments, an embodiment of the present application provides a computer program product, including a computer program, which can be executed by the first processor 61 and the second processor 71 to complete Figures 1 to 3 The corresponding embodiments provide steps of the message transmission method.

[0153] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt 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.) that contain computer-usable program code.

[0154] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0155] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0157] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A message transmission method, characterized in that: The method comprises: If the message header of the message to be transmitted is a target type message header, determining a segment identifier of the message header of the message to be transmitted; Classifying the to-be-transmitted messages based on the segment identifiers; The original message header of the same type of messages to be transmitted is set as the target compressed message header, and the messages to be transmitted are sent to a receiving terminal, so that the receiving terminal modifies the target compressed message header to the original message header after receiving the messages to be transmitted; wherein the target compressed message header is smaller than the original message header.

2. The method according to claim 1, characterized in that: The classifying the to-be-transmitted message based on the segment identifier includes: In the messages to be transmitted, the messages having the same information in the target field of the segment identifier are classified into the same category of messages.

3. The method according to claim 1, characterized in that If the message to be transmitted is transmitted for the first time, the target compressed message header includes: the original message header and a category identifier; wherein the category identifier represents the category of the message to be transmitted; If the message to be transmitted is not transmitted for the first time, the target compressed message header includes the category identifier.

4. The method according to claim 3, characterized in that The method further comprises: If the transmission information corresponding to the message to be transmitted meets the target transmission condition, the target compressed message header is deleted; wherein the transmission information is information generated when the message to be transmitted is transmitted.

5. The method according to claim 1, characterized in that If the message header of the message to be transmitted is a target type message header, before determining the segment identifier of the message header of the message to be transmitted, the method further includes: If the protocol number of the message header of the message to be transmitted is the target protocol number, and the value of the routing type field of the message header of the message to be transmitted is the second target value, it is determined that the message header of the message to be transmitted is the target type message header.

6. A message transmission method, characterized in that: The method comprises: Receiving a message to be transmitted sent by a sending terminal; wherein the message header of the message to be transmitted is a target compressed message header; Obtaining the target compressed message header of the message to be transmitted; The target compressed message header of the message to be transmitted is modified to be the original message header of the message to be transmitted; wherein the target compressed message header is smaller than the original message header.

7. The method according to claim 6, characterized in that The method further comprises: If the message to be transmitted is sent for the first time, the target compressed message header includes: the original message header and a category identifier; wherein the category identifier represents the category of the message to be transmitted; If the message to be transmitted is not sent for the first time, the target compressed message header includes the category identifier.

8. A first message transmission device, characterized in that: include: A determination unit, configured to determine a segment identifier of the message header of the message to be transmitted if the message header of the message to be transmitted is a target type message header; A classification unit, used for classifying the message to be transmitted based on the segment identifier; The first processing unit is used to set the original message header of the same type of the to-be-transmitted message as the target compressed message header, and send the to-be-transmitted message to the 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.

9. A second message transmission device, characterized in that: include: A receiving unit, configured to receive a message to be transmitted sent by a sending terminal; wherein the message header of the message to be transmitted is a target compressed message header; An acquisition unit, configured to acquire the target compressed message header of the message to be transmitted; The second processing unit 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.

10. A sending terminal, characterized in that: The sending terminal includes: a first processor, a first memory and a first communication bus; The first communication bus is used to realize the communication connection between the first processor and the first memory; The first processor is used to execute the message transmission program in the first memory to implement the steps of the message transmission method according to any one of claims 1 to 5.

11. A receiving terminal, characterized in that: The receiving terminal includes: a second processor, a second memory and a second communication bus; The second communication bus is used to realize the communication connection between the second processor and the second memory; The second processor is used to execute the message transmission program in the second memory to implement the steps of the message transmission method according to any one of claims 6 to 7.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the message transmission method according to any one of claims 1 to 5 or 6 to 7.

13. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 5 or 6 to 7.

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

  • Header compression method, device and equipment for cross-domain transmission of SRv6 data message and medium

    CN115314562A

  • Error recovery method and device for IP header compression in mobile communication network

    CN1735071A

  • Method and apparatus for encapsulating extension header of ipv6 packet

    WO2022078509A1