Message processing method, communication device and system

By using the DSCP value in the IPv6 message to determine whether to detect the IPv6 extension header, the problem of poor option delivery flexibility in the IPv6 protocol is solved, and the efficiency and reliability of message transmission are improved.

CN118694828APending Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310576247.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2023-05-19
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing IPv6 protocol, the flexibility in selecting IPv6 extension headers is poor, resulting in possible packet loss and unnecessary waste of overhead during message transmission.

Method used

By using the Differentiated Services Code Point (DSCP) value in the IPv6 message to determine whether to detect the IPv6 extension header, flexibly select the type of carrying options to avoid packet discarding problems caused by hop-by-hop option header carrying options, and extend the DSCP value to indicate Detection options function.

Benefits of technology

It realizes the flexible transmission of options carried in IPv6 messages, avoids unnecessary detection and overhead, and improves message transmission efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694828A
    Figure CN118694828A
Patent Text Reader

Abstract

The invention provides a message processing method, a communication device and a communication system, which are applied to the technical field of communication. The method may comprise: a communication device receiving an IPv6 message, the IPv6 message comprising a DSCP and a first IPv6 extension header, the first IPv6 extension header carrying at least one option; the communication device determines whether the value of the DSCP is a target value. Under the condition that the value of the DSCP is a target value, the communication equipment can detect the first IPv6 extension head. Based on the scheme, the communication equipment can determine whether to detect the first IPv6 extension header carrying the option in the IPv6 message according to the DSCP value for the received IPv6 message. Therefore, the DSCP value can be packaged according to the requirement of the detection option in practical application, so that the transmission of the option is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on March 23, 2023, with application number 202310323411.3 and application name “A Message Processing Method”, all contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of network communication technology, and in particular to a message processing method, a communication device and a system. Background Art

[0003] Internet Protocol Version 6 (IPv6) is an upgraded version of Internet Protocol Version 4 (IPv4) and is a new generation of Internet Protocol. In IPv6, those special functions provided by options are implemented by adding an extension header after the IPv6 header. For example, options can be carried in the IPv6 extension header in the form of type-length-value (TLV), and an IPv6 extension header can include one or more options carried in the form of TLV.

[0004] In the current IPv6 protocol, if the IPv6 extension header carried by the message is other than the hop-by-hop options header, the intermediate node will not detect and process the IPv6 extension header, and only the destination node can detect and process it. If the IPv6 extension header carried by the message is a hop-by-hop options header, all nodes on the message forwarding path must detect and process the hop-by-hop options header.

[0005] Since different types of IPv6 extension headers correspond to different detection processing behaviors, it is necessary to select the corresponding IPv6 extension header to carry the option according to the situation in which the option is expected to be processed, which has poor flexibility. Summary of the invention

[0006] The present application provides a message processing method, a communication device and a system for solving the problem of poor flexibility in selecting an IPv6 extension header that carries options.

[0007] In order to achieve the above purpose, this application adopts the following technical solutions:

[0008] In a first aspect, a message processing method is provided, which may include: a communication device receives an IPv6 message, the IPv6 message may include a differentiated services code point (DSCP) and a first IPv6 extension header, the first IPv6 extension header carries at least one option. Afterwards, the communication device needs to determine whether the value of the DSCP is a target value. When the value of the DSCP is the target value, the communication device may detect the first IPv6 extension header.

[0009] Based on this solution, the communication device can determine whether to detect the first IPv6 extension header carrying the option in the IPv6 message according to the DSCP value for the received IPv6 message. Based on this implementation, there is no need to limit the type of the IPv6 extension header carrying the option, making the selection of the IPv6 extension header more flexible. In addition, in actual applications, the DSCP value can be encapsulated according to the need to detect the option, and indicating whether to detect the IPv6 extension header by the DSCP value also makes the transmission of the option more flexible.

[0010] In combination with the above first aspect, in a possible implementation manner, the first IPv6 extension header is a destination options header (DOH) or a segment routing header (SRH).

[0011] Based on this solution, IPv6 packets use DOH or SRH to carry options, which can avoid the problem that the packets may be discarded when the hop-by-hop option header is used to carry options. Moreover, compared with the existing protocol, the solution of this application can make DOH or SRH not have to be processed at the destination node, which is more flexible. Furthermore, when DOH or SRH is not restricted to be processed at the destination node, the functions of DOH and SRH can also be expanded.

[0012] In combination with the above first aspect, in a possible implementation manner, when the first IPv6 extension header is an SRH, at least one option is carried in a TLV field of the SRH.

[0013] In combination with the first aspect above, in a possible implementation, the method may further include: when the value of DSCP is not the target value, if the communication device is not the destination node of the IPv6 message, the communication device does not detect the first IPv6 extension header. When the value of DSCP is not the target value, if the communication device is the destination node of the IPv6 message, the communication device detects the first IPv6 extension header.

[0014] Based on this solution, before the IPv6 message reaches the destination node, the intermediate node determines whether to detect the first IPv6 extension header according to the DSCP value. When the IPv6 message reaches the destination node, the destination node must detect the first IPv6 extension header.

[0015] In combination with the above-mentioned first aspect, in a possible implementation manner, the communication device detects the first IPv6 extension header, which may specifically include: the communication device detects the first IPv6 extension header, and processes at least one option in the first IPv6 extension header.

[0016] Based on this solution, after detecting the first IPv6 extension header, the communication device will also process the options carried therein to implement corresponding functions.

[0017] In combination with the above-mentioned first aspect, in a possible implementation manner, at least one option includes at least one of a congestion exposure (ConEx) option, an alternative-marking (Alt-Mark or AltMark for short) option, or a virtual transport network (VTN) option.

[0018] In combination with the above-mentioned first aspect, in a possible implementation manner, the method may further include: the communication device obtains configuration information, where the configuration information is used to indicate to detect the first IPv6 extension header when the value of DSCP is a target value.

[0019] Based on this solution, whether the communication device detects the rule of the first IPv6 extension header based on DSCP can be pre-configured.

[0020] In combination with the first aspect above, in a possible implementation, the target value includes a first target value and a second target value. The configuration information is used to indicate that the first IPv6 extension header is detected when the value of DSCP is the target value, and specifically may include: the configuration information is used to indicate that the first IPv6 extension header is detected when the value of DSCP is the first target value, and the first IPv6 extension header is DOH. The configuration information is used to indicate that the first IPv6 extension header is detected when the value of DSCP is the second target value, and the first IPv6 extension header is SRH. The first target value and the second target value are the same or different.

[0021] Based on this solution, when the first IPv6 extension header is of different types, the corresponding DSCP values ​​may be different. Alternatively, the same DSCP value may be used to indicate different types of first IPv6 extension headers.

[0022] In a second aspect, a message processing method is provided, which may include: a first communication device obtains a first message, and then the first communication device generates a second message according to the first message. The second message is an IPv6 message, and the second message includes a DSCP, a first IPv6 extension header and a first payload, the first payload includes at least part of the content of the first message, and the first IPv6 extension header carries at least one option. The value of DSCP is used to indicate whether the second communication device receiving the second message detects the first IPv6 extension header.

[0023] Based on this solution, the IPv6 message can indicate, through the DSCP value, whether the communication device receiving the IPv6 message detects the first IPv6 extension header carrying the option in the IPv6 message. Based on this implementation, there is no need to limit the type of the IPv6 extension header carrying the option, making the selection of the IPv6 extension header more flexible. In addition, in actual applications, the DSCP value can be encapsulated according to the need to detect the option, and indicating whether to detect the IPv6 extension header through the DSCP value also makes the transmission of the option more flexible.

[0024] In combination with the above second aspect, in a possible implementation manner, the first IPv6 extension header is DOH or SRH.

[0025] In combination with the second aspect above, in a possible implementation manner, when the first IPv6 extension header is an SRH, at least one option is carried in a TLV field of the SRH.

[0026] In a third aspect, the present application provides a communication device, which may be the communication device of the first aspect, or a chip or chip system in the communication device of the first aspect, or a functional module in the communication device of the first aspect. The communication device may implement the function performed by the communication device in any possible design of the first aspect, and the function may be implemented by hardware executing the corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, the communication device may include: a transceiver module and a processing module. Among them, the transceiver module may be used to receive an IPv6 message, and the IPv6 message may include a DSCP and a first IPv6 extension header, and the first IPv6 extension header carries at least one option. The processing module may be used to determine whether the value of DSCP is a target value. The processing module may also be used to: detect the first IPv6 extension header when the value of DSCP is the target value.

[0027] In combination with the third aspect above, in a possible implementation manner, the first IPv6 extension header is DOH or SRH.

[0028] In combination with the third aspect above, in a possible implementation manner, when the first IPv6 extension header is an SRH, at least one option is carried in a TLV field of the SRH.

[0029] In combination with the third aspect above, in a possible implementation, the processing module may also be used to: when the value of DSCP is not the target value and the communication device is not the destination node of the IPv6 message, determine not to detect the first IPv6 extension header. The processing module may also be used to: when the value of DSCP is not the target value and the communication device is the destination node of the IPv6 message, detect the first IPv6 extension header.

[0030] In combination with the third aspect, in a possible implementation, the processing module detects the first IPv6 extension header, which may specifically include: the processing module detects the first IPv6 extension header, and the processing module processes at least one option in the first IPv6 extension header.

[0031] In combination with the third aspect above, in a possible implementation, at least one option includes at least one of a ConEx option, an AltMark option, or a VTN option.

[0032] In combination with the third aspect above, in a possible implementation manner, the transceiver module may also be used to obtain configuration information, where the configuration information is used to instruct to detect the first IPv6 extension header when the value of the DSCP is a target value.

[0033] In combination with the third aspect above, in a possible implementation, the target value includes a first target value and a second target value. The configuration information is used to indicate that the first IPv6 extension header is detected when the value of DSCP is the target value, and specifically may include: the configuration information is used to indicate that the first IPv6 extension header is detected when the value of DSCP is the first target value, and the first IPv6 extension header is DOH. The configuration information is used to indicate that the first IPv6 extension header is detected when the value of DSCP is the second target value, and the first IPv6 extension header is SRH. The first target value and the second target value are the same or different.

[0034] Among them, the technical effects of the third aspect mentioned above can refer to the first aspect mentioned above, and will not be repeated here.

[0035] In a fourth aspect, the present application provides a communication device, which may be the first communication device of the second aspect, or a chip or chip system in the first communication device of the second aspect, or a functional module in the first communication device of the second aspect. The communication device may implement the function performed by the first communication device in any possible design of the second aspect, and the function may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, the communication device may include: a transceiver module and a processing module. The transceiver module may be used to obtain a first message. The processing module may be used to generate a second message based on the first message. The second message is an IPv6 message, and the second message includes a DSCP, a first IPv6 extension header and a first payload, the first payload includes at least part of the content of the first message, and the first IPv6 extension header carries at least one option. The value of DSCP is used to indicate whether the second communication device receiving the second message detects the first IPv6 extension header.

[0036] In combination with the fourth aspect above, in a possible implementation, the transceiver module may also be used to send a second message.

[0037] In combination with the fourth aspect above, in a possible implementation manner, the first IPv6 extension header is DOH or SRH.

[0038] In combination with the fourth aspect above, in a possible implementation manner, when the first IPv6 extension header is an SRH, at least one option is carried in a TLV field of the SRH.

[0039] Among them, the technical effects of the fourth aspect mentioned above can refer to the second aspect mentioned above, and will not be repeated here.

[0040] In a fifth aspect, a communication device is provided, comprising: a processor and a communication interface; the communication interface can be used to perform the receiving and sending operations in the message processing method of the first aspect, and the processor is used to perform the processing or control operations in the message processing method of the first aspect. Alternatively, the communication interface is used to perform the receiving and sending operations in the message processing method of the second aspect, and the processor is used to perform the processing or control operations in the message processing method of the second aspect.

[0041] In the sixth aspect, a communication device is provided, comprising: a processor and a memory; the memory is used to store computer instructions, and when the communication device is running, the processor executes the computer instructions stored in the memory to enable the communication device to perform a message processing method as described in any one of the first aspect or the second aspect above.

[0042] In conjunction with the sixth aspect, in a possible implementation, the communication device further includes a communication interface; the communication interface is used for the communication device to communicate with other devices. Exemplarily, the communication interface can be a transceiver, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit, etc.

[0043] In the seventh aspect, a communication device is provided, comprising: a processor; the processor is used to couple with a memory, and after reading the instructions in the memory, can execute the message processing method as described in any one of the first aspect or the second aspect according to the instructions.

[0044] In conjunction with the seventh aspect, in a possible implementation, the communication device further includes a communication interface; the communication interface is used for the communication device to communicate with other devices. Exemplarily, the communication interface can be a transceiver, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit, etc.

[0045] In an eighth aspect, a chip is provided, comprising: a processor, the processor being coupled to a memory, the memory being used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip executes the message processing method described in any one of the first or second aspects above.

[0046] In a ninth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer can execute the message processing method described in any one of the first aspect or the second aspect.

[0047] In the tenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the message processing method described in any one of the first aspect or the second aspect.

[0048] In the eleventh aspect, a communication system is provided, which may include a first communication device and a second communication device. The first communication device can execute any message processing method described in the first aspect, and the second communication device can execute any message processing method described in the first aspect.

[0049] Among them, the technical effects brought about by any design method in the fourth to eleventh aspects can refer to the technical effects brought about by different design methods in the first or second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A schematic diagram of the structure of a communication system provided in an embodiment of the present application;

[0051] Figure 2A schematic diagram of the structure of another communication system provided in an embodiment of the present application;

[0052] Figure 3 A flowchart of a message processing method provided in an embodiment of the present application;

[0053] Figure 4 A flowchart of another message processing method provided in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of a message forwarding process provided in an embodiment of the present application;

[0055] Figure 6 A schematic diagram of another message forwarding process provided in an embodiment of the present application;

[0056] Figure 7 A schematic diagram of another message forwarding process provided in an embodiment of the present application;

[0057] Figure 8 A schematic diagram of another message forwarding process provided in an embodiment of the present application;

[0058] Fig. 9 A schematic diagram of another message forwarding process provided in an embodiment of the present application;

[0059] Fig.10 A schematic diagram of another message forwarding process provided in an embodiment of the present application;

[0060] Fig.11 A flowchart of another message processing method provided in an embodiment of the present application;

[0061] Fig.12 A flowchart of another message processing method provided in an embodiment of the present application;

[0062] Fig.13 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0063] Fig.14 A schematic diagram of the structure of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] To facilitate understanding, first, a brief introduction is given to the technical terms and related technologies involved in this application.

[0065] IPv6 is an upgraded version of IPv4 and a new generation of Internet protocol. In IPv6, the special functions provided by IPv4 options are implemented by adding an extension header after the IPv6 header. The extension header is optional in IPv6. An IPv6 message can contain zero or more extension headers, which are immediately followed by the IPv6 basic header.

[0066] Common IPv6 extension headers include: hop-by-hop option header, DOH, and routing header (Routing header, RH). Among them, the hop-by-hop option header is used to carry option information that needs to be processed by each node on the message forwarding path, and the destination option header is used to carry option information that only needs to be processed by the destination node of the message. The routing header is used to specify the intermediate nodes that the message must pass through, and the routing header carries the address information of the message forwarding path.

[0067] In terms of protocol semantics, for option information that needs to be processed hop by hop by each node in the network, a hop-by-hop option header should be used instead of a destination option header or a routing header. The hop-by-hop processing mentioned in the embodiment of the present application means that a node receives a message whose destination address is not the address of the node, but needs to process the extension header of the message.

[0068] However, there are some problems with using the hop-by-hop option header to carry option information that needs to be processed hop by hop. For example, some nodes in the network may not support the processing of the hop-by-hop option header. Or, the node processes the option information in the hop-by-hop option header slowly, resulting in packet loss. The above defects will cause IPv6 packets to be discarded during transmission, which will cause a great risk.

[0069] In order to overcome the above-mentioned problems with the hop-by-hop option header, in some designs, the standard semantics may not be followed, and the destination option header may be used to carry the option information that needs to be processed hop-by-hop, and the nodes on the message forwarding path may be configured to detect and process the destination option header of the message, so that the option information that needs to be processed hop-by-hop may be transmitted. However, this design method also has some problems. For example, the destination option header may be designed to support carrying multiple categories of option information, which may include option information that is expected to be processed hop-by-hop, and option information that is not expected to be processed hop-by-hop. However, the above design requires that the nodes on the message forwarding path detect and process the destination option header of the message, so for the option information that is not expected to be processed hop-by-hop and included in the destination option header, the nodes on the forwarding path may also perform unnecessary detection. This will lead to unnecessary waste of overhead and reduce the efficiency of message forwarding.

[0070] The present application provides a message processing method, in which the IPv6 message adopts DOH or SRH to carry options, which can avoid the problem that the message may be discarded when the hop-by-hop option header is used to carry options. In addition, when the DOH or SRH is used to carry options, the present application also extends the DSCP value to indicate whether to detect the DOH or SRH carrying options. Therefore, it is possible to flexibly control whether the options carried by the IPv6 message are to be detected, thereby avoiding unnecessary detection of the communication device and saving overhead.

[0071] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0072] Before introducing the message processing method provided in the embodiment of the present application, the communication system / service scenario to which the message processing method of the present application is applied is first introduced.

[0073] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the communication system may include a first communication device 101 and a second communication device 102, and the first communication device 101 may be connected to the second communication device 102. The first communication device 101 and the second communication device 102 may communicate with each other based on IPv6.

[0074] The message processing method provided in the embodiment of the present application can be applied to the above Figure 1The communication device in the communication system shown. For example, the first communication device 101 can be used to generate and send IPv6 messages, and the second communication device 102 can be used to detect and process IPv6 messages from the first communication device 101. For another example, the second communication device 102 can be used to generate and send IPv6 messages, and the first communication device 101 can be used to detect and process IPv6 messages from the second communication device 102. For specific implementation, please refer to the following method embodiment, which will not be repeated here.

[0075] Figure 2 A schematic diagram of another communication system provided in an embodiment of the present application, such as Figure 2 As shown, the communication system may include a user site 1, PE1, P1, P2, PE2, and a user site 2 connected in sequence. User site 1 and user site 2 may communicate with each other through the routing of PE1, P1, P2, and PE2. Figure 2 , user site 1 may include host H1 and CE1, and host H1 may be connected to PE1 via CE1. User site 2 may include host H2 and CE2, and host H2 may be connected to PE2 via CE2. It should be understood that the communication between user site 1 and user site 2 is actually the communication between host H1 and host H2.

[0076] PE1 and PE2 refer to provider edge (PE) devices, P1 and P2 refer to provider (P) devices, and CE1 and CE2 refer to customer edge (CE) devices. Optionally, CE, PE and P devices may be forwarding devices such as routers, switches or gateways, respectively.

[0077] The message processing method provided in the embodiment of the present application can be applied to the above Figure 2 Devices in the communication system shown. For example, the host H1 can be used to generate and send IPv6 packets, and the PE1 downstream of the packet forwarding path can detect and process the IPv6 packets from the host H1. For another example, PE1 can be used to generate and send IPv6 packets, and P1, P2 or PE2 downstream of the packet forwarding path can detect and process the IPv6 packets from PE1. For another example, the host H2 can be used to generate and send IPv6 packets, and PE2 downstream of the packet forwarding path can detect and process the IPv6 packets from the host H2. For another example, PE2 can be used to generate and send IPv6 packets, and P2, P1 or PE1 downstream of the packet forwarding path can detect and process the IPv6 packets from PE2. For specific implementation, please refer to the following method embodiment, which will not be repeated here.

[0078] As a possible implementation, Figure 2 The host H1 in can correspond to Figure 1 The first communication device 101 in Figure 2 PE1 in can correspond to Figure 1 The first communication device 102 in. Or, Figure 2 PE1 in can correspond to Figure 1 The first communication device 101 in Figure 2 P1, P2 or PE2 in can correspond to Figure 1 The first communication device 102 in. Or, Figure 2 The host H2 in can correspond to Figure 1 The first communication device 101 in Figure 2 PE2 in can correspond to Figure 1 The first communication device 102 in. Or, Figure 2 PE2 in can correspond to Figure 1 The first communication device 101 in Figure 2 P2, P1 or PE1 in can correspond to Figure 1 The first communication device 102 in.

[0079] Alternatively, if Figure 2 As shown in the figure, the interface connected to user site 1 in PE1 is ge1 / 0 / 1, the interface connected to P1 in PE1 is ge1 / 0 / 2, the interface connected to PE1 in P1 is ge1 / 1 / 1, the interface connected to P2 in P1 is ge1 / 1 / 2, the interface connected to P1 in P2 is ge2 / 1 / 1, the interface connected to PE2 in P1 is ge2 / 1 / 2, the interface connected to P2 in PE2 is ge2 / 0 / 1, and the interface connected to user site 2 in PE2 is ge2 / 0 / 2. The configuration information for IPv6 forwarding configured in a node can be associated with the interface of the node, as described below.

[0080] It should be understood that the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0081] The following will be combined Figure 1 and Figure 2 The communication system shown describes the message processing method provided by the embodiment of the present application. The actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message in the embodiment of the present application is only an example, and other names can also be used in the specific implementation without limitation.

[0082] Figure 3A flowchart of a message processing method provided in an embodiment of the present application, such as Figure 3 As shown, the message processing method may include the following steps:

[0083] Step 301: A communication device receives an IPv6 message, wherein the IPv6 message may include a DSCP and a first IPv6 extension header, and the first IPv6 extension header carries at least one option.

[0084] DSCP is located in the traffic class field in the IPv6 basic header. In the differentiated services (DiffServ) technology system of the Internet Engineering Task Force (IETF), the traffic class field of the IPv6 header is also called the differentiated services field or differentiated services field. The differentiated services field has a total of 8 bits, of which the first 6 bits are used as DSCP. Theoretically, the 6 bits used as DSCP can have 64 values, and different DSCP values ​​can be given different meanings.

[0085] It should be understood that in the field of IP technology, in addition to the data to be transmitted, a message can also carry some control information, test information or network parameter statistics that may be used in the message transmission process. In the field of IPv6 technology, the above information used to implement various functions can be carried as an option in the extension header of the IPv6 message.

[0086] In an embodiment of the present application, at least one option may be carried in the first IPv6 extension header of the IPv6 message received by the communication device. At least one option may be executed by an intermediate node or a destination node on the IPv6 message forwarding path, thereby realizing some specific functions. Wherein, the destination node of the IPv6 message refers to the node corresponding to the destination address of the IPv6 message. The intermediate node of the IPv6 message refers to the forwarding node that the IPv6 message passes through before reaching the destination node. The destination address of the IPv6 message does not correspond to the intermediate node, and the destination address of the IP message is not the address of the intermediate node.

[0087] Optionally, at least one option in the first IPv6 extension header may include at least one of the following: a ConEx option, an AltMark option, or a VTN option.

[0088] The ConEx option can be used for network congestion control. The ConEx option can include a bit indicating whether there is congestion, and the ConEx option carried in the IPv6 message can indicate the congestion status of the IPv6 message. The forwarding node in the network can count the congestion status of the network by reading the ConEx option in the IPv6 message it receives. Optionally, the ConEx option is an option that is expected to be processed hop by hop.

[0089] The AltMark option can be used for alternate coloring. The AltMark option includes the packet loss coloring bit and the delay coloring bit. The packet loss coloring bit is used for packet loss statistics, and the delay coloring bit is used for delay statistics. The forwarding nodes in the network can calculate the packet loss rate and transmission delay in the network by reading the coloring bits carried by the IPv6 packets they receive.

[0090] When an IPv6 message is transmitted through a VTN, the IPv6 message may carry a VTN option. The VTN option may include relevant information of the VTN, which may indicate the VTN network resources allocated to the IPv6 message and the processing rules of the IPv6 message. Nodes in the network may determine the network resource allocation and processing rules for the IPv6 message based on the VTN option in the received IPv6 message.

[0091] Optionally, the first IPv6 extension header may be a DOH or a segment routing header (SRH).

[0092] Optionally, when the first IPv6 extension header is an SRH, the option information is carried in a TLV field of the SRH.

[0093] Optionally, the first IPv6 extension header is processed in the IPv6 message received by the communication device, and other IPv6 extension headers may also be included, and other IPv6 extension headers may be used to implement other functions. This application is not limited to this, and is described here. For example, the IPv6 message may include DOH, and DOH is used to carry options. In addition, the IPv6 message may also include SRH, and SRH may be used to carry forwarding path information of the IPv6 message.

[0094] Step 302: The communication device determines whether the value of DSCP is a target value.

[0095] The embodiment of the present application defines a new target value for DSCP, which is different from the existing DSCP value in the existing standard.

[0096] Optionally, the communication device may determine whether to detect the first IPv6 extension header in the IPv6 message according to whether the value of DSCP is a target value.

[0097] That is, the present application defines a new semantic DSCP value (ie, target value) so that the differentiated services field in the IPv6 header assumes a new function (eg, indicating whether to detect the first IPv6 extension header in the IPv6 message).

[0098] It should be understood that, although the present application only defines one DSCP value to indicate whether to detect the first IPv6 extension header in the IPv6 message, since the first IPv6 extension header can carry multiple options, multiple options can implement multiple functions. This means that one DSCP value can be used to implement multiple functions. Thus, the solution of the present application greatly expands the value space of DSCP.

[0099] Step 303: When the DSCP value is the target value, the communication device detects the first IPv6 extension header.

[0100] Optionally, the message processing method may further include: step 304: when the value of DSCP is not the target value, if the communication device is not the destination node of the IPv6 message, the communication device does not detect the first IPv6 extension header.

[0101] Optionally, the message processing method may further include: step 305, when the value of DSCP is not the target value, if the communication device is the destination node of the IPv6 message, the communication device processes the first IPv6 extension header. It should be understood that when the IPv6 message arrives at the destination node, the IPv6 extension header encapsulated in the IPv6 message will be processed by default.

[0102] It can be seen from step 303 to step 305 that, when the communication device is not the destination node of the IPv6 message (that is, when the communication device is an intermediate node), the communication device can determine whether to detect the first IPv6 extension header according to the value of DSCP in the IPv6 message. When the communication device is the destination node of the IPv6 message, the communication device can detect the first IPv6 extension header by default.

[0103] Based on the message processing method provided by the embodiment of the present application, firstly, the IPv6 message adopts DOH or SRH to carry options, which can avoid the problem that the message may be discarded when the hop-by-hop option header is used to carry options. Secondly, when the DOH or SRH is used to carry options, the present application also extends the DSCP value to indicate whether to detect the DOH or SRH carrying options. In this way, it is possible to flexibly control whether the options carried by the IPv6 message are to be detected, thereby avoiding unnecessary detection of the communication equipment and saving overhead.

[0104] Optionally, in the case where the first IPv6 extension header is an SRH, the option information is carried in a TLV field of the SRH. Therefore, the communication device detecting the SRH may include: the communication device detecting the TLV of the SRH.

[0105] Optionally, the communication device detects the first IPv6 extension header, which may specifically include: the communication device detects the first IPv6 extension header, and processes at least one option in the first IPv6 extension header.

[0106] Optionally, the first IPv6 extension header may include at least one option and at least one identifier, the at least one identifier corresponds to the at least one option one-to-one, and each identifier may be used to indicate whether the option corresponding to the identifier is expected to be processed. In this case, the communication device detects the first IPv6 extension header, which may specifically include: the communication device detects the first IPv6 extension header, and processes the option expected to be processed indicated by the identifier in the first IPv6 extension header.

[0107] Optionally, the communication device processing the option in the first IPv6 extension header may include: the communication device executing a corresponding control behavior according to the option in the first IPv6 extension header.

[0108] As a possible implementation manner, when the first IPv6 extension header includes a ConEx option, the communication device processes the ConEx option, which may include: the communication device reads the congestion situation of the IPv6 message indicated by the ConEx option, and reports the congestion situation to the controller through telemetry.

[0109] As a possible implementation manner, when the first IPv6 extension header includes an AltMark option, the communication device processes the AltMark option, which may include: the communication device reads a coloring mark in the AltMark option, and reports the result to the controller through telemetry.

[0110] As a possible implementation, when the first IPv6 extension header includes a VTN option, the communication device processes the VTN option, which may include: the communication device allocates VTN network resources to the IPv6 message, and forwards the IPv6 message according to specific rules. For example, the communication device may send the IPv6 message through a specific queue resource, or discard the IPv6 message after reaching a queue resource limit.

[0111] Optionally, the target value may include a first target value and a second target value, the first target value corresponds to DOH, and the second target value corresponds to SRH. When the value of DSCP is the first target value, the first IPv6 extension header detected by the communication device may be DOH. When the value of DSCP is the second target value, the first IPv6 extension header detected by the communication device may be SRH. Among them, the first target value and the second target value may be different, which means that when the first IPv6 extension header is different, different DSCPs may be used to indicate the detection of the first IPv6 extension header. Alternatively, the first target value and the second target value may also be the same, which means that no matter which implementation method is adopted for the first IPv6 extension header, the same DSCP value is used to indicate the detection of the first IPv6 extension header.

[0112] It should be understood that the present application defines a DSCP value (ie, a target value) with new semantics, and the semantics of the newly defined target value needs to be configured to each node on the IPv6 message forwarding path so that each node executes the above-mentioned message processing method.

[0113] Optionally, before the above step 302, the message processing method may further include: step 306, the communication device obtains configuration information, and the configuration information is used to indicate that when the value of DSCP is a target value, the first IPv6 extension header is detected.

[0114] Optionally, the target value may include a first target value and a second target value, and the first IPv6 extension header may be DOH or SRH. The configuration information is used to indicate that when the value of DSCP is the target value, the first IPv6 extension header is detected, and specifically may include: the configuration information is used to indicate that when the value of DSCP is the first target value, DOH is detected, and / or, the configuration information is used to indicate that when the value of DSCP is the second target value, SRH is detected. The first target value and the second target value are the same or different.

[0115] Optionally, since the option information is carried in the TLV field of the SRH when the first IPv6 extension header is an SRH, the configuration information is used to indicate that the SRH is detected when the value of the DSCP is the second target value, and may include: the configuration information is used to indicate that the TLV of the SRH is detected when the value of the DSCP is the second target value.

[0116] As a possible implementation, the first target value may be 43, and the second target value may be 47. The configuration information acquired by the communication device may be as follows:

[0117] --ip-dscp-inbound 43phb inspection-of-doh / / If the dscp value of the incoming IP packet is 43, DOH will be detected hop by hop;

[0118] --ip-dscp-inbound 47phb inspection-of-srhtlv / / If the dscp value of the incoming IP packet is 47, the SRH TLV is detected hop by hop.

[0119] It should be understood that 43 and 47 are only two examples of DSCP provided in this application. In actual applications, they can also be defined as other values, which are not limited in this application.

[0120] Optionally, the message processing method may further include: Step 307: when the communication device is not the destination node of the IPv6 message, the communication device forwards the IPv6 message, so that the IPv6 message can be transmitted to the destination node normally.

[0121] Optionally, the message processing method can be applied to Figure 1 In the communication system shown in FIG. 1 , the communication device in steps 301 to 306 may be Figure 1 As a possible implementation, the second communication device 102 receives the IPv6 message from the first communication device 101, so that the second communication device 102 can perform the method described in steps 301 to 306. As another possible implementation, the first communication device 101 receives the IPv6 message from the second communication device 102, so that the first communication device 101 can perform the method described in steps 301 to 307.

[0122] Optionally, the message processing method can be applied to Figure 2 In the communication system shown in FIG. 1 , the communication device in steps 301 to 306 may be Figure 2 The IPv6 message may be sent by the host H1 in the user site 1 or the host H2 in the user site 2, and PE1, P1, P2 or PE2 may perform the method described in steps 301 to 307 above.

[0123] Figure 4 A flowchart of another message processing method provided in an embodiment of the present application, such as Figure 4 As shown, the message processing method may include the following steps:

[0124] Step 401: A first communication device obtains a first message.

[0125] Optionally, the first message may be a transmission control protocol (TCP) message or a user datagram protocol (UDP) message, an IPv4 message or an IPv6 message.

[0126] Optionally, when the first message is a TCP or UDP message, the first communication device may be a terminal device. For example, the first communication device may be Figure 2 Host H1 or host H2 in.

[0127] Optionally, when the first message is an IPv4 message or an IPv6 message, the first communication device may be a terminal device or a network device. Figure 2 Host H1, host H2, PE1 or PE2 in it.

[0128] Step 402: The first communication device generates a second message according to the first message. The second message is an IPv6 message, and the second message includes a DSCP, a first IPv6 extension header, and a first payload. The first payload corresponds to the first message, the first payload may include at least part of the content of the first message, and the first IPv6 extension header carries at least one option. The value of DSCP may be used to indicate whether the second communication device receiving the second message detects the first IPv6 extension header in the second message.

[0129] As a possible implementation, the first communication device generates the second message according to the first message, which may include: the first communication device encapsulates the first message to obtain the second message. For example, the first communication device may directly encapsulate the IPv6 basic header and the first IPv6 extension header in the outer layer of the first message. In this case, the entire content of the first message is used as the first payload in the second message.

[0130] For example, if the first message is a TCP message or a UDP message, the first communication device can encapsulate an IPv6 basic header (including DSCP) and an IPv6 extension header (such as a first IPv6 extension header) based on the TCP / UDP message to obtain a second message.

[0131] As another example, if the first message is an IPv4 message or an IPv6 message, the first communication device can re-encapsulate the IPv6 basic header (including DSCP) and the IPv6 extension header (such as the first IPv6 extension header) based on the IPv4 message or the IPv6 message to obtain the second message.

[0132] As another possible implementation, the first communication device generates the second message according to the first message, which may include: the first communication device converts the first message to obtain the second message. For example, the first communication device may retain the content after the IP header of the first message, and replace the IP header of the first message with the IPv6 basic header and the first IPv6 extension header of the second message to obtain the second message. In this case, part of the content of the first message is used as the first payload in the second message.

[0133] For example, if the first message is an IPv4 message or an IPv6 message, the first communication device can replace the IPv4 header or IPv6 header of the first message with the IPv6 basic header (including DSCP) and IPv6 extension header (such as the first IPv6 extension header) corresponding to the second message to obtain the second message.

[0134] It should be noted that there may be other ways to generate the second message based on the first message. The above two ways are just examples and this application does not impose any restrictions on this.

[0135] Optionally, the second message generated by the first communication device in step 402 may be the IPv6 message received by the communication device in step 301. The communication device in steps 301 to 307 may be the second communication device described in step 401.

[0136] Optionally, the DSCP, the first IPv6 extension header and options in the second message may refer to the DSCP, the first IPv6 extension header and option descriptions in the above steps 301 to 307, which will not be repeated here.

[0137] Step 403: The first communication device sends a second message.

[0138] Based on this solution, the value of DSCP in the second message generated by the first communication device can be used to indicate whether the second communication device receiving the second message detects the first IPv6 extension header. Therefore, it is possible to flexibly control whether the options carried by the second message are to be detected, thereby avoiding unnecessary detection by the communication device and saving overhead. In addition, the first IPv6 extension header is DOH or SRH, which can avoid the problem that the message may be discarded due to the use of the hop-by-hop option header to carry options.

[0139] Combine the following Figure 2 The communication system shown in FIG. 1 is applied to the message processing method described above. Figure 2 As an example, the communication system shown in Figure 2 The message forwarding process in the communication system shown is described.

[0140] As a possible implementation, Figure 5A schematic diagram of a message forwarding process is shown, and the message forwarding process can be as follows:

[0141] Step 501: User site 1 sends message M1 to PE1. PE1 receives message M1 from user site 1. The structure of message M1 is<IP1+TCP / UDP1+payload1)> .

[0142] Among them, IP1 refers to the IP header of the message M1, TCP / UDP1 refers to the TCP / UDP header of the message M1, and payload1 refers to the payload of the message M1.

[0143] Optionally, the message M1 may be an IPv4 message or an IPv6 message, and accordingly, IP1 in the message M1 may be an IPv4 header or an IPv6 header.

[0144] The message M1 may be generated by the host H1 in the user site 1, and the host H1 forwards the message M1 to the PE1 through the CE1. The CE1 does not process the message M1.

[0145] Step 502: PE1 generates message M2 according to message M1. The structure of message M2 is {IPv6<S=PE1,D=PE2,DSCP=43> , DOH <option>, payload}.

[0146] Among them, IPv6<S=PE1,D=PE2,DSCP=43> IPv6 basic header of message M2, DOH< / option> <option>The IPv6 extension header of message M2. In the IPv6 basic header, S=PE1 indicates that the source address of message M2 is PE1, D=PE2 indicates that the destination address of message M2 is PE2, and DSCP=43 indicates that the DSCP value is 43. The DSCP value 43 can indicate to detect the DOH in message M2. The DOH carries at least one option. The payload in message M2 corresponds to message M1, and the payload can include at least part of the content of message M1.

[0147] As a possible implementation, message M2 may be obtained after PE1 encapsulates message M1. For example, PE1 encapsulates the IPv6 basic header and DOH in the outer layer of message M1 to obtain message M2. The payload of message M2 may be<IP1+TCP / UDP1+payload1> .

[0148] As another possible implementation, message M2 can be obtained after PE1 converts message M1. For example, PE1 can replace IP1 in message M1 with the IPv6 basic header and DOH, and retain the content after IP1 in message M1. The payload of message M2 can be<TCP / UDP1+payload1> .

[0149] Step 503: PE1 sends message M2 to P1. Correspondingly, P1 receives message M2 from PE1.

[0150] PE1 can determine that the next hop of message M2 is P1 according to the destination address in the IPv6 basic header of message M2 and local routing information. Then, PE1 sends message M2 to P1.

[0151] Step 504: P1 detects the DOH of the message M2 according to the DSCP value in the IPv6 basic header of the message M2.

[0152] The specific processing of message M2 by P1 may include: first, P1 may determine that P1 is not the destination node of message M2 according to the destination address in the IPv6 basic header of message M2. Then, P1 may determine that it is necessary to detect the DOH in message M2 according to the DSCP value 43 in message M2. Further, P1 detects the DOH in message M2 and processes the options carried by the DOH.

[0153] Step 505: P1 sends a message M2 to P2, and correspondingly, P2 receives the message M2 from P1.

[0154] P1 can determine that the next hop of message M2 is P2 according to the destination address in the IPv6 basic header of message M2 and the local routing information. Then, P1 sends message M2 to P2.

[0155] Step 506: P2 detects the DOH of the message M2 according to the DSCP value in the IPv6 basic header of the message M2.

[0156] P2 processes message M2 hop by hop, which may specifically include: first, P2 may determine that P2 is not the destination node of message M2 according to the destination address in the IPv6 header of message M2. Then, P2 may determine that it is necessary to detect the DOH in message M2 according to the DSCP value 43 in message M2. Further, P2 detects the DOH in message M2 and processes the options carried by the DOH.

[0157] Step 507: P2 sends message M2 to PE2. Correspondingly, PE2 receives message M2 from P2.

[0158] P2 can determine that the next hop of message M2 is PE2 according to the destination address in the IPv6 basic header of message M2 and local routing information. Then, P2 sends message M2 to PE2.

[0159] Step 508: PE2 processes the DOH in the message M2, and obtains the message M1 according to the message M2.

[0160] First, PE2 can determine that PE2 is the destination node of message M2 based on the destination address in the IPv6 header of message M2. Since PE2 is the destination node of message M2, PE2 determines that it needs to process the DOH in message M2. Further, PE2 can identify the DOH in message M2 and process the options carried in the DOH.

[0161] Optionally, PE2 can also determine whether to process the DOH in message M2 according to the DSCP in message M2. The DSCP value in message M2 is 43, which indicates that PE2 needs to detect the DOH in message M2. Thus, PE2 can determine to process the DOH in message M2. It can be seen that the judgment results based on the DSCP value and based on whether it is the destination address are consistent.

[0162] Optionally, PE2 obtaining message M1 according to message M2 may include: PE2 decapsulating message M2 to obtain message M1. It should be understood that if PE1 encapsulates message M1 to obtain message M2, PE2 may decapsulate message M2 to obtain message M1 accordingly.

[0163] As a possible implementation, PE2 decapsulates the message M2, which may specifically include: PE2 decapsulates the IPv6 basic header and DOH in the message M2. For example, the structure of the message M2 is {IPv6<S=PE1,D=PE2,DSCP=43> , DOH< / option> <option> , payload}, the payload in message M2 can be<IP1+TCP / UDP1+payload1> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=43> and DOH< / option> <option>Decapsulate to obtain message M1:<IP1+TCP / UDP1+payload1> .

[0164] Optionally, PE2 obtaining message M1 according to message M2 may include: PE2 converting message M2 to obtain message M1. It should be understood that if PE1 converts message M1 to obtain message M2, PE2 may convert message M2 accordingly to obtain message M1.

[0165] As a possible implementation, PE2 converts the message M2, which may specifically include: PE2 replaces the IPv6 basic header and DOH in the message M2. For example, the structure of the message M2 is {IPv6<S=PE1,D=PE2,DSCP=43> , DOH< / option> <option> , payload}, the payload in message M2 can be<TCP / UDP1+payload1> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=43> and DOH< / option> <option>Replace it with IP1 to get message M1:<IP1+TCP / UDP1+payload1> .

[0166] In the embodiment of the present application, message M1 is encapsulated or converted into message M2 at PE1, and decapsulated or converted into message M1 at PE2. It can be considered that message M1 is transmitted through the tunnel between PE1 and PE2. Message M1 processed by PE1 and PE2 can be considered as the same message, and is described uniformly here.

[0167] Optionally, the message M1 obtained by PE2 based on the message M2 may have values ​​of some fields changed during the message transmission process compared with the message M1 received by PE1 from the user site 1, but they are still considered to be the same message. For example, message M1:<IP1+TCP / UDP1+payload1> TCP / UDP1 and payload1 in the transmission process may remain unchanged, but some contents in IP1 may change.

[0168] For example, the structure of message M1 is<IP1+TCP / UDP1+payload1> For example: when IP1 is an IPv4 header, the TTL field value in IP1 of message M1 obtained by PE2 based on message M2 may be different from the TTL field value in IP1 of message M1 received by PE1 from user site 1. When IP1 is an IPv6 header, the hop limit field value in IP1 of message M1 obtained by PE2 based on message M2 may be different from the hop limit field value in IP1 of message M1 received by PE1 from user site 1. The TTL field value and the hop limit field value may change during message forwarding.

[0169] Step 509: PE2 sends the obtained message M1 to user site 2. Accordingly, user site 2 receives the message M1 from PE2.

[0170] Optionally, PE2 may determine to send the message M1 to user site 2 according to the destination address of the message M1 and local routing information.

[0171] Optionally, CE2 in user site 2 receives message M1 and forwards it to host H2. CE2 only performs forwarding behavior and does not process message M1.

[0172] As a possible implementation, Figure 6 A schematic diagram of another message forwarding process is shown, and the message forwarding process may be as follows:

[0173] Step 601: User site 1 sends message M3 to PE1. PE1 receives message M3 from user site 1. The structure of message M3 is<IP2+TCP / UDP2+payload2> .

[0174] Among them, IP2 refers to the IP header of the message M3, TCP / UDP2 refers to the TCP / UDP header of the message M3, and payload2 refers to the payload of the message M3.

[0175] Optionally, the message M3 may be an IPv4 message or an IPv6 message, and accordingly, the IP2 in the message M3 may be an IPv4 header or an IPv6 header.

[0176] Step 602: PE1 generates a message M4 according to the message M3. The structure of the message M4 is {IPv6<S=PE1,D=PE2,DSCP=0> , DOH< / option> <option>, payload}.

[0177] Among them, IPv6<S=PE1,D=PE2,DSCP=0> IPv6 basic header of message M4, DOH< / option> <option>The IPv6 extension header of message M4. In the IPv6 basic header, S=PE1 indicates that the source address of message M4 is PE1, D=PE2 indicates that the destination address of message M4 is PE2, and DSCP=0 indicates that the DSCP value is 0. The DSCP value 0 may indicate that the DOH in message M4 is not to be detected. The DOH may carry at least one option. The payload in message M4 corresponds to message M3, and the payload may include at least part of the content of message M3.

[0178] As a possible implementation, message M4 can be obtained by PE1 encapsulating message M3. For example, PE1 encapsulates the IPv6 basic header and DOH in the outer layer of message M3 to obtain message M2. The payload in message M4 can be<IP2+TCP / UDP2+payload2> .

[0179] As another possible implementation, message M4 can be obtained after PE1 converts message M3. For example, PE1 can replace IP2 in message M3 with the IPv6 basic header and DOH, and retain the content after IP2 in message M1. The payload in message M4 can be<TCP / UDP2+payload2> .

[0180] Step 603: PE1 sends message M4 to P1. Correspondingly, P1 receives message M4 from PE1.

[0181] PE1 can determine that the next hop of message M4 is P1 according to the destination address in the IPv6 basic header of message M4 and local routing information. Then, PE1 sends message M4 to P1.

[0182] Step 604: P1 does not detect the DOH in the message M4, and forwards the message M4 to P2. Accordingly, P2 receives the message M4 from P1.

[0183] First, P1 can determine not to detect the DOH in message M4 based on the DSCP value (0) in the IPv6 basic header of message M4. Second, P1 can determine that the next hop for forwarding message M4 is P2 based on the destination address in the IPv6 basic header of message M4 and local routing information. Thus, P1 can forward message M4 to P2.

[0184] Step 605: P2 does not detect the DOH in the message M4, and forwards the message M4 to PE2. Accordingly, PE2 receives the message M4 from P2.

[0185] First, P2 can determine not to detect the DOH in message M4 based on the DSCP value (0) in the IPv6 basic header of message M4. Second, P2 can determine that the next hop for forwarding message M4 is PE2 based on the destination address in the IPv6 basic header of message M4 and local routing information. Thus, P2 can directly forward message M4 to PE2.

[0186] Step 606: PE2 processes the DOH of the message M4, and obtains the message M3 according to the message M4.

[0187] First, PE2 can determine that PE2 is the destination node of message M4 based on the destination address in the IPv6 header of message M4. Since PE2 is the destination node of message M4, PE2 determines that it needs to process the DOH in message M4. Furthermore, PE2 can identify the DOH in message M4 and process the options carried in the DOH.

[0188] It should be noted that, although the DSCP value (0) in the message M4 indicates that the DOH in the message M4 is not detected, since PE2 is the destination node of the message M4, PE2 will not change the behavior of processing DOH according to the DSCP value.

[0189] Optionally, PE2 obtaining message M3 according to message M4 may include: PE2 decapsulating message M4 to obtain message M3. It should be understood that if PE1 encapsulates message M3 to obtain message M4, PE2 may decapsulate message M4 accordingly to obtain message M3.

[0190] As a possible implementation, PE2 decapsulates the message M4, which may specifically include: PE2 decapsulates the IPv6 basic header and DOH in the message M4. For example, the structure of the message M4 is {IPv6<S=PE1,D=PE2,DSCP=0> , DOH< / option> <option> , payload}, the payload in message M4 can be<IP2+TCP / UDP2+payload2> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=0> and DOH< / option> <option>Decapsulate to obtain message M3:<IP2+TCP / UDP2+payload2> .

[0191] Optionally, PE2 obtains message M3 according to message M4, which may include: PE2 converts message M4 to obtain message M3. It should be understood that if PE1 converts message M3 to obtain message M4, PE2 may convert message M4 accordingly to obtain message M3.

[0192] As a possible implementation, PE2 converts the message M4, which may specifically include: PE2 replaces the IPv6 basic header and DOH in the message M4. For example, the structure of the message M4 is {IPv6<S=PE1,D=PE2,DSCP=0> , DOH< / option> <option> , payload}, the payload in message M4 can be<TCP / UDP2+payload2> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=0> and DOH< / option> <option>Replace it with IP2 to get message M3:<IP2+TCP / UDP2+payload2> .

[0193] In the embodiment of the present application, the message M3 is encapsulated or converted into the message M4 at PE1, and decapsulated or converted into the message M3 at PE2. It can be considered that the message M3 is transmitted through the tunnel between PE1 and PE2. The message M3 processed by PE1 and PE2 can be considered as the same message, and is described here uniformly.

[0194] Optionally, the message M3 obtained by PE2 based on the message M4 may have values ​​of some fields changed during the message transmission process compared with the message M3 received by PE1 from the user site 1, but they are still considered to be the same message. For example, message M3:<IP2+TCP / UDP2+payload2> TCP / UDP2 and payload2 in the packet may remain unchanged during transmission, but the TTL field value and hop limit field value in IP2 may change.

[0195] Step 607: PE2 sends the obtained message M3 to user site 2. Correspondingly, user site 2 receives the message M3 from PE2.

[0196] Optionally, PE2 may determine to send the message M3 to user site 2 according to the destination address of the message M3 and local routing information.

[0197] Optionally, CE2 in user site 2 receives message M3 and forwards it to host H2. CE2 only performs forwarding behavior and does not process message M3.

[0198] Although the above schemes of steps 501 to 509 and steps 601 to 607 both use DOH to carry options, different effects are achieved due to different encapsulated DSCP values. In the schemes of steps 501 to 509, the DSCP value encapsulated by PE1 is 43, thereby realizing hop-by-hop processing of options by intermediate nodes. In the schemes of steps 601 to 607, the DSCP value encapsulated by PE1 is 0, so that intermediate nodes do not need to detect DOH.

[0199] As a possible implementation, Figure 7 A schematic diagram of another message forwarding process is shown, and the message forwarding process may be as follows:

[0200] Step 701: User site 1 sends message M5 to PE1. PE1 receives message M5 from user site 1. The structure of message M5 is<IP3+TCP / UDP3+payload3)> .

[0201] Among them, IP3 refers to the IP header of the message M5, TCP / UDP3 refers to the TCP / UDP header of the message M5, and payload3 refers to the payload of the message M5.

[0202] Optionally, the message M5 may be an IPv4 message or an IPv6 message, and accordingly, the IP3 in the message M5 may be an IPv4 header or an IPv6 header.

[0203] Optionally, the message M5 may be generated by the host H1 in the user site 1, and the host H1 forwards the message M5 to the PE1 through the CE1. The CE1 does not process the message M5.

[0204] Step 702: PE1 generates a message M6 according to the message M5. The structure of the message M6 is {IPv6<S=PE1,D=PE2,DSCP=47> , SRH< / option> <option>, payload}.

[0205] Among them, IPv6<S=PE1,D=PE2,DSCP=47> IPv6 basic header encapsulated by PE1, SRH< / option> <option>The IPv6 extension header encapsulated by PE1. In the IPv6 basic header, S=PE1 indicates that the source address of message M6 is PE1, D=PE2 indicates that the destination address of message M6 is PE2, and DSCP=47 indicates that the DSCP value is 47. The DSCP value 47 can indicate to detect the SRH in message M6. The SRH carries at least one option. The payload in message M6 corresponds to message M5, and the payload can include at least part of the content of message M5.

[0206] As a possible implementation, message M6 can be obtained by PE1 encapsulating message M5. For example, PE1 encapsulates the IPv6 basic header and SRH in the outer layer of message M5 to obtain message M6. The payload of message M6 can be<IP3+TCP / UDP3+payload3> .

[0207] As another possible implementation, message M6 can be obtained by PE1 converting message M5. For example, PE1 can replace IP3 in message M5 with the IPv6 basic header and SRH, and retain the content after IP3 in message M5. The payload of message M6 can be<TCP / UDP3+payload3> .

[0208] Step 703: PE1 sends message M6 to P1. Correspondingly, P1 receives message M6 from PE1.

[0209] PE1 can determine that the next hop of message M6 is P1 according to the destination address in the IPv6 basic header of message M6 and local routing information. Then, PE1 sends message M6 to P1.

[0210] Step 704: P1 detects the SRH of the message M6 according to the DSCP value in the IPv6 basic header of the message M6.

[0211] First, P1 can determine that P1 is not the destination node of message M6 according to the destination address in the IPv6 header of message M6. Then, P1 can determine that it needs to detect the SRH in message M6 according to the DSCP value 47 in message M6. Further, P1 detects the SRH in message M6 and processes the options carried in the SRH.

[0212] Step 705: P1 sends message M6 to P2, and correspondingly, P2 receives message M6 from P1.

[0213] P1 can determine that the next hop of message M6 is P2 according to the destination address in the IPv6 basic header of message M6 and local routing information. Then, P1 sends message M6 to P2.

[0214] Step 706: P2 detects the SRH of the message M6 according to the DSCP value in the IPv6 basic header of the message M6.

[0215] First, P2 can determine that P2 is not the destination node of message M6 based on the destination address in the IPv6 header of message M6. Then, P2 can determine that it needs to detect the SRH in message M6 based on the DSCP value 47 in message M6. Further, P2 detects the SRH in message M6 and processes the options carried in the SRH.

[0216] Step 707: P2 sends message M6 to PE2. Correspondingly, PE2 receives message M6 from P2.

[0217] P2 can determine that the next hop of message M6 is PE2 according to the destination address in the IPv6 basic header of message M6 and local routing information. Then, P2 sends message M6 to PE2.

[0218] Step 708: PE2 processes the SRH in the message M6, and obtains the message M5 according to the message M6.

[0219] First, PE2 can determine that PE2 is the destination node of message M6 according to the destination address in the IPv6 header of message M6. Since PE2 is the destination node of message M6, PE2 determines that the SRH in message M6 needs to be processed. Thus, PE2 can identify the SRH in message M6 and process the options carried by the SRH.

[0220] Optionally, PE2 may also determine whether to process the SRH in message M6 according to the DSCP in message M6. The DSCP value in message M6 is 47, which indicates that PE2 needs to detect the SRH in message M6. Thus, PE2 may determine to process the SRH in message M6. It can be seen that the judgment results based on the DSCP value and based on whether it is the destination address are consistent.

[0221] Optionally, PE2 obtaining message M5 according to message M6 may include: PE2 decapsulating message M6 to obtain message M5. It should be understood that if PE1 encapsulates message M5 to obtain message M6, PE2 may decapsulate message M6 accordingly to obtain message M5.

[0222] As a possible implementation, PE2 decapsulates the message M6, which may specifically include: PE2 decapsulates the IPv6 basic header and SRH in the message M6. For example, the structure of the message M6 is {IPv6<S=PE1,D=PE2,DSCP=47> , SRH< / option> <option> , payload}, the payload in message M6 can be<IP3+TCP / UDP3+payload3> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=47> and SRH< / option> <option>Decapsulate to obtain message M5:<IP3+TCP / UDP3+payload3> .

[0223] Optionally, PE2 obtains message M5 according to message M6, which may include: PE2 converts message M6 to obtain message M5. It should be understood that if PE1 converts message M5 to obtain message M6, PE2 may convert message M6 accordingly to obtain message M5.

[0224] As a possible implementation, PE2 converts the message M6, which may specifically include: PE2 replaces the IPv6 basic header and SRH in the message M6. For example, the structure of the message M6 is {IPv6<S=PE1,D=PE2,DSCP=43> , SRH< / option> <option> , payload}, the payload in message M6 can be<IP3+TCP / UDP3+payload3> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=43> and SRH< / option> <option>Replace it with IP3 to get message M5:<IP3+TCP / UDP3+payload3> .

[0225] In the embodiment of the present application, message M5 is encapsulated or converted into message M6 at PE1, and decapsulated or converted into message M5 at PE2. It can be considered that message M5 is transmitted through the tunnel between PE1 and PE2. Message M5 processed by PE1 and PE2 can be considered as the same message, and is described here uniformly.

[0226] Optionally, the message M5 obtained by PE2 based on the message M6 may have values ​​of some fields changed during the message transmission process compared with the message M5 received by PE1 from the user site 1, but they are still considered to be the same message. For example, message M5:<IP3+TCP / UDP3+payload3> The TCP / UDP3 and payload3 in the transmission process may remain unchanged, but the TTL field value and hop limit field value in IP3 may change.

[0227] Step 709: PE2 sends the obtained message M5 to user site 2. Correspondingly, user site 2 receives the message M5 from PE2.

[0228] Optionally, PE2 may determine to send the message M5 to the user site 2 according to the destination address of the message M5 and local routing information.

[0229] Optionally, CE2 in user site 2 receives message M5 and forwards it to host H2. CE2 only performs forwarding behavior and does not process message M5.

[0230] As a possible implementation, Figure 8 A schematic diagram of another message forwarding process is shown, and the message forwarding process may be as follows:

[0231] Step 801: User site 1 sends message M7 to PE1. PE1 receives message M7 from user site 1. The structure of message M7 is<IP4+TCP / UDP4+payload4> .

[0232] Among them, IP4 refers to the IP header of the message M7, TCP / UDP4 refers to the TCP / UDP header of the message M7, and payload4 refers to the payload of the message M7.

[0233] Optionally, the message M7 may be an IPv4 message or an IPv6 message, and accordingly, the IP4 in the message M7 may be an IPv4 header or an IPv6 header.

[0234] Step 802: PE1 generates a message M8 according to the message M7. The structure of the message M8 is {IPv6<S=PE1,D=PE2,DSCP=0> , SRH< / option> <option>, payload}.

[0235] Among them, IPv6<S=PE1,D=PE2,DSCP=0> IPv6 basic header encapsulated by PE1, SRH< / option> <option>The IPv6 extension header encapsulated by PE1. In the IPv6 basic header, S=PE1 indicates that the source address of message M8 is PE1, D=PE2 indicates that the destination address of message M8 is PE2, and DSCP=0 indicates that the DSCP value is 0. The DSCP value 0 may indicate that the SRH in message M8 is not to be detected. The SRH may carry at least one option. The payload in message M8 corresponds to message M7, and the payload may include at least part of the content of message M7.

[0236] As a possible implementation, message M8 can be obtained by PE1 encapsulating message M7. For example, PE1 encapsulates the IPv6 basic header and SRH in the outer layer of message M7 to obtain message M2. The payload in message M8 can be<IP4+TCP / UDP4+payload4> .

[0237] As another possible implementation, message M8 can be obtained by PE1 after converting message M7. For example, PE1 can replace IP4 in message M7 with the IPv6 basic header and SRH, and retain the content after IP4 in message M1. The payload in message M8 can be<TCP / UDP4+payload4> .

[0238] Step 803: PE1 sends message M8 to P1. Correspondingly, P1 receives message M8 from PE1.

[0239] PE1 can determine that the next hop of message M8 is P1 according to the destination address in the IPv6 basic header of message M8 and local routing information. Then, PE1 sends message M8 to P1.

[0240] Step 804: P1 does not detect the SRH in the message M8, and forwards the message M8 to P2. Accordingly, P2 receives the message M8 from P1.

[0241] First, P1 can determine not to detect the SRH in message M8 according to the DSCP value (0) in the IPv6 basic header of message M8. Secondly, P1 can determine that the next hop for forwarding message M8 is P2 according to the destination address in the IPv6 basic header of message M8 and the local routing information. Thus, P1 can directly forward message M8 to P2.

[0242] Step 805: P2 does not detect the SRH in the message M8, and forwards the message M8 to PE2. Accordingly, PE2 receives the message M8 from P2.

[0243] First, P2 can determine not to detect the SRH in message M8 according to the DSCP value (0) in the IPv6 basic header of message M8. Secondly, P2 can determine that the next hop for forwarding message M8 is PE2 according to the destination address in the IPv6 basic header of message M8 and the local routing information. Thus, P2 can directly forward message M8 to PE2.

[0244] Step 806: PE2 processes the SRH in the message M8, and obtains the message M7 according to the message M8.

[0245] First, PE2 can determine that PE2 is the destination node of message M8 according to the destination address in the IPv6 header of message M8. Since PE2 is the destination node of message M8, PE2 determines that the SRH in message M8 needs to be processed. Furthermore, PE2 can identify the SRH in message M8 and process the options carried by the SRH.

[0246] It should be noted that, although the DSCP value (0) in the message M8 indicates not to detect the SRH in the message M8, since PE2 is the destination node of the message M8, PE2 will not change the behavior of processing the SRH according to the DSCP value.

[0247] Optionally, PE2 obtaining message M7 according to message M8 may include: PE2 decapsulating message M8 to obtain message M7. It should be understood that if PE1 encapsulates message M7 to obtain message M8, PE2 may decapsulate message M8 to obtain message M7 accordingly.

[0248] As a possible implementation, PE2 decapsulates the message M8, which may specifically include: PE2 decapsulates the IPv6 basic header and SRH in the message M8. For example, the structure of the message M8 is {IPv6<S=PE1,D=PE2,DSCP=0> , SRH< / option> <option> , payload4}, the payload in message M8 can be<IP4+TCP / UDP4+payload4> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=0> and SRH< / option> <option>Decapsulate to obtain message M7<IP4+TCP / UDP4+payload4> .

[0249] Optionally, PE2 obtains message M7 according to message M8, which may include: PE2 converts message M8 to obtain message M7. It should be understood that if PE1 converts message M7 to obtain message M8, PE2 may convert message M8 accordingly to obtain message M7.

[0250] As a possible implementation, PE2 converts the message M8, which may specifically include: PE2 replaces the IPv6 basic header and SRH in the message M8. For example, the structure of the message M8 is {IPv6<S=PE1,D=PE2,DSCP=0> , SRH< / option> <option> , payload}, the payload in message M8 can be<TCP / UDP4+payload4> PE2 can use the IPv6<S=PE1,D=PE2,DSCP=0> and SRH< / option> <option>Replace it with IP4 to get message M7:<IP4+TCP / UDP4+payload4> .

[0251] In the embodiment of the present application, message M7 is encapsulated or converted into message M8 at PE1, and decapsulated or converted into message M7 at PE2. It can be considered that message M7 is transmitted through the tunnel between PE1 and PE2. Message M7 processed by PE1 and PE2 can be considered as the same message, and is described here uniformly.

[0252] Optionally, the message M7 obtained by PE2 based on the message M8 may have values ​​of some fields changed during the message transmission process compared with the message M7 received by PE1 from the user site 1, but they are still considered to be the same message. For example, message M7:<IP4+TCP / UDP4+payload4> The TCP / UDP4 and payload4 in the transmission process may remain unchanged, but the TTL field value and hop limit field value in IP4 may change.

[0253] Step 807: PE2 sends the obtained message M7 to user site 2. Correspondingly, user site 2 receives the message M7 from PE2.

[0254] Optionally, PE2 may determine to send the message M7 to user site 2 according to the destination address of the message M7 and local routing information.

[0255] Optionally, CE2 in user site 2 receives message M7 and forwards it to host H2. CE2 only performs forwarding behavior and does not process message M7.

[0256] Although the above schemes of steps 701 to 709 and steps 801 to 807 both use SRH to carry options, different effects are achieved due to the different encapsulated DSCP values. In the scheme of steps 701 to 709, the DSCP value encapsulated by PE1 is 47, thereby realizing the hop-by-hop processing of options by the intermediate node. In the scheme of steps 801 to 807, the DSCP value encapsulated by PE1 is 0, so that the intermediate node does not need to detect SRH.

[0257] It should be understood that the above Figures 5 to 8 The corresponding message forwarding process is an example of the message processing method being applied to the process of user site 1 sending a message to user site 2. Optionally, the message processing method can also be applied to the process of user site 2 sending a message to user site 1. In this case, PE2 can be used to encapsulate the DOH or SRH carrying the option, and the behavior of PE2 can refer to the related description of PE1 encapsulation message in the previous text.

[0258] It should be noted that in the above Figures 5 to 8 In the corresponding message forwarding process, PE1 encapsulates the IPv6 extension header (such as DOH or SRH) carrying options. As a possible implementation, the configuration information of PE1, P1, P2 or PE2 can be shown in the following Table 1:

[0259] Table 1

[0260]

[0261]

[0262] Based on the configuration shown in Table 1 above, PE1, P1, P2 and PE2 are all configured with the DSCP value and semantics newly defined in this application, and the network side ports between PE1 and PE2 are all configured with DSCP enabled.

[0263] Taking the example of user site 1 sending a message to user site 2, PE1 can re-encapsulate the outer header of the message from user site 1 and send the re-encapsulated message to PE2. Based on the configuration of Table 2 above, the intermediate nodes P1 and P2 can choose whether to process the DOH or SRH encapsulated by PE1 according to the DSCP value. PE2, as the destination node of the IPv6 message encapsulated by PE1, will process the DOH or SRH encapsulated by PE1 by default. The above message forwarding and processing process can be referred to the above Figures 5 to 8 The corresponding message forwarding process will not be described in detail here.

[0264] Optionally, based on the configuration information in Table 1, the forwarding and processing process of the message sent from user site 2 to user site 1 is similar to the forwarding and processing process of the message sent from user site 1 to user site 2, and this application will not repeat it with examples.

[0265] It should be understood that according to the configuration of Table 1, both user site 1 and user site 2 belong to VPN 1. Therefore, the message received by PE1 from user site 1 can be determined to be a message of VPN 1. Accordingly, after PE2 decapsulates the message from PE1, it can be determined that the decapsulated message belongs to VPN 1, and can then be sent to user site 2.

[0266] Optionally, in the process of user site 1 sending a message to user site 2, in addition to PE1 encapsulating the DOH or SRH carrying the option, the host H1 in user site 1 can also encapsulate the DOH or SRH carrying the option. In other words, the message sent by user site 1 is an IPv6 message, and the DOH or SRH carrying the option has been encapsulated in the message. In this case, PE only performs conventional encapsulation on the message from user site 1 to achieve forwarding.

[0267] As a possible implementation, Fig. 9 A schematic diagram of another message forwarding process is shown, and the message forwarding process may be as follows:

[0268] Step 901: User site 1 sends message N1 to PE1. PE1 receives message N1 from user site 1. The structure of message N1 is [IPv6<S=H1,D=H2,DSCP=43> , DOH< / option> <option>, TCP / UDP1, payload1>]

[0269] Among them, IPv6 refers to the IPv6 basic header of the message N1, DOH is the IPv6 extension header carrying options in the message N1, TCP / UDP1 refers to the TCP / UDP header of the message N1, and payload1 refers to the payload of the message N1. In the IPv6 basic header, S=H1 indicates that the source address of the message N1 is the host H1, D=H2 indicates that the destination address of the message N1 is the host H2, and DSCP=43 indicates that the DSCP value is 43. DOH carries at least one option, and the DSCP value 43 can indicate that the DOH in the message N1 is detected.

[0270] The message N1 may be generated by the host H1 in the user site 1, and the host H1 forwards the message N1 to the PE1 through the CE1. The CE1 does not process the message N1.

[0271] Optionally, the process of the host H1 generating the message N1 may be as follows:

[0272] 1. Host H1 obtains the TCP / UDP message N2 of the transport layer. The structure of the message N2 is<TCP / UDP1,payload1> .

[0273] 2. Host H1 encapsulates the IPv6 basic header (i.e. IPv6<S=H1,D=H2,DSCP=43> ) and DOH with option (ie DOH< / option> <option>), thereby generating message N1.

[0274] Step 902: PE1 detects the DOH in the message N1 according to the DSCP value in the message N1.

[0275] PE1's specific processing of message N1 may include: first, P1 may determine that PE1 is not the destination node of message N1 based on the destination address in the IPv6 basic header of message N1. Then, PE1 may determine that it is necessary to detect the DOH in message N1 based on the DSCP value 43 in message N1. Further, PE1 detects the DOH in message N1 and processes the options carried by the DOH.

[0276] Step 903: PE1 encapsulates the message N1 with IPv6, segment routing IPv6 (SRv6) or multi-protocol label switching (MPLS) to obtain a message N3. The structure of the message N3 is {IPv6 / SRv6 / MPLS<S=PE1,D=PE2> , payload[IPv6<S=H1,D=H2,DSCP=43> , DOH< / option> <option>, TCP / UDP1, payload1>]}.

[0277] Among them, IPv6 / SRv6 / MPLS<S=PE1,D=PE2> The IPv6 / SRv6 / MPLS header encapsulated by PE1, message N1 can be used as the payload of message N3. In other words, message N3 can be obtained by PE1 after encapsulating the IPv6 / SRv6 / MPLS header on the basis of message N1. In the IPv6 / SRv6 / MPLS header, S=PE1 indicates that the source address of message N3 is PE1, and D=PE2 indicates that the destination address of message N3 is PE2.

[0278] Optionally, when PE1 performs IPv6 encapsulation on message N1, PE1 may also encapsulate an IPv6 extension header carrying options, and may indicate whether to detect the IPv6 extension header encapsulated by PE1 through a DSCP value. It should be noted that this implementation method may refer to the description in the above step 502, step 602, step 702 or step 802, which will not be repeated here.

[0279] Step 904: PE1 sends message N3 to P1. Correspondingly, P1 receives message N3 from PE1.

[0280] PE1 can determine that the next hop of message N3 is P1 according to the destination address (PE2) in the IPv6 / SRv6 / MPLS header of message N3 and local routing information. Then, PE1 sends message N3 to P1.

[0281] Step 905: P1 sends message N3 to P2, and correspondingly, P2 receives message N3 from P1.

[0282] P1 can sense the IPv6 / SRv6 / MPLS header encapsulated by PE1 in message N3, but cannot sense message N1 from user site 1 encapsulated in the inner layer of message N3, and naturally cannot sense the DOH in message N1.

[0283] P1 can determine that the next hop of message N3 is P2 according to the destination address (PE2) in the IPv6 / SRv6 / MPLS header of message N3 and local routing information. Then, P1 forwards message N3 to P2.

[0284] Optionally, if PE1 encapsulates an IPv6 extension header (such as DOH or SRH) in message N3, and indicates whether to detect the IPv6 extension header through the DSCP value in the IPv6 basic header. Then, P1 can determine whether to detect the IPv6 extension header encapsulated by PE1 according to the DSCP value in the IPv6 header encapsulated by PE1 in message N3. This implementation method can refer to the description of step 504, step 604, step 704 or step 804, which will not be repeated here.

[0285] Step 906: P2 sends message N3 to PE2. Correspondingly, PE2 receives message N3 from P2.

[0286] P2 can sense the IPv6 / SRv6 / MPLS header encapsulated by PE1 in message N3, but cannot sense message N1 from user site 1 encapsulated in the inner layer of message N3, and naturally cannot sense the DOH in message N1.

[0287] P2 can determine that the next hop of message N3 is P2 according to the destination address (PE2) in the IPv6 / SRv6 / MPLS header of message N3 and local routing information. Then, P2 forwards message N3 to P2.

[0288] Optionally, if PE1 encapsulates an IPv6 extension header (such as DOH or SRH) in message N3, and indicates whether to detect the IPv6 extension header through the DSCP value in the IPv6 basic header. Then, P2 can determine whether to detect the IPv6 extension header encapsulated by PE1 according to the DSCP value in the IPv6 header encapsulated by PE1 in message N3. This implementation method can refer to the description of step 506, step 605, step 706 or step 805, which will not be repeated here.

[0289] Step 907: PE2 decapsulates message N3 to obtain message N1, and detects the DOH in the obtained message N1.

[0290] PE2 can determine that PE2 is the destination node of message N3 based on the destination address in the IPv6 / SRv6 / MPLS header of message N3. Therefore, PE2 can decapsulate message N3 and remove the IPv6 / SRv6 / MPLS header in message N3. After PE2 decapsulates message N3, it obtains message N1.

[0291] PE2 can detect the DOH in the message N1 according to the indication of the DSCP value in the message N1 obtained after decapsulation, and process the options carried in the DOH.

[0292] Optionally, if PE1 encapsulates an IPv6 extension header (such as DOH or SRH) in message N3, and indicates whether to detect the IPv6 extension header through the DSCP value in the IPv6 basic header. Then, PE2 can determine whether to detect the IPv6 extension header encapsulated by PE1 in message N3 according to the DSCP value in the IPv6 header encapsulated by PE1 in message N3 before decapsulating message N3. This implementation method can refer to the description of step 508, step 606, step 708 or step 806, which will not be repeated here.

[0293] Step 908: PE2 sends the decapsulated message N1 to user site 2. Correspondingly, user site 2 receives the message N1 from PE2.

[0294] Optionally, PE2 may determine to send the message N1 to the user site 2 according to the destination address (H2) of the message N1 and local routing information.

[0295] Optionally, CE2 in user site 2 receives message N1 and forwards it to host H2. CE2 only performs forwarding behavior and does not process message N1.

[0296] As a possible implementation, Fig.10 A schematic diagram of another message forwarding process is shown, and the message forwarding process may be as follows:

[0297] Step 1001: User site 1 sends message N4 to PE1. PE1 receives message N4 from user site 1. The structure of message N4 is [IPv6<S=H1,D=H2,DSCP=47> , SRH< / option> <option>, TCP / UDP2, payload2>]

[0298] Among them, IPv6 refers to the IPv6 basic header of the message N4, SRH is the IPv6 extension header carrying options in the message N4, TCP / UDP2 refers to the TCP / UDP header of the message N4, and payload2 refers to the payload of the message N4. In the IPv6 basic header, S=H1 indicates that the source address of the message N4 is the host H1, D=H2 indicates that the destination address of the message N4 is the host H2, and DSCP=47 indicates that the DSCP value is 47. SRH carries at least one option, and the DSCP value 47 can indicate that the SRH in the message N4 is detected.

[0299] The message N4 may be generated by the host H1 in the user site 1, and the host H1 forwards the message N4 to the PE1 through the CE1. The CE1 does not process the message N4.

[0300] Optionally, the process of the host H1 generating the message N4 may be as follows:

[0301] 1. Host H1 obtains the TCP / UDP message N5 of the transport layer. The structure of the message N5 is<TCP / UDP2,payload2> .

[0302] 2. Host H1 encapsulates the IPv6 basic header (i.e. IPv6<S=H1,D=H2,DSCP=47> ) and SRH with option (ie SRH< / option> <option>), thereby generating message N4.

[0303] Step 1002: PE1 detects the SRH in the message N4 according to the DSCP value in the message N4.

[0304] PE1's specific processing of message N4 may include: first, P1 may determine that PE1 is not the destination node of message N4 based on the destination address in the IPv6 basic header of message N4. Then, PE1 may determine that it is necessary to detect the SRH in message N4 based on the DSCP value 47 in message N4. Further, PE1 detects the SRH in message N4 and processes the options carried by the SRH.

[0305] Step 1003: PE1 performs IPv6, IPv6 or MPLS encapsulation on message N4 to obtain message N6. The structure of message N6 is {IPv6 / SRv6 / MPLS<S=PE1,D=PE2> , payload[IPv6<S=H1,D=H2,DSCP=47> , SRH< / option> <option>, TCP / UDP2, payload2>]}.

[0306] Among them, IPv6 / SRv6 / MPLS<S=PE1,D=PE2> The IPv6 / SRv6 / MPLS header encapsulated by PE1, message N4 can be used as the payload of message N6. In other words, message N6 can be obtained by PE1 after encapsulating the IPv6 / SRv6 / MPLS header on the basis of message N4. In the IPv6 / SRv6 / MPLS header, S=PE1 indicates that the source address of message N6 is PE1, and D=PE2 indicates that the destination address of message N6 is PE2.

[0307] Optionally, when PE1 performs IPv6 encapsulation on message N4, PE1 may also encapsulate an IPv6 extension header carrying options, and may indicate whether to detect the IPv6 extension header encapsulated by PE1 through a DSCP value. It should be noted that this implementation method may refer to the description in the above step 502, step 602, step 702 or step 802, which will not be repeated here.

[0308] Step 1004: PE1 sends message N6 to P1. Correspondingly, P1 receives message N6 from PE1.

[0309] PE1 can determine that the next hop of message N6 is P1 according to the destination address (PE2) in the IPv6 / SRv6 / MPLS header of message N6 and local routing information. Then, PE1 sends message N6 to P1.

[0310] Step 1005: P1 sends message N6 to P2, and correspondingly, P2 receives message N6 from P1.

[0311] P1 can sense the IPv6 / SRv6 / MPLS header encapsulated by PE1 in message N3, but cannot sense message N4 from user site 1 encapsulated in the inner layer of message N6, and naturally cannot sense the DOH in message N1.

[0312] P1 can determine that the next hop of message N6 is P2 according to the destination address (PE2) in the IPv6 / SRv6 / MPLS header of message N6 and local routing information. Then, P1 forwards message N6 to P2.

[0313] Optionally, if PE1 encapsulates an IPv6 extension header (such as DOH or SRH) in message N6, and indicates whether to detect the IPv6 extension header through the DSCP value in the IPv6 basic header. Then, P1 can determine whether to detect the IPv6 extension header encapsulated by PE1 according to the DSCP value in the IPv6 header encapsulated by PE1 in message N6. This implementation method can refer to the description of step 504, step 604, step 704 or step 804, which will not be repeated here.

[0314] Step 1006: P2 sends message N6 to PE2. Correspondingly, PE2 receives message N6 from P2.

[0315] P2 can sense the IPv6 / SRv6 / MPLS header encapsulated by PE1 in message N3, but cannot sense message N4 from user site 1 encapsulated in the inner layer of message N6, and naturally cannot sense the DOH in message N1.

[0316] P2 can determine that the next hop of message N6 is P2 according to the destination address (PE2) in the IPv6 / SRv6 / MPLS header of message N6 and local routing information. Then, P2 forwards message N6 to P2.

[0317] Optionally, if PE1 encapsulates an IPv6 extension header (such as DOH or SRH) in message N6, and indicates whether to detect the IPv6 extension header through the DSCP value in the IPv6 basic header. Then, P2 can determine whether to detect the IPv6 extension header encapsulated by PE1 according to the DSCP value in the IPv6 header encapsulated by PE1 in message N6. This implementation method can refer to the description of step 506, step 605, step 706 or step 805, which will not be repeated here.

[0318] Step 1007: PE2 decapsulates message N6 to obtain message N4, and detects the SRH in the obtained message N4.

[0319] PE2 can determine that PE2 is the destination node of message N6 based on the destination address in the IPv6 / SRv6 / MPLS header of message N6. Therefore, PE2 can decapsulate message N6 and remove the IPv6 / SRv6 / MPLS header in message N6. After PE2 decapsulates message N6, it obtains message N4.

[0320] Optionally, PE2 may detect the SRH in the message N4 according to an indication of a DSCP value in the message N4 obtained after decapsulation, and process options carried in the SRH.

[0321] Optionally, if PE1 encapsulates an IPv6 extension header (such as DOH or SRH) in message N6, and indicates whether to detect the IPv6 extension header through the DSCP value in the IPv6 basic header. Then, PE2 can determine whether to detect the IPv6 extension header encapsulated by PE1 in message N6 according to the DSCP value in the IPv6 header encapsulated by PE1 in message N6 before decapsulating message N6. This implementation method can refer to the description of step 508, step 606, step 708 or step 806, which will not be repeated here.

[0322] Step 1008: PE2 sends the decapsulated message N4 to the user site 2. Accordingly, the user site 2 receives the message N4 from PE2.

[0323] Optionally, PE2 may determine to send the message N4 to the user site 2 according to the destination address (H2) of the message N4 and local routing information.

[0324] Optionally, CE2 in user site 2 receives message N4 and forwards it to host H2. CE2 only performs forwarding behavior and does not process message N4.

[0325] According to the message forwarding process from step 901 to step 908 and step 1001 to step 108, the message sent by the user site can be encapsulated with a DOH or SRH carrying an option, and the option can be detected and processed at PE1 and PE2. Therefore, this implementation method can enable the option to be detected and processed end-to-end at the PE device without being perceived by the P2 device.

[0326] Optionally, in the case where the DOH or SRH carrying the option can be encapsulated in the message sent by the user site 1, the DSCP value in the IPv6 header of the message may not indicate the detection of DOH or SRH. In this case, neither the PE device nor the P device will perceive the DOH or SRH in the message, and the option is only processed at the destination user site.

[0327] As a possible implementation, when executing the above Fig. 9 and Fig.10 In the case of the corresponding message forwarding process, the configuration information of PE1, P1, P2 or PE2 may be as shown in Table 2 below:

[0328] Table 2

[0329]

[0330]

[0331] Based on the configuration shown in Table 2 above, the DSCP value and semantics newly defined in this application can be configured on PE1, P1, P2 and PE2. The interface of PE1 facing the user site 1 side, the interface of PE2 facing the user site 2 side, and the network side port between PE1 and PE2 can all be configured to enable DSCP.

[0332] Taking the case where user site 1 sends a message to user site 2 as an example, based on the configuration in Table 2 above, when the IPv6 message sent by user site 1 is encapsulated with DOH or SRH, PE1 can determine whether to process the DOH or SRH in the IPv6 message from user site 1 according to the DSCP value. In addition, PE1 will re-encapsulate the outer header of the message from user site 1 and send the re-encapsulated message to PE2. The intermediate nodes P1 and P2 can process according to the outer header encapsulated by PE1, but do not perceive the inner DOH or SRH encapsulated by user site 1. After decapsulating the outer header encapsulated by PE1, PE2 can obtain the inner IPv6 message encapsulated by user site 1. Furthermore, PE2 can determine whether to process the DOH or SRH in the IPv6 message encapsulated by user site 1 according to the DSCP value. Optionally, when the outer header encapsulated by PE1 includes DOH or SRH, P1, P2 and PE2 can also determine whether to process the DOH or SRH encapsulated by PE1 according to the DSCP value. For the above message forwarding and processing process, please refer to the above Fig. 9 and Fig.10 The corresponding message forwarding process will not be described in detail here.

[0333] Optionally, based on the configuration information in Table 2, the forwarding and processing process of the message sent from user site 2 to user site 1 is similar to the forwarding and processing process of the message sent from user site 1 to user site 2, and this application will not repeat it with examples.

[0334] It should be understood that according to the configuration in Table 2, both user site 1 and user site 2 belong to VPN 1. Therefore, the message received by PE1 from user site 1 can be determined to be a message of VPN 1. Accordingly, after PE2 decapsulates the message from PE1, it can be determined that the decapsulated message belongs to VPN 1, and can then be sent to user site 2.

[0335] In the above embodiment, the present application defines a new DSCP value to indicate the detection of an IPv6 extension header carrying options. Optionally, the present application embodiment also defines a new DSCP value to indicate the detection of certain fields in an IPv6 basic header.

[0336] Optionally, the present application may also define that when the DSCP value is a third target value, it indicates to detect the source address field in the IPv6 basic header.

[0337] Fig.11 A flowchart of another message processing method provided in an embodiment of the present application is as follows: Fig.11 As shown, the message processing method may include the following steps:

[0338] Step 1101: A third communication device generates a first IPv6 message, wherein a first field in a basic header of the first IPv6 message carries first information, and a DSCP value in a basic header of the first IPv6 message is a third target value, and the third target value is used to indicate detection of the first field.

[0339] In the embodiment of the present application, the first information may indicate certain resources or functions, so that the device that obtains the first information performs corresponding processing actions.

[0340] Optionally, the first information may be a VTN value for indicating VTN resources. If the device receiving the IPv6 message detects the first field and obtains the first information, the message may be forwarded or discarded according to the VTN resources indicated by the first information.

[0341] Optionally, the first field may be a source address field. As a possible implementation, the first field may be bits 97-112 (from left to right, a total of 16 bits) in the source address field. As another possible implementation, the first field may be bits 97-104 (from left to right, a total of 8 bits) in the source address field.

[0342] Optionally, when the implementation manner of the first field is different, the corresponding third target value of the DSCP may also be different.

[0343] As a possible implementation, when the first field is bits 97-112 in the source address field, the third target value may be 49. That is, the DSCP value 49 may be used to indicate detecting bits 97-112 in the source address field of the IPv6 basic header.

[0344] As a possible implementation, when the first field is bits 97-104 in the source address field, the third target value may be 51. That is, the DSCP value 51 may be used to indicate detecting bits 97-104 in the source address field of the IPv6 basic header.

[0345] It should be understood that the above examples of DSCP values ​​are merely exemplary. Of course, there may be other ways to implement DSCP values, and this application does not limit this.

[0346] Optionally, the third communication device may be a terminal device or a network device. For example, the third communication device may be Figure 2 Host H1, host H2, PE1 or PE2 in it.

[0347] Step 1102: The third communication device sends a first IPv6 message.

[0348] Based on this method, the first field in the IPv6 basic header of the first IPv6 message sent by the third communication device can carry the first information for indicating certain resources or functions. In addition, the third communication device also detects the first field through the DSCP value indication. Thus, the device receiving the first IPv6 message can obtain the first information and perform corresponding processing behavior according to the first information.

[0349] Fig.12 A flowchart of another message processing method provided in an embodiment of the present application is as follows: Fig.12 As shown, the message processing method may include the following steps:

[0350] Step 1201: A fourth communication device receives a first IPv6 message, wherein a first field in a basic header of the first IPv6 message carries first information, and a DSCP value in a basic header of the first IPv6 message is a third target value, and the third target value is used to indicate detection of the first field.

[0351] The first IPv6 message may be the IPv6 message generated in step 1101. For details, see the description of the first IPv6 message in step 1101, which will not be repeated here.

[0352] Step 1202: The fourth communication device detects the first field in the basic header of the first IPv6 message according to the DSCP value in the first IPv6 message.

[0353] For example, the first field may be bits 97-112 in the source address field of the IPv6 basic header, and the DSCP value may be 49. The fourth communication device may determine that bits 97-112 in the source address field of the basic header of the first IPv6 message need to be detected based on the DSCP value 49. Thus, the fourth communication device may detect bits 97-112 in the source address field of the basic header of the first IPv6 message, and thereby obtain the first information carried therein.

[0354] For example, the first field may be bits 97-104 in the source address field of the IPv6 basic header, and the DSCP value may be 51. The fourth communication device may determine that bits 97-112 in the source address field of the basic header of the first IPv6 message need to be detected according to the DSCP value 51. Thus, the fourth communication device may detect bits 97-112 in the source address field of the basic header of the first IPv6 message, and thereby obtain the first information carried therein.

[0355] Optionally, the fourth communication device detecting the first field in the basic header of the first IPv6 message may include: the fourth communication device obtaining first information carried by the first field in the basic header of the first IPv6 message, and performing corresponding processing behavior according to the first information.

[0356] Taking the first information as a VTN value as an example, first, the fourth communication device can obtain the VTN value carried by the first field in the basic header of the first IPv6 message. Then, the fourth communication device can determine the VTN resource corresponding to the VTN value. Further, the fourth communication device can forward or discard the first IPv6 message based on the VTN resource corresponding to the VTN value.

[0357] Based on this method, the first field in the IPv6 basic header of the first IPv6 message received by the fourth communication device can carry the first information for indicating certain resources or functions. In addition, the fourth communication device can also detect the first field according to the indication of the DSCP value, so as to obtain the first information. Further, the fourth communication device can perform corresponding processing behavior according to the first information.

[0358] It should be understood that in the various embodiments of the present application, the size of the serial 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.

[0359] Those of ordinary skill in the art will appreciate that the method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0360] Optionally, the above Figure 3 The communication device in the corresponding embodiment, Figure 4 The first communication device and the second communication device in the corresponding embodiment, Figures 5 to 10 The hosts H1, PE1, P1, P2, PE2 and host H2 in the corresponding embodiment can adopt Fig.13 The structure shown or includes Fig.13 Parts shown. Fig.13 A schematic diagram of the structure of a communication device 130 provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, the communication device 130 includes one or more processors 1301, a communication line 1302, and at least one communication interface ( Fig.13 The example in which the communication interface 1303 and a processor 1301 are included is merely exemplary), and a memory 1304 may also be included optionally.

[0361] The processor 1301 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0362] The communication line 1302 may include a pathway for communication between different components.

[0363] The communication interface 1303 may be a transceiver module for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc. For example, the transceiver module may be a device such as a transceiver or a transceiver. Optionally, the communication interface 1303 may also be a transceiver circuit located in the processor 1301 to implement signal input and signal output of the processor.

[0364] The memory 1304 may be a device with a storage function. For example, it may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via the communication line 1302. The memory may also be integrated with the processor.

[0365] The memory 1304 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 1301. The processor 1301 is used to execute the computer-executable instructions stored in the memory 1304, thereby implementing the message processing method provided in the embodiment of the present application.

[0366] Alternatively, optionally, in an embodiment of the present application, the processor 1301 may also execute processing-related functions in the message processing method provided in the following embodiments of the present application, and the communication interface 1303 is responsible for communicating with other devices or communication networks, which is not specifically limited in the embodiments of the present application.

[0367] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.

[0368] In a specific implementation, as an embodiment, the processor 1301 may include one or more CPUs, such as Fig.13 CPU0 and CPU1 in.

[0369] In a specific implementation, as an embodiment, the communication device 130 may include multiple processors, such as Fig.13 The processor 1301 and the processor 1307 in the embodiment of the present invention are shown in FIG. 1 . Each of these processors may be a single-core processor or a multi-core processor. The processors here may include but are not limited to at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor and other computing devices running software, each of which may include one or more cores for executing software instructions to perform calculations or processing.

[0370] In a specific implementation, as an embodiment, the communication device 130 may further include an output device 1305 and an input device 1306. The output device 1305 communicates with the processor 1301 and may display information in a variety of ways. For example, the output device 1305 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 1306 communicates with the processor 1301 and may receive user input in a variety of ways.

[0371] Optionally, the actions of the communication device in the above method embodiment may be performed by Fig.13 The processor 1301 in the communication device 130 shown calls the application code stored in the memory 1304 to instruct the communication device to execute.

[0372] Optionally, the embodiment of the present application also provides another communication device, which is used to implement the above-mentioned various methods. The communication device can be the communication equipment in the above-mentioned method embodiment. It is understandable that, in order to realize the above-mentioned functions, the communication device includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0373] The embodiment of the present application can divide the functional modules of the communication device according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0374] Fig.14 The structure diagram of a communication device 140 is shown. The communication device 140 may include a transceiver module 1401 and a processing module 1402. The transceiver module 1401, which may also be called a transceiver unit, is used to implement the transceiver function, and may be, for example, a transceiver circuit, a transceiver, a transceiver or a communication interface.

[0375] The communication device 140 is as described above. Figure 3 Take the communication device in the corresponding method embodiment as an example:

[0376] The transceiver module 1401 can be used to receive an IPv6 message. The IPv6 message can include a DSCP and a first IPv6 extension header, and the first IPv6 extension header carries at least one option. The processing module 1402 can be used to determine whether the value of the DSCP is a target value. And the processing module 1402 can also be used to detect the first IPv6 extension header when the value of the DSCP is the target value.

[0377] Optionally, the processing module 1402 may also be configured to detect the first IPv6 extension header when the DSCP value is not the target value but the communication device is the destination node of the IPv6 message.

[0378] Optionally, the processing module 1402 detects the first IPv6 extension header, which may specifically include: the communication device detects the first IPv6 extension header, and processes at least one option in the first IPv6 extension header.

[0379] Optionally, the transceiver module 1401 may also be used to obtain configuration information, where the configuration information is used to instruct to detect the first IPv6 extension header when the value of the DSCP is a target value.

[0380] The communication device 140 is as described above. Figure 4 Take the first communication device in the corresponding embodiment as an example:

[0381] The transceiver module 1401 can be used to obtain a first message. The processing module 1402 can be used to generate a second message based on the first message. The second message is an IPv6 message, and the second message includes a DSCP, a first IPv6 extension header and a first payload. The first payload includes at least part of the content of the first message, and the first IPv6 extension header carries at least one option. The value of DSCP is used to indicate whether the second communication device that receives the second message detects the first IPv6 extension header.

[0382] Optionally, the transceiver module 1401 may also be configured to send a second message.

[0383] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here. Since the communication device 140 provided in this embodiment can execute the above message processing method, the technical effects that can be obtained can refer to the above method embodiment, which will not be repeated here.

[0384] In this embodiment, the communication device 140 is presented in the form of dividing various functional modules in an integrated manner. The "module" here may refer to a specific ASIC, circuit, processor and memory that executes one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the above functions. In a simple embodiment, those skilled in the art can imagine that the communication device 140 can be used Fig.13 The form of the communication device 130 is shown.

[0385] for example, Fig.13 The processor 1301 in the communication device 130 shown can call the computer-executable instructions stored in the memory 1304 to enable the communication device 130 to execute the message processing method in the above method embodiment.

[0386] Optionally, Fig.14 The function / implementation process of the transceiver module 1401 can be Fig.13 The communication interface 1303 in the communication device 130 shown in FIG. Fig.14 The function / implementation process of the processing module 1402 in Fig.13 The processor 1301 in the communication device 130 shown calls the computer execution instructions stored in the memory 1304 to implement.

[0387] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0388] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0389] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0390] Optionally, the present application also provides a chip, which may include a processor, and the processor may be coupled to a memory, and the memory is used to store programs or instructions. When the program or instructions are executed by the processor, the chip can execute the message processing method provided in the embodiment of the present application.

[0391] Optionally, the present application also provides a computer-readable storage medium, which stores instructions, and when the computer-readable storage medium is run on a computer, enables the computer to execute the message processing method provided in the embodiment of the present application.

[0392] Optionally, the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the message processing method provided in the embodiments of the present application.

[0393] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing a computer program instruction on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may contain one or more servers, data centers and other data storage devices that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0394] As used in this application, the terms "component", "module", "system", etc. are intended to refer to a computer-related entity, which can be hardware, firmware, a combination of hardware and software, software, or software in operation. For example, a component can be, but is not limited to: a process running on a processor, a processor, an object, an executable file, a thread in execution, a program, and / or a computer. As an example, an application running on a computing device and the computing device can both be components. One or more components can exist in a process and / or thread in execution, and a component can be located in a computer and / or distributed between two or more computers. In addition, these components can be executed from various computer-readable media having various data structures thereon. These components can communicate in a local and / or remote process manner, such as according to a signal having one or more data packets (for example, data from a component that interacts with another component in a local system, a distributed system, and / or interacts with other systems in a signal manner through a network such as the Internet).

[0395] The present application presents various aspects, embodiments, or features around a system that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. In addition, combinations of these schemes may also be used.

[0396] In addition, in the embodiments of the present application, the word "exemplary" is used to indicate an example, illustration or description. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0397] In the embodiments of the present application, information, signal, message, and channel can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are consistent. "Of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are consistent. "System" and "network" can sometimes be used interchangeably. When the distinction between them is not emphasized, the meanings they intend to express are consistent. For example, "communication network" also refers to "communication system".

[0398] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0399] 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.< / option>

Claims

1. A message processing method, characterized in that: The method comprises: The communication device receives an Internet Protocol version 6 (IPv6) message; wherein the IPv6 message includes a differentiated service code point (DSCP) and a first IPv6 extension header, and the first IPv6 extension header carries at least one option; The communication device determines whether the value of the DSCP is a target value; When the value of the DSCP is the target value, the communication device detects the first IPv6 extension header.

2. The method according to claim 1, characterized in that The first IPv6 extension header is a destination option header DOH or a segment routing header SRH.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: When the value of the DSCP is not the target value, if the communication device is not the destination node of the IPv6 message, the communication device does not detect the first IPv6 extension header; When the value of the DSCP is not the target value, if the communication device is the destination node of the IPv6 message, the communication device detects the first IPv6 extension header.

4. The method according to any one of claims 1 to 3, characterized in that: The communication device detects the first IPv6 extension header, including: The communication device detects the first IPv6 extension header and processes at least one option in the first IPv6 extension header.

5. The method according to any one of claims 2 to 4, characterized in that: When the first IPv6 extension header is an SRH, the at least one option is carried in a TLV field of the SRH.

6. The method according to any one of claims 1 to 5, characterized in that: The at least one option includes at least one of a congestion exposure ConEx option, an alternative mark AltMark option, or a virtual transport network VTN option.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The communication device obtains configuration information, where the configuration information is used to indicate that the first IPv6 extension header is detected when the value of the DSCP is the target value.

8. The method according to claim 7, characterized in that The target value includes a first target value and a second target value; the configuration information is used to indicate that the first IPv6 extension header is detected when the value of the DSCP is the target value, including: The configuration information is used to indicate that when the value of the DSCP is the first target value, the first IPv6 extension header is detected; the first IPv6 extension header is DOH; The configuration information is used to indicate that when the value of the DSCP is the second target value, the first IPv6 extension header is detected; the first IPv6 extension header is an SRH; The first target value and the second target value are the same or different.

9. A message processing method, characterized in that: The method comprises: The first communication device obtains a first message; The first communication device generates a second message based on the first message, the second message is an Internet Protocol version 6 IPv6 message, the second message includes a differentiated service code point DSCP, a first IPv6 extension header and a first payload; wherein the first payload includes at least part of the content of the first message, and the first IPv6 extension header carries at least one option; the value of the DSCP is used to indicate whether the second communication device that receives the second message detects the first IPv6 extension header.

10. The method according to claim 9, characterized in that The first IPv6 extension header is a destination option header DOH or a segment routing header SRH.

11. The method according to any one of claims 9 to 10, characterized in that: The at least one option includes at least one of a congestion exposure ConEx option, an alternative mark AltMark option, or a virtual transport network VTN option.

12. A communication device, characterized in that: The communication device comprises: a processor and a memory; The memory is used to store computer-executable instructions. When the processor executes the computer-executable instructions, the communication device executes the message processing method as described in any one of claims 1-8 or 9-11.

13. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, enable the computer to execute the message processing method described in any one of claims 1-8 or 9-11.

14. A communication system, characterized in that: comprising a first communication device and a second communication device, The first communication device is used to execute the message processing method as described in any one of claims 1-8, and the second communication device is used to execute the message processing method as described in any one of claims 9-11.