WO2022267083A1 - Path determination methods and apparatus - Google Patents

Path determination methods and apparatus Download PDF

Info

Publication number
WO2022267083A1
WO2022267083A1 PCT/CN2021/103300 CN2021103300W WO2022267083A1 WO 2022267083 A1 WO2022267083 A1 WO 2022267083A1 CN 2021103300 W CN2021103300 W CN 2021103300W WO 2022267083 A1 WO2022267083 A1 WO 2022267083A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet loss
loss rate
node
link
path
Prior art date
Application number
PCT/CN2021/103300
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 WO2022267083A1 publication Critical patent/WO2022267083A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/142Network analysis or design using statistical or mathematical methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath

Definitions

  • the present application relates to the field of network technologies, and more specifically, to a method and device for determining a path.
  • the traditional interior gateway protocol can calculate the shortest path to the destination address according to the cost value of the link and the shortest path first (shortest path first, SPF) algorithm.
  • SPF shortest path first
  • the SPF algorithm based on the cost value of the link is fixed and cannot be adjusted by the user, making it inconvenient to calculate the optimal path according to their own needs.
  • the link packet loss rate is an important factor affecting link service quality. If the IGP ignores the link packet loss rate when calculating paths based on SPF, it may obtain a path with a high link packet loss rate, which will affect the link quality. service quality level, thus affecting the service experience of users.
  • the present application provides a method and device for determining a path, which can support Flex-Algo path calculation based on the link packet loss rate, and is beneficial to improve the service quality of the link.
  • a method for determining a path is provided, which is applied to a network including a plurality of nodes, including: a first node among the plurality of nodes receives information of a target flexible algorithm, and the information of the target flexible algorithm includes information for indicating a link The indicator of the path packet loss rate.
  • the first node determines at least one target path to the second node among the plurality of nodes based on the target flexible algorithm, and the target path is a path with the smallest sum of link packet loss rates among the plurality of candidate paths.
  • a metric type based on the link packet loss rate can be added, and the first node can calculate the target that meets the link packet loss rate requirement based on the link packet loss rate in the information of the target flexible algorithm.
  • the path is conducive to improving the link quality of service level, thereby improving the user's service experience.
  • the sum of the first packet loss rate weights of at least one link of the target path is the smallest among multiple candidate paths, and the first packet loss rate weight The value is determined according to the link packet loss rate.
  • the first node may consider the packet loss rate weight corresponding to the link packet loss rate when calculating the path, and determine the target path that meets the service requirement according to the packet loss rate weight.
  • the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
  • the corresponding packet loss rate weight ranges from 1 to 16777214.
  • the packet loss rate weight is 0.
  • the packet loss rate weights corresponding to the link packet loss rate from each node to other nodes are all 0.
  • a loop problem may occur when the packet rate is calculated for the metric type. Therefore, when the link packet loss rate is 0, the corresponding packet loss rate weight can be set to a value greater than 0, and the packet loss rate weight increases with the increase of the link packet loss rate, which can also achieve the distinction The purpose of different link packet loss rates.
  • the link packet loss rate of 0 corresponds to the first packet loss rate weight value of 1
  • the link packet loss rate of 0.000003% corresponds to the first packet loss rate weight value is 2
  • 0.000003% is the basic measurement unit of link packet loss rate.
  • the packet loss rate weight value of 1 can be reserved for the case where there is no link packet loss rate (that is, the link packet loss rate is 0), and the link packet loss rate is 0.000003% corresponding to the packet loss The rate weight is incremented to 2, and so on. In this way, loop problems will not occur when the link packet loss rate is 0, and different link packet loss rates can be distinguished.
  • receiving the information of the target flexible algorithm by the first node among the multiple nodes includes: the first node receiving the first message from other nodes in the network,
  • the first packet includes information about the target flexible algorithm, and the information about the target flexible algorithm includes a flexible algorithm definition (flexible algorithm definition, FAD) of the target flexible algorithm.
  • FAD flexible algorithm definition
  • the first node can flood the target flexible algorithm information through the first message, so that the entire network can build a topology based on Flex-Algo, and each node in the network can generate a topology based on Flex-Algo routing information.
  • the first node receives a second packet from other nodes in the network, where the second packet includes a second packet loss rate weight of at least one link ;
  • the first node determines the first packet loss rate weight based on the second message.
  • the first node may receive a second packet loss rate weight issued by other nodes in the network, and the second packet loss rate weight may be carried in the second message.
  • the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
  • the second packet loss rate weight may be carried in the sub-TLV of the second packet.
  • the second packet loss rate weight may be published through one of the sub-TLVs (sub-sub TLVs) of the No. 16 sub-TLV of the ISIS message.
  • the first node determines the first packet loss rate weight based on the second message, including: the first node adds the second packet loss rate weight to The value after 1 is determined as the first packet loss rate weight.
  • the second packet loss rate weight value received by the first node is determined according to the corresponding relationship between the link packet loss rate on the current interface and the packet loss rate weight value.
  • the packet loss rate weight of the link is 0, resulting in a loop. Therefore, after receiving the second packet loss rate weight, the first node can determine the value obtained by adding 1 to the second packet loss rate weight.
  • the first packet loss rate weight is the first packet loss rate weight, and the IGP can calculate a target path that satisfies the requirement according to the first packet loss rate weight when calculating the path.
  • the first node determines the first packet loss rate weight based on the second message, including: the first node determines the second packet loss rate weight is the first packet loss rate weight.
  • the original packet loss rate weight determined according to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface has been added to 1 to obtain the second packet loss rate weight, so the first node can determine the second packet loss rate weight as the first packet loss rate weight.
  • the information of the target flexible algorithm further includes an identification of a calculation type; the first node determines, based on the target flexible algorithm, the At least one target path, comprising: the first node determines at least one target path to the second node from multiple candidate paths based on at least one of the target flexible algorithm, the link packet loss rate, or the calculation type .
  • a method for determining a path is provided, which is applied to a network including multiple nodes, including: a third node among the multiple nodes sends information of a target flexible algorithm to other nodes in the network, and the target flexible algorithm
  • the information includes an identifier for indicating the link packet loss rate, and the information of the target flexible algorithm is used by other nodes in the network to determine at least one target path based on the target flexible algorithm.
  • the third node may serve as a sending end and may send the information of the target flexible algorithm to other nodes in the network (including the above-mentioned first node).
  • the first node may also be the same node as the third node, that is, the above-mentioned first node may perform the same steps as the third node, and send information about the target flexible algorithm to other nodes in the network.
  • One node is the sending end, and the third node can receive the target flexible algorithm information as the receiving end.
  • the third node among the multiple nodes sends information about the target flexible algorithm to other nodes in the network, including: the third node sends the information of the target flexible algorithm to other nodes in the network A message, where the first message includes information about the target flexible algorithm.
  • the third node sends a second message to other nodes in the network, where the second message includes a second packet loss rate weight of at least one link,
  • the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
  • the third node before the third node sends the second message to other nodes in the network, it further includes: the third node corresponds to the original link packet loss rate A value obtained by adding 1 to the packet loss rate weight is determined as the second packet loss rate weight.
  • the third node may determine the value obtained by adding 1 to the original packet loss rate weight determined according to the corresponding relationship between the link packet loss rate on the current interface and the packet loss rate weight value as the second loss rate weight. Packet rate weight.
  • the second packet loss rate weight is greater than 0, and the second packet loss rate weight increases as the link packet loss rate increases.
  • the link packet loss rate of 0 corresponds to the second packet loss rate weight value of 1
  • the link packet loss rate of 0.000003% corresponds to the second packet loss rate weight value is 2
  • 0.000003% is the basic measurement unit of link packet loss rate.
  • a device for determining a path including: a receiving module, configured to receive information of a target flexible algorithm, where the information of the target flexible algorithm includes an identifier for indicating a packet loss rate of a link; a determining module, configured to Based on the target flexible algorithm, at least one target path to the second node among the plurality of nodes is determined, and the target path is the path with the minimum sum of packet loss rates of the links among the plurality of candidate paths.
  • the sum of the first packet loss rate weights of at least one link of the target path is the smallest among multiple candidate paths, and the first packet loss rate weight The value is determined according to the link packet loss rate.
  • the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
  • the link packet loss rate of 0 corresponds to the first packet loss rate weight value of 1
  • the link packet loss rate of 0.000003% corresponds to the first packet loss rate weight value is 2
  • 0.000003% is the basic measurement unit of link packet loss rate.
  • the receiving module is configured to: receive a first message from other nodes in the network, the first message includes information about the target flexible algorithm, and the target flexible
  • the algorithm information includes a flexible algorithm definition (FAD) of the target flexible algorithm.
  • the receiving module is configured to: receive a second message from other nodes in the network, where the second message includes a second packet loss rate of at least one link Weight; the determining module is configured to: determine the first packet loss rate weight based on the second packet.
  • the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
  • the determining module is configured to: determine a value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
  • the determining module is configured to: determine the second packet loss rate weight as the first packet loss rate weight.
  • the information of the target flexible algorithm also includes an identification of a calculation type; the determining module is configured to: based on the target flexible algorithm, the link packet loss rate or the calculation type In at least one of the plurality of candidate paths, at least one target path to the second node is determined.
  • another device for determining a path including: a determining module, configured to determine information of a target flexible algorithm, the information of the target flexible algorithm includes an identifier for indicating a link packet loss rate, and the target flexible algorithm The information is used by other nodes in the network to determine at least one target path based on the target flexible algorithm; the sending module is used to send the information of the target flexible algorithm to other nodes in the network.
  • the sending module is configured to: send a first message to other nodes in the network, where the first message includes information about the target flexible algorithm.
  • the sending module is configured to: send a second message to other nodes in the network, where the second message includes a second packet loss rate weight of at least one link value, the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
  • the determining module is configured to: determine the value obtained by adding 1 to the original packet loss rate weight corresponding to the link packet loss rate as the second packet loss rate weight value.
  • the second packet loss rate weight is greater than 0, and the second packet loss rate weight increases as the link packet loss rate increases.
  • the link packet loss rate of 0 corresponds to the second packet loss rate weight value of 1
  • the link packet loss rate of 0.000003% corresponds to the second packet loss rate weight value is 2
  • 0.000003% is the basic measurement unit of link packet loss rate.
  • another device for determining a path including a processor, the processor is coupled with a memory, and can be used to execute instructions in the memory, so as to realize any possible implementation manner in the first aspect or the second aspect above method in .
  • the device further includes a memory.
  • the device further includes a communication interface, and the processor is coupled to the communication interface.
  • the device for determining a path is a routing device
  • the communication interface may be a transceiver, or an input/output interface.
  • the device for determining the path is a chip configured in the routing device.
  • the communication interface may be an input/output interface.
  • a processor including: an input circuit, an output circuit, and a processing circuit.
  • the processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation manner of the first aspect or the second aspect above.
  • the above-mentioned processor can be a chip
  • the input circuit can be an input pin
  • the output circuit can be an output pin
  • the processing circuit can be a transistor, a gate circuit, a flip-flop, and various logic circuits.
  • the input signal received by the input circuit may be received and input by, for example but not limited to, the receiver
  • the output signal of the output circuit may be, for example but not limited to, output to the transmitter and transmitted by the transmitter
  • the circuit may be the same circuit, which is used as an input circuit and an output circuit respectively at different times.
  • the embodiment of the present application does not limit the specific implementation manners of the processor and various circuits.
  • a processing device including a processor and a memory.
  • the processor is used to read instructions stored in the memory, and may receive signals through the receiver and transmit signals through the transmitter, so as to execute the method in any possible implementation manner of the first aspect or the second aspect above.
  • processors there are one or more processors, and one or more memories.
  • the memory may be integrated with the processor, or the memory may be separated from the processor.
  • the memory can be a non-transitory (non-transitory) memory, such as a read-only memory (read only memory, ROM), which can be integrated with the processor on the same chip, or can be respectively arranged in different On the chip, the embodiment of the present application does not limit the type of the memory and the configuration of the memory and the processor.
  • a non-transitory memory such as a read-only memory (read only memory, ROM)
  • ROM read only memory
  • a related data interaction process such as sending indication information may be a process of outputting indication information from a processor
  • receiving capability information may be a process of receiving input capability information from a processor.
  • processed output data may be output to the transmitter, and input data received by the processor may be from the receiver.
  • the transmitter and the receiver may be collectively referred to as a transceiver.
  • the processing device in the seventh aspect above can be a chip, and the processor can be implemented by hardware or by software.
  • the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software
  • the processor may be a general-purpose processor, which is realized by reading the software code stored in the memory, and the memory may be integrated in the processor, or it may be located outside the processor and exist independently.
  • a system for determining a path includes a first node and a third node, the first node executes the method in any possible implementation manner of the above first aspect, and the third node executes the above first node The method in any one of the possible implementations of the two aspects.
  • a computer program product includes: a computer program (also referred to as code, or an instruction), which, when the computer program is run, causes the computer to execute any one of the above-mentioned first aspect or the second aspect. method in one possible implementation.
  • a computer program also referred to as code, or an instruction
  • a computer-readable storage medium stores a computer program (also referred to as code, or instruction), and when it is run on a computer, it causes the computer to perform the above-mentioned first aspect. Or the method in any possible implementation manner in the second aspect.
  • a computer program also referred to as code, or instruction
  • FIG. 1 is a schematic structural diagram of an ISIS message
  • Fig. 2 is a schematic topology diagram of a multi-node network
  • FIG. 3 is a schematic flowchart of a method for determining a path provided in an embodiment of the present application
  • FIG. 4 is a schematic flowchart of another method for determining a path provided in an embodiment of the present application.
  • FIG. 5 is a schematic topology diagram of a multi-node network provided by an embodiment of the present application.
  • FIG. 6 is a schematic topology diagram of another multi-node network provided by an embodiment of the present application.
  • FIG. 7 is a schematic topology diagram of yet another multi-node network provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a sub-TLV for notifying packet loss rate weights provided by an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a device for determining a path provided in an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of another device for determining a path provided by an embodiment of the present application.
  • Fig. 11 is a schematic block diagram of another device for determining a path provided by an embodiment of the present application.
  • Fig. 12 is a schematic block diagram of a system for determining a path provided by an embodiment of the present application.
  • Flex-Algo provides a strategy similar to traffic engineering (TE), which achieves the same effect as TE by enabling the IGP to calculate the shortest path with constraints. Flex-Algo allows users to introduce durian into a customized network topology, and enrich the path calculation capability of IGP by customizing flexible algorithm definition (FAD), so as to achieve the purpose of traffic engineering.
  • TE traffic engineering
  • FAD flexible algorithm definition
  • IGP can build a Flex-Algo-based topology by flooding FAD, node Flex-Algo algorithm participation capabilities, and link TE attribute information. Based on the topology built by Flex-Algo Hou, the routing information to reach the routing identifier (locator) of the network segment is generated.
  • FAD Flexible Algorithm Definition
  • the router can extend a set of type-length-value (TLV) to carry the FAD information of Flex-Algo, which is called FAD TLV.
  • TLV type-length-value
  • the FAD TLV is used to notify the specific calculation rules of a certain Flex-Algo.
  • the FAD TLV Includes multiple sub-TLVs (sub-TLVs).
  • Fig. 1 is a schematic structural diagram of an intermediate system to intermediate system (intermediate system to intermediate system, ISIS) message. As shown in Fig. 1, the FAD TLV structure of the ISIS message includes the following fields:
  • type (type) field used to describe the type of ISIS message
  • length (length) field used to describe the length of the ISIS message
  • Flex-Algo field used to describe the digital identifier of Flex-Algo
  • Metric type used to describe the metric type identification based on the route calculation of Flex-Algo
  • Calculation type used to describe the calculation type identifier based on the route calculation of Flex-Algo;
  • Priority used to describe the priority identification of the service traffic carried by the ISIS message
  • Sub-TLV Sub-TLVs
  • Metric-type Existing metric types include link cost (IGP cost), delay, and traffic engineering (traffic engineering, TE) rules. Flex-Algo can be based on one of the various metric types. There are different kinds of metric rules to calculate paths that meet different requirements.
  • Metric-Type Type of metric to be used during the calculation.
  • RFC Request for Comments
  • metric types have different identifiers, and the identifiers range from 0 to 255.
  • the current standard draft draft-ietf-lsr-flex-algo-14 stipulates that 0 is used to identify IGP cost, and 1 is used when identifying Extended, 2 is used to identify the TE rule, and the following 3 to 255 are the identification of the reserved metric type.
  • SPF algorithm is the basis of the open shortest path first OSPF routing protocol. Each router can be used as the root (ROOT) to calculate the distance to each destination router. Each router can be calculated according to a unified database. A topology diagram of the outgoing routing domain, which is also called a shortest path tree.
  • FAD includes metric-type, calculation-type, and a set of describing topological constraints (describe a set of constraints on the topology). Users can customize FAD to enrich the path calculation of IGP. capacity, so as to achieve the purpose of traffic engineering.
  • the traditional IGP algorithm can calculate the shortest path to the destination address based on the link cost value and the SPF algorithm.
  • This method is based on the link overhead value, which cannot meet the different needs of users. For example, users expect to forward along the path with the smallest delay, or exclude some links from forwarding.
  • users since the field of automatic driving requires a network with extremely low delay, it is necessary to perform path calculation according to the delay.
  • some links have relatively high costs, and the user wishes to consider the factor of costs, so the paths with relatively high costs need to be excluded when calculating the paths.
  • the SPF algorithm based on the link cost value is fixed and cannot be adjusted by users, so it is not convenient for users to calculate the optimal path according to their own needs.
  • Flex-Algo allows users to customize the algorithm of the IGP algorithm to meet different service requirements, based on the characteristics of Flex-Algo, IGP can automatically calculate paths that meet different requirements according to link cost, delay, and TE constraints, flexibly Meet the needs of traffic engineering.
  • the calculation rules of Flex-Algo are generally represented by a triplet, that is, measurement type, calculation type and constraint.
  • the measurement type represents link index constraints (for example, delay index)
  • the calculation type represents calculation algorithm constraints (for example, SPF algorithm is used)
  • the constraint conditions represent whether to include/exclude some links when calculating paths.
  • the user can define Flex-Algo 128 as: (1) measurement type: delay; (2) calculation type: SPF; (3) constraint condition: exclude link x.
  • FIG. 2 is a schematic topology diagram of a multi-node network 200 .
  • Network 200 includes Node 0 , Node 9 , Node 1 , Node 2 , Node 3 , Node 4 , Node 5 , Node 6 , Node 7 , and Node 8 .
  • Each node in FIG. 2 supports the function of calculating paths based on flexible algorithms. Assuming that a path from node 0 to node 9 needs to be calculated, in the network 200, nodes starting from node 0 using the same Flex-Algo can calculate a path from node 0 to node 9 that satisfies the algorithm definition according to the FAD information.
  • Node 0 and Node 9 can support Flex-Algo 128 and Flex-Algo 129 at the same time, and the IGP protocol can notify the definition of Flex-Algo 128 and Flex-Algo 129 through the FAD TLV, so that all nodes in the network can perceive Node 0 and Flex-Algo 129 Algorithm and algorithm definition used by node 9.
  • Nodes 1 to 4 use Flex-Algo 128, and the IGP protocol can notify nodes 1 to 4 to use Flex-Algo 128 through the FAD TLV.
  • Nodes 5 to 8 use Flex-Algo 129, and the IGP protocol can notify nodes 5 to 8 to use Flex-Algo 129 through the FAD TLV.
  • each node can also support the most basic algorithm 0, which is the SPF algorithm based on the link cost value.
  • the node 9 is configured with the network segment routing identifier (referred to as SRv6locator) of the SR of the Internet protocol version 6 (internet protocol version 6, IPv6) data plane forwarding the IPv6 data packet to associate with the Flex-Algo , other nodes in the network can calculate the route to the network segment corresponding to this SRv6locator based on Flex-Algo.
  • SRv6locator network segment routing identifier
  • IPv6locator the network protocol version 6
  • node 0 notifies other nodes of supported algorithm 0, Flex-Algo 128, and Flex-Algo 129
  • node 9 notifies other nodes of supported algorithm 0, Flex-Algo 128, and Flex-Algo 129.
  • Node 1 Node 2, Node 3, and Node 4 notify other nodes of supported algorithm 0 and Flex-Algo 128, and Node 5, Node 6, Node 7, and Node 8 notify other nodes of supported algorithm 0 and Flex-Algo 129.
  • Flex-Algo 128 is: (1) measurement type: delay; (2) calculation type: SPF; (3) constraint condition: exclude the link composed of nodes 5 and 6.
  • Flex-Algo 129 is: (1) Metric type: TE; (2) Calculation type: SPF; (3) Constraint condition: exclude the link composed of node 1 and node 2.
  • Flex-Algo 128 and Flex-Algo 129 can logically divide network 200 into sub-network topology 210 and sub-network topology 220, sub-network topology 210 includes nodes supporting Flex-Algo 128, and sub-network topology 220 includes nodes supporting Flex-Algo 129 nodes.
  • FIG. 2 if Node 1 , Node 2 , Node 3 , and Node 4 use Flex-Algo128, then Node 1 , Node 2 , Node 3 , and Node 4 can belong to the subnetwork topology 210 . If Node 5, Node 6, Node 7, and Node 8 use Flex-Algo 129, then Node 5, Node 6, Node 7, and Node 8 can belong to the subnetwork topology 220.
  • node 0 uses Flex-Algo 128, and node 0 can flood the entire network with the FAD information of the configured Flex-Algo 128, so that each node in the subnetwork topology 210 learns the FAD information of Flex-Algo 128, like this Nodes in the sub-network topology 210 that are not configured with corresponding FAD information can also follow the FAD information calculation path of the Flex-Algo 128. The nodes in the final determined target path belong to the same subnetwork topology.
  • any node in the network 200 can also flood the FAD information of the Flex-Algo configured by itself in the whole network, so that nodes with the same Flex-Algo digital identifier can follow the same algorithm definition to calculate satisfying
  • the optimal path required by the business is not limited in this embodiment of the present application.
  • nodes 1 to 8 use Algorithm 0, and the target path calculated by node 0 may include any node in the network 200, which is not limited by Flex-Algo.
  • nodes in the network 200 may also be flexible algorithm nodes supporting Flex-Algo 130, Flex-Algo 131..., which is not limited in this embodiment of the present application.
  • the current draft standard draft-ietf-lsr-flex-algo-14 only supports Flex-Algo path calculation based on link cost (cost), delay or TE, and does not support link loss based Flex-Algo path calculation of packet rate (also called interface packet loss rate).
  • the calculated Flex-Algo path has a link packet loss rate that is too large, which may affect the user's service experience.
  • the embodiment of the present application provides a method and device for determining a path. By adding a measurement type based on the link packet loss rate, the path is calculated according to the Flex-Algo configuration strategy, which is beneficial to avoid the problem caused by the excessive link packet loss rate. service damage, thereby improving the link quality of service.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one (one) of a, b and c may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b, c can be single or multiple.
  • the method for determining the path provided by the present application can be applied to SRv6 scenarios, and can also be applied to segment routing (segment routing, SR) using a multi-protocol label switching (multi-protocol label switching, MPLS) data plane to forward MPLS packets.
  • segment routing segment routing
  • MPLS multi-protocol label switching
  • SR-MPLS scenario may also be applied to other scenarios, which is not limited in this embodiment of the present application.
  • a method for determining a path provided by an embodiment of the present application is described in detail below with reference to FIG. 3 .
  • FIG. 3 is a schematic flow chart of a method 300 for determining a path provided by an embodiment of the present application.
  • the method 300 can be applied to the network 200 shown in FIG. 2 , and the steps and/or processes of the method 300 can be performed by the first node implement.
  • Method 300 includes the following steps:
  • a first node among multiple nodes receives information about a target flexible algorithm, where the information about the target flexible algorithm includes an identifier for indicating a link packet loss rate.
  • the above-mentioned first node may be node 0 in the network 200 .
  • the first node determines at least one target path to the second node among the multiple nodes, where the target path is a path with the smallest sum of packet loss rates of the link among the multiple candidate paths.
  • the above-mentioned second node may be node 9 in the network 200 .
  • the first node may be node 0 in the network 200
  • the second node may be node 9 in the network 200 .
  • 255 may be selected from the reserved metric type identifiers (3-255) as the identifier of the link packet loss rate.
  • the first node may also determine a target path jointly with the target flexible algorithm based on other conditions.
  • other conditions may be neighbor information, a routing table, or remaining link bandwidth, which is not limited in this embodiment of the present application.
  • the first node may determine at least one target path.
  • multi-path transmission strategies such as load sharing, dual transmission and selective reception, or active and standby can be used to transmit service data.
  • a new measurement type based on the link packet loss rate can be added to calculate the target that meets the link packet loss rate requirements.
  • the path is conducive to improving the link quality service level, thereby improving the user's service experience.
  • S301 includes: the first node receives a first packet from other nodes in the network, the first packet includes information about the target flexibility algorithm, and the information about the target flexibility algorithm includes the target flexibility Algorithm FAD.
  • the first message may be an ISIS message.
  • the FAD TLV of the ISIS message includes a metric type field, and the metric type field may carry an identifier for indicating the metric type.
  • the metric type field carries the identifier of the packet loss rate of the link.
  • FIG. 4 is a schematic flowchart of another method 400 for determining a path provided by an embodiment of the present application.
  • the method 400 can be applied to the network 200 shown in FIG. 2, and the method 400 includes the following steps:
  • a third node among the multiple nodes sends a first packet to other nodes in the network.
  • the first message includes the information of the flexible algorithm, the information of the target flexible algorithm includes FAD, and the identifier for indicating the packet loss rate of the link is located in the metric type field of the FAD.
  • the first node receives the first packet.
  • the first node determines information about the target flexible algorithm based on the first packet.
  • the first node determines at least one target path to the destination node.
  • the above-mentioned first node, second node, and third node may be a routing device, and the routing device may be any device capable of calculating routing functions, such as a router or a switch, which is not limited in this embodiment of the present application.
  • the above-mentioned first node may be node 0 in the network 200
  • the third node may be the node 0 in the network 200 except Any node, which is not limited in this embodiment of the present application.
  • the first node does not know the information of the flexible algorithm, but other third nodes in the network that have configured or obtained the information of the flexible algorithm can send the first message to the first node, and the first The information of the flexible algorithm is carried in the message to notify other nodes of the path calculation rules.
  • the first node can not only serve as a receiving end to receive first messages from other nodes, but also can serve as a sending end to perform steps similar to those of the third node and send the first message to other nodes in the network. This is not limited by the embodiments of the present application.
  • IGP can calculate the path that meets the requirements according to the link packet loss rate.
  • the link packet loss rate on the current routing interface ranges from 0.000003% to 50.331642%, and the corresponding packet loss rate weight ranges from 1 to 16777214.
  • the corresponding packet loss rate weight is 0.
  • 0.000003% is the basic measurement unit of link packet loss rate.
  • a link packet loss rate of 0.000003% corresponds to a packet loss rate weight of 1
  • 0.000006% corresponds to a packet loss rate weight of 2
  • 0.000009% corresponds to a packet loss rate weight of 3 and so on , which will not be repeated here.
  • the packet loss rate weight corresponding to the link packet loss rate on the current interface may be referred to as the original packet loss rate weight.
  • FIG. 5 is a schematic topology diagram of a multi-node network 500 provided by an embodiment of the present application. Based on the sub-network topology 210 of the network 200, the network 500 adds a description of the packet loss rate weight of each node. Exemplarily, each node in network 500 supports Flex-Algo 128.
  • the link packet loss rate on each link is 0.
  • the links from each node to other nodes The weight of the packet loss rate corresponding to the packet loss rate is 0.
  • IGP uses the link packet loss rate A loop problem occurs when calculating the path of route 3::/64 or route 4::/64 for the metric type, so that the destination path to the destination node cannot be determined.
  • the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
  • first packet loss rate weight may refer to a packet loss rate weight corresponding to the link packet loss rate of at least one link in the network 500 .
  • FIG. 6 is a schematic topology diagram of another multi-node network 600 provided by an embodiment of the present application. Compared with the network 500, in the network 600, when the link has no packet loss rate, that is, when the link packet loss rate is 0, its corresponding packet loss rate weight is 1.
  • the corresponding packet loss rate weight is 1. If the link packet loss rate is 0, the corresponding packet loss rate weight is set to 1. Then the link packet loss rate of 0.000003% and 0 correspond to a packet loss rate weight of 1, which may cause the node to be unable to distinguish between the link packet loss rate of 0.000003% and the case of no packet loss rate.
  • the link packet loss rate of 0 corresponds to the first packet loss rate weight value of 1
  • the link packet loss rate of 0.000003% corresponds to the first packet loss rate weight value of 2
  • 0.000003% is The basic measurement unit of the packet loss rate of the link.
  • FIG. 7 is a schematic topology diagram of yet another multi-node network 700 provided by an embodiment of the present application. Compared with the network 600, there are links in the network 700 whose link packet loss rate is not 0.
  • the five links of node 0->node 1, node 1->node 2, node 1->node 3, node 2->node 4 and node 4->node 9 The packet loss rate is 0, and the corresponding packet loss rate weight is 1; the link packet loss rate of the two links node 1->node 4 and node 3->node 4 is 0.000006%, and the corresponding The weight of the packet loss rate is 3.
  • the third node sends a second packet to other nodes in the network, where the second packet includes a second packet loss rate weight of at least one link.
  • the method 300 further includes: the first node receives a second packet from other nodes in the network, where the second packet includes a second packet loss rate weight value of at least one link; the first The node determines the first packet loss rate weight based on the second packet.
  • the third node in the network 700 can send the second packet loss rate to the first node.
  • the sending end (third node) adds 1 to the original packet loss rate weight to obtain the second packet loss rate weight, and publishes the second packet loss rate weight, and the receiving end (first node)
  • the second packet loss rate weight is determined as the first packet loss rate weight.
  • the third node determines the original packet loss rate weight corresponding to the link packet loss rate plus 1 as the value The second packet loss rate weight.
  • the first node determining the first packet loss rate weight based on the second packet includes: the first node determining the second packet loss rate weight as the first packet loss rate weight.
  • the third node is the sending end that sends the packet loss rate weight
  • the first node is the receiving end that receives the packet loss rate weight.
  • the third node may add 1 to the original packet loss rate weight corresponding to the link packet loss rate to obtain a second packet loss rate weight, and then send the second packet loss rate weight through the second message.
  • the first node receives the second packet, obtains the second packet loss rate weight in the second packet, and determines the second packet loss rate weight as the first packet loss rate weight.
  • node 3 can obtain the link packet loss of the link node 3 -> node 1 by subscribing to the interface information
  • the link packet loss rate of this link is 0.
  • the packet loss rate of the link is 0 and the packet loss rate weight is 0. That is, the original packet loss rate weight is 0, and the third node can determine the value obtained by adding 1 to the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of this link is 1.
  • Node 3 may publish the second packet loss rate weight of the link node 3->node 1 through the second message.
  • the sending end i.e. the third node
  • the receiving end i.e. the first node
  • the second packet loss rate weight can be determined as the first packet loss rate weight, that is, the first packet loss rate weight of the link is 1, and the first packet loss rate weight is used for the first node Identify at least one target path.
  • node 3 can obtain the link packet loss of the link node 3 -> node 4 by subscribing to the interface information
  • the link packet loss rate of this link is 0.000006%.
  • the link packet loss rate of 0.000006% corresponds to the packet loss rate weight of 2, that is, the original packet loss rate weight is 2, and the third node can determine the value obtained by adding 1 to the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of the link If the value is 3, the node 3 may publish the second packet loss rate weight of the link node 3->node 4 through the second message.
  • the sending end i.e. the third node
  • the receiving end i.e. the first node
  • the second packet loss rate weight can be determined as the first packet loss rate weight, that is, the first packet loss rate weight of the link is 3, and the first packet loss rate weight is used for the first node Identify at least one target path.
  • the sending end does not process the original packet loss rate weight, but directly determines the original packet loss rate weight as the second packet loss rate weight, and publishes the second packet loss rate weight, The receiving end (first node) determines the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
  • the third node determines the original packet loss rate weight corresponding to the link packet loss rate as the second packet loss rate weight.
  • the first node determining the first packet loss rate weight based on the second packet includes: determining, by the first node, a value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
  • the third node may determine the original packet loss rate weight corresponding to the original link packet loss rate as the second packet loss rate weight, and then use the second packet loss rate weight The value is sent out.
  • the first node receives the second message, and obtains the second packet loss rate weight in the second message, and determines the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
  • node 3 can obtain the link packet loss of the link node 3 -> node 1 by subscribing to the interface information
  • the link packet loss rate of this link is 0.
  • the packet loss rate of the link is 0 and the packet loss rate weight is 0. That is, the original packet loss rate weight is 0, and the third node can determine the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of this link is 0, and node 3 can The second packet loss rate weight of the link node 3->node 1 is published externally through the second message.
  • the sending end that is, the third node
  • the sending end still publishes the packet loss rate weight according to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, that is, the second packet loss rate in the second message
  • the rate weight is 0, so after receiving the second message, the receiving end (i.e., the first node) can determine the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight, that is, the The first packet loss rate weight of each link is 1, and the first packet loss rate weight is used by the first node to determine at least one target path.
  • node 3 can obtain the link packet loss of the link node 3 -> node 4 by subscribing to the interface information
  • the link packet loss rate of this link is 0.000006%.
  • the link packet loss rate of 0.000006% corresponds to the packet loss rate weight of 2, that is, the original packet loss rate weight is 2
  • the third node can determine the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of this link is 2, and the node 3.
  • the second packet loss rate weight value of the link node 3->node 4 may be released externally through the second message.
  • the sending end that is, the third node
  • the sending end still publishes the packet loss rate weight according to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, that is, the second packet loss rate in the second message
  • the rate weight is 2, so after receiving the second message, the receiving end (that is, the first node) can determine the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight, that is, the The first packet loss rate weight of each link is 3, and the first packet loss rate weight is used by the first node to determine at least one target path.
  • the second weight of the packet loss rate is greater than 0, and the second weight of the packet loss rate increases with the The packet loss rate of the link increases.
  • the link packet loss rate of 0 corresponds to the second packet loss rate weight of 1
  • the link The link packet loss rate of 0.000003% corresponds to the second packet loss rate weight value of 2
  • 0.000003% is the basic measurement unit of the link packet loss rate.
  • the second packet loss rate weight is located in the first sub-TLV field of the second packet.
  • the second message may be an ISIS message
  • the first sub-TLV may be the No. 16 sub-TLV of the ISIS message. Since the No. 16 sub-TLV is a sub-TLV describing link attributes, the lost The packet rate weight is packaged as a sub-TLV (sub-sub-TLV) of the 16th sub-TLV for publishing.
  • the ISIS message may also include other sub-TLV fields, and the No. 16 sub-TLV belongs to a parallel relationship with other sub-TLVs, and the third node publishes the packet loss rate weight as a sub-TLV of the No. 16 sub-TLV to facilitate the No. 16 sub-TLV A node parses the field to obtain link attribute information.
  • FIG. 8 is a schematic diagram of a sub-TLV 800 for notifying packet loss rate weights provided by an embodiment of the present application.
  • the sub-TLV 800 includes: a type (type) field, a length (length) field, and a packet loss rate weight field.
  • the type field is used to describe the type of the sub-TLV
  • the length field is used to describe the length of the sub-TLV
  • the packet loss rate weight field is used to describe the packet loss rate weight of the link.
  • the above-mentioned sub-TLV 800 may be used to advertise the packet loss rate weight to the outside world through a link state packet (link state packet, LSP).
  • link state packet link state packet
  • the sub-TLV 800 may be the above-mentioned No. 16 sub-TLV.
  • the following is the description of RFC 8919 in draft-ietf-lsr-flex-algo-14 for sub-TLV 16:
  • a new sub-TLV for TLVs 22, 23, 25, 141, 222, and 223 is defined that supports specification of the applications and application-specific attribute values.
  • the TE attribute of the routing interface carries link packet loss rate information.
  • nodes in the network can publish the packet loss rate weight corresponding to the link packet loss rate.
  • the release conditions can include the following two Two types: first, the enable switch configured on the interface is turned on to publish the packet loss rate weight to the outside world; second, when the interface detects the link packet loss rate on the link, it can publish the packet loss rate weight to the outside world.
  • link packet loss rate published by nodes in the network has directionality.
  • node 1 in the network 700 publishes the packet loss rate of the link node 1->node 2
  • node 2 publishes the packet loss rate of node 2-> The packet loss rate of the link of node 1.
  • the information of the target flexible algorithm further includes an identification of a calculation type; based on the target flexible algorithm, the first node determines at least one target path to the second node among the plurality of nodes, including: the first The node determines at least one target path to the second node from multiple candidate paths based on at least one of the target flexible algorithm, the link packet loss rate, or the calculation type.
  • the first node after the first node obtains the packet loss rate weight corresponding to the link packet loss rate and the information of the flexible algorithm, it may base on the packet loss rate weight corresponding to the link packet loss rate, the target flexible algorithm or At least one of the calculation types determines at least one target path.
  • sequence numbers of the above processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
  • the method for determining a route according to the embodiment of the present application is described in detail above with reference to FIGS. 1 to 8 .
  • the apparatus for determining a route according to the embodiment of the present application will be described in detail below in conjunction with FIGS. 9 to 11 .
  • FIG. 9 shows a schematic block diagram of an apparatus 900 for determining a path provided by an embodiment of the present application.
  • the apparatus 900 includes: a receiving module 910 and a determining module 920 .
  • the apparatus 900 may specifically be the first node in the above embodiment, or the function of the first node in the above embodiment may be integrated in the apparatus 900 .
  • the above functions can be implemented by hardware, or can be implemented by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the apparatus 900 may be configured to execute various processes and/or steps corresponding to the first node in the foregoing method embodiments.
  • the first node may be node 0 in the network 200 .
  • the first node may be node 0 in the network 500 .
  • the first node may be node 1 in the network 600 .
  • the first node may be node 2 in the network 700 .
  • the receiving module 910 is configured to: receive the information of the target flexible algorithm, and the information of the target flexible algorithm includes an identifier for indicating the packet loss rate of the link; the determining module 920 is configured to: based on the target flexible algorithm, determine At least one target path of the second node, where the target path is the path with the smallest sum of packet loss rates of the link among multiple candidate paths.
  • the receiving module 910 may be a communication interface, such as a transceiver interface.
  • the receiving module 910 may perform S301 in the above method 300, and the determining module 920 may perform S302 in the above method 300.
  • the sum of the first packet loss rate weights of at least one link of the target path is the smallest among multiple candidate paths, and the first packet loss rate weight is determined according to the link packet loss rate.
  • the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
  • the link packet loss rate of 0 corresponds to the weight of the first packet loss rate of 1
  • the link packet loss rate of 0.000003% corresponds to the weight of the first packet loss rate of 2
  • 0.000003% is the weight of the link packet loss rate Base unit of measure.
  • the receiving module 910 is configured to: receive a first packet from other nodes in the network, where the first packet includes information about the target flexible algorithm, and the information about the target flexible algorithm includes the FAD of the target flexible algorithm.
  • the receiving module 910 is configured to: receive a second packet from other nodes in the network, where the second packet includes a second packet loss rate weight of at least one link; the determining module 920 is configured to: based on the For the second packet, determine the weight of the first packet loss rate.
  • the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
  • the determining module 920 is configured to: determine a value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
  • the determining module 920 is configured to: determine the second packet loss rate weight as the first packet loss rate weight.
  • the information of the target flexible algorithm also includes an identification of a calculation type; the determining module 920 is configured to: based on at least one of the target flexible algorithm, the link packet loss rate, or the calculation type, from multiple candidate paths Determine at least one target path to the second node.
  • FIG. 10 shows a schematic block diagram of another apparatus 1000 for determining a path provided by an embodiment of the present application.
  • the apparatus 1000 includes: a determining module 1010 and a sending module 1020 .
  • the apparatus 1000 may specifically be the third node in the above embodiment, or the function of the third node in the above embodiment may be integrated in the apparatus 1000 .
  • the above functions can be implemented by hardware, or can be implemented by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the apparatus 1000 may be configured to execute various processes and/or steps corresponding to the third node in the foregoing method embodiments.
  • the first node may be node 0 in the network 200
  • the third node may be the node 0 in the network 200 except one of the other nodes.
  • the first node may be node 0 in the network 500
  • the third node may be the node 0 in the network 500 except one of the other nodes.
  • the first node may be node 1 in the network 600
  • the third node may be the node 1 in the network 600 except one of the other nodes.
  • the first node may be node 2 in the network 700
  • the third node may be the node 2 in the network 700 except one of the other nodes.
  • the determination module 1010 is used to: determine the information of the target flexible algorithm, the information of the target flexible algorithm includes an identifier for indicating the packet loss rate of the link, and the information of the target flexible algorithm is used by other nodes in the network to flexibly based on the target algorithm, to determine at least one target path; the sending module 1020 is configured to: send the information of the target flexible algorithm to other nodes in the network.
  • the sending module 1020 may be a communication interface, such as a transceiver interface.
  • sending module 1020 may execute S401 in the foregoing method 400.
  • the sending module 1020 is configured to: send a first packet to other nodes in the network, where the first packet includes information about the target flexible algorithm.
  • the sending module 1020 is configured to: send a second message to other nodes in the network, where the second message includes a second packet loss rate weight of at least one link, where the second packet loss rate weight is located at The first subtype length value TLV field of the second packet.
  • the determining module 1010 is configured to: determine a value obtained by adding 1 to the original packet loss rate weight corresponding to the link packet loss rate as the second packet loss rate weight.
  • the second packet loss rate weight is greater than 0, and the second packet loss rate weight increases as the link packet loss rate increases.
  • a link packet loss rate of 0 corresponds to a second packet loss rate weight of 1
  • a link packet loss rate of 0.000003% corresponds to a second packet loss rate weight of 2
  • 0.000003% is the link packet loss rate Base unit of measure.
  • module here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality.
  • ASIC application specific integrated circuit
  • processor such as a shared processor, a dedicated processor, or a group processor, etc.
  • memory incorporated logic, and/or other suitable components to support the described functionality.
  • the device 900 and the device 1000 may also be a chip or a chip system, for example: a system on chip (system on chip, SoC).
  • the receiving module 910 may be a transceiver circuit of the chip, which is not limited here.
  • the foregoing apparatus 900 and/or apparatus 1000 may be implemented by hardware, or may be implemented by executing corresponding software on hardware, which is not limited in this embodiment of the present application.
  • the hardware structure of the embodiment of the present application is introduced below with reference to FIG. 11 .
  • FIG. 11 shows a schematic block diagram of another apparatus 1100 for determining a path provided by an embodiment of the present application.
  • the apparatus 1100 includes a processor 1110 , a transceiver 1120 and a memory 1130 .
  • the processor 1110, the transceiver 1120 and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is used to store instructions, and the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and /or to receive a signal.
  • the device 1100 may specifically be the first node or the third node in the above embodiment, or the functions of the first node or the third node in the above embodiment may be integrated in the device 1100, and the device 1100 may be used to perform the above Each step and/or process corresponding to the first node or the third node in the method embodiment.
  • the memory 1130 may include read-only memory and random-access memory, and provides instructions and data to the processor.
  • a portion of the memory may also include non-volatile random access memory.
  • the memory may also store device type information.
  • the processor 1110 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may execute various steps and/or processes corresponding to the first node or the third node in the above method embodiments.
  • the processor 1110 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs) ), field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • Fig. 12 is a schematic block diagram of a system 1200 for determining a route provided by an embodiment of the present application. As shown in FIG. 12 , the system 1200 includes a first node 1210 and a third node 1220 .
  • the third node 1220 is used to: send the first message to other nodes in the network, the first message includes the information of the flexible algorithm, the information of the target flexible algorithm includes FAD, which is used to indicate the link packet loss rate
  • the identifier is located in the Metric Type field of the FAD.
  • the first node 1210 is configured to: receive the first message from the third node 1220, and determine the information of the target flexible algorithm based on the first message; and, based on the flexible algorithm, determine at least one target path to the destination node .
  • first node 1210 and the third node 1220 may also execute the steps and/or processes related to the first node and the third node described in the foregoing embodiments, which will not be repeated here.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Abstract

Path determination methods (300, 400) and an apparatus (1000), which can support Flex-Algo path calculations based on the packet loss rate of a link, which is beneficial for improving the quality of service of the link. A path determination method (300) comprises: a first node among a plurality of nodes receives information of a target flexible algorithm, the information of the target flexible algorithm comprising an identifier for indicating the packet loss rate of a link (S301); and the first node, on the basis of the target flexible algorithm, determines at least one target path to a second node among the plurality of nodes, the target path being a path that has the smallest sum of link packet loss rates among a plurality of candidate paths (S302).

Description

确定路径的方法和装置Method and device for determining a path
本申请要求于2021年06月22日提交中国专利局、申请号为202110691370.4、申请名称为“确定路径的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110691370.4 and the application title "Method and Device for Determining Path" submitted to the China Patent Office on June 22, 2021, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及网络技术领域,更具体地,涉及一种确定路径的方法和装置。The present application relates to the field of network technologies, and more specifically, to a method and device for determining a path.
背景技术Background technique
传统的内部网关协议(interior gateway protocol,IGP)可以根据链路的开销值和最短路径优先(shortest path first,SPF)算法来计算到达目的地址的最短路径。然而,基于链路的开销值的SPF算法是固定的,用户无法调整,不便于根据自己的需求计算最优的路径。The traditional interior gateway protocol (interior gateway protocol, IGP) can calculate the shortest path to the destination address according to the cost value of the link and the shortest path first (shortest path first, SPF) algorithm. However, the SPF algorithm based on the cost value of the link is fixed and cannot be adjusted by the user, making it inconvenient to calculate the optimal path according to their own needs.
例如,链路丢包率是影响链路服务质量的重要因素,若IGP在基于SPF算路时忽略链路丢包率,可能会得到链路丢包率过高的路径,这会影响链路的服务质量等级,从而影响用户的业务体验。For example, the link packet loss rate is an important factor affecting link service quality. If the IGP ignores the link packet loss rate when calculating paths based on SPF, it may obtain a path with a high link packet loss rate, which will affect the link quality. service quality level, thus affecting the service experience of users.
发明内容Contents of the invention
本申请提供一种确定路径的方法和装置,可以支持基于链路丢包率的Flex-Algo路径计算,有利于提高链路的服务质量。The present application provides a method and device for determining a path, which can support Flex-Algo path calculation based on the link packet loss rate, and is beneficial to improve the service quality of the link.
第一方面,提供了一种确定路径的方法,应用于包括多个节点的网络,包括:多个节点中的第一节点接收目标灵活算法的信息,该目标灵活算法的信息包括用于指示链路丢包率的标识。该第一节点基于该目标灵活算法,确定到达多个节点中的第二节点的至少一条目标路径,该目标路径是多条候选路径中链路丢包率之和最小的路径。In a first aspect, a method for determining a path is provided, which is applied to a network including a plurality of nodes, including: a first node among the plurality of nodes receives information of a target flexible algorithm, and the information of the target flexible algorithm includes information for indicating a link The indicator of the path packet loss rate. The first node determines at least one target path to the second node among the plurality of nodes based on the target flexible algorithm, and the target path is a path with the smallest sum of link packet loss rates among the plurality of candidate paths.
在本申请实施例中,可以新增一种基于链路丢包率的度量类型,第一节点可以基于目标灵活算法的信息中的链路丢包率计算出满足链路丢包率需求的目标路径,有利于提高链路服务质量等级,从而改善用户的业务体验。In the embodiment of the present application, a metric type based on the link packet loss rate can be added, and the first node can calculate the target that meets the link packet loss rate requirement based on the link packet loss rate in the information of the target flexible algorithm. The path is conducive to improving the link quality of service level, thereby improving the user's service experience.
结合第一方面,在第一方面的某些实现方式中,该目标路径的至少一条链路的第一丢包率权值之和是多条候选路径中最小的,该第一丢包率权值是根据该链路丢包率确定的。With reference to the first aspect, in some implementations of the first aspect, the sum of the first packet loss rate weights of at least one link of the target path is the smallest among multiple candidate paths, and the first packet loss rate weight The value is determined according to the link packet loss rate.
在本申请实施例中,第一节点在算路时可以考虑链路丢包率对应的丢包率权值,根据丢包率权值确定出满足业务需求的目标路径。In the embodiment of the present application, the first node may consider the packet loss rate weight corresponding to the link packet loss rate when calculating the path, and determine the target path that meets the service requirement according to the packet loss rate weight.
结合第一方面,在第一方面的某些实现方式中,该第一丢包率权值大于0,该第一丢包率权值随着链路丢包率的增大而增大。With reference to the first aspect, in some implementation manners of the first aspect, the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
在本申请实施例中,由于目前路由接口上的链路丢包率取值范围为0.000003%~50.331642%,对应的丢包率权值取值范围为1~16777214。对于丢包率为0的情况,其对应的丢包率权值为0。当网络中每条链路上的链路丢包率为0的情况下,每个节点到其他节点的链路丢包率对应的丢包率权值都是0,这样IGP在以链路丢包率为度量 类型算路时会出现环路问题。因此可以将链路丢包率为0时对应的丢包率权值设置为大于0的数值,并且丢包率权值随着链路丢包率的增大而增大,这样也可以达到区分不同链路丢包率的目的。In the embodiment of the present application, since the current link packet loss rate on the routing interface ranges from 0.000003% to 50.331642%, the corresponding packet loss rate weight ranges from 1 to 16777214. For the case where the packet loss rate is 0, the corresponding packet loss rate weight is 0. When the link packet loss rate on each link in the network is 0, the packet loss rate weights corresponding to the link packet loss rate from each node to other nodes are all 0. A loop problem may occur when the packet rate is calculated for the metric type. Therefore, when the link packet loss rate is 0, the corresponding packet loss rate weight can be set to a value greater than 0, and the packet loss rate weight increases with the increase of the link packet loss rate, which can also achieve the distinction The purpose of different link packet loss rates.
结合第一方面,在第一方面的某些实现方式中,链路丢包率为0对应第一丢包率权值为1,链路丢包率为0.000003%对应第一丢包率权值为2,0.000003%为链路丢包率的基础度量单元。In combination with the first aspect, in some implementations of the first aspect, the link packet loss rate of 0 corresponds to the first packet loss rate weight value of 1, and the link packet loss rate of 0.000003% corresponds to the first packet loss rate weight value is 2, and 0.000003% is the basic measurement unit of link packet loss rate.
在本申请实施例中,可以将丢包率权值为1预留给没有链路丢包率(即链路丢包率为0)的情况,链路丢包率为0.000003%对应的丢包率权值递增为2,以此类推。这样既不会导致链路丢包率为0时出现回路问题,又可以区分不同的链路丢包率。In the embodiment of this application, the packet loss rate weight value of 1 can be reserved for the case where there is no link packet loss rate (that is, the link packet loss rate is 0), and the link packet loss rate is 0.000003% corresponding to the packet loss The rate weight is incremented to 2, and so on. In this way, loop problems will not occur when the link packet loss rate is 0, and different link packet loss rates can be distinguished.
结合第一方面,在第一方面的某些实现方式中,多个节点中的第一节点接收目标灵活算法的信息,包括:该第一节点接收来自网络中的其他节点的第一报文,该第一报文包括该目标灵活算法的信息,该目标灵活算法的信息包括该目标灵活算法的灵活算法定义(flexible algorithm definition,FAD)。With reference to the first aspect, in some implementation manners of the first aspect, receiving the information of the target flexible algorithm by the first node among the multiple nodes includes: the first node receiving the first message from other nodes in the network, The first packet includes information about the target flexible algorithm, and the information about the target flexible algorithm includes a flexible algorithm definition (flexible algorithm definition, FAD) of the target flexible algorithm.
在本申请实施例中,第一节点可以通过第一报文泛洪目标灵活算法的信息,以使全网构建基于Flex-Algo的拓扑,网络中的各个节点可以基于Flex-Algo构建的拓扑生成路由信息。In this embodiment of the application, the first node can flood the target flexible algorithm information through the first message, so that the entire network can build a topology based on Flex-Algo, and each node in the network can generate a topology based on Flex-Algo routing information.
结合第一方面,在第一方面的某些实现方式中,第一节点接收来自网络中的其他节点的第二报文,该第二报文包括至少一条链路的第二丢包率权值;该第一节点基于该第二报文,确定该第一丢包率权值。With reference to the first aspect, in some implementations of the first aspect, the first node receives a second packet from other nodes in the network, where the second packet includes a second packet loss rate weight of at least one link ; The first node determines the first packet loss rate weight based on the second message.
在本申请实施例中,第一节点可以接收网络中其他节点发布的第二丢包率权值,该第二丢包率权值可以携带于第二报文中。In this embodiment of the present application, the first node may receive a second packet loss rate weight issued by other nodes in the network, and the second packet loss rate weight may be carried in the second message.
结合第一方面,在第一方面的某些实现方式中,该第二丢包率权值位于该第二报文的第一子类型长度值TLV字段。With reference to the first aspect, in some implementation manners of the first aspect, the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
在本申请实施例中,该第二丢包率权值可以携带于第二报文的子TLV中。示例性地,该第二丢包率权值可以通过ISIS报文的16号子TLV的其中一个子TLV(sub-sub TLV)进行发布。In this embodiment of the present application, the second packet loss rate weight may be carried in the sub-TLV of the second packet. Exemplarily, the second packet loss rate weight may be published through one of the sub-TLVs (sub-sub TLVs) of the No. 16 sub-TLV of the ISIS message.
结合第一方面,在第一方面的某些实现方式中,第一节点基于第二报文,确定第一丢包率权值,包括:该第一节点将该第二丢包率权值加1后的值确定为该第一丢包率权值。With reference to the first aspect, in some implementation manners of the first aspect, the first node determines the first packet loss rate weight based on the second message, including: the first node adds the second packet loss rate weight to The value after 1 is determined as the first packet loss rate weight.
在本申请实施例中,第一节点接收到的第二丢包率权值是按当前接口上的链路丢包率与丢包率权值的对应关系确定的,可能存在网络中的每条链路的丢包率权值为0而导致出现环路的情况,因此第一节点在接收到该第二丢包率权值后可以将该第二丢包率权值加1后的值确定为该第一丢包率权值,IGP在算路时可以根据该第一丢包率权值计算满足需求的目标路径。In this embodiment of the application, the second packet loss rate weight value received by the first node is determined according to the corresponding relationship between the link packet loss rate on the current interface and the packet loss rate weight value. The packet loss rate weight of the link is 0, resulting in a loop. Therefore, after receiving the second packet loss rate weight, the first node can determine the value obtained by adding 1 to the second packet loss rate weight. The first packet loss rate weight is the first packet loss rate weight, and the IGP can calculate a target path that satisfies the requirement according to the first packet loss rate weight when calculating the path.
结合第一方面,在第一方面的某些实现方式中,第一节点基于第二报文,确定第一丢包率权值,包括:该第一节点将该第二丢包率权值确定为该第一丢包率权值。With reference to the first aspect, in some implementation manners of the first aspect, the first node determines the first packet loss rate weight based on the second message, including: the first node determines the second packet loss rate weight is the first packet loss rate weight.
在本申请实施例中,网络中的其他节点在发送第二报文时,已经将按当前接口上的链路丢包率与丢包率权值的对应关系确定的原始丢包率权值加1得到该第二丢包率权值,因此第一节点可以将该第二丢包率权值确定为该第一丢包率权值。In this embodiment of the application, when other nodes in the network send the second message, the original packet loss rate weight determined according to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface has been added to 1 to obtain the second packet loss rate weight, so the first node can determine the second packet loss rate weight as the first packet loss rate weight.
结合第一方面,在第一方面的某些实现方式中,该目标灵活算法的信息还包括计算类 型的标识;该第一节点基于该目标灵活算法,确定到达多个节点中的第二节点的至少一条目标路径,包括:该第一节点基于该目标灵活算法、该链路丢包率或该计算类型中的至少一种,从多条候选路径中确定达到该第二节点的至少一条目标路径。With reference to the first aspect, in some implementation manners of the first aspect, the information of the target flexible algorithm further includes an identification of a calculation type; the first node determines, based on the target flexible algorithm, the At least one target path, comprising: the first node determines at least one target path to the second node from multiple candidate paths based on at least one of the target flexible algorithm, the link packet loss rate, or the calculation type .
第二方面,提供了一种确定路径的方法,应用于包括多个节点的网络,包括:多个节点中的第三节点向网络中的其他节点发送目标灵活算法的信息,该目标灵活算法的信息包括用于指示链路丢包率的标识,该目标灵活算法的信息用于该网络中的其他节点基于该目标灵活算法,确定至少一条目标路径。In the second aspect, a method for determining a path is provided, which is applied to a network including multiple nodes, including: a third node among the multiple nodes sends information of a target flexible algorithm to other nodes in the network, and the target flexible algorithm The information includes an identifier for indicating the link packet loss rate, and the information of the target flexible algorithm is used by other nodes in the network to determine at least one target path based on the target flexible algorithm.
在本申请实施例中,第三节点可以作为发送端可以向网络中的其他节点(包括上述第一节点)发送目标灵活算法的信息。应理解,第一节点也可以与该第三节点为同一个节点,即上述第一节点可以执行与该第三节点相同的步骤,向网络中的其他节点发送目标灵活算法的信息,此时第一节点为发送端,第三节点可以为接收端接收该目标灵活算法的信息。In the embodiment of the present application, the third node may serve as a sending end and may send the information of the target flexible algorithm to other nodes in the network (including the above-mentioned first node). It should be understood that the first node may also be the same node as the third node, that is, the above-mentioned first node may perform the same steps as the third node, and send information about the target flexible algorithm to other nodes in the network. One node is the sending end, and the third node can receive the target flexible algorithm information as the receiving end.
结合第二方面,在第二方面的某些实现方式中,多个节点中的第三节点向网络中的其他节点发送目标灵活算法的信息,包括:第三节点向网络中的其他节点发送第一报文,该第一报文包括该目标灵活算法的信息。With reference to the second aspect, in some implementations of the second aspect, the third node among the multiple nodes sends information about the target flexible algorithm to other nodes in the network, including: the third node sends the information of the target flexible algorithm to other nodes in the network A message, where the first message includes information about the target flexible algorithm.
结合第二方面,在第二方面的某些实现方式中,第三节点向网络中的其他节点发送第二报文,该第二报文包括至少一条链路的第二丢包率权值,该第二丢包率权值位于该第二报文的第一子类型长度值TLV字段。With reference to the second aspect, in some implementation manners of the second aspect, the third node sends a second message to other nodes in the network, where the second message includes a second packet loss rate weight of at least one link, The second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
结合第二方面,在第二方面的某些实现方式中,在第三节点向网络中的其他节点发送第二报文之前,还包括:该第三节点将该链路丢包率对应的原始丢包率权值加1后的值确定为该第二丢包率权值。With reference to the second aspect, in some implementation manners of the second aspect, before the third node sends the second message to other nodes in the network, it further includes: the third node corresponds to the original link packet loss rate A value obtained by adding 1 to the packet loss rate weight is determined as the second packet loss rate weight.
在本申请实施例中,第三节点可以将按当前接口上的链路丢包率与丢包率权值的对应关系确定的原始丢包率权值加1后的值确定为该第二丢包率权值。In this embodiment of the application, the third node may determine the value obtained by adding 1 to the original packet loss rate weight determined according to the corresponding relationship between the link packet loss rate on the current interface and the packet loss rate weight value as the second loss rate weight. Packet rate weight.
结合第二方面,在第二方面的某些实现方式中,该第二丢包率权值大于0,第二丢包率权值随着链路丢包率的增大而增大。With reference to the second aspect, in some implementation manners of the second aspect, the second packet loss rate weight is greater than 0, and the second packet loss rate weight increases as the link packet loss rate increases.
结合第二方面,在第二方面的某些实现方式中,链路丢包率为0对应第二丢包率权值为1,链路丢包率为0.000003%对应第二丢包率权值为2,0.000003%为链路丢包率的基础度量单元。In combination with the second aspect, in some implementations of the second aspect, the link packet loss rate of 0 corresponds to the second packet loss rate weight value of 1, and the link packet loss rate of 0.000003% corresponds to the second packet loss rate weight value is 2, and 0.000003% is the basic measurement unit of link packet loss rate.
第三方面,提供了一种确定路径的装置,包括:接收模块,用于接收目标灵活算法的信息,该目标灵活算法的信息包括用于指示链路丢包率的标识;确定模块,用于基于该目标灵活算法,确定到达多个节点中的第二节点的至少一条目标路径,该目标路径是多条候选路径中该链路丢包率之和最小的路径。In a third aspect, a device for determining a path is provided, including: a receiving module, configured to receive information of a target flexible algorithm, where the information of the target flexible algorithm includes an identifier for indicating a packet loss rate of a link; a determining module, configured to Based on the target flexible algorithm, at least one target path to the second node among the plurality of nodes is determined, and the target path is the path with the minimum sum of packet loss rates of the links among the plurality of candidate paths.
结合第三方面,在第三方面的某些实现方式中,该目标路径的至少一条链路的第一丢包率权值之和是多条候选路径中最小的,该第一丢包率权值是根据该链路丢包率确定的。With reference to the third aspect, in some implementations of the third aspect, the sum of the first packet loss rate weights of at least one link of the target path is the smallest among multiple candidate paths, and the first packet loss rate weight The value is determined according to the link packet loss rate.
结合第三方面,在第三方面的某些实现方式中,该第一丢包率权值大于0,该第一丢包率权值随着链路丢包率的增大而增大。With reference to the third aspect, in some implementation manners of the third aspect, the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
结合第三方面,在第三方面的某些实现方式中,链路丢包率为0对应第一丢包率权值为1,链路丢包率为0.000003%对应第一丢包率权值为2,0.000003%为链路丢包率的基础度量单元。In combination with the third aspect, in some implementations of the third aspect, the link packet loss rate of 0 corresponds to the first packet loss rate weight value of 1, and the link packet loss rate of 0.000003% corresponds to the first packet loss rate weight value is 2, and 0.000003% is the basic measurement unit of link packet loss rate.
结合第三方面,在第三方面的某些实现方式中,接收模块用于:接收来自网络中的其 他节点的第一报文,该第一报文包括该目标灵活算法的信息,该目标灵活算法的信息包括该目标灵活算法的灵活算法定义(flexible algorithm definition,FAD)。With reference to the third aspect, in some implementations of the third aspect, the receiving module is configured to: receive a first message from other nodes in the network, the first message includes information about the target flexible algorithm, and the target flexible The algorithm information includes a flexible algorithm definition (FAD) of the target flexible algorithm.
结合第三方面,在第三方面的某些实现方式中,接收模块用于:接收来自网络中的其他节点的第二报文,该第二报文包括至少一条链路的第二丢包率权值;确定模块用于:基于该第二报文,确定该第一丢包率权值。With reference to the third aspect, in some implementations of the third aspect, the receiving module is configured to: receive a second message from other nodes in the network, where the second message includes a second packet loss rate of at least one link Weight; the determining module is configured to: determine the first packet loss rate weight based on the second packet.
结合第三方面,在第三方面的某些实现方式中,该第二丢包率权值位于该第二报文的第一子类型长度值TLV字段。With reference to the third aspect, in some implementation manners of the third aspect, the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
结合第三方面,在第三方面的某些实现方式中,确定模块用于:将该第二丢包率权值加1后的值确定为该第一丢包率权值。With reference to the third aspect, in some implementation manners of the third aspect, the determining module is configured to: determine a value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
结合第三方面,在第三方面的某些实现方式中,确定模块用于:将该第二丢包率权值确定为该第一丢包率权值。With reference to the third aspect, in some implementation manners of the third aspect, the determining module is configured to: determine the second packet loss rate weight as the first packet loss rate weight.
结合第三方面,在第三方面的某些实现方式中,该目标灵活算法的信息还包括计算类型的标识;确定模块用于:基于该目标灵活算法、该链路丢包率或该计算类型中的至少一种,从多条候选路径中确定达到该第二节点的至少一条目标路径。In conjunction with the third aspect, in some implementations of the third aspect, the information of the target flexible algorithm also includes an identification of a calculation type; the determining module is configured to: based on the target flexible algorithm, the link packet loss rate or the calculation type In at least one of the plurality of candidate paths, at least one target path to the second node is determined.
第四方面,提供了另一种确定路径的装置,包括:确定模块,用于确定目标灵活算法的信息,该目标灵活算法的信息包括用于指示链路丢包率的标识,该目标灵活算法的信息用于网络中的其他节点基于该目标灵活算法,确定至少一条目标路径;发送模块,用于向网络中的其他节点发送该目标灵活算法的信息。In a fourth aspect, another device for determining a path is provided, including: a determining module, configured to determine information of a target flexible algorithm, the information of the target flexible algorithm includes an identifier for indicating a link packet loss rate, and the target flexible algorithm The information is used by other nodes in the network to determine at least one target path based on the target flexible algorithm; the sending module is used to send the information of the target flexible algorithm to other nodes in the network.
结合第四方面,在第四方面的某些实现方式中,发送模块用于:向网络中的其他节点发送第一报文,该第一报文包括该目标灵活算法的信息。With reference to the fourth aspect, in some implementation manners of the fourth aspect, the sending module is configured to: send a first message to other nodes in the network, where the first message includes information about the target flexible algorithm.
结合第四方面,在第四方面的某些实现方式中,发送模块用于:向网络中的其他节点发送第二报文,该第二报文包括至少一条链路的第二丢包率权值,该第二丢包率权值位于该第二报文的第一子类型长度值TLV字段。With reference to the fourth aspect, in some implementations of the fourth aspect, the sending module is configured to: send a second message to other nodes in the network, where the second message includes a second packet loss rate weight of at least one link value, the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
结合第四方面,在第四方面的某些实现方式中,确定模块用于:将该链路丢包率对应的原始丢包率权值加1后的值确定为该第二丢包率权值。In conjunction with the fourth aspect, in some implementations of the fourth aspect, the determining module is configured to: determine the value obtained by adding 1 to the original packet loss rate weight corresponding to the link packet loss rate as the second packet loss rate weight value.
结合第四方面,在第四方面的某些实现方式中,该第二丢包率权值大于0,第二丢包率权值随着链路丢包率的增大而增大。With reference to the fourth aspect, in some implementation manners of the fourth aspect, the second packet loss rate weight is greater than 0, and the second packet loss rate weight increases as the link packet loss rate increases.
结合第四方面,在第四方面的某些实现方式中,链路丢包率为0对应第二丢包率权值为1,链路丢包率为0.000003%对应第二丢包率权值为2,0.000003%为链路丢包率的基础度量单元。In combination with the fourth aspect, in some implementations of the fourth aspect, the link packet loss rate of 0 corresponds to the second packet loss rate weight value of 1, and the link packet loss rate of 0.000003% corresponds to the second packet loss rate weight value is 2, and 0.000003% is the basic measurement unit of link packet loss rate.
第五方面,提供了再一种确定路径的装置,包括处理器,该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面或第二方面中任一种可能实现方式中的方法。可选地,该装置还包括存储器。可选地,该装置还包括通信接口,处理器与通信接口耦合。In the fifth aspect, there is provided another device for determining a path, including a processor, the processor is coupled with a memory, and can be used to execute instructions in the memory, so as to realize any possible implementation manner in the first aspect or the second aspect above method in . Optionally, the device further includes a memory. Optionally, the device further includes a communication interface, and the processor is coupled to the communication interface.
在一种实现方式中,该确定路径的装置为路由设备,当该确定路径的装置为路由设备时,通信接口可以是收发器,或,输入/输出接口。In an implementation manner, the device for determining a path is a routing device, and when the device for determining a route is a routing device, the communication interface may be a transceiver, or an input/output interface.
在另一种实现方式中,该确定路径装置为配置于路由设备中的芯片。当确定路径的装置为配置于路由设备中的芯片时,通信接口可以是输入/输出接口。In another implementation manner, the device for determining the path is a chip configured in the routing device. When the device for determining the path is a chip configured in the routing device, the communication interface may be an input/output interface.
第六方面,提供了一种处理器,包括:输入电路、输出电路和处理电路。处理电路用 于通过输入电路接收信号,并通过输出电路发射信号,使得处理器执行上述第一方面或第二方面中任一种可能实现方式中的方法。In a sixth aspect, a processor is provided, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation manner of the first aspect or the second aspect above.
在具体实现过程中,上述处理器可以为芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于接收器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请实施例对处理器及各种电路的具体实现方式不做限定。In a specific implementation process, the above-mentioned processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a flip-flop, and various logic circuits. The input signal received by the input circuit may be received and input by, for example but not limited to, the receiver, the output signal of the output circuit may be, for example but not limited to, output to the transmitter and transmitted by the transmitter, and the input circuit and the output The circuit may be the same circuit, which is used as an input circuit and an output circuit respectively at different times. The embodiment of the present application does not limit the specific implementation manners of the processor and various circuits.
第七方面,提供了一种处理装置,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过接收器接收信号,通过发射器发射信号,以执行上述第一方面或第二方面中任一种可能实现方式中的方法。In a seventh aspect, a processing device is provided, including a processor and a memory. The processor is used to read instructions stored in the memory, and may receive signals through the receiver and transmit signals through the transmitter, so as to execute the method in any possible implementation manner of the first aspect or the second aspect above.
可选地,处理器为一个或多个,存储器为一个或多个。Optionally, there are one or more processors, and one or more memories.
可选地,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be separated from the processor.
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory (non-transitory) memory, such as a read-only memory (read only memory, ROM), which can be integrated with the processor on the same chip, or can be respectively arranged in different On the chip, the embodiment of the present application does not limit the type of the memory and the configuration of the memory and the processor.
应理解,相关的数据交互过程例如发送指示信息可以为从处理器输出指示信息的过程,接收能力信息可以为处理器接收输入能力信息的过程。具体地,处理输出的数据可以输出给发射器,处理器接收的输入数据可以来自接收器。其中,发射器和接收器可以统称为收发器。It should be understood that a related data interaction process such as sending indication information may be a process of outputting indication information from a processor, and receiving capability information may be a process of receiving input capability information from a processor. In particular, processed output data may be output to the transmitter, and input data received by the processor may be from the receiver. Wherein, the transmitter and the receiver may be collectively referred to as a transceiver.
上述第七方面中的处理装置可以是一个芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。The processing device in the seventh aspect above can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software When implemented, the processor may be a general-purpose processor, which is realized by reading the software code stored in the memory, and the memory may be integrated in the processor, or it may be located outside the processor and exist independently.
第八方面,提供了一种确定路径的系统,该系统包括第一节点和第三节点,该第一节点执行上述第一方面任一种可能实现方式中的方法,该第三节点执行上述第二方面任一种可能实现方式中的方法。In an eighth aspect, there is provided a system for determining a path, the system includes a first node and a third node, the first node executes the method in any possible implementation manner of the above first aspect, and the third node executes the above first node The method in any one of the possible implementations of the two aspects.
第九方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面或第二方面任一种可能实现方式中的方法。In a ninth aspect, a computer program product is provided, and the computer program product includes: a computer program (also referred to as code, or an instruction), which, when the computer program is run, causes the computer to execute any one of the above-mentioned first aspect or the second aspect. method in one possible implementation.
第十方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序(也可以称为代码,或指令),当其在计算机上运行时,使得计算机执行上述第一方面或第二方面中任一种可能实现方式中的方法。In a tenth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores a computer program (also referred to as code, or instruction), and when it is run on a computer, it causes the computer to perform the above-mentioned first aspect. Or the method in any possible implementation manner in the second aspect.
附图说明Description of drawings
图1是一种ISIS报文的结构示意图;FIG. 1 is a schematic structural diagram of an ISIS message;
图2是一种多节点网络的拓扑示意图;Fig. 2 is a schematic topology diagram of a multi-node network;
图3是本申请实施例提供的一种确定路径的方法的示意性流程图;FIG. 3 is a schematic flowchart of a method for determining a path provided in an embodiment of the present application;
图4是本申请实施例提供的另一种确定路径的方法的流程示意图;FIG. 4 is a schematic flowchart of another method for determining a path provided in an embodiment of the present application;
图5是本申请实施例提供的一种多节点网络的拓扑示意图;FIG. 5 is a schematic topology diagram of a multi-node network provided by an embodiment of the present application;
图6是本申请实施例提供的另一种多节点网络的拓扑示意图;FIG. 6 is a schematic topology diagram of another multi-node network provided by an embodiment of the present application;
图7是本申请实施例提供的再一种多节点网络的拓扑示意图;FIG. 7 is a schematic topology diagram of yet another multi-node network provided by an embodiment of the present application;
图8是本申请实施例提供的一种通告丢包率权值的子TLV的示意图;FIG. 8 is a schematic diagram of a sub-TLV for notifying packet loss rate weights provided by an embodiment of the present application;
图9是本申请实施例提供的一种确定路径的装置的示意性框图;FIG. 9 is a schematic block diagram of a device for determining a path provided in an embodiment of the present application;
图10是本申请实施例提供的另一种确定路径的装置的示意性框图;FIG. 10 is a schematic block diagram of another device for determining a path provided by an embodiment of the present application;
图11是本申请实施例提供的再一种确定路径的装置的示意性框图;Fig. 11 is a schematic block diagram of another device for determining a path provided by an embodiment of the present application;
图12是本申请实施例提供的一种确定路径的系统的示意性框图。Fig. 12 is a schematic block diagram of a system for determining a path provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
为便于理解,首先对本申请实施例所涉及的术语进行简单介绍。For ease of understanding, terms involved in the embodiments of the present application are briefly introduced first.
1.灵活算法(Flex-Algo):Flex-Algo提供一种类似流量工程(traffic engineering,TE)的策略,通过使IGP自身计算带约束的最短路径,从而达到与TE实现相同的效果。Flex-Algo允许用户将榴莲引入自定义的网络拓扑,通过定制灵活算法定义(flexible algorithm definition,FAD),丰富IGP的路径计算能力,从而达到实现流量工程的目的。1. Flexible Algorithm (Flex-Algo): Flex-Algo provides a strategy similar to traffic engineering (TE), which achieves the same effect as TE by enabling the IGP to calculate the shortest path with constraints. Flex-Algo allows users to introduce durian into a customized network topology, and enrich the path calculation capability of IGP by customizing flexible algorithm definition (FAD), so as to achieve the purpose of traffic engineering.
IGP可以通过泛洪FAD、节点Flex-Algo算法参与能力和链路TE属性信息来构建基于Flex-Algo的拓扑,同时通过网段路由标识(locator)关联Flex-Algo,使得拓扑中的各节点可以基于Flex-Algo侯建的拓扑生成到达网段路由标识(locator)的路由信息。IGP can build a Flex-Algo-based topology by flooding FAD, node Flex-Algo algorithm participation capabilities, and link TE attribute information. Based on the topology built by Flex-Algo Hou, the routing information to reach the routing identifier (locator) of the network segment is generated.
2.灵活算法定义(FAD):根据标准草案draft-ietf-lsr-flex-algo-14中对FAD的描述可知,FAD包括度量类型(metric-type)、计算类型(calculation-type)以及描述拓扑约束的集合(describe a set of constraints on the topology)。应理解,路由器还可以配置一个数字标识符与一个FAD相关联,数字128~255可用于标识不同的Flex-Algo。2. Flexible Algorithm Definition (FAD): According to the description of FAD in draft standard draft-ietf-lsr-flex-algo-14, FAD includes metric-type, calculation-type and description topology A set of constraints (describe a set of constraints on the topology). It should be understood that the router may also be configured with a digital identifier associated with one FAD, and the numbers 128-255 may be used to identify different Flex-Algos.
路由器可以扩展一组类型长度值(type-length-value,TLV)来携带Flex-Algo的FAD信息,称作FAD TLV,该FAD TLV用于通告某个Flex-Algo的具体计算规则,该FAD TLV包括多个子TLV(sub-TLVs)。The router can extend a set of type-length-value (TLV) to carry the FAD information of Flex-Algo, which is called FAD TLV. The FAD TLV is used to notify the specific calculation rules of a certain Flex-Algo. The FAD TLV Includes multiple sub-TLVs (sub-TLVs).
图1是一种中间系统到中间系统(intermediate system to intermediate system,ISIS)报文的结构示意图,如图1所示,ISIS报文的FAD TLV结构包括如下字段:Fig. 1 is a schematic structural diagram of an intermediate system to intermediate system (intermediate system to intermediate system, ISIS) message. As shown in Fig. 1, the FAD TLV structure of the ISIS message includes the following fields:
(1)类型(type)字段:用于描述ISIS报文的类型;(1) type (type) field: used to describe the type of ISIS message;
(2)长度(length)字段:用于描述ISIS报文的长度;(2) length (length) field: used to describe the length of the ISIS message;
(3)Flex-Algo字段:用于描述Flex-Algo的数字标识;(3) Flex-Algo field: used to describe the digital identifier of Flex-Algo;
(4)度量类型(metric-type)字段:用于描述Flex-Algo算路所基于的度量类型标识;(4) Metric type (metric-type) field: used to describe the metric type identification based on the route calculation of Flex-Algo;
(5)计算类型(calculation-type)字段:用于描述Flex-Algo算路所基于的计算类型标识;(5) Calculation type (calculation-type) field: used to describe the calculation type identifier based on the route calculation of Flex-Algo;
(6)优先级(priority)字段:用于描述ISIS报文所承载的业务流量的优先级标识;(6) Priority (priority) field: used to describe the priority identification of the service traffic carried by the ISIS message;
(7)子TLV(sub-TLVs)字段。(7) Sub-TLV (sub-TLVs) field.
3.度量类型(metric-type):现有的度量类型包括链路开销值(IGP cost)、时延和流量工程(traffic engineering,TE)规则,Flex-Algo可基于多种度量类型中的一种度量规则计算满足不同需求的路径。3. Metric-type: Existing metric types include link cost (IGP cost), delay, and traffic engineering (traffic engineering, TE) rules. Flex-Algo can be based on one of the various metric types. There are different kinds of metric rules to calculate paths that meet different requirements.
以下是当前标准草案draft-ietf-lsr-flex-algo-14中对度量类型(metric-type)的描述:The following is the description of the metric type (metric-type) in the current draft standard draft-ietf-lsr-flex-algo-14:
Metric-Type:Type of metric to be used during the calculation.Metric-Type: Type of metric to be used during the calculation.
Following values are defined:Following values are defined:
0:IGP Metric0: IGP Metric
1:Min Unidirectional Link Delay as defined in[RFC7810].1: Min Unidirectional Link Delay as defined in [RFC7810].
2:TE default metric as defined in[RFC5305].2: TE default metric as defined in [RFC5305].
其中,请求评论(request for comments,RFC)是一系列以编号排定的标准文档,该标准文档收集了大量互联网相关信息。RFC标准文档还加入了许多的标准内的论题,例如对于互联网新开发的协议以及发展中所有的记录。Among them, Request for Comments (RFC) is a series of standard documents arranged by number, which collect a large amount of Internet-related information. The RFC standard document also adds many topics within the standard, such as new protocols for the Internet and all records of development.
由以上描述可知,不同的度量类型有不同的标识,其标识范围为0~255,当前标准草案draft-ietf-lsr-flex-algo-14规定:0用于标识IGP cost,1用于标识时延,2用于标识TE规则,之后的3~255为预留的度量类型的标识。As can be seen from the above description, different metric types have different identifiers, and the identifiers range from 0 to 255. The current standard draft draft-ietf-lsr-flex-algo-14 stipulates that 0 is used to identify IGP cost, and 1 is used when identifying Extended, 2 is used to identify the TE rule, and the following 3 to 255 are the identification of the reserved metric type.
4.SPF算法:SPF算法是开放最短路径优先OSPF路由协议的基础,可以将每一个路由器作为根(ROOT)来计算其到每一个目的地路由器的距离,每一个路由器可以根据一个统一的数据库计算出路由域的拓扑结构图,该拓扑结构图也被称作最短路径树。4. SPF algorithm: The SPF algorithm is the basis of the open shortest path first OSPF routing protocol. Each router can be used as the root (ROOT) to calculate the distance to each destination router. Each router can be calculated according to a unified database. A topology diagram of the outgoing routing domain, which is also called a shortest path tree.
5.链路开销值(cost):在OSPF路由协议中,最短路径树的树干长度,即OSPF路由器到达每一个目的地路由器的距离,被称为OSPF的cost,其算法为:cost=100×(10)^6/链路带宽。5. Link overhead value (cost): In the OSPF routing protocol, the trunk length of the shortest path tree, that is, the distance from the OSPF router to each destination router, is called the cost of OSPF, and its algorithm is: cost=100× (10)^6/link bandwidth.
由上述介绍可知,FAD包括度量类型(metric-type)、计算类型(calculation-type)以及描述拓扑约束的集合(describe a set of constraints on the topology),用户可自定义FAD,丰富IGP的路径计算能力,从而达到实现流量工程的目的。As can be seen from the above introduction, FAD includes metric-type, calculation-type, and a set of describing topological constraints (describe a set of constraints on the topology). Users can customize FAD to enrich the path calculation of IGP. capacity, so as to achieve the purpose of traffic engineering.
传统的IGP算法可以根据链路开销值并利用SPF算法计算到达目的地址的最短路径。这样的方式是基于链路的开销值,无法满足用户的不同需求,例如用户期望按照时延最小的路径转发,或者排除部分链路转发。示例性地,由于自动驾驶领域需要极低时延的网络,因此需要根据时延进行路径计算。示例性地,有些链路的费用较高,用户希望考虑费用这一因素,那么在计算路径时需要将费用较高的路径排除。这个基于链路开销值的SPF算法是固定的,用户无法调整,因此不便于用户根据自己的需求计算最优的路径。The traditional IGP algorithm can calculate the shortest path to the destination address based on the link cost value and the SPF algorithm. This method is based on the link overhead value, which cannot meet the different needs of users. For example, users expect to forward along the path with the smallest delay, or exclude some links from forwarding. Exemplarily, since the field of automatic driving requires a network with extremely low delay, it is necessary to perform path calculation according to the delay. Exemplarily, some links have relatively high costs, and the user wishes to consider the factor of costs, so the paths with relatively high costs need to be excluded when calculating the paths. The SPF algorithm based on the link cost value is fixed and cannot be adjusted by users, so it is not convenient for users to calculate the optimal path according to their own needs.
由于Flex-Algo允许用户自己定制IGP算法的算法,满足不同业务需求,因此基于Flex-Algo的特性,IGP可以根据链路的cost、时延、TE约束等自动计算满足不同需求的路径,灵活地实现流量工程的需求。Because Flex-Algo allows users to customize the algorithm of the IGP algorithm to meet different service requirements, based on the characteristics of Flex-Algo, IGP can automatically calculate paths that meet different requirements according to link cost, delay, and TE constraints, flexibly Meet the needs of traffic engineering.
由上文可知,Flex-Algo的计算规则一般由一个三元组表示,即度量类型、计算类型和约束条件。其中,度量类型表示链路指标约束(例如,时延指标),计算类型表示计算算法约束(例如,采用SPF算法),约束条件表示在算路时是否包含/排除某些链路。As can be seen from the above, the calculation rules of Flex-Algo are generally represented by a triplet, that is, measurement type, calculation type and constraint. Wherein, the measurement type represents link index constraints (for example, delay index), the calculation type represents calculation algorithm constraints (for example, SPF algorithm is used), and the constraint conditions represent whether to include/exclude some links when calculating paths.
示例性地,用户可以将Flex-Algo 128定义为:(1)度量类型:时延;(2)计算类型:SPF;(3)约束条件:排除链路x。Exemplarily, the user can define Flex-Algo 128 as: (1) measurement type: delay; (2) calculation type: SPF; (3) constraint condition: exclude link x.
图2是一种多节点网络200的拓扑示意图。网络200包括节点0、节点9、节点1、节点2、节点3、节点4、节点5、节点6、节点7和节点8。图2中的各个节点均支持基于灵活算法进行算路的功能。假设需要计算一条从节点0至节点9的路径,则在网络200中,从节点0开始的使用相同Flex-Algo的节点可以根据FAD信息计算一条从节点0至节 点9的满足算法定义的路径。FIG. 2 is a schematic topology diagram of a multi-node network 200 . Network 200 includes Node 0 , Node 9 , Node 1 , Node 2 , Node 3 , Node 4 , Node 5 , Node 6 , Node 7 , and Node 8 . Each node in FIG. 2 supports the function of calculating paths based on flexible algorithms. Assuming that a path from node 0 to node 9 needs to be calculated, in the network 200, nodes starting from node 0 using the same Flex-Algo can calculate a path from node 0 to node 9 that satisfies the algorithm definition according to the FAD information.
其中,节点0和节点9可以同时支持Flex-Algo 128和Flex-Algo 129,IGP协议可以通过FAD TLV对外通告Flex-Algo 128和Flex-Algo 129的定义,使得全网节点都能感知节点0和节点9所使用的算法及算法定义。Among them, Node 0 and Node 9 can support Flex-Algo 128 and Flex-Algo 129 at the same time, and the IGP protocol can notify the definition of Flex-Algo 128 and Flex-Algo 129 through the FAD TLV, so that all nodes in the network can perceive Node 0 and Flex-Algo 129 Algorithm and algorithm definition used by node 9.
节点1至节点4使用Flex-Algo 128,IGP协议可以通过FAD TLV对外通告节点1至节点4使用Flex-Algo 128。 Nodes 1 to 4 use Flex-Algo 128, and the IGP protocol can notify nodes 1 to 4 to use Flex-Algo 128 through the FAD TLV.
节点5至节点8使用Flex-Algo 129,IGP协议可以通过FAD TLV对外通告节点5至节点8使用Flex-Algo 129。 Nodes 5 to 8 use Flex-Algo 129, and the IGP protocol can notify nodes 5 to 8 to use Flex-Algo 129 through the FAD TLV.
除了Flex-Algo 128和Flex-Algo 129以外,每个节点还可以支持最基本的算法0,即基于链路cost值的SPF算法。In addition to Flex-Algo 128 and Flex-Algo 129, each node can also support the most basic algorithm 0, which is the SPF algorithm based on the link cost value.
在图2中,示例性地,节点9配置有互联网协议第6版(internet protocol version 6,IPv6)数据平面转发IPv6数据包的SR的网段路由标识(简称为SRv6locator)与Flex-Algo进行关联,网络中的其他节点可以基于Flex-Algo计算到这个SRv6locator对应网段的路由,最终不同的网段路由代表基于不同算法计算出的路径,可以满足业务的多样化需求。In Fig. 2, exemplarily, the node 9 is configured with the network segment routing identifier (referred to as SRv6locator) of the SR of the Internet protocol version 6 (internet protocol version 6, IPv6) data plane forwarding the IPv6 data packet to associate with the Flex-Algo , other nodes in the network can calculate the route to the network segment corresponding to this SRv6locator based on Flex-Algo. Finally, different network segment routes represent paths calculated based on different algorithms, which can meet the diversified needs of the business.
应理解,其他节点也可以配置SRv6locator与Flex-Algo进行关联,本申请实施例在此不做限制。It should be understood that other nodes may also configure the SRv6locator to associate with the Flex-Algo, which is not limited in this embodiment of the present application.
在基于网络200算路的过程中,节点0向其他节点通告支持算法0、Flex-Algo 128和Flex-Algo 129,节点9向其他节点通告支持算法0、Flex-Algo 128和Flex-Algo 129。节点1、节点2、节点3和节点4向其他节点通告支持算法0和Flex-Algo 128,节点5、节点6、节点7和节点8向其他节点通告支持算法0和Flex-Algo 129。During the path calculation based on the network 200, node 0 notifies other nodes of supported algorithm 0, Flex-Algo 128, and Flex-Algo 129, and node 9 notifies other nodes of supported algorithm 0, Flex-Algo 128, and Flex-Algo 129. Node 1, Node 2, Node 3, and Node 4 notify other nodes of supported algorithm 0 and Flex-Algo 128, and Node 5, Node 6, Node 7, and Node 8 notify other nodes of supported algorithm 0 and Flex-Algo 129.
示例性地,Flex-Algo 128的定义为:(1)度量类型:时延;(2)计算类型:SPF;(3)约束条件:排除由节点5和节点6组成的链路。Exemplarily, the definition of Flex-Algo 128 is: (1) measurement type: delay; (2) calculation type: SPF; (3) constraint condition: exclude the link composed of nodes 5 and 6.
示例性地,Flex-Algo 129的定义为:(1)度量类型:TE;(2)计算类型:SPF;(3)约束条件:排除由节点1和节点2组成的链路。Exemplarily, the definition of Flex-Algo 129 is: (1) Metric type: TE; (2) Calculation type: SPF; (3) Constraint condition: exclude the link composed of node 1 and node 2.
应理解,Flex-Algo 128和Flex-Algo 129可以将网络200逻辑划分为子网络拓扑210和子网络拓扑220,子网络拓扑210包括支持Flex-Algo 128的节点,子网络拓扑220包括支持Flex-Algo 129的节点。在图2中,若节点1、节点2、节点3和节点4使用Flex-Algo128,那么节点1、节点2、节点3和节点4可以归属于子网络拓扑210。若节点5、节点6、节点7和节点8使用Flex-Algo 129,那么节点5、节点6、节点7和节点8可以归属于子网络拓扑220。It should be understood that Flex-Algo 128 and Flex-Algo 129 can logically divide network 200 into sub-network topology 210 and sub-network topology 220, sub-network topology 210 includes nodes supporting Flex-Algo 128, and sub-network topology 220 includes nodes supporting Flex-Algo 129 nodes. In FIG. 2 , if Node 1 , Node 2 , Node 3 , and Node 4 use Flex-Algo128, then Node 1 , Node 2 , Node 3 , and Node 4 can belong to the subnetwork topology 210 . If Node 5, Node 6, Node 7, and Node 8 use Flex-Algo 129, then Node 5, Node 6, Node 7, and Node 8 can belong to the subnetwork topology 220.
示例性地,节点0使用Flex-Algo 128,节点0可以将配置的Flex-Algo 128的FAD信息进行全网泛洪,使得子网络拓扑210中的各个节点获知Flex-Algo 128的FAD信息,这样子网络拓扑210中未配置相应FAD信息的节点也可以遵循Flex-Algo 128的FAD信息计算路径。最终确定的目标路径中的节点归属于同一个子网络拓扑。Exemplarily, node 0 uses Flex-Algo 128, and node 0 can flood the entire network with the FAD information of the configured Flex-Algo 128, so that each node in the subnetwork topology 210 learns the FAD information of Flex-Algo 128, like this Nodes in the sub-network topology 210 that are not configured with corresponding FAD information can also follow the FAD information calculation path of the Flex-Algo 128. The nodes in the final determined target path belong to the same subnetwork topology.
应理解,网络200中的任意一个节点也可以将自身配置的Flex-Algo的FAD信息进行全网泛洪,以使得具有相同Flex-Algo数字标识符的节点可以遵循相同的算法定义从而计算出满足业务需求的最优路径,本申请实施例对此不做限制。It should be understood that any node in the network 200 can also flood the FAD information of the Flex-Algo configured by itself in the whole network, so that nodes with the same Flex-Algo digital identifier can follow the same algorithm definition to calculate satisfying The optimal path required by the business is not limited in this embodiment of the present application.
示例性地,节点1至节点8使用算法0,节点0计算的目标路径中可以包括网络200中的任意一个节点,不受Flex-Algo的限制。Exemplarily, nodes 1 to 8 use Algorithm 0, and the target path calculated by node 0 may include any node in the network 200, which is not limited by Flex-Algo.
应理解,网络200中的节点还可以是支持Flex-Algo 130、Flex-Algo 131……的灵活算法节点,本申请实施例对此不做限制。It should be understood that the nodes in the network 200 may also be flexible algorithm nodes supporting Flex-Algo 130, Flex-Algo 131..., which is not limited in this embodiment of the present application.
结合上文描述可知,当前标准草案draft-ietf-lsr-flex-algo-14中仅支持基于链路开销值(cost)、时延或TE的Flex-Algo路径计算,并不支持基于链路丢包率(也可称为接口丢包率)的Flex-Algo路径计算。Based on the above description, the current draft standard draft-ietf-lsr-flex-algo-14 only supports Flex-Algo path calculation based on link cost (cost), delay or TE, and does not support link loss based Flex-Algo path calculation of packet rate (also called interface packet loss rate).
鉴于上述采用Flex-Algo算路时未考虑链路丢包率对于目标路径的影响,导致计算出的Flex-Algo路径出现链路丢包率过大的情况,这样可能会影响用户的业务体验。本申请实施例提供一种确定路径的方法和装置,通过增加一种基于链路丢包率的度量类型,根据Flex-Algo配置策略进行算路,有利于避免由于链路丢包率过大导致的业务受损情况,进而提高链路服务质量等级。In view of the fact that the impact of the link packet loss rate on the target path is not considered when using Flex-Algo path calculation, the calculated Flex-Algo path has a link packet loss rate that is too large, which may affect the user's service experience. The embodiment of the present application provides a method and device for determining a path. By adding a measurement type based on the link packet loss rate, the path is calculated according to the Flex-Algo configuration strategy, which is beneficial to avoid the problem caused by the excessive link packet loss rate. service damage, thereby improving the link quality of service.
在介绍本申请实施例提供的确定路径的方法和装置之前,先做出以下几点说明。Before introducing the method and device for determining a path provided by the embodiment of the present application, the following points are explained first.
第一,在下文示出的实施例中,各术语及英文缩略语,如链路丢包率、丢包率权值、Flex-Algo、度量类型等,均为方便描述而给出的示例性举例,不应对本申请构成任何限定。本申请并不排除在已有或未来的协议中定义其它能够实现相同或相似功能的术语的可能。First, in the embodiments shown below, various terms and English abbreviations, such as link packet loss rate, packet loss rate weight, Flex-Algo, metric type, etc., are all exemplary given for the convenience of description By way of example, this application should not be construed in any way. This application does not exclude the possibility of defining other terms that can achieve the same or similar functions in existing or future agreements.
第二,在下文示出的实施例中第一、第二以及各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围。例如,区分不同的节点、区分不同的丢包率权值等。Second, the first, second and various numbers in the embodiments shown below are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. For example, different nodes are distinguished, different packet loss rate weights are distinguished, and the like.
第三,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b和c中的至少一项(个),可以表示:a,或b,或c,或a和b,或a和c,或b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。Third, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (one) of a, b and c may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b, c can be single or multiple.
应理解,本申请所提供的确定路径的方法可以应用于SRv6场景,也可以应用于使用多协议标签交换(multi-protocol label switching,MPLS)数据平面转发MPLS数据包的段路由(segment routing,SR)场景,简称为SR-MPLS场景,还可以应用于其他场景,本申请实施例对此不作限定。It should be understood that the method for determining the path provided by the present application can be applied to SRv6 scenarios, and can also be applied to segment routing (segment routing, SR) using a multi-protocol label switching (multi-protocol label switching, MPLS) data plane to forward MPLS packets. ) scenario, referred to as SR-MPLS scenario for short, may also be applied to other scenarios, which is not limited in this embodiment of the present application.
下面结合图3对本申请实施例提供的一种确定路径的方法进行详细介绍。A method for determining a path provided by an embodiment of the present application is described in detail below with reference to FIG. 3 .
图3是本申请实施例提供的一种确定路径的方法300的示意性流程图,方法300可以应用于如图2所示的网络200,方法300的步骤和/或流程可以由第一节点来执行。方法300包括以下步骤:FIG. 3 is a schematic flow chart of a method 300 for determining a path provided by an embodiment of the present application. The method 300 can be applied to the network 200 shown in FIG. 2 , and the steps and/or processes of the method 300 can be performed by the first node implement. Method 300 includes the following steps:
S301,多个节点中的第一节点接收目标灵活算法的信息,该目标灵活算法的信息包括用于指示链路丢包率的标识。S301. A first node among multiple nodes receives information about a target flexible algorithm, where the information about the target flexible algorithm includes an identifier for indicating a link packet loss rate.
示例性地,若需要确定网络200中的一条从节点0至节点9的路径,上述第一节点可以为网络200中的节点0。Exemplarily, if a path from node 0 to node 9 in the network 200 needs to be determined, the above-mentioned first node may be node 0 in the network 200 .
S302,第一节点基于该目标灵活算法,确定到达多个节点中的第二节点的至少一条目标路径,该目标路径是多条候选路径中该链路丢包率之和最小的路径。S302. Based on the target flexible algorithm, the first node determines at least one target path to the second node among the multiple nodes, where the target path is a path with the smallest sum of packet loss rates of the link among the multiple candidate paths.
示例性地,若需要确定网络200中的一条从节点0至节点9(目的节点)的路径,上述第二节点可以为网络200中的节点9。Exemplarily, if a path from node 0 to node 9 (destination node) in the network 200 needs to be determined, the above-mentioned second node may be node 9 in the network 200 .
示例性地,若需要确定网络200中的一条从节点0至节点9的路径,上述第一节点可以为网络200中的节点0,上述第二节点可以为网络200中的节点9。For example, if a path from node 0 to node 9 in the network 200 needs to be determined, the first node may be node 0 in the network 200 , and the second node may be node 9 in the network 200 .
示例性地,可以在预留的度量类型的标识(3~255)中选择255作为链路丢包率的标识。Exemplarily, 255 may be selected from the reserved metric type identifiers (3-255) as the identifier of the link packet loss rate.
在S302中,第一节点在基于该目标灵活算法确定至少一条目标路径的基础上,还可以基于其他条件与该目标灵活算法共同确定目标路径。示例性地,其他条件可以为邻居信息、路由表或链路剩余带宽,本申请实施例对此不做限制。In S302, on the basis of determining at least one target path based on the target flexible algorithm, the first node may also determine a target path jointly with the target flexible algorithm based on other conditions. Exemplarily, other conditions may be neighbor information, a routing table, or remaining link bandwidth, which is not limited in this embodiment of the present application.
在本申请实施例中,第一节点可以确定出至少一条目标路径。示例性地,若第一节点确定了两条同时满足算路要求的目标路径,可以采用负载分担、双发选收或者主备等多径传输策略进行业务数据的传输。In this embodiment of the present application, the first node may determine at least one target path. Exemplarily, if the first node determines two target paths that meet the path calculation requirements at the same time, multi-path transmission strategies such as load sharing, dual transmission and selective reception, or active and standby can be used to transmit service data.
在本申请实施例中,对于游戏、视频直播等对丢包率要求严格的场景下,可以通过新增一种基于链路丢包率的度量类型,计算出满足链路丢包率需求的目标路径,有利于提高链路质量服务等级,从而改善用户的业务体验。In the embodiment of this application, in scenarios where the packet loss rate is strictly required for games, live video, etc., a new measurement type based on the link packet loss rate can be added to calculate the target that meets the link packet loss rate requirements. The path is conducive to improving the link quality service level, thereby improving the user's service experience.
作为一个可选的实施例,S301包括:第一节点接收来自网络中的其他节点的第一报文,该第一报文包括该目标灵活算法的信息,该目标灵活算法的信息包括该目标灵活算法的FAD。As an optional embodiment, S301 includes: the first node receives a first packet from other nodes in the network, the first packet includes information about the target flexibility algorithm, and the information about the target flexibility algorithm includes the target flexibility Algorithm FAD.
示例性地,该第一报文可以为ISIS报文,由上文中术语介绍部分可知,ISIS报文的FAD TLV包括度量类型字段,该度量类型字段可以携带用于表示度量类型的标识。在本申请实施例中,该度量类型字段携带链路丢包率的标识。Exemplarily, the first message may be an ISIS message. It can be known from the above terminology introduction that the FAD TLV of the ISIS message includes a metric type field, and the metric type field may carry an identifier for indicating the metric type. In the embodiment of the present application, the metric type field carries the identifier of the packet loss rate of the link.
图4是本申请实施例提供的另一种确定路径的方法400的流程示意图。方法400可以应用于如图2所示的网络200,方法400包括如下步骤:FIG. 4 is a schematic flowchart of another method 400 for determining a path provided by an embodiment of the present application. The method 400 can be applied to the network 200 shown in FIG. 2, and the method 400 includes the following steps:
S401,多个节点中的第三节点向网络中的其他节点发送第一报文。S401. A third node among the multiple nodes sends a first packet to other nodes in the network.
该第一报文包括灵活算法的信息,该目标灵活算法的信息包括FAD,该用于指示链路丢包率的标识位于该FAD的度量类型字段。对应的,第一节点接收该第一报文。The first message includes the information of the flexible algorithm, the information of the target flexible algorithm includes FAD, and the identifier for indicating the packet loss rate of the link is located in the metric type field of the FAD. Correspondingly, the first node receives the first packet.
S402,第一节点基于该第一报文,确定目标灵活算法的信息。S402. The first node determines information about the target flexible algorithm based on the first packet.
S403,第一节点基于该灵活算法,确定到达目的节点的至少一条目标路径。S403. Based on the flexible algorithm, the first node determines at least one target path to the destination node.
示例性地,上述第一节点、第二节点以及第三节点可以为路由设备,该路由设备可以为具有计算路由功能的任意设备,例如路由器或交换机,本申请实施例在此不作限制。Exemplarily, the above-mentioned first node, second node, and third node may be a routing device, and the routing device may be any device capable of calculating routing functions, such as a router or a switch, which is not limited in this embodiment of the present application.
示例性地,若需要确定网络200中的一条从节点0至节点9(目的节点)的路径,上述第一节点可以为网络200中的节点0,第三节点可以为网络200中除去节点0的任意节点,本申请实施例对此不做限制。Exemplarily, if it is necessary to determine a path from node 0 to node 9 (destination node) in the network 200, the above-mentioned first node may be node 0 in the network 200, and the third node may be the node 0 in the network 200 except Any node, which is not limited in this embodiment of the present application.
在本申请实施例中,该第一节点未知灵活算法的信息,但网络中其他配置或已获取该灵活算法的信息的第三节点可以向该第一节点发送第一报文,在该第一报文中携带该灵活算法的信息,以向其他节点通告算路规则。In this embodiment of the application, the first node does not know the information of the flexible algorithm, but other third nodes in the network that have configured or obtained the information of the flexible algorithm can send the first message to the first node, and the first The information of the flexible algorithm is carried in the message to notify other nodes of the path calculation rules.
应理解,该第一节点不仅可以作为接收端,接收来自其他节点的第一报文,也可以作为发送端,执行与该第三节点类似的步骤,向网络中的其他节点发送该第一报文,本申请实施例对此不作限定。It should be understood that the first node can not only serve as a receiving end to receive first messages from other nodes, but also can serve as a sending end to perform steps similar to those of the third node and send the first message to other nodes in the network. This is not limited by the embodiments of the present application.
在对标准草案draft-ietf-lsr-flex-algo-14进行扩展,新增基于链路丢包率的Flex-Algo算路度量类型之后,IGP可以根据链路丢包率计算满足需求的路径。After extending the standard draft draft-ietf-lsr-flex-algo-14 and adding the Flex-Algo path calculation metric type based on the link packet loss rate, IGP can calculate the path that meets the requirements according to the link packet loss rate.
当前路由接口上的链路丢包率取值范围为0.000003%~50.331642%,对应的丢包率权值取值范围为1~16777214。对于丢包率为0的情况,其对应的丢包率权值为0。其中,0.000003%是链路丢包率的基础度量单位。The link packet loss rate on the current routing interface ranges from 0.000003% to 50.331642%, and the corresponding packet loss rate weight ranges from 1 to 16777214. For the case where the packet loss rate is 0, the corresponding packet loss rate weight is 0. Among them, 0.000003% is the basic measurement unit of link packet loss rate.
示例性地,当前接口上,链路丢包率为0.000003%对应丢包率权值为1,0.000006%对应丢包率权值为2,0.000009%对应丢包率权值为3,以此类推,此处不再赘述。For example, on the current interface, a link packet loss rate of 0.000003% corresponds to a packet loss rate weight of 1, 0.000006% corresponds to a packet loss rate weight of 2, 0.000009% corresponds to a packet loss rate weight of 3, and so on , which will not be repeated here.
应理解,本申请实施例可以将当前接口上链路丢包率对应的丢包率权值称为原始丢包率权值。It should be understood that in this embodiment of the present application, the packet loss rate weight corresponding to the link packet loss rate on the current interface may be referred to as the original packet loss rate weight.
图5是本申请实施例提供的一种多节点网络500的拓扑示意图。网络500在网络200的子网络拓扑210的基础上,增加了对每个节点的丢包率权值的描述。示例性地,网络500中的每个节点都支持Flex-Algo 128。FIG. 5 is a schematic topology diagram of a multi-node network 500 provided by an embodiment of the present application. Based on the sub-network topology 210 of the network 200, the network 500 adds a description of the packet loss rate weight of each node. Exemplarily, each node in network 500 supports Flex-Algo 128.
在网络500中,可能会存在所有节点的路由接口上没有丢包,即每条链路上的链路丢包率为0的情况,在这种情况下,每个节点到其他节点的链路丢包率对应的丢包率权值都是0,IGP在基于SPF计算路径时会认为整网拓扑都是等价多路由(equal-cost multipath,ECMP),因此IGP在以链路丢包率为度量类型计算路由3::/64或路由4::/64的路径时会出现环路问题,从而无法确定到达目的节点的目标路径。In the network 500, there may be no packet loss on the routing interfaces of all nodes, that is, the link packet loss rate on each link is 0. In this case, the links from each node to other nodes The weight of the packet loss rate corresponding to the packet loss rate is 0. When IGP calculates the path based on SPF, it will consider that the entire network topology is equal-cost multipath (ECMP). Therefore, IGP uses the link packet loss rate A loop problem occurs when calculating the path of route 3::/64 or route 4::/64 for the metric type, so that the destination path to the destination node cannot be determined.
应理解,在以链路丢包率为度量类型算路时,需要考虑多条候选路径的丢包率权值之和,最终计算出的目标路径的第一丢包率权值(loss)之和是多条候选路径中丢包率权值之和最小的路径。It should be understood that when calculating the path based on the link packet loss rate metric type, it is necessary to consider the sum of the packet loss rate weights of multiple candidate paths, and finally calculate the first packet loss rate weight (loss) of the target path. and is the path with the smallest sum of packet loss rate weights among multiple candidate paths.
作为一个可选的实施例,该第一丢包率权值大于0,第一丢包率权值随着链路丢包率的增大而增大。As an optional embodiment, the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
应理解,上述第一丢包率权值可以指网络500中至少一条链路的链路丢包率对应的丢包率权值。It should be understood that the foregoing first packet loss rate weight may refer to a packet loss rate weight corresponding to the link packet loss rate of at least one link in the network 500 .
为了避免环路问题的出现,可以将链路丢包率为0时对应的丢包率权值设置为1。图6是本申请实施例提供的另一种多节点网络600的拓扑示意图。相较于网络500,在网络600中,当链路没有丢包率,即链路丢包率为0时,其对应的丢包率权值为1。In order to avoid the loop problem, the packet loss rate weight corresponding to the link packet loss rate of 0 can be set to 1. FIG. 6 is a schematic topology diagram of another multi-node network 600 provided by an embodiment of the present application. Compared with the network 500, in the network 600, when the link has no packet loss rate, that is, when the link packet loss rate is 0, its corresponding packet loss rate weight is 1.
在以SPF算法为计算类型、以链路丢包率为度量类型算路时,由于节点0->节点1->节点3->节点4->节点9这条路径的丢包率权值之和为4,节点0->节点1->节点2->节点4->节点9这条路径的丢包率权值之和为4,而节点0->节点1->节点4->节点9这条路径的丢包率权值之和为3,是这三条路径中丢包率权值之和最小的路径,因此可以确定到4::/64的路由为节点0->节点1->节点4->节点9,这样便不会出现环路问题。When the SPF algorithm is used as the calculation type and the link packet loss rate is used to calculate the path, due to the difference between the packet loss rate weights of the path node 0->node 1->node 3->node 4->node 9 The sum is 4, the sum of the packet loss rate weights of the path node 0->node 1->node 2->node 4->node 9 is 4, and node 0->node 1->node 4->node 9 The sum of the packet loss rate weights of this path is 3, which is the path with the smallest sum of packet loss rate weights among the three paths, so it can be determined that the route to 4::/64 is node 0->node 1- > Node 4 -> Node 9, so that there will be no loop problem.
由上文描述可知,当前接口上的链路丢包率为0.000003%时对应的丢包率权值为1,若将链路丢包率为0时对应的丢包率权值设置为1,那么链路丢包率为0.000003%和0对应的丢包率权值均为1,这可能会导致节点无法区分链路丢包率为0.000003%和没有丢包率的情况。As can be seen from the above description, when the link packet loss rate on the current interface is 0.000003%, the corresponding packet loss rate weight is 1. If the link packet loss rate is 0, the corresponding packet loss rate weight is set to 1. Then the link packet loss rate of 0.000003% and 0 correspond to a packet loss rate weight of 1, which may cause the node to be unable to distinguish between the link packet loss rate of 0.000003% and the case of no packet loss rate.
作为一个可选的实施例,链路丢包率为0对应该第一丢包率权值为1,链路丢包率为0.000003%对应该第一丢包率权值为2,0.000003%为该链路丢包率的基础度量单元。As an optional embodiment, the link packet loss rate of 0 corresponds to the first packet loss rate weight value of 1, the link packet loss rate of 0.000003% corresponds to the first packet loss rate weight value of 2, and 0.000003% is The basic measurement unit of the packet loss rate of the link.
在本申请实施例中,可以考虑将链路丢包率为0对应的丢包率权值设置为1,将链路丢包率为0.000003%对应的丢包率权值递增,即设置为2,将链路丢包率为0.000003%对应的丢包率权值继续往后递增,即设置为3,之后的链路丢包率对应的丢包率权值以此类 推,不断递增。In the embodiment of this application, it may be considered to set the weight of the packet loss rate corresponding to the link packet loss rate of 0 to 1, and increase the weight of the packet loss rate corresponding to the link packet loss rate of 0.000003%, that is, set it to 2 , the weight of the packet loss rate corresponding to the link packet loss rate of 0.000003% continues to increase backwards, that is, it is set to 3, and the weight of the packet loss rate corresponding to the subsequent link packet loss rate is analogously increased continuously.
在本申请实施例中,通过将链路丢包率为0对应的丢包率权值设置为1,有利于避免出现环路问题。将链路丢包率为0.000003%以及链路丢包率大于0.000003%对应的丢包率权值在原始丢包率权值的基础上加1,这样可以区分不同的链路丢包率。In the embodiment of the present application, by setting the weight of the packet loss rate corresponding to the link packet loss rate of 0 to 1, it is beneficial to avoid the loop problem. Add 1 to the weight of the original packet loss rate by adding 1 to the packet loss rate weight corresponding to the link packet loss rate of 0.000003% and the link packet loss rate greater than 0.000003%, so that different link packet loss rates can be distinguished.
图7是本申请实施例提供的再一种多节点网络700的拓扑示意图。相较于网络600,网络700中存在链路丢包率不为0的链路。FIG. 7 is a schematic topology diagram of yet another multi-node network 700 provided by an embodiment of the present application. Compared with the network 600, there are links in the network 700 whose link packet loss rate is not 0.
示例性地,在网络700中,节点0->节点1、节点1->节点2、节点1->节点3、节点2->节点4和节点4->节点9这五条链路的链路丢包率均为0,其对应的丢包率权值均为1;节点1->节点4和节点3->节点4这两条链路的链路丢包率均为0.000006%,其对应的丢包率权值均为3。Exemplarily, in the network 700, the five links of node 0->node 1, node 1->node 2, node 1->node 3, node 2->node 4 and node 4->node 9 The packet loss rate is 0, and the corresponding packet loss rate weight is 1; the link packet loss rate of the two links node 1->node 4 and node 3->node 4 is 0.000006%, and the corresponding The weight of the packet loss rate is 3.
在以SPF算法为计算类型、以链路丢包率为度量类型算路时,由于节点0->节点1->节点3->节点4->节点9这条路径的丢包率权值之和为6,节点0->节点1->节点4->节点9这条路径的丢包率权值之和为5,而节点0->节点1->节点2->节点4->节点9这条路径的丢包率权值之和为4,是这三条路径中丢包率权值之和最小的路径,因此可以确定到达4::/64的路由为节点0->节点1->节点4->节点9。When the SPF algorithm is used as the calculation type and the link packet loss rate is used to calculate the path, due to the difference between the packet loss rate weights of the path node 0->node 1->node 3->node 4->node 9 The sum is 6, the sum of the packet loss rate weights of the path node 0->node 1->node 4->node 9 is 5, and node 0->node 1->node 2->node 4->node 9 The sum of the packet loss rate weights of this path is 4, which is the path with the smallest sum of packet loss rate weights among the three paths, so it can be determined that the route to 4::/64 is node 0->node 1- > Node 4 -> Node 9.
作为一个可选的实施例,第三节点向网络中的其他节点发送第二报文,该第二报文包括至少一条链路的第二丢包率权值。As an optional embodiment, the third node sends a second packet to other nodes in the network, where the second packet includes a second packet loss rate weight of at least one link.
作为一个可选的实施例,方法300还包括:第一节点接收来自网络中的其他节点的第二报文,该第二报文包括至少一条链路的第二丢包率权值;第一节点基于该第二报文,确定该第一丢包率权值。As an optional embodiment, the method 300 further includes: the first node receives a second packet from other nodes in the network, where the second packet includes a second packet loss rate weight value of at least one link; the first The node determines the first packet loss rate weight based on the second packet.
在本申请实施例中,由于采用基于链路丢包率的Flex-Algo算路时需要获取丢包率权值,因此网络700中的第三节点可以向第一节点发送携带第二丢包率权值的第二报文,第一节点可以通过该第二报文接收来自其他节点发布的第二丢包率权值。In the embodiment of the present application, since it is necessary to obtain the packet loss rate weight value when using the Flex-Algo based on the link packet loss rate to calculate the path, the third node in the network 700 can send the second packet loss rate to the first node. The second message of the weight, through which the first node can receive the second packet loss rate weight published by other nodes.
以下介绍两种确定第一丢包率权值的方法:Two methods for determining the weight of the first packet loss rate are introduced below:
1、发送端(第三节点)对原始丢包率权值加1得到第二丢包率权值,并将该第二丢包率权值发布出去,接收端(第一节点)将该第二丢包率权值确定为第一丢包率权值。1. The sending end (third node) adds 1 to the original packet loss rate weight to obtain the second packet loss rate weight, and publishes the second packet loss rate weight, and the receiving end (first node) The second packet loss rate weight is determined as the first packet loss rate weight.
作为一个可选的实施例,在第三节点向网络中的其他节点发送第二报文之前,第三节点将链路丢包率对应的原始丢包率权值加1后的值确定为该第二丢包率权值。第一节点基于第二报文,确定第一丢包率权值,包括:第一节点将该第二丢包率权值确定为该第一丢包率权值。As an optional embodiment, before the third node sends the second message to other nodes in the network, the third node determines the original packet loss rate weight corresponding to the link packet loss rate plus 1 as the value The second packet loss rate weight. The first node determining the first packet loss rate weight based on the second packet includes: the first node determining the second packet loss rate weight as the first packet loss rate weight.
在本申请实施例中,第三节点为发送丢包率权值的发送端,第一节点为接收丢包率权值的接收端。第三节点在将第二丢包率权值通过第二报文发送至其他节点之前,需要确定第二丢包率权值。第三节点可以将链路丢包率对应的原始丢包率权值加1,得到第二丢包率权值,再通过第二报文将该第二丢包率权值发送出去。相应地,第一节点接收第二报文,并获取第二报文中的第二丢包率权值,将该第二丢包率权值确定为第一丢包率权值。In the embodiment of the present application, the third node is the sending end that sends the packet loss rate weight, and the first node is the receiving end that receives the packet loss rate weight. Before the third node sends the second packet loss rate weight to other nodes through the second message, it needs to determine the second packet loss rate weight. The third node may add 1 to the original packet loss rate weight corresponding to the link packet loss rate to obtain a second packet loss rate weight, and then send the second packet loss rate weight through the second message. Correspondingly, the first node receives the second packet, obtains the second packet loss rate weight in the second packet, and determines the second packet loss rate weight as the first packet loss rate weight.
示例性地,若第三节点为网络700中的节点3,第一节点为网络700中的节点0,节点3可以通过订阅接口信息得到节点3->节点1这条链路的链路丢包率,该条链路的链路丢包率为0,按照当前接口上链路丢包率和丢包率权值的对应关系,链路丢包率为0对应丢包率权值为0,即原始丢包率权值为0,第三节点可以将原始丢包率权值加1后的值确 定为第二丢包率权值,即该条链路的第二丢包率权值为1,节点3可通过第二报文对外发布节点3->节点1这条链路的第二丢包率权值。For example, if the third node is node 3 in the network 700, and the first node is node 0 in the network 700, node 3 can obtain the link packet loss of the link node 3 -> node 1 by subscribing to the interface information The link packet loss rate of this link is 0. According to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, the packet loss rate of the link is 0 and the packet loss rate weight is 0. That is, the original packet loss rate weight is 0, and the third node can determine the value obtained by adding 1 to the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of this link is 1. Node 3 may publish the second packet loss rate weight of the link node 3->node 1 through the second message.
相应地,由于在发送端(即第三节点)已经将原始丢包率权值加1后的值确定为第二丢包率权值,因此接收端(即第一节点)接收到第二报文,可将第二丢包率权值确定为该第一丢包率权值,即该链路的第一丢包率权值为1,该第一丢包率权值用于第一节点确定至少一条目标路径。Correspondingly, since the sending end (i.e. the third node) has determined the value of the original packet loss rate weight plus 1 as the second packet loss rate weight value, the receiving end (i.e. the first node) receives the second packet loss rate weight In this paper, the second packet loss rate weight can be determined as the first packet loss rate weight, that is, the first packet loss rate weight of the link is 1, and the first packet loss rate weight is used for the first node Identify at least one target path.
示例性地,若第三节点为网络700中的节点3,第一节点为网络700中的节点0,节点3可以通过订阅接口信息得到节点3->节点4这条链路的链路丢包率,该条链路的链路丢包率为0.000006%,按照当前接口上链路丢包率和丢包率权值的对应关系,链路丢包率为0.000006%对应丢包率权值为2,即原始丢包率权值为2,第三节点可以将原始丢包率权值加1后的值确定为第二丢包率权值,即该条链路的第二丢包率权值为3,节点3可通过第二报文对外发布节点3->节点4这条链路的第二丢包率权值。For example, if the third node is node 3 in the network 700, and the first node is node 0 in the network 700, node 3 can obtain the link packet loss of the link node 3 -> node 4 by subscribing to the interface information The link packet loss rate of this link is 0.000006%. According to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, the link packet loss rate of 0.000006% corresponds to the packet loss rate weight of 2, that is, the original packet loss rate weight is 2, and the third node can determine the value obtained by adding 1 to the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of the link If the value is 3, the node 3 may publish the second packet loss rate weight of the link node 3->node 4 through the second message.
相应地,由于在发送端(即第三节点)已经将原始丢包率权值加1后的值确定为第二丢包率权值,因此接收端(即第一节点)接收到第二报文,可将第二丢包率权值确定为该第一丢包率权值,即该链路的第一丢包率权值为3,该第一丢包率权值用于第一节点确定至少一条目标路径。Correspondingly, since the sending end (i.e. the third node) has determined the value of the original packet loss rate weight plus 1 as the second packet loss rate weight value, the receiving end (i.e. the first node) receives the second packet loss rate weight In this paper, the second packet loss rate weight can be determined as the first packet loss rate weight, that is, the first packet loss rate weight of the link is 3, and the first packet loss rate weight is used for the first node Identify at least one target path.
2、发送端(第三节点)不对原始丢包率权值进行处理,直接将原始丢包率权值确定为第二丢包率权值,并将该第二丢包率权值发布出去,接收端(第一节点)将该第二丢包率权值加1后的值确定为第一丢包率权值。2. The sending end (third node) does not process the original packet loss rate weight, but directly determines the original packet loss rate weight as the second packet loss rate weight, and publishes the second packet loss rate weight, The receiving end (first node) determines the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
作为一个可选的实施例,在第三节点向网络中的其他节点发送第二报文之前,第三节点将链路丢包率对应的原始丢包率权值确定为该第二丢包率权值。第一节点基于第二报文,确定第一丢包率权值,包括:第一节点将该第二丢包率权值加1后的值确定为该第一丢包率权值。As an optional embodiment, before the third node sends the second message to other nodes in the network, the third node determines the original packet loss rate weight corresponding to the link packet loss rate as the second packet loss rate weight. The first node determining the first packet loss rate weight based on the second packet includes: determining, by the first node, a value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
在本申请实施例中,第三节点可以将原始链路丢包率对应的原始丢包率权值确定为第二丢包率权值,再通过第二报文将该第二丢包率权值发送出去。相应地,第一节点接收第二报文,并获取第二报文中的第二丢包率权值,将该第二丢包率权值加1后的值确定为该第一丢包率权值。In this embodiment of the application, the third node may determine the original packet loss rate weight corresponding to the original link packet loss rate as the second packet loss rate weight, and then use the second packet loss rate weight The value is sent out. Correspondingly, the first node receives the second message, and obtains the second packet loss rate weight in the second message, and determines the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
示例性地,若第三节点为网络700中的节点3,第一节点为网络700中的节点0,节点3可以通过订阅接口信息得到节点3->节点1这条链路的链路丢包率,该条链路的链路丢包率为0,按照当前接口上链路丢包率和丢包率权值的对应关系,链路丢包率为0对应丢包率权值为0,即原始丢包率权值为0,第三节点可以将原始丢包率权值确定为第二丢包率权值,即该条链路的第二丢包率权值为0,节点3可通过第二报文对外发布节点3->节点1这条链路的第二丢包率权值。For example, if the third node is node 3 in the network 700, and the first node is node 0 in the network 700, node 3 can obtain the link packet loss of the link node 3 -> node 1 by subscribing to the interface information The link packet loss rate of this link is 0. According to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, the packet loss rate of the link is 0 and the packet loss rate weight is 0. That is, the original packet loss rate weight is 0, and the third node can determine the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of this link is 0, and node 3 can The second packet loss rate weight of the link node 3->node 1 is published externally through the second message.
相应地,由于在发送端(即第三节点)仍然按照当前接口上链路丢包率和丢包率权值的对应关系对外发布丢包率权值,即第二报文中第二丢包率权值为0,因此接收端(即第一节点)接收到第二报文后,可以将第二丢包率权值加1后的值确定为该第一丢包率权值,即该条链路的第一丢包率权值为1,该第一丢包率权值用于第一节点确定至少一条目标路径。Correspondingly, since the sending end (that is, the third node) still publishes the packet loss rate weight according to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, that is, the second packet loss rate in the second message The rate weight is 0, so after receiving the second message, the receiving end (i.e., the first node) can determine the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight, that is, the The first packet loss rate weight of each link is 1, and the first packet loss rate weight is used by the first node to determine at least one target path.
示例性地,若第三节点为网络700中的节点3,第一节点为网络700中的节点0,节 点3可以通过订阅接口信息得到节点3->节点4这条链路的链路丢包率,该条链路的链路丢包率为0.000006%,按照当前接口上链路丢包率和丢包率权值的对应关系,链路丢包率为0.000006%对应丢包率权值为2,即原始丢包率权值为2,第三节点可以将原始丢包率权值确定为第二丢包率权值,即该条链路的第二丢包率权值为2,节点3可通过第二报文对外发布节点3->节点4这条链路的第二丢包率权值。For example, if the third node is node 3 in the network 700, and the first node is node 0 in the network 700, node 3 can obtain the link packet loss of the link node 3 -> node 4 by subscribing to the interface information The link packet loss rate of this link is 0.000006%. According to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, the link packet loss rate of 0.000006% corresponds to the packet loss rate weight of 2, that is, the original packet loss rate weight is 2, and the third node can determine the original packet loss rate weight as the second packet loss rate weight, that is, the second packet loss rate weight of this link is 2, and the node 3. The second packet loss rate weight value of the link node 3->node 4 may be released externally through the second message.
相应地,由于在发送端(即第三节点)仍然按照当前接口上链路丢包率和丢包率权值的对应关系对外发布丢包率权值,即第二报文中第二丢包率权值为2,因此接收端(即第一节点)接收到第二报文后,可以将第二丢包率权值加1后的值确定为该第一丢包率权值,即该条链路的第一丢包率权值为3,该第一丢包率权值用于第一节点确定至少一条目标路径。Correspondingly, since the sending end (that is, the third node) still publishes the packet loss rate weight according to the corresponding relationship between the link packet loss rate and the packet loss rate weight on the current interface, that is, the second packet loss rate in the second message The rate weight is 2, so after receiving the second message, the receiving end (that is, the first node) can determine the value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight, that is, the The first packet loss rate weight of each link is 3, and the first packet loss rate weight is used by the first node to determine at least one target path.
作为一个可选的实施例,在采用第一种确定第一丢包率权值的方法的情况下,第二丢包率权值大于0,所述第二丢包率权值随着所述链路丢包率的增大而增大。As an optional embodiment, in the case of using the first method for determining the weight of the first packet loss rate, the second weight of the packet loss rate is greater than 0, and the second weight of the packet loss rate increases with the The packet loss rate of the link increases.
作为一个可选的实施例,在采用第一种确定第一丢包率权值的方法的情况下,链路丢包率为0对应所述第二丢包率权值为1,所述链路丢包率为0.000003%对应所述第二丢包率权值为2,0.000003%为所述链路丢包率的基础度量单元。As an optional embodiment, in the case of using the first method for determining the weight of the first packet loss rate, the link packet loss rate of 0 corresponds to the second packet loss rate weight of 1, and the link The link packet loss rate of 0.000003% corresponds to the second packet loss rate weight value of 2, and 0.000003% is the basic measurement unit of the link packet loss rate.
作为一个可选的实施例,该第二丢包率权值位于该第二报文的第一子TLV字段。As an optional embodiment, the second packet loss rate weight is located in the first sub-TLV field of the second packet.
示例性地,该第二报文可以为ISIS报文,该第一子TLV可以为该ISIS报文的16号子TLV,由于16号子TLV为描述链路属性的子TLV,因此可以将丢包率权值封装为16号子TLV的子TLV(sub-sub-TLV)进行发布。Exemplarily, the second message may be an ISIS message, and the first sub-TLV may be the No. 16 sub-TLV of the ISIS message. Since the No. 16 sub-TLV is a sub-TLV describing link attributes, the lost The packet rate weight is packaged as a sub-TLV (sub-sub-TLV) of the 16th sub-TLV for publishing.
应理解,该ISIS报文中还可以包括其他子TLV字段,该16号子TLV与其他子TLV属于并列关系,第三节点将丢包率权值作为16号子TLV的子TLV进行发布便于第一节点对该字段进行解析获取链路属性信息。It should be understood that the ISIS message may also include other sub-TLV fields, and the No. 16 sub-TLV belongs to a parallel relationship with other sub-TLVs, and the third node publishes the packet loss rate weight as a sub-TLV of the No. 16 sub-TLV to facilitate the No. 16 sub-TLV A node parses the field to obtain link attribute information.
图8是本申请实施例提供的一种通告丢包率权值的子TLV 800的示意图。如图8所示,子TLV 800包括:类型(type)字段、长度(length)字段以及丢包率权值字段。其中,类型字段用以描述子TLV的类型;长度字段用以描述子TLV的长度;丢包率权值字段用于描述链路的丢包率权值。FIG. 8 is a schematic diagram of a sub-TLV 800 for notifying packet loss rate weights provided by an embodiment of the present application. As shown in FIG. 8, the sub-TLV 800 includes: a type (type) field, a length (length) field, and a packet loss rate weight field. Wherein, the type field is used to describe the type of the sub-TLV; the length field is used to describe the length of the sub-TLV; the packet loss rate weight field is used to describe the packet loss rate weight of the link.
示例性地,可以通过链路状态报文(link state packet,LSP)携带上述子TLV 800对外通告丢包率权值。Exemplarily, the above-mentioned sub-TLV 800 may be used to advertise the packet loss rate weight to the outside world through a link state packet (link state packet, LSP).
示例性地,子TLV 800可以是上述16号子TLV。以下是draft-ietf-lsr-flex-algo-14中的RFC 8919对16号子TLV的描述:Exemplarily, the sub-TLV 800 may be the above-mentioned No. 16 sub-TLV. The following is the description of RFC 8919 in draft-ietf-lsr-flex-algo-14 for sub-TLV 16:
A new sub-TLV for TLVs 22,23,25,141,222,and 223 is defined that supports specification of the applications and application-specific attribute values.A new sub-TLV for TLVs 22, 23, 25, 141, 222, and 223 is defined that supports specification of the applications and application-specific attribute values.
Type:16Type: 16
Length:Variable(1 octet)Length: Variable (1 octet)
Value:Value:
Application Identifier Bit Mask(as defined in Section 4.1)Application Identifier Bit Mask(as defined in Section 4.1)
Link attribute sub-sub TLVs—format matches the existingLink attribute sub-sub TLVs—format matches the existing
Formats defined in[RFC5305],[RFC7308],and[RFC8570]Formats defined in [RFC5305], [RFC7308], and [RFC8570]
路由接口的TE属性携带链路丢包率信息,当链路丢包率满足发布条件时,网络中的 节点可以对外发布链路丢包率对应的丢包率权值,发布条件可以包括如下两种:一是接口上配置的使能开关开启可以对外发布丢包率权值;二是当接口检测到链路上的链路丢包率,可以对外发布丢包率权值。The TE attribute of the routing interface carries link packet loss rate information. When the link packet loss rate meets the release conditions, nodes in the network can publish the packet loss rate weight corresponding to the link packet loss rate. The release conditions can include the following two Two types: first, the enable switch configured on the interface is turned on to publish the packet loss rate weight to the outside world; second, when the interface detects the link packet loss rate on the link, it can publish the packet loss rate weight to the outside world.
应理解,网络中的节点发布链路丢包率具有方向性,例如,网络700中的节点1对外发布节点1->节点2这条链路的丢包率,节点2对外发布节点2->节点1这条链路的丢包率。It should be understood that the link packet loss rate published by nodes in the network has directionality. For example, node 1 in the network 700 publishes the packet loss rate of the link node 1->node 2, and node 2 publishes the packet loss rate of node 2-> The packet loss rate of the link of node 1.
作为一个可选的实施例,目标灵活算法的信息还包括计算类型的标识;第一节点基于该目标灵活算法,确定到达多个节点中的第二节点的至少一条目标路径,包括:该第一节点基于该目标灵活算法、该链路丢包率或该计算类型中的至少一种,从多条候选路径中确定达到该第二节点的至少一条目标路径。As an optional embodiment, the information of the target flexible algorithm further includes an identification of a calculation type; based on the target flexible algorithm, the first node determines at least one target path to the second node among the plurality of nodes, including: the first The node determines at least one target path to the second node from multiple candidate paths based on at least one of the target flexible algorithm, the link packet loss rate, or the calculation type.
在本申请实施例中,第一节点获取链路丢包率对应的丢包率权值和灵活算法的信息之后,可以基于该链路丢包率对应的丢包率权值、目标灵活算法或计算类型中的至少一种确定至少一条目标路径。In this embodiment of the application, after the first node obtains the packet loss rate weight corresponding to the link packet loss rate and the information of the flexible algorithm, it may base on the packet loss rate weight corresponding to the link packet loss rate, the target flexible algorithm or At least one of the calculation types determines at least one target path.
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
上文中结合图1至图8,详细描述了根据本申请实施例的确定路径的方法,下面将结合图9至图11详细描述根据本申请实施例的确定路径的装置。The method for determining a route according to the embodiment of the present application is described in detail above with reference to FIGS. 1 to 8 . The apparatus for determining a route according to the embodiment of the present application will be described in detail below in conjunction with FIGS. 9 to 11 .
图9示出了本申请实施例提供的一种确定路径的装置900的示意性框图,装置900包括:接收模块910和确定模块920。FIG. 9 shows a schematic block diagram of an apparatus 900 for determining a path provided by an embodiment of the present application. The apparatus 900 includes: a receiving module 910 and a determining module 920 .
在一个可选的例子中,本领域技术人员可以理解,装置900可以具体为上述实施例中的第一节点,或者,上述实施例中第一节点的功能可以集成在装置900中。上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。装置900可以用于执行上述方法实施例中与第一节点对应的各个流程和/或步骤。In an optional example, those skilled in the art may understand that the apparatus 900 may specifically be the first node in the above embodiment, or the function of the first node in the above embodiment may be integrated in the apparatus 900 . The above functions can be implemented by hardware, or can be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. The apparatus 900 may be configured to execute various processes and/or steps corresponding to the first node in the foregoing method embodiments.
示例性地,若需确定网络200中的一条从节点0至节点9(目的节点)的路径,则第一节点可以为网络200中的节点0。Exemplarily, if a path from node 0 to node 9 (destination node) in the network 200 needs to be determined, the first node may be node 0 in the network 200 .
示例性地,若需确定网络500中的一条从节点0至节点9(目的节点)的路径,则第一节点可以为网络500中的节点0。Exemplarily, if a path from node 0 to node 9 (destination node) in the network 500 needs to be determined, the first node may be node 0 in the network 500 .
示例性地,若需确定网络600中的一条从节点1至节点9(目的节点)的路径,则第一节点可以为网络600中的节点1。Exemplarily, if a path from node 1 to node 9 (destination node) in the network 600 needs to be determined, the first node may be node 1 in the network 600 .
示例性地,若需确定网络700中的一条从节点2至节点9(目的节点)的路径,则第一节点可以为网络700中的节点2。Exemplarily, if a path from node 2 to node 9 (destination node) in the network 700 needs to be determined, the first node may be node 2 in the network 700 .
其中,接收模块910用于:接收目标灵活算法的信息,该目标灵活算法的信息包括用于指示链路丢包率的标识;确定模块920用于:基于该目标灵活算法,确定到达多个节点中的第二节点的至少一条目标路径,该目标路径是多条候选路径中该链路丢包率之和最小的路径。Wherein, the receiving module 910 is configured to: receive the information of the target flexible algorithm, and the information of the target flexible algorithm includes an identifier for indicating the packet loss rate of the link; the determining module 920 is configured to: based on the target flexible algorithm, determine At least one target path of the second node, where the target path is the path with the smallest sum of packet loss rates of the link among multiple candidate paths.
示例性地,接收模块910可以为通信接口,例如收发接口。Exemplarily, the receiving module 910 may be a communication interface, such as a transceiver interface.
应理解,接收模块910可以执行上述方法300中的S301,确定模块920可以执行上述方法300中的S302。It should be understood that the receiving module 910 may perform S301 in the above method 300, and the determining module 920 may perform S302 in the above method 300.
可选地,该目标路径的至少一条链路的第一丢包率权值之和是多条候选路径中最小的,该第一丢包率权值是根据该链路丢包率确定的。Optionally, the sum of the first packet loss rate weights of at least one link of the target path is the smallest among multiple candidate paths, and the first packet loss rate weight is determined according to the link packet loss rate.
可选地,该第一丢包率权值大于0,该第一丢包率权值随着链路丢包率的增大而增大。Optionally, the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
可选地,链路丢包率为0对应第一丢包率权值为1,链路丢包率为0.000003%对应第一丢包率权值为2,0.000003%为链路丢包率的基础度量单元。Optionally, the link packet loss rate of 0 corresponds to the weight of the first packet loss rate of 1, the link packet loss rate of 0.000003% corresponds to the weight of the first packet loss rate of 2, and 0.000003% is the weight of the link packet loss rate Base unit of measure.
可选地,接收模块910用于:接收来自网络中的其他节点的第一报文,该第一报文包括该目标灵活算法的信息,该目标灵活算法的信息包括该目标灵活算法的FAD。Optionally, the receiving module 910 is configured to: receive a first packet from other nodes in the network, where the first packet includes information about the target flexible algorithm, and the information about the target flexible algorithm includes the FAD of the target flexible algorithm.
可选地,接收模块910用于:接收来自网络中的其他节点的第二报文,该第二报文包括至少一条链路的第二丢包率权值;确定模块920用于:基于该第二报文,确定该第一丢包率权值。Optionally, the receiving module 910 is configured to: receive a second packet from other nodes in the network, where the second packet includes a second packet loss rate weight of at least one link; the determining module 920 is configured to: based on the For the second packet, determine the weight of the first packet loss rate.
可选地,该第二丢包率权值位于该第二报文的第一子类型长度值TLV字段。Optionally, the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
可选地,确定模块920用于:将该第二丢包率权值加1后的值确定为该第一丢包率权值。Optionally, the determining module 920 is configured to: determine a value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
可选地,确定模块920用于:将该第二丢包率权值确定为该第一丢包率权值。Optionally, the determining module 920 is configured to: determine the second packet loss rate weight as the first packet loss rate weight.
可选地,该目标灵活算法的信息还包括计算类型的标识;确定模块920用于:基于该目标灵活算法、该链路丢包率或该计算类型中的至少一种,从多条候选路径中确定达到该第二节点的至少一条目标路径。Optionally, the information of the target flexible algorithm also includes an identification of a calculation type; the determining module 920 is configured to: based on at least one of the target flexible algorithm, the link packet loss rate, or the calculation type, from multiple candidate paths Determine at least one target path to the second node.
图10示出了本申请实施例提供的另一种确定路径的装置1000的示意性框图,装置1000包括:确定模块1010和发送模块1020。FIG. 10 shows a schematic block diagram of another apparatus 1000 for determining a path provided by an embodiment of the present application. The apparatus 1000 includes: a determining module 1010 and a sending module 1020 .
在一个可选的例子中,本领域技术人员可以理解,装置1000可以具体为上述实施例中的第三节点,或者,上述实施例中第三节点的功能可以集成在装置1000中。In an optional example, those skilled in the art may understand that the apparatus 1000 may specifically be the third node in the above embodiment, or the function of the third node in the above embodiment may be integrated in the apparatus 1000 .
上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。装置1000可以用于执行上述方法实施例中与第三节点对应的各个流程和/或步骤。The above functions can be implemented by hardware, or can be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. The apparatus 1000 may be configured to execute various processes and/or steps corresponding to the third node in the foregoing method embodiments.
示例性地,若需确定网络200中的一条从节点0至节点9(目的节点)的路径,则第一节点可以为网络200中的节点0,第三节点可以为网络200中除去节点0的其他节点中的一个。Exemplarily, if it is necessary to determine a path from node 0 to node 9 (destination node) in the network 200, the first node may be node 0 in the network 200, and the third node may be the node 0 in the network 200 except one of the other nodes.
示例性地,若需确定网络500中的一条从节点0至节点9(目的节点)的路径,则第一节点可以为网络500中的节点0,第三节点可以为网络500中除去节点0的其他节点中的一个。Exemplarily, if it is necessary to determine a path from node 0 to node 9 (destination node) in the network 500, the first node may be node 0 in the network 500, and the third node may be the node 0 in the network 500 except one of the other nodes.
示例性地,若需确定网络600中的一条从节点1至节点9(目的节点)的路径,则第一节点可以为网络600中的节点1,第三节点可以为网络600中除去节点1的其他节点中的一个。Exemplarily, if it is necessary to determine a path from node 1 to node 9 (destination node) in the network 600, the first node may be node 1 in the network 600, and the third node may be the node 1 in the network 600 except one of the other nodes.
示例性地,若需确定网络700中的一条从节点2至节点9(目的节点)的路径,则第一节点可以为网络700中的节点2,第三节点可以为网络700中除去节点2的其他节点中的一个。Exemplarily, if it is necessary to determine a path from node 2 to node 9 (destination node) in the network 700, the first node may be node 2 in the network 700, and the third node may be the node 2 in the network 700 except one of the other nodes.
其中,确定模块1010用于:确定目标灵活算法的信息,该目标灵活算法的信息包括用于指示链路丢包率的标识,该目标灵活算法的信息用于网络中的其他节点基于该目标灵活算法,确定至少一条目标路径;发送模块1020用于:向网络中的其他节点发送该目标 灵活算法的信息。Wherein, the determination module 1010 is used to: determine the information of the target flexible algorithm, the information of the target flexible algorithm includes an identifier for indicating the packet loss rate of the link, and the information of the target flexible algorithm is used by other nodes in the network to flexibly based on the target algorithm, to determine at least one target path; the sending module 1020 is configured to: send the information of the target flexible algorithm to other nodes in the network.
示例性地,发送模块1020可以为通信接口,例如收发接口。Exemplarily, the sending module 1020 may be a communication interface, such as a transceiver interface.
应理解,发送模块1020可执行上述方法400中的S401。It should be understood that the sending module 1020 may execute S401 in the foregoing method 400.
可选地,发送模块1020用于:向网络中的其他节点发送第一报文,该第一报文包括该目标灵活算法的信息。Optionally, the sending module 1020 is configured to: send a first packet to other nodes in the network, where the first packet includes information about the target flexible algorithm.
可选地,发送模块1020用于:向网络中的其他节点发送第二报文,该第二报文包括至少一条链路的第二丢包率权值,该第二丢包率权值位于该第二报文的第一子类型长度值TLV字段。Optionally, the sending module 1020 is configured to: send a second message to other nodes in the network, where the second message includes a second packet loss rate weight of at least one link, where the second packet loss rate weight is located at The first subtype length value TLV field of the second packet.
可选地,确定模块1010用于:将该链路丢包率对应的原始丢包率权值加1后的值确定为该第二丢包率权值。Optionally, the determining module 1010 is configured to: determine a value obtained by adding 1 to the original packet loss rate weight corresponding to the link packet loss rate as the second packet loss rate weight.
可选地,该第二丢包率权值大于0,第二丢包率权值随着链路丢包率的增大而增大。Optionally, the second packet loss rate weight is greater than 0, and the second packet loss rate weight increases as the link packet loss rate increases.
可选地,链路丢包率为0对应第二丢包率权值为1,链路丢包率为0.000003%对应第二丢包率权值为2,0.000003%为链路丢包率的基础度量单元。Optionally, a link packet loss rate of 0 corresponds to a second packet loss rate weight of 1, a link packet loss rate of 0.000003% corresponds to a second packet loss rate weight of 2, and 0.000003% is the link packet loss rate Base unit of measure.
应理解,这里的装置900和装置1000以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。It should be understood that the device 900 and the device 1000 here are embodied in the form of functional modules. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality.
在本申请的实施例,装置900和装置1000也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。对应的,接收模块910可以是该芯片的收发电路,在此不做限定。In the embodiment of the present application, the device 900 and the device 1000 may also be a chip or a chip system, for example: a system on chip (system on chip, SoC). Correspondingly, the receiving module 910 may be a transceiver circuit of the chip, which is not limited here.
上述装置900和/或装置1000可以通过硬件实现,也可以通过硬件执行相应的软件实现,本申请实施例对此不做限制。下面结合图11介绍本申请实施例的硬件结构。The foregoing apparatus 900 and/or apparatus 1000 may be implemented by hardware, or may be implemented by executing corresponding software on hardware, which is not limited in this embodiment of the present application. The hardware structure of the embodiment of the present application is introduced below with reference to FIG. 11 .
图11示出了本申请实施例提供的再一种确定路径的装置1100的示意性框图。该装置1100包括处理器1110、收发器1120和存储器1130。其中,处理器1110、收发器1120和存储器1130通过内部连接通路互相通信,该存储器1130用于存储指令,该处理器1110用于执行该存储器1130存储的指令,以控制该收发器1120发送信号和/或接收信号。FIG. 11 shows a schematic block diagram of another apparatus 1100 for determining a path provided by an embodiment of the present application. The apparatus 1100 includes a processor 1110 , a transceiver 1120 and a memory 1130 . Wherein, the processor 1110, the transceiver 1120 and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is used to store instructions, and the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and /or to receive a signal.
应理解,装置1100可以具体为上述实施例中的第一节点或第三节点,或者,上述实施例中第一节点或第三节点的功能可以集成在装置1100中,装置1100可以用于执行上述方法实施例中与第一节点或第三节点对应的各个步骤和/或流程。It should be understood that the device 1100 may specifically be the first node or the third node in the above embodiment, or the functions of the first node or the third node in the above embodiment may be integrated in the device 1100, and the device 1100 may be used to perform the above Each step and/or process corresponding to the first node or the third node in the method embodiment.
可选地,该存储器1130可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器1110可以用于执行存储器中存储的指令,并且该处理器执行该指令时,该处理器可以执行上述方法实施例中与第一节点或第三节点对应的各个步骤和/或流程。Optionally, the memory 1130 may include read-only memory and random-access memory, and provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 1110 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may execute various steps and/or processes corresponding to the first node or the third node in the above method embodiments.
应理解,在本申请实施例中,处理器1110可以是中央处理单元(central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 1110 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs) ), field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
图12是本申请实施例提供的一种确定路径的系统1200的示意性框图。如图12所示, 系统1200包括第一节点1210和第三节点1220。Fig. 12 is a schematic block diagram of a system 1200 for determining a route provided by an embodiment of the present application. As shown in FIG. 12 , the system 1200 includes a first node 1210 and a third node 1220 .
其中,第三节点1220用于:向网络中的其他节点发送第一报文,该第一报文包括灵活算法的信息,该目标灵活算法的信息包括FAD,该用于指示链路丢包率的标识位于该FAD的度量类型字段。Wherein, the third node 1220 is used to: send the first message to other nodes in the network, the first message includes the information of the flexible algorithm, the information of the target flexible algorithm includes FAD, which is used to indicate the link packet loss rate The identifier is located in the Metric Type field of the FAD.
第一节点1210用于:接收来自第三节点1220的第一报文,并基于该第一报文,确定目标灵活算法的信息;以及,基于该灵活算法,确定到达目的节点的至少一条目标路径。The first node 1210 is configured to: receive the first message from the third node 1220, and determine the information of the target flexible algorithm based on the first message; and, based on the flexible algorithm, determine at least one target path to the destination node .
应理解,第一节点1210和第三节点1220还可以执行上述实施例中描述的与第一节点和第三节点相关的步骤和/或流程,此处不再赘述。It should be understood that the first node 1210 and the third node 1220 may also execute the steps and/or processes related to the first node and the third node described in the foregoing embodiments, which will not be repeated here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (20)

  1. 一种确定路径的方法,其特征在于,应用于包括多个节点的网络,包括:A method of determining a path, characterized in that it is applied to a network comprising a plurality of nodes, comprising:
    所述多个节点中的第一节点接收目标灵活算法的信息,所述目标灵活算法的信息包括用于指示链路丢包率的标识;The first node among the plurality of nodes receives information of a target flexible algorithm, where the information of the target flexible algorithm includes an identifier for indicating a link packet loss rate;
    所述第一节点基于所述目标灵活算法,确定到达所述多个节点中的第二节点的至少一条目标路径,所述目标路径是多条候选路径中所述链路丢包率之和最小的路径。The first node determines at least one target path to the second node among the plurality of nodes based on the target flexible algorithm, and the target path is that the sum of the packet loss rates of the links among the plurality of candidate paths is the smallest path of.
  2. 根据权利要求1所述的方法,其特征在于,所述目标路径的至少一条链路的第一丢包率权值之和是所述多条候选路径中最小的,所述第一丢包率权值是根据所述链路丢包率确定的。The method according to claim 1, wherein the sum of the first packet loss rate weights of at least one link of the target path is the smallest among the plurality of candidate paths, and the first packet loss rate The weight is determined according to the link packet loss rate.
  3. 根据权利要求2所述的方法,其特征在于,所述第一丢包率权值大于0,所述第一丢包率权值随着所述链路丢包率的增大而增大。The method according to claim 2, wherein the first packet loss rate weight is greater than 0, and the first packet loss rate weight increases as the link packet loss rate increases.
  4. 根据权利要求2或3所述的方法,其特征在于,所述链路丢包率为0对应所述第一丢包率权值为1,所述链路丢包率为0.000003%对应所述第一丢包率权值为2,0.000003%为所述链路丢包率的基础度量单元。The method according to claim 2 or 3, wherein the link packet loss rate of 0 corresponds to the first packet loss rate weight value of 1, and the link packet loss rate of 0.000003% corresponds to the The weight of the first packet loss rate is 2, and 0.000003% is the basic measurement unit of the link packet loss rate.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述多个节点中的第一节点接收目标灵活算法的信息,包括:The method according to any one of claims 1-4, wherein the first node among the plurality of nodes receives the information of the target flexible algorithm, comprising:
    所述第一节点接收来自所述网络中的其他节点的第一报文,所述第一报文包括所述目标灵活算法的信息,所述目标灵活算法的信息包括所述目标灵活算法的灵活算法定义FAD。The first node receives a first packet from other nodes in the network, the first packet includes information of the target flexible algorithm, and the information of the target flexible algorithm includes flexibility of the target flexible algorithm Algorithms define FAD.
  6. 根据权利要求2-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2-4, wherein the method further comprises:
    所述第一节点接收来自所述网络中的其他节点的第二报文,所述第二报文包括至少一条链路的第二丢包率权值;The first node receives a second message from other nodes in the network, the second message includes a second packet loss rate weight of at least one link;
    所述第一节点基于所述第二报文,确定所述第一丢包率权值。The first node determines the first packet loss rate weight based on the second packet.
  7. 根据权利要求6所述的方法,其特征在于,所述第二丢包率权值位于所述第二报文的第一子类型长度值TLV字段。The method according to claim 6, wherein the second packet loss rate weight is located in the first subtype length value TLV field of the second packet.
  8. 根据权利要求6或7所述的方法,其特征在于,所述第一节点基于所述第二报文,确定所述第一丢包率权值,包括:The method according to claim 6 or 7, wherein the first node determines the first packet loss rate weight based on the second message, comprising:
    所述第一节点将所述第二丢包率权值加1后的值确定为所述第一丢包率权值。The first node determines a value obtained by adding 1 to the second packet loss rate weight as the first packet loss rate weight.
  9. 根据权利要求6或7所述的方法,其特征在于,所述第一节点基于所述第二报文,确定所述第一丢包率权值,包括:The method according to claim 6 or 7, wherein the first node determines the first packet loss rate weight based on the second message, comprising:
    所述第一节点将所述第二丢包率权值确定为所述第一丢包率权值。The first node determines the second packet loss rate weight as the first packet loss rate weight.
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述目标灵活算法的信息还包括计算类型的标识;The method according to any one of claims 1-9, wherein the information of the target flexible algorithm further includes an identification of a calculation type;
    所述第一节点基于所述目标灵活算法,确定到达所述多个节点中的第二节点的至少一条目标路径,包括:The first node determines at least one target path to the second node among the plurality of nodes based on the target flexible algorithm, including:
    所述第一节点基于所述目标灵活算法、所述链路丢包率或所述计算类型中的至少一种,从所述多条候选路径中确定达到所述第二节点的所述至少一条目标路径。The first node determines, from the multiple candidate paths, the at least one path to the second node based on at least one of the target flexible algorithm, the link packet loss rate, or the calculation type. Target path.
  11. 一种确定路径的方法,其特征在于,应用于包括多个节点的网络,包括:A method of determining a path, characterized in that it is applied to a network comprising a plurality of nodes, comprising:
    所述多个节点中的第三节点向所述网络中的其他节点发送目标灵活算法的信息,所述目标灵活算法的信息包括用于指示链路丢包率的标识,所述目标灵活算法的信息用于所述网络中的其他节点基于所述目标灵活算法,确定至少一条目标路径。A third node among the plurality of nodes sends information about a target flexible algorithm to other nodes in the network, where the information about the target flexible algorithm includes an identifier for indicating a packet loss rate of a link, and the information about the target flexible algorithm Information is used by other nodes in the network to determine at least one destination path based on the destination flexibility algorithm.
  12. 根据权利要求11所述的方法,其特征在于,所述多个节点中的第三节点向所述网络中的其他节点发送目标灵活算法的信息,包括:The method according to claim 11, wherein the third node among the plurality of nodes sends the information of the target flexible algorithm to other nodes in the network, comprising:
    所述第三节点向所述网络中的其他节点发送第一报文,所述第一报文包括所述目标灵活算法的信息。The third node sends a first packet to other nodes in the network, where the first packet includes information of the target flexible algorithm.
  13. 根据权利要求11或12所述的方法,其特征在于,所述方法还包括:The method according to claim 11 or 12, characterized in that the method further comprises:
    所述第三节点向所述网络中的其他节点发送第二报文,所述第二报文包括至少一条链路的第二丢包率权值,所述第二丢包率权值位于所述第二报文的第一子类型长度值TLV字段。The third node sends a second message to other nodes in the network, the second message includes a second packet loss rate weight of at least one link, and the second packet loss rate weight is located at the The first subtype length value TLV field of the second packet.
  14. 根据权利要求13所述的方法,其特征在于,在所述第三节点向所述网络中的其他节点发送第二报文之前,所述方法还包括:The method according to claim 13, wherein before the third node sends the second message to other nodes in the network, the method further comprises:
    所述第三节点将所述链路丢包率对应的原始丢包率权值加1后的值确定为所述第二丢包率权值。The third node determines a value obtained by adding 1 to the original packet loss rate weight corresponding to the link packet loss rate as the second packet loss rate weight.
  15. 根据权利要求14所述的方法,其特征在于,所述第二丢包率权值大于0,所述第二丢包率权值随着所述链路丢包率的增大而增大。The method according to claim 14, wherein the second packet loss rate weight is greater than 0, and the second packet loss rate weight increases as the link packet loss rate increases.
  16. 根据权利要求14或15所述的方法,其特征在于,所述链路丢包率为0对应所述第二丢包率权值为1,所述链路丢包率为0.000003%对应所述第二丢包率权值为2,0.000003%为所述链路丢包率的基础度量单元。The method according to claim 14 or 15, wherein the link packet loss rate of 0 corresponds to the second packet loss rate weight value of 1, and the link packet loss rate of 0.000003% corresponds to the The weight of the second packet loss rate is 2, and 0.000003% is the basic measurement unit of the link packet loss rate.
  17. 一种确定路径的装置,其特征在于,包括处理器、通信接口和存储器,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码以使得所述装置执行如权利要求1-10中任一项所述的方法。A device for determining a path, characterized in that it includes a processor, a communication interface and a memory, the memory is used to store program codes, and the processor is used to call the program codes in the memory so that the device executes the The method described in any one of claims 1-10.
  18. 一种确定路径的装置,其特征在于,包括处理器、通信接口和存储器,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码以使得所述装置执行如权利要求11-16中任一项所述的方法。A device for determining a path, characterized in that it includes a processor, a communication interface and a memory, the memory is used to store program codes, and the processor is used to call the program codes in the memory so that the device executes the The method of any one of claims 11-16.
  19. 一种确定路径的系统,其特征在于,包括第一节点和第三节点,所述第一节点用于执行如权利要求1-10中任一项所述的方法,所述第三节点用于执行如权利要求11-16中任一项所述的方法。A system for determining a path, characterized by comprising a first node and a third node, the first node is used to execute the method according to any one of claims 1-10, and the third node is used to Performing the method as described in any one of claims 11-16.
  20. 一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序包括用于实现如权利要求1-16中任一项所述的方法的指令。A computer-readable storage medium, characterized by being used for storing a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1-16.
PCT/CN2021/103300 2021-06-22 2021-06-29 Path determination methods and apparatus WO2022267083A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110691370.4A CN115514640A (en) 2021-06-22 2021-06-22 Method and device for determining path
CN202110691370.4 2021-06-22

Publications (1)

Publication Number Publication Date
WO2022267083A1 true WO2022267083A1 (en) 2022-12-29

Family

ID=84499986

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/103300 WO2022267083A1 (en) 2021-06-22 2021-06-29 Path determination methods and apparatus

Country Status (2)

Country Link
CN (1) CN115514640A (en)
WO (1) WO2022267083A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752186A (en) * 2011-04-20 2012-10-24 中兴通讯股份有限公司 Method and system for selecting path, and nodes
CN103338471A (en) * 2013-06-27 2013-10-02 南京邮电大学 Service quality index evaluating method for wireless multi-hop network based on model
CN104796334A (en) * 2015-04-30 2015-07-22 无锡市崇安区科技创业服务中心 Data transmission path selection method
US20190007305A1 (en) * 2017-06-30 2019-01-03 Cisco Technology, Inc. Malleable routing for data packets
US20200344151A1 (en) * 2019-04-26 2020-10-29 Juniper Networks, Inc. Enhanced flexible-algorithm definition
CN112187641A (en) * 2020-06-24 2021-01-05 华为技术有限公司 Routing information sending method, message sending method and related device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752186A (en) * 2011-04-20 2012-10-24 中兴通讯股份有限公司 Method and system for selecting path, and nodes
CN103338471A (en) * 2013-06-27 2013-10-02 南京邮电大学 Service quality index evaluating method for wireless multi-hop network based on model
CN104796334A (en) * 2015-04-30 2015-07-22 无锡市崇安区科技创业服务中心 Data transmission path selection method
US20190007305A1 (en) * 2017-06-30 2019-01-03 Cisco Technology, Inc. Malleable routing for data packets
US20200344151A1 (en) * 2019-04-26 2020-10-29 Juniper Networks, Inc. Enhanced flexible-algorithm definition
CN112187641A (en) * 2020-06-24 2021-01-05 华为技术有限公司 Routing information sending method, message sending method and related device

Also Published As

Publication number Publication date
CN115514640A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN111587580B (en) Interior gateway protocol flooding minimization
US9325626B2 (en) Method and apparatus to reduce cumulative effect of dynamic metric advertisement in smart grid/sensor networks
US9800493B2 (en) Routing messages in a computer network using deterministic and probalistic source routes
EP1741247B1 (en) Router configured for outputting update messages specifying a detected attribute change of a connected active path according to a prescribed routing protocol
US8170022B2 (en) Method and apparatus for actively discovering internet protocol equal cost multiple paths and associate metrics
US8291112B2 (en) Selective a priori reactive routing
US9300569B2 (en) Compressing data packet routing information using bloom filters
US20220224631A1 (en) Routing Control Method and Apparatus
US11962491B2 (en) Source routing tunnel ingress protection
CN107623630B (en) Bit index explicit copy information transfer method and device
US20190123995A1 (en) Method, apparatus and system for controlling routing information advertising
KR20210126128A (en) Systems and methods for dealing with flooding topology mismatches
US20230198897A1 (en) Method, network device, and system for controlling packet sending
WO2022267083A1 (en) Path determination methods and apparatus
WO2022052800A1 (en) Communication system, data processing method and related device
WO2015032261A1 (en) Route updating method and routing device
WO2023160124A1 (en) Method and apparatus for determining path
US9450835B2 (en) Method for turning off routers in a communications network and router implementing this method
WO2022213830A1 (en) Method and apparatus for determining path
WO2023098703A1 (en) Path notification method, topology algorithm combination generation method, path calculation method, data transmission method, electronic device, and computer-readable storage medium
WO2022257854A1 (en) Message publishing method and apparatus, and forwarding path processing method and apparatus
WO2023134416A1 (en) Message sending method, method for determining link state, device and system
WO2023173989A1 (en) Forwarding table generation method and apparatus, and storage medium and electronic apparatus
WO2023155733A1 (en) Network slice information transmission method and apparatus
WO2023186104A1 (en) Path optimization processing method and apparatus, and device and readable 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: 21946572

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE