WO2023078031A1 - Message sending method and apparatus - Google Patents

Message sending method and apparatus Download PDF

Info

Publication number
WO2023078031A1
WO2023078031A1 PCT/CN2022/124423 CN2022124423W WO2023078031A1 WO 2023078031 A1 WO2023078031 A1 WO 2023078031A1 CN 2022124423 W CN2022124423 W CN 2022124423W WO 2023078031 A1 WO2023078031 A1 WO 2023078031A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
message
policy
indication information
node
Prior art date
Application number
PCT/CN2022/124423
Other languages
French (fr)
Chinese (zh)
Inventor
王贵
耿雪松
杨帆
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023078031A1 publication Critical patent/WO2023078031A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Definitions

  • the present application relates to the technical field of network communication, and in particular to a message sending method and device.
  • SR Policy Segment Routing Policy
  • SR Policy is a tunnel diversion technology.
  • SR Policy contains at least one candidate path, each candidate path has a preference value (Preference), and the candidate path with the highest Preference is the main path.
  • Preference preference value
  • Segment List segment list
  • each segment list indicates an end-to-end path from source to destination.
  • Redundancy Policy a redundancy policy
  • the redundancy strategy refers to enabling packet replication and instantiating multiple ordered segment lists between the copy node and the merge node to guide the same flow through different paths in the SR domain.
  • the existence of candidate paths with the same Preference in the SR Policy indicates that the SR Policy is a redundant policy, and the number of candidate paths with the same Preference indicates the number of packet replications. Therefore, when the packet arrives at the replication node, the replication node needs to search the Preferences of all candidate paths in the SR Policy to determine whether the SR Policy is a redundancy policy and the number of copies of the packet.
  • the setting of Preference in the redundant policy defined above changes the semantics of Preference in SR Policy, and the process of determining SR Policy as a redundant policy is cumbersome and time-consuming.
  • the present application discloses a message sending method and device, which improves the copying rate of the message by the network node in the multi-sending and selective-receiving scenario, can quickly realize the copying and forwarding of the message, and improves the reliability of message forwarding.
  • the present application provides a method for sending a message, which is applied to a network node.
  • the method includes: obtaining instruction information and quantity information, the instruction information is used to instruct the network node to copy the message, and the quantity information corresponds to the copy message The number of texts; obtain the first message; copy the first message according to the instruction information to obtain multiple second messages, the number of multiple second messages corresponds to the quantity information; send multiple second messages, multiple second messages At least two second packets in the two packets encapsulate different forwarding path information.
  • the network node may be a head node or an intermediate node of the packet forwarding path.
  • the head node can be the ingress node (Ingress Node) in the SR or SRv6 network
  • the intermediate node can be a node other than the ingress node and the egress node (Egress Node) in the SR or SRv6 network.
  • a network node may also be referred to as a replication node.
  • a copying behavior is defined for the network nodes through the indication information, and the number of copied messages can be directly indicated through the quantity information, so that the network nodes can efficiently perform copying of the messages according to the indication information in the scenario of frequent message sending action and determine the number of copies of the message based on the quantity information.
  • the network nodes can also flexibly select the encapsulation path of the message, which realizes multiple sending of the message and improves the forwarding efficiency of the message.
  • the indication information and quantity information are included in the policy information.
  • the policy information carries indication information and quantity information, so that network nodes can quickly determine the frequent sending of messages, which is beneficial to improve the efficiency of message forwarding.
  • acquiring the indication information and the quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; acquiring the indication information and the quantity information according to the notification message.
  • the indication information and quantity information can be directly sent to the network nodes through the controller, which can effectively reduce the operating pressure of the network nodes.
  • the indication information is included in the policy information, and the quantity information is included in the segment identifier of the network node.
  • the quantity information and the policy information are decoupled. In this way, if a forwarding path fails in the multi-send and selective-receiving scenario, the quantity information can be dynamically updated without updating the policy information, which can improve the selection efficiency of the forwarding path , improving the reliability of message forwarding.
  • the first message includes the segment identifier of the network node, and obtaining indication information and quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; obtaining the indication information according to the notification message; Identifies the quantity information obtained.
  • the first message contains the segment identifier of the network node, indicating that this method is applicable to the network node as an intermediate node, and the network node can obtain the instruction information from the policy information issued by the controller, and obtain the instruction information from its own segment identifier. Get quantity information.
  • obtaining the indication information and the quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; obtaining the indication information according to the notification message; obtaining the quantity information according to the segment identifier of the network node.
  • the network node when the network node is the head node, the network node can obtain the instruction information from the policy information issued by the controller, and obtain the quantity information from its own segment identifier, wherein the segment identifier containing the quantity information can be the network
  • the node is configured locally, or it may be sent by the controller to the network node, which is not specifically limited here.
  • the segment identifier is a binding segment identifier Binding SID.
  • the Binding SID can be an IPv6 address or an SR MPLS label in SRv6 technology.
  • the quantity information is included in the policy information, and the indication information is included in the segment identifier of the network node.
  • the first message includes the segment identifier of the network node, and obtaining indication information and quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; obtaining quantity information according to the notification message; Identifies access to instructions.
  • the network node when the network node is an intermediate node, the network node can also obtain the quantity information from the policy information issued by the controller, and obtain the indication information from its own segment identification, wherein the segment identification containing the indication information can be
  • the network node is configured locally, or it may be sent to the network node by the controller, which is not specifically limited here.
  • segment identifier of the network node is an SID of type End.B6.Replication bound to the SRv6 traffic engineering policy.
  • the network node when the network node is an intermediate node, the network node can extend a Replication behavior to End.B6 (Endpoint Bound to an SRv6 TE Policy), that is, End.B6.Replication instructs the network node to perform a replication action, where , B6 indicates that it is applied to SRv6 TE Policy, and Replication indicates that the received message is copied.
  • End.B6 Endpoint Bound to an SRv6 TE Policy
  • Replication instructs the network node to perform a replication action, where , B6 indicates that it is applied to SRv6 TE Policy, and Replication indicates that the received message is copied.
  • the indication information and quantity information are included in the segment identifier of the network node, and the segment identifier is a SID of type End.B6.Replication.
  • setting the indication information and quantity information in the segment identifier of the network node can make the controller only need to unify the control strategy information without expanding protocols such as BGP or PCEP, which is conducive to improving the compatibility of the equipment.
  • the first message includes the segment identifier of the network node
  • obtaining the indication information and the quantity information includes: obtaining the quantity information and the indication information according to the segment identifier of the network node.
  • the network node when the network node is an intermediate node, the network node can also obtain indication information and quantity information from its own segment identifier. It can be seen from this that the quantity information and policy information are decoupled. When a forwarding path fails, it only needs to update the quantity information, which improves the redundancy protection capability of the network and improves the reliability of packet forwarding.
  • the policy information is segment routing policy SR policy or SRv6 policy.
  • the policy information may also be SR MPLS TE policy or SRv6 TE policy.
  • the method further includes: adding the same message sequence number to multiple second messages respectively.
  • each of the multiple second messages contains the same serial number, so that after receiving the second message, the merging node in the multi-send and selective-receive scenario can determine to keep the Or a second message saved, which is usually the first received message, so that the selective receipt of messages is realized.
  • the method further includes: respectively adding the same flow identifier in multiple second packets.
  • each of the multiple second messages contains the same flow identifier, so that the merging node in the multi-send and selective-receive scenario determines according to the flow identifier and sequence number after receiving the second message A second message to be reserved or saved, thereby realizing selective receipt of messages.
  • the notification message is a Border Gateway Protocol BGP message
  • the indication information and quantity information are carried in any of the following fields in the BGP message: Binding segment identification subtype-length-value Binding SID Sub-TLV field; or tunnel Encapsulation attribute Tunnel Encaps Attribute field.
  • the indication information and the quantity information when the indication information and the quantity information are included in the policy information, and the policy information is carried by the BGP message, the indication information and the quantity information can be carried in the BGP message in the form of a new identification field, a TLV field, etc. Binding SID Sub-TLV field or Tunnel Encaps Attribute field. It can be seen that the attributes of the policy information are extended by extending the BGP protocol.
  • the notification message is a BGP message
  • the indication information or quantity information is carried in any of the following fields in the BGP message: the binding segment identification subtype-length-value Binding SID Sub-TLV field; or the tunnel encapsulation attribute Tunnel Encaps Attribute field.
  • the indication information when only the indication information is included in the policy information, and the policy information is carried by the BGP message, the indication information can be carried in the Binding SID Sub in the BGP message in the form of a new identification field, a TLV field, etc. -TLV field or Tunnel Encaps Attribute field; when only the quantity information is included in the policy information, and the policy information is carried by the BGP message, the quantity information can be carried in the BGP message by adding an identification field, TLV field, etc. Binding SID Sub-TLV field or Tunnel Encaps Attribute field. It can be seen that the attributes of the policy information are extended by extending the BGP protocol.
  • the notification message is a path computation element communication protocol PCEP message
  • the indication information and quantity information are carried in any of the following fields in the PCEP message: Extended Association ID TLV field; traffic engineering path binding TE Path Binding TLV field; segment routing policy candidate path identifier SR Policy CPath TLV field; or new type-length-value TLV field of association information Association Information.
  • the indication information and quantity information when the indication information and quantity information are included in the policy information, and the policy information is carried by the PCEP message, the indication information and quantity information can be carried in the PCEP message in the form of a new identification field, TLV field, etc. Any one of the fields such as the Extended Association ID TLV field, TE Path Binding TLV field, etc. It can be seen that the attributes of the policy information are extended by extending the PCEP protocol.
  • the notification message is a PCEP message
  • the indication information or quantity information is carried in any of the following fields in the PCEP message: Extended Association ID TLV field; traffic engineering path binding TE Path Binding TLV field; segment routing Policy candidate path identification SR Policy CPath TLV field; or the newly added type-length-value TLV field of Association Information.
  • the indication information when only the indication information is included in the policy information, and the policy information is carried by the PCEP message, the indication information can be carried in the Extended Association ID in the PCEP message by adding an identification field, a TLV field, etc. Any one of the TLV field, TE Path Binding TLV field and other fields; when only the quantity information is included in the policy information, and the policy information is carried by the PCEP message, the quantity information can be added with the identification field and TLV field Any one of the fields such as the Extended Association ID TLV field and the TE Path Binding TLV field in the PCEP message. It can be seen that the attributes of the policy information are extended by extending the PCEP protocol.
  • the forwarding path information is a segment identification list SID List included in the policy information.
  • At least two of the multiple second packets encapsulate different forwarding path information, including: at least two of the multiple second packets encapsulate different SID Lists, and the SID The List corresponds to the SID List of one path among multiple candidate paths, and the multiple candidate paths are determined according to the preference value preference of each candidate path in the policy information.
  • the candidate path can be used as the selection unit, and M candidate paths can be selected from the policy information at a time, and for each candidate path in the M candidates, a SID List can be determined according to the weight of each SID List in the candidate path, Wherein, the SID List represents a forwarding path (or path for short).
  • the SID List can be flexibly selected for encapsulation of the second message, and the encapsulation rate of the second message can be improved.
  • the multiple candidate paths are determined in descending order according to the preference value preference of each candidate path.
  • the identifier of the first candidate path indicates that the first candidate path is selected.
  • the M candidate paths may be selected from policy information multiple times. Specifically, first select the candidate path 1 corresponding to the maximum preference from the policy information for the encapsulation of a second packet, and set the flag of the candidate path 1 to indicate that the candidate path 1 is selected; then the remaining flags from the policy information Select the candidate path 2 corresponding to the current maximum preference from the candidate paths that are not set to be used for the encapsulation of a second message, and set the flag of the candidate path 2 to indicate that the candidate path 2 is selected, ..., and so on until The number of candidate paths selected from policy information is M.
  • At least two of the multiple second packets encapsulate different forwarding path information, including: at least two of the multiple second packets encapsulate different SID Lists, and multiple The SID List encapsulated in each second message in each second message corresponds to the same candidate path in the policy information.
  • the SID List performs load sharing on multiple second packets based on its own weight.
  • the SID List encapsulated in each second message in multiple second messages can realize load sharing according to its own weight, which is conducive to improving the data processing capability of the network.
  • the indication information and the quantity information are locally configured by the network node, and the method further includes: sending a Border Gateway Protocol link state BGP-LS message to the controller, the BGP-LS message including the indication information and the quantity information, and the indication information and quantity information is carried in any of the following fields in the BGP-LS message: traffic engineering policy descriptor TE Policy Descriptors; or segment routing policy candidate path descriptor SR Policy Candidate Path Descriptor.
  • both the indication information and the quantity information may be included in the policy information, or the indication information is included in the policy information but the quantity information Included in the segment identifier, which is not specifically limited here.
  • the bearing mode of the indication information and the quantity information can be any of the following: (1) both the indication information and the quantity information can be included in the policy information; (2) the indication information can be included in the policy information But the quantity information is included in the segment identifier of the network node; (3) the instruction information is included in the segment identifier, and the quantity information is included in the policy information; (4) the instruction information and the quantity information are included in the segment identifier of the network node.
  • the indication information may be an H.Encap.Replication or H.Insert.Replication command to execute a copy action on the packet, and the quantity information may be carried in arguments of the Binding SID of the network node.
  • the segment identifier may be an End.B6.Replication type SID, and the quantity information may be carried in arguments of the End.B6.Replication type SID.
  • the indication information and quantity information can be carried in any one of the fields such as TE Policy Descriptors and SR Policy Candidate Path Descriptor in the BGP-LS message in the form of newly added identification field, TLV field, etc., thus, the network Nodes inform the controller of the representation of the redundancy policy via BGP-LS extensions.
  • the present application provides a device for sending a message, and the device may be a network device or a part of the network device.
  • the device is used to execute the method in the first aspect or any possible design of the first aspect.
  • the apparatus includes a unit for performing the method in the first aspect or any possible design of the first aspect.
  • the present application provides a device, which includes a processor and a memory, wherein the memory is used to store program instructions; the processor invokes the program instructions in the memory, so that the device executes the first aspect or the first aspect.
  • a device which includes a processor and a memory, wherein the memory is used to store program instructions; the processor invokes the program instructions in the memory, so that the device executes the first aspect or the first aspect.
  • the present application provides a computer-readable storage medium, including instructions.
  • the instructions When the instructions are executed by a computer, part or all of the operations of the method in the first aspect or any possible implementation of the first aspect are realized. .
  • the present application provides a computer program product
  • the computer program software product includes a program, and when the program is executed by a processor, all of the aforementioned first aspect or any possible embodiment of the first aspect can be realized. Some or all of the operations described above.
  • the computer program product may be a software installation package, and if the method provided by any possible design of the aforementioned first aspect needs to be used, the computer program product may be downloaded and executed on the device to realize The method in the first aspect or any possible embodiment of the first aspect.
  • the present application provides a system, including the device described in the second aspect and a controller, wherein the controller is configured to send the indication information and/or the quantity in the first aspect to the device described in the second aspect information, the device described in the second aspect is configured to perform part or all of the operations of the method in any possible implementation manner of the foregoing first aspect.
  • Fig. 1 is a schematic diagram of a segment routing strategy model
  • Fig. 2 is a schematic diagram of a redundancy process of a segment routing network
  • FIG. 3 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • FIG. 4 is a flow chart of a message sending method provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of carrying indication information and quantity information provided by an embodiment of the present application.
  • FIG. 6A is a schematic diagram of carrying indication information and quantity information provided by an embodiment of the present application.
  • FIG. 6B is a schematic diagram of carrying another indication information and quantity information provided by the embodiment of the present application.
  • FIG. 6C is a schematic diagram of carrying another indication information and quantity information provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of carrying another indication information and quantity information provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • Fig. 10 is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of a functional structure of a network device provided in this embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a network device provided in this embodiment of the present application.
  • Segment routing refers to dividing the network path into segments, and inserting segment information into the message at the path head node, and the intermediate nodes only need to forward according to the segment information carried in the message. These segments may be referred to as Segments and are identified by a Segment ID (SID).
  • the segment list (Segment List) can be obtained by orderly arranging the SIDs of the segments and network nodes at the head node, and the segment list can also be called a segment identification list (Segment ID List, SID List).
  • a segment list is used to indicate a forwarding path.
  • SR supports Multi-Protocol Label Switching (Multi-Protocol Label Switching, MPLS) and IPv6 two data planes, among them, the SR based on MPLS data plane is called SR-MPLS, and its SID is MPLS label (Label); SR is called SRv6, and its SID is an IPv6 address.
  • MPLS Multi-Protocol Label Switching
  • IPv6 IPv6 address
  • Segment routing policy is a new tunnel diversion technology developed on the basis of SR technology.
  • the path of SR Policy can be represented by a segment list, each segment list is used to indicate an end-to-end path from source to destination, and instructs devices in the network to follow the specified path to forward packets without following the internal gateway IGP calculation The shortest path to forward packets. See Figure 1.
  • Figure 1 is a schematic diagram of an SR Policy model.
  • the segment routing policy SR Policy is identified by three parts, which are the head-end binding segment ID (Binding Segment ID, also referred to as Binding SID or BSID) , color (Color) and endpoint (Endpoint), where the head-end BSID represents the SID of the originating node of the SR Policy, that is, the location where the SR Policy is generated or implemented; Color is used to distinguish multiple An SR Policy, Endpoint indicates the destination node of the SR Policy.
  • SR Policy has at least one candidate path (Candidate Path). Each candidate path is configured with a preference value (Preference) and a BSID that uniquely identifies the candidate path.
  • each candidate path contains at least one segment list (Segment List).
  • the segment list can also be called a segment identification list.
  • Each segment list can also be configured with a weight (Weight) for load sharing.
  • Each segment list contains at least one SID.
  • the SIDs in the segment list are the SIDs from each node on the forwarding path to the next hop.
  • the SR Policy in Figure 1 contains n candidate paths, which are candidate paths [1], ..., candidate paths [n].
  • candidate path [1] the preference value of candidate path [1] is preference value [1]
  • candidate path [1] contains m segment lists, which are respectively segment list [11], ..., segment list [1m] .
  • the weight of the segment list [11] is the weight [11]
  • the segment list [11] contains i segment identifiers.
  • Redundancy protection is one of the mechanisms to achieve business protection.
  • a redundancy strategy is proposed, that is, to enable data packet replication and instantiate multiple ordered segments between the copy node and the merge node list to direct the same flow through different paths in the SR domain.
  • FIG. 2 is a schematic diagram of a redundancy process of an SR network.
  • An SR domain is a collection of nodes or network devices participating in the SR protocol. Within an SR domain, nodes can perform ingress, transfer or egress procedures. In an SR network, the head node and end node are located outside the SR domain, while the path between them traverses the SR domain.
  • node 1 is a source node
  • node 8 is an end node
  • ingress node 2 , node 3 , node 4 , node 5 , node 6 and egress node 7 are located in the SR domain.
  • node 3 Take node 3 as the copy node and node 6 as the merge node in Figure 2 as an example to illustrate the forwarding process of SR network redundancy protection: after the ingress node 2 receives the message from node 1, it finds the path to the egress node 7 according to the local SR Policy And encapsulation section list; When message arrives duplicating node, i.e.
  • node 3 duplicates message and obtains multiple forwarding messages (for example, two forwarding messages, respectively message 1 and message 2) and respectively Encapsulate the segment list, wherein, the segment list of message 1 indicates that message 1 reaches egress node 7 via node 4 and node 6, and the segment list of message 2 indicates that message 2 reaches egress node 7 via node 5 and node 6, and every A forwarding message carries a flow identification (Flow Identification, FI) and a serial number (Serial Number, SN), and the flow identification and serial number can be used for message elimination by the merge node; message 1 and message 2 arrive through different forwarding paths
  • the merging node is node 6.
  • node 6 Assuming that node 6 receives message 1 first, it judges whether there is a flow identifier and serial number of a message in the stored data that are the same as those in message 1. If does not exist, then determine that message 1 is the first message received and store the flow identifier and sequence number of message 1, then node 6 forwards the first message (ie message 1) received to out of node 7, and eliminate redundant messages received subsequently, for example, node 6 subsequently receives message 2, and after comparison, it is determined that the stream identifier and sequence number of message 1 in the stored data are the same as those in message 2 The flow identifiers and sequence numbers of the two are the same, so packet 2 is discarded. In this way, when a certain forwarding path between the duplicating node and the merging node fails or loses packets, the business can continue to be transmitted through other forwarding paths, thereby realizing uninterrupted business.
  • the SR Policy is a redundant policy, and the number of candidate paths with the same preference in the redundant policy is used as the number of replicated packets at the replication node.
  • the SR Policy different candidate paths have different preferences, so the preference is used to determine the active candidate path.
  • Using the preference in the SR policy as a reference for the number of copied packets violates the semantics of the parameter preference in the SR Policy.
  • the above-mentioned judgment about whether the SR Policy is a redundant policy is complex and time-consuming, that is, it is necessary to compare whether the preferences of all candidate paths are the same and to count the number of candidate paths with the same preference.
  • the embodiment of the present application proposes a message sending method. Based on this method, the redundant policy and the number of copies of the message can be expressed concisely and efficiently without changing the mechanism of the SR Policy. The number of copies can flexibly select multiple forwarding paths for multiple sending of packets.
  • FIG. 3 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • the communication system is used to realize the duplication of messages and the multiple sending of messages.
  • the communication system includes a controller and multiple nodes, wherein the controller can communicate with the multiple nodes, and any two nodes in the multiple nodes can communicate with each other. It should be noted that there are copy nodes and merge nodes in multiple nodes.
  • the controller may be a server deployed on the network side, or a component or chip in the server.
  • a node may be a network device such as a router or a switch, or may be a component used in a network device capable of performing the following method, such as a single board, a line card, or a chip.
  • multiple nodes include at least node A, node B, node C, node D and node E, wherein node A can be called the ingress node of the SR domain, and node B, node C and node D can be called the SR domain
  • the intermediate node of the domain, node E may be called the egress node of the SR domain.
  • the message sent by node A can reach node E through nodes B and C
  • the message sent by node A can reach node E through nodes B and node D.
  • the copying node may be node A or node B
  • the merging node may be node E, and there are multiple reachable paths between the copying node and the merging node.
  • this embodiment of the present application does not limit that node A can only be directly connected to node B, and in some possible embodiments, there may be at least one node between node A and node B.
  • the duplication node may acquire the indication information and quantity information locally or from the controller, and the duplication node duplicates the message according to the indication information to obtain multiple forwarded messages, the number of the multiple forwarded messages corresponds to the quantity information, At least two forwarding packets in the multiple forwarding packets encapsulate different forwarding paths, and send the multiple forwarding packets according to the respective forwarding paths encapsulated in the multiple forwarding packets, and after receiving the forwarding packets, the merge node Select the first received forwarding message to send.
  • the replication node if the replication node acquires the indication information and the quantity information locally, the replication node also needs to send the indication information and the quantity information to the controller.
  • FIG. 3 is only an exemplary architecture diagram, but does not limit the number of network elements included in the system shown in FIG. 3 .
  • FIG. 3 may also include other functional entities.
  • the method provided in the embodiment of the present application can be applied to the communication system shown in FIG. 3 , and of course the method provided in the embodiment of the present application can also be applied to other communication systems, which is not limited in the embodiment of the present application.
  • FIG. 4 is a flowchart of a method for sending a message provided in an embodiment of the present application.
  • the method can be applied to network nodes.
  • the method includes but is not limited to the following steps:
  • the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the number of copied messages.
  • the quantity information is 3, that is, three copies of a received message are copied, and the number of copied messages is 3.
  • the network node may be a head node or an intermediate node.
  • the head node can be the ingress node (Ingress Node) in the SR or SRv6 network
  • the intermediate node can be a node other than the ingress node and the egress node (Egress Node) in the SR or SRv6 network.
  • a network node may also be referred to as a replication node.
  • the above-mentioned message may be an Internet protocol version 4 (Internet protocol version4, IPv4) message or an Internet protocol version 6 (Internet protocol version 6, IPv6) message.
  • the above message may be an SRv6 message or an SR MPLS message, which is not specifically limited in this embodiment of the present application.
  • the indication information and the quantity information are included in the policy information.
  • the policy information may be SR Policy or SRv6 policy, which is not specifically limited in this embodiment of the present application.
  • acquiring the indication information and the quantity information may be: receiving a notification message sent by the controller, the notification message including the above policy information; acquiring the indication information and the quantity information according to the notification message.
  • the controller can extend the notification message through the border gateway protocol (Border Gateway Protocol, BGP).
  • BGP Border Gateway Protocol
  • the notification message is a BGP message, and the manner in which the indication information and quantity information are carried in the BGP message can be referred to for details.
  • Mode A1 and Mode A2 as follows:
  • Method A1 Subtype-length-value Binding SID Sub-TLV of the binding segment identifier carried in the BGP message
  • FIG. 5 exemplarily provides a schematic diagram of carrying indication information and quantity information in the Binding SID Sub-TLV, wherein the Binding SID Sub-TLV shown in FIG. 5 includes the following fields:
  • Length indicates the length of the Binding SID
  • Flags 1 byte, which contains a 1-bit S flag for encoding the "Specified-BSID-only” behavior; a 1-bit I flag for the "discard when invalid" behavior coding;
  • Binding SID indicates the BSID of the SR Policy. If the length is 2, the Binding SID is not carried; if the length is 6, the Binding SID is coded in 4 bytes; if the length is 18, the Binding SID contains 16 bytes of the SRv6 SID.
  • At least one identification field may be added in the flag bit Flags of the Binding SID Sub-TLV to carry the above-mentioned indication information and quantity information, for example, the first flag field is used to carry the indication information, and the second identification field Fields are used to carry quantity information.
  • the representation of the identification field may be in the form of a bitmap, or in the form of a binary value, which is not specifically limited in this application.
  • the newly added identification field may also exist independently of the Flags field in the Binding SID Sub-TLV.
  • the indication information and the quantity information may also be carried in different fields in the Binding SID Sub-TLV, for example, the indication information may be carried in the Flags field of the Binding SID Sub-TLV, and the quantity information may be carried in the Binding SID Sub-TLV's Binding SID field.
  • the indication information and quantity information may also be carried in the reserved bit field and/or the Type field in the Binding SID Sub-TLV.
  • a new TLV field can also be added in the Binding SID Sub-TLV, and an identification field can be set in the TLV field to carry the indication information and the quantity information.
  • the first identification field is used to carry indication information
  • the second identification field is used to carry quantity information.
  • the present application does not specifically limit the carrying manner of the identification field in the TLV field.
  • the first identification field may be carried in the T field
  • the second identification field may be carried in the V field, that is, the indication information is carried in the T field, and the quantity information is carried in the V field.
  • both the first identification field and the second identification field may be carried in the T field, that is, both the indication information and the quantity information may be carried in the T field.
  • both the first identification field and the second identification field may be carried in the V field, that is, both the indication information and the quantity information may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above indication information and quantity information.
  • a redundancy attribute Redundancy Attribute can be newly defined in the segment routing policy encoding structure SR Policy Encoding Structure of the tunnel encapsulation attribute Tunnel Encaps Attribute field, and the Redundancy Attribute can carry indication information and quantity information in the form of a TLV field.
  • an identification field is set in the Redundancy Attribute, wherein the first identification field is used to carry indication information, and the second identification field is used to carry quantity information. This application does not specifically limit the manner in which the identification field is carried in the Redundancy Attribute TLV field.
  • the first identification field may be carried in the T field of the Redundancy Attribute TLV
  • the second identification field may be carried in the V field of the Redundancy Attribute TLV.
  • both the first identification field and the second identification field may be carried in the T field of the Redundancy Attribute TLV.
  • both the first identification field and the second identification field may be carried in the V field of the Redundancy Attribute TLV.
  • reserved bits can also be set in the T field of the Redundancy Attribute TLV to carry the above indication information and quantity information.
  • Indication information and quantity information can be encoded using SR Policy Encoding Structure in the Tunnel Encapsulation Attribute.
  • the following example provides an extended SR Policy Encoding Structure data format:
  • the Redundancy Attribute is added to the original SR Policy Encoding Structure to carry the above-mentioned indication information and quantity information.
  • the carrying method of the indication information and quantity information in the Redundancy Attribute please refer to the relevant description in the above-mentioned A2 method.
  • the controller can also extend the notification message through the Path Computation Element communication Protocol (Path Computation Element communication Protocol, PCEP).
  • PCEP Path Computation Element communication Protocol
  • the notification message is a PCEP message
  • the indication information and quantity information are included in the PCEP message.
  • (1) in FIG. 6A provides a schematic diagram of the format of an extended association identification TLV field.
  • the extended association identification TLV field includes the following fields:
  • Length The value is 8 or 20, depending on whether the IPv4 or IPv6 address is encoded in the Endpoint;
  • Color indicates the color value of SR Policy
  • Endpoint Can be an IPv4 or IPv6 address, and this value is part of the tuple ⁇ color, endpoint> that identifies the SR Policy for a given headend.
  • a flag bit field may be added to the Extended Association ID TLV field to carry quantity information and indication information.
  • the indication information and quantity information may be carried in a flag bit field.
  • the indication information and the quantity information may also be carried in different flag fields, that is, the indication information may also be carried in the first flag field, and the quantity information may be carried in the second flag field.
  • the type field in the Extended Association ID TLV field can also be used to carry indication information and quantity information.
  • multiple bits are newly added in the type field to carry indication information and quantity information.
  • a new bit can also be added in the type field to carry indication information, and an additional flag bit field can be added to the Extended Association ID TLV field to carry quantity information, which is not specifically limited in the embodiment of this application .
  • a TLV field can also be added in the Extended Association ID TLV field to carry indication information and quantity information.
  • indication information and quantity information are carried in the TLV field, please refer to the relevant TLV bearing indication information in the above method A1. and the description of the quantity information will not be repeated here.
  • Mode B2 Bind the TE Path Binding TLV field to the traffic engineering path carried in the PCEP message
  • TE Path Binding TLV is a general TLV, which is used to bear the binding label or SID of the traffic engineering path (that is, MPLS label or SRv6 SID).
  • FIG. 6B exemplarily provides a schematic diagram of carrying indication information and quantity information in the TE Path Binding TLV, wherein the TE Path Binding TLV shown in FIG. 6B includes the following fields:
  • Binding Type (Binding Type, BT): The value is 0, indicating that the binding value is a 20-bit MPLS label value; the value is 1, indicating that the binding value is a 32-bit MPLS label stack entry; the value is 2, Indicates that the binding value is an SRv6 SID with a 16-byte IPv6 address format; a value of 3 indicates that the binding value is a 24-byte field, which contains the SRv6 SID and its behavior and structure;
  • Flags 1 byte, including a 1-bit removal bit (Removal, R).
  • R When R is set, it requests the PCEP peer to remove the binding of the Label Switched Path (LSP). Fixed value; when R is not set, the PCEP peer indicates to add or reserve the binding value for the LSP;
  • Binding Value variable length field, when BT is 0, 20 bits represent the MPLS label; when BT is 1, 32 bits represent the MPLS label stack entry; when BT is 2, 128 bits represent the SRv6 SID ; When BT is 3, Binding Value also includes SRv6 Endpoint Behavior and SID Structure.
  • At least one identification field can be added in the flag bit Flags of the TE Path Binding TLV field to carry the above indication information and quantity information, for example, the first flag field is used to carry the indication information, and the second identification field is used for Bearer quantity information.
  • the newly added identification field may also exist independently of the Flags field in the TE Path Binding TLV.
  • the indication information and quantity information may also be carried in the type field or reserved bit field in the TE Path Binding TLV.
  • a TLV field can also be added in the TE Path Binding TLV field to carry indication information and quantity information.
  • indication information and quantity information are carried in the TLV field, please refer to the relevant TLV bearing indication information in the above method A1. and the description of the quantity information will not be repeated here.
  • the indication information and the quantity information may also be carried in different fields in the TE Path Binding TLV.
  • the indication information is carried in any one of the type field, the flag field and the newly added flag field of the TE Path Binding TLV field, and the quantity information is carried in the reserved bit field or the binding value field of the TE Path Binding TLV field , the embodiment of the present application does not specifically limit it.
  • Mode B3 The SRPolicy-Cpath-ID TLV field of the segment routing policy candidate path identifier carried in the PCEP message
  • FIG. 6C exemplarily provides a schematic diagram of carrying indication information and quantity information in the SRPolicy-Cpath-ID TLV, wherein the SRPolicy-Cpath-ID TLV shown in FIG. 6C includes the following fields:
  • Type The value is 57, used to indicate that the type is SRPolicy-Cpath-ID TLV;
  • Length the value is 28;
  • Protocol origin 8-bit representation, please refer to the relevant description of the protocol origin field in the above method A2;
  • Originator Autonomous System Number 4 bytes, as part of the identity of the originator;
  • Originator Address 128 bits, as part of the identity of the originator
  • Discriminator 32-bit representation, used to distinguish candidate paths.
  • the indication information and quantity information may be carried in a reserved bit field in the SRPolicy-Cpath-ID TLV.
  • an identification field may be added to the reserved bit field for carrying indication information and quantity information, for example, the first identification field is used for carrying indication information, and the second identification field is used for carrying quantity information.
  • the representation of the identification field may be a bitmap or a binary value, which is not specifically limited in this application.
  • the indication information and quantity information may also be carried in the type field in the SRPolicy-Cpath-ID TLV.
  • an identification field is added to the type field to carry indication information and quantity information, wherein the representation of the identification field may be a bitmap or a binary value, which is not specifically limited in this application.
  • different fields in the SRPolicy-Cpath-ID TLV may also be used to carry indication information and quantity information.
  • the indication information can be carried in the type field in the SRPolicy-Cpath-ID TLV
  • the quantity information can be carried in the reserved bit field in the SRPolicy-Cpath-ID TLV.
  • SRPolicy-Cpath-ID TLV it is also possible to add a TLV field or a new Flag field in the SRPolicy-Cpath-ID TLV to carry the indication information and the quantity information, which are not specifically limited here.
  • the way to carry the indication information and quantity information in the PCEP message may also be: add a new TLV field for carrying the indication information and quantity information, and the TLV field Association Information carried in the PCEP message.
  • the indication information is included in the policy information, and the quantity information is included in the segment identifier of the network node.
  • obtaining the indication information and quantity information may also include: receiving a notification message sent by the controller, the notification message including policy information; obtaining the indication information according to the notification message; obtaining the quantity information according to the segment identifier of the network node.
  • the segment identifier is a binding segment identifier Binding SID
  • the Binding SID may be an IPv6 address or an SR MPLS label. That is to say, the quantity information is decoupled from the policy information, only the indication information is included in the policy information, and the indication information is delivered by the controller, and the quantity information may be configured locally by the network node.
  • the manner in which the indication information is carried in the BGP message can refer to the description about the manner in which the indication information is carried in any one of the foregoing manners A1 to A2, which will not be repeated here.
  • the manner in which the indication information is carried in the PCEP message can refer to the description about the manner in which the indication information is carried in any one of the manners B1 to B3 above, and will not be repeated here.
  • the network node being a head node or a network node.
  • the message received by the network node includes the segment identifier of the network node.
  • the head node may acquire the indication information and the quantity information in any of the above methods A1-A2 and B1-B3.
  • the network node when the network node is an intermediate node, the network node can obtain indication information and quantity information in any of the above methods A1-A2 and B1-B3, etc., and the network node can also pass
  • the segment identifier carries indication information to realize the definition of the replication action of the network node.
  • the segment identifier may be a SID of type End.B6.Replication.
  • the intermediate node can extend a Replication behavior to End.B6 (Endpoint Bound to an SRv6 TE Policy), that is, End.B6.Replication instructs the network node to perform a replication action, where B6 means that it is applied to the SRv6 TE Policy, Replication means to replicate the received message.
  • End.B6 Endpoint Bound to an SRv6 TE Policy
  • the acquisition of instruction information and quantity information can refer to the following methods C1-Method C2:
  • Mode C1 The indication information is included in the segment identifier of the network node, and the quantity information is included in the policy information
  • obtaining the indication information and the quantity information may be: receiving a notification message sent by the controller, the notification message including policy information; obtaining the quantity information according to the notification message; obtaining the indication information according to the segment identifier of the network node. That is to say, instruction information is decoupled from policy information.
  • the manner in which the quantity information is carried in the BGP message can refer to any description of the manner in which the quantity information is carried in the above methods A1-A2, for example, the quantity information can be carried in the BGP message Binding SID in the Binding SID Sub-TLV.
  • the carrying manner of the quantity information in the PCEP message can refer to the description of any one of the above-mentioned manners B1-B3 about the carrying manner of the quantity information, for example, the quantity information can be carried in the PCEP message In the Binding Value of the TE Path Binding TLV.
  • the indication information carried in the segment identifier may be configured locally by the network node, or the controller may separately deliver the segment identifier containing the indication information to the network node through a BGP message or a PECP message. .
  • the indication information is included in the segment identifier of the network node, which may be: the segment identifier of the network node is associated with the Endpoint Behavior field of the BGP message, where the Endpoint Behavior field is located in the SRv6 Segment identifier endpoint behavior and structure subtype-degree-value SRv6 SID Endpoint Behavior and Structure Sub-TLV; or, the indication information is included in the segment identifier of the network node, which can be: the segment identifier of the network node and the Endpoint Behavior of the PCEP message Field association, where the Endpoint Behavior field is located in the SRv6 endpoint behavior and segment identification structure SRv6 Endpoint Behavior and SID Structure.
  • the network node may associate the segment identifier with the corresponding endpoint behavior through a relevant command line.
  • Mode C2 The indication information and quantity information are included in the segment identifier of the network node
  • obtaining the indication information and the quantity information may be: obtaining the quantity information and the quantity information according to the segment identifier of the network node.
  • the segment identifier containing indication information and quantity information in the segment identifier can be configured locally by the network node, or can be delivered to the network node by the controller alone. This embodiment of the present application does not make specific limited.
  • the SID of the End.B6.Replication type can be associated with the Endpoint Behavior field in the BGP message or the PECP message, and the quantity information is carried in the SID of the End.B6.Replication type, for example, the parameter field in the SID.
  • the indication information and the quantity information may be locally configured by the network node, and the indication information and the quantity information may be acquired from a local memory.
  • the indication information and the quantity information may be included in the policy information, or the indication information is included in the policy information but the quantity information is included in the segment identifier, which is not specifically limited here.
  • the bearing mode of the indication information and the quantity information can be any of the following: (1) both the indication information and the quantity information can be included in the policy information; (2) the indication information can be included in the policy information But the quantity information is included in the segment identifier of the network node; (3) the instruction information is included in the segment identifier, and the quantity information is included in the policy information; (4) the instruction information and the quantity information are included in the segment identifier of the network node.
  • the network node configures the indication information and quantity information locally, wherein the indication information can be an H.Encap.Replication or H.Insert.Replication instruction to perform a copy action on the message, and the quantity information can be bound in the network node Carried in the parameter arguments of the segment identifier Binding SID.
  • the indication information can be an H.Encap.Replication or H.Insert.Replication instruction to perform a copy action on the message
  • the quantity information can be bound in the network node Carried in the parameter arguments of the segment identifier Binding SID.
  • the network node may also identify local configuration indication information and quantity information through a segment.
  • the segment identifier may be a SID of the End.B6.Replication type
  • the quantity information may be carried in arguments of the SID of the End.B6.Replication type.
  • the network node if the indication information and/or quantity information are locally configured by the network node, the network node also needs to send the indication information and/or quantity information to the controller. Specifically, if both the indication information and the quantity information are configured locally, the network node needs to send the indication information and the quantity information to the controller; if only the indication information is configured locally, the network node sends the indication information to the controller, namely Yes; if only the quantity information is configured locally, it is enough for the network node to send the quantity information to the controller.
  • the network node can send indication information and/or quantity information to the controller through Border Gateway Protocol Link-state (BGP-LS), that is, the network node sends a BGP-LS message to the controller , the BGP-LS message contains indication information and/or quantity information, and the manner in which the indication information and/or quantity information is carried in the BGP-LS message can specifically refer to the following manners D1 and D2:
  • Border Gateway Protocol Link-state BGP-LS
  • Mode D1 TE Policy Descriptors carried in BGP-LS messages
  • the indication information and/or quantity information may be carried in TE Policy Descriptors of the BGP-LS message by adding a Flag bit or a TLV field, and the like.
  • a flag bit Flag can be added to the TE Policy Descriptors, and the flag bit can be used to carry indication information and/or quantity information.
  • the first group of bits in the flag bits is used to carry indication information
  • the second group of bits in the flag bits is used to carry quantity information.
  • the indication information and the quantity information may also be carried by two flag bits, and this embodiment of the present application does not limit the number of flag bits to be added.
  • a TLV field may also be added to TE Policy Descriptors, and an identification field is set in the TLV field to carry indication information and/or quantity information.
  • an identification field is set in the TLV field to carry indication information and/or quantity information.
  • Mode D2 Segment routing policy candidate path descriptor SR Policy Candidate Path Descriptor carried in BGP-LS message
  • the indication information and/or quantity information may be carried by using the existing Flags field or the newly added TLV field in the SR Policy Candidate Path Descriptor of the BGP-LS message.
  • FIG. 7 exemplarily provides a schematic diagram of carrying indication information and quantity information in the SR Policy Candidate Path Descriptor, wherein the SR Policy Candidate Path Descriptor shown in FIG. 7 includes the following fields:
  • Type The value is 554, which is used to indicate that the type is SR Policy Candidate Path Descriptor;
  • Protocol-origin a 1-byte field that identifies the protocol or component responsible for instantiating this path; a value of 1 indicates that the protocol origin is PCEP; a value of 2 indicates that the protocol origin is BGP SR Policy; value It is 3, which means local;
  • Flags 1-byte field, which contains a 1-bit E flag and a 1-bit O flag, where, when E is set, it indicates that the endpoint is encoded as an IPv6 address; when E is not set, it indicates The endpoint is encoded as an IPv4 address; when O is set, the code indicating the initiator address is an IPv6 address; when O is not set, the code indicating the initiator address is an IPv4 address;
  • Endpoint 4 or 16 bytes, containing the address of the endpoint of SR Policy
  • Policy Color 4 bytes, used to indicate the color value of SR Policy
  • Originator AS Number 4 bytes carrying the 4-byte ASN code of the originator
  • Originator Address 4 or 16 bytes, carrying the address of the originator
  • Discriminator 4 bytes, carrying the discriminator of the path.
  • At least one identification field may be added in the flag bit Flags of SR Policy Candidate Path Descriptor to indicate the above indication information and/or quantity information, for example, the first identification field is used to carry indication information, and the second identification field Used to carry quantity information.
  • the representation of the identification field may be a bitmap or a binary value, which is not specifically limited in this application.
  • the newly added identification field may also exist independently of the Flags field in the SR Policy Candidate Path Descriptor.
  • a TLV field may also be added in the SR Policy Candidate Path Descriptor to carry indication information and/or quantity information, where the placement method of the newly added TLV field in the SR Policy Candidate Path Descriptor is not specifically limited, for example , can be placed after the Discriminator field.
  • the placement method of the newly added TLV field in the SR Policy Candidate Path Descriptor is not specifically limited, for example , can be placed after the Discriminator field.
  • the description about the indication information and/or quantity information carried by the TLV field refer to the description about the indication information and the quantity information for the TLV bearer in the above method A1, and details are not repeated here.
  • the network node obtains the first packet, wherein the feature information of the first packet matches the policy information in S101 above.
  • the characteristic information of the first message includes but not limited to the Differentiated Service Code Point (DSCP) carried in the first message, the destination address of the first message or the DSCP carried in the first message.
  • DSCP Differentiated Service Code Point
  • the head node when the network node is a head node, after receiving the first message, the head node may determine the first message according to the destination address of the first message and/or the DSCP carried in the first message The packet matches the above policy information.
  • the first packet may be an IPv4 or IPv6 packet.
  • the policy information is SR Policy; when the first message is an IPv6 message, the policy information is SRv6 Policy.
  • the first message when the network node is an intermediate node, the first message contains the segment identifier of the network node, and after receiving the first message, the network node determines that the first message carries its own segment identifier, based on the The segment identifier is associated with the above policy information.
  • the first packet may be an SR MPLS packet or an SRv6 packet.
  • the policy information is SR Policy; when the first message is an SRv6 message, the policy information is SRv6 Policy.
  • S103 Copy the first packet according to the indication information to obtain multiple second packets, and the quantity of the multiple second packets corresponds to the quantity information.
  • the quantity of the multiple second packets corresponds to the quantity information, which may be: the quantity of the multiple second packets is the sum of the quantity indicated by the quantity information and 1.
  • the quantity indicated by the quantity information is N, where N is a positive integer greater than or equal to 2, after the network node performs the copy operation on the first message, the quantity of the second message obtained is N+1.
  • each of the multiple second packets includes a sequence number SN.
  • each of the multiple second packets further includes a flow identifier FI.
  • the flow identifiers of the second packets are the same and the sequence numbers of the second packets are the same.
  • the merging node determines the first received second message according to the sequence number (or sequence number and flow identifier) in the second message, and When the second message with the same sequence number (or the same sequence number and flow identifier) is subsequently received, it is discarded, thereby realizing the selective reception of messages.
  • the method of adding the flow identifier and the sequence number may be: before the first packet reaches the network node, the first packet itself carries the flow identifier and the sequence number, so the network node copies the first packet Afterwards, each of the obtained multiple second packets also includes a flow identifier and a sequence number.
  • the method of adding the flow identifier and the sequence number may also be: before the first packet reaches the network node, the first packet itself does not carry the flow identifier and the sequence number, so the network node receives the first packet After the text, first add the flow identifier and sequence number to the first packet, and then copy the first packet, so that each of the multiple second packets obtained by the network node contains the flow identifier and serial number.
  • the manner of adding the flow identifier and the sequence number may also be: respectively adding the sequence number and the flow identifier in multiple second packets, which is not specifically limited in this embodiment of the present application.
  • S104 Send the above multiple second packets, where at least two of the multiple second packets encapsulate different forwarding path information.
  • At least two second packets among the plurality of second packets encapsulate different forwarding paths, which may be: each second packet among the plurality of second packets encapsulates different forwarding paths. forwarding path.
  • the number of forwarding paths is greater than 2, and the number of forwarding paths may be less than or equal to the number of second packets.
  • the forwarding path information is the SID List contained in the policy information.
  • the encapsulation of the network node selecting the SID List for the second message to forward the path includes the following methods:
  • the first method use the candidate path in the policy information as the selection unit
  • At least two of the multiple second packets encapsulate different forwarding paths, including: at least two of the multiple second packets encapsulate different SID List, SID List corresponds to the SID List of a path among multiple candidate paths, and these multiple candidate paths are determined according to the preference value preference of each candidate path in the policy information.
  • the quantity indicated by the indication information is N (N is a positive integer greater than or equal to 2), and M candidate paths are selected from the policy information according to the indication information, where M is a positive integer greater than or equal to 2 and M is less than or equal to N.
  • N is a positive integer greater than or equal to 2
  • M is less than or equal to N.
  • M candidate paths are selected from the multiple SID Lists contained in each candidate path, so as to obtain M SID Lists.
  • the M candidate paths may be determined in descending order according to the preference of each candidate path in the policy information, or may be randomly selected, which is not specifically limited in this embodiment of the present application.
  • the SID List corresponding to each candidate path in the M candidate paths may be the SID List corresponding to the maximum weight in the candidate path, or may be randomly selected, which is not specifically limited in the embodiment of the present application.
  • an identifier can also be set for each candidate path in the policy information.
  • the flag for this candidate path is set.
  • the number indicated by the indication information is N (N is a positive integer greater than or equal to 2), then the number of the second message is N+1, and M candidate paths are selected from the policy information according to the indication information, including: for For the first second message, select the candidate path 1 with the largest preference from the policy information, and set the flag 1 to indicate that candidate path 1 is selected; for the second second message, select the remaining path 1 from the policy information Select the candidate path 2 with the largest preference among the unselected candidate paths, and set the flag bit 2 to indicate that the candidate path 2 is selected; ...; For the N+1th second message, the remaining unselected paths from the policy information Select the candidate path M with the largest preference among the selected candidate paths, and set the flag M to indicate that the candidate path M is selected.
  • the SID List corresponding to each candidate path among the selected M candidate paths may be the SID List corresponding to the maximum weight in the candidate path, or may be randomly selected, which is not specifically limited in this embodiment of the present application.
  • the second type use the SID List in the policy information as the selection unit
  • At least two of the multiple second packets encapsulate different forwarding paths, including: at least two of the multiple second packets encapsulate different SID List, the SID List encapsulated in each second message in multiple second messages corresponds to the same candidate path in the policy information.
  • the number indicated by the indication information is N (N is a positive integer greater than or equal to 2), assuming that M SID Lists need to be selected from the policy information according to the indication information, and each SID List represents a forwarding path.
  • a candidate path may be selected from the policy information first, and M SID Lists are selected from multiple SID Lists of the candidate path, where M is a positive integer greater than or equal to 2 and M is less than or equal to N.
  • the candidate path may be a candidate path corresponding to the maximum preference in the policy information or a candidate path randomly selected from the policy information.
  • the M SID Lists corresponding to the candidate path may be selected according to the weight of each SID List in the candidate path in descending order, or may be randomly selected, which is not specifically limited in this embodiment of the present application.
  • the SID List encapsulated in each second packet in the plurality of second packets may perform load sharing according to their respective weights.
  • the number of candidate paths included in the policy information is greater than or equal to the number of second packets, or the number of SID Lists included in a candidate path in the policy information is greater than or equal to the number of second packets.
  • the network node can select a SID List to replace the faulty one from other unselected candidate paths or other SID Lists of candidate paths in the policy information. SID List, which effectively solves the fault problem of multiple messages being sent and selected, and improves the reliability of message forwarding.
  • the quantity indicated by the quantity information is 2, then the quantity of the second message is 3, and the number of the second messages is 3 by taking the message 1, the message 2 and the message 3 as examples to illustrate that the network node sends the multiple The process of the second message:
  • the number of forwarding paths used to encapsulate the second message is equal to the number of the second message. For example, if packet 1 is encapsulated using path 1, packet 2 is encapsulated using path 2, and packet 3 is encapsulated using path 3, then the above process of sending multiple second packets is specifically: sending based on path 1 For packet 1, packet 2 is sent based on path 2, and packet 3 is sent based on path 3.
  • the number of forwarding paths used to encapsulate the second packet is smaller than the number of the second packet. For example, using path 1 to respectively encapsulate message 1 and message 2 and using path 2 to forward message 3, the above process of sending multiple second messages is specifically: sending message 1 and message 2 respectively based on path 1 Packet 2, send packet 3 based on path 2.
  • the redundancy policy is expressed by extending the policy attribute, that is, the BGP-LS/BGP/PCEP protocol is provided to extend the bearer indication information and quantity information, so that the network node can process the packet according to the indication information. Execute the copy action and determine the copy number of the message according to the quantity information.
  • the redundancy policy also provides a variety of encapsulation methods for selecting the SID List, so that network nodes can flexibly select the forwarding path for encapsulation of multiple messages, thereby realizing multiple sending of messages and improving the reliability of message forwarding.
  • FIG. 8 is a schematic diagram of an application scenario provided by an embodiment of the present application, and the above-mentioned network node is a head node, that is, the copy node is a head node.
  • the head node is node R, that is, the copy node is node R
  • the merge node is node M.
  • path 1 path 1
  • path 2 path 2
  • Node R receives the first message from the previous node, and can divert the first message to the corresponding policy information through the Color attribute or DSCP mode.
  • Node R obtains the above-mentioned indication information and quantity information, and according to the indication information and the number of copies Copying the first message to obtain a plurality of second messages, and sending the multiple second messages based on the respective forwarding paths encapsulated in the multiple second messages, the number and quantity information of the multiple second messages correspond.
  • the above indication information, quantity information, and policy information may be configured locally by the node R or sent to the node R by the controller, which is not specifically limited in this embodiment of the present application.
  • the carrying mode of the indication information and quantity information in the BGP message can refer to the above-mentioned embodiment Any one of the ways A1 and A2, which will not be repeated here.
  • the specific process of message forwarding in Figure 8 is as follows:
  • the controller sends the SRv6 Policy to node R.
  • the SRv6 Policy includes instruction information and quantity information.
  • the instruction information is used to instruct network nodes to copy packets, and the quantity information corresponds to the number of replicated packets.
  • the replication node R uses the Color attribute of the BGP route to iterate to the SRv6 Policy.
  • node R After receiving the first message, node R determines that the characteristic information of the first message matches the SRv6 Policy, obtains the indication information and quantity information from the SRv6 Policy, and copies the first message according to the indication information and quantity information , to obtain multiple second packets, for example, the multiple second packets include second packet 1 and second packet 2 .
  • the node R adds the flow identifier F1 and the sequence number SN to the first message, so the second message 1 also includes the flow identifier and the sequence number.
  • the second message 2 compared with the first message, the second message 2 newly inserts IPv6 header information, segment routing header SRH information, flow identifier and sequence number, wherein the SRH information includes the SID List of path2.
  • Node R after obtaining the second message 1 and the second message 2, sends the second message 1 based on the encapsulated path1 and sends the second message 2 based on the encapsulated path2.
  • the node R1 forwards the SRH information in the second message 1 to the node M hop by hop, and the node R2 forwards the SRH information in the second message 2 to the node M hop by hop.
  • node M will receive the first second message and forward it, and discard the rest of the messages. Multiple sending and selective receiving of messages.
  • FIG. 9 is a schematic diagram of another application scenario provided by the embodiment of the present application, and the above-mentioned network node is an intermediate node, that is, the copy node is an intermediate node.
  • the copy node is node R
  • the merge node is node M
  • there are two paths between the copy node and merge node M which are respectively path 1 and path 2, wherein, path 1 indicates the route to node M via node R1 Path, path 2 indicates the path to node M via node R2.
  • node I After node I receives the message, it can iterate to the corresponding policy information 1 according to the color or DSCP method, and based on the policy information 1, send the encapsulated message (which can be called the first message) to node R, and the node
  • R determines that the segment identifier carried by the first packet is the same as the local SID, it determines that the first packet matches the local policy information 2 and obtains the above indication information and quantity information, and performs the first packet according to the indication information and quantity information.
  • the multiple second packets are obtained by copying, and the multiple second packets are respectively sent on the forwarding paths that are respectively encapsulated.
  • policy information 1 may be locally configured by node I or issued by the controller, and the above instruction information, quantity information and policy information 2 may be locally configured by node R or issued by the controller , which is not specifically limited in this embodiment of the present application.
  • the quantity information is included in the policy information, and the policy information is sent by the controller to the replication node through the PCEP message, and the indication information is set by the replication node in the segment identifier.
  • the quantity information is in For the bearer manner in the PCEP message, reference may be made to the relevant descriptions in the foregoing embodiments.
  • the specific process of message forwarding in Figure 9 is as follows:
  • Node R locally configures a segment identifier to carry indication information, which is used to instruct node R to replicate the message, and the segment identifier may be a SID of type End.B6.Replication.
  • node R also receives SRv6 Policy1 issued by the controller, and SRv6 Policy1 contains quantity information, where the quantity information corresponds to the quantity of copied messages.
  • the controller can also issue end-to-end SRv6 Policy 2 to node I, and the path of SRv6 Policy 2 includes the segment identifier of node R.
  • the end-to-end SRv6 Policy2 may also be locally configured by node 1.
  • node I Configure a tunnel policy on node I to specify the tunnel SID list between node I and node E.
  • node I uses color or DSCP to direct the message to the SRv6 Policy 2, and encapsulates the flow identifier FI, serial number SN, SRH information and IPv6 header 1 for the message, where the SRH information is SRH[E ,M,R,I].
  • Node I forwards the encapsulated message (which may be referred to as the first message) to node R according to the SRH information.
  • Node R receives the first message from node I, and node R determines that the segment identifier carried by the first message is a local segment identifier, and performs a copy action on the first message based on the indication information carried by its own segment identifier , to obtain a plurality of second packets, wherein the quantity of the second packets corresponds to the quantity indicated by the quantity information in the SRv6 Policy1, and the plurality of second packets are encapsulated according to the SRv6 Policy1.
  • the plurality of second messages include second message 1 and second message 2 .
  • node R encapsulates the first packet in Encap mode to obtain the second packet, that is, applies SRv6 TE Policy by encapsulating the outer IPv6 header and SRH. Therefore, compared with the first message sent by node I, SRH[R1 End.X] and IPv6 header 2 are newly inserted in the second message 1, where node R1 is the node of path 1 between node R and node M Last jump. Correspondingly, compared with the first message, SRH[R2 End.X] and IPv6 header 3 are newly inserted in the second message 2, where node R2 is the last hop of path 2 between node R and node M .
  • the node R forwards the second message 1 to the node R1 according to the SRH[R1 End.X] in the second message 1, and the node R forwards the second message 1 according to the SRH[R2 End.X] in the second message 2 Text 2 is forwarded to node R2.
  • Node R1 receives the second message 1, and forwards it to node M according to the SRH[E, M, R, I] in the second message 1; node R2 receives the second message 2, and according to the second message SRH[E,M,R,I] in 2 is forwarded to node M.
  • the node E After receiving the second message sent by the node, the node E obtains the service data from the second message.
  • FIG. 10 is a schematic diagram of another application scenario provided by the embodiment of the present application.
  • the replication node R acquires indication information and quantity information from the local or the controller, wherein the indication information is used to instruct the replication node R to replicate the message, and the quantity information corresponds to the quantity of the replicated message.
  • the SRPolicy configured on the replication node R contains four forwarding paths, namely path 1 (path1), path 2 (path2), path 3 (path3) and path 4 (path4), and path1 indicates the path to the merge node M via node R1
  • path2 indicates the path to merge node M via node R2
  • path3 indicates the path to merge node M via node R3
  • path4 indicates the path to merge node M via node R4.
  • the replication node R obtains three second messages after executing the replication action, which are respectively message 1, message 2 and message 3, and the replication node R can obtain three second messages from the SRPolicy Select three forwarding paths for the encapsulation of the second message. For example, use path1 to encapsulate message 1, use path2 to encapsulate message 2, and use path path3 to encapsulate message 3, then copy node R forwards message 1 based on path1, and based on path2 Forward packet 2 and forward packet 3 based on path3.
  • the replication node R detects that path3 among the selected forwarding paths path1, path2, and path3 fails. Since the number of forwarding paths included in the SR Policy on the replication node R is greater than the number of the above-mentioned second messages, the replication node R R can select path4 to replace the faulty path3, that is, use path4 to encapsulate packet 3 and forward packet 3 based on path4. It can be seen from this that when a path failure occurs in a multi-sending and selective-receiving scenario, the replication node in the embodiment of the present application can flexibly select another forwarding path to replace, thereby improving the reliability of packet forwarding.
  • the replication node R detects that two of the three selected forwarding paths path1, path2, and path3 are faulty, and the number of remaining unselected forwarding paths in the SR Policy is 1, so it is impossible to select three forwarding paths The forwarding path is used for the encapsulation of the second message.
  • the replication node R can send an alarm message to the controller, and the controller can adjust the quantity indicated by the quantity information according to the alarm information and re-issue the SR Policy to the replication node R.
  • the Binding SID when the Binding SID carries quantity information, if the above failure occurs, only the Binding SID needs to be dynamically updated, and the controller does not need to re-issue the SR Policy, thereby realizing the decoupling of quantity information and policy information.
  • FIG. 11 is a schematic diagram of a functional structure of a network device provided by an embodiment of the present application.
  • the network device 30 includes an acquiring unit 310 , a copying unit 312 and a sending unit 314 .
  • the network device 30 may be implemented by hardware, software, or a combination of software and hardware.
  • the obtaining unit 310 is configured to obtain indication information and quantity information, wherein the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the quantity of the copied message; the obtaining unit 310 is also used to obtain the first report
  • the copying unit 312 is used to copy the first message according to the indication information to obtain multiple second messages, and the quantity of the multiple second messages corresponds to the quantity information; the sending unit 314 is used to send the multiple second messages packets, at least two second packets among the plurality of second packets encapsulate different forwarding path information.
  • Each functional module of the network device 30 may be used to implement the method described in the embodiment of FIG. 4 .
  • the obtaining unit 310 may be used to perform S101 and S102
  • the copying unit 312 may be used to perform S103
  • the sending unit 314 may be used to perform S104.
  • Each functional module of the network device 30 may also be used to implement the method described in the embodiment of FIG. 4 , and for the sake of brevity of the description, details are not repeated here.
  • the application also provides a network device.
  • the network device 40 includes: a processor 401 , a communication interface 402 , a memory 403 and a bus 404 .
  • the processor 401 , the memory 403 and the communication interface 402 communicate through a bus 404 .
  • the network device 40 may be a network device such as a router or a switch, or may be a component for the above network device capable of implementing the above method, such as a single board, a chip, a line card, and the like. It should be understood that the present application does not limit the number of processors and memories in the network device 40 .
  • the bus 404 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, etc.
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one line is used in FIG. 12 , but it does not mean that there is only one bus or one type of bus.
  • the bus 404 may include pathways for transferring information between various components of the network device 40 (eg, memory 403 , processor 401 , communication interface 402 ).
  • the processor 401 may include any one or more of processors such as a central processing unit (central processing unit, CPU), a microprocessor (micro processor, MP), or a digital signal processor (digital signal processor, DSP).
  • processors such as a central processing unit (central processing unit, CPU), a microprocessor (micro processor, MP), or a digital signal processor (digital signal processor, DSP).
  • the memory 403 is used to provide a storage space, in which data such as operating systems and computer programs can be stored.
  • Memory 403 can be random access memory (random access memory, RAM), erasable programmable read only memory (erasable programmable read only memory, EPROM), read-only memory (read-only memory, ROM), or portable read-only memory One or more combinations of memory (compact disc read memory, CD-ROM), etc.
  • the memory 403 may exist independently, or may be integrated inside the processor 401 .
  • Communication interface 402 may be used to provide information input or output to processor 401 .
  • the communication interface 402 can be used to receive data sent from the outside and/or send data to the outside, and can be a wired link interface such as an Ethernet cable, or a wireless link (such as Wi-Fi, Bluetooth, general wireless transmission, etc.) interface.
  • the communication interface 402 may further include a transmitter (such as a radio frequency transmitter, an antenna, etc.) or a receiver coupled with the interface.
  • the processor 401 in the network device 40 is configured to read the computer program stored in the memory 403 to execute the aforementioned method, such as the message sending method described in FIG. 4 .
  • the network device 40 can be one or more modules in the execution subject of the method shown in FIG. 4 , and the processor 401 can be used to read one or more computer programs stored in the memory 403 , which does the following:
  • the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the quantity of the copied message; and obtaining the first message;
  • the above-mentioned multiple second packets are sent by the sending unit 314, and at least two of the multiple second packets encapsulate different forwarding path information.
  • storage medium includes read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory ( Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically-Erasable Programmable Read-Only Memory, EEPROM, Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
  • Read-Only Memory Read-Only Memory
  • RAM Random Access Memory
  • PROM Programmable Read-only Memory
  • PROM Programmable Read-only Memory
  • EPROM Erasable Programmable Read Only Memory
  • OTPROM One-time Programmable Read-Only Memory
  • EEPROM Electrically-Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • the essence of the technical solution of the present application or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products.
  • the computer program product is stored in a storage medium, including several instructions. So that a device (which may be a personal computer, a server, or a network device, a robot, a single-chip microcomputer, a chip, a robot, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application.

Abstract

Disclosed in the present application are a message sending method and apparatus. The method comprises: a network node duplicates a first message according to acquired indication information, so as to obtain a plurality of second messages, wherein the number of the plurality of second messages corresponds to number information that is acquired by the network node; and the network node sends the plurality of second messages, wherein at least two second messages among the plurality of second messages are encapsulated with different forwarding path information. By means of the method, a message is duplicated according to indication information and number information, such that the duplication rate of the message by a network node can be improved in a multi-sending selective-receiving scenario, and fast duplication and forwarding of the message can be realized.

Description

一种报文发送方法及装置A message sending method and device
本申请要求于2021年11月2日提交中国知识产权局、申请号为202111288608.5、申请名称为“一种报文发送方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the China Intellectual Property Office on November 2, 2021, with application number 202111288608.5, and application title "A Method and Device for Sending Messages", the entire contents of which are incorporated herein by reference. Applying.
技术领域technical field
本申请涉及网络通信技术领域,尤其涉及一种报文发送方法及装置。The present application relates to the technical field of network communication, and in particular to a message sending method and device.
背景技术Background technique
段路由策略(SR Policy)是一种隧道引流技术。SR Policy包含至少一条候选路径,每条候选路径有一个偏好值(Preference),Preference最高的候选路径作为主路径。每条候选路径具有至少一个段列表(Segment List),每个段列表指示一条从源到目的地的端到端路径。为了使段路由具有冗余保护的能力,提出了冗余策略(Redundancy Policy)。冗余策略是指在复制节点和合并节点之间启用数据包复制和实例化多个有序段列表,以引导同一个流通过SR域中的不同路径。Segment Routing Policy (SR Policy) is a tunnel diversion technology. SR Policy contains at least one candidate path, each candidate path has a preference value (Preference), and the candidate path with the highest Preference is the main path. Each candidate path has at least one segment list (Segment List), and each segment list indicates an end-to-end path from source to destination. In order to enable segment routing to have the capability of redundancy protection, a redundancy policy (Redundancy Policy) is proposed. The redundancy strategy refers to enabling packet replication and instantiating multiple ordered segment lists between the copy node and the merge node to guide the same flow through different paths in the SR domain.
一般地,通过SR Policy中存在Preference相同的候选路径来表示该SR Policy为冗余策略,通过相同Preference的候选路径的数量表示报文的复制数量。因此,当报文到达复制节点时,复制节点需要查找SR Policy中所有候选路径的Preference才能确定SR Policy是否是冗余策略以及报文的复制份数。但上述定义的冗余策略中对于Preference的设置改变了SR Policy中Preference的语义,且确定SR Policy为冗余策略的过程繁琐复杂、耗时长。Generally, the existence of candidate paths with the same Preference in the SR Policy indicates that the SR Policy is a redundant policy, and the number of candidate paths with the same Preference indicates the number of packet replications. Therefore, when the packet arrives at the replication node, the replication node needs to search the Preferences of all candidate paths in the SR Policy to determine whether the SR Policy is a redundancy policy and the number of copies of the packet. However, the setting of Preference in the redundant policy defined above changes the semantics of Preference in SR Policy, and the process of determining SR Policy as a redundant policy is cumbersome and time-consuming.
发明内容Contents of the invention
本申请公开了一种报文发送方法及装置,提高了多发选收场景中网络节点对报文的复制速率,能够快速实现报文的复制和转发,提高了报文转发的可靠性。The present application discloses a message sending method and device, which improves the copying rate of the message by the network node in the multi-sending and selective-receiving scenario, can quickly realize the copying and forwarding of the message, and improves the reliability of message forwarding.
第一方面,本申请提供了一种报文发送方法,应用于网络节点,该方法包括:获取指示信息和数量信息,指示信息用于指示网络节点对报文进行复制,数量信息对应于复制报文的数量;获得第一报文;根据指示信息复制第一报文得到多个第二报文,多个第二报文的数量与数量信息对应;发送多个第二报文,多个第二报文中至少两个第二报文封装了不同的转发路径信息。In the first aspect, the present application provides a method for sending a message, which is applied to a network node. The method includes: obtaining instruction information and quantity information, the instruction information is used to instruct the network node to copy the message, and the quantity information corresponds to the copy message The number of texts; obtain the first message; copy the first message according to the instruction information to obtain multiple second messages, the number of multiple second messages corresponds to the quantity information; send multiple second messages, multiple second messages At least two second packets in the two packets encapsulate different forwarding path information.
其中,网络节点可以是报文转发路径的头节点或中间节点。头节点可以是SR或SRv6网络中的入节点(Ingress Node),中间节点可以是SR或SRv6网络中除入节点和出节点(Egress Node)以外的节点。需要说明的是,在本申请中,网络节点也可以称作复制节点。Wherein, the network node may be a head node or an intermediate node of the packet forwarding path. The head node can be the ingress node (Ingress Node) in the SR or SRv6 network, and the intermediate node can be a node other than the ingress node and the egress node (Egress Node) in the SR or SRv6 network. It should be noted that, in this application, a network node may also be referred to as a replication node.
上述方法中,通过指示信息为网络节点定义了一种复制行为,通过数量信息可以直接地指示复制报文的数量,使得网络节点在报文多发场景下可以高效地根据指示信息对报文执行复制动作以及根据数量信息确定报文的复制份数。另外,网络节点还可以灵活地选择报文的封装路径,实现了报文的多发,提高了报文的转发效率。In the above method, a copying behavior is defined for the network nodes through the indication information, and the number of copied messages can be directly indicated through the quantity information, so that the network nodes can efficiently perform copying of the messages according to the indication information in the scenario of frequent message sending action and determine the number of copies of the message based on the quantity information. In addition, the network nodes can also flexibly select the encapsulation path of the message, which realizes multiple sending of the message and improves the forwarding efficiency of the message.
可选地,指示信息和数量信息包含在策略信息中。Optionally, the indication information and quantity information are included in the policy information.
实施上述实现方式,策略信息中携带指示信息和数量信息,使得网络节点可以快速确定报文的多发,有利于提高报文的转发效率。Implementing the above implementation manner, the policy information carries indication information and quantity information, so that network nodes can quickly determine the frequent sending of messages, which is beneficial to improve the efficiency of message forwarding.
进一步地,获取指示信息和数量信息,包括:接收控制器发送的通告消息,通告消息包含上述策略信息;根据通告消息获取指示信息和数量信息。Further, acquiring the indication information and the quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; acquiring the indication information and the quantity information according to the notification message.
实施上述实现方式,指示信息和数量信息可以通过控制器直接下发给网络节点,可以有效减轻网络节点的运行压力。By implementing the above implementation manner, the indication information and quantity information can be directly sent to the network nodes through the controller, which can effectively reduce the operating pressure of the network nodes.
可选地,指示信息包含在策略信息中,数量信息包含在网络节点的段标识。Optionally, the indication information is included in the policy information, and the quantity information is included in the segment identifier of the network node.
实施上述实现方式,数量信息与策略信息解耦,如此,在多发选收场景中若某条转发路径出现故障,可以动态地更新数量信息即可,无需更新策略信息,能提高转发路径的选择效率,提高了报文转发的可靠性。Implementing the above implementation method, the quantity information and the policy information are decoupled. In this way, if a forwarding path fails in the multi-send and selective-receiving scenario, the quantity information can be dynamically updated without updating the policy information, which can improve the selection efficiency of the forwarding path , improving the reliability of message forwarding.
进一步地,第一报文包含网络节点的段标识,获取指示信息和数量信息,包括:接收控制器发送的通告消息,通告消息包含上述策略信息;根据通告消息获得指示信息;根据网络节点的段标识获得数量信息。Further, the first message includes the segment identifier of the network node, and obtaining indication information and quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; obtaining the indication information according to the notification message; Identifies the quantity information obtained.
实施上述实现方式,第一报文包含网络节点的段标识,说明该方式适用于网络节点为中间节点,且网络节点可以从控制器下发的策略信息中获取指示信息,从自身的段标识中获取数量信息。Implement the above implementation method, the first message contains the segment identifier of the network node, indicating that this method is applicable to the network node as an intermediate node, and the network node can obtain the instruction information from the policy information issued by the controller, and obtain the instruction information from its own segment identifier. Get quantity information.
进一步地,获取指示信息和数量信息,包括:接收控制器发送的通告消息,通告消息包含上述策略信息;根据通告消息获得指示信息;根据网络节点的段标识获得数量信息。实施上述实现方式,在网络节点为头节点时,网络节点可以从控制器下发的策略信息中获取指示信息,从自身的段标识中获取数量信息,其中,包含数量信息的段标识可以是网络节点在本地配置的,也可以是控制器下发给网络节点的,在此不作具体限定。Further, obtaining the indication information and the quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; obtaining the indication information according to the notification message; obtaining the quantity information according to the segment identifier of the network node. Implementing the above implementation, when the network node is the head node, the network node can obtain the instruction information from the policy information issued by the controller, and obtain the quantity information from its own segment identifier, wherein the segment identifier containing the quantity information can be the network The node is configured locally, or it may be sent by the controller to the network node, which is not specifically limited here.
进一步地,段标识为绑定段标识Binding SID。其中,Binding SID可以是SRv6技术中的IPv6地址或者SR MPLS标签。Further, the segment identifier is a binding segment identifier Binding SID. Wherein, the Binding SID can be an IPv6 address or an SR MPLS label in SRv6 technology.
可选地,数量信息包含在策略信息中,指示信息包含在网络节点的段标识。Optionally, the quantity information is included in the policy information, and the indication information is included in the segment identifier of the network node.
进一步地,第一报文包含网络节点的段标识,获取指示信息和数量信息,包括:接收控制器发送的通告消息,通告消息包含上述策略信息;根据通告消息获得数量信息;根据网络节点的段标识获得指示信息。Further, the first message includes the segment identifier of the network node, and obtaining indication information and quantity information includes: receiving a notification message sent by the controller, the notification message including the above policy information; obtaining quantity information according to the notification message; Identifies access to instructions.
实施上述实现方式,在网络节点为中间节点时,网络节点还可以从控制器下发的策略信息中获取数量信息,从自身的段标识中获取指示信息,其中,包含指示信息的段标识可以是网络节点在本地配置的,也可以是控制器下发给网络节点的,在此不作具体限定。Implementing the above implementation, when the network node is an intermediate node, the network node can also obtain the quantity information from the policy information issued by the controller, and obtain the indication information from its own segment identification, wherein the segment identification containing the indication information can be The network node is configured locally, or it may be sent to the network node by the controller, which is not specifically limited here.
进一步地,网络节点的段标识为绑定至SRv6流量工程策略的具有复制功能的端点(End.B6.Replication)类型的SID。Further, the segment identifier of the network node is an SID of type End.B6.Replication bound to the SRv6 traffic engineering policy.
实施上述实现方式,在网络节点为中间节点时,网络节点可以通过给End.B6(Endpoint Bound to an SRv6 TE Policy)扩展一种Replication行为,即End.B6.Replication指示网络节点执行复制动作,其中,B6表示应用于SRv6 TE Policy,Replication表示对接收到的报文进行复制。Implementing the above implementation method, when the network node is an intermediate node, the network node can extend a Replication behavior to End.B6 (Endpoint Bound to an SRv6 TE Policy), that is, End.B6.Replication instructs the network node to perform a replication action, where , B6 indicates that it is applied to SRv6 TE Policy, and Replication indicates that the received message is copied.
可选地,指示信息和数量信息包含在网络节点的段标识中,段标识为End.B6.Replication类型的SID。Optionally, the indication information and quantity information are included in the segment identifier of the network node, and the segment identifier is a SID of type End.B6.Replication.
实施上述实现方式,设置指示信息和数量信息位于网络节点的段标识中,可使得控制器 只需统一控制策略信息而无需扩展BGP或PCEP等协议,有利于提高设备的兼容性。Implementing the above implementation, setting the indication information and quantity information in the segment identifier of the network node can make the controller only need to unify the control strategy information without expanding protocols such as BGP or PCEP, which is conducive to improving the compatibility of the equipment.
进一步地,第一报文包含网络节点的段标识,获取指示信息和数量信息,包括:根据网络节点的段标识获得数量信息和指示信息。Further, the first message includes the segment identifier of the network node, and obtaining the indication information and the quantity information includes: obtaining the quantity information and the indication information according to the segment identifier of the network node.
实施上述实现方式,在网络节点为中间节点时,网络节点还可以从自身的段标识中获取指示信息和数量信息,由此可以看出数量信息与策略信息解耦,当多发选收场景中若某条转发路径出现故障时,只需更新数量信息即可,提高了网络的冗余保护能力,提高了报文转发的可靠性。Implementing the above implementation method, when the network node is an intermediate node, the network node can also obtain indication information and quantity information from its own segment identifier. It can be seen from this that the quantity information and policy information are decoupled. When a forwarding path fails, it only needs to update the quantity information, which improves the redundancy protection capability of the network and improves the reliability of packet forwarding.
可选地,策略信息为段路由策略SR policy或SRv6 policy。Optionally, the policy information is segment routing policy SR policy or SRv6 policy.
在一些可能的实施例中,策略信息也可以是SR MPLS TE policy或SRv6 TE policy。In some possible embodiments, the policy information may also be SR MPLS TE policy or SRv6 TE policy.
可选地,该方法还包括:在多个第二报文中分别添加相同的报文序列号。Optionally, the method further includes: adding the same message sequence number to multiple second messages respectively.
实施上述实现方式,多个第二报文中的每个第二报文包含相同的序列号,使得多发选收场景中的合并节点在接收到第二报文后,根据序列号可以确定要保留或保存的一个第二报文,通常是第一个接收到的报文,从而实现了报文的选收。Implementing the above implementation, each of the multiple second messages contains the same serial number, so that after receiving the second message, the merging node in the multi-send and selective-receive scenario can determine to keep the Or a second message saved, which is usually the first received message, so that the selective receipt of messages is realized.
可选地,该方法还包括:在多个第二报文中分别添加相同的流标识。Optionally, the method further includes: respectively adding the same flow identifier in multiple second packets.
实施上述实现方式,多个第二报文中的每个第二报文包含相同的流标识,使得多发选收场景中的合并节点在接收到第二报文后,根据流标识和序列号确定要保留或保存的一个第二报文,从而实现了报文的选收。Implementing the above implementation, each of the multiple second messages contains the same flow identifier, so that the merging node in the multi-send and selective-receive scenario determines according to the flow identifier and sequence number after receiving the second message A second message to be reserved or saved, thereby realizing selective receipt of messages.
可选地,通告消息为边界网关协议BGP消息,指示信息和数量信息承载于BGP消息中以下字段中的任意一种:绑定段标识子类型-长度-值Binding SID Sub-TLV字段;或隧道封装属性Tunnel Encaps Attribute字段。Optionally, the notification message is a Border Gateway Protocol BGP message, and the indication information and quantity information are carried in any of the following fields in the BGP message: Binding segment identification subtype-length-value Binding SID Sub-TLV field; or tunnel Encapsulation attribute Tunnel Encaps Attribute field.
实施上述实现方式,当指示信息和数量信息包含在策略信息中,且该策略信息由BGP消息承载的情况下,指示信息和数量信息可以以新增标识字段、TLV字段等方式承载于BGP消息中的Binding SID Sub-TLV字段或Tunnel Encaps Attribute字段。可以看出,通过扩展BGP协议扩展了策略信息的属性。Implement the above implementation, when the indication information and the quantity information are included in the policy information, and the policy information is carried by the BGP message, the indication information and the quantity information can be carried in the BGP message in the form of a new identification field, a TLV field, etc. Binding SID Sub-TLV field or Tunnel Encaps Attribute field. It can be seen that the attributes of the policy information are extended by extending the BGP protocol.
可选地,通告消息为BGP消息,指示信息或数量信息承载于BGP消息中以下字段中的任意一种:绑定段标识子类型-长度-值Binding SID Sub-TLV字段;或隧道封装属性Tunnel Encaps Attribute字段。Optionally, the notification message is a BGP message, and the indication information or quantity information is carried in any of the following fields in the BGP message: the binding segment identification subtype-length-value Binding SID Sub-TLV field; or the tunnel encapsulation attribute Tunnel Encaps Attribute field.
实施上述实现方式,当仅有指示信息包含在策略信息中,且该策略信息由BGP消息承载的情况下,指示信息可以以新增标识字段、TLV字段等方式承载于BGP消息中的Binding SID Sub-TLV字段或Tunnel Encaps Attribute字段;当仅有数量信息包含在策略信息中,且该策略信息由BGP消息承载的情况下,数量信息可以以新增标识字段、TLV字段等方式承载于BGP消息中的Binding SID Sub-TLV字段或Tunnel Encaps Attribute字段。可以看出,通过扩展BGP协议扩展了策略信息的属性。Implement the above implementation, when only the indication information is included in the policy information, and the policy information is carried by the BGP message, the indication information can be carried in the Binding SID Sub in the BGP message in the form of a new identification field, a TLV field, etc. -TLV field or Tunnel Encaps Attribute field; when only the quantity information is included in the policy information, and the policy information is carried by the BGP message, the quantity information can be carried in the BGP message by adding an identification field, TLV field, etc. Binding SID Sub-TLV field or Tunnel Encaps Attribute field. It can be seen that the attributes of the policy information are extended by extending the BGP protocol.
可选地,通告消息为路径计算单元通信协议PCEP消息,指示信息和数量信息承载于PCEP消息中以下字段中的任意一种:扩展关联标识Extended Association ID TLV字段;流量工程路径绑定TE Path Binding TLV字段;段路由策略候选路径标识SR Policy CPath TLV字段;或关联信息Association Information的新增类型-长度-值TLV字段。Optionally, the notification message is a path computation element communication protocol PCEP message, and the indication information and quantity information are carried in any of the following fields in the PCEP message: Extended Association ID TLV field; traffic engineering path binding TE Path Binding TLV field; segment routing policy candidate path identifier SR Policy CPath TLV field; or new type-length-value TLV field of association information Association Information.
实施上述实现方式,当指示信息和数量信息包含在策略信息中,且该策略信息由PCEP消息承载的情况下,指示信息和数量信息可以以新增标识字段、TLV字段等方式承载于PCEP 消息中的Extended Association ID TLV字段、TE Path Binding TLV字段等字段中的任意一种。可以看出,通过扩展PCEP协议扩展了策略信息的属性。Implementation of the above implementation, when the indication information and quantity information are included in the policy information, and the policy information is carried by the PCEP message, the indication information and quantity information can be carried in the PCEP message in the form of a new identification field, TLV field, etc. Any one of the fields such as the Extended Association ID TLV field, TE Path Binding TLV field, etc. It can be seen that the attributes of the policy information are extended by extending the PCEP protocol.
可选地,通告消息为PCEP消息,指示信息或数量信息承载于PCEP消息中以下字段中的任意一种:扩展关联标识Extended Association ID TLV字段;流量工程路径绑定TE Path Binding TLV字段;段路由策略候选路径标识SR Policy CPath TLV字段;或关联信息Association Information的新增类型-长度-值TLV字段。Optionally, the notification message is a PCEP message, and the indication information or quantity information is carried in any of the following fields in the PCEP message: Extended Association ID TLV field; traffic engineering path binding TE Path Binding TLV field; segment routing Policy candidate path identification SR Policy CPath TLV field; or the newly added type-length-value TLV field of Association Information.
实施上述实现方式,当仅有指示信息包含在策略信息中,且该策略信息由PCEP消息承载的情况下,指示信息可以以新增标识字段、TLV字段等方式承载于PCEP消息中的Extended Association ID TLV字段、TE Path Binding TLV字段等字段中的任意一种;当仅有数量信息包含在策略信息中,且该策略信息由PCEP消息承载的情况下,数量信息可以以新增标识字段、TLV字段等方式承载于PCEP消息中的Extended Association ID TLV字段、TE Path Binding TLV字段等字段中的任意一种。可以看出,通过扩展PCEP协议扩展了策略信息的属性。Implement the above implementation, when only the indication information is included in the policy information, and the policy information is carried by the PCEP message, the indication information can be carried in the Extended Association ID in the PCEP message by adding an identification field, a TLV field, etc. Any one of the TLV field, TE Path Binding TLV field and other fields; when only the quantity information is included in the policy information, and the policy information is carried by the PCEP message, the quantity information can be added with the identification field and TLV field Any one of the fields such as the Extended Association ID TLV field and the TE Path Binding TLV field in the PCEP message. It can be seen that the attributes of the policy information are extended by extending the PCEP protocol.
可选地,转发路径信息为策略信息中包含的段标识列表SID List。Optionally, the forwarding path information is a segment identification list SID List included in the policy information.
可选地,多个第二报文中至少两个第二报文封装了不同的转发路径信息,包括:多个第二报文中至少两个第二报文封装了不同的SID List,SID List对应于多个候选路径中一个路径的SID List,多个候选路径是根据策略信息的各个候选路径的偏好值preference确定的。Optionally, at least two of the multiple second packets encapsulate different forwarding path information, including: at least two of the multiple second packets encapsulate different SID Lists, and the SID The List corresponds to the SID List of one path among multiple candidate paths, and the multiple candidate paths are determined according to the preference value preference of each candidate path in the policy information.
例如,可以以候选路径为选取单元,从策略信息中一次选取出M个候选路径,对于M个候选中的每个候选路径,可以根据该候选路径中的各个SID List的权重确定一个SID List,其中,SID List表示一条转发路径(或简称路径)。For example, the candidate path can be used as the selection unit, and M candidate paths can be selected from the policy information at a time, and for each candidate path in the M candidates, a SID List can be determined according to the weight of each SID List in the candidate path, Wherein, the SID List represents a forwarding path (or path for short).
实施上述实现方式,可以灵活地选择SID List用于第二报文的封装,能够提高第二报文的封装速率。By implementing the above implementation manner, the SID List can be flexibly selected for encapsulation of the second message, and the encapsulation rate of the second message can be improved.
可选地,多个候选路径是根据各个候选路径的偏好值preference按照从大到小的顺序确定。Optionally, the multiple candidate paths are determined in descending order according to the preference value preference of each candidate path.
可选地,在多个候选路径的第一候选路径被选中时,第一候选路径的标识指示第一候选路径被选中。Optionally, when the first candidate path of the plurality of candidate paths is selected, the identifier of the first candidate path indicates that the first candidate path is selected.
例如,M个候选路径可以是分多次从策略信息中选取的。具体地,先从策略信息中选择最大preference对应的候选路径1用于一个第二报文的封装,并将候选路径1的标识置位以指示候选路径1被选中;然后从策略信息中剩余标识未被置位的候选路径中选择当前最大preference对应的候选路径2用于一个第二报文的封装,并将候选路径2的标识置位以指示候选路径2被选中,…,如此操作,直至从策略信息中选出的候选路径的数量为M。For example, the M candidate paths may be selected from policy information multiple times. Specifically, first select the candidate path 1 corresponding to the maximum preference from the policy information for the encapsulation of a second packet, and set the flag of the candidate path 1 to indicate that the candidate path 1 is selected; then the remaining flags from the policy information Select the candidate path 2 corresponding to the current maximum preference from the candidate paths that are not set to be used for the encapsulation of a second message, and set the flag of the candidate path 2 to indicate that the candidate path 2 is selected, ..., and so on until The number of candidate paths selected from policy information is M.
实施上述实现方式,为策略信息中的候选路径增加标识以指示该候选路径是否被选中,如此可以实现对现有策略流程的复用,即每次为第二报文选中的候选路径为策略信息中当前最大preference对应的候选路径。Implement the above implementation method, add an identifier to the candidate path in the policy information to indicate whether the candidate path is selected, so that the reuse of the existing policy process can be realized, that is, the candidate path selected for the second message every time is the policy information The candidate path corresponding to the current maximum preference in .
可选地,多个第二报文中至少两个第二报文封装了不同的转发路径信息,包括:多个第二报文中至少两个第二报文封装了不同的SID List,多个第二报文中各个第二报文封装的SID List对应策略信息中的同一条候选路径。Optionally, at least two of the multiple second packets encapsulate different forwarding path information, including: at least two of the multiple second packets encapsulate different SID Lists, and multiple The SID List encapsulated in each second message in each second message corresponds to the same candidate path in the policy information.
可选地,SID List基于自身的权重weight对多个第二报文进行负载分担。Optionally, the SID List performs load sharing on multiple second packets based on its own weight.
实施上述实现方式,多个第二报文中各个第二报文封装的SID List可以根据自身的weight实现负载分担,有利于提高网络的数据处理能力。By implementing the above implementation method, the SID List encapsulated in each second message in multiple second messages can realize load sharing according to its own weight, which is conducive to improving the data processing capability of the network.
可选地,指示信息和数量信息为网络节点在本地配置的,该方法还包括:向控制器发送边界网关协议链路状态BGP-LS消息,BGP-LS消息包括指示信息和数量信息,指示信息和数量信息承载于BGP-LS消息中以下字段中的任意一种:流量工程策略描述符TE Policy Descriptors;或段路由策略候选路径描述符SR Policy Candidate Path Descriptor中。Optionally, the indication information and the quantity information are locally configured by the network node, and the method further includes: sending a Border Gateway Protocol link state BGP-LS message to the controller, the BGP-LS message including the indication information and the quantity information, and the indication information and quantity information is carried in any of the following fields in the BGP-LS message: traffic engineering policy descriptor TE Policy Descriptors; or segment routing policy candidate path descriptor SR Policy Candidate Path Descriptor.
示例性地,若指示信息和数量信息由网络节点在本地配置,在网络节点为头节点时,指示信息和数量信息可以均包含于策略信息中,或者,指示信息包含在策略信息中但数量信息包含在段标识中,在此不作具体限定。在网络节点为中间节点时,指示信息和数量信息的承载方式可以是以下中的任意一种:(1)指示信息和数量信息可以均包含于策略信息中;(2)指示信息包含在策略信息中但数量信息包含在网络节点的段标识中;(3)指示信息包含在段标识,数量信息包含在策略信息中;(4)指示信息和数量信息包含在网络节点的段标识中。Exemplarily, if the indication information and the quantity information are configured locally by the network node, when the network node is the head node, both the indication information and the quantity information may be included in the policy information, or the indication information is included in the policy information but the quantity information Included in the segment identifier, which is not specifically limited here. When the network node is an intermediate node, the bearing mode of the indication information and the quantity information can be any of the following: (1) both the indication information and the quantity information can be included in the policy information; (2) the indication information can be included in the policy information But the quantity information is included in the segment identifier of the network node; (3) the instruction information is included in the segment identifier, and the quantity information is included in the policy information; (4) the instruction information and the quantity information are included in the segment identifier of the network node.
示例性地,指示信息可以是H.Encap.Replication或H.Insert.Replication指令,以执行对报文的复制动作,数量信息可以在网络节点的Binding SID的参数arguments中承载。Exemplarily, the indication information may be an H.Encap.Replication or H.Insert.Replication command to execute a copy action on the packet, and the quantity information may be carried in arguments of the Binding SID of the network node.
示例性地,在网络节点为中间节点时,段标识可以是End.B6.Replication类型的SID,数量信息可以承载于End.B6.Replication类型的SID的arguments中。Exemplarily, when the network node is an intermediate node, the segment identifier may be an End.B6.Replication type SID, and the quantity information may be carried in arguments of the End.B6.Replication type SID.
实施上述实现方式,指示信息和数量信息可以以新增标识字段、TLV字段等方式承载于BGP-LS消息中的TE Policy Descriptors和SR Policy Candidate Path Descriptor等字段中的任意一种,由此,网络节点通过BGP-LS扩展向控制器通报冗余策略的表示。To implement the above implementation, the indication information and quantity information can be carried in any one of the fields such as TE Policy Descriptors and SR Policy Candidate Path Descriptor in the BGP-LS message in the form of newly added identification field, TLV field, etc., thus, the network Nodes inform the controller of the representation of the redundancy policy via BGP-LS extensions.
第二方面,本申请提供了一种报文发送装置,所述装置可以为网络设备或网络设备的一部分。所述装置用于执行第一方面或第一方面的任意一种可能的设计中的方法。具体地,所述装置包括用于执行第一方面或第一方面的任意一种可能的设计中的方法的单元。In a second aspect, the present application provides a device for sending a message, and the device may be a network device or a part of the network device. The device is used to execute the method in the first aspect or any possible design of the first aspect. Specifically, the apparatus includes a unit for performing the method in the first aspect or any possible design of the first aspect.
第三方面,本申请提供了一种装置,该装置包括处理器和存储器,其中,存储器用于存储程序指令;所述处理器调用所述存储器中的程序指令,使得装置执行第一方面或者第一方面的任一可能的实现方式中的方法。In a third aspect, the present application provides a device, which includes a processor and a memory, wherein the memory is used to store program instructions; the processor invokes the program instructions in the memory, so that the device executes the first aspect or the first aspect. A method in any possible implementation of an aspect.
第四方面,本申请提供了一种计算机可读存储介质,包括指令,当该指令被计算机执行时,实现第一方面或者第一方面的任一可能的实现方式中的方法的部分或全部操作。In a fourth aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions are executed by a computer, part or all of the operations of the method in the first aspect or any possible implementation of the first aspect are realized. .
第五方面,本申请提供了一种计算机程序产品,该计算机程序软件产品包括程序,当该程序被处理器执行时,实现前述第一方面或者第一方面的任一可能的实施例中的所述方法的部分或全部操作。该计算机程序产品可以为一个软件安装包,在需要使用前述第一方面的任一种可能的设计提供的方法的情况下,可以下载该计算机程序产品并在装置上执行该计算机程序产品,以实现第一方面或者第一方面的任一可能的实施例中的所述方法。In a fifth aspect, the present application provides a computer program product, the computer program software product includes a program, and when the program is executed by a processor, all of the aforementioned first aspect or any possible embodiment of the first aspect can be realized. Some or all of the operations described above. The computer program product may be a software installation package, and if the method provided by any possible design of the aforementioned first aspect needs to be used, the computer program product may be downloaded and executed on the device to realize The method in the first aspect or any possible embodiment of the first aspect.
第六方面,本申请提供了一种系统,包括第二方面所述的装置和控制器,其中,控制器用于向第二方面所述的装置发送前述第一方面中的指示信息和/或数量信息,第二方面所述的装置用于执行前述第一方面中任一可能的实现方式中的方法的部分或全部操作。In a sixth aspect, the present application provides a system, including the device described in the second aspect and a controller, wherein the controller is configured to send the indication information and/or the quantity in the first aspect to the device described in the second aspect information, the device described in the second aspect is configured to perform part or all of the operations of the method in any possible implementation manner of the foregoing first aspect.
附图说明Description of drawings
图1是一种段路由策略的模型示意图;Fig. 1 is a schematic diagram of a segment routing strategy model;
图2是一种段路由网络的冗余过程的示意图;Fig. 2 is a schematic diagram of a redundancy process of a segment routing network;
图3是本申请实施例提供的一种系统架构示意图;FIG. 3 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图4是本申请实施例提供的一种报文发送方法的流程图;FIG. 4 is a flow chart of a message sending method provided by an embodiment of the present application;
图5是本申请实施例提供的一种指示信息和数量信息的承载示意图;Fig. 5 is a schematic diagram of carrying indication information and quantity information provided by an embodiment of the present application;
图6A是本申请实施例提供的一种指示信息和数量信息的承载示意图;FIG. 6A is a schematic diagram of carrying indication information and quantity information provided by an embodiment of the present application;
图6B是本申请实施例提供的又一种指示信息和数量信息的承载示意图;FIG. 6B is a schematic diagram of carrying another indication information and quantity information provided by the embodiment of the present application;
图6C是本申请实施例提供的又一种指示信息和数量信息的承载示意图;FIG. 6C is a schematic diagram of carrying another indication information and quantity information provided by the embodiment of the present application;
图7是本申请实施例提供的又一种指示信息和数量信息的承载示意图;FIG. 7 is a schematic diagram of carrying another indication information and quantity information provided by the embodiment of the present application;
图8是本申请实施例提供的一种应用场景示意图;FIG. 8 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图9是本申请实施例提供的又一种应用场景示意图;FIG. 9 is a schematic diagram of another application scenario provided by the embodiment of the present application;
图10是本申请实施例提供的又一种应用场景示意图;Fig. 10 is a schematic diagram of another application scenario provided by the embodiment of the present application;
图11是本申请本实施例提供的一种网络设备的功能结构示意图;FIG. 11 is a schematic diagram of a functional structure of a network device provided in this embodiment of the present application;
图12是本申请本实施例提供的一种网络设备的结构示意图。FIG. 12 is a schematic structural diagram of a network device provided in this embodiment of the present application.
具体实施方式Detailed ways
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。本申请实施例中的说明书和权利要求书中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。Terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The terms "first" and "second" in the description and claims in the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order.
为了便于理解,下面先对本申请实施例可能涉及的相关术语等进行介绍。For ease of understanding, the following first introduces related terms and the like that may be involved in the embodiments of the present application.
分段路由(Segment Routing,SR)是指将网络路径分成一个个段,并在路径头节点往报文中插入分段信息,中间节点只需要按照报文里携带的分段信息转发即可。这些段可称为Segment,并通过段标识(Segment ID,SID)来标识。在头节点通过对段和网络节点的SID进行有序排列可获得段列表(Segment List),段列表也可以称作段标识列表(Segment ID List,SID List)。一个段列表用于指示一条转发路径。SR支持多协议标签交换(Multi-Protocol Label Switching,MPLS)和IPv6两种数据平面,其中,基于MPLS数据平面的SR称作SR-MPLS,其SID为MPLS标签(Label);基于IPv6数据平面的SR称为SRv6,其SID为IPv6地址。Segment routing (Segment Routing, SR) refers to dividing the network path into segments, and inserting segment information into the message at the path head node, and the intermediate nodes only need to forward according to the segment information carried in the message. These segments may be referred to as Segments and are identified by a Segment ID (SID). The segment list (Segment List) can be obtained by orderly arranging the SIDs of the segments and network nodes at the head node, and the segment list can also be called a segment identification list (Segment ID List, SID List). A segment list is used to indicate a forwarding path. SR supports Multi-Protocol Label Switching (Multi-Protocol Label Switching, MPLS) and IPv6 two data planes, among them, the SR based on MPLS data plane is called SR-MPLS, and its SID is MPLS label (Label); SR is called SRv6, and its SID is an IPv6 address.
段路由策略(SR Policy)是在SR技术基础上发展的一种新的隧道引流技术。SR Policy的路径可以通过段列表表示,每个段列表用于指示一条从源到目的地的端到端路径,并指示网络中的设备遵循指定的路径转发报文,而无需遵循内部网关IGP计算的最短路径转发报文。参见图1,图1是一种SR Policy模型的示意图,可以看出,段路由策略SR Policy由三部分标识,分别为头端绑定段标识(Binding Segment ID,也可以简称Binding SID或BSID)、颜色(Color)和端点(Endpoint),其中,头端BSID表示SR Policy的始发节点的SID,即SR Policy的生成或实现的位置;Color用于区分同一头端和端点对之间的多条SR Policy,Endpoint表示SR Policy的目的地节点。SR Policy具有至少一条候选路径(Candidate Path),每条候选路径配置有一个偏好值(Preference)和一个唯一标识该候选路径的BSID,通常将偏好值最高的候选路径作为主路径或活动候选路径。每条候选路径包含至少一个段列表(Segment List),段列表也可以称作段标识列表,每个段列表还可以配置有用于负载分担的权重(Weight),每个段列表包含至少一个SID,段列表中的SID为转发路径上各个节点到下一跳的SID。Segment routing policy (SR Policy) is a new tunnel diversion technology developed on the basis of SR technology. The path of SR Policy can be represented by a segment list, each segment list is used to indicate an end-to-end path from source to destination, and instructs devices in the network to follow the specified path to forward packets without following the internal gateway IGP calculation The shortest path to forward packets. See Figure 1. Figure 1 is a schematic diagram of an SR Policy model. It can be seen that the segment routing policy SR Policy is identified by three parts, which are the head-end binding segment ID (Binding Segment ID, also referred to as Binding SID or BSID) , color (Color) and endpoint (Endpoint), where the head-end BSID represents the SID of the originating node of the SR Policy, that is, the location where the SR Policy is generated or implemented; Color is used to distinguish multiple An SR Policy, Endpoint indicates the destination node of the SR Policy. SR Policy has at least one candidate path (Candidate Path). Each candidate path is configured with a preference value (Preference) and a BSID that uniquely identifies the candidate path. Usually, the candidate path with the highest preference value is used as the main path or active candidate path. Each candidate path contains at least one segment list (Segment List). The segment list can also be called a segment identification list. Each segment list can also be configured with a weight (Weight) for load sharing. Each segment list contains at least one SID. The SIDs in the segment list are the SIDs from each node on the forwarding path to the next hop.
例如,图1中的SR Policy包含n条候选路径,分别为候选路径[1],…,候选路径[n]。以候选路径[1]为例,候选路径[1]的偏好值为偏好值[1],候选路径[1]包含m个段列表,分别为段列表[11],…,段列表[1m]。以段列表[11]为例,段列表[11]的权重为权重[11],段列表[11]包含i个段标识。For example, the SR Policy in Figure 1 contains n candidate paths, which are candidate paths [1], ..., candidate paths [n]. Taking candidate path [1] as an example, the preference value of candidate path [1] is preference value [1], and candidate path [1] contains m segment lists, which are respectively segment list [11], ..., segment list [1m] . Taking the segment list [11] as an example, the weight of the segment list [11] is the weight [11], and the segment list [11] contains i segment identifiers.
冗余保护是实现业务保护的机制之一,为了使段路由具有冗余保护的能力,提出了冗余策略,即在复制节点和合并节点之间启用数据包复制和实例化多个有序段列表,以引导同一个流通过SR域中的不同路径。Redundancy protection is one of the mechanisms to achieve business protection. In order to enable segment routing to have the capability of redundancy protection, a redundancy strategy is proposed, that is, to enable data packet replication and instantiate multiple ordered segments between the copy node and the merge node list to direct the same flow through different paths in the SR domain.
参见图2,图2是一种SR网络的冗余过程的示意图。SR域是参与SR协议的节点或网络设备的集合。在SR域内,节点可以执行入口,传输或出口过程。在SR网络中,头节点和端节点位于SR域之外,而它们之间的路径则穿越SR域。在图2中,节点1为源节点,节点8为端节点,入节点2、节点3、节点4、节点5、节点6和出节点7位于SR域。Referring to FIG. 2 , FIG. 2 is a schematic diagram of a redundancy process of an SR network. An SR domain is a collection of nodes or network devices participating in the SR protocol. Within an SR domain, nodes can perform ingress, transfer or egress procedures. In an SR network, the head node and end node are located outside the SR domain, while the path between them traverses the SR domain. In FIG. 2 , node 1 is a source node, node 8 is an end node, and ingress node 2 , node 3 , node 4 , node 5 , node 6 and egress node 7 are located in the SR domain.
以图2中节点3为复制节点、节点6为合并节点为例说明SR网络冗余保护的转发过程:入节点2从节点1接收到报文后,根据本地SR Policy查找到出节点7的路径并封装段列表;当报文到达复制节点即节点3时,节点3对报文进行复制获得多个转发报文(例如,两个转发报文,分别为报文1和报文2)并分别封装段列表,其中,报文1的段列表指示报文1经节点4、节点6到达出节点7,报文2的段列表指示报文2经节点5、节点6到达出节点7,且每个转发报文携带流标识(Flow Identification,FI)和序列号(Serial Number,SN),流标识和序列号可用于合并节点做报文消除;报文1和报文2经不同的转发路径到达合并节点即节点6,假设节点6先接收到报文1,则判断已存储的数据中是否存在某个报文的流标识和序列号与报文1中的流标识和序列号分别相同,若不存在,则确定报文1为接收到的第一个报文并存储报文1的流标识和序列号,然后,节点6将接收到的第一个报文(即报文1)转发给出节点7,并消除后续接收到的冗余的报文,例如,节点6后续接收到报文2,经比较确定已存储的数据中存在报文1的流标识、序列号与报文2中的流标识、序列号分别相同,故将报文2丢弃。如此,当复制节点与合并节点之间的某条转发路径出现故障或丢包时,业务可以继续通过其他的转发路径传输,从而实现了业务的不中断。Take node 3 as the copy node and node 6 as the merge node in Figure 2 as an example to illustrate the forwarding process of SR network redundancy protection: after the ingress node 2 receives the message from node 1, it finds the path to the egress node 7 according to the local SR Policy And encapsulation section list; When message arrives duplicating node, i.e. node 3, node 3 duplicates message and obtains multiple forwarding messages (for example, two forwarding messages, respectively message 1 and message 2) and respectively Encapsulate the segment list, wherein, the segment list of message 1 indicates that message 1 reaches egress node 7 via node 4 and node 6, and the segment list of message 2 indicates that message 2 reaches egress node 7 via node 5 and node 6, and every A forwarding message carries a flow identification (Flow Identification, FI) and a serial number (Serial Number, SN), and the flow identification and serial number can be used for message elimination by the merge node; message 1 and message 2 arrive through different forwarding paths The merging node is node 6. Assuming that node 6 receives message 1 first, it judges whether there is a flow identifier and serial number of a message in the stored data that are the same as those in message 1. If does not exist, then determine that message 1 is the first message received and store the flow identifier and sequence number of message 1, then node 6 forwards the first message (ie message 1) received to out of node 7, and eliminate redundant messages received subsequently, for example, node 6 subsequently receives message 2, and after comparison, it is determined that the stream identifier and sequence number of message 1 in the stored data are the same as those in message 2 The flow identifiers and sequence numbers of the two are the same, so packet 2 is discarded. In this way, when a certain forwarding path between the duplicating node and the merging node fails or loses packets, the business can continue to be transmitted through other forwarding paths, thereby realizing uninterrupted business.
在一种实现方式中,SR Policy中若存在preference相同的候选路径,则该SR Policy为冗余策略,且冗余策略中preference相同的候选路径的数量在复制节点要作为复制报文的数量。而在SR Policy中,不同候选路径的preference不同,故preference用于确定活动候选路径,用SR policy中的preference作为复制报文的数量的一个参考违背了SR Policy的preference这一参数的语义。另外,上述关于SR Policy为冗余策略的判断复杂、耗时,即需要比较所有候选路径的preference是否有相同以及统计具有相同preference的候选路径的数量。In one implementation, if there are candidate paths with the same preference in the SR Policy, the SR Policy is a redundant policy, and the number of candidate paths with the same preference in the redundant policy is used as the number of replicated packets at the replication node. In the SR Policy, different candidate paths have different preferences, so the preference is used to determine the active candidate path. Using the preference in the SR policy as a reference for the number of copied packets violates the semantics of the parameter preference in the SR Policy. In addition, the above-mentioned judgment about whether the SR Policy is a redundant policy is complex and time-consuming, that is, it is necessary to compare whether the preferences of all candidate paths are the same and to count the number of candidate paths with the same preference.
针对上述问题,本申请实施例提出一种报文发送方法,基于该方法,可以实现在不改变SR Policy的机制下,可以简洁高效地表示冗余策略和报文的复制数量,基于报文的复制数量可以灵活地选择多个转发路径用于报文的多发。In view of the above problems, the embodiment of the present application proposes a message sending method. Based on this method, the redundant policy and the number of copies of the message can be expressed concisely and efficiently without changing the mechanism of the SR Policy. The number of copies can flexibly select multiple forwarding paths for multiple sending of packets.
下面结合附图,对本申请中的技术方案进行描述。The technical solutions in this application are described below in conjunction with the accompanying drawings.
参见图3,图3是本申请实施例提供的一种通信系统的架构示意图。该通信系统用于实现报文的复制以及报文的多发。在图3中,该通信系统包括控制器和多个节点,其中,控制器可以与多个节点通信,多个节点中的任意两个节点之间可以通信。需要说明的是,多个节点中存在复制节点和合并节点。Referring to FIG. 3 , FIG. 3 is a schematic structural diagram of a communication system provided by an embodiment of the present application. The communication system is used to realize the duplication of messages and the multiple sending of messages. In FIG. 3 , the communication system includes a controller and multiple nodes, wherein the controller can communicate with the multiple nodes, and any two nodes in the multiple nodes can communicate with each other. It should be noted that there are copy nodes and merge nodes in multiple nodes.
其中,控制器可以是部署在网络侧的服务器,或者为该服务器中的组件或者芯片。节点可以是路由器,交换机等网络设备,也可以是应用于网络设备中能够执行下述方法的组件,例如单板,线卡,芯片等。Wherein, the controller may be a server deployed on the network side, or a component or chip in the server. A node may be a network device such as a router or a switch, or may be a component used in a network device capable of performing the following method, such as a single board, a line card, or a chip.
在图3中,多个节点至少包括节点A、节点B、节点C、节点D和节点E,其中,节点A可称作SR域的入节点,节点B、节点C和节点D可以称作SR域的中间节点,节点E可以称作SR域的出节点。可以看出,节点A发送的报文经过节点B和节点C可达节点E,以及节点A发送的报文经过节点B和节点D可达节点E。其中,复制节点可以是节点A或节点B,合并节点可以是节点E,复制节点和合并节点之间存在多条可达路径。需要说明的是,本申请实施例并不限定节点A只能与节点B直连,在一些可能的实施例中,节点A与节点B之间也可以存在至少一个节点。In Fig. 3, multiple nodes include at least node A, node B, node C, node D and node E, wherein node A can be called the ingress node of the SR domain, and node B, node C and node D can be called the SR domain The intermediate node of the domain, node E may be called the egress node of the SR domain. It can be seen that the message sent by node A can reach node E through nodes B and C, and the message sent by node A can reach node E through nodes B and node D. Wherein, the copying node may be node A or node B, the merging node may be node E, and there are multiple reachable paths between the copying node and the merging node. It should be noted that this embodiment of the present application does not limit that node A can only be directly connected to node B, and in some possible embodiments, there may be at least one node between node A and node B.
示例性地,复制节点可以从本地或者从控制器获取指示信息和数量信息,复制节点根据指示信息对报文进行复制,获得多个转发报文,多个转发报文的数量与数量信息对应,多个转发报文中的至少两个转发报文封装了不同的转发路径,并根据多个转发报文中各自封装的转发路径发送这多个转发报文,合并节点接收到转发报文后从中选择第一个接收到的转发报文发送。在一些可能的实施例中,若指示信息和数量信息为复制节点从本地获取的,则复制节点还需向控制器发送指示信息和数量信息。Exemplarily, the duplication node may acquire the indication information and quantity information locally or from the controller, and the duplication node duplicates the message according to the indication information to obtain multiple forwarded messages, the number of the multiple forwarded messages corresponds to the quantity information, At least two forwarding packets in the multiple forwarding packets encapsulate different forwarding paths, and send the multiple forwarding packets according to the respective forwarding paths encapsulated in the multiple forwarding packets, and after receiving the forwarding packets, the merge node Select the first received forwarding message to send. In some possible embodiments, if the replication node acquires the indication information and the quantity information locally, the replication node also needs to send the indication information and the quantity information to the controller.
需要说明的是,图3仅为示例性架构图,但不限定图3所示系统包括的网元的数量。虽然图3未示出,但除图3所示的功能实体外,图3还可以包括其他功能实体。另外,本申请实施例提供的方法可以应用于图3所示的通信系统,当然本申请实施例提供的方法也可以适用其他通信系统,本申请实施例对此不予限制。It should be noted that FIG. 3 is only an exemplary architecture diagram, but does not limit the number of network elements included in the system shown in FIG. 3 . Although not shown in FIG. 3 , in addition to the functional entities shown in FIG. 3 , FIG. 3 may also include other functional entities. In addition, the method provided in the embodiment of the present application can be applied to the communication system shown in FIG. 3 , and of course the method provided in the embodiment of the present application can also be applied to other communication systems, which is not limited in the embodiment of the present application.
参见图4,图4是本申请实施例提供的一种报文发送方法的流程图。该方法可以应用于网络节点。该方法包括但不限于以下步骤:Referring to FIG. 4 , FIG. 4 is a flowchart of a method for sending a message provided in an embodiment of the present application. The method can be applied to network nodes. The method includes but is not limited to the following steps:
S101:获取指示信息和数量信息。S101: Obtain indication information and quantity information.
在本申请实施例中,指示信息用于指示网络节点对报文进行复制,数量信息对应复制报文的数量。In this embodiment of the present application, the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the number of copied messages.
例如,数量信息为3,即对接收到的某报文复制三份,复制报文的数量为3。For example, if the quantity information is 3, that is, three copies of a received message are copied, and the number of copied messages is 3.
其中,网络节点可以是头节点或中间节点。头节点可以是SR或SRv6网络中的入节点(Ingress Node),中间节点可以是SR或SRv6网络中除入节点和出节点(Egress Node)以外的节点。需要说明的是,在本申请实施例中,网络节点也可以称作复制节点。Wherein, the network node may be a head node or an intermediate node. The head node can be the ingress node (Ingress Node) in the SR or SRv6 network, and the intermediate node can be a node other than the ingress node and the egress node (Egress Node) in the SR or SRv6 network. It should be noted that, in this embodiment of the present application, a network node may also be referred to as a replication node.
其中,在网络节点为头节点时,上述报文可以因特网协议第4版(Internet protocol version4,IPv4)报文,也可以是因特网协议第6版(Internet protocol version 6,IPv6)报文。在网络节点为中间节点时,上述报文可以是SRv6报文,也可以是SR MPLS报文,本申请实施例不做具体限定。Wherein, when the network node is the head node, the above-mentioned message may be an Internet protocol version 4 (Internet protocol version4, IPv4) message or an Internet protocol version 6 (Internet protocol version 6, IPv6) message. When the network node is an intermediate node, the above message may be an SRv6 message or an SR MPLS message, which is not specifically limited in this embodiment of the present application.
在本申请的一种实施例中,指示信息和数量信息包含在策略信息中。其中,策略信息可以是SR Policy或SRv6 policy,本申请实施例不作具体限定。In an embodiment of the present application, the indication information and the quantity information are included in the policy information. Wherein, the policy information may be SR Policy or SRv6 policy, which is not specifically limited in this embodiment of the present application.
一具体实施中,获取指示信息和数量信息,可以是:接收控制器发送的通告消息,通告消息包含上述策略信息;根据通告消息获取指示信息和数量信息。In a specific implementation, acquiring the indication information and the quantity information may be: receiving a notification message sent by the controller, the notification message including the above policy information; acquiring the indication information and the quantity information according to the notification message.
进一步地,控制器可以通过边界网关协议(Border Gateway Protocol,BGP)扩展下发通告消息,在此情况下,该通告消息为BGP消息,指示信息和数量信息在BGP消息中的承载方式具体可以参见下述方式A1和方式A2:Further, the controller can extend the notification message through the border gateway protocol (Border Gateway Protocol, BGP). In this case, the notification message is a BGP message, and the manner in which the indication information and quantity information are carried in the BGP message can be referred to for details. Mode A1 and Mode A2 as follows:
方式A1:承载于BGP消息的绑定段标识子类型-长度-值Binding SID Sub-TLVMethod A1: Subtype-length-value Binding SID Sub-TLV of the binding segment identifier carried in the BGP message
参见图5,图5示例性地提供了一种指示信息和数量信息在Binding SID Sub-TLV中的承载示意图,其中,图5所示的Binding SID Sub-TLV包括以下字段:Referring to FIG. 5, FIG. 5 exemplarily provides a schematic diagram of carrying indication information and quantity information in the Binding SID Sub-TLV, wherein the Binding SID Sub-TLV shown in FIG. 5 includes the following fields:
类型(Type):取值13,用于指示类型为Binding SID Sub-TLV;Type (Type): The value is 13, which is used to indicate that the type is Binding SID Sub-TLV;
长度(Length):指示Binding SID的长度;Length: indicates the length of the Binding SID;
标志位(Flags):1个字节,其包含1比特的S标志位,用于对“Specified-BSID-only”行为进行编码;1比特的I标志位,用于对“无效时丢弃”行为编码;Flags (Flags): 1 byte, which contains a 1-bit S flag for encoding the "Specified-BSID-only" behavior; a 1-bit I flag for the "discard when invalid" behavior coding;
预留位(Reserved):1个字节,用于功能扩展;Reserved bit (Reserved): 1 byte, used for function expansion;
绑定段标识(Binding SID):指示SR Policy的BSID,若长度为2,则没有携带Binding SID;若长度为6,则Binding SID采用4字节编码;若长度为18,则Binding SID包含16字节的SRv6 SID。Binding SID: indicates the BSID of the SR Policy. If the length is 2, the Binding SID is not carried; if the length is 6, the Binding SID is coded in 4 bytes; if the length is 18, the Binding SID contains 16 bytes of the SRv6 SID.
示例性,参见图5,可以在Binding SID Sub-TLV的标志位Flags中新增至少一个标识字段用于承载上述指示信息和数量信息,例如,第一标志字段用于承载指示信息,第二标识字段用于承载数量信息。对于标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。在一些可能的实施例中,新增的标识字段也可以在Binding SID Sub-TLV中独立于标志位Flags字段存在。Exemplarily, referring to FIG. 5, at least one identification field may be added in the flag bit Flags of the Binding SID Sub-TLV to carry the above-mentioned indication information and quantity information, for example, the first flag field is used to carry the indication information, and the second identification field Fields are used to carry quantity information. The representation of the identification field may be in the form of a bitmap, or in the form of a binary value, which is not specifically limited in this application. In some possible embodiments, the newly added identification field may also exist independently of the Flags field in the Binding SID Sub-TLV.
示例性地,指示信息和数量信息也可以承载于Binding SID Sub-TLV中的不同字段,例如,指示信息可以承载于Binding SID Sub-TLV的Flags字段,数量信息可以承载于Binding SID Sub-TLV的Binding SID字段。Exemplarily, the indication information and the quantity information may also be carried in different fields in the Binding SID Sub-TLV, for example, the indication information may be carried in the Flags field of the Binding SID Sub-TLV, and the quantity information may be carried in the Binding SID Sub-TLV's Binding SID field.
示例性地,指示信息和数量信息也可以承载于Binding SID Sub-TLV中的预留位字段和/或Type字段。Exemplarily, the indication information and quantity information may also be carried in the reserved bit field and/or the Type field in the Binding SID Sub-TLV.
在一些可能的实施例,还可以通过在Binding SID Sub-TLV中新增加一个TLV字段,并在TLV字段中设置标识字段来承载指示信息和数量信息。例如,第一标识字段用于承载指示信息,第二标识字段用于承载数量信息。关于标识字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,第一标识字段可以承载在T字段中,第二标识字段可以承载在V字段,也就是说,指示信息承载在T字段中,数量信息承载在V字段中。一种实现方式中,第一标识字段和第二标识字段可以均承载在T字段中,也就是说,指示信息和数量信息可以均承载于T字段中。一种实现方式中,第一标识字段和第二标识字段可以均承载在V字段中,也就是说,指示信息和数量信息可以均承载于V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述指示信息和数量信息。In some possible embodiments, a new TLV field can also be added in the Binding SID Sub-TLV, and an identification field can be set in the TLV field to carry the indication information and the quantity information. For example, the first identification field is used to carry indication information, and the second identification field is used to carry quantity information. The present application does not specifically limit the carrying manner of the identification field in the TLV field. In a specific implementation manner, the first identification field may be carried in the T field, and the second identification field may be carried in the V field, that is, the indication information is carried in the T field, and the quantity information is carried in the V field. In an implementation manner, both the first identification field and the second identification field may be carried in the T field, that is, both the indication information and the quantity information may be carried in the T field. In an implementation manner, both the first identification field and the second identification field may be carried in the V field, that is, both the indication information and the quantity information may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above indication information and quantity information.
方式A2:承载于BGP消息的隧道封装属性Tunnel Encaps Attribute字段Mode A2: Tunnel Encaps Attribute carried in the BGP message's tunnel encapsulation attribute field
具体地,可以在隧道封装属性Tunnel Encaps Attribute字段的段路由策略编码结构SR Policy Encoding Structure中新定义一个冗余属性Redundancy Attribute,该Redundancy Attribute可以以TLV字段的方式承载指示信息和数量信息。例如,在Redundancy Attribute设置标识字段,其中,第一标识字段用于承载指示信息,第二标识字段用于承载数量信息。关于标识字段在Redundancy Attribute TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,第一标识字段可以承载在Redundancy Attribute TLV的T字段中,第二标识字段可以承载在Redundancy Attribute TLV的V字段。一种实现方式中,第一标识字段和第二标识字段可以均承载在Redundancy Attribute TLV的T字段中。一种实现方式中,第一标识字段和第二标识字段可以均承载在Redundancy Attribute TLV的V字段中。当然,也可以在Redundancy  Attribute TLV的T字段中设置预留的比特位,用于承载上述指示信息和数量信息。Specifically, a redundancy attribute Redundancy Attribute can be newly defined in the segment routing policy encoding structure SR Policy Encoding Structure of the tunnel encapsulation attribute Tunnel Encaps Attribute field, and the Redundancy Attribute can carry indication information and quantity information in the form of a TLV field. For example, an identification field is set in the Redundancy Attribute, wherein the first identification field is used to carry indication information, and the second identification field is used to carry quantity information. This application does not specifically limit the manner in which the identification field is carried in the Redundancy Attribute TLV field. In a specific implementation manner, the first identification field may be carried in the T field of the Redundancy Attribute TLV, and the second identification field may be carried in the V field of the Redundancy Attribute TLV. In an implementation manner, both the first identification field and the second identification field may be carried in the T field of the Redundancy Attribute TLV. In an implementation manner, both the first identification field and the second identification field may be carried in the V field of the Redundancy Attribute TLV. Of course, reserved bits can also be set in the T field of the Redundancy Attribute TLV to carry the above indication information and quantity information.
指示信息和数量信息可以在隧道封装属性(Tunnel Encapsulation Attribute)中使用SR Policy Encoding Structure进行编码。如下示例,提供了一种扩展后的SR Policy Encoding Structure的数据格式:Indication information and quantity information can be encoded using SR Policy Encoding Structure in the Tunnel Encapsulation Attribute. The following example provides an extended SR Policy Encoding Structure data format:
SR Policy SAFI NLFT:<Distinguisher,Policy-color,Endpoint>SR Policy SAFI NLFT: <Distinguisher, Policy-color, Endpoint>
Attributes:Attributes:
Tunnel Encaps Attributes(23)Tunnel Encaps Attributes(23)
Tunnel ype:SR PolicyTunnel type: SR Policy
Binding SIDBinding SID
SRv6 Binding SIDSRv6 Binding SIDs
PreferencePreference
Redundancy AttributeRedundancy Attribute
Prioritypriority
Policy NamePolicy Name
Policy Candidate Path NamePolicy Candidate Path Name
Explicit NULL Label Policy(ENLP)Explicit NULL Label Policy(ENLP)
Segment ListSegment List
WeightWeight
SegmentSegments
可以看出,在原有SR Policy Encoding Structure中新增加了Redundancy Attribute来承载上述指示信息和数量信息,有关指示信息和数量信息在Redundancy Attribute中的承载方式可参考上述A2方式中的相关描述。It can be seen that the Redundancy Attribute is added to the original SR Policy Encoding Structure to carry the above-mentioned indication information and quantity information. For the carrying method of the indication information and quantity information in the Redundancy Attribute, please refer to the relevant description in the above-mentioned A2 method.
进一步地,控制器也可以通过路径计算单元通信协议(Path Computation Element communication Protocol,PCEP)扩展下发通告消息,在此情况下,该通告消息为PCEP消息,指示信息和数量信息在PCEP消息中的承载方式具体可以参见下述方式B1-方式B3:Further, the controller can also extend the notification message through the Path Computation Element communication Protocol (Path Computation Element communication Protocol, PCEP). In this case, the notification message is a PCEP message, and the indication information and quantity information are included in the PCEP message. For the bearing method, please refer to the following method B1-method B3:
方式B1:承载于PCEP消息的扩展关联标识Extended Association ID TLV字段Mode B1: Extended Association ID TLV field carried in the PCEP message
参见图6A的(1),图6A的(1)提供了一种扩展关联标识TLV字段的格式示意图。在图6A的(1)中,扩展关联标识TLV字段包括以下字段:Referring to (1) in FIG. 6A , (1) in FIG. 6A provides a schematic diagram of the format of an extended association identification TLV field. In (1) of FIG. 6A, the extended association identification TLV field includes the following fields:
类型(Type):取值为31,用于指示类型为Extended Association ID TLV;Type (Type): The value is 31, which is used to indicate that the type is Extended Association ID TLV;
长度(Length):取值为8或20,取决于Endpoint中编码的是IPv4或IPv6地址;Length: The value is 8 or 20, depending on whether the IPv4 or IPv6 address is encoded in the Endpoint;
颜色(Color):指示SR Policy的颜色值;Color (Color): indicates the color value of SR Policy;
端点(Endpoint):可以是IPv4或IPv6地址,该值为标识给定头端的SR Policy的元组<color,endpoint>的一部分。Endpoint: Can be an IPv4 or IPv6 address, and this value is part of the tuple <color, endpoint> that identifies the SR Policy for a given headend.
示例性地,可以在Extended Association ID TLV字段中增加标志位字段用于承载数量信息和指示信息。例如,参见图6A中的(2),指示信息和数量信息可以承载于一个标志位字段。又例如,指示信息和数量信息也可以承载于不同的标志位字段,即指示信息也可以承载于第一标志位字段,数量信息承载于第二标志位字段。Exemplarily, a flag bit field may be added to the Extended Association ID TLV field to carry quantity information and indication information. For example, referring to (2) in FIG. 6A , the indication information and quantity information may be carried in a flag bit field. For another example, the indication information and the quantity information may also be carried in different flag fields, that is, the indication information may also be carried in the first flag field, and the quantity information may be carried in the second flag field.
示例性地,也可以使用Extended Association ID TLV字段中的类型字段来承载指示信息和 数量信息。例如,在类型字段中新增多个比特用于承载指示信息和数量信息。在一些可能的实施例中,也可以在类型字段中新增一个比特用于承载指示信息,在Extended Association ID TLV字段另外增加一个标志位字段用于承载数量信息,本申请实施例不做具体限定。Exemplarily, the type field in the Extended Association ID TLV field can also be used to carry indication information and quantity information. For example, multiple bits are newly added in the type field to carry indication information and quantity information. In some possible embodiments, a new bit can also be added in the type field to carry indication information, and an additional flag bit field can be added to the Extended Association ID TLV field to carry quantity information, which is not specifically limited in the embodiment of this application .
示例性地,还可以在Extended Association ID TLV字段新增一个TLV字段来承载指示信息和数量信息,有关指示信息和数量信息在TLV字段中的承载方式具体可参考上述方式A1中有关TLV承载指示信息和数量信息的说明,在此不再赘述。Exemplarily, a TLV field can also be added in the Extended Association ID TLV field to carry indication information and quantity information. For details about how the indication information and quantity information are carried in the TLV field, please refer to the relevant TLV bearing indication information in the above method A1. and the description of the quantity information will not be repeated here.
方式B2:承载于PCEP消息的流量工程路径绑定TE Path Binding TLV字段Mode B2: Bind the TE Path Binding TLV field to the traffic engineering path carried in the PCEP message
TE Path Binding TLV是通用TLV,用于承载流量工程路径的绑定标签或SID(即MPLS标签或SRv6 SID)。参见图6B,图6B示例性地提供了一种指示信息和数量信息在TE Path Binding TLV中的承载示意图,其中,图6B所示的TE Path Binding TLV包括以下字段:TE Path Binding TLV is a general TLV, which is used to bear the binding label or SID of the traffic engineering path (that is, MPLS label or SRv6 SID). Referring to FIG. 6B, FIG. 6B exemplarily provides a schematic diagram of carrying indication information and quantity information in the TE Path Binding TLV, wherein the TE Path Binding TLV shown in FIG. 6B includes the following fields:
类型(Type):取值为55,用于指示类型为TE Path Binding TLV;Type (Type): The value is 55, used to indicate that the type is TE Path Binding TLV;
长度(Length):可变的;Length: variable;
绑定类型(Binding Type,BT):取值为0,表示绑定值为20比特的MPLS标签值;取值为1,表示绑定值为32比特的MPLS标签堆栈条目;取值为2,表示绑定值为具有16字节IPv6地址格式的SRv6 SID;取值为3,表示绑定值为24字节的字段,其包含SRv6 SID以及其行为和结构;Binding Type (Binding Type, BT): The value is 0, indicating that the binding value is a 20-bit MPLS label value; the value is 1, indicating that the binding value is a 32-bit MPLS label stack entry; the value is 2, Indicates that the binding value is an SRv6 SID with a 16-byte IPv6 address format; a value of 3 indicates that the binding value is a 24-byte field, which contains the SRv6 SID and its behavior and structure;
标志位(Flags):1个字节,包含1比特的移除位(Removal,R),当R置位时,请求PCEP对等体需要移除标签交换路径(Label Switched Path,LSP)的绑定值;当R未置位时,PCEP对等体指示为LSP添加或保留绑定值;Flags (Flags): 1 byte, including a 1-bit removal bit (Removal, R). When R is set, it requests the PCEP peer to remove the binding of the Label Switched Path (LSP). Fixed value; when R is not set, the PCEP peer indicates to add or reserve the binding value for the LSP;
预留位(Reserved):用于功能扩展;Reserved: used for function expansion;
绑定值(Binding Value):可变长度字段,当BT为0时,20比特表示MPLS标签;当BT为1时,32比特表示MPLS标签堆栈条目;当BT为2时,128比特表示SRv6 SID;当BT为3时,Binding Value还包含SRv6 Endpoint Behavior and SID Structure。Binding Value: variable length field, when BT is 0, 20 bits represent the MPLS label; when BT is 1, 32 bits represent the MPLS label stack entry; when BT is 2, 128 bits represent the SRv6 SID ; When BT is 3, Binding Value also includes SRv6 Endpoint Behavior and SID Structure.
示例性地,可以在TE Path Binding TLV字段的标志位Flags中新增至少一个标识字段用于承载上述指示信息和数量信息,例如,第一标志字段用于承载指示信息,第二标识字段用于承载数量信息。在一些可能的实施例中,新增的标识字段也可以在TE Path Binding TLV中独立于标志位Flags字段存在。Exemplarily, at least one identification field can be added in the flag bit Flags of the TE Path Binding TLV field to carry the above indication information and quantity information, for example, the first flag field is used to carry the indication information, and the second identification field is used for Bearer quantity information. In some possible embodiments, the newly added identification field may also exist independently of the Flags field in the TE Path Binding TLV.
示例性地,指示信息和数量信息也可以承载于TE Path Binding TLV中的类型字段或预留位字段中。Exemplarily, the indication information and quantity information may also be carried in the type field or reserved bit field in the TE Path Binding TLV.
示例性地,还可以在TE Path Binding TLV字段新增一个TLV字段来承载指示信息和数量信息,有关指示信息和数量信息在TLV字段中的承载方式具体可参考上述方式A1中有关TLV承载指示信息和数量信息的说明,在此不再赘述。Exemplarily, a TLV field can also be added in the TE Path Binding TLV field to carry indication information and quantity information. For details about how the indication information and quantity information are carried in the TLV field, please refer to the relevant TLV bearing indication information in the above method A1. and the description of the quantity information will not be repeated here.
在一些可能的实施例中,指示信息和数量信息也可以承载于TE Path Binding TLV中的不同字段中。例如,指示信息承载于TE Path Binding TLV字段的类型字段、标志位字段和新增的标志位字段中的任意一者,数量信息承载于TE Path Binding TLV字段的预留位字段或绑定值字段中,本申请实施例不作具体限定。In some possible embodiments, the indication information and the quantity information may also be carried in different fields in the TE Path Binding TLV. For example, the indication information is carried in any one of the type field, the flag field and the newly added flag field of the TE Path Binding TLV field, and the quantity information is carried in the reserved bit field or the binding value field of the TE Path Binding TLV field , the embodiment of the present application does not specifically limit it.
方式B3:承载于PCEP消息的段路由策略候选路径标识SRPolicy-Cpath-ID TLV字段Mode B3: The SRPolicy-Cpath-ID TLV field of the segment routing policy candidate path identifier carried in the PCEP message
参见图6C,图6C示例性地提供的一种指示信息和数量信息在SRPolicy-Cpath-ID TLV中的承载示意图,其中,图6C所示的SRPolicy-Cpath-ID TLV包括以下字段:Referring to FIG. 6C, FIG. 6C exemplarily provides a schematic diagram of carrying indication information and quantity information in the SRPolicy-Cpath-ID TLV, wherein the SRPolicy-Cpath-ID TLV shown in FIG. 6C includes the following fields:
类型(Type):取值为57,用于指示类型为SRPolicy-Cpath-ID TLV;Type (Type): The value is 57, used to indicate that the type is SRPolicy-Cpath-ID TLV;
长度(Length):取值28;Length: the value is 28;
协议来源(Proto.Origin):8比特表示,可参考上述方式A2中协议来源字段的相关说明;Protocol origin (Proto.Origin): 8-bit representation, please refer to the relevant description of the protocol origin field in the above method A2;
预留位(Reserved):用于功能扩展;Reserved: used for function expansion;
发起方自治系统编号(Originator ASN):4字节表示,作为发起方的标识的一部分;Originator Autonomous System Number (Originator ASN): 4 bytes, as part of the identity of the originator;
发起方地址(Originator Address):128比特表示,作为发起方的标识的一部分;Originator Address: 128 bits, as part of the identity of the originator;
区分符(Discriminator):32比特表示,用于区分候选路径。Discriminator: 32-bit representation, used to distinguish candidate paths.
示例性地,指示信息和数量信息可以承载于SRPolicy-Cpath-ID TLV中的预留位字段。具体地,可以在该预留位字段中增加标识字段用于承载指示信息和数量信息,例如,第一标识字段用于承载指示信息,第二标识字段用于承载数量信息。标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。Exemplarily, the indication information and quantity information may be carried in a reserved bit field in the SRPolicy-Cpath-ID TLV. Specifically, an identification field may be added to the reserved bit field for carrying indication information and quantity information, for example, the first identification field is used for carrying indication information, and the second identification field is used for carrying quantity information. The representation of the identification field may be a bitmap or a binary value, which is not specifically limited in this application.
示例性地,指示信息和数量信息也可以承载于SRPolicy-Cpath-ID TLV中的类型字段。例如,在类型字段中增加标识字段来承载指示信息和数量信息,其中,标识字段的表示方式可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。Exemplarily, the indication information and quantity information may also be carried in the type field in the SRPolicy-Cpath-ID TLV. For example, an identification field is added to the type field to carry indication information and quantity information, wherein the representation of the identification field may be a bitmap or a binary value, which is not specifically limited in this application.
在一些可能的实施例中,也可以使用SRPolicy-Cpath-ID TLV中的不同字段来承载指示信息和数量信息。例如,指示信息可以承载于SRPolicy-Cpath-ID TLV中的类型字段,数量信息可以承载于SRPolicy-Cpath-ID TLV中的预留位字段。In some possible embodiments, different fields in the SRPolicy-Cpath-ID TLV may also be used to carry indication information and quantity information. For example, the indication information can be carried in the type field in the SRPolicy-Cpath-ID TLV, and the quantity information can be carried in the reserved bit field in the SRPolicy-Cpath-ID TLV.
在一些可能的实施例中,还可以在SRPolicy-Cpath-ID TLV中新增TLV字段或新增Flag字段等方式来承载指示信息和数量信息,在此不作具体限定。In some possible embodiments, it is also possible to add a TLV field or a new Flag field in the SRPolicy-Cpath-ID TLV to carry the indication information and the quantity information, which are not specifically limited here.
在一些可能的实施例中,指示信息和数量信息在PCEP消息中的承载方式除了上述方式B1-B3外,还可以是:新增一个TLV字段用于承载指示信息和数量信息,且该TLV字段承载于PCEP消息中的关联信息Association Information。In some possible embodiments, in addition to the above methods B1-B3, the way to carry the indication information and quantity information in the PCEP message may also be: add a new TLV field for carrying the indication information and quantity information, and the TLV field Association Information carried in the PCEP message.
在本申请的一种实施例中,指示信息包含在策略信息中,数量信息包含在网络节点的段标识。In an embodiment of the present application, the indication information is included in the policy information, and the quantity information is included in the segment identifier of the network node.
一具体实施中,获取指示信息和数量信息,还可以是:接收控制器发送的通告消息,通告消息包含策略信息;根据通告消息获得指示信息;根据网络节点的段标识获得数量信息。一种实现方式中,段标识为绑定段标识Binding SID,Binding SID可以是IPv6地址或者SR MPLS标签。也就是说,数量信息与策略信息解耦,仅指示信息包含于策略信息中,且指示信息由控制器下发,数量信息可以是网络节点在本地配置的。In a specific implementation, obtaining the indication information and quantity information may also include: receiving a notification message sent by the controller, the notification message including policy information; obtaining the indication information according to the notification message; obtaining the quantity information according to the segment identifier of the network node. In an implementation manner, the segment identifier is a binding segment identifier Binding SID, and the Binding SID may be an IPv6 address or an SR MPLS label. That is to say, the quantity information is decoupled from the policy information, only the indication information is included in the policy information, and the indication information is delivered by the controller, and the quantity information may be configured locally by the network node.
示例性地,在通告消息为BGP消息时,指示信息在BGP消息中的承载方式可以参考上述方式A1-方式A2中任意一种有关指示信息承载方式的叙述,在此不再赘述。Exemplarily, when the notification message is a BGP message, the manner in which the indication information is carried in the BGP message can refer to the description about the manner in which the indication information is carried in any one of the foregoing manners A1 to A2, which will not be repeated here.
示例性地,在通告消息为PCEP消息时,指示信息在PCEP消息中的承载方式可以参考上述方式B1-方式B3中任意一种有关指示信息承载方式的叙述,在此不再赘述。Exemplarily, when the notification message is a PCEP message, the manner in which the indication information is carried in the PCEP message can refer to the description about the manner in which the indication information is carried in any one of the manners B1 to B3 above, and will not be repeated here.
需要说明的是,该方式适用于网络节点为头节点或网络节点。当网络节点为中间节点时,网络节点接收的报文中包含网络节点的段标识。It should be noted that this method is applicable to the network node being a head node or a network node. When the network node is an intermediate node, the message received by the network node includes the segment identifier of the network node.
在本申请实施例中,当网络节点为头节点时,头节点可以采用上述方式A1-方式A2以及方式B1-方式B3等中任意一种获取指示信息和数量信息。In the embodiment of the present application, when the network node is the head node, the head node may acquire the indication information and the quantity information in any of the above methods A1-A2 and B1-B3.
在本申请实施例中,当网络节点为中间节点时,网络节点除了可以采用上述方式A1-方式A2以及方式B1-方式B3等中任意一种获取指示信息和数量信息外,网络节点还可以通过 段标识承载指示信息,实现网络节点的复制动作的定义,在此情况下,段标识可以是End.B6.Replication类型的SID。也就是说,中间节点可以通过给End.B6(Endpoint Bound to an SRv6 TE Policy)扩展一种Replication行为,即End.B6.Replication指示网络节点执行复制动作,其中,B6表示应用于SRv6 TE Policy,Replication表示对接收到的报文进行复制。In this embodiment of the present application, when the network node is an intermediate node, the network node can obtain indication information and quantity information in any of the above methods A1-A2 and B1-B3, etc., and the network node can also pass The segment identifier carries indication information to realize the definition of the replication action of the network node. In this case, the segment identifier may be a SID of type End.B6.Replication. That is to say, the intermediate node can extend a Replication behavior to End.B6 (Endpoint Bound to an SRv6 TE Policy), that is, End.B6.Replication instructs the network node to perform a replication action, where B6 means that it is applied to the SRv6 TE Policy, Replication means to replicate the received message.
在此情况下,指示信息和数量信息的获取可参见下述方式C1-方式C2:In this case, the acquisition of instruction information and quantity information can refer to the following methods C1-Method C2:
方式C1:指示信息包含在网络节点的段标识中,数量信息包含在策略信息中Mode C1: The indication information is included in the segment identifier of the network node, and the quantity information is included in the policy information
一具体实施中,获取指示信息和数量信息,可以是:接收控制器发送的通告消息,通告消息包含策略信息;根据通告消息获得数量信息;根据网络节点的段标识获得指示信息。也就是说,指示信息与策略信息解耦。In a specific implementation, obtaining the indication information and the quantity information may be: receiving a notification message sent by the controller, the notification message including policy information; obtaining the quantity information according to the notification message; obtaining the indication information according to the segment identifier of the network node. That is to say, instruction information is decoupled from policy information.
示例性地,在通告消息为BGP消息时,数量信息在BGP消息中的承载方式可以参考上述方式A1-方式A2中任意一种有关数量信息承载方式的叙述,例如,数量信息可以承载在BGP消息的Binding SID Sub-TLV中的Binding SID中。Exemplarily, when the notification message is a BGP message, the manner in which the quantity information is carried in the BGP message can refer to any description of the manner in which the quantity information is carried in the above methods A1-A2, for example, the quantity information can be carried in the BGP message Binding SID in the Binding SID Sub-TLV.
示例性地,在通告消息为PCEP消息时,数量信息在PCEP消息中的承载方式可以参考上述方式B1-方式B3中任意一种有关数量信息承载方式的叙述,例如,数量信息可以承载在PCEP消息中的TE Path Binding TLV的Binding Value中。Exemplarily, when the notification message is a PCEP message, the carrying manner of the quantity information in the PCEP message can refer to the description of any one of the above-mentioned manners B1-B3 about the carrying manner of the quantity information, for example, the quantity information can be carried in the PCEP message In the Binding Value of the TE Path Binding TLV.
需要说明的是,在方式C1中,段标识中承载指示信息可以是网络节点在本地配置的,也可以是控制器通过BGP消息或PECP消息单独下发包含了指示信息的段标识给网络节点的。It should be noted that, in mode C1, the indication information carried in the segment identifier may be configured locally by the network node, or the controller may separately deliver the segment identifier containing the indication information to the network node through a BGP message or a PECP message. .
具体地,若段标识由控制器下发,则指示信息包含在网络节点的段标识中,可以是:网络节点的段标识与BGP消息的端点行为Endpoint Behavior字段关联,其中,Endpoint Behavior字段位于SRv6段标识端点行为和结构子类型-程度-值SRv6 SID Endpoint Behavior and Structure Sub-TLV中;或者,指示信息包含在网络节点的段标识中,可以是:网络节点的段标识与PCEP消息的Endpoint Behavior字段关联,其中,Endpoint Behavior字段位于SRv6端点行为和段标识结构SRv6 Endpoint Behavior and SID Structure中。在一些可能的实施例中,若包含了指示信息的段标识是网络节点在本地配置的,则网络节点可以通过相关的命令行将该段标识与相应的端点行为关联。Specifically, if the segment identifier is issued by the controller, the indication information is included in the segment identifier of the network node, which may be: the segment identifier of the network node is associated with the Endpoint Behavior field of the BGP message, where the Endpoint Behavior field is located in the SRv6 Segment identifier endpoint behavior and structure subtype-degree-value SRv6 SID Endpoint Behavior and Structure Sub-TLV; or, the indication information is included in the segment identifier of the network node, which can be: the segment identifier of the network node and the Endpoint Behavior of the PCEP message Field association, where the Endpoint Behavior field is located in the SRv6 endpoint behavior and segment identification structure SRv6 Endpoint Behavior and SID Structure. In some possible embodiments, if the segment identifier including the indication information is locally configured by the network node, the network node may associate the segment identifier with the corresponding endpoint behavior through a relevant command line.
方式C2:指示信息和数量信息包含在网络节点的段标识中Mode C2: The indication information and quantity information are included in the segment identifier of the network node
一具体实施中,获取指示信息和数量信息,可以是:根据网络节点的段标识获得数量信息和指示信息。In a specific implementation, obtaining the indication information and the quantity information may be: obtaining the quantity information and the quantity information according to the segment identifier of the network node.
需要说明的是,在方式C2中,段标识中包含指示信息和数量信息的段标识可以是网络节点在本地配置的,也可以是控制器单独下发给网络节点的,本申请实施例不作具体限定。It should be noted that, in mode C2, the segment identifier containing indication information and quantity information in the segment identifier can be configured locally by the network node, or can be delivered to the network node by the controller alone. This embodiment of the present application does not make specific limited.
示例性地,End.B6.Replication类型的SID可以与BGP消息或PECP消息中的Endpoint Behavior字段关联,数量信息承载于End.B6.Replication类型的SID中,例如,SID中的参数字段。Exemplarily, the SID of the End.B6.Replication type can be associated with the Endpoint Behavior field in the BGP message or the PECP message, and the quantity information is carried in the SID of the End.B6.Replication type, for example, the parameter field in the SID.
在本申请的一种实施例中,指示信息和数量信息可以是网络节点在本地配置的,指示信息和数量信息可以从本地的存储器中获取。其中,在网络节点为头节点时,指示信息和数量信息可以均包含于策略信息中,或者,指示信息包含在策略信息中但数量信息包含在段标识中,在此不作具体限定。在网络节点为中间节点时,指示信息和数量信息的承载方式可以是以下中的任意一种:(1)指示信息和数量信息可以均包含于策略信息中;(2)指示信息包含在策略信息中但数量信息包含在网络节点的段标识中;(3)指示信息包含在段标识,数量信 息包含在策略信息中;(4)指示信息和数量信息包含在网络节点的段标识中。In an embodiment of the present application, the indication information and the quantity information may be locally configured by the network node, and the indication information and the quantity information may be acquired from a local memory. Wherein, when the network node is the head node, both the indication information and the quantity information may be included in the policy information, or the indication information is included in the policy information but the quantity information is included in the segment identifier, which is not specifically limited here. When the network node is an intermediate node, the bearing mode of the indication information and the quantity information can be any of the following: (1) both the indication information and the quantity information can be included in the policy information; (2) the indication information can be included in the policy information But the quantity information is included in the segment identifier of the network node; (3) the instruction information is included in the segment identifier, and the quantity information is included in the policy information; (4) the instruction information and the quantity information are included in the segment identifier of the network node.
例如,网络节点在本地配置指示信息和数量信息,其中,指示信息可以是H.Encap.Replication或H.Insert.Replication指令,以执行对报文的复制动作,数量信息可以在网络节点的绑定段标识Binding SID的参数arguments中承载。For example, the network node configures the indication information and quantity information locally, wherein the indication information can be an H.Encap.Replication or H.Insert.Replication instruction to perform a copy action on the message, and the quantity information can be bound in the network node Carried in the parameter arguments of the segment identifier Binding SID.
又例如,网络节点为中间节点时,网络节点还可以通过段标识本地配置指示信息和数量信息。具体地,段标识可以是End.B6.Replication类型的SID,数量信息可以承载于End.B6.Replication类型的SID的arguments中。For another example, when the network node is an intermediate node, the network node may also identify local configuration indication information and quantity information through a segment. Specifically, the segment identifier may be a SID of the End.B6.Replication type, and the quantity information may be carried in arguments of the SID of the End.B6.Replication type.
在本申请实施例中,若指示信息和/或数量信息是网络节点在本地配置的,网络节点还需向控制器发送指示信息和/或数量信息。具体地,若指示信息和数量信息都是在本地配置的,则网络节点需向控制器发送指示信息和数量信息;若仅指示信息是在本地配置的,则网络节点向控制器发送指示信息即可;若仅数量信息是在本地配置的,则网络节点向控制器发送数量信息即可。In the embodiment of the present application, if the indication information and/or quantity information are locally configured by the network node, the network node also needs to send the indication information and/or quantity information to the controller. Specifically, if both the indication information and the quantity information are configured locally, the network node needs to send the indication information and the quantity information to the controller; if only the indication information is configured locally, the network node sends the indication information to the controller, namely Yes; if only the quantity information is configured locally, it is enough for the network node to send the quantity information to the controller.
一具体实施中,网络节点可以通过边界网关协议链路状态(Border Gateway Protocol Link-state,BGP-LS)向控制器发送指示信息和/或数量信息,即网络节点向控制器发送BGP-LS消息,BGP-LS消息包含指示信息和/或数量信息,指示信息和/或数量信息在BGP-LS消息中的承载方式具体可以参见下述方式D1和方式D2:In a specific implementation, the network node can send indication information and/or quantity information to the controller through Border Gateway Protocol Link-state (BGP-LS), that is, the network node sends a BGP-LS message to the controller , the BGP-LS message contains indication information and/or quantity information, and the manner in which the indication information and/or quantity information is carried in the BGP-LS message can specifically refer to the following manners D1 and D2:
方式D1:承载于BGP-LS消息的流量工程策略描述符TE Policy DescriptorsMode D1: TE Policy Descriptors carried in BGP-LS messages
具体地,可以在BGP-LS报文的TE Policy Descriptors中通过新增标志位Flag或TLV字段等方式来承载指示信息和/或数量信息。Specifically, the indication information and/or quantity information may be carried in TE Policy Descriptors of the BGP-LS message by adding a Flag bit or a TLV field, and the like.
示例性地,可以在TE Policy Descriptors中增加标志位Flag,该标志位可以用于承载指示信息和/或数量信息。例如,标志位中的第一组比特用于承载指示信息,标志位中的第二组比特用于承载数量信息。在一些可能的实施例中,指示信息和数量信息也可以通过两个标志位来承载,本申请实施例不限定增加的标志位的数量。Exemplarily, a flag bit Flag can be added to the TE Policy Descriptors, and the flag bit can be used to carry indication information and/or quantity information. For example, the first group of bits in the flag bits is used to carry indication information, and the second group of bits in the flag bits is used to carry quantity information. In some possible embodiments, the indication information and the quantity information may also be carried by two flag bits, and this embodiment of the present application does not limit the number of flag bits to be added.
示例性地,也可以在TE Policy Descriptors中增加一个TLV字段,并在TLV字段中设置标识字段来承载指示信息和/或数量信息。有关TLV字段承载指示信息和/或数量信息的方式具体可参考上述方式A1中有关TLV承载指示信息和数量信息的说明,在此不再赘述。Exemplarily, a TLV field may also be added to TE Policy Descriptors, and an identification field is set in the TLV field to carry indication information and/or quantity information. For the manner in which the TLV field carries the indication information and/or the quantity information, please refer to the description of the TLV carrying the indication information and the quantity information in the foregoing manner A1, and details are not repeated here.
方式D2:承载于BGP-LS消息的段路由策略候选路径描述符SR Policy Candidate Path DescriptorMode D2: Segment routing policy candidate path descriptor SR Policy Candidate Path Descriptor carried in BGP-LS message
具体地,可以利用BGP-LS消息的SR Policy Candidate Path Descriptor中的已有标志位Flags字段或者新增TLV字段等方式来承载指示信息和/或数量信息。Specifically, the indication information and/or quantity information may be carried by using the existing Flags field or the newly added TLV field in the SR Policy Candidate Path Descriptor of the BGP-LS message.
参见图7,图7示例性地提供了一种指示信息和数量信息在SR Policy Candidate Path Descriptor中的承载示意图,其中,图7所示的SR Policy Candidate Path Descriptor包括以下字段:Referring to FIG. 7, FIG. 7 exemplarily provides a schematic diagram of carrying indication information and quantity information in the SR Policy Candidate Path Descriptor, wherein the SR Policy Candidate Path Descriptor shown in FIG. 7 includes the following fields:
类型(Type):取值554,用于指示类型为SR Policy Candidate Path Descriptor;Type (Type): The value is 554, which is used to indicate that the type is SR Policy Candidate Path Descriptor;
长度(Length):可变的;Length: variable;
协议来源(Protocal-origin):1字节字段,标识负责此路径实例化的协议或组件;取值为1,表示协议来源为PCEP;取值为2,表示协议来源为BGP SR Policy;取值为3,表示本地;Protocol-origin: a 1-byte field that identifies the protocol or component responsible for instantiating this path; a value of 1 indicates that the protocol origin is PCEP; a value of 2 indicates that the protocol origin is BGP SR Policy; value It is 3, which means local;
标志位(Flags):1字节字段,其包含1比特的E标志位和1比特的O标志位,其中,当E置位时,指示端点编码为IPv6地址;当E未置位时,指示端点编码为IPv4地址;当O 置位时,指示发起方地址的编码为IPv6地址;当O未置位时,指示发起方地址的编码为IPv4地址;Flags (Flags): 1-byte field, which contains a 1-bit E flag and a 1-bit O flag, where, when E is set, it indicates that the endpoint is encoded as an IPv6 address; when E is not set, it indicates The endpoint is encoded as an IPv4 address; when O is set, the code indicating the initiator address is an IPv6 address; when O is not set, the code indicating the initiator address is an IPv4 address;
预留位(Reserved):2字节,用于功能扩展;Reserved bit (Reserved): 2 bytes, used for function expansion;
端点(Endpoint):4或16字节,包含SR Policy的端点的地址;Endpoint: 4 or 16 bytes, containing the address of the endpoint of SR Policy;
策略颜色(Policy Color):4字节,用于指示SR Policy的颜色值;Policy Color (Policy Color): 4 bytes, used to indicate the color value of SR Policy;
发起方自治系统编号(Originator AS Number):4字节承载发起方的4字节ASN编码;Originator AS Number: 4 bytes carrying the 4-byte ASN code of the originator;
发起方地址(Originator Address):4或16字节,承载发起方的地址;Originator Address: 4 or 16 bytes, carrying the address of the originator;
区分符(Discriminator):4字节,携带路径的区分符。Discriminator: 4 bytes, carrying the discriminator of the path.
示例性地,可以在SR Policy Candidate Path Descriptor的标志位Flags中新增至少一个标识字段用于指示上述指示信息和/或数量信息,例如,第一标识字段用于承载指示信息,第二标识字段用于承载数量信息。标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。在一些可能的实施例中,新增的标识字段也可以在SR Policy Candidate Path Descriptor中独立于标志位Flags字段存在。Exemplarily, at least one identification field may be added in the flag bit Flags of SR Policy Candidate Path Descriptor to indicate the above indication information and/or quantity information, for example, the first identification field is used to carry indication information, and the second identification field Used to carry quantity information. The representation of the identification field may be a bitmap or a binary value, which is not specifically limited in this application. In some possible embodiments, the newly added identification field may also exist independently of the Flags field in the SR Policy Candidate Path Descriptor.
示例性地,还可以在SR Policy Candidate Path Descriptor新增一个TLV字段来承载指示信息和/或数量信息,其中,新增的TLV字段在SR Policy Candidate Path Descriptor中的放置方式不做具体限定,例如,可以放置在区分符Discriminator字段之后。有关TLV字段承载指示信息和/或数量信息的说明可参考上述方式A1中有关TLV承载指示信息和数量信息的说明,在此不再赘述。Exemplarily, a TLV field may also be added in the SR Policy Candidate Path Descriptor to carry indication information and/or quantity information, where the placement method of the newly added TLV field in the SR Policy Candidate Path Descriptor is not specifically limited, for example , can be placed after the Discriminator field. For the description about the indication information and/or quantity information carried by the TLV field, refer to the description about the indication information and the quantity information for the TLV bearer in the above method A1, and details are not repeated here.
S102:获得第一报文。S102: Obtain the first packet.
在本申请实施例中,网络节点获得第一报文,其中,第一报文的特征信息与上述S101中的策略信息匹配。需要说明的是,第一报文的特征信息包括但不限于第一报文中携带的差分服务代码点(Differentiated Service Code Point,DSCP)、第一报文的目的地址或者第一报文携带的网络节点的段标识。In this embodiment of the present application, the network node obtains the first packet, wherein the feature information of the first packet matches the policy information in S101 above. It should be noted that the characteristic information of the first message includes but not limited to the Differentiated Service Code Point (DSCP) carried in the first message, the destination address of the first message or the DSCP carried in the first message. The segment ID of the network node.
在本申请实施例中,在网络节点为头节点的情况下,头节点接收到第一报文后,可以根据第一报文的目的地址和/或第一报文中携带的DSCP确定第一报文与上述策略信息匹配。In this embodiment of the application, when the network node is a head node, after receiving the first message, the head node may determine the first message according to the destination address of the first message and/or the DSCP carried in the first message The packet matches the above policy information.
可以理解,在网络节点为头节点时,第一报文可以是IPv4或IPv6报文。相应地,在第一报文为IPv4报文时,上述策略信息为SR Policy;在第一报文为IPv6报文时,上述策略信息为SRv6 Policy。It can be understood that when the network node is the head node, the first packet may be an IPv4 or IPv6 packet. Correspondingly, when the first message is an IPv4 message, the policy information is SR Policy; when the first message is an IPv6 message, the policy information is SRv6 Policy.
在本申请实施例中,在网络节点为中间节点的情况下,第一报文包含网络节点的段标识,网络节点接收第一报文后,确定第一报文携带自身的段标识,基于该段标识关联上述策略信息。In the embodiment of the present application, when the network node is an intermediate node, the first message contains the segment identifier of the network node, and after receiving the first message, the network node determines that the first message carries its own segment identifier, based on the The segment identifier is associated with the above policy information.
可以理解,在网络节点为中间节点时,第一报文可以是SR MPLS报文或SRv6报文。相应地,在第一报文为SR MPLS报文时,上述策略信息为SR Policy;在第一报文为SRv6报文时,上述策略信息为SRv6 Policy。It can be understood that when the network node is an intermediate node, the first packet may be an SR MPLS packet or an SRv6 packet. Correspondingly, when the first message is an SR MPLS message, the policy information is SR Policy; when the first message is an SRv6 message, the policy information is SRv6 Policy.
S103:根据指示信息复制第一报文获得多个第二报文,多个第二报文的数量与数量信息对应。S103: Copy the first packet according to the indication information to obtain multiple second packets, and the quantity of the multiple second packets corresponds to the quantity information.
在本申请实施例中,多个第二报文的数量与数量信息对应,可以是:多个第二报文的数量为数量信息指示的数量与1的和。In this embodiment of the present application, the quantity of the multiple second packets corresponds to the quantity information, which may be: the quantity of the multiple second packets is the sum of the quantity indicated by the quantity information and 1.
例如,若数量信息指示的数量为N,其中,N为大于等于2的正整数,则网络节点对第 一报文执行复制操作后,获得的第二报文的数量为N+1。For example, if the quantity indicated by the quantity information is N, where N is a positive integer greater than or equal to 2, after the network node performs the copy operation on the first message, the quantity of the second message obtained is N+1.
在本申请实施例中,多个第二报文中的每个第二报文包含序列号SN。In this embodiment of the present application, each of the multiple second packets includes a sequence number SN.
进一步地,多个第二报文中的每个第二报文还包含流标识FI。Further, each of the multiple second packets further includes a flow identifier FI.
需要说明的是,多个第二报文中各个第二报文的流标识相同且各个第二报文的序列号相同。如此,在多发选收场景中,合并节点在接收到第二报文后,根据第二报文中的序列号(或者序列号和流标识)确定第一个接收到的第二报文,且在后续接收到具有相同的序列号(或者相同的序列号和流标识)的第二报文时则丢弃,从而实现了报文的选收。It should be noted that among the multiple second packets, the flow identifiers of the second packets are the same and the sequence numbers of the second packets are the same. In this way, in the multi-send and selective reception scenario, after receiving the second message, the merging node determines the first received second message according to the sequence number (or sequence number and flow identifier) in the second message, and When the second message with the same sequence number (or the same sequence number and flow identifier) is subsequently received, it is discarded, thereby realizing the selective reception of messages.
一具体实施中,流标识和序列号的添加方式可以是:在第一报文到达网络节点之前,第一报文中本身携带有流标识和序列号,故网络节点对第一报文进行复制后,获得的多个第二报文中的每个第二报文也包含流标识和序列号。In a specific implementation, the method of adding the flow identifier and the sequence number may be: before the first packet reaches the network node, the first packet itself carries the flow identifier and the sequence number, so the network node copies the first packet Afterwards, each of the obtained multiple second packets also includes a flow identifier and a sequence number.
另一具体实施中,流标识和序列号的添加方式也可以是:在第一报文到达网络节点之前,第一报文中本身不携带流标识和序列号,故网络节点接收到第一报文后,先将流标识和序列号添加至第一报文,再对第一报文进行复制,如此,网络节点获得的多个第二报文中的每个第二报文均包含流标识和序列号。In another specific implementation, the method of adding the flow identifier and the sequence number may also be: before the first packet reaches the network node, the first packet itself does not carry the flow identifier and the sequence number, so the network node receives the first packet After the text, first add the flow identifier and sequence number to the first packet, and then copy the first packet, so that each of the multiple second packets obtained by the network node contains the flow identifier and serial number.
在一些可能的实施例中,流标识和序列号的添加方式还可以是:在多个第二报文中分别添加序列号和流标识,本申请实施例不作具体限定。In some possible embodiments, the manner of adding the flow identifier and the sequence number may also be: respectively adding the sequence number and the flow identifier in multiple second packets, which is not specifically limited in this embodiment of the present application.
S104:发送上述多个第二报文,多个第二报文中至少两个第二报文封装了不同的转发路径信息。S104: Send the above multiple second packets, where at least two of the multiple second packets encapsulate different forwarding path information.
在本申请实施例中,多个第二报文中的至少两个第二报文封装了不同的转发路径,可以是:多个第二报文中的每个第二报文封装了不同的转发路径。In this embodiment of the present application, at least two second packets among the plurality of second packets encapsulate different forwarding paths, which may be: each second packet among the plurality of second packets encapsulates different forwarding paths. forwarding path.
可以看出,在本申请实施例中,转发路径的数量大于2,转发路径的数量可以小于或等于第二报文的数量。It can be seen that, in this embodiment of the present application, the number of forwarding paths is greater than 2, and the number of forwarding paths may be less than or equal to the number of second packets.
在本申请实施例中,转发路径信息为策略信息中包含的SID List。网络节点为第二报文选择SID List进行转发路径的封装包括以下几种方式:In this embodiment of the application, the forwarding path information is the SID List contained in the policy information. The encapsulation of the network node selecting the SID List for the second message to forward the path includes the following methods:
第一种:以策略信息中的候选路径作为选择单元The first method: use the candidate path in the policy information as the selection unit
在本申请实施例中,多个第二报文中的至少两个第二报文封装了不同的转发路径,包括:多个第二报文中的至少两个第二报文封装了不同的SID List,SID List对应多个候选路径中一个路径的SID List,这多个候选路径是根据策略信息的各个候选路径的偏好值preference确定的。In this embodiment of the present application, at least two of the multiple second packets encapsulate different forwarding paths, including: at least two of the multiple second packets encapsulate different SID List, SID List corresponds to the SID List of a path among multiple candidate paths, and these multiple candidate paths are determined according to the preference value preference of each candidate path in the policy information.
示例性地,指示信息指示的数量为N(N为大于等于2的正整数),根据指示信息从策略信息中选择M个候选路径,M为大于等于2的正整数且M小于等于N。对于M个候选路径中的每个候选路径,从每个候选路径包含的多个SID List中选择一个SID List,从而可获得M个SID List。其中,M个候选路径可以是在策略信息中根据各个候选路径的preference按照从大到小的顺序确定的,也可以是随机选取的,本申请实施例不做具体限定。M个候选路径中每个候选路径对应的SID List可以是该候选路径中最大weight对应的SID List,也可以是随机选取的,本申请实施例不做具体限定。Exemplarily, the quantity indicated by the indication information is N (N is a positive integer greater than or equal to 2), and M candidate paths are selected from the policy information according to the indication information, where M is a positive integer greater than or equal to 2 and M is less than or equal to N. For each candidate path in the M candidate paths, one SID List is selected from the multiple SID Lists contained in each candidate path, so as to obtain M SID Lists. The M candidate paths may be determined in descending order according to the preference of each candidate path in the policy information, or may be randomly selected, which is not specifically limited in this embodiment of the present application. The SID List corresponding to each candidate path in the M candidate paths may be the SID List corresponding to the maximum weight in the candidate path, or may be randomly selected, which is not specifically limited in the embodiment of the present application.
在一些可能的实施例中,在根据策略信息中各个候选路径的preference从大到小地选择候选路径时,还可以为策略信息中的每个候选路径设置一个标识,当选中该候选路径时,该候选路径的标识被置位。In some possible embodiments, when selecting candidate paths from large to small according to the preference of each candidate path in the policy information, an identifier can also be set for each candidate path in the policy information. When the candidate path is selected, The flag for this candidate path is set.
示例性地,指示信息指示的数量为N(N为大于等于2的正整数),则第二报文的数量为N+1,根据指示信息从策略信息中选择M个候选路径,包括:对于第一个第二报文,从策略信息中选择preference最大的候选路径1,并将标识位1置位以指示候选路径1被选中;对于第二个第二报文,从策略信息中剩余的未被选中的候选路径中选择preference最大的候选路径2,并将标识位2置位以指示候选路径2被选中;…;对于第N+1个第二报文,从策略信息中剩余的未被选中的候选路径中选择preference最大的候选路径M,并将标识位M置位以指示候选路径M被选中。需要说明的是,选中的M个候选路径中每个候选路径对应的SID List可以是该候选路径中最大weight对应的SID List,也可以是随机选取的,本申请实施例不做具体限定。Exemplarily, the number indicated by the indication information is N (N is a positive integer greater than or equal to 2), then the number of the second message is N+1, and M candidate paths are selected from the policy information according to the indication information, including: for For the first second message, select the candidate path 1 with the largest preference from the policy information, and set the flag 1 to indicate that candidate path 1 is selected; for the second second message, select the remaining path 1 from the policy information Select the candidate path 2 with the largest preference among the unselected candidate paths, and set the flag bit 2 to indicate that the candidate path 2 is selected; ...; For the N+1th second message, the remaining unselected paths from the policy information Select the candidate path M with the largest preference among the selected candidate paths, and set the flag M to indicate that the candidate path M is selected. It should be noted that the SID List corresponding to each candidate path among the selected M candidate paths may be the SID List corresponding to the maximum weight in the candidate path, or may be randomly selected, which is not specifically limited in this embodiment of the present application.
第二种:以策略信息中的SID List作为选择单元The second type: use the SID List in the policy information as the selection unit
在本申请实施例中,多个第二报文中的至少两个第二报文封装了不同的转发路径,包括:多个第二报文中的至少两个第二报文封装了不同的SID List,多个第二报文中各个第二报文封装的SID List与策略信息中的同一个候选路径对应。In this embodiment of the present application, at least two of the multiple second packets encapsulate different forwarding paths, including: at least two of the multiple second packets encapsulate different SID List, the SID List encapsulated in each second message in multiple second messages corresponds to the same candidate path in the policy information.
示例性地,指示信息指示的数量为N(N为大于等于2的正整数),假设根据指示信息需要从策略信息中选择M个SID List,每个SID List表示一条转发路径。具体地,可以先从策略信息中选择一条候选路径,并从该候选路径的多个SID List中选择M个SID List,M为大于等于2的正整数且M小于等于N。其中,该条候选路径可以是策略信息中最大preference对应的候选路径或者从策略信息中随机选取的一条候选路径。该条候选路径对应的M个SID List可以是根据该条候选路径中的各个SID List的weight按照从大到小的顺序选择的,也可以是随机选取的,本申请实施例不做具体限定。Exemplarily, the number indicated by the indication information is N (N is a positive integer greater than or equal to 2), assuming that M SID Lists need to be selected from the policy information according to the indication information, and each SID List represents a forwarding path. Specifically, a candidate path may be selected from the policy information first, and M SID Lists are selected from multiple SID Lists of the candidate path, where M is a positive integer greater than or equal to 2 and M is less than or equal to N. Wherein, the candidate path may be a candidate path corresponding to the maximum preference in the policy information or a candidate path randomly selected from the policy information. The M SID Lists corresponding to the candidate path may be selected according to the weight of each SID List in the candidate path in descending order, or may be randomly selected, which is not specifically limited in this embodiment of the present application.
在本申请实施例中,多个第二报文中各个第二报文封装的SID List可以根据各自的权重weight进行负载分担。In this embodiment of the present application, the SID List encapsulated in each second packet in the plurality of second packets may perform load sharing according to their respective weights.
一种实现方式中,策略信息中包含的候选路径的数量大于等于第二报文的数量,或者策略信息中一条候选路径包含的SID List的数量大于等于第二报文的数量。如此,当选中的多个SID List出现某个SID List指示的转发路径故障时,网络节点可以在策略信息中从未被选中的其他候选路径或候选路径的其他SID List中选择SID List替换故障的SID List,由此有效解决了报文多发选收的故障问题,提高了报文转发的可靠性。In an implementation manner, the number of candidate paths included in the policy information is greater than or equal to the number of second packets, or the number of SID Lists included in a candidate path in the policy information is greater than or equal to the number of second packets. In this way, when a forwarding path indicated by a certain SID List is faulty in multiple selected SID Lists, the network node can select a SID List to replace the faulty one from other unselected candidate paths or other SID Lists of candidate paths in the policy information. SID List, which effectively solves the fault problem of multiple messages being sent and selected, and improves the reliability of message forwarding.
示例性地,若数量信息指示的数量为2,则第二报文的数量为3,多个第二报文以报文1、报文2和报文3为例说明网络节点发送这多个第二报文的过程:Exemplarily, if the quantity indicated by the quantity information is 2, then the quantity of the second message is 3, and the number of the second messages is 3 by taking the message 1, the message 2 and the message 3 as examples to illustrate that the network node sends the multiple The process of the second message:
一具体实施中,用于封装第二报文的转发路径的数量与第二报文的数量相等。例如,使用路径1对报文1进行封装,使用路径2对报文2进行封装以及使用路径3对报文3进行封装,则上述发送多个第二报文的过程具体为:基于路径1发送报文1,基于路径2发送报文2,基于路径3发送报文3。In a specific implementation, the number of forwarding paths used to encapsulate the second message is equal to the number of the second message. For example, if packet 1 is encapsulated using path 1, packet 2 is encapsulated using path 2, and packet 3 is encapsulated using path 3, then the above process of sending multiple second packets is specifically: sending based on path 1 For packet 1, packet 2 is sent based on path 2, and packet 3 is sent based on path 3.
另一具体实施中,用于封装第二报文的转发路径的数量小于第二报文的数量。例如,使用路径1分别对报文1和报文2进行封装以及使用路径2对报文3进行转发,则上述发送多个第二报文的过程具体为:基于路径1分别发送报文1和报文2,基于路径2发送报文3。In another specific implementation, the number of forwarding paths used to encapsulate the second packet is smaller than the number of the second packet. For example, using path 1 to respectively encapsulate message 1 and message 2 and using path 2 to forward message 3, the above process of sending multiple second messages is specifically: sending message 1 and message 2 respectively based on path 1 Packet 2, send packet 3 based on path 2.
可以看到,实施本申请实施例,通过扩展策略属性来表示冗余策略,即提供了利用BGP-LS/BGP/PCEP协议扩展承载指示信息和数量信息,使得网络节点可以根据指示信息对报文执行复制动作以及根据数量信息确定报文的复制份数。另外,还提供了多种选择SID List 的封装方式,使得网络节点可以灵活地选择转发路径用于多个报文的封装,由此实现了报文的多发,提高了报文转发的可靠性。It can be seen that, implementing the embodiment of the present application, the redundancy policy is expressed by extending the policy attribute, that is, the BGP-LS/BGP/PCEP protocol is provided to extend the bearer indication information and quantity information, so that the network node can process the packet according to the indication information. Execute the copy action and determine the copy number of the message according to the quantity information. In addition, it also provides a variety of encapsulation methods for selecting the SID List, so that network nodes can flexibly select the forwarding path for encapsulation of multiple messages, thereby realizing multiple sending of messages and improving the reliability of message forwarding.
参见图8,图8是本申请实施例提供的一种应用场景示意图,且上述网络节点为头节点,即复制节点为头节点。在图8中,头节点为节点R,即复制节点为节点R,合并节点为节点M,复制节点与合并节点之间的路径有两条,分别为路径1(path1)和路径2(path2),其中,path1指示经过节点R1到达节点M的路径,path2指示经过节点R2到达节点M的路径。Referring to FIG. 8, FIG. 8 is a schematic diagram of an application scenario provided by an embodiment of the present application, and the above-mentioned network node is a head node, that is, the copy node is a head node. In Figure 8, the head node is node R, that is, the copy node is node R, and the merge node is node M. There are two paths between the copy node and the merge node, namely path 1 (path1) and path 2 (path2). , where path1 indicates the path to node M via node R1, and path2 indicates the path to node M via node R2.
节点R接收到来自上一节点的第一报文,可通过Color属性或者DSCP方式将第一报文引流至对应的策略信息,节点R获取上述中指示信息和数量信息,根据指示信息和复制数量对第一报文进行复制获得多个第二报文,并基于多个第二报文中各自封装的转发路径分别发送这多个第二报文,多个第二报文的数量与数量信息对应。需要说明的是,上述指示信息、数量信息以及策略信息可以是节点R在本地配置的或者是控制器下发给节点R的,本申请实施例不做具体限定。Node R receives the first message from the previous node, and can divert the first message to the corresponding policy information through the Color attribute or DSCP mode. Node R obtains the above-mentioned indication information and quantity information, and according to the indication information and the number of copies Copying the first message to obtain a plurality of second messages, and sending the multiple second messages based on the respective forwarding paths encapsulated in the multiple second messages, the number and quantity information of the multiple second messages correspond. It should be noted that the above indication information, quantity information, and policy information may be configured locally by the node R or sent to the node R by the controller, which is not specifically limited in this embodiment of the present application.
以SRv6 Policy场景为例,假设指示信息和数量信息包含在SRv6 Policy中,且控制器通过BGP消息下发该SRv6 Policy,则指示信息和数量信息在BGP消息中的承载方式可参考上述实施例中的方式A1和方式A2中的任意一种,在此不再赘述。图8中报文转发的具体过程如下:Taking the SRv6 Policy scenario as an example, assuming that the indication information and quantity information are included in the SRv6 Policy, and the controller sends the SRv6 Policy through a BGP message, then the carrying mode of the indication information and quantity information in the BGP message can refer to the above-mentioned embodiment Any one of the ways A1 and A2, which will not be repeated here. The specific process of message forwarding in Figure 8 is as follows:
1.控制器下发SRv6 Policy给节点R,SRv6 Policy包含指示信息和数量信息,其中,指示信息用于指示网络节点对报文进行复制,数量信息与复制报文的数量对应。1. The controller sends the SRv6 Policy to node R. The SRv6 Policy includes instruction information and quantity information. The instruction information is used to instruct network nodes to copy packets, and the quantity information corresponds to the number of replicated packets.
2.在节点R上配置隧道策略。复制节点R利用BGP路由的Color属性迭代到SRv6 Policy。2. Configure the tunnel policy on node R. The replication node R uses the Color attribute of the BGP route to iterate to the SRv6 Policy.
3.节点R接收到第一报文后,确定第一报文的特征信息与SRv6 Policy匹配,并从SRv6 Policy中获取指示信息和数量信息,根据指示信息和数量信息对第一报文进行复制,获得多个第二报文,例如,多个第二报文包括第二报文1和第二报文2。3. After receiving the first message, node R determines that the characteristic information of the first message matches the SRv6 Policy, obtains the indication information and quantity information from the SRv6 Policy, and copies the first message according to the indication information and quantity information , to obtain multiple second packets, for example, the multiple second packets include second packet 1 and second packet 2 .
以第二报文1为例,相较于只携带服务数据的第一报文,可以看出,第二报文1中插入了IPv6头信息和分段路由头SRH信息,其中,SRH信息包含path1的SID List。另外,在对第一报文进行复制前,节点R在第一报文中添加了流标识F1和序列号SN,故第二报文1中还包含流标识和序列号。相应地,第二报文2相较于第一报文,新插入了IPv6头信息、分段路由头SRH信息、流标识以及序列号,其中,SRH信息包含path2的SID List。Taking the second packet 1 as an example, compared with the first packet that only carries service data, it can be seen that IPv6 header information and segment routing header SRH information are inserted into the second packet 1, wherein the SRH information includes SID List of path1. In addition, before copying the first message, the node R adds the flow identifier F1 and the sequence number SN to the first message, so the second message 1 also includes the flow identifier and the sequence number. Correspondingly, compared with the first message, the second message 2 newly inserts IPv6 header information, segment routing header SRH information, flow identifier and sequence number, wherein the SRH information includes the SID List of path2.
4.节点R节点在获得第二报文1和第二报文2后,基于封装的path1发送第二报文1以及基于封装的path2发送第二报文2。4. Node R, after obtaining the second message 1 and the second message 2, sends the second message 1 based on the encapsulated path1 and sends the second message 2 based on the encapsulated path2.
5.节点R1根据第二报文1中的SRH信息逐跳转发至节点M,节点R2根据第二报文2中的SRH信息逐跳转发至节点M。5. The node R1 forwards the SRH information in the second message 1 to the node M hop by hop, and the node R2 forwards the SRH information in the second message 2 to the node M hop by hop.
6.多个第二报文经过不同的转发路径到达节点M,节点M将接收到首个第二报文进行转发,剩余的其他报文丢弃,由此,实现了复制节点与合并节点之间报文的多发选收。6. Multiple second messages arrive at node M through different forwarding paths, node M will receive the first second message and forward it, and discard the rest of the messages. Multiple sending and selective receiving of messages.
参见图9,图9是本申请实施例提供的又一种应用场景示意图,且上述网络节点为中间节点,即复制节点为中间节点。在图9中,复制节点为节点R,合并节点为节点M,复制节点与合并节点M之间有两条路径,分别为路径1和路径2,其中,路径1指示经过节点R1到达节点M的路径,路径2指示经过节点R2到达节点M的路径。Referring to FIG. 9, FIG. 9 is a schematic diagram of another application scenario provided by the embodiment of the present application, and the above-mentioned network node is an intermediate node, that is, the copy node is an intermediate node. In Figure 9, the copy node is node R, the merge node is node M, and there are two paths between the copy node and merge node M, which are respectively path 1 and path 2, wherein, path 1 indicates the route to node M via node R1 Path, path 2 indicates the path to node M via node R2.
节点I接收到报文后,可根据color或DSCP方式迭代至对应的策略信息1中,并基于该策略信息1将封装后的报文(可以称作第一报文)发送给节点R,节点R在确定第一报文携带的段标识与本地的SID相同时,确定第一报文与本地的策略信息2匹配并获取上述指示信息和数量信息,根据指示信息和数量信息对第一报文复制获得多个第二报文,并将多个第二报文以各自封装的转发路径分别发送。需要说明的是,上述策略信息1可以是节点I本地配置的也可以是控制器下发的,上述指示信息、数量信息以及策略信息2可以是节点R在本地配置的或者是控制器下发的,本申请实施例不做具体限定。After node I receives the message, it can iterate to the corresponding policy information 1 according to the color or DSCP method, and based on the policy information 1, send the encapsulated message (which can be called the first message) to node R, and the node When R determines that the segment identifier carried by the first packet is the same as the local SID, it determines that the first packet matches the local policy information 2 and obtains the above indication information and quantity information, and performs the first packet according to the indication information and quantity information. The multiple second packets are obtained by copying, and the multiple second packets are respectively sent on the forwarding paths that are respectively encapsulated. It should be noted that the above policy information 1 may be locally configured by node I or issued by the controller, and the above instruction information, quantity information and policy information 2 may be locally configured by node R or issued by the controller , which is not specifically limited in this embodiment of the present application.
以SRv6 TE Policy场景为例,假设数量信息包含在策略信息中,且策略信息为控制器通过PCEP消息下发给复制节点,而指示信息为复制节点在段标识中设置的,其中,数量信息在PCEP消息中的承载方式可以参考上述实施例的相关叙述。图9的报文转发的具体过程如下:Taking the SRv6 TE Policy scenario as an example, assume that the quantity information is included in the policy information, and the policy information is sent by the controller to the replication node through the PCEP message, and the indication information is set by the replication node in the segment identifier. The quantity information is in For the bearer manner in the PCEP message, reference may be made to the relevant descriptions in the foregoing embodiments. The specific process of message forwarding in Figure 9 is as follows:
1.节点R本地配置段标识承载指示信息,指示信息用于指示节点R对报文进行复制,该段标识可以是End.B6.Replication类型的SID。另外,节点R还接收控制器下发的SRv6 Policy1,SRv6 Policy1包含数量信息,其中,数量信息与复制报文的数量对应。1. Node R locally configures a segment identifier to carry indication information, which is used to instruct node R to replicate the message, and the segment identifier may be a SID of type End.B6.Replication. In addition, node R also receives SRv6 Policy1 issued by the controller, and SRv6 Policy1 contains quantity information, where the quantity information corresponds to the quantity of copied messages.
控制器还可以向节点I下发端到端的SRv6 Policy2,SRv6 Policy2的路径中包括节点R的段标识。在一些可能的实施例中,端到端的SRv6 Policy2也可以是节点I在本地配置的。The controller can also issue end-to-end SRv6 Policy 2 to node I, and the path of SRv6 Policy 2 includes the segment identifier of node R. In some possible embodiments, the end-to-end SRv6 Policy2 may also be locally configured by node 1.
2.在节点I上配置隧道策略,以指定节点I与及节点E之间的隧道SID列表。节点I接收到报文后,利用color或者DSCP方式将报文引流至该SRv6 Policy2,并为报文封装流标识FI、序列号SN、SRH信息和IPv6头1,其中,SRH信息为SRH[E,M,R,I]。节点I根据SRH信息将封装后的报文(可以称作第一报文)转发给节点R。2. Configure a tunnel policy on node I to specify the tunnel SID list between node I and node E. After node I receives the message, it uses color or DSCP to direct the message to the SRv6 Policy 2, and encapsulates the flow identifier FI, serial number SN, SRH information and IPv6 header 1 for the message, where the SRH information is SRH[E ,M,R,I]. Node I forwards the encapsulated message (which may be referred to as the first message) to node R according to the SRH information.
3.节点R接收来自节点I的第一报文,节点R确定该第一报文携带的段标识为本地的段标识,则基于自身的段标识承载的指示信息对第一报文执行复制动作,获得多个第二报文,其中,第二报文的数量与SRv6 Policy1中的数量信息指示的数量对应,上述多个第二报文是根据SRv6 Policy1封装的。在图9中,多个第二报文包括第二报文1和第二报文2。3. Node R receives the first message from node I, and node R determines that the segment identifier carried by the first message is a local segment identifier, and performs a copy action on the first message based on the indication information carried by its own segment identifier , to obtain a plurality of second packets, wherein the quantity of the second packets corresponds to the quantity indicated by the quantity information in the SRv6 Policy1, and the plurality of second packets are encapsulated according to the SRv6 Policy1. In FIG. 9 , the plurality of second messages include second message 1 and second message 2 .
示例性地,节点R采样了Encap方式封装第一报文以获得第二报文,即采用封装外层IPv6头和SRH的方式应用SRv6 TE Policy。因此,相较于节点I发送的第一报文,第二报文1中新插入了SRH[R1 End.X]和IPv6头2,其中,节点R1为节点R与节点M之间路径1的最后一跳。相应地,相较于第一报文,第二报文2中新插入了SRH[R2 End.X]和IPv6头3,其中,节点R2为节点R与节点M之间路径2的最后一跳。Exemplarily, node R encapsulates the first packet in Encap mode to obtain the second packet, that is, applies SRv6 TE Policy by encapsulating the outer IPv6 header and SRH. Therefore, compared with the first message sent by node I, SRH[R1 End.X] and IPv6 header 2 are newly inserted in the second message 1, where node R1 is the node of path 1 between node R and node M Last jump. Correspondingly, compared with the first message, SRH[R2 End.X] and IPv6 header 3 are newly inserted in the second message 2, where node R2 is the last hop of path 2 between node R and node M .
节点R根据第二报文1中的SRH[R1 End.X]将第二报文1转发给节点R1,以及节点R根据第二报文2中的SRH[R2 End.X]将第二报文2转发给节点R2。The node R forwards the second message 1 to the node R1 according to the SRH[R1 End.X] in the second message 1, and the node R forwards the second message 1 according to the SRH[R2 End.X] in the second message 2 Text 2 is forwarded to node R2.
4.节点R1接收第二报文1,并根据第二报文1中的SRH[E,M,R,I]转发至节点M;节点R2接收第二报文2,并根据第二报文2中的SRH[E,M,R,I]转发至节点M。4. Node R1 receives the second message 1, and forwards it to node M according to the SRH[E, M, R, I] in the second message 1; node R2 receives the second message 2, and according to the second message SRH[E,M,R,I] in 2 is forwarded to node M.
5.多个第二报文经过不同的转发路径到达节点M,节点M将接收到首个第二报文转发给节点E,剩余的其他报文丢弃,由此,实现了复制节点与合并节点之间报文的多发选收。5. Multiple second messages arrive at node M through different forwarding paths. Node M forwards the first received second message to node E, and discards the rest of the messages. Thus, the replication node and the merge node are realized. Multiple sending and selective receiving of messages between them.
6.节点E接收到节点发送的第二报文后,从第二报文中获取服务数据。6. After receiving the second message sent by the node, the node E obtains the service data from the second message.
参见图10,图10是本申请实施例提供的又一种应用场景示意图。Referring to FIG. 10 , FIG. 10 is a schematic diagram of another application scenario provided by the embodiment of the present application.
在图10中,复制节点R从本地或者控制器获取指示信息和数量信息,其中,指示信息 用于指示复制节点R对报文进行复制,数量信息与复制报文的数量对应。假设复制节点R上配置的SRPolicy包含四条转发路径,分别为路径1(path1)、路径2(path2)、路径3(path3)和路径4(path4),path1指示经过节点R1到达合并节点M的路径,path2指示经过节点R2到达合并节点M的路径,path3指示经过节点R3到达合并节点M的路径,path4指示经过节点R4到达合并节点M的路径。In Fig. 10, the replication node R acquires indication information and quantity information from the local or the controller, wherein the indication information is used to instruct the replication node R to replicate the message, and the quantity information corresponds to the quantity of the replicated message. Assume that the SRPolicy configured on the replication node R contains four forwarding paths, namely path 1 (path1), path 2 (path2), path 3 (path3) and path 4 (path4), and path1 indicates the path to the merge node M via node R1 , path2 indicates the path to merge node M via node R2, path3 indicates the path to merge node M via node R3, and path4 indicates the path to merge node M via node R4.
示例性地,假设数量信息指示的数量为2,则复制节点R执行复制动作后获得三个第二报文,分别为报文1、报文2和报文3,复制节点R可以从SRPolicy中选择三条转发路径用于第二报文的封装,例如,使用path1封装报文1,使用path2封装报文2以及使用路径path3封装报文3,则复制节点R基于path1转发报文1,基于path2转发报文2,基于path3转发报文3。Exemplarily, assuming that the quantity indicated by the quantity information is 2, the replication node R obtains three second messages after executing the replication action, which are respectively message 1, message 2 and message 3, and the replication node R can obtain three second messages from the SRPolicy Select three forwarding paths for the encapsulation of the second message. For example, use path1 to encapsulate message 1, use path2 to encapsulate message 2, and use path path3 to encapsulate message 3, then copy node R forwards message 1 based on path1, and based on path2 Forward packet 2 and forward packet 3 based on path3.
一具体实施中,复制节点R检测到选中的转发路径path1、path2和path3中path3发生故障,由于复制节点R上SR Policy中包含的转发路径的数量大于上述第二报文的数量,则复制节点R可以选中path4替代故障的path3,即使用path4封装报文3,并基于path4转发报文3。由此可以看出,在多发选收场景下出现路径故障时,本申请实施例中的复制节点可以灵活地选择其他转发路径替换,提高了报文转发的可靠性。In a specific implementation, the replication node R detects that path3 among the selected forwarding paths path1, path2, and path3 fails. Since the number of forwarding paths included in the SR Policy on the replication node R is greater than the number of the above-mentioned second messages, the replication node R R can select path4 to replace the faulty path3, that is, use path4 to encapsulate packet 3 and forward packet 3 based on path4. It can be seen from this that when a path failure occurs in a multi-sending and selective-receiving scenario, the replication node in the embodiment of the present application can flexibly select another forwarding path to replace, thereby improving the reliability of packet forwarding.
另一具体实施中,复制节点R检测到选中的三条转发路径path1、path2和path3中有两条转发路径故障,而SR Policy中剩余的未被选择的转发路径的数量为1,无法实现选择三条转发路径用于第二报文的封装,在此情况下,复制节点R可以向控制器发送告警信息,控制器可以根据告警信息调整数量信息指示的数量后重新下发SR Policy给复制节点R。在一些可能的实施例中,在Binding SID承载数量信息时,若出现上述故障情况,只需动态更新Binding SID,无需控制器重新下发SR Policy,实现了数量信息与策略信息的解耦。In another specific implementation, the replication node R detects that two of the three selected forwarding paths path1, path2, and path3 are faulty, and the number of remaining unselected forwarding paths in the SR Policy is 1, so it is impossible to select three forwarding paths The forwarding path is used for the encapsulation of the second message. In this case, the replication node R can send an alarm message to the controller, and the controller can adjust the quantity indicated by the quantity information according to the alarm information and re-issue the SR Policy to the replication node R. In some possible embodiments, when the Binding SID carries quantity information, if the above failure occurs, only the Binding SID needs to be dynamically updated, and the controller does not need to re-issue the SR Policy, thereby realizing the decoupling of quantity information and policy information.
参见图11,图11是本申请实施例提供的一种网络设备的功能结构示意图,网络设备30包括获取单元310、复制单元312和发送单元314。该网络设备30可以通过硬件、软件或者软硬件结合的方式来实现。Referring to FIG. 11 , FIG. 11 is a schematic diagram of a functional structure of a network device provided by an embodiment of the present application. The network device 30 includes an acquiring unit 310 , a copying unit 312 and a sending unit 314 . The network device 30 may be implemented by hardware, software, or a combination of software and hardware.
其中,获取单元310,用于获取指示信息和数量信息,其中,指示信息用于指示网络节点对报文进行复制,数量信息对应于复制报文的数量;获取单元310还用于获得第一报文;复制单元312,用于根据指示信息复制第一报文得到多个第二报文,上述多个第二报文的数量与数量信息对应;发送单元314,用于发送上述多个第二报文,这多个第二报文中至少两个第二报文封装了不同的转发路径信息。Wherein, the obtaining unit 310 is configured to obtain indication information and quantity information, wherein the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the quantity of the copied message; the obtaining unit 310 is also used to obtain the first report The copying unit 312 is used to copy the first message according to the indication information to obtain multiple second messages, and the quantity of the multiple second messages corresponds to the quantity information; the sending unit 314 is used to send the multiple second messages packets, at least two second packets among the plurality of second packets encapsulate different forwarding path information.
该网络设备30的各功能模块可用于实现图4实施例所描述的方法。在图4实施例中,获取单元310可用于执行S101和S102,复制单元312可用于执行S103,发送单元314可用于执行S104。该网络设备30的各功能模块还可用于实现图4实施例所描述的方法,为了说明书的简洁,在此不再赘述。Each functional module of the network device 30 may be used to implement the method described in the embodiment of FIG. 4 . In the embodiment in FIG. 4 , the obtaining unit 310 may be used to perform S101 and S102, the copying unit 312 may be used to perform S103, and the sending unit 314 may be used to perform S104. Each functional module of the network device 30 may also be used to implement the method described in the embodiment of FIG. 4 , and for the sake of brevity of the description, details are not repeated here.
本申请还提供一种网络设备。如图12所示,网络设备40包括:处理器401、通信接口402、存储器403和总线404。处理器401、存储器403和通信接口402之间通过总线404通信。网络设备40可以是路由器,交换机等网络设备,也可以是用于上述网络设备的能够实现 上述方法的组件,例如单板,芯片,线卡等。应理解,本申请不限定网络设备40中的处理器、存储器的个数。The application also provides a network device. As shown in FIG. 12 , the network device 40 includes: a processor 401 , a communication interface 402 , a memory 403 and a bus 404 . The processor 401 , the memory 403 and the communication interface 402 communicate through a bus 404 . The network device 40 may be a network device such as a router or a switch, or may be a component for the above network device capable of implementing the above method, such as a single board, a chip, a line card, and the like. It should be understood that the present application does not limit the number of processors and memories in the network device 40 .
总线404可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。总线404可包括在网络设备40各个部件(例如,存储器403、处理器401、通信接口402)之间传送信息的通路。The bus 404 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one line is used in FIG. 12 , but it does not mean that there is only one bus or one type of bus. The bus 404 may include pathways for transferring information between various components of the network device 40 (eg, memory 403 , processor 401 , communication interface 402 ).
处理器401可以包括中央处理器(central processing unit,CPU)、微处理器(micro processor,MP)或者数字信号处理器(digital signal processor,DSP)等处理器中的任意一种或多种。The processor 401 may include any one or more of processors such as a central processing unit (central processing unit, CPU), a microprocessor (micro processor, MP), or a digital signal processor (digital signal processor, DSP).
存储器403用于提供存储空间,存储空间中可以存储操作系统和计算机程序等数据。存储器403可以是随机存取存储器(random access memory,RAM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、只读存储器(read-only memory,ROM),或便携式只读存储器(compact disc read memory,CD-ROM)等中的一种或者多种的组合。存储器403可以单独存在,也可以集成于处理器401内部。The memory 403 is used to provide a storage space, in which data such as operating systems and computer programs can be stored. Memory 403 can be random access memory (random access memory, RAM), erasable programmable read only memory (erasable programmable read only memory, EPROM), read-only memory (read-only memory, ROM), or portable read-only memory One or more combinations of memory (compact disc read memory, CD-ROM), etc. The memory 403 may exist independently, or may be integrated inside the processor 401 .
通信接口402可用于为处理器401提供信息输入或输出。或者可替换的,该通信接口402可用于接收外部发送的数据和/或向外部发送数据,可以为包括诸如以太网电缆等的有线链路接口,也可以是无线链路(如Wi-Fi、蓝牙、通用无线传输等)接口。或者可替换的,通信接口402还可以包括与接口耦合的发射器(如射频发射器、天线等),或者接收器等。Communication interface 402 may be used to provide information input or output to processor 401 . Or alternatively, the communication interface 402 can be used to receive data sent from the outside and/or send data to the outside, and can be a wired link interface such as an Ethernet cable, or a wireless link (such as Wi-Fi, Bluetooth, general wireless transmission, etc.) interface. Or alternatively, the communication interface 402 may further include a transmitter (such as a radio frequency transmitter, an antenna, etc.) or a receiver coupled with the interface.
该网络设备40中的处理器401用于读取存储器403中存储的计算机程序,用于执行前述方法,例如图4所描述的报文发送方法。The processor 401 in the network device 40 is configured to read the computer program stored in the memory 403 to execute the aforementioned method, such as the message sending method described in FIG. 4 .
在一种可能的设计方式中,网络设备40可为执行图4所示方法的执行主体中的一个或多个模块,该处理器401可用于读取存储器403中存储的一个或多个计算机程序,用于执行以下操作:In a possible design mode, the network device 40 can be one or more modules in the execution subject of the method shown in FIG. 4 , and the processor 401 can be used to read one or more computer programs stored in the memory 403 , which does the following:
通过获取单元310获取指示信息和数量信息,其中,指示信息用于指示网络节点对报文进行复制,数量信息对应于复制报文的数量;以及获得第一报文;Obtaining indication information and quantity information through the obtaining unit 310, wherein the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the quantity of the copied message; and obtaining the first message;
根据指示信息复制第一报文得到多个第二报文,上述多个第二报文的数量与数量信息对应;Copying the first message according to the instruction information to obtain a plurality of second messages, the quantity of the plurality of second messages corresponds to the quantity information;
通过发送单元314发送上述多个第二报文,这多个第二报文中至少两个第二报文封装了不同的转发路径信息。The above-mentioned multiple second packets are sent by the sending unit 314, and at least two of the multiple second packets encapsulate different forwarding path information.
在本文上述的实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments herein, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
需要说明的是,本领域普通技术人员可以看到上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储 (Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。It should be noted that those skilled in the art can see that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium , storage medium includes read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory ( Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically-Erasable Programmable Read-Only Memory, EEPROM, Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机程序产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是个人计算机,服务器,或者网络设备、机器人、单片机、芯片、机器人等)执行本申请各个实施例所述方法的全部或部分步骤。The essence of the technical solution of the present application or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products. The computer program product is stored in a storage medium, including several instructions. So that a device (which may be a personal computer, a server, or a network device, a robot, a single-chip microcomputer, a chip, a robot, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application.

Claims (32)

  1. 一种报文发送方法,应用于网络节点,其特征在于,所述方法包括:A method for sending a message, applied to a network node, characterized in that the method comprises:
    获取指示信息和数量信息,所述指示信息用于指示所述网络节点对报文进行复制,所述数量信息对应于复制报文的数量;Acquiring indication information and quantity information, where the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the quantity of the copied message;
    获得第一报文;get the first message;
    根据所述指示信息复制所述第一报文得到多个第二报文,所述多个第二报文的数量与所述数量信息对应;Copying the first message according to the indication information to obtain multiple second messages, the number of the multiple second messages corresponds to the number information;
    发送所述多个第二报文,所述多个第二报文中至少两个第二报文封装了不同的转发路径信息。sending the plurality of second packets, where at least two second packets in the plurality of second packets encapsulate different forwarding path information.
  2. 根据权利要求1所述的方法,其特征在于,所述指示信息和所述数量信息包含在策略信息中。The method according to claim 1, wherein the indication information and the quantity information are included in policy information.
  3. 根据权利要求2所述的方法,其特征在于,所述获取指示信息和数量信息,包括:The method according to claim 2, wherein said obtaining indication information and quantity information comprises:
    接收控制器发送的通告消息,所述通告消息包含所述策略信息;receiving a notification message sent by the controller, where the notification message includes the policy information;
    根据所述通告消息获取所述指示信息和所述数量信息。Acquiring the indication information and the quantity information according to the notification message.
  4. 根据权利要求1所述的方法,其特征在于,所述指示信息包含在策略信息中,所述数量信息包含在所述网络节点的段标识。The method according to claim 1, wherein the indication information is included in policy information, and the quantity information is included in a segment identifier of the network node.
  5. 根据权利要求4所述的方法,其特征在于,所述第一报文包含所述网络节点的段标识,所述获取指示信息和数量信息,包括:The method according to claim 4, wherein the first message includes the segment identifier of the network node, and the acquisition instruction information and quantity information include:
    接收控制器发送的通告消息,所述通告消息包含所述策略信息;receiving a notification message sent by the controller, where the notification message includes the policy information;
    根据所述通告消息获得所述指示信息;Obtain the indication information according to the notification message;
    根据所述网络节点的段标识获得所述数量信息。The quantity information is obtained according to the segment identification of the network node.
  6. 根据权利要求4或5所述的方法,其特征在于,所述网络节点的段标识为绑定段标识Binding SID。The method according to claim 4 or 5, wherein the segment identifier of the network node is a Binding SID.
  7. 根据权利要求1所述的方法,其特征在于,所述数量信息包含在策略信息中,所述指示信息包含在所述网络节点的段标识。The method according to claim 1, characterized in that the quantity information is included in policy information, and the indication information is included in a segment identifier of the network node.
  8. 根据权利要求7所述的方法,其特征在于,所述第一报文包含所述网络节点的段标识,所述获取指示信息和数量信息,包括:The method according to claim 7, wherein the first message includes the segment identifier of the network node, and the acquisition instruction information and quantity information include:
    接收控制器发送的通告消息,所述通告消息包含所述策略信息;receiving a notification message sent by the controller, where the notification message includes the policy information;
    根据所述通告消息获得所述数量信息;Obtain the quantity information according to the notification message;
    根据所述网络节点的段标识获得所述指示信息。The indication information is obtained according to the segment identifier of the network node.
  9. 根据权利要求7或8所述的方法,其特征在于,所述段标识为绑定至SRv6流量工程策略的具有复制功能的端点End.B6.Replication类型的SID。The method according to claim 7 or 8, wherein the segment identifier is a SID of type End.B6.Replication bound to an endpoint with a replication function in an SRv6 traffic engineering policy.
  10. 根据权利要求1所述的方法,其特征在于,所述指示信息和所述数量信息包含在所述网络节点的段标识中,所述网络节点的段标识为End.B6.Replication类型的SID。The method according to claim 1, wherein the indication information and the quantity information are included in the segment identifier of the network node, and the segment identifier of the network node is a SID of type End.B6.Replication.
  11. 根据权利要求10所述的方法,其特征在于,所述第一报文包含所述网络节点的段标识,所述获取指示信息和数量信息,包括:The method according to claim 10, wherein the first message includes the segment identifier of the network node, and the acquisition instruction information and quantity information include:
    根据所述网络节点的段标识获得所述数量信息和所述指示信息。Obtain the quantity information and the indication information according to the segment identifier of the network node.
  12. 根据权利要求2-9任一项所述的方法,其特征在于,所述策略信息为段路由策略SR policy或SRv6 policy。The method according to any one of claims 2-9, wherein the policy information is a segment routing policy SR policy or SRv6 policy.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-12, characterized in that the method further comprises:
    在所述多个第二报文中分别添加相同的报文序列号。Adding the same message sequence numbers to the plurality of second messages respectively.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method according to claim 13, further comprising:
    在所述多个第二报文中分别添加相同的流标识。Adding the same flow identifiers to the multiple second packets respectively.
  15. 根据权利要求3所述的方法,其特征在于,所述通告消息为边界网关协议BGP消息,所述指示信息和所述数量信息承载于所述BGP消息中以下字段中的任意一种:The method according to claim 3, wherein the notification message is a Border Gateway Protocol (BGP) message, and the indication information and the quantity information are carried in any of the following fields in the BGP message:
    绑定段标识子类型-长度-值Binding SID Sub-TLV字段;或Binding segment identification subtype-length-value Binding SID Sub-TLV field; or
    隧道封装属性Tunnel Encaps Attribute字段。Tunnel encapsulation attribute Tunnel Encaps Attribute field.
  16. 根据权利要求5或8所述的方法,其特征在于,所述通告消息为BGP消息,所述指示信息或所述数量信息承载于所述BGP消息中以下字段中的任意一种:The method according to claim 5 or 8, wherein the notification message is a BGP message, and the indication information or the quantity information is carried in any of the following fields in the BGP message:
    绑定段标识子类型-长度-值Binding SID Sub-TLV字段;或Binding segment identification subtype-length-value Binding SID Sub-TLV field; or
    隧道封装属性Tunnel Encaps Attribute字段。Tunnel encapsulation attribute Tunnel Encaps Attribute field.
  17. 根据权利要求3所述的方法,其特征在于,所述通告消息为路径计算单元通信协议PCEP消息,所述指示信息和所述数量信息承载于所述PCEP消息中以下字段中的任意一种:The method according to claim 3, wherein the notification message is a path computation element communication protocol PCEP message, and the indication information and the quantity information are carried in any of the following fields in the PCEP message:
    扩展关联标识Extended Association ID TLV字段;Extended Association ID Extended Association ID TLV field;
    流量工程路径绑定TE Path Binding TLV字段;Traffic engineering path binding TE Path Binding TLV field;
    段路由策略候选路径标识SR Policy CPath TLV字段;或Segment Routing Policy Candidate Path Identifier SR Policy CPath TLV field; or
    关联信息Association Information的新增类型-长度-值TLV字段。The new type-length-value TLV field of association information Association Information.
  18. 根据权利要求5或8所述的方法,其特征在于,所述通告消息为PCEP消息,所述指示信息或所述数量信息承载于所述PCEP消息中以下字段中的任意一种:The method according to claim 5 or 8, wherein the notification message is a PCEP message, and the indication information or the quantity information is carried in any of the following fields in the PCEP message:
    扩展关联标识Extended Association ID TLV字段;Extended Association ID Extended Association ID TLV field;
    流量工程路径绑定TE Path Binding TLV字段;Traffic engineering path binding TE Path Binding TLV field;
    段路由策略候选路径标识SR Policy CPath TLV字段;或Segment Routing Policy Candidate Path Identifier SR Policy CPath TLV field; or
    关联信息Association Information的新增类型-长度-值TLV字段。The new type-length-value TLV field of association information Association Information.
  19. 根据权利要求2-9、12和15-18中任一项所述的方法,其特征在于,所述转发路径信息为所述策略信息中包含的段标识列表SID List。The method according to any one of claims 2-9, 12 and 15-18, wherein the forwarding path information is a SID List contained in the policy information.
  20. 根据权利要求19所述的方法,其特征在于,所述多个第二报文中至少两个第二报文封装了不同的转发路径信息,包括:The method according to claim 19, wherein at least two second packets in the plurality of second packets encapsulate different forwarding path information, including:
    所述多个第二报文中至少两个第二报文封装了不同的SID List,所述SID List对应于多个候选路径中一个路径的SID List,所述多个候选路径是根据所述策略信息的各个候选路径的偏好值preference确定的。At least two second packets in the plurality of second packets encapsulate different SID Lists, the SID List corresponds to the SID List of one path in the plurality of candidate paths, and the plurality of candidate paths are based on the The preference value preference of each candidate path in the policy information is determined.
  21. 根据权利要求2、4、7和10中任一项所述的方法,其特征在于,所述指示信息和所述数量信息为所述网络节点在本地配置的,所述方法还包括:The method according to any one of claims 2, 4, 7 and 10, wherein the indication information and the quantity information are locally configured by the network node, and the method further comprises:
    向控制器发送边界网关协议链路状态BGP-LS消息,所述BGP-LS消息包括所述指示信息和所述数量信息,所述指示信息和所述数量信息承载于所述BGP-LS消息中以下字段中的任意一种:Send a Border Gateway Protocol Link State BGP-LS message to the controller, the BGP-LS message includes the indication information and the quantity information, and the indication information and the quantity information are carried in the BGP-LS message Any of the following fields:
    流量工程策略描述符TE Policy Descriptors;或Traffic Engineering Policy Descriptors TE Policy Descriptors; or
    段路由策略候选路径描述符SR Policy Candidate Path Descriptor中。In the segment routing policy candidate path descriptor SR Policy Candidate Path Descriptor.
  22. 一种报文发送装置,其特征在于,所述装置包括:A device for sending messages, characterized in that the device comprises:
    获取单元,用于获取指示信息和数量信息,所述指示信息用于指示所述网络节点对报文进行复制,所述数量信息对应于复制报文的数量;An obtaining unit, configured to obtain indication information and quantity information, the indication information is used to instruct the network node to copy the message, and the quantity information corresponds to the quantity of the copied message;
    所述获取单元,还用于获得第一报文;The acquiring unit is further configured to acquire the first message;
    复制单元,用于根据所述指示信息复制所述第一报文得到多个第二报文,所述多个第二报文的数量与所述数量信息对应;A copying unit, configured to copy the first message according to the indication information to obtain multiple second messages, the number of the multiple second messages corresponds to the number information;
    发送单元,用于发送所述多个第二报文,所述多个第二报文中至少两个第二报文封装了不同的转发路径信息。A sending unit, configured to send the plurality of second packets, where at least two of the plurality of second packets encapsulate different forwarding path information.
  23. 根据权利要求22所述的装置,其特征在于,所述指示信息和所述数量信息包含在策略信息中。The device according to claim 22, wherein the indication information and the quantity information are included in policy information.
  24. 根据权利要求23所述的装置,其特征在于,所述获取单元,具体用于:The device according to claim 23, wherein the acquiring unit is specifically used for:
    接收控制器发送的通告消息,所述通告消息包含所述策略信息;receiving a notification message sent by the controller, where the notification message includes the policy information;
    根据所述通告消息获取所述指示信息和所述数量信息。Acquiring the indication information and the quantity information according to the notification message.
  25. 根据权利要求22所述的装置,其特征在于,所述指示信息包含在策略信息中,所述数量信息包含在所述网络节点的段标识。The device according to claim 22, wherein the indication information is included in policy information, and the quantity information is included in a segment identifier of the network node.
  26. 根据权利要求25所述的装置,其特征在于,所述第一报文包含所述网络节点的段标识,所述获取单元,具体用于:The device according to claim 25, wherein the first message includes the segment identifier of the network node, and the obtaining unit is specifically configured to:
    接收控制器发送的通告消息,所述通告消息包含所述策略信息;receiving a notification message sent by the controller, where the notification message includes the policy information;
    根据所述通告消息获得所述指示信息;Obtain the indication information according to the notification message;
    根据所述网络节点的段标识获得所述数量信息。The quantity information is obtained according to the segment identification of the network node.
  27. 根据权利要求22所述的装置,其特征在于,所述数量信息包含在策略信息中,所述指示信息包含在所述网络节点的段标识。The device according to claim 22, wherein the quantity information is included in policy information, and the indication information is included in a segment identifier of the network node.
  28. 根据权利要求27所述的装置,其特征在于,所述第一报文包含所述网络节点的段标识,所述获取单元,具体用于:The device according to claim 27, wherein the first message includes the segment identifier of the network node, and the obtaining unit is specifically configured to:
    接收控制器发送的通告消息,所述通告消息包含所述策略信息;receiving a notification message sent by the controller, where the notification message includes the policy information;
    根据所述通告消息获得所述数量信息;Obtain the quantity information according to the notification message;
    根据所述网络节点的段标识获得所述指示信息。The indication information is obtained according to the segment identifier of the network node.
  29. 根据权利要求22所述的装置,其特征在于,所述指示信息和所述数量信息包含在所述网络节点的段标识中,所述段标识为End.B6.Replication类型的SID。The device according to claim 22, wherein the indication information and the quantity information are contained in the segment identifier of the network node, and the segment identifier is a SID of type End.B6.Replication.
  30. 根据权利要求29所述的装置,其特征在于,所述第一报文包含所述网络节点的段标识,所述获取单元,具体用于:The device according to claim 29, wherein the first message includes the segment identifier of the network node, and the obtaining unit is specifically configured to:
    根据所述网络节点的段标识获得所述数量信息和所述指示信息。Obtain the quantity information and the indication information according to the segment identifier of the network node.
  31. 根据权利要求23-28中任一项所述的装置,其特征在于,所述策略信息为段路由策略SR policy或SRv6 policy。The device according to any one of claims 23-28, wherein the policy information is a segment routing policy SR policy or SRv6 policy.
  32. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在被处理器运行时,实现如权利要求1-21中任一项所述的方法。A computer-readable storage medium is characterized by comprising computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1-21 is implemented.
PCT/CN2022/124423 2021-11-02 2022-10-10 Message sending method and apparatus WO2023078031A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111288608.5A CN116074395A (en) 2021-11-02 2021-11-02 Message sending method and device
CN202111288608.5 2021-11-02

Publications (1)

Publication Number Publication Date
WO2023078031A1 true WO2023078031A1 (en) 2023-05-11

Family

ID=86182479

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124423 WO2023078031A1 (en) 2021-11-02 2022-10-10 Message sending method and apparatus

Country Status (2)

Country Link
CN (1) CN116074395A (en)
WO (1) WO2023078031A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140365586A1 (en) * 2013-06-07 2014-12-11 George Vincent Friborg, JR. Systems and methods for retargeting text message alerts
CN107547293A (en) * 2016-06-29 2018-01-05 新华三技术有限公司 A kind of flow path detection method and device
CN108055211A (en) * 2017-12-22 2018-05-18 盛科网络(苏州)有限公司 A kind of method of multicast replication, equipment and storage medium
CN113114566A (en) * 2017-09-25 2021-07-13 华为技术有限公司 Message forwarding method and network equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140365586A1 (en) * 2013-06-07 2014-12-11 George Vincent Friborg, JR. Systems and methods for retargeting text message alerts
CN107547293A (en) * 2016-06-29 2018-01-05 新华三技术有限公司 A kind of flow path detection method and device
CN113114566A (en) * 2017-09-25 2021-07-13 华为技术有限公司 Message forwarding method and network equipment
CN108055211A (en) * 2017-12-22 2018-05-18 盛科网络(苏州)有限公司 A kind of method of multicast replication, equipment and storage medium

Also Published As

Publication number Publication date
CN116074395A (en) 2023-05-05

Similar Documents

Publication Publication Date Title
EP3678338B1 (en) Method for forwarding messages and network device
US20130170354A1 (en) Computer system and communication method in computer system
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
JP7403635B2 (en) METHODS, APPARATUS AND SYSTEM FOR FORWARDING PACKETS IN SR NETWORK
WO2021088433A1 (en) Message processing method, device and system
WO2021082575A1 (en) Packet forwarding method, apparatus, storage medium, and system
JP7092813B2 (en) Packet transmission method and equipment
CN111147372B (en) Downlink message sending and forwarding method and device
CN111698162A (en) Method, device and system for information synchronization
US11356372B2 (en) Data traffic processing method, device, and system
WO2018090210A1 (en) Service packet transmission method, and node apparatus
CN107018072B (en) data frame sending method and access equipment
WO2023078031A1 (en) Message sending method and apparatus
JP5907252B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
JP2006511115A (en) Return path derivation in packet-switched networks
WO2022135321A1 (en) Packet transmission method, device and system
WO2024001701A1 (en) Data processing method, apparatus and system
WO2024083219A1 (en) Message processing method and apparatus, and device and storage medium
WO2015127600A1 (en) Shunting and reporting method, switch, controller and system
WO2023226859A1 (en) Segment routing policy processing method and apparatus
WO2022242775A1 (en) Packet processing method and system, and network device
WO2024067084A1 (en) Path fault detection method and related apparatus
Mosko Metis CCNx 1.0 Forwarder
US8817638B2 (en) Method and system for network communications utilizing shared scalable resources
WO2019223435A1 (en) Multicast fast switching method, device, apparatus, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22889057

Country of ref document: EP

Kind code of ref document: A1