packet processing

By updating the encapsulation information of the network device's cache entries in the control plane, the problem of unclear service packet forwarding paths caused by incorrect encapsulation information in the SRv6 network is resolved, thereby improving the availability and path accuracy of the network device.

CN117643018BActive Publication Date: 2026-11-24NEW H3C TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280001937.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2026-11-24
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

In SRv6 networks, misconfiguration of the encapsulation information cached by SFF nodes can lead to unclear or incorrect forwarding paths for service packets, which cannot be effectively resolved by existing technologies.

Method used

The network device's control plane receives packets sent from the data plane, judges and updates the encapsulation information of the cached items, ensuring the consistency of the encapsulation information and preventing the data plane from learning incorrect encapsulation information.

Benefits of technology

It reduces the requirements for the data plane, improves the availability of network devices, ensures the accuracy of the forwarding path of service packets, and avoids the occurrence of error paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117643018B_ABST
    Figure CN117643018B_ABST
Patent Text Reader

Abstract

This application provides message processing, relating to the field of communication technology. The solution includes: receiving a first message sent by the data plane of a network device. The first message includes a first SID, first encapsulation information, and announcement information, the announcement information including a first head node address; if a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, then the first SID and the first encapsulation information are sent to the data plane, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information. This avoids the problem of unclear subsequent forwarding paths for service messages processed by the SF node, and the possibility of incorrect paths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to message processing. Background Technology

[0002] In a Segment Routing Internet Protocol Version 6 (SRv6) network, after receiving the original service packet, the head node can encapsulate an IPv6 header and a Segment Routing Header (SRH) on the outer layer of the original service packet. The Segment Routing Header includes a Segment List, which indicates the forwarding path of the service packet in the SRv6 network. Nodes in the SRv6 network can then forward the service packet based on this forwarding path.

[0003] A Service Function Chain (SFC) refers to the process of forwarding service packets in a planned order, where service packets are forwarded to the Service Function (SF) nodes of value-added services, and the SF nodes process the service packets. These service functions can specifically include billing functions, firewalls, etc.

[0004] Currently, SRv6 networks can be combined with SFCs. Depending on the actual service requirements, some endpoint nodes in the SRv6 network can be used as Service Function Forwarder (SFF) nodes, and the SFF nodes are connected to the Service Function (SF) nodes.

[0005] The existing RFC protocol defines a new SRv6 SID and its corresponding function, namely End.AD SID. When the SFF receives a service packet with the destination address End.AD SID, it can remove the outer IPv6 header and SRH of the service packet and send the original service packet to the SF node. Furthermore, the SFF node caches the IPv6 header and SRH information (also known as encapsulation information) in the data plane. When the SFF node receives the service packet processed by the SF node, it re-encapsulates the IPv6 header and SRH based on the cached encapsulation information and continues to forward the re-encapsulated service packet.

[0006] In other words, during the current packet forwarding process, the SFF node needs to learn encapsulation information within the data plane. This learning process places high demands on the data plane and lacks availability. Furthermore, if a misconfiguration occurs in the network, for example, if two different header nodes have segment lists composed of two different paths, but both reference the same End.AD SID of the same SFF, the header nodes will encapsulate packets based on both segment lists, with the destination address being the same End.AD SID—meaning the packets arrive at the same SFF node. This will cause the encapsulation information cached by the SFF node to be overwritten by the two different service flows. The subsequent forwarding path of the service packets processed by the SF node will be unclear and may even be an incorrect path. Summary of the Invention

[0007] The purpose of this application's embodiments is to address message processing issues, thereby avoiding the problem of unclear subsequent forwarding paths for service messages processed by the SF node, and the possibility of them being incorrect paths. The specific technical solution is as follows:

[0008] In a first aspect, embodiments of this application provide a message processing method, the method being applied to the control plane of a network device, the method comprising:

[0009] Receive a first message sent by the data plane of the network device, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address;

[0010] If a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, then the first SID and the first encapsulation information are sent to the data plane, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information.

[0011] In one possible implementation, the first cache entry further includes third encapsulation information, the third encapsulation information and the second encapsulation information comprising the same content; before sending the first encapsulation information to the data plane, the method further includes:

[0012] Determine whether the third encapsulation information is the same as the first encapsulation information;

[0013] If they are different, the three encapsulation information will be updated to the first encapsulation information.

[0014] In one possible implementation, after receiving the first message sent by the data plane of the network device, the method further includes:

[0015] If a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address, then a network configuration error message is sent to the management platform.

[0016] In one possible implementation, the notification information further includes first instruction information, a first serial number, and a first lifespan;

[0017] After receiving the first message sent by the data plane of the network device, the method further includes:

[0018] If the value of the first indication information is the first value, then determine whether there is a first cache entry associated with the first SID locally;

[0019] If it does not exist, a second cache entry is created associated with the first SID. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information.

[0020] Send the first SID, the first serial number, and the first encapsulation information to the data plane.

[0021] In one possible implementation, the first cache item also includes a timestamp;

[0022] After determining whether a first cached item associated with the first SID exists locally, the method further includes:

[0023] If it exists, then update the timestamp to the current time.

[0024] In one possible implementation, the first cache item further includes a second time-to-live; the method further includes:

[0025] If it is determined from the timestamp of the first cached item that the first cached item has not been updated within the second lifetime, then the first cached item is deleted;

[0026] The first SID is sent to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0027] In one possible implementation, after receiving the first message sent by the data plane of the network device, the method further includes:

[0028] If the value of the first indication information is the second value, then determine whether there is a third cache entry associated with the first SID locally. The third cache entry includes third encapsulation information and a third head node address.

[0029] If it exists, and the address of the third head node is the same as the address of the first head node, then the third cache entry is deleted;

[0030] The first SID is sent to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0031] In one possible implementation, the notification information further includes second instruction information; the method further includes:

[0032] If the value of the second indication information is the second value, then a second message is sent to the first head node indicated by the first head node address. The second message includes the processing result of the control surface on the first encapsulation information.

[0033] In one possible implementation, the first message is a specified protocol message; or, the first message is a BFD message.

[0034] The first message may further include a first DOH, which carries the notification information; or, the first message may further include a first SRH, which includes a first TLV structure, which carries the notification information.

[0035] In one possible implementation, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0036] The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0037] The serial number field includes 16 bits and is used to carry the serial number;

[0038] The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information.

[0039] The head node address field includes 128 bits and is used to carry the head node address.

[0040] In one possible implementation, the first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

[0041] Secondly, embodiments of this application provide a message processing method, the method being applied to the data plane of the network device, the method comprising:

[0042] Receive a first message, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address;

[0043] If the first SID is a locally configured proxy SID, then a copied first message is sent to the control plane of the network device;

[0044] Receive the first SID and first encapsulation information sent by the control plane, and update the second encapsulation information associated with the first SID stored locally using the first encapsulation information;

[0045] The first SID and the first encapsulation information are sent by the control plane when it determines that a first cached item associated with the first SID exists locally, and the second head node address included in the first cached item is the same as the first head node address.

[0046] In one possible implementation, the notification information further includes a first serial number;

[0047] Sending the copied first message to the control plane of the network device includes:

[0048] If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or the encapsulation information associated with the first SID does not exist locally, then a copied first message is sent to the control plane.

[0049] In one possible implementation, the method further includes:

[0050] Receive the second SID after the control plane cache and the third encapsulation information associated with the second SID;

[0051] The second SID and the third encapsulation information are cached.

[0052] In one possible implementation, the first message further includes a first SRH, the first SRH including a first segment list, the first segment list being used to indicate a forwarding path; after receiving the first message, the method further includes:

[0053] The first message is forwarded on the forwarding path.

[0054] Thirdly, embodiments of this application provide a message processing method, which is applied to a first head node, and the method includes:

[0055] Send the first message on the forwarding path indicated by the SRv6 policy;

[0056] The first message includes a first SID, first encapsulation information, and announcement information, wherein the announcement information includes the first head node address;

[0057] The notification information is used to enable the data plane of the network device that receives the first message to send a copied first message to the control plane of the network device after determining that the first SID is a locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information.

[0058] In one possible implementation, before sending the first packet on the forwarding path indicated by the SRv6 policy, the method further includes:

[0059] Receive a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes the SRv6 policy;

[0060] The notification function is activated according to the second configuration instruction;

[0061] Sending the first packet on the forwarding path indicated by the SRv6 policy includes:

[0062] Under the notification function, the first message is sent on the forwarding path indicated by the SRv6 policy.

[0063] In one possible implementation, after receiving the first configuration instruction and the second configuration instruction, the method further includes:

[0064] Create an announcement instance and bind the announcement instance to the SRv6 policy; wherein, the announcement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type;

[0065] Based on the notification instance, determine the type of the first message and generate the first notification information;

[0066] SRH is generated based on the SRv6 strategy;

[0067] The first message is generated according to the type of the first message, and the first message includes the SRH;

[0068] Sending the first packet on the forwarding path indicated by the SRv6 policy includes:

[0069] The first message is sent on the forwarding path indicated by the SRv6 policy according to the message sending time interval.

[0070] In one possible implementation, the first message is of type either a specified protocol message or a BFD message;

[0071] When the type of the first message is a specified protocol message, the first message includes an IPv6 header, a DOH, and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, a DOH, the SRH, and the BFD payload.

[0072] Wherein, the DOH carries the notification data; the BFD payload carries BFD information;

[0073] or,

[0074] When the type of the first message is a specified protocol message, the first message includes an IPv6 header and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, the SRH, and the BFD payload.

[0075] The SRH includes a TLV structure that carries the notification data; the BFD payload carries BFD information.

[0076] In one possible implementation, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0077] The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0078] When the first indication information takes the first value, it indicates an update cache item operation; when the first indication information takes the second value, it indicates a delete cache item operation.

[0079] When the second indication information is set to a second value, the network device is instructed to respond to the message; when the second indication information is set to a first value, the network device is instructed not to respond to the message.

[0080] The sequence number field includes 16 bits, which are used to carry a sequence number and indicate whether the forwarding path indicated by the SRv6 policy has changed;

[0081] The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information.

[0082] The head node address field includes 128 bits and is used to carry the head node address.

[0083] In one possible implementation, after sending the first packet on the forwarding path indicated by the SRv6 policy, the method further includes:

[0084] The network device receives a second message, the second message including the processing result of the network device's control surface on the first encapsulation information.

[0085] Fourthly, embodiments of this application provide a message processing apparatus, which is applied to the control plane of a network device, and the apparatus includes:

[0086] The receiving module is configured to receive a first message sent by the data plane of the network device, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address;

[0087] The sending module is configured to send the first SID and the first encapsulation information to the data plane if a first cached entry associated with the first SID exists locally and the second head node address included in the first cached entry is the same as the first head node address, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information.

[0088] In one possible implementation, the first cache item further includes third encapsulation information, the third encapsulation information and the second encapsulation information comprising the same content; the apparatus further includes:

[0089] The judgment module is used to determine whether the third encapsulation information is the same as the first encapsulation information;

[0090] An update module is used to update the three encapsulation information to the first encapsulation information if the judgment result of the judgment module is different.

[0091] In one possible implementation, the sending module is further configured to:

[0092] If a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address, then a network configuration error message is sent to the management platform.

[0093] In one possible implementation, the notification information further includes first instruction information, a first serial number, and a first lifespan;

[0094] The device further includes:

[0095] The judgment module is used to determine whether a first cache entry associated with the first SID exists locally if the value of the first indication information is a first value.

[0096] A module is established to create a second cache entry associated with the first SID if the judgment result of the judgment module is that the SID does not exist. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information.

[0097] The sending module is further configured to send the first SID, the first serial number, and the first encapsulation information to the data plane.

[0098] In one possible implementation, the first cache item also includes a timestamp;

[0099] The update module is also used for:

[0100] If the judgment result of the judgment module is that it exists, then the timestamp is updated to the current time.

[0101] In one possible implementation, the first cache entry further includes a second lifetime; the apparatus further includes:

[0102] The deletion module is used to delete the first cache item if it is determined from the timestamp of the first cache item that the first cache item has not been updated within the second lifetime.

[0103] The sending module is further configured to send the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0104] In one possible implementation, the device further includes: a deletion module;

[0105] The judgment module is further configured to determine whether a third cache entry associated with the first SID exists locally if the value of the first indication information is a second value. The third cache entry includes third encapsulation information and a third head node address.

[0106] The deletion module is used to delete the third cache item if the judgment result of the judgment module is that it exists and the address of the third head node is the same as the address of the first head node.

[0107] The sending module is further configured to send the first SID to the data plane, so that the data plane deletes the encapsulation information associated with the first SID.

[0108] In one possible implementation, the notification information further includes second indication information; the sending module is further configured to:

[0109] If the value of the second indication information is the second value, then a second message is sent to the first head node indicated by the first head node address. The second message includes the processing result of the control surface on the first encapsulation information.

[0110] In one possible implementation, the first message is a specified protocol message; or, the first message is a BFD message.

[0111] The first message may further include a first DOH, which carries the notification information; or, the first message may further include a first SRH, which includes a first TLV structure, which carries the notification information.

[0112] In one possible implementation, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0113] The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0114] The serial number field includes 16 bits and is used to carry the serial number;

[0115] The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information.

[0116] The head node address field includes 128 bits and is used to carry the head node address.

[0117] In one possible implementation, the first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

[0118] Fifthly, embodiments of this application provide a message processing apparatus, which is applied to the data plane of the network device, and the apparatus includes:

[0119] A receiving module is configured to receive a first message, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address;

[0120] The sending module is configured to send a copied first message to the control plane of the network device if the first SID is a locally configured proxy SID.

[0121] The receiving module is further configured to receive the first SID and the first encapsulation information sent by the control plane, and update the second encapsulation information associated with the first SID stored locally using the first encapsulation information;

[0122] The first SID and the first encapsulation information are sent by the control plane when it determines that a first cached item associated with the first SID exists locally, and the second head node address included in the first cached item is the same as the first head node address.

[0123] In one possible implementation, the notification information further includes a first serial number;

[0124] The sending module is specifically used for:

[0125] If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or the encapsulation information associated with the first SID does not exist locally, then a copied first message is sent to the control plane.

[0126] In one possible implementation, the device further includes: a cache module;

[0127] The receiving module is also configured to receive the second SID after the control plane cache and the third encapsulation information associated with the second SID;

[0128] The caching module is used to cache the second SID and the third encapsulation information.

[0129] In one possible implementation, the first message further includes a first SRH, the first SRH including a first segment list, and the sending module is further configured to:

[0130] The first message is forwarded on the forwarding path.

[0131] Sixthly, embodiments of this application provide a message processing apparatus, which is applied to a first head node, and the apparatus includes:

[0132] The sending module is used to send the first message on the forwarding path indicated by the SRv6 policy;

[0133] The first message includes a first SID, first encapsulation information, and announcement information, wherein the announcement information includes the first head node address;

[0134] The notification information is used to enable the data plane of the network device that receives the first message to send a copied first message to the control plane of the network device after determining that the first SID is a locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information.

[0135] In one possible implementation, the device further includes:

[0136] A receiving module is configured to receive a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes the SRv6 strategy.

[0137] The startup module is used to start the notification function according to the second configuration instruction;

[0138] The sending module is specifically used for:

[0139] Under the notification function, the first message is sent on the forwarding path indicated by the SRv6 policy.

[0140] In one possible implementation, the device further includes:

[0141] A creation module is used to create an announcement instance and bind the announcement instance to the SRv6 policy; wherein, the announcement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type;

[0142] A generation module is configured to determine the type of the first message based on the notification instance and generate the first notification information; generate an SRH based on the SRv6 policy; and generate the first message according to the type of the first message, wherein the first message includes the SRH.

[0143] The sending module is specifically used to send the first message on the forwarding path indicated by the SRv6 policy according to the message sending time interval.

[0144] In one possible implementation, the first message is of type either a specified protocol message or a BFD message;

[0145] When the type of the first message is a specified protocol message, the first message includes an IPv6 header, a DOH, and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, a DOH, the SRH, and the BFD payload.

[0146] Wherein, the DOH carries the notification data; the BFD payload carries BFD information;

[0147] or,

[0148] When the type of the first message is a specified protocol message, the first message includes an IPv6 header and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, the SRH, and the BFD payload.

[0149] The SRH includes a TLV structure that carries the notification data; the BFD payload carries BFD information.

[0150] In one possible implementation, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0151] The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0152] When the first indication information takes the first value, it indicates an update cache item operation; when the first indication information takes the second value, it indicates a delete cache item operation.

[0153] When the second indication information is set to a second value, the network device is instructed to respond to the message; when the second indication information is set to a first value, the network device is instructed not to respond to the message.

[0154] The sequence number field includes 16 bits, which are used to carry a sequence number and indicate whether the forwarding path indicated by the SRv6 policy has changed;

[0155] The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information.

[0156] The head node address field includes 128 bits and is used to carry the head node address.

[0157] In one possible implementation, the receiving module is further configured to:

[0158] The network device receives a second message, the second message including the processing result of the network device's control surface on the first encapsulation information.

[0159] Seventhly, embodiments of this application provide a network device, the network device comprising:

[0160] Processor; transceiver; machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions causing the processor to perform the following steps:

[0161] The transceiver receives a first message sent by the data plane of the network device. The first message includes a first SID, first encapsulation information, and announcement information. The announcement information includes a first head node address.

[0162] If a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, then the first SID and the first encapsulation information are sent to the data plane through the transceiver, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information.

[0163] In one possible implementation, the first cache entry further includes third encapsulation information, which contains the same content as the second encapsulation information; the machine-executable instructions further cause the processor to perform the following steps:

[0164] Determine whether the third encapsulation information is the same as the first encapsulation information;

[0165] If they are different, the three encapsulation information will be updated to the first encapsulation information.

[0166] In one possible implementation, the machine-executable instructions further cause the processor to perform the following steps:

[0167] If a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address, then a network configuration error message is sent to the management platform through the transceiver.

[0168] In one possible implementation, the notification information further includes first instruction information, a first serial number, and a first lifespan;

[0169] The machine-executable instructions also cause the processor to perform the following steps:

[0170] If the value of the first indication information is the first value, then determine whether there is a first cache entry associated with the first SID locally;

[0171] If it does not exist, a second cache entry is created associated with the first SID. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information.

[0172] The transceiver sends the first SID, the first serial number, and the first encapsulation information to the data plane.

[0173] In one possible implementation, the first cache item also includes a timestamp;

[0174] The machine-executable instructions also cause the processor to perform the following steps:

[0175] If it exists, then update the timestamp to the current time.

[0176] In one possible implementation, the first cache entry further includes a second time-to-live; the machine-executable instructions also cause the processor to perform the following steps:

[0177] If it is determined from the timestamp of the first cached item that the first cached item has not been updated within the second lifetime, then the first cached item is deleted;

[0178] The transceiver sends the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0179] In one possible implementation, the machine-executable instructions further cause the processor to perform the following steps:

[0180] If the value of the first indication information is the second value, then determine whether there is a third cache entry associated with the first SID locally. The third cache entry includes third encapsulation information and a third head node address.

[0181] If it exists, and the address of the third head node is the same as the address of the first head node, then the third cache entry is deleted;

[0182] The transceiver sends the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0183] In one possible implementation, the notification information further includes second instruction information; the machine-executable instructions also cause the processor to perform the following steps:

[0184] If the value of the second indication information is the second value, then the transceiver sends a second message to the first head node indicated by the first head node address. The second message includes the processing result of the control surface on the first encapsulation information.

[0185] In one possible implementation, the first message is a specified protocol message; or, the first message is a BFD message.

[0186] The first message may further include a first DOH, which carries the notification information; or, the first message may further include a first SRH, which includes a first TLV structure, which carries the notification information.

[0187] In one possible implementation, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0188] The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0189] The serial number field includes 16 bits and is used to carry the serial number;

[0190] The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information.

[0191] The head node address field includes 128 bits and is used to carry the head node address.

[0192] In one possible implementation, the first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

[0193] Eighthly, embodiments of this application provide a network device, the network device comprising:

[0194] Processor; transceiver; machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions causing the processor to perform the following steps:

[0195] The transceiver receives a first message, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address;

[0196] If the first SID is a locally configured proxy SID, then the replicated first message is sent to the control plane of the network device through the transceiver;

[0197] The transceiver receives the first SID and first encapsulation information sent by the control plane, and uses the first encapsulation information to update the second encapsulation information associated with the first SID stored locally.

[0198] The first SID and the first encapsulation information are sent by the control plane when it determines that a first cached item associated with the first SID exists locally, and the second head node address included in the first cached item is the same as the first head node address.

[0199] In one possible implementation, the notification information further includes a first serial number;

[0200] The machine-executable instructions also cause the processor to perform the following steps:

[0201] If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or the encapsulation information associated with the first SID does not exist locally, then the transceiver sends a copied first message to the control plane.

[0202] In one possible implementation, the machine-executable instructions further cause the processor to perform the following steps:

[0203] The transceiver receives the second SID cached in the control plane and the third encapsulation information associated with the second SID.

[0204] The second SID and the third encapsulation information are cached.

[0205] In one possible implementation, the first message further includes a first SRH, the first SRH including a first segment list indicating a forwarding path; the machine-executable instructions further cause the processor to perform the following steps:

[0206] The transceiver forwards the first message on the forwarding path.

[0207] Ninthly, embodiments of this application provide a header node, the header node comprising:

[0208] Processor; transceiver; machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions causing the processor to perform the following steps:

[0209] The first message is sent via the transceiver on the forwarding path indicated by the SRv6 policy.

[0210] The first message includes a first SID, first encapsulation information, and announcement information, wherein the announcement information includes a first head node address;

[0211] The notification information is used to enable the data plane of the network device that receives the first message to send a copied first message to the control plane of the network device after determining that the first SID is a locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information.

[0212] In one possible implementation, the machine-executable instructions further cause the processor to perform the following steps:

[0213] The transceiver receives a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes the SRv6 policy.

[0214] The notification function is activated according to the second configuration instruction;

[0215] Under the notification function, the first message is sent via the transceiver on the forwarding path indicated by the SRv6 policy.

[0216] In one possible implementation, the machine-executable instructions further cause the processor to perform the following steps:

[0217] Create an announcement instance and bind the announcement instance to the SRv6 policy; wherein, the announcement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type;

[0218] Based on the notification instance, determine the type of the first message and generate the first notification information;

[0219] SRH is generated based on the SRv6 strategy;

[0220] The first message is generated according to the type of the first message, and the first message includes the SRH;

[0221] The first message is sent via the transceiver on the forwarding path indicated by the SRv6 policy according to the message sending time interval.

[0222] In one possible implementation, the first message is of type either a specified protocol message or a BFD message;

[0223] When the type of the first message is a specified protocol message, the first message includes an IPv6 header, a DOH, and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, a DOH, the SRH, and the BFD payload.

[0224] Wherein, the DOH carries the notification data; the BFD payload carries BFD information;

[0225] or,

[0226] When the type of the first message is a specified protocol message, the first message includes an IPv6 header and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, the SRH, and the BFD payload.

[0227] The SRH includes a TLV structure that carries the notification data; the BFD payload carries BFD information.

[0228] In one possible implementation, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0229] The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0230] When the first indication information takes the first value, it indicates an update cache item operation; when the first indication information takes the second value, it indicates a delete cache item operation.

[0231] When the second indication information is set to a second value, the network device is instructed to respond to the message; when the second indication information is set to a first value, the network device is instructed not to respond to the message.

[0232] The sequence number field includes 16 bits, which are used to carry a sequence number and indicate whether the forwarding path indicated by the SRv6 policy has changed;

[0233] The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information.

[0234] The head node address field includes 128 bits and is used to carry the head node address.

[0235] In one possible implementation, the machine-executable instructions further cause the processor to perform the following steps:

[0236] The transceiver receives a second message sent by the network device, the second message including the processing result of the network device's control surface on the first encapsulation information.

[0237] In a tenth aspect, embodiments of this application provide a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to perform any of the steps described in the first, second, or third aspects above.

[0238] In one aspect, embodiments of this application provide a computer program product that causes the processor to implement the steps of any of the methods described in the first, second, or third aspects above.

[0239] Using the technical solution of this application, the control plane of the network device can receive a first message sent by the data plane. The first message includes a first SID, first encapsulation information, and announcement information, with the announcement information including a first head node address. If the control plane determines that a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, it can send the first encapsulation information to the data plane, causing the data plane to update the second encapsulation information to the first encapsulation information. Therefore, in this embodiment, the control plane learns the encapsulation information, which reduces the requirements on the data plane and improves availability. Furthermore, the control plane only triggers the data plane to update the encapsulation information when it determines that the first head node address and the second head node address are the same, thus avoiding the data plane learning incorrect encapsulation information and preventing the forwarding path of service packets processed by the SF node from being unclear or potentially leading to incorrect paths. Attached Figure Description

[0240] To more clearly illustrate the technical solutions of the embodiments of this application and the prior art, the drawings used in the embodiments and the prior art are briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0241] Figure 1 A schematic diagram illustrating a scenario combining service chain functionality with SRv6, as provided in an embodiment of this application;

[0242] Figure 2 A flowchart illustrating a message processing method provided in an embodiment of this application;

[0243] Figure 3 A schematic diagram illustrating the format of a first message provided for an embodiment of this application;

[0244] Figure 4 A schematic diagram illustrating another format of the first message provided in an embodiment of this application;

[0245] Figure 5 This is a schematic diagram illustrating the format of the notification information provided in the embodiments of this application;

[0246] Figure 6 A flowchart illustrating another message processing method provided in an embodiment of this application;

[0247] Figure 7 A flowchart illustrating another message processing method provided in an embodiment of this application;

[0248] Figure 8 This is a schematic diagram of the structure of a message processing device provided in an embodiment of this application;

[0249] Figure 9 A schematic diagram of another message processing apparatus provided in the embodiments of this application;

[0250] Figure 10 This application provides a schematic diagram of the structure of a network device according to an embodiment of the present application.

[0251] Figure 11 This is a schematic diagram of the structure of another network device provided in an embodiment of this application;

[0252] Figure 12 This is a schematic diagram of the structure of the head node provided in an embodiment of this application. Detailed Implementation

[0253] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are merely some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0254] To facilitate understanding, the relevant concepts involved in the embodiments of this application will be explained first.

[0255] SRv6 is a source routing technology. The head node of an SRv6 network can add SRH encapsulation to traffic, and guide the traffic to be forwarded according to the prescribed path through the Segment List in the SRH header.

[0256] The service chain function refers to the process in which Service Function Forwarder (SFF) nodes send traffic to Service Function (SF) nodes in a planned order during traffic forwarding, enabling SF nodes to process the traffic. SF nodes can specifically implement functions such as billing and firewalls.

[0257] Currently, service chain functionality can be integrated with SRv6, meaning it can be implemented within an SRv6 network by orchestrating service chains through SRv6's Segment List. For example... Figure 1 As shown, after the head node (i.e., the classifier in the service chain function scenario) receives the original packet, it encapsulates the Internet Protocol Version 6 (IPv6) header and SRH on the outer layer of the original packet.

[0258] The source address of this IPv6 header is the source address of the original service message, and the destination address is SFF1.

[0259] The Segment List included in SRH is SFF1::SF1, SFF2::SF2, and SFF3.

[0260] SFF1::SF1 is the segment ID (SID) of SFF1, which can be of type End.AD, End.AS or End.AM, and is used to instruct SFF1 to send the message to SF1.

[0261] SFF2::SF2 is the SID of SFF2, which can be of type End.AD, End.AS, or End.AM, and is used to instruct SFF2 to send messages to SF2.

[0262] SFF3 is the SID of SFF3, and its type can be a regular End type.

[0263] The header node can forward packets encapsulated with IPv6 headers and SRH to SFF1. If SFF1 is of type End.AD or End.AS, then SFF1 can forward the original packet to SF1. SF1 processes the original packet and sends the processed original packet back to SFF1. SFF1 then re-encapsulates the processed original packet with IPv6 headers and SRH and sends it to SFF2. SFF2 processes packets similarly to SFF1, and will not be described further here.

[0264] The aforementioned End.AD is an SRv6 SID used to indicate that the node to which End.AD belongs acts as an SR proxy (SegmentRouting Proxy). Before forwarding packets to the SF node for processing, it temporarily removes the IPv6 header and SRH of the packet before forwarding it to the SF node. After receiving the packet processed by the SF node, it re-encapsulates the IPv6 header and SRH of the packet based on the information of the IPv6 header and SRH cached in the dynamic cache. In other words, the node to which End.AD belongs can act as a dynamic proxy node, maintaining a dynamic cache for each service chain.

[0265] End.AS is another type of SRv6 SID used to indicate that the node to which End.AS belongs acts as an SR proxy, and can perform similar packet processing functions as End.AD. The difference between End.AS and End.AD is that the node to which End.AS belongs re-encapsulates the IPv6 header and SRH for the packet through static configuration information, and does not need to maintain a dynamic cache.

[0266] End.AM is another type of SRv6 SID, used to indicate that the SFF node to which End.AM belongs acts as an SR proxy and can connect to SF nodes with the ability to identify SRHs. Before forwarding a packet to an SF node, the SFF node to which End.AM belongs updates the packet's destination address to the segment with SL=0, which is the final destination address of the packet. Then, after the SF node processes the packet, it returns the processed packet to the SFF node based on the destination address. The SFF node then updates the packet's destination address to the segment indicated by the current SL in the SRH, so that the packet continues to be forwarded along the path indicated by the Segment List.

[0267] The aforementioned End.AD type SFF needs to learn packet encapsulation information on the data plane and cache it locally. This learning process places high demands on the data plane and lacks availability. Furthermore, if a misconfiguration occurs in the network—for example, two different header nodes have segment lists composed of different paths, but both referencing the same End.AD SID from the same SFF—the header nodes will encapsulate packets based on both segment lists, with the destination address being the same End.AD SID, meaning they arrive at the same SFF node. This will cause the encapsulation information cached by the SFF node to be overwritten by the two different service flows. The subsequent forwarding path of the service packets processed by the SF node will be unclear and may even be an incorrect path.

[0268] To address the aforementioned technical problems, embodiments of this application provide a message processing method, which is applied to the control plane of a network device, such as... Figure 2 As shown, the method includes:

[0269] S201. Receive a first message sent by the data plane of the network device. The first message includes a first SID, first encapsulation information and announcement information. The announcement information includes the address of the first head node.

[0270] The first SID is the destination address in the IPv6 header of the first packet.

[0271] S202. If a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, then the first SID and the first encapsulation information are sent to the data plane so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information.

[0272] In this embodiment, the control plane of the network device can receive a first message sent by the data plane. The first message includes a first SID, first encapsulation information, and announcement information, with the announcement information including a first head node address. If the control plane determines that a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, it can send the first encapsulation information to the data plane, causing the data plane to update the second encapsulation information to the first encapsulation information. Therefore, in this embodiment, the control plane learns the encapsulation information, which reduces the requirements on the data plane and improves availability. Furthermore, the control plane only triggers the data plane to update the encapsulation information when it determines that the first and second head node addresses are the same, avoiding the data plane learning incorrect encapsulation information. This prevents the forwarding path of service packets processed by the SF node from being unclear and potentially leading to incorrect paths.

[0273] Optionally, after S201, the method further includes: if a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is different from the first head node address, then a network configuration error message is sent to the management platform. Furthermore, the network device may also discard the first packet.

[0274] The control plane can generate syslog logs and send them to the management platform to indicate current network configuration errors. Administrators can then check the current network configuration based on the syslog logs. Alternatively, other mechanisms can be used to indicate network configuration errors. This prevents network devices from learning incorrect encapsulation information due to network configuration errors.

[0275] In this embodiment of the application, the first message includes an IPv6 header and an SRH, and the first encapsulation information includes the information indicated by the IPv6 header and the information indicated by the SRH.

[0276] In this embodiment of the application, the first message is a specified protocol message; or, the first message is a BFD message.

[0277] The first message may also include a first DOH, which carries notification information; or, the first message may also include a first SRH, which includes a first TLV structure, which carries notification information.

[0278] Optionally, the first DOH can be a newly defined DOH extension header (which may be called SRv6-SFC-AdvertisingOption). The first DOH is encapsulated in the outer layer of the SRH, meaning that the first DOH needs to be processed by each endpoint node indicated by the segment list included in the SRH.

[0279] like Figure 3As shown, when the first message is a specified protocol message, the specified protocol message includes: an IPv6 header, a first DOH, and an SRH. The first DOH carries advertisement information, and the SRH carries a list of bearer segments.

[0280] When the first message is a BFD message, the BFD message includes: an IPv6 header, a first DOH, an SRH, and a BFD payload. The first DOH carries advertisement information, the SRH contains a list of bearer segments, and the BFD payload carries BFD information.

[0281] The IPv6 header and SRH are set according to the existing SRv6 related protocols, the first DOH is set according to the existing DOH related protocols, and each header includes a Next Header field to indicate the next adjacent header.

[0282] like Figure 4 As shown, when the first message is a specified protocol message, the specified protocol message includes: an IPv6 header and a first SRH, the first SRH including a first TLV structure. The first SRH also carries a segment list, and the first TLV structure carries advertisement information.

[0283] When the first message is a BFD message, the BFD message includes: an IPv6 header, a first SRH, and a BFD payload. The first SRH includes a TLV structure and also carries a segment list. The first TLV structure carries advertisement information, and the BFD payload carries BFD information.

[0284] The IPv6 header and other fields of the first SRH are set according to the existing SRv6 related protocols; each header includes a NextHeader field to indicate the next adjacent header.

[0285] In this embodiment of the application, the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH. The information indicated by the IPv6 header includes, but is not limited to, fields such as source address, destination address, Hoplimit, and FlowLabel; the information indicated by the SRH header includes, but is not limited to, fields such as segment list, segment left, Last Entry, and Flags.

[0286] The following is an explanation of the announcement information.

[0287] like Figure 5 As shown, Figure 5 This is a schematic diagram of the notification information format provided in the embodiments of this application.

[0288] The notification information includes the Flags field, Sequence field, LifeTime field, and Headend IPv6Addr field.

[0289] The Flags field consists of 16 bits, with two bits used to carry the first indication information (Bit0) and the second indication information (Bit1) respectively. The remaining bits are reserved and will be defined later.

[0290] If Bit0 is set (i.e., its value is 1), it indicates a deletion operation.

[0291] If Bit0 is not set, i.e., its value is 0, it indicates an update operation.

[0292] If Bit1 is set (i.e., its value is 1), it indicates that a response message needs to be sent back to the head node.

[0293] The Sequence field consists of 16 bits and is used to carry the sequence number. When the head node sends a message carrying announcement information, if the path information indicated by the SRv6 policy changes, the value of the Sequence field will increase.

[0294] The LifeTime field consists of 32 bits and is used to carry the lifetime of the encapsulated information.

[0295] LifeTime refers to the second survival time mentioned above, measured in seconds or milliseconds.

[0296] The Headend IPv6Addr field consists of 128 bits and is used to carry the headend address.

[0297] In this embodiment of the application, after the data plane of the network device receives the first packet, it obtains the first SID from the destination address field of the IPv6 header. The type of the first SID can be End.AD.

[0298] The data plane identifies whether the first SID is a locally configured SID. If so, it checks whether the first message contains announcement information. If it does, it copies the first message and sends the copied first message to the control panel. Simultaneously, the data plane forwards the first message according to the forwarding method specified in the existing SRv6 protocol.

[0299] In this embodiment of the application, the first cache item also includes third encapsulation information. The third encapsulation information and the second encapsulation information contain the same content. That is, after the control plane learns the encapsulation information based on the received message, it sends the learned encapsulation information to the data plane. Therefore, the encapsulation information stored by the control plane and the data plane contains the same content.

[0300] Before controlling the transmission of the first encapsulation information to the data plane, the method further includes: determining whether the third encapsulation information is the same as the first encapsulation information.

[0301] If they are different, the third encapsulation information is updated to the first encapsulation information, and the first SID and the first encapsulation information are sent to the data plane in S202 above.

[0302] If the control plane determines that the second head node address included in the first cache entry is the same as the first head node address, and the third encapsulation information is different from the first encapsulation information, it indicates that the path information indicated by the SRv6 policy of the head node has changed. Therefore, the control plane can update the third encapsulation information in the first cache entry to the first encapsulation information and send the first SID and the first encapsulation information to the data plane.

[0303] In one implementation, the control plane can determine whether the third encapsulation information and the first encapsulation information are the same by comparing the contents of the third encapsulation information and the first encapsulation information.

[0304] In another implementation, the control plane can also determine that the third encapsulation information is different from the first encapsulation information by comparing whether the sequence number cached in the first cache entry is the same as the sequence number included in the announcement. If they are different, the control plane can determine that the third encapsulation information is different from the first encapsulation information.

[0305] In another embodiment of this application, the notification information further includes first indication information, a first sequence number, and a first time-to-live. After receiving the first message sent by the data plane of the network device in S201 above, the method further includes:

[0306] If the value of the first indication information is the first value (0), then determine whether a first cache entry associated with the first SID exists locally. The first indication information is... Figure 5 If Bit0 in the Flags field is not set, it indicates an update operation.

[0307] If it does not exist, a second cache entry associated with the first SID is created. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information. The first SID, the first sequence number, and the first encapsulation information are sent to the data plane.

[0308] If it exists, the timestamp included in the first cache item is updated to the current time, and the method for updating the third encapsulation information and the second encapsulation information described in the above embodiments is executed.

[0309] The first cache entry also includes a second lifetime, which is obtained by the control plane from the announcement information of the received historical messages, that is, the value of the LifeTime field included in the announcement information.

[0310] The first cache entry has an aging mechanism. If it is determined from the timestamp of the first cache entry that the first cache entry has not been updated within the second lifetime, the first cache entry is deleted. The first SID is sent to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0311] If the timestamp included in the first cached entry is not updated within the second lifetime, it indicates that the network device did not receive a message carrying announcement information from the header node within the second lifetime. Therefore, the control plane can delete the first cached entry and send the first SID to the data plane, causing the data plane to delete the encapsulation information associated with the first SID. This ensures that the first cached entry does not occupy storage space in the control and data planes after aging, saving storage space.

[0312] The above embodiments describe the operation of updating encapsulation information. In another case, the head node can also actively revoke the encapsulation information that the network device has learned.

[0313] Optionally, after receiving the first message sent by the data plane of the network device in S201, the method further includes:

[0314] If the value of the first indication information is the second value (1), then it is determined whether a third cache entry associated with the first SID exists locally. The third cache entry includes third encapsulation information and the third head node address. The first indication information is... Figure 5 If Bit0 in the Flags field is set, it indicates a deletion operation.

[0315] If it exists, and the third head node address is the same as the first head node address, then the third cache entry is deleted; the first SID is sent to the data plane so that the data plane deletes the encapsulation information associated with the first SID. Optionally, if the third head node address is different from the first head node address, the first packet can be discarded.

[0316] The head node can control the network device's control plane and data plane to delete the third encapsulation information through announcement information. That is, the head node can flexibly control the deletion of encapsulation information, and can quickly update it after the service chain path changes. It also avoids the network device's control plane and data plane from storing encapsulation information that is no longer used, and further avoids the network device from incorrectly encapsulating the packets processed by the SF node.

[0317] In another embodiment of this application, the above-mentioned notification information further includes second instruction information, wherein the value of the second instruction information is a second value (i.e., Figure 5 If Bit1 in the Flags field is set, a second message is sent to the first head node indicated by the first head node address. The second message includes the processing result of the control over the first encapsulated information.

[0318] Optionally, after determining that the control plane and data plane have successfully learned the encapsulation information carried in the first message, the control plane may send a second message to the first head node. In this case, the processing result is that the learning is successful.

[0319] Alternatively, after determining that the control plane and data plane have deleted the locally stored encapsulation information, the control plane can send a second message to the first head node. In this case, the processing result is that the deletion was successful.

[0320] By sending the processing results of the encapsulation information to the first head node, the head node can obtain the status of the network device learning the encapsulation information in a timely manner.

[0321] This application also provides a message processing method, which is applied to the data plane of a network device, such as... Figure 6 As shown, the method includes:

[0322] S601. Receive the first message, which includes the first SID, the first encapsulation information and the announcement information, including the first head node address.

[0323] The content of the first message can be referred to the relevant description in the above embodiments, and will not be repeated here.

[0324] S602. If the first SID is the locally configured proxy SID, then send the copied first message to the control plane of the network device.

[0325] In this embodiment, the first message further includes a first SRH, which includes a first segment list used to indicate a forwarding path. After receiving the first message, the control plane can copy the first message, send the copied first message to the control plane, and continue forwarding the first message on the forwarding path.

[0326] S603: Receive the first SID and first encapsulation information sent by the control plane, and use the first encapsulation information to update the second encapsulation information associated with the first SID stored locally.

[0327] The first SID and the first encapsulation information are sent by the control plane when it determines that a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is the same as the first head node address.

[0328] In this embodiment, the data plane of the network device receives a first packet, which includes a first SID, first encapsulation information, and announcement information. The announcement information includes a first head node address. If the first SID is a locally configured proxy SID, a copy of the first packet is sent to the control plane. Upon receiving the first packet, if the control plane determines that a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, it sends the first encapsulation information to the data plane. The data plane then uses the first encapsulation information to update the second encapsulation information associated with the first SID stored locally. Therefore, in this embodiment, the data plane sends a copy of the first packet to the control plane, which learns the encapsulation information, reducing the requirements on the data plane and improving availability. The first SID and first encapsulation information are sent by the control plane when it determines that a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address. This avoids the data plane learning incorrect encapsulation information, thus preventing unclear forwarding paths for service packets processed by the SF node, and avoiding the problem of potentially incorrect paths.

[0329] In another embodiment of this application, in order to avoid the data plane repeatedly sending messages with the same encapsulation information to the control plane, the announcement information included in the first message also includes a first sequence number, and the data plane also correspondingly stores a first SID, a second head node address, a second sequence number, and second encapsulation information.

[0330] In the above S602, sending the copied first message to the control plane of the network device can be specifically implemented as follows: if the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or there is no encapsulation information associated with the first SID locally, then the copied first message is sent to the control plane.

[0331] Since the sequence number in the notification information increases as the encapsulation information is updated, if the first sequence number included in the notification information is different from the second sequence number recorded locally, it means that the encapsulation information carried by the first message has been updated. In this case, the data plane can send a copy of the first message to the control plane to trigger the control plane to learn the updated encapsulation information.

[0332] Conversely, if the first sequence number is the same as the second sequence number, the data plane does not need to send the copied first message to the control plane, which can avoid the protocol messages being frequently sent to the control plane and affecting the CPU's processing performance.

[0333] Optionally, if the first sequence number is the same as the second sequence number, the data plane can record the timestamp of the first message received so that the controller can query the timestamp and use the timestamp to update the timestamp in the cache entry, thereby accurately performing the aging operation according to the lifespan recorded in the cache entry.

[0334] If the data plane determines that the address of the first head node is different from the address of the second head node recorded locally, the copied first message must be reported to the control plane so that the control plane can send a network configuration error message to the management platform, thus preventing the control plane and data plane from using incorrect encapsulation information.

[0335] If the data plane does not have encapsulation information associated with the first SID locally, the copied first packet needs to be reported to the control plane. The control plane then learns the encapsulation information associated with the first SID and triggers the data plane to learn the encapsulation information associated with the first SID. This allows the subsequent data plane to encapsulate the packets processed by the SF node based on the learned encapsulation information, so that the packets processed by the SF node can be forwarded correctly.

[0336] In this embodiment of the application, the data plane can also receive the second SID cached by the control plane and the third encapsulation information associated with the second SID, and cache the second SID and the third encapsulation information.

[0337] If the data plane receives a message carrying the second SID and third encapsulation information, and if the third encapsulation information associated with the second SID does not exist locally, it copies the message and sends it to the control plane. If the control plane determines that it does not store the cache entry corresponding to the second SID locally, it caches the third encapsulation information corresponding to the second SID and sends the second SID and third encapsulation information to the data plane, thereby enabling the data plane to store the second SID and third encapsulation information.

[0338] This application embodiment also provides a message processing method, which is applied to a first head node. The method includes: sending a first message on a forwarding path indicated by an SRv6 policy. The first message includes a first SID, first encapsulation information, and announcement information. The announcement information includes the address of the first head node.

[0339] The notification information is used to enable the data plane of the network device that receives the first message to send a copy of the first message to the control plane of the network device after determining that the first SID is the locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information.

[0340] The content of the first message can be referred to the relevant description in the above embodiments, and will not be repeated here.

[0341] In this embodiment, the first head node sends a first packet on the forwarding path indicated by the SRv6 policy. The first packet includes a first SID, first encapsulation information, and announcement information. The announcement information includes the address of the first head node. This announcement information is used to instruct the data plane of the network device receiving the first packet, after determining that the first SID is a locally configured proxy SID, to send a copied first packet to the control plane of the network device, and to receive the first encapsulation information sent by the control plane. The data plane then uses the first encapsulation information to update the locally cached second encapsulation information. Therefore, in this embodiment, the data plane sends the copied first packet to the control plane, which learns the encapsulation information based on the announcement information sent by the first head node. This reduces the requirements on the data plane and improves availability. The data plane receiving the first encapsulation information from the control plane and using it to update the locally cached second encapsulation information avoids the data plane learning incorrect encapsulation information, thus preventing the forwarding path of the service packets processed by the SF node from being unclear and potentially leading to incorrect paths.

[0342] In another embodiment of this application, the method can be pre-configured before sending the first packet on the forwarding path indicated by the SRv6 policy, such as... Figure 7 As shown, the method includes the following steps:

[0343] S701 receives a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes an SRv6 policy.

[0344] The SRv6 policy includes a forwarding path indicated by a segment list, where at least one segment in the segment list has an SID of type End.AD.

[0345] The first and second configuration commands can be issued through the controller or through the command line.

[0346] S702. Activate the notification function according to the second configuration instruction.

[0347] Optionally, after receiving the first configuration instruction and the second configuration instruction, the head node may create an announcement instance and bind the announcement instance to the SRv6 policy.

[0348] Then, based on the notification instance, the type of the first message can be determined, and the first notification information can be generated. Based on the SRv6 policy and in accordance with the SRv6 related protocols, an SRH can be generated, and then the first message can be generated according to the type of the first message, including the SRH.

[0349] The announcement examples include the header node address, time to live, message sending interval, whether the network device responds to the message, and message type.

[0350] If the advertisement instance is not configured with a header node address, the header node will use the IPv6 source address by default when adding SRv6 encapsulation to the packet.

[0351] The message transmission interval is the time interval at which the head node sends a message with announcement information, and the unit can be seconds.

[0352] The LifeTime mentioned in the above embodiments can optionally be three times the message transmission time interval.

[0353] The message type can be a specified protocol message or a BFD message.

[0354] S703. Under the notification function, send the first message on the forwarding path indicated by the SRv6 policy.

[0355] Optionally, the head node may send the first message on the forwarding path indicated by the SRv6 policy according to the message sending time interval included in the announcement instance.

[0356] In addition, since the tail node of the forwarding path does not act as an SFF node at the same time, it does not need to process the announcement information. Therefore, after receiving the first message of the specified protocol, the tail node can discard the first message to prevent the tail node from forwarding the first message of the specified protocol outside the SRv6 domain.

[0357] Optionally, the first head node can also receive a second message sent by the network device. The second message includes the processing result of the network device's control interface on the first encapsulation information, so that the head node can determine that the service chain deployment is complete after receiving the successful processing results of the learning encapsulation information of all SFF nodes on the forwarding path. Alternatively, the head node can present the processing results of each SFF node on the current service chain path based on the received processing results.

[0358] In the embodiments of this application, after receiving the first configuration instruction and the second configuration instruction, the head node starts the announcement function and sends the first packet on the forwarding path indicated by the SRv6 policy. This allows the network device's data plane to send a copied first packet to the network device's control plane after determining that the first SID is the locally configured proxy SID, and to receive the first encapsulation information sent by the control plane. The control plane then updates the locally cached second encapsulation information using the first encapsulation information. By having the control plane learn the encapsulation information, the complexity of the data plane can be reduced, and fault tolerance, control, and security capabilities can be increased. This avoids the problem of the data plane learning incorrect encapsulation information due to network configuration errors, thereby avoiding the problem of unclear forwarding paths for service packets processed by the SF node, and the possibility of incorrect paths.

[0359] Based on the same inventive concept, embodiments of this application provide a message processing apparatus, which is applied to the control plane of a network device, such as... Figure 8 As shown, the device includes:

[0360] The receiving module 801 is used to receive a first message sent by the data plane of the network device. The first message includes a first SID, first encapsulation information and announcement information. The announcement information includes a first head node address.

[0361] The sending module 802 is used to send the first SID and the first encapsulation information to the data plane if a first cache entry associated with the first SID exists locally and the second head node address included in the first cache entry is the same as the first head node address, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information.

[0362] Optionally, the first cache entry further includes third encapsulation information, the third encapsulation information and the second encapsulation information comprising the same content; the device further includes:

[0363] The judgment module is used to determine whether the third encapsulation information is the same as the first encapsulation information;

[0364] The update module is used to update the third encapsulation information to the first encapsulation information if the judgment result of the judgment module is different.

[0365] Optionally, the sending module is also used for:

[0366] If a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address, then a network configuration error message is sent to the management platform.

[0367] Optionally, the notification information may also include first instruction information, a first serial number, and a first survival time;

[0368] The device also includes:

[0369] The judgment module is used to determine whether a first cache entry associated with the first SID exists locally if the value of the first indication information is the first value.

[0370] A module is established to create a second cache entry associated with the first SID if the judgment result of the judgment module is that it does not exist. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information.

[0371] The sending module 802 is also used to send the first SID, the first serial number and the first encapsulation information to the data plane.

[0372] Optionally, the first cached item may also include a timestamp;

[0373] The update module is also used for:

[0374] If the judgment module determines that the time exists, the timestamp is updated to the current time.

[0375] Optionally, the first cache entry further includes a second time-to-live; the device also includes:

[0376] The deletion module is used to delete the first cache item if it is determined from the timestamp of the first cache item that the first cache item has not been updated within the second lifetime.

[0377] The sending module 802 is also used to send the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0378] Optionally, the device further includes: a deletion module;

[0379] The judgment module is also used to determine whether there is a third cache entry associated with the first SID if the value of the first indication information is the second value. The third cache entry includes the third encapsulation information and the third head node address.

[0380] The deletion module is used to delete the third cache item if the judgment module determines that the item exists and the address of the third head node is the same as the address of the first head node.

[0381] The sending module 802 is also used to send the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

[0382] Optionally, the notification information also includes second instruction information; the sending module 802 is further configured to:

[0383] If the value of the second indication information is the second value, then a second message is sent to the first head node indicated by the first head node address. The second message includes the processing result of the control face on the first encapsulated information.

[0384] Optionally, the first message is a specified protocol message; or, the first message is a BFD message;

[0385] The first message may also include a first DOH, which carries notification information; or, the first message may also include a first SRH, which includes a first TLV structure, which carries notification information.

[0386] Optionally, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0387] The flag field consists of 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0388] The serial number field consists of 16 bits and is used to carry the serial number;

[0389] The time-to-live field consists of 32 bits and is used to carry the time-to-live information of the encapsulated information.

[0390] The head node address field consists of 128 bits and is used to carry the head node address.

[0391] Optionally, the first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

[0392] This application provides a message processing apparatus, which is applied to the data plane of a network device, such as... Figure 9 As shown, the device includes:

[0393] The receiving module 901 is used to receive a first message, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address;

[0394] The sending module 902 is used to send a copied first message to the control plane of the network device if the first SID is a locally configured proxy SID.

[0395] The receiving module 901 is also used to receive the first SID and the first encapsulation information sent by the control plane, and to update the second encapsulation information associated with the first SID stored locally using the first encapsulation information;

[0396] The first SID and the first encapsulation information are sent by the control plane when it determines that a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is the same as the first head node address.

[0397] Optionally, the notification information may also include a first serial number;

[0398] The sending module 902 is specifically used for:

[0399] If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or there is no encapsulation information associated with the first SID locally, then a copied first message is sent to the control plane.

[0400] Optionally, the device further includes: a cache module;

[0401] The receiving module 901 is also used to receive the second SID after the control plane buffer and the third encapsulation information associated with the second SID;

[0402] The caching module is used to cache the second SID and the third encapsulation information.

[0403] Optionally, the first message also includes a first SRH, which includes a first segment list. The sending module is further used for:

[0404] Forward the first message along the forwarding path.

[0405] This application provides a message processing apparatus, which is applied to a first head node, and the apparatus includes:

[0406] The sending module is used to send the first message on the forwarding path indicated by the SRv6 policy;

[0407] The first message includes the first SID, the first encapsulation information, and the announcement information, which includes the first head node address.

[0408] The notification information is used to enable the data plane of the network device that receives the first message to send a copy of the first message to the control plane of the network device after determining that the first SID is the locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information.

[0409] Optionally, the device further includes:

[0410] The receiving module is used to receive a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes an SRv6 policy.

[0411] The startup module is used to start the notification function according to the second configuration instruction;

[0412] The sending module is specifically used for:

[0413] Under the notification function, the first message is sent on the forwarding path indicated by the SRv6 policy.

[0414] Optionally, the device further includes:

[0415] The creation module is used to create advertisement instances and bind the advertisement instances to SRv6 policies; the advertisement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type;

[0416] Generate modules for:

[0417] Based on the notification example, determine the type of the first message and generate the first notification information;

[0418] SRH generation based on SRv6 strategy;

[0419] Generate a first message according to the type of the first message. The first message includes an SRH.

[0420] The sending module is specifically used for:

[0421] The first message is sent on the forwarding path indicated by the SRv6 policy according to the message sending interval.

[0422] Optionally, the type of the first message is a specified protocol message or a BFD message;

[0423] When the type of the first message is a specified protocol message, the first message includes an IPv6 header, DOH, and SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, DOH, SRH, and BFD payload.

[0424] Among them, the DOH carries notification data; the BFD payload carries BFD information;

[0425] or,

[0426] When the type of the first message is a specified protocol message, the first message includes an IPv6 header and an SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, an SRH, and a BFD payload.

[0427] SRH includes a TLV structure, which carries notification data; and a BFD load, which carries BFD information.

[0428] Optionally, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0429] The flag field consists of 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0430] When the first indication information takes the first value, the indication is to update the cache item; when the first indication information takes the second value, the indication is to delete the cache item.

[0431] When the second indication information is set to the second value, the network device is instructed to respond to the message; when the second indication information is set to the first value, the network device is instructed not to respond to the message.

[0432] The sequence number field includes 16 bits to carry the sequence number, which indicates whether the forwarding path indicated by the SRv6 policy has changed;

[0433] The time-to-live field consists of 32 bits and is used to carry the time-to-live information of the encapsulated information.

[0434] The head node address field consists of 128 bits and is used to carry the head node address.

[0435] Optionally, the receiving module is also used for:

[0436] Receive a second message sent by the network device, the second message including the processing result of the network device's control over the first encapsulated information.

[0437] This application provides a network device, such as... Figure 10 As shown, the network devices include:

[0438] Processor 1001; Transceiver 1004; Communication bus 1003;

[0439] Machine-readable storage medium 1002 stores machine-executable instructions that can be executed by processor 1001; the machine-executable instructions cause processor 1001 to perform the following steps:

[0440] The transceiver 1004 receives a first message sent by the data plane of the network device. The first message includes a first SID, first encapsulation information and announcement information. The announcement information includes a first head node address.

[0441] If a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, then the first SID and first encapsulation information are sent to the data plane through transceiver 1004, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information.

[0442] Optionally, the first cache entry also includes third encapsulation information, which contains the same content as the second encapsulation information; the machine-executable instructions further cause the processor 1001 to perform the following steps:

[0443] Determine whether the third encapsulation information is the same as the first encapsulation information;

[0444] If they are different, update the third encapsulation information to the first encapsulation information.

[0445] Optionally, the machine-executable instructions also cause the processor 1001 to perform the following steps:

[0446] If a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is different from the first head node address, then a network configuration error message is sent to the management platform through transceiver 1004.

[0447] Optionally, the notification information may also include first instruction information, a first serial number, and a first survival time;

[0448] The machine-executable instructions also cause the processor 1001 to perform the following steps:

[0449] If the value of the first indication information is the first value, then determine whether there is a first cache entry associated with the first SID locally;

[0450] If it does not exist, a second cache entry is created associated with the first SID. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information.

[0451] The transceiver 1004 sends the first SID, first serial number, and first encapsulation information to the data plane.

[0452] Optionally, the first cached item may also include a timestamp;

[0453] The machine-executable instructions also cause the processor 1001 to perform the following steps:

[0454] If it exists, update the timestamp to the current time.

[0455] Optionally, the first cache entry also includes a second time-to-live; the machine-executable instructions further cause the processor 1001 to perform the following steps:

[0456] If the timestamp of the first cached item determines that the first cached item has not been updated within the second lifetime, then the first cached item is deleted.

[0457] The transceiver 1004 sends the first SID to the data plane so that the data plane removes the encapsulation information associated with the first SID.

[0458] Optionally, the machine-executable instructions also cause the processor 1001 to perform the following steps:

[0459] If the value of the first indication information is the second value, then determine whether there is a third cache entry associated with the first SID locally. The third cache entry includes the third encapsulation information and the third head node address.

[0460] If it exists, and the address of the third head node is the same as the address of the first head node, then delete the third cache entry;

[0461] The transceiver 1004 sends the first SID to the data plane so that the data plane removes the encapsulation information associated with the first SID.

[0462] Optionally, the notification information also includes second instruction information; the machine-executable instructions further cause the processor 1001 to perform the following steps:

[0463] If the value of the second indication information is the second value, then the transceiver 1004 sends a second message to the first head node indicated by the first head node address. The second message includes the processing result of the control face on the first encapsulation information.

[0464] Optionally, the first message is a specified protocol message; or, the first message is a BFD message;

[0465] The first message may also include a first DOH, which carries notification information; or, the first message may also include a first SRH, which includes a first TLV structure, which carries notification information.

[0466] Optionally, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0467] The flag field consists of 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0468] The serial number field consists of 16 bits and is used to carry the serial number;

[0469] The time-to-live field consists of 32 bits and is used to carry the time-to-live information of the encapsulated information.

[0470] The head node address field consists of 128 bits and is used to carry the head node address.

[0471] In one possible implementation, the first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

[0472] This application provides a network device, such as... Figure 11 As shown, the network device includes:

[0473] Processor 1101; Transceiver 1104; Communication bus 1103;

[0474] Machine-readable storage medium 1102 stores machine-executable instructions that can be executed by a processor; the machine-executable instructions cause processor 1101 to perform the following steps:

[0475] The transceiver 1104 receives a first message, which includes a first SID, first encapsulation information and announcement information, and the announcement information includes a first head node address.

[0476] If the first SID is the locally configured proxy SID, then the replicated first message is sent to the control plane of the network device through transceiver 1104;

[0477] The transceiver 1104 receives the first SID and first encapsulation information sent by the control plane and uses the first encapsulation information to update the second encapsulation information associated with the first SID stored locally.

[0478] The first SID and the first encapsulation information are sent by the control plane when it determines that a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is the same as the first head node address.

[0479] Optionally, the notification information may also include a first serial number;

[0480] The machine-executable instructions also cause the processor 1101 to perform the following steps:

[0481] If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or there is no encapsulation information associated with the first SID locally, then the transceiver 1104 sends the copied first message to the control plane.

[0482] Optionally, the machine-executable instructions also cause the processor 1101 to perform the following steps:

[0483] The transceiver 1104 receives the second SID after the control plane buffer and the third encapsulation information associated with the second SID.

[0484] Cache the second SID and the third encapsulation information.

[0485] Optionally, the first message also includes a first SRH, which includes a first segment list indicating a forwarding path; the machine-executable instructions further cause the processor 1101 to perform the following steps:

[0486] The first message is forwarded on the forwarding path via transceiver 1104.

[0487] This application provides a header node, such as... Figure 12 As shown, the head node includes:

[0488] Processor 1201; Transceiver 1204; Communication bus 1203;

[0489] Machine-readable storage medium 1202 stores machine-executable instructions that can be executed by processor 1201; the machine-executable instructions cause processor 1201 to perform the following steps:

[0490] The first message is sent via transceiver 1204 on the forwarding path indicated by the SRv6 policy;

[0491] The first message includes the first SID, the first encapsulation information, and the announcement information, which includes the first head node address.

[0492] The notification information is used to enable the data plane of the network device that receives the first message to send a copy of the first message to the control plane of the network device after determining that the first SID is the locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information.

[0493] Optionally, the machine-executable instructions also cause the processor 1201 to perform the following steps:

[0494] The transceiver 1204 receives a first configuration instruction and a second configuration instruction, the first configuration instruction including the SRv6 policy;

[0495] The notification function is activated according to the second configuration instruction;

[0496] Under the notification function, the first message is sent via transceiver 1204 on the forwarding path indicated by the SRv6 policy.

[0497] Optionally, the machine-executable instructions also cause the processor 1201 to perform the following steps:

[0498] Create an advertisement instance and bind the advertisement instance to the SRv6 policy; the advertisement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type;

[0499] Based on the notification example, determine the type of the first message and generate the first notification information;

[0500] SRH generation based on SRv6 strategy;

[0501] Generate a first message according to the type of the first message. The first message includes an SRH.

[0502] According to the message transmission interval, the first message is sent via transceiver 1204 on the forwarding path indicated by the SRv6 policy.

[0503] Optionally, the type of the first message is a specified protocol message or a BFD message;

[0504] When the type of the first message is a specified protocol message, the first message includes an IPv6 header, DOH, and SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, DOH, SRH, and BFD payload.

[0505] Among them, the DOH carries notification data; the BFD payload carries BFD information;

[0506] or,

[0507] When the type of the first message is a specified protocol message, the first message includes an IPv6 header and an SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, an SRH, and a BFD payload.

[0508] SRH includes a TLV structure, which carries notification data; and a BFD load, which carries BFD information.

[0509] Optionally, the notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field;

[0510] The flag field consists of 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved.

[0511] When the first indication information takes the first value, the indication is to update the cache item; when the first indication information takes the second value, the indication is to delete the cache item.

[0512] When the second indication information is set to the second value, the network device is instructed to respond to the message; when the second indication information is set to the first value, the network device is instructed not to respond to the message.

[0513] The sequence number field includes 16 bits to carry the sequence number, which indicates whether the forwarding path indicated by the SRv6 policy has changed;

[0514] The time-to-live field consists of 32 bits and is used to carry the time-to-live information of the encapsulated information.

[0515] The head node address field consists of 128 bits and is used to carry the head node address.

[0516] Optionally, the machine-executable instructions also cause the processor 1201 to perform the following steps:

[0517] The transceiver 1204 receives a second message sent by the network device, the second message including the processing result of the network device's control surface on the first encapsulated information.

[0518] exist Figure 10 , 11 In addition to section 12, a communication bus may also be included. The processor, machine-readable storage medium, and transceiver communicate with each other via the communication bus. This communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0519] A transceiver can be a wireless communication module that interacts with other devices under the control of a processor.

[0520] Machine-readable storage media may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Alternatively, machine-readable storage media may also be at least one storage device located remotely from the aforementioned processor.

[0521] The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0522] Based on the same inventive concept, and according to the message processing method provided in the above embodiments of this application, this application also provides a machine-readable storage medium storing machine-executable instructions that can be executed by a processor. The processor is prompted by the machine-executable instructions to implement the steps of any of the above message processing methods.

[0523] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform the steps of any of the message processing methods described in the above embodiments.

[0524] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0525] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A message processing method, characterized in that, The method is applied to the control plane of a network device, and the method includes: Receive a first message sent by the data plane of the network device, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address; If a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, then the first SID and the first encapsulation information are sent to the data plane so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information. If a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address, then a network configuration error message is sent to the management platform.

2. The method according to claim 1, characterized in that, The first cache entry further includes third encapsulation information, the third encapsulation information and the second encapsulation information having the same content; before sending the first encapsulation information to the data plane, the method further includes: Determine whether the third encapsulation information is the same as the first encapsulation information; If they are different, the third encapsulation information is updated to the first encapsulation information.

3. The method according to claim 1, characterized in that, The notification information also includes first instruction information, first serial number, and first survival time; After receiving the first message sent by the data plane of the network device, the method further includes: If the value of the first indication information is the first value, then determine whether there is a first cache entry associated with the first SID locally; If it does not exist, a second cache entry is created associated with the first SID. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information. Send the first SID, the first serial number, and the first encapsulation information to the data plane.

4. The method according to claim 3, characterized in that, The first cache item also includes a timestamp; After determining whether a first cached entry associated with the first SID exists locally, the method further includes: If it exists, then update the timestamp to the current time.

5. The method according to claim 4, characterized in that, The first cached item further includes a second time-to-live; the method further includes: If it is determined from the timestamp of the first cached item that the first cached item has not been updated within the second lifetime, then the first cached item is deleted; The first SID is sent to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

6. The method according to claim 3, characterized in that, After receiving the first message sent by the data plane of the network device, the method further includes: If the value of the first indication information is the second value, then determine whether there is a third cache entry associated with the first SID locally. The third cache entry includes third encapsulation information and a third head node address. If it exists, and the address of the third head node is the same as the address of the first head node, then the third cache entry is deleted; The first SID is sent to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

7. The method according to any one of claims 1-5, characterized in that, The notification information also includes second instruction information; the method further includes: If the value of the second indication information is the second value, then a second message is sent to the first head node indicated by the first head node address. The second message includes the processing result of the control surface on the first encapsulation information.

8. The method according to claim 1, characterized in that, The first message is a specified protocol message; or, the first message is a BFD message; The first message may further include a first DOH, which carries the notification information; or, the first message may further include a first SRH, which includes a first TLV structure, which carries the notification information.

9. The method according to claim 1, characterized in that, The notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field; The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved. The serial number field includes 16 bits and is used to carry the serial number; The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information. The head node address field includes 128 bits and is used to carry the head node address.

10. The method according to claim 1, characterized in that, The first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

11. A message processing method, characterized in that, The method is applied to the data plane of a network device, and the method includes: Receive a first message, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address; If the first SID is a locally configured proxy SID, then a copied first message is sent to the control plane of the network device; Receive the first SID and first encapsulation information sent by the control plane, and update the second encapsulation information associated with the first SID stored locally using the first encapsulation information; Wherein, the first SID and the first encapsulation information are sent by the control plane when it determines that a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is the same as the first head node address; the copied first message is used to instruct the control plane to send a network configuration error prompt to the management platform if a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address.

12. The method according to claim 11, characterized in that, The notification information also includes a first serial number; Sending the copied first message to the control plane of the network device includes: If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or the encapsulation information associated with the first SID does not exist locally, then a copied first message is sent to the control plane.

13. The method according to claim 11 or 12, characterized in that, The method further includes: Receive the second SID after the control plane cache and the third encapsulation information associated with the second SID; The second SID and the third encapsulation information are cached.

14. The method according to claim 11, characterized in that, The first message further includes a first SRH, the first SRH including a first segment list, the first segment list being used to indicate a forwarding path; after receiving the first message, the method further includes: The first message is forwarded on the forwarding path.

15. A message processing method, characterized in that, The method is applied to the first head node, and the method includes: Send the first message on the forwarding path indicated by the SRv6 policy; The first message includes a first SID, first encapsulation information, and announcement information, wherein the announcement information includes the first head node address; The notification information is used to enable the data plane of the network device that receives the first message to send a copied first message to the control plane of the network device after determining that the first SID is a locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information; the copied first message is used to instruct the control plane to send a network configuration error prompt to the management platform if a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is different from the first head node address.

16. The method according to claim 15, characterized in that, Before sending the first packet on the forwarding path indicated by the SRv6 policy, the method further includes: Receive a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes the SRv6 policy; The notification function is activated according to the second configuration instruction; Sending the first packet on the forwarding path indicated by the SRv6 policy includes: Under the notification function, the first message is sent on the forwarding path indicated by the SRv6 policy.

17. The method according to claim 16, characterized in that, After receiving the first configuration instruction and the second configuration instruction, the method further includes: Create an announcement instance and bind the announcement instance to the SRv6 policy; wherein, the announcement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type; Based on the notification instance, determine the type of the first message and generate the notification information; SRH is generated based on the SRv6 strategy; The first message is generated according to the type of the first message, and the first message includes the SRH; Sending the first packet on the forwarding path indicated by the SRv6 policy includes: The first message is sent on the forwarding path indicated by the SRv6 policy according to the message sending time interval.

18. The method according to claim 17, characterized in that, The first message is of type either a specified protocol message or a BFD message; When the type of the first message is a specified protocol message, the first message includes an IPv6 header, a DOH, and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, a DOH, the SRH, and the BFD payload. Wherein, the DOH carries the notification information; the BFD payload carries the BFD information; or, When the type of the first message is a specified protocol message, the first message includes an IPv6 header and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, the SRH, and the BFD payload. The SRH includes a TLV structure that carries the notification information; the BFD payload carries the BFD information.

19. The method according to any one of claims 15-18, characterized in that, The notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field; The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved. When the first indication information takes the first value, it indicates an update cache item operation; when the first indication information takes the second value, it indicates a delete cache item operation. When the second indication information is set to a second value, the network device is instructed to respond to the message; when the second indication information is set to a first value, the network device is instructed not to respond to the message. The sequence number field includes 16 bits, which are used to carry a sequence number and indicate whether the forwarding path indicated by the SRv6 policy has changed; The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information. The head node address field includes 128 bits and is used to carry the head node address.

20. The method according to claim 15, characterized in that, After sending the first packet on the forwarding path indicated by the SRv6 policy, the method further includes: The network device receives a second message, the second message including the processing result of the network device's control surface on the first encapsulation information.

21. A message processing apparatus, characterized in that, The device is applied to the control plane of a network device, and the device includes: The receiving module is configured to receive a first message sent by the data plane of the network device, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address; The sending module is configured to send the first SID and the first encapsulation information to the data plane if a first cache entry associated with the first SID exists locally and the second head node address included in the first cache entry is the same as the first head node address, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information. The sending module is further configured to send a network configuration error message to the management platform if a first cached item associated with the first SID exists locally, and the second head node address included in the first cached item is different from the first head node address.

22. The apparatus according to claim 21, characterized in that, The first cache entry further includes third encapsulation information, the third encapsulation information and the second encapsulation information comprising the same content; the device further includes: The judgment module is used to determine whether the third encapsulation information is the same as the first encapsulation information; An update module is used to update the third encapsulation information to the first encapsulation information if the judgment result of the judgment module is different.

23. The apparatus according to claim 21, characterized in that, The notification information also includes first instruction information, first serial number, and first survival time; The device further includes: The judgment module is used to determine whether a first cache entry associated with the first SID exists locally if the value of the first indication information is a first value. A module is established to create a second cache entry associated with the first SID if the judgment result of the judgment module is that the SID does not exist. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information. The sending module is further configured to send the first SID, the first serial number, and the first encapsulation information to the data plane.

24. The apparatus according to claim 23, characterized in that, The first cached item further includes a timestamp; the device further includes: An update module is used to update the timestamp to the current time if the judgment result of the judgment module is that it exists.

25. The apparatus according to claim 24, characterized in that, The first cache entry further includes a second time-to-live; the device further includes: The deletion module is used to delete the first cache item if it is determined from the timestamp of the first cache item that the first cache item has not been updated within the second lifetime. The sending module is further configured to send the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

26. The apparatus according to claim 23, characterized in that, The device further includes: a deletion module; The judgment module is further configured to determine whether a third cache entry associated with the first SID exists locally if the value of the first indication information is a second value. The third cache entry includes third encapsulation information and a third head node address. The deletion module is used to delete the third cache item if the judgment result of the judgment module is that it exists and the address of the third head node is the same as the address of the first head node. The sending module is further configured to send the first SID to the data plane, so that the data plane deletes the encapsulation information associated with the first SID.

27. The apparatus according to any one of claims 21-25, characterized in that, The notification information also includes second instruction information; the sending module is further configured to: If the value of the second indication information is the second value, then a second message is sent to the first head node indicated by the first head node address. The second message includes the processing result of the control surface on the first encapsulation information.

28. The apparatus according to claim 21, characterized in that, The first message is a specified protocol message; or, the first message is a BFD message; The first message may further include a first DOH, which carries the notification information; or, the first message may further include a first SRH, which includes a first TLV structure, which carries the notification information.

29. The apparatus according to claim 21, characterized in that, The notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field; The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved. The serial number field includes 16 bits and is used to carry the serial number; The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information. The head node address field includes 128 bits and is used to carry the head node address.

30. The apparatus according to claim 21, characterized in that, The first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

31. A message processing apparatus, characterized in that, The device is applied to the data plane of a network device, and the device includes: A receiving module is configured to receive a first message, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address; The sending module is configured to send a copied first message to the control plane of the network device if the first SID is a locally configured proxy SID. The receiving module is further configured to receive the first SID and the first encapsulation information sent by the control plane, and update the second encapsulation information associated with the first SID stored locally using the first encapsulation information; Wherein, the first SID and the first encapsulation information are sent by the control plane when it determines that a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is the same as the first head node address; the copied first message is used to instruct the control plane to send a network configuration error prompt to the management platform if a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address.

32. The apparatus according to claim 31, characterized in that, The notification information also includes a first serial number; The sending module is specifically used for: If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or the encapsulation information associated with the first SID does not exist locally, then a copied first message is sent to the control plane.

33. The apparatus according to claim 31 or 32, characterized in that, The device further includes: a cache module; The receiving module is also configured to receive the second SID after the control plane cache and the third encapsulation information associated with the second SID; The caching module is used to cache the second SID and the third encapsulation information.

34. The apparatus according to claim 31, characterized in that, The first message further includes a first SRH, the first SRH including a first segment list, the first segment list being used to indicate a forwarding path; the sending module is further configured to: The first message is forwarded on the forwarding path.

35. A message processing apparatus, characterized in that, The device is applied to the first head node, and the device includes: The sending module is used to send the first message on the forwarding path indicated by the SRv6 policy; The first message includes a first SID, first encapsulation information, and announcement information, wherein the announcement information includes the first head node address; The notification information is used to enable the data plane of the network device that receives the first message to send a copied first message to the control plane of the network device after determining that the first SID is a locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information; the copied first message is used to instruct the control plane to send a network configuration error prompt to the management platform if a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is different from the first head node address.

36. The apparatus according to claim 35, characterized in that, The device further includes: A receiving module is configured to receive a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes the SRv6 strategy. The startup module is used to start the notification function according to the second configuration instruction; The sending module is specifically used for: Under the notification function, the first message is sent on the forwarding path indicated by the SRv6 policy.

37. The apparatus according to claim 36, characterized in that, The device further includes: A creation module is used to create an announcement instance and bind the announcement instance to the SRv6 policy; wherein, the announcement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type; A generation module is configured to determine the type of the first message based on the notification instance and generate the notification information; generate an SRH based on the SRv6 policy; and generate the first message according to the type of the first message, wherein the first message includes the SRH. The sending module is specifically used to send the first message on the forwarding path indicated by the SRv6 policy according to the message sending time interval.

38. The apparatus according to claim 37, characterized in that, The first message is of type either a specified protocol message or a BFD message; When the type of the first message is a specified protocol message, the first message includes an IPv6 header, a DOH, and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, a DOH, the SRH, and the BFD payload. Wherein, the DOH carries the notification information; the BFD payload carries the BFD information; or, When the type of the first message is a specified protocol message, the first message includes an IPv6 header and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, the SRH, and the BFD payload. The SRH includes a TLV structure that carries the notification information; the BFD payload carries the BFD information.

39. The apparatus according to any one of claims 35-38, characterized in that, The notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field; The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved. When the first indication information takes the first value, it indicates an update cache item operation; when the first indication information takes the second value, it indicates a delete cache item operation. When the second indication information is set to a second value, the network device is instructed to respond to the message; when the second indication information is set to a first value, the network device is instructed not to respond to the message. The sequence number field includes 16 bits, which are used to carry a sequence number and indicate whether the forwarding path indicated by the SRv6 policy has changed; The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information. The head node address field includes 128 bits and is used to carry the head node address.

40. The apparatus according to claim 35, characterized in that, The device further includes: A receiving module is configured to receive a second message sent by the network device, the second message including the processing result of the network device's control surface on the first encapsulation information.

41. A network device, characterized in that, The network device includes: processor; transceiver; A machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions cause the processor to perform the following steps: The transceiver receives a first message sent by the data plane of the network device. The first message includes a first SID, first encapsulation information, and announcement information. The announcement information includes a first head node address. If a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is the same as the first head node address, then the first SID and the first encapsulation information are sent to the data plane through the transceiver, so that the data plane updates the stored second encapsulation information associated with the first SID to the first encapsulation information. If a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address, then a network configuration error message is sent to the management platform through the transceiver.

42. The network device according to claim 41, characterized in that, The first cache entry also includes third encapsulation information, which contains the same content as the second encapsulation information; the machine-executable instructions further cause the processor to perform the following steps: Determine whether the third encapsulation information is the same as the first encapsulation information; If they are different, the third encapsulation information is updated to the first encapsulation information.

43. The network device according to claim 41, characterized in that, The notification information also includes first instruction information, first serial number, and first survival time; The machine-executable instructions also cause the processor to perform the following steps: If the value of the first indication information is the first value, then determine whether there is a first cache entry associated with the first SID locally; If it does not exist, a second cache entry is created associated with the first SID. The second cache entry includes the first head node address, the first sequence number, the first time to live, and the first encapsulation information. The transceiver sends the first SID, the first serial number, and the first encapsulation information to the data plane.

44. The network device according to claim 43, characterized in that, The first cache item also includes a timestamp; The machine-executable instructions also cause the processor to perform the following steps: If it exists, then update the timestamp to the current time.

45. The network device according to claim 44, characterized in that, The first cache entry also includes a second time-to-live; the machine-executable instructions further cause the processor to perform the following steps: If it is determined from the timestamp of the first cached item that the first cached item has not been updated within the second lifetime, then the first cached item is deleted; The transceiver sends the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

46. ​​The network device according to claim 43, characterized in that, The machine-executable instructions also cause the processor to perform the following steps: If the value of the first indication information is the second value, then determine whether there is a third cache entry associated with the first SID locally. The third cache entry includes third encapsulation information and a third head node address. If it exists, and the address of the third head node is the same as the address of the first head node, then the third cache entry is deleted; The transceiver sends the first SID to the data plane so that the data plane deletes the encapsulation information associated with the first SID.

47. The network device according to any one of claims 41-45, characterized in that, The notification information also includes second instruction information; the machine-executable instructions further cause the processor to perform the following steps: If the value of the second indication information is the second value, then the transceiver sends a second message to the first head node indicated by the first head node address. The second message includes the processing result of the network device's control surface on the first encapsulation information.

48. The network device according to claim 41, characterized in that, The first message is a specified protocol message; or, the first message is a BFD message; The first message may further include a first DOH, which carries the notification information; or, the first message may further include a first SRH, which includes a first TLV structure, which carries the notification information.

49. The network device according to claim 41, characterized in that, The notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field; The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved. The serial number field includes 16 bits and is used to carry the serial number; The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information. The head node address field includes 128 bits and is used to carry the head node address.

50. The network device according to claim 41, characterized in that, The first message includes an IPv6 header and an SRH, and the first encapsulation information includes information indicated by the IPv6 header and information indicated by the SRH.

51. A network device, characterized in that, The network device includes: processor; transceiver; A machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions cause the processor to perform the following steps: The transceiver receives a first message, the first message including a first SID, first encapsulation information and announcement information, the announcement information including a first head node address; If the first SID is a locally configured proxy SID, then the replicated first message is sent to the control plane of the network device through the transceiver; The transceiver receives the first SID and first encapsulation information sent by the control plane, and uses the first encapsulation information to update the second encapsulation information associated with the first SID stored locally. Wherein, the first SID and the first encapsulation information are sent by the control plane when it determines that a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is the same as the first head node address; the copied first message is used to instruct the control plane to send a network configuration error prompt to the management platform if a first cached entry associated with the first SID exists locally, and the second head node address included in the first cached entry is different from the first head node address.

52. The network device according to claim 51, characterized in that, The notification information also includes a first serial number; The machine-executable instructions also cause the processor to perform the following steps: If the first sequence number is different from the second sequence number recorded locally, or the first head node address is different from the second head node address recorded locally, or the encapsulation information associated with the first SID does not exist locally, then the transceiver sends a copied first message to the control plane.

53. The network device according to claim 51 or 52, characterized in that, The machine-executable instructions also cause the processor to perform the following steps: The transceiver receives the second SID cached in the control plane and the third encapsulation information associated with the second SID. The second SID and the third encapsulation information are cached.

54. The network device according to claim 51, characterized in that, The first message also includes a first SRH, which includes a first segment list indicating a forwarding path; the machine-executable instructions further cause the processor to perform the following steps: The transceiver forwards the first message on the forwarding path.

55. A head node, characterized in that, The head node includes: processor; transceiver; A machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the machine-executable instructions cause the processor to perform the following steps: The first message is sent via the transceiver on the forwarding path indicated by the SRv6 policy. The first message includes a first SID, first encapsulation information, and announcement information, wherein the announcement information includes a first head node address; The notification information is used to enable the data plane of the network device that receives the first message to send a copied first message to the control plane of the network device after determining that the first SID is a locally configured proxy SID, and to receive the first encapsulation information sent by the control plane, and to update the second encapsulation information cached locally using the first encapsulation information; the copied first message is used to instruct the control plane to send a network configuration error prompt to the management platform if a first cache entry associated with the first SID exists locally, and the second head node address included in the first cache entry is different from the first head node address.

56. The head node according to claim 55, characterized in that, The machine-executable instructions also cause the processor to perform the following steps: The transceiver receives a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes the SRv6 policy. The notification function is activated according to the second configuration instruction; Under the notification function, the first message is sent via the transceiver on the forwarding path indicated by the SRv6 policy.

57. The head node according to claim 56, characterized in that, The machine-executable instructions also cause the processor to perform the following steps: Create an announcement instance and bind the announcement instance to the SRv6 policy; wherein, the announcement instance includes the header node address, time to live, message sending interval, whether the network device responds to the message, and message type; Based on the notification instance, determine the type of the first message and generate the notification information; SRH is generated based on the SRv6 strategy; The first message is generated according to the type of the first message, and the first message includes the SRH; The first message is sent via the transceiver on the forwarding path indicated by the SRv6 policy according to the message sending time interval.

58. The head node according to claim 57, characterized in that, The first message is of type either a specified protocol message or a BFD message; When the type of the first message is a specified protocol message, the first message includes an IPv6 header, a DOH, and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, a DOH, the SRH, and the BFD payload. Wherein, the DOH carries the notification information; the BFD payload carries the BFD information; or, When the type of the first message is a specified protocol message, the first message includes an IPv6 header and the SRH; when the type of the first message is a BFD message, the first message includes an IPv6 header, the SRH, and the BFD payload. The SRH includes a TLV structure that carries the notification information; the BFD payload carries the BFD information.

59. The head node according to any one of claims 55-58, characterized in that, The notification information includes a flag field, a sequence number field, a time-to-live field, and a head node address field; The flag field comprises 16 bits, of which two bits are used to carry the first indication information and the second indication information respectively, and the remaining bits are reserved. When the first indication information takes the first value, it indicates an update cache item operation; when the first indication information takes the second value, it indicates a delete cache item operation. When the second indication information is set to a second value, the network device is instructed to respond to the message; when the second indication information is set to a first value, the network device is instructed not to respond to the message. The sequence number field includes 16 bits, which are used to carry a sequence number and indicate whether the forwarding path indicated by the SRv6 policy has changed; The time-to-live field includes 32 bits and is used to carry the time-to-live of the encapsulated information. The head node address field includes 128 bits and is used to carry the head node address.

60. The head node according to claim 55, characterized in that, The machine-executable instructions also cause the processor to perform the following steps: The transceiver receives a second message sent by the network device, the second message including the processing result of the network device's control surface on the first encapsulation information.

61. A machine-readable storage medium, characterized in that, The device stores machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of the method described in any one of claims 1-10, 11-14, or 15-20.

62. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the steps of the method according to any one of claims 1-10, 11-14 or 15-20.

Citation Information

Patent Citations

  • Explicit routing with network function encoding

    US20210243107A1

  • Message transmission method, proxy node, and storage medium

    WO2021089004A1