WO2022033341A1 - Path restoring method and device - Google Patents

Path restoring method and device Download PDF

Info

Publication number
WO2022033341A1
WO2022033341A1 PCT/CN2021/109956 CN2021109956W WO2022033341A1 WO 2022033341 A1 WO2022033341 A1 WO 2022033341A1 CN 2021109956 W CN2021109956 W CN 2021109956W WO 2022033341 A1 WO2022033341 A1 WO 2022033341A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing device
routing
aggregation information
path
identifier
Prior art date
Application number
PCT/CN2021/109956
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 WO2022033341A1 publication Critical patent/WO2022033341A1/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/02Topology update or discovery
    • H04L45/03Topology update or discovery by updating link state protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method and device for path restoration.
  • packets are forwarded between routing devices to provide users with corresponding business services.
  • a service or a certain performance of a service is abnormal, in order to troubleshoot the fault, the actual forwarding path of the packet is usually restored, and troubleshooting is performed based on the restored path. In this way, the fault location can be quickly and effectively determined.
  • the management device usually implements path restoration based on the Link State Data Base (English: Link State Data Base, abbreviated as: LSDB).
  • the specific process includes: after the management device obtains the LSDB, it first determines the network topology based on the adjacency information included in the LSDB. , and then based on the metric value (English: metric) of each link in the LSDB and the determined network topology, the restoration path is calculated according to the Shortest Path First (English: Shortest Path First, SPF for short) algorithm.
  • the adjacency relationship information included in the LSDB is used to indicate the connection relationship between the outgoing interface of the routing device and the incoming interface of the neighbor of the routing device.
  • This path restoration method does not consider the configuration on each routing device, for example, does not consider the maximum number of load-balancing paths (English: maximum load-balancing) set on the routing device, resulting in the calculated restoration path and the actual forwarding in the network.
  • the paths are inconsistent, which affects the efficiency and accuracy of troubleshooting.
  • the embodiments of the present application provide a method and device for path restoration, in which the management device restores a restoration path consistent with the real forwarding path based on the aggregation information reported by each routing device and in combination with the adjacency information in the LSDB, so that Troubleshooting in the network can be faster and more accurate.
  • an embodiment of the present application provides a method for path restoration.
  • the path restoration process may include: a first routing device obtains first aggregation information, where the first aggregation information includes an identifier of a second routing device and a first route At least one outgoing interface identifier of the device, the at least one outgoing interface of the first routing device is used for the first routing device to send packets to the second routing device; then, the first routing device sends the first aggregation information to the management device, and manages the The device can determine the restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first LSDB, where the first LSDB is where the first routing device and the second routing device are located.
  • each routing device aggregates the routing information from the routing device to other routing devices in the network domain to obtain aggregation information, and reports the aggregation information to the management device as the data basis for the management device to restore the path.
  • the configuration of each routing device has been considered in the process of the restoration process. Therefore, the routing information based on the path restoration process conforms to the configuration of each routing device, so that the aggregation information obtained by aggregation also conforms to the configuration of each routing device, so that the obtained restoration path is consistent with the actual configuration of each routing device. Completely consistent forwarding paths are possible, providing a reliable basis for fast and accurate troubleshooting in the network domain.
  • the adjacency relationship information in the first LSDB is used to describe the topology of the first network domain.
  • the LSDBs in the same network domain are the same, and different network domains correspond to different LSDBs.
  • the obtaining of the first aggregation information by the first routing device may specifically include: the first routing device obtains the first aggregation information based on the forwarding table.
  • obtaining the first aggregation information based on the forwarding table by the first routing device may include, for example: the first routing device determines in the forwarding table the outgoing address corresponding to the Internet Protocol (English: Internet Protocol, IP for short) prefix of the second routing device in the forwarding table.
  • the interface identifier thus, the outgoing interface identifier corresponding to the IP prefix of the second routing device is determined as at least one outgoing interface identifier of the first routing device in the first aggregation information.
  • the first aggregation information is obtained by aggregating the next hop information of the forwarding table entries of the IP prefixes belonging to the destination routing device in the forwarding table, which provides a reliable data basis for path restoration.
  • the obtaining of the first aggregation information by the first routing device may specifically include: the first routing device obtains the first aggregation information from a locally saved shortest path tree (English: Shortest Path Tree, SPT for short) calculation result.
  • a locally saved shortest path tree English: Shortest Path Tree, SPT for short
  • the process of determining the real forwarding path by the first routing device may include: the first step: taking other routing devices in the first network domain except the first routing device as the destination routing device, and calculating the route from the first routing device to each route.
  • RM Router Management
  • the applicable scenario of this implementation method is: in the second step, based on the configuration such as maximum load-balancing, the shortest path that matches the configuration is selected from the shortest path, and then the routing table is generated according to the selected shortest path.
  • the routing table is generated based on The forwarding table may not consider the configuration of the routing device, and the first routing device saves the intermediate result in the process of generating the forwarding table, that is, the routing table calculated based on the SPT algorithm and combined with the configuration of the routing device.
  • the first aggregation information can be obtained by directly reading the saved intermediate result without additional processing by the first routing device, which can effectively improve the efficiency of the first routing device in obtaining the first aggregation information.
  • the method may also Including: the first routing device obtains second aggregation information, where the second aggregation information includes the identifier of the second routing device and the identifier of the third routing device; the first routing device sends the second aggregation information to the management device, and the management device is based on the first routing device.
  • the first aggregation information, the second aggregation information, the adjacency relationship information in the first LSDB corresponding to the first network domain, and the adjacency relationship information in the second LSDB corresponding to the second network domain determine that the first routing device arrives via the second routing device The restoration path of the third routing device.
  • the third routing device since the first routing device and the third routing device belong to different network domains, in order for the first routing device to accurately restore the path to the third routing device, before the first routing device obtains the second aggregation information , the third routing device also needs to configure the identification of the third routing device (for example, the group identification (English: group id) of the third routing device), and carry the identification of the third routing device in the routing message and send it to the first routing device equipment.
  • the routing message used to carry the identifier of the third routing device may be a Link-State Advertisement (English: Link-State Advertisement, LSA for short) packet, and the LSA packet can be extended to display the information in the LSA packet.
  • the text carries the identifier of the third routing device.
  • the identifier of the third routing device can be carried through the extended length type value (English: Type Length Value, TLV for short) field in the LSA message.
  • each routing device aggregates the aggregation information from the routing device to other routing devices, and reports the aggregation information to the management device. Since the configuration of each routing device has been considered in the process of actually forwarding the packet, the path restoration process The aggregation information based on the network has also been in line with the configuration of each routing device. Based on the aggregation information, the path restoration across the network domain can make the obtained restoration path and the real forwarding path exactly the same, which is fast and accurate in the network domain and in the cross-network domain scenario. Troubleshooting provides a reliable basis.
  • the extended length type value English: Type Length Value, TLV for short
  • the first routing device sends the first aggregation information to the management device, which may periodically send the first aggregation information to the management device, or may send the first aggregation information to the management device based on a trigger instruction .
  • the trigger instruction may be generated by the routing device based on its own events, for example, the trigger instruction is generated when the route on the routing device changes; or the trigger instruction may also be sent by the management device or other routing devices to the routing device.
  • the manner in which the first routing device sends the first aggregation information to the management device is specifically limited.
  • an embodiment of the present application further provides a method for route restoration.
  • the process of route restoration may include: a management device receives first aggregation information from a first routing device, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, at least one outbound interface of the first routing device is used for the first routing device to send packets to the second routing device; then, the management device is based on the first aggregation information and The adjacency relationship information in the first LSDB determines the first restoration path from the first routing device to the second routing device, where the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  • the method may further include: a fourth routing device Obtain and send third aggregation information to the management device, where the third aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the fourth routing device, and at least one outbound interface of the fourth routing device is used for the fourth routing device Send a message to the second routing device; then, the management device determines the first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first LSDB, which may specifically include: the management device is based on The first aggregation information, the third aggregation information, and the adjacency relationship information in the first LSDB determine a first restoration path, and the first restoration path passes through the fourth routing device.
  • the process for the management device to determine the first restoration path based on the first aggregation information, the third aggregation information, and the adjacency relationship information in the first LSDB may include, for example: the management device determines the first restoration path based on the first aggregation information and the first LSDB Adjacency relationship information, determining the first path from the first routing device to the fourth routing device, and the adjacency relationship information in the first LSDB is used to indicate that at least one outbound interface of the first routing device is connected to the inbound interface of the fourth routing device; Next, the management device determines a second path from the fourth routing device to the second routing device based on the third aggregation information and the adjacency relationship information in the first LSDB, and the adjacency relationship information in the first LSDB is further used to indicate the fourth routing device At least one outgoing interface of the routing device is connected to the incoming interface of the second routing device; thus, the management device determines the first restoration path based on the first path
  • the method may further include: the management device determines a second restoration path from the first routing device to the third routing device, the The second restoration path is a path from the first routing device to the third routing device via the second routing device.
  • the method may further include: the management device receiving the second aggregation information sent by the first routing device, The second aggregation information includes the identifier of the second routing device and the identifier of the third routing device; then, the management device determines the relationship between the first routing device and the second routing device based on the first aggregation information and the adjacency information in the first LSDB.
  • the process may include: the management device determines the first restoration path based on the first aggregation information, the second aggregation information and the adjacency relationship information in the first LSDB.
  • the management device determines the first restoration path based on the first aggregation information, the second aggregation information, and the adjacency information in the first LSDB. Specifically, the management device may first determine the border routing device through which the second restoration path passes based on the second aggregation information. is the second routing device, so that the management device determines the first restoration path based on the first aggregation information and the adjacency relationship information in the first LSDB. Wherein, in order for the management device to know the correspondence between the third routing device and the identifier of the third routing device, the third routing device also needs to send the identifier of the third routing device to the management device.
  • the method provided by the embodiment of the present application may further include: the management device receives fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one output of the second routing device.
  • the interface identifier, at least one outgoing interface of the second routing device is used for the second routing device to send packets to the third routing device;
  • the process of the management device determining the second restoration path from the first routing device to the third routing device may include: : The management device determines the third restoration path from the second routing device to the third routing device according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain; The restoration path is determined, and the second restoration path is determined.
  • the management device determines the second restoration path, which may specifically be provided in the standard network domain according to the embodiment of the present application
  • the method determines the path between the source routing device and the border routing device, and determines the path between the border routing device and the destination routing device based on the characteristics of the non-standard network domain in the non-standard network domain, so as to splicing the two paths. to get the second restoration path.
  • the method may further include: the management device receives a default route sent by the third routing device; then, the process of the management device determining the second restoration path may include: : The management device determines a third restoration path from the second routing device to the third routing device according to the default route; then, the management device determines the second restoration path based on the first restoration path and the third restoration path.
  • an embodiment of the present application further provides a method for route restoration.
  • the process of route restoration may include: a third routing device sends a routing message to a first routing device, where the first routing device belongs to a first network domain, and a third routing device sends a routing message to a first routing device.
  • the three-routing device belongs to the second network domain, and the routing message carries the identifier of the third routing device, so that the first routing device obtains and sends the second aggregation information to the management device based on the identifier of the third routing device.
  • the information includes an identifier of a third routing device and an identifier of a second routing device, where the second routing device is a border device of the first network domain and the second network domain. In this way, the management device can determine the restoration path from the first routing device to the third routing device via the second routing device based on the second aggregation information.
  • the routing message sent by the third routing device to the first routing device may specifically be: an LSA packet sent by the third routing device to the first routing device, where the LSA packet carries the identifier of the third routing device through the extended TLV field .
  • the method may further include: the third routing device sends the identification of the third routing device to the management device.
  • an embodiment of the present application further provides a routing device, where the routing device is applied to the first routing device, and the routing device includes: a processing unit and a sending unit.
  • the processing unit is configured to obtain first aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing
  • the device sends a packet to the second routing device; the sending unit is configured to send the first aggregation information to the management device, so that the management device determines the first route based on the first aggregation information and the adjacency information in the first link state database LSDB
  • the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  • the processing unit is specifically configured to: obtain the first aggregation information based on the forwarding table. For example, the processing unit is specifically configured to: determine the outbound interface identifier corresponding to the IP prefix of the second routing device in the forwarding table, and determine the outbound interface identifier corresponding to the IP prefix of the second routing device as the first aggregation information At least one outbound interface identifier of a routing device.
  • the processing unit is specifically configured to: obtain the first aggregation information from the locally saved shortest path tree SPT calculation result.
  • the second routing device and the third routing device belong to the second network domain
  • the processing unit of the routing device is further configured to obtain second aggregation information, where the second aggregation information includes the data of the second routing device.
  • the identifier and the identifier of the third routing device; the sending unit is further configured to send the second aggregation information to the management device, so that the management device is based on the first aggregation information, the second aggregation information, and the adjacency in the first LSDB corresponding to the first network domain
  • the relationship information and the adjacency relationship information in the second LSDB corresponding to the second network domain determine the restoration path from the first routing device to the third routing device via the second routing device.
  • the routing device further includes a receiving unit, which is configured to receive a routing message advertised by the third routing device before obtaining the second aggregation information, where the routing message carries the identifier of the third routing device.
  • the receiving unit may be specifically configured to: receive an LSA packet sent by a third routing device, where the LSA packet carries an identifier of the third routing device through an extended TLV field.
  • the sending unit is specifically configured to: periodically send the first aggregation information to the management device.
  • the sending unit is specifically configured to: send the first aggregation information to the management device based on the trigger instruction.
  • routing device provided in the fourth aspect is used to perform the relevant operations mentioned in the first aspect.
  • an embodiment of the present application further provides a management device, where the management device may include: a receiving unit and a processing unit.
  • the receiving unit is configured to receive first aggregation information from the first routing device, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device for the first routing device to send a packet to the second routing device;
  • the processing unit is configured to determine the relationship between the first routing device and the second routing device based on the first aggregation information and the adjacency information in the first link state database LSDB.
  • the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  • the receiving unit is further configured to receive third aggregation information from the fourth routing device, where the third aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the fourth routing device, and the fourth routing device At least one outgoing interface of the routing device is used for the fourth routing device to send a packet to the second routing device; then, the processing unit may be specifically configured to: based on the first aggregation information, the third aggregation information and the adjacency information in the first LSDB , determine the first restoration path, and the first restoration path passes through the fourth routing device.
  • the processing unit is specifically configured to: determine the first path from the first routing device to the fourth routing device based on the first aggregation information and the adjacency information in the first LSDB, and the first path in the first LSDB
  • the adjacency relationship information is used to indicate that at least one outbound interface of the first routing device is connected to the inbound interface of the fourth routing device; based on the third aggregation information and the adjacency relationship information in the first LSDB, determine the connection between the fourth routing device and the second routing device
  • the adjacency information in the first LSDB is also used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; thus, based on the first path and the second path, determine the first restore path.
  • the second routing device and the third routing device belong to the second network domain
  • the processing unit is further configured to determine a second restoration path from the first routing device to the third routing device, where the second restoration path is A path from the first routing device to the third routing device via the second routing device.
  • the receiving unit is further configured to receive second aggregation information sent by the first routing device, where the second aggregation information includes an identifier of the second routing device and an identifier of the third routing device; then, the processing unit can be specifically used for:
  • the first restoration path is determined based on the first aggregation information, the second aggregation information, and the adjacency relationship information in the first LSDB.
  • the receiving unit is further configured to receive fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device, and at least one One outgoing interface is used by the second routing device to send packets to the third routing device; then, the processing unit may be specifically configured to: determine the first aggregation information according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain. A third restoration path from the second routing device to the third routing device; thus, a second restoration path is determined based on the first restoration path and the third restoration path.
  • the receiving unit is further configured to receive the identifier of the third routing device sent by the third routing device.
  • the processing unit may be specifically configured to: determine a third restoration path from the second routing device to the third routing device according to the default route; thus, determine the second restoration path based on the first restoration path and the third restoration path path.
  • the receiving unit is further configured to receive the default route sent by the third routing device.
  • management device provided in the fifth aspect is used to perform the related operations mentioned in the second aspect.
  • an embodiment of the present application further provides a routing device, the routing device is applied to a third routing device, the routing device includes: a sending unit, the sending unit is configured to send a routing message to the first routing device, the first routing device The routing device belongs to the first network domain, the third routing device belongs to the second network domain, and the routing message carries the identifier of the third routing device, so that the first routing device obtains based on the identifier of the third routing device and sends the second aggregation device to the management device information, the second aggregation information includes the identifier of the third routing device and the identifier of the second routing device, and the second routing device is a border device of the first network domain and the second network domain.
  • the sending unit is specifically configured to send an LSA packet to the first routing device, where the LSA packet carries the identifier of the third routing device through an extended TLV field.
  • the sending unit is further configured to send the identifier of the third routing device to the management device.
  • routing device provided in the sixth aspect is used to perform the related operations mentioned in the third aspect.
  • an embodiment of the present application further provides a routing device, including: a memory and a processor.
  • the memory is used for storing program codes or instructions;
  • the processor is used for running the program codes or instructions, so that the routing device executes the method provided in the first aspect above.
  • an embodiment of the present application further provides a management device, including: a memory and a processor.
  • the memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the management device executes the method provided in the second aspect above.
  • an embodiment of the present application further provides a routing device, including: a memory and a processor.
  • the memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the routing device executes the method provided in the third aspect.
  • an embodiment of the present application further provides a network system, where the network system includes the routing device provided in the fourth aspect, the management device provided in the fifth aspect, and the routing device provided in the sixth aspect; or, the network system may also It may include the routing device provided in the seventh aspect, the management device provided in the eighth aspect, and the routing device provided in the ninth aspect.
  • the embodiments of the present application also provide a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute the first aspect and the first The method provided in any one of the possible implementation manners provided in the second aspect or the third aspect.
  • an embodiment of the present application further provides a computer program product, which, when the computer program product runs on a network device, enables the network device to perform any one of the first aspect, the second aspect, or the third aspect.
  • FIG. 1 is a schematic structural diagram of a network domain 100 involved in an application scenario in an embodiment of the present application
  • FIG. 2 is a signaling flowchart of a method 100 for path restoration in an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a network 10 in an embodiment of the application.
  • FIG. 4 is a signaling flowchart of a method 200 for path restoration in an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of a network 20 in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a first routing device 600 in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a management device 700 in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a third routing device 800 in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another first routing device 900 in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another management device 1000 in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of another third routing device 1100 in an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a network system 1200 in an embodiment of the present application.
  • Path restoration is an effective method for troubleshooting.
  • the restoration path that is consistent with the actual forwarding path of the packet is restored to quickly and effectively implement troubleshooting and positioning.
  • the LSDB is usually used to calculate the restoration path.
  • the specific process may include: after the management device obtains the LSDB in the network domain, firstly determines the network topology based on the adjacency information included in the LSDB, and then determines the network topology based on the metric and the determined value of each link in the LSDB. Network topology, calculate the restoration path according to the SPF algorithm.
  • each routing device is also considered in the real forwarding path, and the configuration of each routing device is not considered in the restoration path calculated in this path restoration method, the obtained restoration path is likely to be inconsistent with the real forwarding path, which affects troubleshooting. and positioning effects.
  • the routing device 10 there are 3 equal-cost paths from the routing device 10 to the routing device 15 calculated according to the SPF algorithm, which are: Path 1: routing device 10-routing device 11-routing device 12 - routing device 15, path 2: routing device 10 - routing device 11 - routing device 13 - routing device 15, and path 3: routing device 10 - routing device 11 - routing device 14 - routing device 15.
  • Path 1 routing device 10-routing device 11-routing device 12 - routing device 15
  • path 2 routing device 10 - routing device 11 - routing device 13 - routing device 15
  • path 3 routing device 10 - routing device 11 - routing device 14 - routing device 15.
  • the real forwarding path is path 1 and path 3.
  • the forwarding table for guiding forwarding also includes only the relevant forwarding table entries of path 1 and path 3.
  • Each routing device in the network domain 100 has the same LSDB, and the LSDB includes adjacency information and the metric of each link, wherein the adjacency information is used to indicate the connection relationship between adjacent routing devices, for example: routing device 10
  • the A interface is connected to the A interface of the routing device 11.
  • the metric of each link is used to reflect the parameters of the link.
  • the metric of the link 1 from the routing device 10 to the routing device 11 is the link cost x1 of the link 1.
  • the LSDB corresponding to the network domain 100 can be referred to as shown in Table 1 below:
  • any one or more routing devices in the network domain 100 send the LSDB shown in Table 1 to the management device 50, and the management device 50 determines, based on the adjacency information in the LSDB, as shown in FIG. 1 .
  • Network topology then, based on the network topology and the metric in the LSDB, the management device 50 calculates an equivalent path through the SPF algorithm, and the obtained restoration path includes path 1 , path 2 and path 3 . It can be seen that the restoration path obtained by the path restoration method is inconsistent with the real forwarding path, which affects the efficiency and accuracy of troubleshooting in the network domain 100 .
  • the process of restoring the restoration path from the first routing device to the second routing device may include: the first routing device obtains and sends aggregation information to the management device, the aggregation information It includes the identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing device to send packets to the second routing device; in this way, the management device can be based on The aggregation information and the adjacency information in the LSDB corresponding to the network domain determine the restoration path from the first routing device to the second routing device.
  • each routing device aggregates the routing information from the routing device to other routing devices in the network domain to obtain aggregation information, and reports the aggregation information to the management device as the data basis for the management device to restore the path.
  • the configuration of each routing device has been considered in the process of routing, so the routing information based on the path restoration process conforms to the configuration of each routing device, so that the aggregated aggregated information also conforms to the configuration of each routing device, so that the restored path obtained is consistent with the actual configuration of each routing device. Completely consistent forwarding paths are possible, providing a reliable basis for fast and accurate troubleshooting in the network domain.
  • each routing device obtains the aggregation information from the routing device to other routing devices.
  • the aggregation information 1 of the routing device 10 can be shown in Table 2 below:
  • the ID of the destination routing device Outbound interface ID 11 A 12 A 13 A 14 A 15 A
  • each row in the aggregation information 1 is used to indicate the outbound interface of the routing device 10 when the packet is sent from the routing device 10 to the identified routing device; for example, the aggregation information in the third row is used to indicate that the slave routing device 10 When the packet is sent to the routing device 12, it passes through the outgoing interface A of the routing device 10.
  • the aggregation information 2 of the routing device 11 may be shown in Table 3 below:
  • the aggregation information 3 of the routing device 12 may be shown in Table 4 below:
  • the aggregation information 4 of the routing device 13 may be shown in Table 5 below:
  • the ID of the destination routing device Outbound interface ID 10 A 11 A 12 A 14 A 15 B
  • the aggregation information 5 of the routing device 14 may be shown in Table 6 below:
  • the ID of the destination routing device Outbound interface ID 10 A 11 A 12 A 13 A 15 B
  • the aggregation information 6 of the routing device 15 can be shown in Table 7 below:
  • the aggregation information can also carry the Internet protocol of the incoming interface of the routing device identified when the local routing device sends the packet to the identified destination routing device to receive the packet.
  • (English: Internet Protocol, IP for short) address take the aggregation information 1 of the routing device 10 as an example, the aggregation information can also be shown in Table 8 below, and the aggregation information of other routing devices is also similar.
  • the ID of the destination routing device Outbound interface ID IP address of the inbound interface of the destination routing device 11 A IP address 1 12 A IP address 1 13 A IP address 1 14 A IP address 1 15 A IP address 1
  • the management device 50 can obtain a restoration path between each routing device, wherein the obtained restoration path includes the path from the routing device 10 to the routing device 15. There are two restoration paths, namely path 1 and path 3.
  • the process of restoring the path 1 and the path 2 by the management device 50 may include, for example:
  • the management device 50 determines, based on Table 2, that the destination routing device 15 corresponds to the outbound interface A of the routing device 10, and determines that the interface A of the routing device 10 and the interface A of the routing device 11 are connected based on Table 1, so as to determine that the restoration path includes "routing device 10". 10-routing device 11";
  • the management device 50 determines, based on Table 3, that the destination routing device 15 corresponds to the outbound interfaces B and D of the routing device 11, and determines, based on Table 1, that the interface B of the routing device 11 is connected to the interface A of the routing device 12, and the interface D of the routing device 11 is connected to the interface A of the routing device 12.
  • Interface A of the routing device 14 is connected, thereby determining that the restoration path includes "routing device 10-routing device 11-routing device 12" and "routing device 10-routing device 11-routing device 14";
  • the management device 50 determines, based on Table 4, that the destination routing device 15 corresponds to the outbound interface B of the routing device 12, and determines that the interface B of the routing device 12 is connected to the interface A of the routing device 15 based on Table 1, thereby determining that the restoration path includes "routing device 15". 10-routing device 11-routing device 12-routing device 15";
  • the management device 50 determines, based on Table 6, that the destination routing device 15 corresponds to the outbound interface B of the routing device 14, and determines that the interface B of the routing device 14 and the interface C of the routing device 15 are connected based on Table 1, so as to determine that the restoration path includes "routing device 14". 10-routing device 11-routing device 14-routing device 15".
  • the management device 50 restores the path 1 and the path 3 shown in FIG. 1 , which are consistent with the actual forwarding path of the packet.
  • routing device refers to a network device with a packet forwarding function, such as a router or a switch.
  • a management device refers to a device with a path restoration function, such as a controller, server, or routing device.
  • FIG. 2 is a signaling flowchart of a path restoration method 100 in an embodiment of the present application.
  • the method 100 is applied in the first network domain, and the embodiment of the present application is introduced by the interaction between the source node of the restoration path and the management device.
  • the method 100 may be applied in the network domain 100 shown in FIG. 1 .
  • the method 100 may be to restore the path between the routing device 10 and the routing device 15 , where the routing device 10 may correspond to the method 100
  • the first routing device in , the routing device 15 corresponds to the second routing device in the method 100
  • the management device 50 corresponds to the management device in the method 100 .
  • the method 100 only involves the restoration of paths within a network domain. For restoration paths involving multiple network domains, please refer to the related description of the method 200 below.
  • the method 100 may, for example, include the following S101 to S104:
  • a first routing device obtains first aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, where the at least one outbound interface of the first routing device is used for the first routing device.
  • the routing device sends the packet to the second routing device.
  • the process of determining the real forwarding path by the first routing device may include: S21, using other routing devices in the first network domain except the first routing device as destination routing devices, calculating the distance between the first routing device and each routing device S22, obtain the routing table on the first routing device based on the shortest path and the IP prefix corresponding to the destination routing device; S23, send the routing table to the routing management (English: Router Management, referred to as: RM) module, RM The module determines a forwarding table based on the routing table; S24, the first routing device forwards the packet to each routing device according to the forwarding table.
  • RM Router Management
  • the shortest path that conforms to the configuration can be selected from the shortest paths based on the configuration such as maximum load-balancing, and then the routing table can be generated according to the selected shortest path. Then, the routing table can be generated based on the routing table in S23 without considering the routing. Device configuration.
  • the generating process of the forwarding table entry corresponding to the routing device 15 in the forwarding table on the routing device 10 may include: the routing device 10 is based on the shortest path tree (English: Shortest Path Tree, referred to as shortest path tree).
  • SPT SPT
  • the published entry is the same as the routing entry corresponding to the routing device 15 in the routing table 1 generated above.
  • the first routing device saves the intermediate result (that is, the routing table calculated based on the SPT algorithm and combined with the configuration of the routing device) in the process of generating the forwarding table, then the first aggregation result is obtained in S101, which may be specifically It means: the first routing device obtains the first aggregation information from the SPT calculation result stored locally. In this way, there is no need for the first routing device to perform additional processing, which can effectively improve the efficiency with which the first routing device obtains the first aggregation information.
  • a routing table can be generated directly based on the calculated shortest path, regardless of the configuration of the routing device.
  • the shortest path that matches the configuration is selected from the routing table based on the configuration such as maximum load-balancing, and then The forwarding table is generated according to the shortest path selected in the routing table.
  • the process of generating a forwarding table entry corresponding to the routing device 15 in the forwarding table on the routing device 10 may include: Shortest path, path 1, path 2 and path 3 are obtained, based on IP prefix 1 corresponding to path 1 and routing device 15, IP prefix 2 corresponding to path 2 and routing device 15, and IP prefix 3 corresponding to path 3 and routing device 15 , obtain the routing table 2 on the routing device 10; send the routing table 2 to the RM module 101, and the RM module 101 is based on the routing table 2, combined with the maximum load-balancing of each routing device on path 1 to path 3, from 3 In the shortest path, select the shortest path that conforms to maximum load-balancing: path 1 and path 3, so as to filter the routing table entries corresponding to path 1 and path 3 from routing table 2, and determine the routing based on the routing table entries corresponding to path 1 and path 3. Publication 1, the number of forwarding table entries corresponding to the routing device 15 in the forwarding table 1 may be different from the number of routing table entries corresponding to the routing
  • S101 may specifically be that the first routing device obtains the first aggregation information based on the forwarding table. For example, the first routing device determines the outbound interface identifier corresponding to the Internet Protocol IP prefix of the second routing device in the forwarding table, and determines the determined outbound interface identifier corresponding to the IP prefix of the second routing device as the first aggregation At least one outgoing interface identifier of the first routing device in the information, so that the first aggregation information including at least the identifier of the second routing device and the at least one outgoing interface identifier on the first routing device is obtained. In this way, the first aggregation information is obtained by aggregating the next hop information of the forwarding table entries of the IP prefixes belonging to the destination routing device in the forwarding table, which provides a reliable data basis for path restoration.
  • first routing device and the second routing device may be any two different routing devices in the same network domain. Forwarding paths for accurate restoration.
  • restoring the real forwarding path between the first routing device and the second routing device is used as an example for description.
  • the second routing device is the destination routing device of the path to be restored, and the first routing device may be the same as the second routing device. Any routing device directly or indirectly connected to the device.
  • the management device only needs to restore the restoration path from the first routing device to the second routing device based on the first aggregation information and the first aggregation information reported by the first routing device.
  • the LSDB corresponding to this network domain.
  • the management device needs to restore the restoration path from the first routing device to the second routing device based on the first aggregation information reported by the first routing device , the LSDB corresponding to the network domain and the aggregation information reported by other routing devices in the network domain. For details, refer to the relevant description of S104 below.
  • the first aggregation information may be the aggregation information 1 shown in Table 2; the first aggregation information may also be the aggregation information 1 shown in Table 2.
  • the routing device 11 When the routing device 11 sends the packet, it goes through the outbound interface A of the routing device 10; for another example, if the second routing device is the routing device 15, the first aggregation information may be the sixth line in the aggregation information 1, and the first aggregation information The information is used to indicate that a packet is sent from the routing device 10 to the routing device 15 through the outbound interface A of the routing device 10 .
  • the first routing device sends the first aggregation information to the management device.
  • the management device receives the first aggregation information from the first routing device.
  • each routing device may periodically send the obtained aggregation information to the management device, and the period for sending the aggregation information may be pre-configured by the routing device, or may be uniformly configured by the management device for all routing devices.
  • S102 and S103 may be, for example: the first routing device periodically sends the first aggregation information to the management device; the management device receives the first aggregation information sent by the first routing device.
  • each routing device may send the obtained aggregation information to the management device based on a trigger instruction, and the trigger instruction may be generated by the routing device based on its own event, for example, the route on the routing device changes;
  • the instruction may also be sent by the management device or other routing device to the routing device.
  • S102 and S103 may be, for example: the first routing device sends the first aggregation information to the management device based on the trigger instruction; the management device receives the first aggregation information sent by the first routing device.
  • the management device may execute the following S104 to restore the real forwarding path in the network domain.
  • the specific path that needs to be restored can be determined based on the actual network conditions. For example, if the management device determines that the network domain is abnormal, but cannot determine the smaller scope that causes the abnormality, the management device can restore all real forwarding paths in the network domain.
  • the management device determines that the network domain is abnormal and determines that the service performance provided by the border routing device 15 in the network domain is abnormal, then the management device can use the routing device 15 as the destination routing device to restore all routing devices from the network domain The path to the routing device 15 is sufficient. In this way, this embodiment can restore the required path in a targeted and accurate manner, which provides convenience for troubleshooting and locating faults.
  • the management device determines a first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first LSDB, where the first LSDB is where the first routing device and the second routing device are located The LSDB corresponding to the first network domain.
  • S104 may include: the management device obtains, from the first aggregation information, the data of the second routing device that matches the destination routing device (ie, the second routing device). identifier, determine the outgoing interface identifier of the first routing device corresponding to the identifier of the second routing device, thereby determining the outgoing interface corresponding to the outgoing interface identifier of the first routing device; then, the management device obtains the information from the adjacency relationship information of the first LSDB. , to learn that the determined outbound interface of the first routing device is connected to the inbound interface of the second routing device, so that the first restoration path from the first routing device to the second routing device is determined.
  • S104 may include: the management device 50 converges from the aggregation shown in Table 2 In the second row of information 1, it is determined that the packet is forwarded from the outbound interface A of the routing device 10 to the routing device 11; then, the management device 50 determines the interface A of the routing device 10 and the routing device 11 from the second row of the LSDB in Table 1. Therefore, the restoration path 1 from the A interface of the routing device 10 to the A interface of the routing device 11 is obtained.
  • the method 100 may further include : The management device receives the aggregation information sent by each routing device included between the first routing device and the second routing device. Then, the data base for determining the restoration path in S104 also needs to include aggregation information sent by other routing devices.
  • the method 100 may further include: S31, the fourth routing device obtains third aggregation information, where the third aggregation information includes the second The identifier of the routing device and the identifier of at least one outgoing interface of the fourth routing device, the at least one outgoing interface of the fourth routing device is used for the fourth routing device to send the packet to the second routing device; S32, the fourth routing device sends the message to the management device third aggregation information; S33, the management device receives the third aggregation information sent by the fourth routing device. It should be noted that, for the specific implementation manners of S31 to S33 and the effects achieved, reference may be made to the relevant descriptions of S101 to S103 above.
  • S104 may, for example, include: the management device determines the first restoration path based on the first aggregation information, the third aggregation information and the adjacency relationship information in the first LSDB, and the first restoration path passes through the fourth routing device.
  • S104 may include: S41, the management device may determine the first path from the first routing device to the fourth routing device based on the first aggregation information and the adjacency information in the first LSDB, and the adjacency in the first LSDB The relationship information is used to indicate that at least one outbound interface of the first routing device is connected to the inbound interface of the fourth routing device; S42, the management device determines, based on the third aggregation information and the adjacency relationship information in the first LSDB, the connection between the fourth routing device and the fourth routing device.
  • the second path of the second routing device, the adjacency relationship information in the first LSDB is further used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; S43, the management device is based on the first A path and a second path determine the first restoration path. For example: Assuming that the first routing device, the second routing device, the fourth routing device and the management device are respectively the routing device 11, the routing device 15, the routing device 12 and the management device 50 in the network domain 100, then S104 may include: management From the sixth row of the aggregation information 2 shown in Table 3, the device 50 determines that the packet is forwarded from the outbound interface B of the routing device 11 to the routing device 15.
  • the management device 50 determines the route from the third row of the LSDB in Table 1.
  • the interface B of the device 11 is connected to the interface A of the routing device 12, so the path b from the B interface of the routing device 11 to the A interface of the routing device 12 is obtained; , determine that the packet is forwarded from the outbound interface B of the routing device 12 to the routing device 15, and then, the management device 50 determines the connection between the interface B of the routing device 12 and the interface A of the routing device 15 from the sixth row of the LSDB in Table 1, so , to obtain the path d from the B interface of the routing device 12 to the A interface of the routing device 15; thus, the management device 50 can obtain the restoration path 1 from the routing device 11 to the routing device 15 through the routing device 12 according to the path b and the path d.
  • the generated first restoration path may be multiple equal-cost paths.
  • S104 may include: the management device 50 is shown in Table 2 In the sixth row of the aggregation information 1, it is determined that the packet is forwarded from the outbound interface A of the routing device 10 to the routing device 15. Next, the management device 50 determines the interface A of the routing device 10 and the route from the first row of the LSDB in Table 1.
  • the interface A of the device 11 is connected, so the path a from the A interface of the routing device 10 to the A interface of the routing device 11 is obtained; the management device 50 determines from the sixth row of the aggregation information 2 shown in Table 3 that the packet is sent from the routing device The outgoing interfaces B and D of 11 are forwarded to the routing device 15. Next, the management device 50 determines the connection between the interface B of the routing device 11 and the interface A of the routing device 12 from the third and fifth rows of the LSDB in Table 1, and the routing device.
  • the interface D of 11 is connected with the interface A of the routing device 14, so the path b from the B interface of the routing device 11 to the A interface of the routing device 12 and the path c from the D interface of the routing device 11 to the A interface of the routing device 14 are obtained; From the sixth row of the aggregation information 3 shown in Table 4, the management device 50 determines that the packet is forwarded from the outbound interface B of the routing device 12 to the routing device 15. Next, the management device 50 determines from the sixth row of the LSDB in Table 1.
  • the interface B of the routing device 12 is connected to the interface A of the routing device 15, so the path d from the B interface of the routing device 12 to the A interface of the routing device 15 is obtained; OK, confirm that the packet is forwarded from the outbound interface B of the routing device 14 to the routing device 15, then, the management device 50 determines the connection between the interface B of the routing device 14 and the interface C of the routing device 15 from the eighth row of the LSDB in Table 1, Therefore, the path e from the B interface of the routing device 14 to the C interface of the routing device 15 is obtained; in this way, the management device 50 can obtain the restoration path 1 according to the path a, the path b and the path d, and obtain the restoration path 1 according to the path a, the path c and the path e.
  • the restoration path 2, both of which are restoration paths from the routing device 10 to the routing device 15, are consistent with the real forwarding path between the routing device 10 and the routing device 15.
  • the first routing device obtains and sends the first aggregation information to the management device, where the first aggregation information includes the first aggregation information.
  • the identifier of the second routing device and the identifier of at least one outgoing interface of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing device to send packets to the second routing device; in this way, the management device can be based on the first routing device.
  • the aggregation information and the adjacency information in the first LSDB corresponding to the network domain determine the restoration path from the first routing device to the second routing device.
  • each routing device aggregates the aggregation information of the routing device to other routing devices in the network domain, and reports the aggregation information to the management device. Since the configuration of each routing device has been considered in the process of actually forwarding the packet, therefore, The aggregation information based on the path restoration process has also conformed to the configuration of each routing device. The path restoration based on the aggregation information can make the obtained restoration path and the real forwarding path exactly the same, which provides a reliable solution for fast and accurate troubleshooting in the network domain. in accordance with.
  • the embodiment of the present application also provides a method 200 for restoring a path.
  • the method 200 The embodiments of the present application are introduced by applying to the first network domain and the second network domain to restore the interaction between the source node of the path and the management device.
  • the method 200 can be applied to, for example, the network 10 shown in FIG. 3 , and the network 10 includes the network domain 200 in addition to the network domain 100 shown in FIG. 1 .
  • the routing device 15 is a border routing device of the network domain 100 and the network domain 200 .
  • Network domain 200 includes routing device 17 and routing device 18 .
  • the network domain 100 and the network domain 200 are both responsible for the path restoration by the management device 50 .
  • the method 200 may be to restore the path between the routing device 10 and the routing device 18, wherein the routing device 10 may correspond to the first routing device in the method 200, and the routing device 15 may correspond to the first routing device in the method 200.
  • the method 200 may, for example, include the following S201 to S210:
  • a third routing device sends a routing message to the first routing device, where the routing message carries an identifier of the third routing device.
  • the first routing device performs aggregation based on the IP prefix of the destination routing device to obtain the first aggregation information.
  • the destination routing device ie, the third routing device
  • the first routing device cannot obtain aggregation information based on the IP prefix of the destination routing device.
  • the third routing device can configure the identifier of the third routing device, and flood the identifier of the third routing device to other network domains through routing messages.
  • the identifier of the third routing device is used to uniquely identify the third routing device, for example, it may be a group identifier (English: group id) of the third routing device.
  • the routing message sent by the third routing device to the first routing device may specifically be a Link-State Advertisement (English: Link-State Advertisement, LSA for short) packet, and the LSA packet can be extended to The LSA packet carries the identifier of the third routing device.
  • the identifier of the third routing device may be carried through the extended length type value (English: Type Length Value, TLV for short) field in the LSA message.
  • the third routing device can also send the identifier of the third routing device to the management device, so as to facilitate management.
  • the device knows that the third routing device corresponds to the identifier of the third routing device, and the identifier of the third routing device is used to uniquely identify the third routing device.
  • the first routing device acquires first aggregation information and second aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, and at least one of the first routing device's identifiers One outgoing interface is used for the first routing device to send a packet to the second routing device, and the second aggregation information includes the identifier of the second routing device and the identifier of the third routing device.
  • the manner in which the first routing device obtains the first aggregation information and the content of the first aggregation information can be referred to the relevant description of S101 in the foregoing method 100, and details are not repeated here.
  • the boundary routing device whose destination routing device is the third routing device may also be aggregated to obtain the second aggregation information.
  • the first routing device may determine a border routing device corresponding to the identifier of the third routing device, and use the determined identifier of the border routing device and the identifier of the third routing device as the second aggregation information.
  • a border routing device ie, a second routing device
  • the processing method for determining a plurality of border routing devices to the destination routing device, and the implementation of one border routing device The method is the same and will not be repeated here.
  • the first aggregation information can refer to the above Table 2
  • the second aggregated information can participate in the third row of aggregated information 10 shown in Table 10 below:
  • the aggregation information 10 is used to indicate that the border routing device to be passed from the routing device 10 to the routing device 17 is the routing device 15 .
  • the first routing device sends the first aggregation information and the second aggregation information to the management device.
  • the management device receives the first aggregation information and the second aggregation information sent by the first routing device.
  • the first routing device may periodically send the first aggregation information and the second aggregation information to the management device, and may also send the first aggregation information and the second aggregation information to the management device based on a trigger instruction, which is not specified in this embodiment. limited.
  • the first routing device may carry the first aggregation information and the second aggregation information in two different messages and send them to the management device, or may carry the first aggregation information and the second aggregation information in one message. is sent to the management device, which is not specifically limited in this embodiment.
  • the second routing device acquires fourth aggregation information, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device, and the at least one outbound interface of the second routing device is used for The second routing device sends the packet to the third routing device.
  • the second routing device is the routing device 15 and the third routing device is the routing device 18, the interface D of the routing device 15 is connected to the interface A of the routing device 17, and the interface B of the routing device 17 is connected.
  • the fourth aggregation information can participate in the aggregation information 11 shown in the following table 11:
  • the ID of the destination routing device Outbound interface ID 17 D 18 D
  • the second routing device sends fourth aggregation information to the management device.
  • the management device receives the fourth aggregation information sent by the second routing device.
  • the second routing device may periodically send the fourth aggregation information to the management device, or may send the fourth aggregation information to the management device based on a trigger instruction, which is not specifically limited in this embodiment.
  • S202 to S204 and S205 to S207 are not limited in order.
  • S202 to S204 can be executed first and then S205 to S207, or S205 to S207 can be executed first and then S202 to S204, or they can be executed at the same time.
  • S202 to S204 and S205 to S207 are not limited in order.
  • the management device determines the first restoration path based on the first aggregation information, the second aggregation information, and the adjacency relationship information in the first LSDB.
  • S208 may specifically include: S2081, the management device determines, based on the second aggregation information, the border routing device that the path from the first routing device to the third routing device passes through as the second routing device; S2082, the management device is based on the first routing device.
  • the information and the adjacency relationship information in the first LSDB are aggregated to determine the first restoration path.
  • the first routing device is routing device 10
  • the second routing device is routing device 15
  • the third routing device is routing device 18, and the second aggregation information is shown in Table 10
  • the border routing device through which the restoration path from routing device 10 to routing device 18 passes is routing device 15 .
  • the management device determines a third restoration path from the second routing device to the third routing device based on the fourth aggregation information and the adjacency relationship information in the second LSDB corresponding to the second network domain.
  • the LSDBs in one network domain are the same, but the LSDBs in different network domains are different, and the adjacency relationship information in the LSDB is used to describe the topology of the routing device in the network domain corresponding to the LSDB.
  • the management device determines a second restoration path based on the first restoration path and the third restoration path, where the second restoration path is a path from the first routing device to the third routing device via the second routing device.
  • the management device determines the first restoration path from the first routing device to the second routing device in the first network domain, and the third restoration path from the second routing device to the third routing device in the second network domain Afterwards, the management device may splicing the first restoration path and the third restoration path to obtain a second restoration path from the first routing device to the third routing device.
  • the second restoration path can be obtained by simply splicing the first restoration path and the third restoration path determined respectively by the two network domains. For example: taking the network 10 shown in FIG. 3 as an example, the management device 50 determines that the first restoration path includes path 1 and path 3, and the third restoration path is path 4: routing device 15-routing device 17-routing device 18, then, The second restoration path includes path 14 and path 34, wherein path 14 is: routing device 10-routing device 11-routing device 12-routing device 15-routing device 17-routing device 18, and path 34 is: routing device 10-routing device Device 11 - Routing Device 14 - Routing Device 15 - Routing Device 17 - Routing Device 18.
  • the first restoration path and the third restoration path determined respectively in the two network domains can be spliced according to the preset splicing rule to obtain the second restoration path .
  • the splicing rule may be, for example: splicing the intra-domain restoration paths obtained respectively in the two network domains to obtain a plurality of candidate restoration paths, according to each routing device.
  • the configuration determines at least one shortest second restoration path from multiple candidate restoration paths, and the number of the second restoration paths is related to the configuration of each routing device, such as maximum load-balancing. For example: taking the network 20 shown in FIG.
  • the border routing devices of the network domain 300 and the network domain 400 include the routing device 21 and the routing device 22, restore the path 1 from the routing device 20 to the routing device 21, and from the routing device 20 to the routing device 21.
  • the management device may randomly select one of the paths 13 and 24 as the second restoration path.
  • the maximum load-balancing of the routing device 20 is greater than or equal to 2
  • the second restoration paths finally determined by the management device are the path 13 and the path 24.
  • the first routing device obtains and sends the first aggregation information and the second aggregation information to the management device
  • the second routing device obtains and sends the first aggregation information and the second aggregation information to the management device.
  • the routing device obtains and sends fourth aggregation information to the management device, where the first aggregation information includes an identification of the second routing device and at least one outbound interface identification of the first routing device, and the second aggregation information includes an identification of the second routing device and the first routing device.
  • the identifier of the third routing device, and the fourth aggregation information includes the identifier of the third routing device and at least one outbound interface identifier of the second routing device; in this way, the management device can be based on the first aggregation information, the second aggregation information, the fourth aggregation information information and the adjacency relationship information in the two LSDBs corresponding to the two network domains, determine the restoration path from the first routing device to the third routing device via the second routing device. In this way, each routing device aggregates the aggregation information from the routing device to other routing devices, and reports the aggregation information to the management device.
  • the path restoration process Since the configuration of each routing device has been considered in the process of actually forwarding the packet, the path restoration process
  • the aggregation information based on the network has also been in line with the configuration of each routing device. Based on the aggregation information, the path restoration across the network domain can make the obtained restoration path and the real forwarding path exactly the same, which is fast and accurate in the network domain and in the cross-network domain scenario. Troubleshooting provides a reliable basis.
  • first network domain and second network domain are both standard network domains, that is, the method 200 exemplarily describes a method for restoring a path across standard network domains.
  • the management device may also perform path restoration according to the method provided in this embodiment of the present application, which may specifically include: S51, for standard network domains In the network domain, the first restoration path is determined according to the above method 100; S52, for the non-standard network domain, the fourth restoration path is determined according to the path restoration method applicable to the non-standard network domain; S53, according to the preset splicing rule, the first restoration path is determined.
  • the first restoration path and the fourth restoration path are spliced to obtain a fifth restoration path spanning from the standard network domain to the non-standard network domain or from the non-standard network domain to the standard network domain.
  • S52 may specifically include: the management device determines a third restoration path from the second routing device to the third routing device according to a default route, where the default route is sent by the third routing device to the management device.
  • the first restoration path determined by the management device 50 in the network domain 100 includes: path 1 and path 1 3.
  • the determined third restoration path is: path 4, thereby simply splicing path 3 and path 4 to obtain the second restoration path, ie, path 34 .
  • the aggregation information sent by the routing device to the management device can be carried in any message that can be identified by the management device. Specific restrictions.
  • an embodiment of the present application further provides a first routing device 600, as shown in FIG. 6 .
  • the first routing device 600 includes: a processing unit 601 and a sending unit 602 .
  • the processing unit 601 is configured to obtain first aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing device.
  • the routing device sends the packet to the second routing device.
  • the sending unit 602 is configured to send the first aggregation information to the management device, so that the management device determines the restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first link state database LSDB , the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  • the processing unit 601 is specifically configured to: obtain the first aggregation information based on the forwarding table. For example, the processing unit 601 is specifically configured to: determine the outbound interface identifier corresponding to the IP prefix of the second routing device in the forwarding table, and determine the outbound interface identifier corresponding to the IP prefix of the second routing device as the outgoing interface identifier in the first aggregation information At least one outbound interface identifier of the first routing device.
  • the processing unit 601 is specifically configured to: obtain the first aggregation information from the locally saved shortest path tree SPT calculation result.
  • the second routing device and the third routing device belong to the second network domain
  • the processing unit 601 of the first routing device 600 is further configured to obtain second aggregation information, where the second aggregation information includes the second routing The identifier of the device and the identifier of the third routing device;
  • the sending unit 602 is further configured to send the second aggregation information to the management device, so that the management device is based on the first aggregation information, the second aggregation information, and the first LSDB corresponding to the first network domain
  • the adjacency information in the LSDB and the adjacency information in the second LSDB corresponding to the second network domain determine the restoration path from the first routing device to the third routing device via the second routing device.
  • the first routing device 600 further includes a receiving unit, which is configured to receive a routing message advertised by a third routing device before obtaining the second aggregation information, where the routing message carries the identifier of the third routing device.
  • the receiving unit may be specifically configured to: receive an LSA packet sent by a third routing device, where the LSA packet carries the identifier of the third routing device through an extended TLV field.
  • the sending unit 602 is specifically configured to: periodically send the first aggregation information to the management device.
  • the sending unit 602 is specifically configured to: send the first aggregation information to the management device based on the trigger instruction.
  • the first routing device 600 shown in FIG. 6 may be the first routing device in the example shown in FIG. 2 or FIG. 4 . Therefore, for various specific embodiments of the first routing device 600, please refer to The related introduction of the method 100 corresponding to FIG. 2 and the method 200 corresponding to FIG. 4 is not repeated in this embodiment.
  • an embodiment of the present application further provides a management device 700, as shown in FIG. 7 .
  • the management device 700 includes: a receiving unit 701 and a processing unit 702 .
  • the receiving unit 701 is configured to receive first aggregation information from a first routing device, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, and at least one outgoing interface identifier of the first routing device
  • the interface is used by the first routing device to send packets to the second routing device.
  • the processing unit 702 is configured to determine the first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first link state database LSDB, where the first LSDB is the first routing device and the second routing device.
  • the LSDB corresponding to the first network domain where the second routing device is located.
  • the receiving unit 701 is further configured to receive third aggregation information from the fourth routing device, where the third aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the fourth routing device, and the fourth routing device At least one outgoing interface of the device is used by the fourth routing device to send packets to the second routing device; then, the processing unit 702 may be specifically configured to: based on the first aggregation information, the third aggregation information and the adjacency relationship information in the first LSDB , determine the first restoration path, and the first restoration path passes through the fourth routing device.
  • the processing unit 702 is specifically configured to: determine the first path from the first routing device to the fourth routing device based on the first aggregation information and the adjacency information in the first LSDB, and the first path in the first LSDB
  • the adjacency relationship information is used to indicate that at least one outgoing interface of the first routing device is connected to the incoming interface of the fourth routing device; based on the third aggregation information and the adjacency relationship information in the first LSDB, determine the route from the fourth routing device to the second routing device.
  • the adjacency information in the first LSDB is also used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; thus, based on the first path and the second path, determine the first path.
  • a restore path For the second path of the device, the adjacency information in the first LSDB is also used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; thus, based on the first path and the second path, determine the first path.
  • a restore path is also used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; thus, based on the first path and the second path, determine the first path.
  • the second routing device and the third routing device belong to the second network domain
  • the processing unit 702 is further configured to determine a second restoration path from the first routing device to the third routing device, where the second restoration path is the first restoration path.
  • the receiving unit 701 is further configured to receive the second aggregation information sent by the first routing device, where the second aggregation information includes the identifier of the second routing device and the identifier of the third routing device; then, the processing unit 702 can specifically use In: determining a first restoration path based on the first aggregation information, the second aggregation information and the adjacency relationship information in the first LSDB.
  • the receiving unit 701 is further configured to receive fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device. At least one outgoing interface is used for the second routing device to send packets to the third routing device; then, the processing unit 702 may be specifically configured to: according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain, A third restoration path from the second routing device to the third routing device is determined; thus, based on the first restoration path and the third restoration path, a second restoration path is determined.
  • the receiving unit 701 is further configured to receive the identifier of the third routing device sent by the third routing device.
  • processing unit 702 may be specifically configured to: determine the third restoration path from the second routing device to the third routing device according to the default route; thus, determine the second restoration path based on the first restoration path and the third restoration path restore path.
  • the receiving unit 701 is further configured to receive the default route sent by the third routing device.
  • the management device 700 shown in FIG. 7 may be the management device in the example shown in FIG. 2 or FIG. 4 . Therefore, for various specific embodiments of the management device 700, reference may be made to the method 100 corresponding to FIG. 2 . As well as the related introduction of the method 200 corresponding to FIG. 4 , details are not repeated in this embodiment.
  • an embodiment of the present application further provides a third routing device 800, as shown in FIG. 8 .
  • the third routing device 800 includes: a sending unit 801 .
  • the sending unit 801 is configured to send a routing message to the first routing device, the first routing device belongs to the first network domain, the third routing device belongs to the second network domain, and the routing message carries the identifier of the third routing device, so that the first routing device belongs to the first network domain, and the third routing device belongs to the second network domain.
  • a routing device obtains and sends second aggregation information to the management device based on the identifier of the third routing device, where the second aggregation information includes the identifier of the third routing device and the identifier of the second routing device, and the second routing device is the first network domain and the second routing device.
  • a border device of the second network domain is configured to send a routing message to the first routing device, the first routing device belongs to the first network domain, the third routing device belongs to the second network domain, and the routing message carries the identifier of the third routing device, so that the first routing device belongs to the first network domain, and the third routing device belongs to the second network domain.
  • a routing device obtains
  • the sending unit 801 is specifically configured to send an LSA packet to the first routing device, where the LSA packet carries the identifier of the third routing device through an extended TLV field.
  • the sending unit 801 is further configured to send the identifier of the third routing device to the management device.
  • the third routing device 800 shown in FIG. 8 may be the third routing device in the example shown in FIG. 4 . Therefore, various specific embodiments of the third routing device 800 can be referred to in FIG. 4 . The related introduction of the method 200 is not repeated in this embodiment.
  • the first routing device 900 may be any node other than the destination routing device in any of the foregoing embodiments, for example, may be the routing device 10, the routing device 11, etc. in the embodiment shown in FIG. 1, or may be the one in FIG. 2
  • the first routing device 900 includes at least one processor 901 , a bus system 902 , a memory 903 and at least one transceiver 904 .
  • the first routing device 900 is a device with a hardware structure, and can be used to implement the functional modules in the first routing device 600 shown in FIG. 6 .
  • the processing unit 601 in the first routing device 600 shown in FIG. 6 can be implemented by calling the code in the memory 903 by the at least one processor 901, and the first routing device 600 shown in FIG.
  • the sending unit 602 in can be realized by the transceiver 904 .
  • the first routing device 900 may also be used to implement the function of the first routing device in any of the foregoing embodiments.
  • processor 901 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the bus system 902 described above may include a path to transfer information between the above described components.
  • the above transceiver 904 is used to communicate with other devices or communication networks.
  • the above-mentioned memory 903 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Types of dynamic storage devices which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this.
  • the memory can exist independently and be connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the memory 903 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 901 .
  • the processor 901 is used to execute the application program code stored in the memory 903, so as to realize the functions in the method of this patent.
  • the processor 901 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 9 .
  • the first routing device 900 may include multiple processors, for example, the processor 901 and the processor 907 in FIG. 9 .
  • Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • an embodiment of the present application provides a management device 1000 .
  • the management device 1000 may be the management device in any of the foregoing embodiments, for example, may be the management device 50 in the embodiment shown in FIG. 1 or FIG. 3 , or may be the management device 50 in the embodiment shown in FIG. 2 or FIG. 4 .
  • the management device 1000 includes at least one processor 1001 , a bus system 1002 , a memory 1003 and at least one transceiver 1004 .
  • the management device 1000 is a device with a hardware structure, and can be used to implement the functional modules in the management device 700 described in FIG. 7 .
  • the processing unit 702 in the management device 700 shown in FIG. 7 can be implemented by calling the code in the memory 1003 by the at least one processor 1001, and the receiving unit in the management device 700 shown in FIG. 7 can be implemented 701 can be implemented by the transceiver 1004 .
  • the management device 1000 may also be used to implement the functions of the management device in any of the foregoing embodiments.
  • processor 1001 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the bus system 1002 described above may include a path to transfer information between the above described components.
  • the above transceiver 1004 is used to communicate with other devices or communication networks.
  • the above-mentioned memory 1003 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Types of dynamic storage devices which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this.
  • the memory can exist independently and be connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the memory 1003 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 1001 .
  • the processor 1001 is configured to execute the application program code stored in the memory 1003, thereby realizing the functions in the method of the present patent.
  • the processor 1001 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 10 .
  • the management device 1000 may include multiple processors, such as the processor 1001 and the processor 1007 in FIG. 10 .
  • processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • an embodiment of the present application provides a third routing device 1100 .
  • the third routing device 1100 may be any node in any of the foregoing embodiments, for example, may be the routing device 17, the routing device 18, etc. in the embodiment shown in FIG. 3, or may be the embodiment shown in FIG. 4 . the third routing device.
  • the third routing device 1100 includes at least one processor 1101 , a bus system 1102 , a memory 1103 and at least one transceiver 1104 .
  • the third routing device 1100 is a device with a hardware structure, and can be used to implement the functional modules in the third routing device 800 shown in FIG. 8 .
  • the sending unit 801 in the third routing device 800 shown in FIG. 8 can be implemented by the transceiver 1104 .
  • the third routing device 1100 may also be used to implement the functions of the third routing device in any of the foregoing embodiments.
  • processor 1101 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the bus system 1102 described above may include a path to transfer information between the above described components.
  • the above transceiver 1104 is used to communicate with other devices or communication networks.
  • the above-mentioned memory 1103 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Types of dynamic storage devices which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this.
  • the memory can exist independently and be connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the memory 1103 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 1101 .
  • the processor 1101 is used for executing the application program code stored in the memory 1103, so as to realize the functions in the method of the present patent.
  • the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 11 .
  • the third routing device 1100 may include multiple processors, for example, the processor 1101 and the processor 1107 in FIG. 11 .
  • Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • an embodiment of the present application provides a network system 1200 , where the network system 1200 includes: a first routing device 1201 , a management device 1202 , and a third routing device 1203 .
  • the first routing device 1201 may specifically be the first routing device 600 shown in FIG. 6 or the first routing device 900 shown in FIG. 9 ;
  • the management device 1202 may specifically be the management device 700 shown in FIG. 7 or the first routing device 900 shown in FIG. 10 .
  • the third routing device 1203 may specifically be the third device 800 shown in FIG. 8 or the third routing device 1100 shown in FIG. 11 .
  • the first routing device 1201 may be the first routing device in the embodiment shown in FIG. 4
  • the third routing device 1202 may be the third routing device in the embodiment shown in FIG. 4
  • the management device may be FIG. 4 Management device in the illustrated embodiment.
  • an embodiment of the present application also provides a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute the implementation shown in FIG. 2 or FIG. 4 above. The method in any of the implementations in the example.
  • the embodiments of the present application also provide a computer program product, which, when running on a computer, causes the computer to execute any one of the implementation manners of the foregoing method 100 , or causes the computer to execute any one of the foregoing methods 200 . method of implementation.
  • determining B based on A does not mean that B is only determined according to A, and B can also be determined according to A and/or other information.

Abstract

Disclosed are a path restoring method and a device. The method comprises: a first routing device obtains first aggregated information, and sends the obtained first aggregated information to a management device, the first aggregated information comprising an identifier of a second routing device and an identifier of at least one outbound interface of the first routing device, and the at least one outbound interface of the first routing device being used for the first routing device to send a packet to the second routing device, and thus the management device can determine a restoration path from the first routing device to the second routing device on the basis of the first aggregated information and adjacency information in a first LSDB. In this way, each routing device aggregates routing information from the routing device to other routing devices in a network domain to obtain aggregated information, and reports the obtained aggregated information to the management device as the data basis for the management device to restore the path, which can ensure that the restoration path obtained by the management device is completely consistent with the real forwarding path, and provides a reliable basis for fast and accurate troubleshooting in the network domain.

Description

一种路径还原的方法及设备A method and device for path restoration
本申请要求于2020年08月14日提交中国国家知识产权局、申请号为202010820620.5、申请名称为“一种路径还原的方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010820620.5 and the application title "A method and apparatus for path restoration", which was submitted to the State Intellectual Property Office of China on August 14, 2020, the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及通信技术领域,特别是涉及一种路径还原的方法及设备。The present application relates to the field of communication technologies, and in particular, to a method and device for path restoration.
背景技术Background technique
在网络中,通过路由设备之间转发报文,为用户提供相应的业务服务。当某个业务或业务的某个性能出现异常,为了排查故障,通常通过还原报文的真实转发路径,基于还原出的路径进行故障排查,这样,能够快速有效的确定故障位置。In the network, packets are forwarded between routing devices to provide users with corresponding business services. When a service or a certain performance of a service is abnormal, in order to troubleshoot the fault, the actual forwarding path of the packet is usually restored, and troubleshooting is performed based on the restored path. In this way, the fault location can be quickly and effectively determined.
目前,通常由管理设备基于链路状态数据库(英文:Link State Data Base,简称:LSDB)实现路径的还原,具体过程包括:管理设备获得LSDB后,先基于LSDB中包括的邻接关系信息确定网络拓扑,再基于LSDB中各链路的度量值(英文:metric)和所确定的网络拓扑,按照最短路径优先(英文:Shortest Path First,简称:SPF)算法计算出还原路径。其中,LSDB中包括的邻接关系信息用于指示路由设备的出接口和该路由设备的邻居的入接口的连接关系。该路径还原方式由于未考虑各路由设备上的配置,例如:未考虑路由设备上设定的最大负载分担路径数量(英文:maximum load-balancing),导致计算得到的还原路径和网络中的真实转发路径不一致,从而影响故障排查的效率和准确性。At present, the management device usually implements path restoration based on the Link State Data Base (English: Link State Data Base, abbreviated as: LSDB). The specific process includes: after the management device obtains the LSDB, it first determines the network topology based on the adjacency information included in the LSDB. , and then based on the metric value (English: metric) of each link in the LSDB and the determined network topology, the restoration path is calculated according to the Shortest Path First (English: Shortest Path First, SPF for short) algorithm. The adjacency relationship information included in the LSDB is used to indicate the connection relationship between the outgoing interface of the routing device and the incoming interface of the neighbor of the routing device. This path restoration method does not consider the configuration on each routing device, for example, does not consider the maximum number of load-balancing paths (English: maximum load-balancing) set on the routing device, resulting in the calculated restoration path and the actual forwarding in the network. The paths are inconsistent, which affects the efficiency and accuracy of troubleshooting.
基于此,亟待提供一种路径还原的方法,能够准确的获得和真实转发路径一致的还原路径。Based on this, there is an urgent need to provide a path restoration method, which can accurately obtain a restoration path consistent with the real forwarding path.
发明内容SUMMARY OF THE INVENTION
基于此,本申请实施例提供了一种路径还原的方法及设备,由管理设备基于各路由设备上报的汇聚信息,结合LSDB中的邻接关系信息,还原出和真实转发路径一致的还原路径,使得对网络中的故障排查能够更加快速和准确。Based on this, the embodiments of the present application provide a method and device for path restoration, in which the management device restores a restoration path consistent with the real forwarding path based on the aggregation information reported by each routing device and in combination with the adjacency information in the LSDB, so that Troubleshooting in the network can be faster and more accurate.
第一方面,本申请实施例提供了一种路径还原的方法,路径还原的过程可以包括:第一路由设备获得第一汇聚信息,该第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,该第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文;接着,第一路由设备将第一汇聚信息发送给管理设备,管理设备即可基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的还原路径,其中,该第一LSDB是第一路由设备和第二路由设备所在的第一网络域对应的LSDB。这样,各路由设备汇聚该路由设备到网络域的其他路由设备的路由信息以得到汇聚信息,并将汇聚信息上报给管理设备,作为管理设备进行路径还原的数据基础,由于对报文进行真实转发的过程中已经考虑了各路由设备的配置,所以,路径还原过程中依据的路由信息符合各路由设备的配置,从而汇聚得到的汇聚信息也符合各路由设备的配置,使得获得的 还原路径和真实转发路径完全一致成为可能,为网络域中快速和准确的故障排查提供了可靠的依据。In a first aspect, an embodiment of the present application provides a method for path restoration. The path restoration process may include: a first routing device obtains first aggregation information, where the first aggregation information includes an identifier of a second routing device and a first route At least one outgoing interface identifier of the device, the at least one outgoing interface of the first routing device is used for the first routing device to send packets to the second routing device; then, the first routing device sends the first aggregation information to the management device, and manages the The device can determine the restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first LSDB, where the first LSDB is where the first routing device and the second routing device are located. The LSDB corresponding to the first network domain. In this way, each routing device aggregates the routing information from the routing device to other routing devices in the network domain to obtain aggregation information, and reports the aggregation information to the management device as the data basis for the management device to restore the path. The configuration of each routing device has been considered in the process of the restoration process. Therefore, the routing information based on the path restoration process conforms to the configuration of each routing device, so that the aggregation information obtained by aggregation also conforms to the configuration of each routing device, so that the obtained restoration path is consistent with the actual configuration of each routing device. Completely consistent forwarding paths are possible, providing a reliable basis for fast and accurate troubleshooting in the network domain.
第一LSDB中的邻接关系信息用于描述第一网络域的拓扑。同一个网络域中的LSDB相同,不同的网络域对应不同的LSDB。The adjacency relationship information in the first LSDB is used to describe the topology of the first network domain. The LSDBs in the same network domain are the same, and different network domains correspond to different LSDBs.
作为一个示例,第一路由设备获得第一汇聚信息具体可以包括:第一路由设备基于转发表获得第一汇聚信息。具体实现时,第一路由设备基于转发表获得第一汇聚信息例如可以包括:第一路由设备在转发表中确定第二路由设备的互联网协议(英文:Internet Protocol,简称:IP)前缀对应的出接口标识;从而,将第二路由设备的IP前缀对应的出接口标识确定为第一汇聚信息中的第一路由设备的至少一个出接口标识。这样,通过对转发表中属于目的路由设备的IP前缀的转发表项的下一跳信息的汇聚,得到第一汇聚信息,为路径还原提供了可靠的数据基础。As an example, the obtaining of the first aggregation information by the first routing device may specifically include: the first routing device obtains the first aggregation information based on the forwarding table. During specific implementation, obtaining the first aggregation information based on the forwarding table by the first routing device may include, for example: the first routing device determines in the forwarding table the outgoing address corresponding to the Internet Protocol (English: Internet Protocol, IP for short) prefix of the second routing device in the forwarding table. The interface identifier; thus, the outgoing interface identifier corresponding to the IP prefix of the second routing device is determined as at least one outgoing interface identifier of the first routing device in the first aggregation information. In this way, the first aggregation information is obtained by aggregating the next hop information of the forwarding table entries of the IP prefixes belonging to the destination routing device in the forwarding table, which provides a reliable data basis for path restoration.
作为另一个示例,第一路由设备获得第一汇聚信息具体可以包括:第一路由设备从本地保存的最短路径树(英文:Shortest Path Tree,简称:SPT)计算结果中,获得第一汇聚信息。应理解,第一路由设备确定真实转发路径的过程可以包括:第一步,将第一网络域中除第一路由设备以外的其他路由设备均作为目的路由设备,计算第一路由设备到各路由设备的最短路径;第二步,基于最短路径和目的路由设备对应的IP前缀,得到第一路由设备上的路由表;第三步,将路由表发送给路由管理(英文:Router Management,简称:RM)模块,RM模块基于路由表确定转发表;第四步,第一路由设备按照转发表向各路由设备转发报文。该实现方式适用的场景为:第二步中基于配置如maximum load-balancing从最短路径中选择符合配置的最短路径,再根据选择的最短路径生成路由表,那么,第三步中基于路由表生成转发表即可不考虑路由设备的配置,并且,第一路由设备在生成转发表的过程中保存了中间结果,即,基于SPT算法计算并结合路由设备的配置得到的路由表。这样,无需第一路由设备进行额外的处理,直接读取保存的中间结果即可获得第一汇聚信息,能够有效的提高第一路由设备获得第一汇聚信息的效率。As another example, the obtaining of the first aggregation information by the first routing device may specifically include: the first routing device obtains the first aggregation information from a locally saved shortest path tree (English: Shortest Path Tree, SPT for short) calculation result. It should be understood that the process of determining the real forwarding path by the first routing device may include: the first step: taking other routing devices in the first network domain except the first routing device as the destination routing device, and calculating the route from the first routing device to each route. The shortest path of the device; in the second step, based on the shortest path and the IP prefix corresponding to the destination routing device, the routing table on the first routing device is obtained; in the third step, the routing table is sent to the routing management (English: Router Management, referred to as: RM) module, the RM module determines the forwarding table based on the routing table; in the fourth step, the first routing device forwards the message to each routing device according to the forwarding table. The applicable scenario of this implementation method is: in the second step, based on the configuration such as maximum load-balancing, the shortest path that matches the configuration is selected from the shortest path, and then the routing table is generated according to the selected shortest path. Then, in the third step, the routing table is generated based on The forwarding table may not consider the configuration of the routing device, and the first routing device saves the intermediate result in the process of generating the forwarding table, that is, the routing table calculated based on the SPT algorithm and combined with the configuration of the routing device. In this way, the first aggregation information can be obtained by directly reading the saved intermediate result without additional processing by the first routing device, which can effectively improve the efficiency of the first routing device in obtaining the first aggregation information.
在一种可能的实现方式中,如果第二路由设备和第三路由设备属于第二网络域,即,第二路由设备是第一网络域和第二网络域的边界路由设备,该方法还可以包括:第一路由设备获得第二汇聚信息,该第二汇聚信息包括第二路由设备的标识和第三路由设备的标识;第一路由设备将第二汇聚信息发送给管理设备,管理设备基于第一汇聚信息、第二汇聚信息、第一网络域对应的第一LSDB中的邻接关系信息和第二网络域对应的第二LSDB中的邻接关系信息,确定第一路由设备经过第二路由设备到达第三路由设备的还原路径。其中,由于第一路由设备和第三路由设备属于不同的网络域,为了让第一路由设备能够准确的还原出到第三路由设备的路径,在第一路由设备获得所述第二汇聚信息之前,第三路由设备还需要配置第三路由设备的标识(例如第三路由设备的组标识(英文:group id)),并将该第三路由设备的标识携带在路由消息中发送给第一路由设备。作为一个示例,用于携带第三路由设备的标识的路由消息可以是链路状态通告(英文:Link-State Advertisement,简称:LSA)报文,可以通过扩展该LSA报文,以在该LSA报文中携带第三路由设备的标识。例如:可以通过LSA报文中扩展的长度类型值(英文:Type Length Value,简称:TLV)字 段携带第三路由设备的标识。这样,各路由设备汇聚该路由设备到其他路由设备的汇聚信息,并将汇聚信息上报给管理设备,由于对报文进行真实转发的过程中已经考虑了各路由设备的配置,所以,路径还原过程中依据的汇聚信息也已经符合各路由设备的配置,基于汇聚信息进行跨网络域的路径还原能够使得获得的还原路径和真实转发路径完全一致,为网络域中以及跨网络域场景下快速和准确的故障排查提供了可靠的依据。In a possible implementation manner, if the second routing device and the third routing device belong to the second network domain, that is, the second routing device is a border routing device of the first network domain and the second network domain, the method may also Including: the first routing device obtains second aggregation information, where the second aggregation information includes the identifier of the second routing device and the identifier of the third routing device; the first routing device sends the second aggregation information to the management device, and the management device is based on the first routing device. The first aggregation information, the second aggregation information, the adjacency relationship information in the first LSDB corresponding to the first network domain, and the adjacency relationship information in the second LSDB corresponding to the second network domain, determine that the first routing device arrives via the second routing device The restoration path of the third routing device. Wherein, since the first routing device and the third routing device belong to different network domains, in order for the first routing device to accurately restore the path to the third routing device, before the first routing device obtains the second aggregation information , the third routing device also needs to configure the identification of the third routing device (for example, the group identification (English: group id) of the third routing device), and carry the identification of the third routing device in the routing message and send it to the first routing device equipment. As an example, the routing message used to carry the identifier of the third routing device may be a Link-State Advertisement (English: Link-State Advertisement, LSA for short) packet, and the LSA packet can be extended to display the information in the LSA packet. The text carries the identifier of the third routing device. For example, the identifier of the third routing device can be carried through the extended length type value (English: Type Length Value, TLV for short) field in the LSA message. In this way, each routing device aggregates the aggregation information from the routing device to other routing devices, and reports the aggregation information to the management device. Since the configuration of each routing device has been considered in the process of actually forwarding the packet, the path restoration process The aggregation information based on the network has also been in line with the configuration of each routing device. Based on the aggregation information, the path restoration across the network domain can make the obtained restoration path and the real forwarding path exactly the same, which is fast and accurate in the network domain and in the cross-network domain scenario. Troubleshooting provides a reliable basis.
在一些可能的实现方式中,第一路由设备向管理设备发送第一汇聚信息,可以是周期性的向管理设备发送第一汇聚信息,也可以是基于触发指令,向管理设备发送第一汇聚信息。其中,触发指令可以是路由设备基于自身的事件生成的,例如,路由设备上的路由发生变化时生成触发指令;或者,该触发指令也可以是管理设备或者其他路由设备向该路由设备发送的。在本申请实施例中,对第一路由设备向管理设备发送第一汇聚信息的方式进行具体限定。In some possible implementation manners, the first routing device sends the first aggregation information to the management device, which may periodically send the first aggregation information to the management device, or may send the first aggregation information to the management device based on a trigger instruction . The trigger instruction may be generated by the routing device based on its own events, for example, the trigger instruction is generated when the route on the routing device changes; or the trigger instruction may also be sent by the management device or other routing devices to the routing device. In this embodiment of the present application, the manner in which the first routing device sends the first aggregation information to the management device is specifically limited.
第二方面,本申请实施例还提供了一种路由还原的方法,路径还原的过程可以包括:管理设备从第一路由设备接收第一汇聚信息,该第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第一路由设备的至少一个出接口用于所述第一路由设备向所述第二路由设备发送报文;接着,管理设备基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的第一还原路径,该第一LSDB是第一路由设备和第二路由设备所在的第一网络域对应的LSDB。In a second aspect, an embodiment of the present application further provides a method for route restoration. The process of route restoration may include: a management device receives first aggregation information from a first routing device, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, at least one outbound interface of the first routing device is used for the first routing device to send packets to the second routing device; then, the management device is based on the first aggregation information and The adjacency relationship information in the first LSDB determines the first restoration path from the first routing device to the second routing device, where the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
在一个可能的实现方式中,对于第一路由设备和第二路由设备之间包括第四路由设备,且第四路由设备也属于第一网络域的情况,该方法还可以包括:第四路由设备获得并向管理设备发送第三汇聚信息,该第三汇聚信息包括第二路由设备的标识和第四路由设备的至少一个出接口标识,第四路由设备的至少一个出接口用于第四路由设备向第二路由设备发送报文;那么,管理设备基于第一汇聚信息和第一LSDB中的邻接关系信息确定第一路由设备到第二路由设备的第一还原路径,具体可以包括:管理设备基于第一汇聚信息、第三汇聚信息和第一LSDB中的邻接关系信息确定第一还原路径,该第一还原路径经过第四路由设备。In a possible implementation manner, in the case where a fourth routing device is included between the first routing device and the second routing device, and the fourth routing device also belongs to the first network domain, the method may further include: a fourth routing device Obtain and send third aggregation information to the management device, where the third aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the fourth routing device, and at least one outbound interface of the fourth routing device is used for the fourth routing device Send a message to the second routing device; then, the management device determines the first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first LSDB, which may specifically include: the management device is based on The first aggregation information, the third aggregation information, and the adjacency relationship information in the first LSDB determine a first restoration path, and the first restoration path passes through the fourth routing device.
作为一个示例,管理设备基于第一汇聚信息、第三汇聚信息和第一LSDB中的邻接关系信息确定第一还原路径的过程,例如可以包括:管理设备基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第四路由设备的第一路径,该第一LSDB中的邻接关系信息用于指示第一路由设备的至少一个出接口和第四路由设备的入接口相连;接着,管理设备基于第三汇聚信息和第一LSDB中的邻接关系信息,确定第四路由设备到第二路由设备的第二路径,第一LSDB中的邻接关系信息还用于指示第四路由设备的至少一个出接口和第二路由设备的入接口相连;从而,管理设备基于第一路径和第二路径,确定第一还原路径。这样,可以有序且高效的还原出网络域内的真实转发路径,为故障的排查提供了可靠的数据基础。As an example, the process for the management device to determine the first restoration path based on the first aggregation information, the third aggregation information, and the adjacency relationship information in the first LSDB may include, for example: the management device determines the first restoration path based on the first aggregation information and the first LSDB Adjacency relationship information, determining the first path from the first routing device to the fourth routing device, and the adjacency relationship information in the first LSDB is used to indicate that at least one outbound interface of the first routing device is connected to the inbound interface of the fourth routing device; Next, the management device determines a second path from the fourth routing device to the second routing device based on the third aggregation information and the adjacency relationship information in the first LSDB, and the adjacency relationship information in the first LSDB is further used to indicate the fourth routing device At least one outgoing interface of the routing device is connected to the incoming interface of the second routing device; thus, the management device determines the first restoration path based on the first path and the second path. In this way, the real forwarding path in the network domain can be restored in an orderly and efficient manner, which provides a reliable data basis for troubleshooting.
在另一些可能的实现方式中,如果第二路由设备和第三路由设备属于第二网络域,该方法还可以包括:管理设备确定第一路由设备到第三路由设备的第二还原路径,该第二还原路径为第一路由设备经过第二路由设备到达第三路由设备的路径。In some other possible implementation manners, if the second routing device and the third routing device belong to the second network domain, the method may further include: the management device determines a second restoration path from the first routing device to the third routing device, the The second restoration path is a path from the first routing device to the third routing device via the second routing device.
作为一个示例,如果第一网络域和第二网络域均为标准网络域,那么,在确定第二还原路径之前,该方法还可以包括:管理设备接收第一路由设备发送的第二汇聚信息,该第二汇聚信息包括第二路由设备的标识和第三路由设备的标识;那么,管理设备基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的第一还原路径,过程可以包括:管理设备基于第一汇聚信息、第二汇聚信息和第一LSDB中的邻接关系信息,确定第一还原路径。而管理设备基于第一汇聚信息、第二汇聚信息和第一LSDB中的邻接关系信息确定第一还原路径具体可以是:管理设备先基于第二汇聚信息,确定第二还原路径经过的边界路由设备为第二路由设备,从而,管理设备基于第一汇聚信息和第一LSDB中的邻接关系信息确定第一还原路径。其中,为了让管理设备知晓第三路由设备和第三路由设备的标识的对应关系,第三路由设备还需要向管理设备发送第三路由设备的标识。As an example, if both the first network domain and the second network domain are standard network domains, before determining the second restoration path, the method may further include: the management device receiving the second aggregation information sent by the first routing device, The second aggregation information includes the identifier of the second routing device and the identifier of the third routing device; then, the management device determines the relationship between the first routing device and the second routing device based on the first aggregation information and the adjacency information in the first LSDB. For the first restoration path, the process may include: the management device determines the first restoration path based on the first aggregation information, the second aggregation information and the adjacency relationship information in the first LSDB. The management device determines the first restoration path based on the first aggregation information, the second aggregation information, and the adjacency information in the first LSDB. Specifically, the management device may first determine the border routing device through which the second restoration path passes based on the second aggregation information. is the second routing device, so that the management device determines the first restoration path based on the first aggregation information and the adjacency relationship information in the first LSDB. Wherein, in order for the management device to know the correspondence between the third routing device and the identifier of the third routing device, the third routing device also needs to send the identifier of the third routing device to the management device.
该示例下,本申请实施例提供的方法还可以包括:管理设备接收第二路由设备发送的第四汇聚信息,该第四汇聚信息包括第三路由设备的标识和第二路由设备的至少一个出接口标识,第二路由设备的至少一个出接口用于第二路由设备向第三路由设备发送报文;那么,管理设备确定第一路由设备到第三路由设备的第二还原路径的过程可以包括:管理设备根据第四汇聚信息和第二网络域对应的第二LSDB中的邻接关系信息,确定第二路由设备到第三路由设备的第三还原路径;管理设备基于第一还原路径和第三还原路径,确定第二还原路径。In this example, the method provided by the embodiment of the present application may further include: the management device receives fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one output of the second routing device. The interface identifier, at least one outgoing interface of the second routing device is used for the second routing device to send packets to the third routing device; then, the process of the management device determining the second restoration path from the first routing device to the third routing device may include: : The management device determines the third restoration path from the second routing device to the third routing device according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain; The restoration path is determined, and the second restoration path is determined.
作为另一个示例,如果第一网络域为标准网络域,第二网络域均为非标准网络域,那么,管理设备确定第二还原路径,具体可以是在标准网络域中按照本申请实施例提供的方法确定源路由设备到边界路由设备之间的路径,在非标准网络域中基于该非标准网络域的特点确定该边界路由设备到目的路由设备之间的路径,从而将两段路径进行拼接,得到第二还原路径。以第二网络域为Stub域为例,在确定第二还原路径之前,该方法还可以包括:管理设备接收第三路由设备发送的默认路由;那么,管理设备确定第二还原路径的过程可以包括:管理设备根据默认路由,确定第二路由设备到第三路由设备的第三还原路径;接着,管理设备基于第一还原路径和第三还原路径,确定第二还原路径。As another example, if the first network domain is a standard network domain and the second network domain is a non-standard network domain, then the management device determines the second restoration path, which may specifically be provided in the standard network domain according to the embodiment of the present application The method determines the path between the source routing device and the border routing device, and determines the path between the border routing device and the destination routing device based on the characteristics of the non-standard network domain in the non-standard network domain, so as to splicing the two paths. to get the second restoration path. Taking the second network domain as the Stub domain as an example, before determining the second restoration path, the method may further include: the management device receives a default route sent by the third routing device; then, the process of the management device determining the second restoration path may include: : The management device determines a third restoration path from the second routing device to the third routing device according to the default route; then, the management device determines the second restoration path based on the first restoration path and the third restoration path.
需要说明的是,该第二方面提供的方法的具体实现方式以及达到的效果,均可以参见上述第一方面的相关描述,在此不再赘述。It should be noted that, for the specific implementation manner of the method provided in the second aspect and the effect achieved, reference may be made to the relevant description of the above-mentioned first aspect, and details are not repeated here.
第三方面,本申请实施例还提供了一种路由还原的方法,路径还原的过程可以包括:第三路由设备向第一路由设备发送路由消息,该第一路由设备属于第一网络域,第三路由设备属于第二网络域,该路由消息中携带所述第三路由设备的标识,以便第一路由设备基于第三路由设备的标识获得并向管理设备发送第二汇聚信息,该第二汇聚信息包括第三路由设备的标识和第二路由设备的标识,第二路由设备为所述第一网络域和所述第二网络域的边界设备。这样,管理设备即可基于第二汇聚信息确定第一路由设备经过第二路由设备到第三路由设备的还原路径。In a third aspect, an embodiment of the present application further provides a method for route restoration. The process of route restoration may include: a third routing device sends a routing message to a first routing device, where the first routing device belongs to a first network domain, and a third routing device sends a routing message to a first routing device. The three-routing device belongs to the second network domain, and the routing message carries the identifier of the third routing device, so that the first routing device obtains and sends the second aggregation information to the management device based on the identifier of the third routing device. The information includes an identifier of a third routing device and an identifier of a second routing device, where the second routing device is a border device of the first network domain and the second network domain. In this way, the management device can determine the restoration path from the first routing device to the third routing device via the second routing device based on the second aggregation information.
其中,第三路由设备向第一路由设备发送路由消息,具体可以是:第三路由设备向第一路由设备发送的LSA报文,该LSA报文通过扩展的TLV字段携带第三路由设备的标识。The routing message sent by the third routing device to the first routing device may specifically be: an LSA packet sent by the third routing device to the first routing device, where the LSA packet carries the identifier of the third routing device through the extended TLV field .
作为一个示例,该方法还可以包括:第三路由设备向管理设备发送第三路由设备的标识。As an example, the method may further include: the third routing device sends the identification of the third routing device to the management device.
需要说明的是,该第三方面提供的方法的具体实现方式以及达到的效果,均可以参见上述第一方面的相关描述,在此不再赘述。It should be noted that, for the specific implementation manner of the method provided in the third aspect and the effect achieved, reference may be made to the relevant description of the above-mentioned first aspect, which will not be repeated here.
第四方面,本申请实施例还提供了一种路由设备,该路由设备应用于第一路由设备,该路由设备包括:处理单元和发送单元。其中,处理单元,用于获得第一汇聚信息,第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文;发送单元,用于向管理设备发送第一汇聚信息,以便管理设备基于第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的还原路径,第一LSDB是第一路由设备和第二路由设备所在的第一网络域对应的LSDB。In a fourth aspect, an embodiment of the present application further provides a routing device, where the routing device is applied to the first routing device, and the routing device includes: a processing unit and a sending unit. The processing unit is configured to obtain first aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing The device sends a packet to the second routing device; the sending unit is configured to send the first aggregation information to the management device, so that the management device determines the first route based on the first aggregation information and the adjacency information in the first link state database LSDB The restoration path from the device to the second routing device. The first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
在一些可能的实现方式中,处理单元具体用于:基于转发表获得第一汇聚信息。例如:处理单元具体用于:在转发表中确定第二路由设备的IP前缀对应的出接口标识,并且,将第二路由设备的IP前缀对应的出接口标识确定为第一汇聚信息中的第一路由设备的至少一个出接口标识。In some possible implementations, the processing unit is specifically configured to: obtain the first aggregation information based on the forwarding table. For example, the processing unit is specifically configured to: determine the outbound interface identifier corresponding to the IP prefix of the second routing device in the forwarding table, and determine the outbound interface identifier corresponding to the IP prefix of the second routing device as the first aggregation information At least one outbound interface identifier of a routing device.
在另一些可能的实现方式中,处理单元具体用于:从本地保存的最短路径树SPT计算结果中,获得第一汇聚信息。In some other possible implementation manners, the processing unit is specifically configured to: obtain the first aggregation information from the locally saved shortest path tree SPT calculation result.
在又一些可能的实现方式中,第二路由设备和第三路由设备属于第二网络域,该路由设备的处理单元,还用于获得第二汇聚信息,第二汇聚信息包括第二路由设备的标识和第三路由设备的标识;发送单元,还用于向管理设备发送第二汇聚信息,以便管理设备基于第一汇聚信息、第二汇聚信息、第一网络域对应的第一LSDB中的邻接关系信息和第二网络域对应的第二LSDB中的邻接关系信息,确定第一路由设备经过第二路由设备到达第三路由设备的还原路径。In some other possible implementations, the second routing device and the third routing device belong to the second network domain, and the processing unit of the routing device is further configured to obtain second aggregation information, where the second aggregation information includes the data of the second routing device. The identifier and the identifier of the third routing device; the sending unit is further configured to send the second aggregation information to the management device, so that the management device is based on the first aggregation information, the second aggregation information, and the adjacency in the first LSDB corresponding to the first network domain The relationship information and the adjacency relationship information in the second LSDB corresponding to the second network domain determine the restoration path from the first routing device to the third routing device via the second routing device.
其中,该路由设备还包括接收单元,该接收单元用于在获得第二汇聚信息之前,接收第三路由设备发布的路由消息,路由消息中携带第三路由设备的标识。作为一个示例,该接收单元具体可以用于:接收第三路由设备发送的LSA报文,LSA报文通过扩展的TLV字段携带第三路由设备的标识。The routing device further includes a receiving unit, which is configured to receive a routing message advertised by the third routing device before obtaining the second aggregation information, where the routing message carries the identifier of the third routing device. As an example, the receiving unit may be specifically configured to: receive an LSA packet sent by a third routing device, where the LSA packet carries an identifier of the third routing device through an extended TLV field.
在一些可能的实现方式中,发送单元具体用于:备周期性的向管理设备发送第一汇聚信息。In some possible implementation manners, the sending unit is specifically configured to: periodically send the first aggregation information to the management device.
在另一些可能的实现方式中,发送单元具体用于:基于触发指令,向管理设备发送第一汇聚信息。In some other possible implementation manners, the sending unit is specifically configured to: send the first aggregation information to the management device based on the trigger instruction.
需要说明的是,该第四方面提供的路由设备用于执行上述第一方面提及的相关操作,其具体实现方式以及达到的效果,均可以参见上述第一方面的相关描述,在此不再赘述。It should be noted that, the routing device provided in the fourth aspect is used to perform the relevant operations mentioned in the first aspect. For the specific implementation manner and the effect achieved, reference can be made to the relevant description of the first aspect, which is not repeated here. Repeat.
第五方面,本申请实施例还提供了一种管理设备,该管理设备可以包括:接收单元和处理单元。其中,接收单元,用于从第一路由设备接收第一汇聚信息,第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文;处理单元,用于基于第一汇聚信息和第 一链路状态数据库LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的第一还原路径,第一LSDB是第一路由设备和第二路由设备所在的第一网络域对应的LSDB。In a fifth aspect, an embodiment of the present application further provides a management device, where the management device may include: a receiving unit and a processing unit. The receiving unit is configured to receive first aggregation information from the first routing device, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device for the first routing device to send a packet to the second routing device; the processing unit is configured to determine the relationship between the first routing device and the second routing device based on the first aggregation information and the adjacency information in the first link state database LSDB. For the first restoration path, the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
在一些可能的实现方式中,该接收单元还用于从第四路由设备接收第三汇聚信息,第三汇聚信息包括第二路由设备的标识和第四路由设备的至少一个出接口标识,第四路由设备的至少一个出接口用于第四路由设备向第二路由设备发送报文;那么,处理单元具体可以用于:基于第一汇聚信息、第三汇聚信息和第一LSDB中的邻接关系信息,确定第一还原路径,第一还原路径经过第四路由设备。In some possible implementations, the receiving unit is further configured to receive third aggregation information from the fourth routing device, where the third aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the fourth routing device, and the fourth routing device At least one outgoing interface of the routing device is used for the fourth routing device to send a packet to the second routing device; then, the processing unit may be specifically configured to: based on the first aggregation information, the third aggregation information and the adjacency information in the first LSDB , determine the first restoration path, and the first restoration path passes through the fourth routing device.
该实现方式中,作为一个示例,处理单元具体用于:基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第四路由设备的第一路径,第一LSDB中的邻接关系信息用于指示第一路由设备的至少一个出接口和第四路由设备的入接口相连;基于第三汇聚信息和第一LSDB中的邻接关系信息,确定第四路由设备到第二路由设备的第二路径,第一LSDB中的邻接关系信息还用于指示第四路由设备的至少一个出接口和第二路由设备的入接口相连;从而,基于第一路径和第二路径,确定第一还原路径。In this implementation manner, as an example, the processing unit is specifically configured to: determine the first path from the first routing device to the fourth routing device based on the first aggregation information and the adjacency information in the first LSDB, and the first path in the first LSDB The adjacency relationship information is used to indicate that at least one outbound interface of the first routing device is connected to the inbound interface of the fourth routing device; based on the third aggregation information and the adjacency relationship information in the first LSDB, determine the connection between the fourth routing device and the second routing device The adjacency information in the first LSDB is also used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; thus, based on the first path and the second path, determine the first restore path.
在另一些可能的实现方式中,第二路由设备和第三路由设备属于第二网络域,处理单元还用于确定第一路由设备到第三路由设备的第二还原路径,第二还原路径为第一路由设备经过第二路由设备到达第三路由设备的路径。In some other possible implementation manners, the second routing device and the third routing device belong to the second network domain, and the processing unit is further configured to determine a second restoration path from the first routing device to the third routing device, where the second restoration path is A path from the first routing device to the third routing device via the second routing device.
作为一个示例,接收单元,还用于接收第一路由设备发送的第二汇聚信息,第二汇聚信息包括第二路由设备的标识和第三路由设备的标识;那么,处理单元具体可以用于:基于第一汇聚信息、第二汇聚信息和第一LSDB中的邻接关系信息,确定第一还原路径。As an example, the receiving unit is further configured to receive second aggregation information sent by the first routing device, where the second aggregation information includes an identifier of the second routing device and an identifier of the third routing device; then, the processing unit can be specifically used for: The first restoration path is determined based on the first aggregation information, the second aggregation information, and the adjacency relationship information in the first LSDB.
该示例下,接收单元还用于接收第二路由设备发送的第四汇聚信息,第四汇聚信息包括第三路由设备的标识和第二路由设备的至少一个出接口标识,第二路由设备的至少一个出接口用于第二路由设备向第三路由设备发送报文;那么,处理单元具体可以用于:根据第四汇聚信息和第二网络域对应的第二LSDB中的邻接关系信息,确定第二路由设备到第三路由设备的第三还原路径;从而,基于第一还原路径和第三还原路径,确定第二还原路径。In this example, the receiving unit is further configured to receive fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device, and at least one One outgoing interface is used by the second routing device to send packets to the third routing device; then, the processing unit may be specifically configured to: determine the first aggregation information according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain. A third restoration path from the second routing device to the third routing device; thus, a second restoration path is determined based on the first restoration path and the third restoration path.
其中,接收单元还用于接收第三路由设备发送的第三路由设备的标识。The receiving unit is further configured to receive the identifier of the third routing device sent by the third routing device.
作为另一个示例,该处理单元具体可以用于:根据默认路由,确定第二路由设备到第三路由设备的第三还原路径;从而,基于第一还原路径和第三还原路径,确定第二还原路径。As another example, the processing unit may be specifically configured to: determine a third restoration path from the second routing device to the third routing device according to the default route; thus, determine the second restoration path based on the first restoration path and the third restoration path path.
其中,接收单元还用于接收第三路由设备发送的默认路由。Wherein, the receiving unit is further configured to receive the default route sent by the third routing device.
需要说明的是,该第五方面提供的管理设备用于执行上述第二方面提及的相关操作,其具体实现方式以及达到的效果,均可以参见上述第二方面的相关描述,在此不再赘述。It should be noted that the management device provided in the fifth aspect is used to perform the related operations mentioned in the second aspect. For the specific implementation manner and the effect achieved, reference can be made to the relevant description of the second aspect, which is not repeated here. Repeat.
第六方面,本申请实施例还提供了一种路由设备,该路由设备应用于第三路由设备,该路由设备包括:发送单元,该发送单元用于向第一路由设备发送路由消息,第一路由设备属于第一网络域,第三路由设备属于第二网络域,路由消息中携带第三路由设备的标识,以便第一路由设备基于第三路由设备的标识获得并向管理设备发送第二汇聚信息,第二汇聚信息包括第三路由设备的标识和第二路由设备的标识,第二路由设备为第一网络域和第 二网络域的边界设备。In a sixth aspect, an embodiment of the present application further provides a routing device, the routing device is applied to a third routing device, the routing device includes: a sending unit, the sending unit is configured to send a routing message to the first routing device, the first routing device The routing device belongs to the first network domain, the third routing device belongs to the second network domain, and the routing message carries the identifier of the third routing device, so that the first routing device obtains based on the identifier of the third routing device and sends the second aggregation device to the management device information, the second aggregation information includes the identifier of the third routing device and the identifier of the second routing device, and the second routing device is a border device of the first network domain and the second network domain.
作为一个示例,该发送单元具体用于向第一路由设备发送LSA报文,LSA报文通过扩展的TLV字段携带第三路由设备的标识。As an example, the sending unit is specifically configured to send an LSA packet to the first routing device, where the LSA packet carries the identifier of the third routing device through an extended TLV field.
其中,发送单元还用于向管理设备发送第三路由设备的标识。Wherein, the sending unit is further configured to send the identifier of the third routing device to the management device.
需要说明的是,该第六方面提供的路由设备用于执行上述第三方面提及的相关操作,其具体实现方式以及达到的效果,均可以参见上述第三方面的相关描述,在此不再赘述。It should be noted that the routing device provided in the sixth aspect is used to perform the related operations mentioned in the third aspect. For the specific implementation manner and the effect achieved, reference can be made to the relevant description of the third aspect, which is not repeated here. Repeat.
第七方面,本申请实施例还提供了一种路由设备,包括:存储器和处理器。其中,存储器用于存储程序代码或指令;处理器用于运行程序代码或指令,使得路由设备执行以上第一方面提供的方法。In a seventh aspect, an embodiment of the present application further provides a routing device, including: a memory and a processor. Wherein, the memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the routing device executes the method provided in the first aspect above.
第八方面,本申请实施例还提供了一种管理设备,包括:存储器和处理器。其中,存储器用于存储程序代码或指令;处理器用于运行程序代码或指令,使得管理设备执行以上第二方面提供的方法。In an eighth aspect, an embodiment of the present application further provides a management device, including: a memory and a processor. The memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the management device executes the method provided in the second aspect above.
第九方面,本申请实施例还提供了一种路由设备,包括:存储器和处理器。其中,存储器用于存储程序代码或指令;处理器用于运行程序代码或指令,使得路由设备执行以上第三方面提供的方法。In a ninth aspect, an embodiment of the present application further provides a routing device, including: a memory and a processor. The memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the routing device executes the method provided in the third aspect.
第十方面,本申请实施例还提供了一种网络系统,网络系统包括第四方面提供的路由设备、第五方面提供的管理设备和第六方面提供的路由设备;或者,所述网络系统也可以包括第七方面提供的路由设备、第八方面提供的管理设备和第九方面提供的路由设备。In a tenth aspect, an embodiment of the present application further provides a network system, where the network system includes the routing device provided in the fourth aspect, the management device provided in the fifth aspect, and the routing device provided in the sixth aspect; or, the network system may also It may include the routing device provided in the seventh aspect, the management device provided in the eighth aspect, and the routing device provided in the ninth aspect.
第十一方面,本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有程序代码或指令,当其在计算机上运行时,使得计算机执行以上第一方面、第二方面或第三方面提供的任意一种可能的实现方式中提供的方法。In an eleventh aspect, the embodiments of the present application also provide a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute the first aspect and the first The method provided in any one of the possible implementation manners provided in the second aspect or the third aspect.
第十二方面,本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在网络设备上运行时,使得网络设备执行第一方面、第二方面或第三方面的任意一种可能的实现方式中提供的方法。In a twelfth aspect, an embodiment of the present application further provides a computer program product, which, when the computer program product runs on a network device, enables the network device to perform any one of the first aspect, the second aspect, or the third aspect. methods provided in the implementation of .
附图说明Description of drawings
图1为本申请实施例中一应用场景所涉及的网络域100的结构示意图;FIG. 1 is a schematic structural diagram of a network domain 100 involved in an application scenario in an embodiment of the present application;
图2为本申请实施例中一种路径还原的方法100的信令流程图;FIG. 2 is a signaling flowchart of a method 100 for path restoration in an embodiment of the present application;
图3为本申请实施例中一种网络10的结构示意图;FIG. 3 is a schematic structural diagram of a network 10 in an embodiment of the application;
图4为本申请实施例中一种路径还原的方法200的信令流程图;FIG. 4 is a signaling flowchart of a method 200 for path restoration in an embodiment of the present application;
图5为本申请实施例中一种网络20的结构示意图;FIG. 5 is a schematic structural diagram of a network 20 in an embodiment of the present application;
图6为本申请实施例中一种第一路由设备600的结构示意图;FIG. 6 is a schematic structural diagram of a first routing device 600 in an embodiment of the present application;
图7为本申请实施例中一种管理设备700的结构示意图;FIG. 7 is a schematic structural diagram of a management device 700 in an embodiment of the present application;
图8为本申请实施例中一种第三路由设备800的结构示意图;FIG. 8 is a schematic structural diagram of a third routing device 800 in an embodiment of the present application;
图9为本申请实施例中另一种第一路由设备900的结构示意图;FIG. 9 is a schematic structural diagram of another first routing device 900 in an embodiment of the present application;
图10为本申请实施例中另一种管理设备1000的结构示意图;FIG. 10 is a schematic structural diagram of another management device 1000 in an embodiment of the present application;
图11为本申请实施例中另一种第三路由设备1100的结构示意图;FIG. 11 is a schematic structural diagram of another third routing device 1100 in an embodiment of the present application;
图12为本申请实施例中一种网络系统1200的结构示意图。FIG. 12 is a schematic structural diagram of a network system 1200 in an embodiment of the present application.
具体实施方式detailed description
路径还原作为故障排查的有效手段,在网络中发生异常时,通过还原出和报文的真实转发路径一致的还原路径,快速有效的实现故障排查和定位。目前,通常采用LSDB计算还原路径,具体过程可以包括:管理设备获得网络域中的LSDB后,先基于LSDB中包括的邻接关系信息确定网络拓扑,再基于LSDB中各链路的metric和所确定的网络拓扑,按照SPF算法计算出还原路径。由于真实转发路径还考虑了各路由设备的配置,而该路径还原方法中计算出的还原路径则未考虑各路由设备的配置,所以,获得的还原路径很可能与真实转发路径不一致,影响故障排查和定位的效果。Path restoration is an effective method for troubleshooting. When an abnormality occurs in the network, the restoration path that is consistent with the actual forwarding path of the packet is restored to quickly and effectively implement troubleshooting and positioning. At present, the LSDB is usually used to calculate the restoration path. The specific process may include: after the management device obtains the LSDB in the network domain, firstly determines the network topology based on the adjacency information included in the LSDB, and then determines the network topology based on the metric and the determined value of each link in the LSDB. Network topology, calculate the restoration path according to the SPF algorithm. Because the configuration of each routing device is also considered in the real forwarding path, and the configuration of each routing device is not considered in the restoration path calculated in this path restoration method, the obtained restoration path is likely to be inconsistent with the real forwarding path, which affects troubleshooting. and positioning effects.
例如:对于图1所示的网络域100,按照SPF算法计算得到的从路由设备10到路由设备15的等价路径有3条,分别为:路径1:路由设备10-路由设备11-路由设备12-路由设备15,路径2:路由设备10-路由设备11-路由设备13-路由设备15,以及路径3:路由设备10-路由设备11-路由设备14-路由设备15。假设路由设备11上配置的maximum load-balancing=2,按照一定的规则从3条等价路径中选择2条,以选择的路径作为转发报文的真实转发路径,如,真实转发路径为路径1和路径3。那么,用于指导转发的转发表中也仅包括路径1和路径3的相关转发表项。For example, for the network domain 100 shown in Figure 1, there are 3 equal-cost paths from the routing device 10 to the routing device 15 calculated according to the SPF algorithm, which are: Path 1: routing device 10-routing device 11-routing device 12 - routing device 15, path 2: routing device 10 - routing device 11 - routing device 13 - routing device 15, and path 3: routing device 10 - routing device 11 - routing device 14 - routing device 15. Assuming that the maximum load-balancing=2 configured on the routing device 11, select 2 out of 3 equal-cost paths according to certain rules, and use the selected path as the real forwarding path for forwarding packets. For example, the real forwarding path is path 1 and path 3. Then, the forwarding table for guiding forwarding also includes only the relevant forwarding table entries of path 1 and path 3.
网络域100中各路由设备上具有相同的LSDB,该LSDB中包括邻接关系信息和各链路的metric,其中,邻接关系信息用于指示相邻路由设备之间的连接关系,例如:路由设备10的A接口连接路由设备11的A接口,各链路的metric用于体现该链路的参数,例如:路由设备10到路由设备11的链路1的metric为链路1的链路开销x1。网络域100对应的LSDB例如可以参见下表1所示:Each routing device in the network domain 100 has the same LSDB, and the LSDB includes adjacency information and the metric of each link, wherein the adjacency information is used to indicate the connection relationship between adjacent routing devices, for example: routing device 10 The A interface is connected to the A interface of the routing device 11. The metric of each link is used to reflect the parameters of the link. For example, the metric of the link 1 from the routing device 10 to the routing device 11 is the link cost x1 of the link 1. For example, the LSDB corresponding to the network domain 100 can be referred to as shown in Table 1 below:
表1 LSDBTable 1 LSDB
Figure PCTCN2021109956-appb-000001
Figure PCTCN2021109956-appb-000001
其中,例如,x2+x5=x3+x6=x4+x7,即路径1、路径2和路径3的链路开销总和相等。Wherein, for example, x2+x5=x3+x6=x4+x7, that is, the sum of link costs of path 1, path 2 and path 3 are equal.
在路径还原的过程中,网络域100中的任意一个或多个路由设备向管理设备50发送表1所示的LSDB,管理设备50基于该LSDB中的邻接关系信息,确定如图1所示的网络拓扑;接着,管理设备50基于该网络拓扑和LSDB中的metric,通过SPF算法计算等价路径,获得的还原路径包括路径1、路径2和路径3。可见,该路径还原方法得到的还原路径和真实转发路径不一致,影响对网络域100中的故障排查效率和准确性。During the path restoration process, any one or more routing devices in the network domain 100 send the LSDB shown in Table 1 to the management device 50, and the management device 50 determines, based on the adjacency information in the LSDB, as shown in FIG. 1 . Network topology; then, based on the network topology and the metric in the LSDB, the management device 50 calculates an equivalent path through the SPF algorithm, and the obtained restoration path includes path 1 , path 2 and path 3 . It can be seen that the restoration path obtained by the path restoration method is inconsistent with the real forwarding path, which affects the efficiency and accuracy of troubleshooting in the network domain 100 .
基于此,在本申请实施例中,提供了一种路径还原的方法,能够准确还原出和真实转发路径一致的还原路径。对于属于同一网络域的第一路由设备和第二路由设备,还原第一路由设备到第二路由设备的还原路径的过程可以包括:第一路由设备获得并向管理设备发送汇聚信息,该汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文;如此,管理设备即可基于汇聚信息和该网络域对应的LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的还原路径。这样,各路由设备汇聚该路由设备到网络域的其他路由设备的路由信息以得到汇聚信息,并将汇聚信息上报给管理设备,作为管理设备进行路径还原的数据基础,由于对报文进行真实转发的过程中已经考虑了各路由设备的配置,所以,路径还原过程中依据的路由信息符合各路由设备的配置,从而汇聚得到的汇聚信息也符合各路由设备的配置,使得获得的还原路径和真实转发路径完全一致成为可能,为网络域中快速和准确的故障排查提供了可靠的依据。Based on this, in the embodiment of the present application, a method for restoring a path is provided, which can accurately restore a restoring path that is consistent with the real forwarding path. For the first routing device and the second routing device belonging to the same network domain, the process of restoring the restoration path from the first routing device to the second routing device may include: the first routing device obtains and sends aggregation information to the management device, the aggregation information It includes the identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing device to send packets to the second routing device; in this way, the management device can be based on The aggregation information and the adjacency information in the LSDB corresponding to the network domain determine the restoration path from the first routing device to the second routing device. In this way, each routing device aggregates the routing information from the routing device to other routing devices in the network domain to obtain aggregation information, and reports the aggregation information to the management device as the data basis for the management device to restore the path. The configuration of each routing device has been considered in the process of routing, so the routing information based on the path restoration process conforms to the configuration of each routing device, so that the aggregated aggregated information also conforms to the configuration of each routing device, so that the restored path obtained is consistent with the actual configuration of each routing device. Completely consistent forwarding paths are possible, providing a reliable basis for fast and accurate troubleshooting in the network domain.
举例来说,仍然以图1所示的场景为例,假设真实还原路径为路径1和路径3。各路由设备获得该路由设备到其他各路由设备的汇聚信息,路由设备10的汇聚信息1可以如下表2所示:For example, still taking the scenario shown in FIG. 1 as an example, it is assumed that the real restoration paths are path 1 and path 3. Each routing device obtains the aggregation information from the routing device to other routing devices. The aggregation information 1 of the routing device 10 can be shown in Table 2 below:
表2汇聚信息1Table 2 Aggregated Information 1
目的路由设备的标识The ID of the destination routing device 出接口标识Outbound interface ID
1111 AA
1212 AA
1313 AA
1414 AA
1515 AA
其中,该汇聚信息1中的每行用于指示从路由设备10向所标识的路由设备发送报文时经过路由设备10的出接口;例如,第三行的汇聚信息用于指示从路由设备10向路由设备12发送报文时经过路由设备10的出接口A。Wherein, each row in the aggregation information 1 is used to indicate the outbound interface of the routing device 10 when the packet is sent from the routing device 10 to the identified routing device; for example, the aggregation information in the third row is used to indicate that the slave routing device 10 When the packet is sent to the routing device 12, it passes through the outgoing interface A of the routing device 10.
路由设备11的汇聚信息2可以如下表3所示:The aggregation information 2 of the routing device 11 may be shown in Table 3 below:
表3汇聚信息2Table 3 Aggregated Information 2
Figure PCTCN2021109956-appb-000002
Figure PCTCN2021109956-appb-000002
路由设备12的汇聚信息3可以如下表4所示:The aggregation information 3 of the routing device 12 may be shown in Table 4 below:
表4汇聚信息3Table 4 Aggregated Information 3
目的路由设备的标识The ID of the destination routing device 出接口标识Outbound interface ID
1010 AA
1111 AA
1313 AA
1414 AA
1515 BB
路由设备13的汇聚信息4可以如下表5所示:The aggregation information 4 of the routing device 13 may be shown in Table 5 below:
表5汇聚信息4Table 5 Aggregated Information 4
目的路由设备的标识The ID of the destination routing device 出接口标识Outbound interface ID
1010 AA
1111 AA
1212 AA
1414 AA
1515 BB
路由设备14的汇聚信息5可以如下表6所示:The aggregation information 5 of the routing device 14 may be shown in Table 6 below:
表6汇聚信息5Table 6 Aggregation Information 5
目的路由设备的标识The ID of the destination routing device 出接口标识Outbound interface ID
1010 AA
1111 AA
1212 AA
1313 AA
1515 BB
路由设备15的汇聚信息6可以如下表7所示:The aggregation information 6 of the routing device 15 can be shown in Table 7 below:
表7汇聚信息6Table 7 Aggregated Information 6
Figure PCTCN2021109956-appb-000003
Figure PCTCN2021109956-appb-000003
需要说明的是,为了给路径还原提供更加可靠的数据基础,汇聚信息还可以携带本地路由设备向所标识的目的路由设备发送报文时所标识的路由设备接收该报文的入接口的互联网协议(英文:Internet Protocol,简称:IP)地址,以路由设备10的汇聚信息1为例,汇聚信息还可以如下表8所示,其他路由设备的汇聚信息也与之相似。It should be noted that, in order to provide a more reliable data basis for path restoration, the aggregation information can also carry the Internet protocol of the incoming interface of the routing device identified when the local routing device sends the packet to the identified destination routing device to receive the packet. (English: Internet Protocol, IP for short) address, take the aggregation information 1 of the routing device 10 as an example, the aggregation information can also be shown in Table 8 below, and the aggregation information of other routing devices is also similar.
表8汇聚信息1Table 8 Aggregation Information 1
目的路由设备的标识The ID of the destination routing device 出接口标识Outbound interface ID 目的路由设备的入接口IP地址IP address of the inbound interface of the destination routing device
1111 AA IP地址1IP address 1
1212 AA IP地址1IP address 1
1313 AA IP地址1IP address 1
1414 AA IP地址1IP address 1
1515 AA IP地址1IP address 1
管理设备50基于上述表2~表7的汇聚信息以及表1所示的LSDB,可以获得各路由设备之间的还原路径,其中,所获得的还原路径中包括从路由设备10到路由设备15的两条还原路径,分别为路径1和路径3。管理设备50还原得到路径1和路径2的过程例如可以包括:Based on the aggregation information in Tables 2 to 7 and the LSDB shown in Table 1, the management device 50 can obtain a restoration path between each routing device, wherein the obtained restoration path includes the path from the routing device 10 to the routing device 15. There are two restoration paths, namely path 1 and path 3. The process of restoring the path 1 and the path 2 by the management device 50 may include, for example:
S11,管理设备50基于表2确定目的路由设备15对应路由设备10的出接口A,基于表1确定路由设备10的接口A和路由设备11的接口A连接,从而确定还原路径中包括“路由设备10-路由设备11”;S11, the management device 50 determines, based on Table 2, that the destination routing device 15 corresponds to the outbound interface A of the routing device 10, and determines that the interface A of the routing device 10 and the interface A of the routing device 11 are connected based on Table 1, so as to determine that the restoration path includes "routing device 10". 10-routing device 11";
S12,管理设备50基于表3确定目的路由设备15对应路由设备11的出接口B和D,基于表1确定路由设备11的接口B和路由设备12的接口A连接,路由设备11的接口D和路由设备14的接口A连接,从而确定还原路径中包括“路由设备10-路由设备11-路由设备12”和“路由设备10-路由设备11-路由设备14”;S12, the management device 50 determines, based on Table 3, that the destination routing device 15 corresponds to the outbound interfaces B and D of the routing device 11, and determines, based on Table 1, that the interface B of the routing device 11 is connected to the interface A of the routing device 12, and the interface D of the routing device 11 is connected to the interface A of the routing device 12. Interface A of the routing device 14 is connected, thereby determining that the restoration path includes "routing device 10-routing device 11-routing device 12" and "routing device 10-routing device 11-routing device 14";
S13,管理设备50基于表4确定目的路由设备15对应路由设备12的出接口B,基于表1确定路由设备12的接口B和路由设备15的接口A连接,从而确定还原路径中包括“路由设备10-路由设备11-路由设备12-路由设备15”;S13, the management device 50 determines, based on Table 4, that the destination routing device 15 corresponds to the outbound interface B of the routing device 12, and determines that the interface B of the routing device 12 is connected to the interface A of the routing device 15 based on Table 1, thereby determining that the restoration path includes "routing device 15". 10-routing device 11-routing device 12-routing device 15";
S14,管理设备50基于表6确定目的路由设备15对应路由设备14的出接口B,基于表1确定路由设备14的接口B和路由设备15的接口C连接,从而确定还原路径中包括“路由设备10-路由设备11-路由设备14-路由设备15”。S14, the management device 50 determines, based on Table 6, that the destination routing device 15 corresponds to the outbound interface B of the routing device 14, and determines that the interface B of the routing device 14 and the interface C of the routing device 15 are connected based on Table 1, so as to determine that the restoration path includes "routing device 14". 10-routing device 11-routing device 14-routing device 15".
可见,管理设备50还原出图1所示的路径1和路径3,和报文的真实转发路径一致。It can be seen that the management device 50 restores the path 1 and the path 3 shown in FIG. 1 , which are consistent with the actual forwarding path of the packet.
需要说明的是,上述路由设备是指具有报文转发功能的网络设备,例如可以是路由器或交换机。管理设备是指具有路径还原功能的设备,例如可以是控制器、服务器或路由设备。It should be noted that the above-mentioned routing device refers to a network device with a packet forwarding function, such as a router or a switch. A management device refers to a device with a path restoration function, such as a controller, server, or routing device.
下面结合附图,通过实施例来详细说明本申请实施例中一种路径还原的方法的具体实现方式。The specific implementation of a method for path restoration in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图2为本申请实施例中一种路径还原方法100的信令流程图。参见图2,该方法100应用于第一网络域中,以还原路径的源节点和管理设备之间的交互介绍本申请实施例。该方法100例如可以应用在图1所示的网络域100中,一个示例下,方法100可以是对路由设备10到路由设备15之间的路径进行还原,其中,路由设备10可以对应于方法100中的第一路由设备,路由设备15对应于方法100中的第二路由设备,管理设备50对应于方法100中的管理设备。需要说明的是,该方法100仅涉及网络域内的路径还原,对于涉及多 个网络域的还原路径,参见下述方法200的相关说明。FIG. 2 is a signaling flowchart of a path restoration method 100 in an embodiment of the present application. Referring to FIG. 2 , the method 100 is applied in the first network domain, and the embodiment of the present application is introduced by the interaction between the source node of the restoration path and the management device. For example, the method 100 may be applied in the network domain 100 shown in FIG. 1 . In an example, the method 100 may be to restore the path between the routing device 10 and the routing device 15 , where the routing device 10 may correspond to the method 100 The first routing device in , the routing device 15 corresponds to the second routing device in the method 100 , and the management device 50 corresponds to the management device in the method 100 . It should be noted that the method 100 only involves the restoration of paths within a network domain. For restoration paths involving multiple network domains, please refer to the related description of the method 200 below.
具体实现时,该方法100例如可以包括下述S101~S104:During specific implementation, the method 100 may, for example, include the following S101 to S104:
S101,第一路由设备获得第一汇聚信息,该第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,该第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文。S101. A first routing device obtains first aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, where the at least one outbound interface of the first routing device is used for the first routing device. The routing device sends the packet to the second routing device.
在S101之前,第一路由设备确定真实转发路径的过程可以包括:S21,将第一网络域中除第一路由设备以外的其他路由设备均作为目的路由设备,计算第一路由设备到各路由设备的最短路径;S22,基于最短路径和目的路由设备对应的IP前缀,得到第一路由设备上的路由表;S23,将路由表发送给路由管理(英文:Router Management,简称:RM)模块,RM模块基于路由表确定转发表;S24,第一路由设备按照转发表向各路由设备转发报文。Before S101, the process of determining the real forwarding path by the first routing device may include: S21, using other routing devices in the first network domain except the first routing device as destination routing devices, calculating the distance between the first routing device and each routing device S22, obtain the routing table on the first routing device based on the shortest path and the IP prefix corresponding to the destination routing device; S23, send the routing table to the routing management (English: Router Management, referred to as: RM) module, RM The module determines a forwarding table based on the routing table; S24, the first routing device forwards the packet to each routing device according to the forwarding table.
作为一个示例,S22中可以先基于配置如maximum load-balancing从最短路径中选择符合配置的最短路径,再根据选择的最短路径生成路由表,那么,S23中基于路由表生成转发表即可不考虑路由设备的配置。以图1所示网络域100为例,对于路由设备10上的转发表中与路由设备15对应的转发表项的生成过程可以包括:路由设备10基于最短路径树(英文:Shortest Path Tree,简称:SPT)算法计算路由设备10到路由设备15的最短路径,得到路径1、路径2和路径3,再基于路径1~路径3上经过的各路由设备的maximum load-balancing,从3条最短路径中选择符合maximum load-balancing的最短路径:路径1和路径3(由于路由设备11的maximum load-balancing=2),基于路径1和路由设备15对应的IP前缀1、路径3和路由设备15对应的IP前缀3,得到路由设备10上的路由表1;将路由表1发送给RM模块101,RM模块101基于路由表1直接确定转发表1,该转发表1中与路由设备15对应的转发表项和上述生成的路由表1中与路由设备15对应的路由表项相同。As an example, in S22, the shortest path that conforms to the configuration can be selected from the shortest paths based on the configuration such as maximum load-balancing, and then the routing table can be generated according to the selected shortest path. Then, the routing table can be generated based on the routing table in S23 without considering the routing. Device configuration. Taking the network domain 100 shown in FIG. 1 as an example, the generating process of the forwarding table entry corresponding to the routing device 15 in the forwarding table on the routing device 10 may include: the routing device 10 is based on the shortest path tree (English: Shortest Path Tree, referred to as shortest path tree). : SPT) algorithm calculates the shortest path from routing device 10 to routing device 15, obtains path 1, path 2 and path 3, and then based on the maximum load-balancing of each routing device passing through path 1 to path 3, from the three shortest paths Select the shortest path in line with maximum load-balancing: path 1 and path 3 (due to maximum load-balancing=2 of routing device 11), based on IP prefix 1 corresponding to path 1 and routing device 15, path 3 and routing device 15 correspond to IP prefix 3, obtain the routing table 1 on the routing device 10; send the routing table 1 to the RM module 101, and the RM module 101 directly determines the forwarding table 1 based on the routing table 1, and the forwarding table 1 corresponds to the routing device 15. The published entry is the same as the routing entry corresponding to the routing device 15 in the routing table 1 generated above.
该示例中,如果第一路由设备在生成转发表的过程中保存了中间结果(即基于SPT算法计算并结合路由设备的配置得到的路由表),则,S101中获得第一汇聚结果,具体可以是指:第一路由设备从本地保存的SPT计算结果中,获得所述第一汇聚信息。这样,无需第一路由设备进行额外的处理,能够有效的提高第一路由设备获得第一汇聚信息的效率。In this example, if the first routing device saves the intermediate result (that is, the routing table calculated based on the SPT algorithm and combined with the configuration of the routing device) in the process of generating the forwarding table, then the first aggregation result is obtained in S101, which may be specifically It means: the first routing device obtains the first aggregation information from the SPT calculation result stored locally. In this way, there is no need for the first routing device to perform additional processing, which can effectively improve the efficiency with which the first routing device obtains the first aggregation information.
作为另一个示例,S22中可以直接根据计算所得的最短路径生成路由表,不考虑路由设备的配置,但是,S23中先基于配置如maximum load-balancing从路由表中选择符合配置的最短路径,再根据路由表中被选择的最短路径生成转发表。以图1所示网络域100为例,对于路由设备10上的转发表中与路由设备15对应的转发表项的生成过程可以包括:路由设备10基于SPT算法计算路由设备10到路由设备15的最短路径,得到路径1、路径2和路径3,基于路径1和路由设备15对应的IP前缀1、路径2和路由设备15对应的IP前缀2、以及路径3和路由设备15对应的IP前缀3,得到路由设备10上的路由表2;将路由表2发送给RM模块101,RM模块101基于路由表2,结合路径1~路径3上经过的各路由设备的maximum load-balancing,从3条最短路径中选择符合maximum load-balancing的最短路径:路径1和路径3,从而从路由表2中筛选路径1和路径3对应的路由表项,基于路 径1和路径3对应的路由表项确定转发表1,该转发表1中与路由设备15对应的转发表项的数目和上述生成的路由表中与路由设备15对应的路由表项的数目可以不同。As another example, in S22, a routing table can be generated directly based on the calculated shortest path, regardless of the configuration of the routing device. However, in S23, the shortest path that matches the configuration is selected from the routing table based on the configuration such as maximum load-balancing, and then The forwarding table is generated according to the shortest path selected in the routing table. Taking the network domain 100 shown in FIG. 1 as an example, the process of generating a forwarding table entry corresponding to the routing device 15 in the forwarding table on the routing device 10 may include: Shortest path, path 1, path 2 and path 3 are obtained, based on IP prefix 1 corresponding to path 1 and routing device 15, IP prefix 2 corresponding to path 2 and routing device 15, and IP prefix 3 corresponding to path 3 and routing device 15 , obtain the routing table 2 on the routing device 10; send the routing table 2 to the RM module 101, and the RM module 101 is based on the routing table 2, combined with the maximum load-balancing of each routing device on path 1 to path 3, from 3 In the shortest path, select the shortest path that conforms to maximum load-balancing: path 1 and path 3, so as to filter the routing table entries corresponding to path 1 and path 3 from routing table 2, and determine the routing based on the routing table entries corresponding to path 1 and path 3. Publication 1, the number of forwarding table entries corresponding to the routing device 15 in the forwarding table 1 may be different from the number of routing table entries corresponding to the routing device 15 in the above-generated routing table.
该示例中,S101具体可以是第一路由设备基于转发表获得第一汇聚信息。例如:第一路由设备在转发表中确定与第二路由设备的互联网协议IP前缀对应的出接口标识,并将所确定的与第二路由设备的IP前缀对应的出接口标识确定为第一汇聚信息中的第一路由设备的至少一个出接口标识,这样,得到至少包括第二路由设备的标识和第一路由设备上的至少一个出接口标识的第一汇聚信息。这样,通过对转发表中属于目的路由设备的IP前缀的转发表项的下一跳信息的汇聚,得到第一汇聚信息,为路径还原提供了可靠的数据基础。In this example, S101 may specifically be that the first routing device obtains the first aggregation information based on the forwarding table. For example, the first routing device determines the outbound interface identifier corresponding to the Internet Protocol IP prefix of the second routing device in the forwarding table, and determines the determined outbound interface identifier corresponding to the IP prefix of the second routing device as the first aggregation At least one outgoing interface identifier of the first routing device in the information, so that the first aggregation information including at least the identifier of the second routing device and the at least one outgoing interface identifier on the first routing device is obtained. In this way, the first aggregation information is obtained by aggregating the next hop information of the forwarding table entries of the IP prefixes belonging to the destination routing device in the forwarding table, which provides a reliable data basis for path restoration.
需要说明的是,第一路由设备和第二路由设备可以是同一网络域中的任意两个不同的路由设备,根据该方法100能够对同一个网络域中的任意两个路由设备之间的真实转发路径进行准确的还原。It should be noted that the first routing device and the second routing device may be any two different routing devices in the same network domain. Forwarding paths for accurate restoration.
本实施例中以还原第一路由设备到第二路由设备之间的真实转发路径为例进行描述,第二路由设备为待还原的路径的目的路由设备,第一路由设备可以是和第二路由设备直连或非直连的任意路由设备。一种情况下,如果第一路由设备和第二路由设备直连,则,管理设备还原第一路由设备到第二路由设备的还原路径,仅需要基于第一路由设备上报的第一汇聚信息和该网络域对应的LSDB。另一种情况下,如果第一路由设备和第二路由设备非直连,则,管理设备还原第一路由设备到第二路由设备的还原路径,需要基于第一路由设备上报的第一汇聚信息、该网络域对应的LSDB以及网络域中其他路由设备上报的汇聚信息,具体参见下述S104的相关描述。In this embodiment, restoring the real forwarding path between the first routing device and the second routing device is used as an example for description. The second routing device is the destination routing device of the path to be restored, and the first routing device may be the same as the second routing device. Any routing device directly or indirectly connected to the device. In one case, if the first routing device and the second routing device are directly connected, the management device only needs to restore the restoration path from the first routing device to the second routing device based on the first aggregation information and the first aggregation information reported by the first routing device. The LSDB corresponding to this network domain. In another case, if the first routing device and the second routing device are not directly connected, the management device needs to restore the restoration path from the first routing device to the second routing device based on the first aggregation information reported by the first routing device , the LSDB corresponding to the network domain and the aggregation information reported by other routing devices in the network domain. For details, refer to the relevant description of S104 below.
举例来说,假设第一路由设备为网络域100中的路由设备10,第一汇聚信息可以是表2所示的汇聚信息1;第一汇聚信息也可以是表2所示的汇聚信息1中与第二路由设备对应的行,如,第二路由设备为路由设备11,则,第一汇聚信息可以是汇聚信息1中的第二行,该第一汇聚信息用于指示从路由设备10向路由设备11发送报文时经过路由设备10的出接口A;又如,如果第二路由设备为路由设备15,则,第一汇聚信息可以是汇聚信息1中的第六行,该第一汇聚信息用于指示从路由设备10向路由设备15发送报文时经过路由设备10的出接口A。For example, assuming that the first routing device is the routing device 10 in the network domain 100, the first aggregation information may be the aggregation information 1 shown in Table 2; the first aggregation information may also be the aggregation information 1 shown in Table 2. The row corresponding to the second routing device, for example, the second routing device is routing device 11, then the first aggregation information may be the second row in aggregation information 1, and the first aggregation information is used to indicate the routing device 10 to the routing device 11. When the routing device 11 sends the packet, it goes through the outbound interface A of the routing device 10; for another example, if the second routing device is the routing device 15, the first aggregation information may be the sixth line in the aggregation information 1, and the first aggregation information The information is used to indicate that a packet is sent from the routing device 10 to the routing device 15 through the outbound interface A of the routing device 10 .
S102,第一路由设备向管理设备发送第一汇聚信息。S102, the first routing device sends the first aggregation information to the management device.
S103,管理设备从第一路由设备接收第一汇聚信息。S103, the management device receives the first aggregation information from the first routing device.
作为一个示例,各路由设备可以周期性的将获得的汇聚信息发送给管理设备,发送汇聚信息的周期可以是路由设备预先配置的,也可以是管理设备为所有路由设备统一配置的。该示例中,S102和S103例如可以是:第一路由设备周期性的向管理设备发送第一汇聚信息;管理设备接收第一路由设备发送的第一汇聚信息。As an example, each routing device may periodically send the obtained aggregation information to the management device, and the period for sending the aggregation information may be pre-configured by the routing device, or may be uniformly configured by the management device for all routing devices. In this example, S102 and S103 may be, for example: the first routing device periodically sends the first aggregation information to the management device; the management device receives the first aggregation information sent by the first routing device.
作为另一个示例,各路由设备可以基于触发指令将获得的汇聚信息发送给管理设备,该触发指令可以是路由设备基于自身的事件生成的,例如,路由设备上的路由发生变化;或者,该触发指令也可以是管理设备或者其他路由设备向该路由设备发送的。该示例中,S102和S103例如可以是:第一路由设备基于触发指令,向管理设备发送第一汇聚信息;管理设备接收第一路由设备发送的第一汇聚信息。As another example, each routing device may send the obtained aggregation information to the management device based on a trigger instruction, and the trigger instruction may be generated by the routing device based on its own event, for example, the route on the routing device changes; The instruction may also be sent by the management device or other routing device to the routing device. In this example, S102 and S103 may be, for example: the first routing device sends the first aggregation information to the management device based on the trigger instruction; the management device receives the first aggregation information sent by the first routing device.
需要说明的是,管理设备接收到各路由设备发送的汇聚信息后,即可执行下述S104,进行该网络域中真实转发路径的还原。具体需要还原的路径可以基于实际的网络状况进行确定,如:管理设备确定网络域异常,但是无法确定导致异常的更小范围的情况下,管理设备可以将该网络域中所有的真实转发路径还原出来;又如:管理设备确定网络域异常且确定该网络域中边界路由设备15提供的业务性能异常,则,管理设备可以将路由设备15作为目的路由设备,还原出从网络域的所有路由设备到该路由设备15的路径即可。如此,本实施例能够针对性的准确还原需要的路径,为故障的排查和定位提供了方便。It should be noted that, after receiving the aggregation information sent by each routing device, the management device may execute the following S104 to restore the real forwarding path in the network domain. The specific path that needs to be restored can be determined based on the actual network conditions. For example, if the management device determines that the network domain is abnormal, but cannot determine the smaller scope that causes the abnormality, the management device can restore all real forwarding paths in the network domain. Another example: the management device determines that the network domain is abnormal and determines that the service performance provided by the border routing device 15 in the network domain is abnormal, then the management device can use the routing device 15 as the destination routing device to restore all routing devices from the network domain The path to the routing device 15 is sufficient. In this way, this embodiment can restore the required path in a targeted and accurate manner, which provides convenience for troubleshooting and locating faults.
S104,管理设备基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的第一还原路径,该第一LSDB是第一路由设备和第二路由设备所在的第一网络域对应的LSDB。S104, the management device determines a first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first LSDB, where the first LSDB is where the first routing device and the second routing device are located The LSDB corresponding to the first network domain.
作为一个示例,如果第一路由设备和第二路由设备直连,则,S104可以包括:管理设备从第一汇聚信息中获得与目的路由设备(即第二路由设备)匹配的第二路由设备的标识,确定该第二路由设备的标识对应的第一路由设备的出接口标识,从而,确定第一路由设备的出接口标识对应的出接口;接着,管理设备从第一LSDB的邻接关系信息中,获知所确定的第一路由设备的出接口和第二路由设备的入接口连接,这样,确定出第一路由设备到第二路由设备的第一还原路径。例如:假设第一路由设备、第二路由设备和管理设备分别为网络域100中的路由设备10、路由设备11和管理设备50,则,S104可以包括:管理设备50从表2所示的汇聚信息1的第二行,确定报文从路由设备10的出接口A转发到路由设备11;接着,管理设备50从表1的LSDB的第二行,确定路由设备10的接口A和路由设备11的接口A连接,所以,得到路由设备10的A接口到路由设备11的A接口的还原路径1,该还原路径1也即路由设备10转发报文到路由设备11的真实转发路径。As an example, if the first routing device and the second routing device are directly connected, S104 may include: the management device obtains, from the first aggregation information, the data of the second routing device that matches the destination routing device (ie, the second routing device). identifier, determine the outgoing interface identifier of the first routing device corresponding to the identifier of the second routing device, thereby determining the outgoing interface corresponding to the outgoing interface identifier of the first routing device; then, the management device obtains the information from the adjacency relationship information of the first LSDB. , to learn that the determined outbound interface of the first routing device is connected to the inbound interface of the second routing device, so that the first restoration path from the first routing device to the second routing device is determined. For example: assuming that the first routing device, the second routing device and the management device are respectively the routing device 10, the routing device 11 and the management device 50 in the network domain 100, then S104 may include: the management device 50 converges from the aggregation shown in Table 2 In the second row of information 1, it is determined that the packet is forwarded from the outbound interface A of the routing device 10 to the routing device 11; then, the management device 50 determines the interface A of the routing device 10 and the routing device 11 from the second row of the LSDB in Table 1. Therefore, the restoration path 1 from the A interface of the routing device 10 to the A interface of the routing device 11 is obtained.
作为另一个示例,如果第一路由设备和第二路由设备非直连,例如,第一路由设备和第二路由设备之间包括至少一个路由设备,那么,在S104之前,该方法100还可以包括:管理设备接收第一路由设备和第二路由设备之间包括的各路由设备发送的汇聚信息。那么,S104中确定还原路径的数据基础还需要包括其他路由设备发送的汇聚信息。As another example, if the first routing device and the second routing device are not directly connected, for example, at least one routing device is included between the first routing device and the second routing device, then, before S104, the method 100 may further include : The management device receives the aggregation information sent by each routing device included between the first routing device and the second routing device. Then, the data base for determining the restoration path in S104 also needs to include aggregation information sent by other routing devices.
以第一路由设备和第二路由设备之间包括第四路由设备为例,S104之前,该方法100还可以包括:S31,第四路由设备获得第三汇聚信息,该第三汇聚信息包括第二路由设备的标识和第四路由设备的至少一个出接口标识,第四路由设备的至少一个出接口用于第四路由设备向第二路由设备发送报文;S32,第四路由设备向管理设备发送第三汇聚信息;S33,管理设备接收第四路由设备发送的第三汇聚信息。需要说明的是,S31~S33的具体实现方式以及达到的效果,可以参见上述S101~S103的相关说明。Taking a fourth routing device between the first routing device and the second routing device as an example, before S104, the method 100 may further include: S31, the fourth routing device obtains third aggregation information, where the third aggregation information includes the second The identifier of the routing device and the identifier of at least one outgoing interface of the fourth routing device, the at least one outgoing interface of the fourth routing device is used for the fourth routing device to send the packet to the second routing device; S32, the fourth routing device sends the message to the management device third aggregation information; S33, the management device receives the third aggregation information sent by the fourth routing device. It should be noted that, for the specific implementation manners of S31 to S33 and the effects achieved, reference may be made to the relevant descriptions of S101 to S103 above.
该示例下,S104例如可以包括:管理设备基于第一汇聚信息、第三汇聚信息和第一LSDB中的邻接关系信息,确定该第一还原路径,该第一还原路径经过第四路由设备。具体是现实,S104可以包括:S41,管理设备可以基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第四路由设备的第一路径,该第一LSDB中的邻接关系信息用于指示第一路由设备的至少一个出接口和第四路由设备的入接口相连;S42,管理设备基于第三汇聚信息和第一LSDB中的邻接关系信息,确定第四路由设备到第二路由设备的 第二路径,该第一LSDB中的邻接关系信息还用于指示所述第四路由设备的至少一个出接口和所述第二路由设备的入接口相连;S43,管理设备基于第一路径和第二路径,确定第一还原路径。例如:假设第一路由设备、第二路由设备、第四路由设备和管理设备分别为网络域100中的路由设备11、路由设备15、路由设备12和管理设备50,则,S104可以包括:管理设备50从表3所示的汇聚信息2的第六行,确定报文从路由设备11的出接口B转发到路由设备15,接着,管理设备50从表1的LSDB的第三行,确定路由设备11的接口B和路由设备12的接口A连接,所以,得到路由设备11的B接口到路由设备12的A接口的路径b;管理设备50从表4所示的汇聚信息3的第六行,确定报文从路由设备12的出接口B转发到路由设备15,接着,管理设备50从表1的LSDB的第六行,确定路由设备12的接口B和路由设备15的接口A连接,所以,得到路由设备12的B接口到路由设备15的A接口的路径d;如此,管理设备50可以根据路径b和路径d得到路由设备11经过路由设备12到达路由设备15的还原路径1。In this example, S104 may, for example, include: the management device determines the first restoration path based on the first aggregation information, the third aggregation information and the adjacency relationship information in the first LSDB, and the first restoration path passes through the fourth routing device. Specifically, S104 may include: S41, the management device may determine the first path from the first routing device to the fourth routing device based on the first aggregation information and the adjacency information in the first LSDB, and the adjacency in the first LSDB The relationship information is used to indicate that at least one outbound interface of the first routing device is connected to the inbound interface of the fourth routing device; S42, the management device determines, based on the third aggregation information and the adjacency relationship information in the first LSDB, the connection between the fourth routing device and the fourth routing device. The second path of the second routing device, the adjacency relationship information in the first LSDB is further used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; S43, the management device is based on the first A path and a second path determine the first restoration path. For example: Assuming that the first routing device, the second routing device, the fourth routing device and the management device are respectively the routing device 11, the routing device 15, the routing device 12 and the management device 50 in the network domain 100, then S104 may include: management From the sixth row of the aggregation information 2 shown in Table 3, the device 50 determines that the packet is forwarded from the outbound interface B of the routing device 11 to the routing device 15. Next, the management device 50 determines the route from the third row of the LSDB in Table 1. The interface B of the device 11 is connected to the interface A of the routing device 12, so the path b from the B interface of the routing device 11 to the A interface of the routing device 12 is obtained; , determine that the packet is forwarded from the outbound interface B of the routing device 12 to the routing device 15, and then, the management device 50 determines the connection between the interface B of the routing device 12 and the interface A of the routing device 15 from the sixth row of the LSDB in Table 1, so , to obtain the path d from the B interface of the routing device 12 to the A interface of the routing device 15; thus, the management device 50 can obtain the restoration path 1 from the routing device 11 to the routing device 15 through the routing device 12 according to the path b and the path d.
需要说明的是,第一路由设备和第二路由设备不直连的情况下,第四路由设备可以是多个,生成的第一还原路径可以是多条等价路径,具体还原出每条第一还原路径的方式均可以参见上述实现方式中的相关描述。It should be noted that, in the case where the first routing device and the second routing device are not directly connected, there may be multiple fourth routing devices, and the generated first restoration path may be multiple equal-cost paths. For a method of restoring a path, reference may be made to the relevant description in the foregoing implementation manner.
举例来说:假设第一路由设备、第二路由设备和管理设备分别为网络域100中的路由设备10、路由设备15和管理设备50,则,S104可以包括:管理设备50从表2所示的汇聚信息1的第六行,确定报文从路由设备10的出接口A转发到路由设备15,接着,管理设备50从表1的LSDB的第一行,确定路由设备10的接口A和路由设备11的接口A连接,所以,得到路由设备10的A接口到路由设备11的A接口的路径a;管理设备50从表3所示的汇聚信息2的第六行,确定报文从路由设备11的出接口B和D转发到路由设备15,接着,管理设备50从表1的LSDB的第三行和第五行,确定路由设备11的接口B和路由设备12的接口A连接、以及路由设备11的接口D和路由设备14的接口A连接,所以,得到路由设备11的B接口到路由设备12的A接口的路径b以及路由设备11的D接口到路由设备14的A接口的路径c;管理设备50从表4所示的汇聚信息3的第六行,确定报文从路由设备12的出接口B转发到路由设备15,接着,管理设备50从表1的LSDB的第六行,确定路由设备12的接口B和路由设备15的接口A连接,所以,得到路由设备12的B接口到路由设备15的A接口的路径d;管理设备50从表5所示的汇聚信息6的第六行,确定报文从路由设备14的出接口B转发到路由设备15,接着,管理设备50从表1的LSDB的第八行,确定路由设备14的接口B和路由设备15的接口C连接,所以,得到路由设备14的B接口到路由设备15的C接口的路径e;如此,管理设备50可以根据路径a、路径b和路径d得到还原路径1,根据路径a、路径c和路径e得到还原路径2,两者均为路由设备10到路由设备15的还原路径,与路由设备10到路由设备15之间的真实转发路径一致。For example: assuming that the first routing device, the second routing device and the management device are respectively the routing device 10, the routing device 15 and the management device 50 in the network domain 100, then S104 may include: the management device 50 is shown in Table 2 In the sixth row of the aggregation information 1, it is determined that the packet is forwarded from the outbound interface A of the routing device 10 to the routing device 15. Next, the management device 50 determines the interface A of the routing device 10 and the route from the first row of the LSDB in Table 1. The interface A of the device 11 is connected, so the path a from the A interface of the routing device 10 to the A interface of the routing device 11 is obtained; the management device 50 determines from the sixth row of the aggregation information 2 shown in Table 3 that the packet is sent from the routing device The outgoing interfaces B and D of 11 are forwarded to the routing device 15. Next, the management device 50 determines the connection between the interface B of the routing device 11 and the interface A of the routing device 12 from the third and fifth rows of the LSDB in Table 1, and the routing device. The interface D of 11 is connected with the interface A of the routing device 14, so the path b from the B interface of the routing device 11 to the A interface of the routing device 12 and the path c from the D interface of the routing device 11 to the A interface of the routing device 14 are obtained; From the sixth row of the aggregation information 3 shown in Table 4, the management device 50 determines that the packet is forwarded from the outbound interface B of the routing device 12 to the routing device 15. Next, the management device 50 determines from the sixth row of the LSDB in Table 1. The interface B of the routing device 12 is connected to the interface A of the routing device 15, so the path d from the B interface of the routing device 12 to the A interface of the routing device 15 is obtained; OK, confirm that the packet is forwarded from the outbound interface B of the routing device 14 to the routing device 15, then, the management device 50 determines the connection between the interface B of the routing device 14 and the interface C of the routing device 15 from the eighth row of the LSDB in Table 1, Therefore, the path e from the B interface of the routing device 14 to the C interface of the routing device 15 is obtained; in this way, the management device 50 can obtain the restoration path 1 according to the path a, the path b and the path d, and obtain the restoration path 1 according to the path a, the path c and the path e. The restoration path 2, both of which are restoration paths from the routing device 10 to the routing device 15, are consistent with the real forwarding path between the routing device 10 and the routing device 15.
如此,通过本申请实施例提供的方法100,对于属于同一网络域的第一路由设备和第二路由设备,第一路由设备获得并向管理设备发送第一汇聚信息,该第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第一路由设备的至少一个出接 口用于第一路由设备向第二路由设备发送报文;如此,管理设备即可基于第一汇聚信息和该网络域对应的第一LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的还原路径。这样,各路由设备汇聚该路由设备到网络域的其他路由设备的汇聚信息,并将汇聚信息上报给管理设备,由于对报文进行真实转发的过程中已经考虑了各路由设备的配置,所以,路径还原过程中依据的汇聚信息也已经符合各路由设备的配置,基于汇聚信息进行路径还原能够使得获得的还原路径和真实转发路径完全一致,为网络域中快速和准确的故障排查提供了可靠的依据。In this way, with the method 100 provided in this embodiment of the present application, for the first routing device and the second routing device belonging to the same network domain, the first routing device obtains and sends the first aggregation information to the management device, where the first aggregation information includes the first aggregation information. The identifier of the second routing device and the identifier of at least one outgoing interface of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing device to send packets to the second routing device; in this way, the management device can be based on the first routing device. The aggregation information and the adjacency information in the first LSDB corresponding to the network domain determine the restoration path from the first routing device to the second routing device. In this way, each routing device aggregates the aggregation information of the routing device to other routing devices in the network domain, and reports the aggregation information to the management device. Since the configuration of each routing device has been considered in the process of actually forwarding the packet, therefore, The aggregation information based on the path restoration process has also conformed to the configuration of each routing device. The path restoration based on the aggregation information can make the obtained restoration path and the real forwarding path exactly the same, which provides a reliable solution for fast and accurate troubleshooting in the network domain. in accordance with.
在一些可能的实现方式中,考虑到在实际场景中也有对跨网络域的真实转发路径进行还原的需求,所以,在本申请实施例中也提供了一种路径还原的方法200,该方法200应用于第一网络域和第二网络域,以还原路径的源节点和管理设备之间的交互介绍本申请实施例。该方法200例如可以应用在图3所示的网络10中,该网络10除了图1所示的网络域100,还包括网络域200。In some possible implementations, considering that there is also a need to restore the real forwarding path across network domains in an actual scenario, the embodiment of the present application also provides a method 200 for restoring a path. The method 200 The embodiments of the present application are introduced by applying to the first network domain and the second network domain to restore the interaction between the source node of the path and the management device. The method 200 can be applied to, for example, the network 10 shown in FIG. 3 , and the network 10 includes the network domain 200 in addition to the network domain 100 shown in FIG. 1 .
如图3所示,该网络100中,路由设备15为网络域100和网络域200的边界路由设备。网络域200包括路由设备17和路由设备18。该网络域100和网络域200均由管理设备50负责进行路径还原。As shown in FIG. 3 , in the network 100 , the routing device 15 is a border routing device of the network domain 100 and the network domain 200 . Network domain 200 includes routing device 17 and routing device 18 . The network domain 100 and the network domain 200 are both responsible for the path restoration by the management device 50 .
一个示例下,方法200可以是对路由设备10到路由设备18之间的路径进行还原,其中,路由设备10可以对应于方法200中的第一路由设备,路由设备15对应于方法200中的第二路由设备,路由设备18对应于方法200中的第三路由设备,管理设备50对应于方法200中的管理设备。需要说明的是,该方法200中涉及网络域内路径还原的具体实现方式,可以参见上述方法100的相关说明。In an example, the method 200 may be to restore the path between the routing device 10 and the routing device 18, wherein the routing device 10 may correspond to the first routing device in the method 200, and the routing device 15 may correspond to the first routing device in the method 200. Two routing devices, the routing device 18 corresponds to the third routing device in the method 200 , and the management device 50 corresponds to the management device in the method 200 . It should be noted that, for the specific implementation of path restoration in the network domain involved in the method 200, reference may be made to the relevant description of the above-mentioned method 100.
具体实现时,该方法200例如可以包括下述S201~S210:During specific implementation, the method 200 may, for example, include the following S201 to S210:
S201,第三路由设备向第一路由设备发送路由消息,该路由消息中携带第三路由设备的标识。S201, a third routing device sends a routing message to the first routing device, where the routing message carries an identifier of the third routing device.
可以理解的是,上述方法100中第一路由设备是基于目的路由设备的IP前缀进行聚合得到第一汇聚信息,但是,由于目的路由设备(即,第三路由设备)和第一路由设备不属于同一个网络域,所以,第一路由设备无法基于目的路由设备的IP前缀获得汇聚信息。基于此,第三路由设备可以配置第三路由设备的标识,并将该第三路由设备的标识通过路由消息泛洪到其他网络域。该第三路由设备的标识,用于唯一标识第三路由设备,例如可以是第三路由设备的组标识(英文:group id)。It can be understood that, in the above method 100, the first routing device performs aggregation based on the IP prefix of the destination routing device to obtain the first aggregation information. However, since the destination routing device (ie, the third routing device) and the first routing device do not belong to Therefore, the first routing device cannot obtain aggregation information based on the IP prefix of the destination routing device. Based on this, the third routing device can configure the identifier of the third routing device, and flood the identifier of the third routing device to other network domains through routing messages. The identifier of the third routing device is used to uniquely identify the third routing device, for example, it may be a group identifier (English: group id) of the third routing device.
作为一个示例,第三路由设备向第一路由设备发送的路由消息具体可以是链路状态通告(英文:Link-State Advertisement,简称:LSA)报文,可以通过扩展该LSA报文,以在该LSA报文中携带第三路由设备的标识。例如:可以通过LSA报文中扩展的长度类型值(英文:Type Length Value,简称:TLV)字段携带第三路由设备的标识。As an example, the routing message sent by the third routing device to the first routing device may specifically be a Link-State Advertisement (English: Link-State Advertisement, LSA for short) packet, and the LSA packet can be extended to The LSA packet carries the identifier of the third routing device. For example, the identifier of the third routing device may be carried through the extended length type value (English: Type Length Value, TLV for short) field in the LSA message.
需要说明的是,为了让管理设备准确的进行跨网络域的路径还原,第三路由设备在配置完成第三路由设备的标识之后,还可以向管理设备发送该第三路由设备的标识,以便管理设备知晓第三路由设备和该第三路由设备的标识对应,第三路由设备的标识用于唯一标 识该第三路由设备。It should be noted that, in order to allow the management device to accurately restore the path across network domains, after the third routing device is configured with the identifier of the third routing device, the third routing device can also send the identifier of the third routing device to the management device, so as to facilitate management. The device knows that the third routing device corresponds to the identifier of the third routing device, and the identifier of the third routing device is used to uniquely identify the third routing device.
S202,第一路由设备获取第一汇聚信息和第二汇聚信息,其中,该第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,该第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文,第二汇聚信息包括第二路由设备的标识和第三路由设备的标识。S202, the first routing device acquires first aggregation information and second aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, and at least one of the first routing device's identifiers One outgoing interface is used for the first routing device to send a packet to the second routing device, and the second aggregation information includes the identifier of the second routing device and the identifier of the third routing device.
其中,第一路由设备获取第一汇聚信息的方式以及第一汇聚信息的内容,可以参见上述方法100中S101的相关描述,在此不再赘述。The manner in which the first routing device obtains the first aggregation information and the content of the first aggregation information can be referred to the relevant description of S101 in the foregoing method 100, and details are not repeated here.
对于第一路由设备,为了后续还原出第一路由设备到第三路由设备的跨网络域的还原路径,还可以汇聚目的路由设备为第三路由设备的边界路由设备,获得第二汇聚信息。具体而言,第一路由设备可以确定与第三路由设备的标识对应的边界路由设备,将所确定的边界路由设备的标识和第三路由设备的标识作为第二汇聚信息。需要说明的是,该方法200中以一个边界路由设备(即第二路由设备)为例进行说明,对于确定了多个到目的路由设备的边界路由设备的处理方法,和一个边界路由设备的实现方式相同,在此不再赘述。For the first routing device, in order to subsequently restore the restoration path across the network domain from the first routing device to the third routing device, the boundary routing device whose destination routing device is the third routing device may also be aggregated to obtain the second aggregation information. Specifically, the first routing device may determine a border routing device corresponding to the identifier of the third routing device, and use the determined identifier of the border routing device and the identifier of the third routing device as the second aggregation information. It should be noted that, in the method 200, a border routing device (ie, a second routing device) is used as an example for description, and the processing method for determining a plurality of border routing devices to the destination routing device, and the implementation of one border routing device The method is the same and will not be repeated here.
以图3所示的网络10为例,如果第一路由设备为路由设备10,第二路由设备为路由设备15,第三路由设备为路由设备18,则,第一汇聚信息可以参见上述表2,第二汇聚信息则可以参加下表10所示的汇聚信息10中的第三行:Taking the network 10 shown in FIG. 3 as an example, if the first routing device is the routing device 10, the second routing device is the routing device 15, and the third routing device is the routing device 18, the first aggregation information can refer to the above Table 2 , the second aggregated information can participate in the third row of aggregated information 10 shown in Table 10 below:
表10汇聚信息10Table 10 Aggregated Information 10
目的路由设备的标识The ID of the destination routing device 边界路由设备的标识ID of the border routing device
1717 1515
1818 1515
以表10的第三行为例,该汇聚信息10用于指示从路由设备10到达路由设备17需要经过的边界路由设备为路由设备15。Taking the third row of Table 10 as an example, the aggregation information 10 is used to indicate that the border routing device to be passed from the routing device 10 to the routing device 17 is the routing device 15 .
S203,第一路由设备向管理设备发送第一汇聚信息和第二汇聚信息。S203, the first routing device sends the first aggregation information and the second aggregation information to the management device.
S204,管理设备接收第一路由设备发送的第一汇聚信息和第二汇聚信息。S204, the management device receives the first aggregation information and the second aggregation information sent by the first routing device.
具体是现实,第一路由设备可以周期性向管理设备发送第一汇聚信息和第二汇聚信息,也可以基于触发指令向管理设备发送第一汇聚信息和第二汇聚信息,在本实施例中不作具体限定。Specifically, in reality, the first routing device may periodically send the first aggregation information and the second aggregation information to the management device, and may also send the first aggregation information and the second aggregation information to the management device based on a trigger instruction, which is not specified in this embodiment. limited.
需要说明的是,第一路由设备可以将第一汇聚信息和第二汇聚信息分别携带在两个不同的消息中发送给管理设备,也可以将第一汇聚信息和第二汇聚信息携带在一个消息中发送给管理设备,在本实施例中不作具体限定。It should be noted that the first routing device may carry the first aggregation information and the second aggregation information in two different messages and send them to the management device, or may carry the first aggregation information and the second aggregation information in one message. is sent to the management device, which is not specifically limited in this embodiment.
S205,第二路由设备获取第四汇聚信息,其中,该第四汇聚信息包括第三路由设备的标识和第二路由设备的至少一个出接口标识,该第二路由设备的至少一个出接口用于第二路由设备向第三路由设备发送报文。S205: The second routing device acquires fourth aggregation information, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device, and the at least one outbound interface of the second routing device is used for The second routing device sends the packet to the third routing device.
第二路由设备获取第四汇聚信息的方式以及第四汇聚信息的内容,可以参见上述方法100中S101的相关描述,在此不再赘述。For the manner in which the second routing device obtains the fourth aggregation information and the content of the fourth aggregation information, reference may be made to the relevant description of S101 in the foregoing method 100, and details are not repeated here.
以图3所示的网络10为例,如果第二路由设备为路由设备15,第三路由设备为路由设备18,路由设备15的接口D连接路由设备17的接口A,路由设备17的接口B连接路 由设备18的接口A,那么,第四汇聚信息可以参加下表11所示的汇聚信息11:Taking the network 10 shown in FIG. 3 as an example, if the second routing device is the routing device 15 and the third routing device is the routing device 18, the interface D of the routing device 15 is connected to the interface A of the routing device 17, and the interface B of the routing device 17 is connected. Connect the interface A of the routing device 18, then, the fourth aggregation information can participate in the aggregation information 11 shown in the following table 11:
表11汇聚信息11Table 11 Aggregated Information 11
目的路由设备的标识The ID of the destination routing device 出接口标识Outbound interface ID
1717 DD
1818 DD
S206,第二路由设备向管理设备发送第四汇聚信息。S206, the second routing device sends fourth aggregation information to the management device.
S207,管理设备接收第二路由设备发送的第四汇聚信息。S207, the management device receives the fourth aggregation information sent by the second routing device.
具体是现实,第二路由设备可以周期性向管理设备发送第四汇聚信息,也可以基于触发指令向管理设备发送第四汇聚信息,在本实施例中不作具体限定。Specifically, in reality, the second routing device may periodically send the fourth aggregation information to the management device, or may send the fourth aggregation information to the management device based on a trigger instruction, which is not specifically limited in this embodiment.
需要说明的是,上述S202~S204和S205~S207的执行没有先后顺序的限定,可以先执行S202~S204再执行S205~S207,也可以先执行S205~S207再执行S202~S204,也可以同时执行S202~S204和S205~S207。It should be noted that the above-mentioned executions of S202 to S204 and S205 to S207 are not limited in order. S202 to S204 can be executed first and then S205 to S207, or S205 to S207 can be executed first and then S202 to S204, or they can be executed at the same time. S202 to S204 and S205 to S207.
S208,管理设备基于第一汇聚信息、第二汇聚信息和第一LSDB中的邻接关系信息,确定第一还原路径。S208, the management device determines the first restoration path based on the first aggregation information, the second aggregation information, and the adjacency relationship information in the first LSDB.
具体实现时,S208具体可以包括:S2081,管理设备基于第二汇聚信息,确定从第一路由设备到第三路由设备的路径经过的边界路由设备为第二路由设备;S2082,管理设备基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一还原路径。When specifically implemented, S208 may specifically include: S2081, the management device determines, based on the second aggregation information, the border routing device that the path from the first routing device to the third routing device passes through as the second routing device; S2082, the management device is based on the first routing device. The information and the adjacency relationship information in the first LSDB are aggregated to determine the first restoration path.
以图3所示的网络10为例,如果第一路由设备为路由设备10,第二路由设备为路由设备15,第三路由设备为路由设备18,第二汇聚信息如表10,则,可以基于表10中第三行确定从路由设备10到路由设备18的还原路径经过的边界路由设备为路由设备15。Taking the network 10 shown in FIG. 3 as an example, if the first routing device is routing device 10, the second routing device is routing device 15, the third routing device is routing device 18, and the second aggregation information is shown in Table 10, then Based on the third row in Table 10 , it is determined that the border routing device through which the restoration path from routing device 10 to routing device 18 passes is routing device 15 .
需要说明的是,S2082的具体实现方式以及效果,可以参见上述方法100中S104的相关描述,在此不再赘述。It should be noted that, for the specific implementation manner and effect of S2082, reference may be made to the relevant description of S104 in the foregoing method 100, and details are not repeated here.
S209,管理设备基于第四汇聚信息和第二网络域对应的第二LSDB中的邻接关系信息,确定第二路由设备到第三路由设备的第三还原路径。S209, the management device determines a third restoration path from the second routing device to the third routing device based on the fourth aggregation information and the adjacency relationship information in the second LSDB corresponding to the second network domain.
其中,一个网络域中的LSDB相同,不同网络域中的LSDB不同,LSDB中的邻接关系信息用于描述该LSDB对应网络域中路由设备的拓扑。The LSDBs in one network domain are the same, but the LSDBs in different network domains are different, and the adjacency relationship information in the LSDB is used to describe the topology of the routing device in the network domain corresponding to the LSDB.
需要说明的是,管理设备确定第三还原路径的具体实现方式以及效果,可以参见上述方法100中S104的相关描述,仅执行主体和网络域中拓扑结构不同,在此不再赘述。It should be noted that, for the specific implementation manner and effect of determining the third restoration path by the management device, reference may be made to the relevant description of S104 in the above method 100.
S210,管理设备基于第一还原路径和第三还原路径,确定第二还原路径,该第二还原路径为第一路由设备经过第二路由设备到达第三路由设备的路径。S210, the management device determines a second restoration path based on the first restoration path and the third restoration path, where the second restoration path is a path from the first routing device to the third routing device via the second routing device.
具体实现时,管理设备在确定第一网络域中从第一路由设备到第二路由设备的第一还原路径,以及第二网络域中从第二路由设备到第三路由设备的第三还原路径之后,管理设备可以将第一还原路径和第三还原路径进行拼接,得到从第一路由设备到第三路由设备的第二还原路径。During specific implementation, the management device determines the first restoration path from the first routing device to the second routing device in the first network domain, and the third restoration path from the second routing device to the third routing device in the second network domain Afterwards, the management device may splicing the first restoration path and the third restoration path to obtain a second restoration path from the first routing device to the third routing device.
作为一个示例,如果边界路由设备仅包括一个第二路由设备,则,可以对两个网络域分别确定的第一还原路径和第三还原路径进行简单的拼接即可获得第二还原路径。例如:以图3所示的网络10为例,管理设备50确定第一还原路径包括路径1和路径3,第三还 原路径为路径4:路由设备15-路由设备17-路由设备18,则,第二还原路径包括路径14和路径34,其中,路径14为:路由设备10-路由设备11-路由设备12-路由设备15-路由设备17-路由设备18,路径34为:路由设备10-路由设备11-路由设备14-路由设备15-路由设备17-路由设备18。As an example, if the border routing device includes only one second routing device, the second restoration path can be obtained by simply splicing the first restoration path and the third restoration path determined respectively by the two network domains. For example: taking the network 10 shown in FIG. 3 as an example, the management device 50 determines that the first restoration path includes path 1 and path 3, and the third restoration path is path 4: routing device 15-routing device 17-routing device 18, then, The second restoration path includes path 14 and path 34, wherein path 14 is: routing device 10-routing device 11-routing device 12-routing device 15-routing device 17-routing device 18, and path 34 is: routing device 10-routing device Device 11 - Routing Device 14 - Routing Device 15 - Routing Device 17 - Routing Device 18.
作为另一个示例,如果边界路由设备包括多个路由设备,则,可以对两个网络域分别确定的第一还原路径和第三还原路径可以通过预设的拼接规则进行拼接,获得第二还原路径。以边界路由设备为第二路由设备和第五路由设备为例,该拼接规则例如可以是:将两个网络域中分别获得的域内还原路径进行拼接,得到多条候选还原路径,按照各路由设备的配置从多条候选还原路径中确定最短的至少一条第二还原路径,第二还原路径的数量和各路由设备的配置如maximum load-balancing相关。例如:以图5所示的网络20为例,假设网络域300和网络域400的边界路由设备包括路由设备21和路由设备22,还原出从路由设备20到路由设备21的路径1,从路由设备20到路由设备22的路径2,从路由设备21到路由设备24的路径3,从路由设备22到路由设备24的路径4,那么,可以拼接出2条候选还原路径:路径13和路径24,其中,路径13为经过边界路由设备21的候选还原路径,路径24为经过边界路由设备22的候选还原路径。一种情况下,如果路由设备20的maximum load-balancing=1,则,管理设备最终确定的第二还原路径为路径13和路径24中距离最短的路径,如果路径13和路径24为等价路径,则,管理设备可以随机从路径13和路径24中选择一条作为第二还原路径。另一种情况下,如果路由设备20的maximum load-balancing≥2,则,管理设备最终确定的第二还原路径为路径13和路径24。As another example, if the border routing device includes multiple routing devices, the first restoration path and the third restoration path determined respectively in the two network domains can be spliced according to the preset splicing rule to obtain the second restoration path . Taking the border routing device as the second routing device and the fifth routing device as an example, the splicing rule may be, for example: splicing the intra-domain restoration paths obtained respectively in the two network domains to obtain a plurality of candidate restoration paths, according to each routing device. The configuration determines at least one shortest second restoration path from multiple candidate restoration paths, and the number of the second restoration paths is related to the configuration of each routing device, such as maximum load-balancing. For example: taking the network 20 shown in FIG. 5 as an example, suppose that the border routing devices of the network domain 300 and the network domain 400 include the routing device 21 and the routing device 22, restore the path 1 from the routing device 20 to the routing device 21, and from the routing device 20 to the routing device 21. Path 2 from device 20 to routing device 22, path 3 from routing device 21 to routing device 24, and path 4 from routing device 22 to routing device 24, then two candidate restoration paths can be spliced: path 13 and path 24 , wherein the path 13 is a candidate restoration path passing through the boundary routing device 21 , and the path 24 is a candidate restoration path passing through the boundary routing device 22 . In one case, if the maximum load-balancing=1 of the routing device 20, then the second restoration path finally determined by the management device is the path with the shortest distance between the path 13 and the path 24, if the path 13 and the path 24 are equal cost paths , then, the management device may randomly select one of the paths 13 and 24 as the second restoration path. In another case, if the maximum load-balancing of the routing device 20 is greater than or equal to 2, the second restoration paths finally determined by the management device are the path 13 and the path 24.
可见,通过本申请实施例提供的方法200,对于属于不同网络域的第一路由设备和第三路由设备,第一路由设备获得并向管理设备发送第一汇聚信息和第二汇聚信息,第二路由设备获得并向管理设备发送第四汇聚信息,该第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第二汇聚信息包括第二路由设备的标识和第三路由设备的标识,该第四汇聚信息包括第三路由设备的标识和第二路由设备的至少一个出接口标识;如此,管理设备即可基于第一汇聚信息、第二汇聚信息、第四汇聚信息、两个网络域对应的两个LSDB中的邻接关系信息,确定第一路由设备经过第二路由设备到第三路径设备的还原路径。这样,各路由设备汇聚该路由设备到其他路由设备的汇聚信息,并将汇聚信息上报给管理设备,由于对报文进行真实转发的过程中已经考虑了各路由设备的配置,所以,路径还原过程中依据的汇聚信息也已经符合各路由设备的配置,基于汇聚信息进行跨网络域的路径还原能够使得获得的还原路径和真实转发路径完全一致,为网络域中以及跨网络域场景下快速和准确的故障排查提供了可靠的依据。It can be seen that with the method 200 provided in this embodiment of the present application, for the first routing device and the third routing device belonging to different network domains, the first routing device obtains and sends the first aggregation information and the second aggregation information to the management device, and the second routing device obtains and sends the first aggregation information and the second aggregation information to the management device. The routing device obtains and sends fourth aggregation information to the management device, where the first aggregation information includes an identification of the second routing device and at least one outbound interface identification of the first routing device, and the second aggregation information includes an identification of the second routing device and the first routing device. The identifier of the third routing device, and the fourth aggregation information includes the identifier of the third routing device and at least one outbound interface identifier of the second routing device; in this way, the management device can be based on the first aggregation information, the second aggregation information, the fourth aggregation information information and the adjacency relationship information in the two LSDBs corresponding to the two network domains, determine the restoration path from the first routing device to the third routing device via the second routing device. In this way, each routing device aggregates the aggregation information from the routing device to other routing devices, and reports the aggregation information to the management device. Since the configuration of each routing device has been considered in the process of actually forwarding the packet, the path restoration process The aggregation information based on the network has also been in line with the configuration of each routing device. Based on the aggregation information, the path restoration across the network domain can make the obtained restoration path and the real forwarding path exactly the same, which is fast and accurate in the network domain and in the cross-network domain scenario. Troubleshooting provides a reliable basis.
需要说明的是,上述第一网络域和第二网络域均为标准网络域,即,方法200示例性的说明了跨标准网络域的路径还原方法。It should be noted that the above-mentioned first network domain and second network domain are both standard network domains, that is, the method 200 exemplarily describes a method for restoring a path across standard network domains.
对于从标准网络域跨到非标准网络域或者从非标准网络域跨到标准网络域的网络场景,管理设备也可以根据本申请实施例提供的方法进行路径还原,具体可以包括:S51,对于标准网络域,按照上述方法100确定第一还原路径;S52,对于非标准网络域,按照适用于该非标准网络域的路径还原方法确定第四还原路径;S53,按照预设的拼接规则,将第一 还原路径和第四还原路径进行拼接得到从标准网络域跨到非标准网络域或者从非标准网络域跨到标准网络域的第五还原路径。For a network scenario spanning from a standard network domain to a non-standard network domain or from a non-standard network domain to a standard network domain, the management device may also perform path restoration according to the method provided in this embodiment of the present application, which may specifically include: S51, for standard network domains In the network domain, the first restoration path is determined according to the above method 100; S52, for the non-standard network domain, the fourth restoration path is determined according to the path restoration method applicable to the non-standard network domain; S53, according to the preset splicing rule, the first restoration path is determined. The first restoration path and the fourth restoration path are spliced to obtain a fifth restoration path spanning from the standard network domain to the non-standard network domain or from the non-standard network domain to the standard network domain.
以非标准网络域为Stub域为例,第一路由设备和第二路由设备属于标准网络域,第二路由设备和第三路由设备属于Stub域,还原第一路由设备到第三路由设备的还原路径的过程中,S52具体可以包括:管理设备根据默认路由,确定第二路由设备到第三路由设备的第三还原路径,其中,默认路由是第三路由设备发送给管理设备的。以图3所示的该网络100为例,假设网络域200为Stub域,网络域100为标准域,则,管理设备50在网络域100中确定出的第一还原路径包括:路径1和路径3,在网络域200中基于路由设备18发送的默认路由以及路由设备17发送的默认路由,确定的第三还原路径为:路径4,从而,将路径3和路径4进行简单拼接得到第二还原路径,即,路径34。Take the non-standard network domain as the stub domain as an example, the first routing device and the second routing device belong to the standard network domain, the second routing device and the third routing device belong to the stub domain, and the restoration from the first routing device to the third routing device is restored. In the process of the path, S52 may specifically include: the management device determines a third restoration path from the second routing device to the third routing device according to a default route, where the default route is sent by the third routing device to the management device. Taking the network 100 shown in FIG. 3 as an example, assuming that the network domain 200 is a stub domain and the network domain 100 is a standard domain, the first restoration path determined by the management device 50 in the network domain 100 includes: path 1 and path 1 3. In the network domain 200, based on the default route sent by the routing device 18 and the default route sent by the routing device 17, the determined third restoration path is: path 4, thereby simply splicing path 3 and path 4 to obtain the second restoration path, ie, path 34 .
需要说明的是,上述实施例中,路由设备向管理设备发送的汇聚信息,可以携带在任何能够被管理设备识别的消息中,消息的类型以及携带汇聚信息的方式,在本申请实施例中不作具体限定。It should be noted that, in the above embodiment, the aggregation information sent by the routing device to the management device can be carried in any message that can be identified by the management device. Specific restrictions.
相应的,本申请实施例还提供了一种第一路由设备600,如图6。该第一路由设备600包括:处理单元601和发送单元602。Correspondingly, an embodiment of the present application further provides a first routing device 600, as shown in FIG. 6 . The first routing device 600 includes: a processing unit 601 and a sending unit 602 .
其中,处理单元601,用于获得第一汇聚信息,第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文。The processing unit 601 is configured to obtain first aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and at least one outgoing interface of the first routing device is used for the first routing device. The routing device sends the packet to the second routing device.
发送单元602,用于向管理设备发送第一汇聚信息,以便管理设备基于第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的还原路径,第一LSDB是第一路由设备和第二路由设备所在的第一网络域对应的LSDB。The sending unit 602 is configured to send the first aggregation information to the management device, so that the management device determines the restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first link state database LSDB , the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
在一些实现方式中,处理单元601具体用于:基于转发表获得第一汇聚信息。例如:处理单元601具体用于:在转发表中确定第二路由设备的IP前缀对应的出接口标识,并且,将第二路由设备的IP前缀对应的出接口标识确定为第一汇聚信息中的第一路由设备的至少一个出接口标识。In some implementations, the processing unit 601 is specifically configured to: obtain the first aggregation information based on the forwarding table. For example, the processing unit 601 is specifically configured to: determine the outbound interface identifier corresponding to the IP prefix of the second routing device in the forwarding table, and determine the outbound interface identifier corresponding to the IP prefix of the second routing device as the outgoing interface identifier in the first aggregation information At least one outbound interface identifier of the first routing device.
在另一些实现方式中,处理单元601具体用于:从本地保存的最短路径树SPT计算结果中,获得第一汇聚信息。In some other implementations, the processing unit 601 is specifically configured to: obtain the first aggregation information from the locally saved shortest path tree SPT calculation result.
在又一些实现方式中,第二路由设备和第三路由设备属于第二网络域,该第一路由设备600的处理单元601,还用于获得第二汇聚信息,第二汇聚信息包括第二路由设备的标识和第三路由设备的标识;发送单元602,还用于向管理设备发送第二汇聚信息,以便管理设备基于第一汇聚信息、第二汇聚信息、第一网络域对应的第一LSDB中的邻接关系信息和第二网络域对应的第二LSDB中的邻接关系信息,确定第一路由设备经过第二路由设备到达第三路由设备的还原路径。In still other implementations, the second routing device and the third routing device belong to the second network domain, and the processing unit 601 of the first routing device 600 is further configured to obtain second aggregation information, where the second aggregation information includes the second routing The identifier of the device and the identifier of the third routing device; the sending unit 602 is further configured to send the second aggregation information to the management device, so that the management device is based on the first aggregation information, the second aggregation information, and the first LSDB corresponding to the first network domain The adjacency information in the LSDB and the adjacency information in the second LSDB corresponding to the second network domain determine the restoration path from the first routing device to the third routing device via the second routing device.
其中,该第一路由设备600还包括接收单元,该接收单元用于在获得第二汇聚信息之前,接收第三路由设备发布的路由消息,路由消息中携带第三路由设备的标识。作为一个示例,该接收单元具体可以用于:接收第三路由设备发送的LSA报文,LSA报文通过扩展 的TLV字段携带第三路由设备的标识。The first routing device 600 further includes a receiving unit, which is configured to receive a routing message advertised by a third routing device before obtaining the second aggregation information, where the routing message carries the identifier of the third routing device. As an example, the receiving unit may be specifically configured to: receive an LSA packet sent by a third routing device, where the LSA packet carries the identifier of the third routing device through an extended TLV field.
在一些实现方式中,发送单元602具体用于:备周期性的向管理设备发送第一汇聚信息。In some implementation manners, the sending unit 602 is specifically configured to: periodically send the first aggregation information to the management device.
在另一些实现方式中,发送单元602具体用于:基于触发指令,向管理设备发送第一汇聚信息。In other implementations, the sending unit 602 is specifically configured to: send the first aggregation information to the management device based on the trigger instruction.
需要说明的是,图6所示的第一路由设备600可以是图2或图4所示的示例中的第一路由设备,因此,第一路由设备600的各种具体实施例方式,可以参见图2对应的方法100以及图4对应的方法200的相关介绍,本实施例不再赘述。It should be noted that the first routing device 600 shown in FIG. 6 may be the first routing device in the example shown in FIG. 2 or FIG. 4 . Therefore, for various specific embodiments of the first routing device 600, please refer to The related introduction of the method 100 corresponding to FIG. 2 and the method 200 corresponding to FIG. 4 is not repeated in this embodiment.
相应的,本申请实施例还提供了一种管理设备700,如图7。该管理设备700包括:接收单元701和处理单元702。Correspondingly, an embodiment of the present application further provides a management device 700, as shown in FIG. 7 . The management device 700 includes: a receiving unit 701 and a processing unit 702 .
其中,接收单元701,用于从第一路由设备接收第一汇聚信息,第一汇聚信息包括第二路由设备的标识和第一路由设备的至少一个出接口标识,第一路由设备的至少一个出接口用于第一路由设备向第二路由设备发送报文。The receiving unit 701 is configured to receive first aggregation information from a first routing device, where the first aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the first routing device, and at least one outgoing interface identifier of the first routing device The interface is used by the first routing device to send packets to the second routing device.
处理单元702,用于基于第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定第一路由设备到第二路由设备的第一还原路径,第一LSDB是第一路由设备和第二路由设备所在的第一网络域对应的LSDB。The processing unit 702 is configured to determine the first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first link state database LSDB, where the first LSDB is the first routing device and the second routing device. The LSDB corresponding to the first network domain where the second routing device is located.
在一些实现方式中,该接收单元701还用于从第四路由设备接收第三汇聚信息,第三汇聚信息包括第二路由设备的标识和第四路由设备的至少一个出接口标识,第四路由设备的至少一个出接口用于第四路由设备向第二路由设备发送报文;那么,处理单元702具体可以用于:基于第一汇聚信息、第三汇聚信息和第一LSDB中的邻接关系信息,确定第一还原路径,第一还原路径经过第四路由设备。In some implementation manners, the receiving unit 701 is further configured to receive third aggregation information from the fourth routing device, where the third aggregation information includes an identifier of the second routing device and at least one outbound interface identifier of the fourth routing device, and the fourth routing device At least one outgoing interface of the device is used by the fourth routing device to send packets to the second routing device; then, the processing unit 702 may be specifically configured to: based on the first aggregation information, the third aggregation information and the adjacency relationship information in the first LSDB , determine the first restoration path, and the first restoration path passes through the fourth routing device.
该实现方式中,作为一个示例,处理单元702具体用于:基于第一汇聚信息和第一LSDB中的邻接关系信息,确定第一路由设备到第四路由设备的第一路径,第一LSDB中的邻接关系信息用于指示第一路由设备的至少一个出接口和第四路由设备的入接口相连;基于第三汇聚信息和第一LSDB中的邻接关系信息,确定第四路由设备到第二路由设备的第二路径,第一LSDB中的邻接关系信息还用于指示第四路由设备的至少一个出接口和第二路由设备的入接口相连;从而,基于第一路径和第二路径,确定第一还原路径。In this implementation, as an example, the processing unit 702 is specifically configured to: determine the first path from the first routing device to the fourth routing device based on the first aggregation information and the adjacency information in the first LSDB, and the first path in the first LSDB The adjacency relationship information is used to indicate that at least one outgoing interface of the first routing device is connected to the incoming interface of the fourth routing device; based on the third aggregation information and the adjacency relationship information in the first LSDB, determine the route from the fourth routing device to the second routing device. For the second path of the device, the adjacency information in the first LSDB is also used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device; thus, based on the first path and the second path, determine the first path. A restore path.
在另一些实现方式中,第二路由设备和第三路由设备属于第二网络域,处理单元702还用于确定第一路由设备到第三路由设备的第二还原路径,第二还原路径为第一路由设备经过第二路由设备到达第三路由设备的路径。In some other implementations, the second routing device and the third routing device belong to the second network domain, and the processing unit 702 is further configured to determine a second restoration path from the first routing device to the third routing device, where the second restoration path is the first restoration path. A path from a routing device to a third routing device via the second routing device.
作为一个示例,接收单元701,还用于接收第一路由设备发送的第二汇聚信息,第二汇聚信息包括第二路由设备的标识和第三路由设备的标识;那么,处理单元702具体可以用于:基于第一汇聚信息、第二汇聚信息和第一LSDB中的邻接关系信息,确定第一还原路径。As an example, the receiving unit 701 is further configured to receive the second aggregation information sent by the first routing device, where the second aggregation information includes the identifier of the second routing device and the identifier of the third routing device; then, the processing unit 702 can specifically use In: determining a first restoration path based on the first aggregation information, the second aggregation information and the adjacency relationship information in the first LSDB.
该示例下,接收单元701还用于接收第二路由设备发送的第四汇聚信息,第四汇聚信息包括第三路由设备的标识和第二路由设备的至少一个出接口标识,第二路由设备的至少 一个出接口用于第二路由设备向第三路由设备发送报文;那么,处理单元702具体可以用于:根据第四汇聚信息和第二网络域对应的第二LSDB中的邻接关系信息,确定第二路由设备到第三路由设备的第三还原路径;从而,基于第一还原路径和第三还原路径,确定第二还原路径。In this example, the receiving unit 701 is further configured to receive fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device. At least one outgoing interface is used for the second routing device to send packets to the third routing device; then, the processing unit 702 may be specifically configured to: according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain, A third restoration path from the second routing device to the third routing device is determined; thus, based on the first restoration path and the third restoration path, a second restoration path is determined.
其中,接收单元701还用于接收第三路由设备发送的第三路由设备的标识。The receiving unit 701 is further configured to receive the identifier of the third routing device sent by the third routing device.
作为另一个示例,该处理单元702具体可以用于:根据默认路由,确定第二路由设备到第三路由设备的第三还原路径;从而,基于第一还原路径和第三还原路径,确定第二还原路径。As another example, the processing unit 702 may be specifically configured to: determine the third restoration path from the second routing device to the third routing device according to the default route; thus, determine the second restoration path based on the first restoration path and the third restoration path restore path.
其中,接收单元701还用于接收第三路由设备发送的默认路由。The receiving unit 701 is further configured to receive the default route sent by the third routing device.
需要说明的是,图7所示的管理设备700可以是图2或图4所示的示例中的管理设备,因此,管理设备700的各种具体实施例方式,可以参见图2对应的方法100以及图4对应的方法200的相关介绍,本实施例不再赘述。It should be noted that the management device 700 shown in FIG. 7 may be the management device in the example shown in FIG. 2 or FIG. 4 . Therefore, for various specific embodiments of the management device 700, reference may be made to the method 100 corresponding to FIG. 2 . As well as the related introduction of the method 200 corresponding to FIG. 4 , details are not repeated in this embodiment.
相应的,本申请实施例还提供了一种第三路由设备800,如图8。该第三路由设备800包括:发送单元801。Correspondingly, an embodiment of the present application further provides a third routing device 800, as shown in FIG. 8 . The third routing device 800 includes: a sending unit 801 .
其中,该发送单元801用于向第一路由设备发送路由消息,第一路由设备属于第一网络域,第三路由设备属于第二网络域,路由消息中携带第三路由设备的标识,以便第一路由设备基于第三路由设备的标识获得并向管理设备发送第二汇聚信息,第二汇聚信息包括第三路由设备的标识和第二路由设备的标识,第二路由设备为第一网络域和第二网络域的边界设备。The sending unit 801 is configured to send a routing message to the first routing device, the first routing device belongs to the first network domain, the third routing device belongs to the second network domain, and the routing message carries the identifier of the third routing device, so that the first routing device belongs to the first network domain, and the third routing device belongs to the second network domain. A routing device obtains and sends second aggregation information to the management device based on the identifier of the third routing device, where the second aggregation information includes the identifier of the third routing device and the identifier of the second routing device, and the second routing device is the first network domain and the second routing device. A border device of the second network domain.
作为一个示例,该发送单元801具体用于向第一路由设备发送LSA报文,LSA报文通过扩展的TLV字段携带第三路由设备的标识。As an example, the sending unit 801 is specifically configured to send an LSA packet to the first routing device, where the LSA packet carries the identifier of the third routing device through an extended TLV field.
其中,发送单元801还用于向管理设备发送第三路由设备的标识。The sending unit 801 is further configured to send the identifier of the third routing device to the management device.
需要说明的是,图8所示的第三路由设备800可以是图4所示的示例中的第三路由设备,因此,第三路由设备800的各种具体实施例方式,可以参见图4对应的方法200的相关介绍,本实施例不再赘述。It should be noted that the third routing device 800 shown in FIG. 8 may be the third routing device in the example shown in FIG. 4 . Therefore, various specific embodiments of the third routing device 800 can be referred to in FIG. 4 . The related introduction of the method 200 is not repeated in this embodiment.
参见图9,本申请实施例提供了一种第一路由设备900。该第一路由设备900可以是上述任一实施例中除了目的路由设备以外的任意节点,例如可以是图1所示所示实施例中的路由设备10、路由设备11等,也可以是图2所示实施例中的第一路由设备。该第一路由设备900包括至少一个处理器901,总线系统902,存储器903以及至少一个收发器904。Referring to FIG. 9 , an embodiment of the present application provides a first routing device 900 . The first routing device 900 may be any node other than the destination routing device in any of the foregoing embodiments, for example, may be the routing device 10, the routing device 11, etc. in the embodiment shown in FIG. 1, or may be the one in FIG. 2 The first routing device in the illustrated embodiment. The first routing device 900 includes at least one processor 901 , a bus system 902 , a memory 903 and at least one transceiver 904 .
该第一路由设备900是一种硬件结构的装置,可以用于实现图6所示的第一路由设备600中的功能模块。例如,本领域技术人员可以想到图6所示的第一路由设备600中的处理单元601可以通过该至少一个处理器901调用存储器903中的代码来实现,图6所示的第一路由设备600中的发送单元602可以通过该收发器904来实现。The first routing device 900 is a device with a hardware structure, and can be used to implement the functional modules in the first routing device 600 shown in FIG. 6 . For example, those skilled in the art can think that the processing unit 601 in the first routing device 600 shown in FIG. 6 can be implemented by calling the code in the memory 903 by the at least one processor 901, and the first routing device 600 shown in FIG. The sending unit 602 in can be realized by the transceiver 904 .
可选的,该第一路由设备900还可用于实现上述任一实施例中第一路由设备的功能。Optionally, the first routing device 900 may also be used to implement the function of the first routing device in any of the foregoing embodiments.
可选的,上述处理器901可以是一个通用中央处理器(central processing unit,CPU), 网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。Optionally, the above-mentioned processor 901 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
上述总线系统902可包括一通路,在上述组件之间传送信息。The bus system 902 described above may include a path to transfer information between the above described components.
上述收发器904,用于与其他设备或通信网络通信。The above transceiver 904 is used to communicate with other devices or communication networks.
上述存储器903可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The above-mentioned memory 903 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions. Types of dynamic storage devices, which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.
其中,存储器903用于存储执行本申请方案的应用程序代码,并由处理器901来控制执行。处理器901用于执行存储器903中存储的应用程序代码,从而实现本专利方法中的功能。Wherein, the memory 903 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 901 . The processor 901 is used to execute the application program code stored in the memory 903, so as to realize the functions in the method of this patent.
在具体实现中,作为一种实施例,处理器901可以包括一个或多个CPU,例如图9中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 901 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 9 .
在具体实现中,作为一种实施例,该第一路由设备900可以包括多个处理器,例如图9中的处理器901和处理器907。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the first routing device 900 may include multiple processors, for example, the processor 901 and the processor 907 in FIG. 9 . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
参见图10,本申请实施例提供了一种管理设备1000。该管理设备1000可以是上述任一实施例中的管理设备,例如可以是图1或图3所示所示实施例中的管理设备50,也可以是图2或图4所示实施例中的管理设备。该管理设备1000包括至少一个处理器1001,总线系统1002,存储器1003以及至少一个收发器1004。Referring to FIG. 10 , an embodiment of the present application provides a management device 1000 . The management device 1000 may be the management device in any of the foregoing embodiments, for example, may be the management device 50 in the embodiment shown in FIG. 1 or FIG. 3 , or may be the management device 50 in the embodiment shown in FIG. 2 or FIG. 4 . Manage devices. The management device 1000 includes at least one processor 1001 , a bus system 1002 , a memory 1003 and at least one transceiver 1004 .
该管理设备1000是一种硬件结构的装置,可以用于实现图7所述的管理设备700中的功能模块。例如,本领域技术人员可以想到图7所示的管理设备700中的处理单元702可以通过该至少一个处理器1001调用存储器1003中的代码来实现,图7所示的管理设备700中的接收单元701可以通过该收发器1004来实现。The management device 1000 is a device with a hardware structure, and can be used to implement the functional modules in the management device 700 described in FIG. 7 . For example, those skilled in the art can think that the processing unit 702 in the management device 700 shown in FIG. 7 can be implemented by calling the code in the memory 1003 by the at least one processor 1001, and the receiving unit in the management device 700 shown in FIG. 7 can be implemented 701 can be implemented by the transceiver 1004 .
可选的,该管理设备1000还可用于实现上述任一实施例中管理设备的功能。Optionally, the management device 1000 may also be used to implement the functions of the management device in any of the foregoing embodiments.
可选的,上述处理器1001可以是一个通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。Optionally, the above-mentioned processor 1001 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
上述总线系统1002可包括一通路,在上述组件之间传送信息。The bus system 1002 described above may include a path to transfer information between the above described components.
上述收发器1004,用于与其他设备或通信网络通信。The above transceiver 1004 is used to communicate with other devices or communication networks.
上述存储器1003可以是只读存储器(read-only memory,ROM)或可存储静态信息和 指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The above-mentioned memory 1003 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions. Types of dynamic storage devices, which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.
其中,存储器1003用于存储执行本申请方案的应用程序代码,并由处理器1001来控制执行。处理器1001用于执行存储器1003中存储的应用程序代码,从而实现本专利方法中的功能。Wherein, the memory 1003 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 1001 . The processor 1001 is configured to execute the application program code stored in the memory 1003, thereby realizing the functions in the method of the present patent.
在具体实现中,作为一种实施例,处理器1001可以包括一个或多个CPU,例如图10中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1001 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 10 .
在具体实现中,作为一种实施例,该管理设备1000可以包括多个处理器,例如图10中的处理器1001和处理器1007。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the management device 1000 may include multiple processors, such as the processor 1001 and the processor 1007 in FIG. 10 . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
参见图11,本申请实施例提供了一种第三路由设备1100。该第三路由设备1100可以是上述任一实施例中的任意节点,例如可以是图3所示所示实施例中的路由设备17、路由设备18等,也可以是图4所示实施例中的第三路由设备。该第三路由设备1100包括至少一个处理器1101,总线系统1102,存储器1103以及至少一个收发器1104。Referring to FIG. 11 , an embodiment of the present application provides a third routing device 1100 . The third routing device 1100 may be any node in any of the foregoing embodiments, for example, may be the routing device 17, the routing device 18, etc. in the embodiment shown in FIG. 3, or may be the embodiment shown in FIG. 4 . the third routing device. The third routing device 1100 includes at least one processor 1101 , a bus system 1102 , a memory 1103 and at least one transceiver 1104 .
该第三路由设备1100是一种硬件结构的装置,可以用于实现图8所示的第三路由设备800中的功能模块。例如,本领域技术人员可以想到图8所示的第三路由设备800中的发送单元801可以通过该收发器1104来实现。The third routing device 1100 is a device with a hardware structure, and can be used to implement the functional modules in the third routing device 800 shown in FIG. 8 . For example, those skilled in the art can think that the sending unit 801 in the third routing device 800 shown in FIG. 8 can be implemented by the transceiver 1104 .
可选的,该第三路由设备1100还可用于实现上述任一实施例中第三路由设备的功能。Optionally, the third routing device 1100 may also be used to implement the functions of the third routing device in any of the foregoing embodiments.
可选的,上述处理器1101可以是一个通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。Optionally, the above-mentioned processor 1101 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
上述总线系统1102可包括一通路,在上述组件之间传送信息。The bus system 1102 described above may include a path to transfer information between the above described components.
上述收发器1104,用于与其他设备或通信网络通信。The above transceiver 1104 is used to communicate with other devices or communication networks.
上述存储器1103可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存 储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The above-mentioned memory 1103 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions. Types of dynamic storage devices, which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.
其中,存储器1103用于存储执行本申请方案的应用程序代码,并由处理器1101来控制执行。处理器1101用于执行存储器1103中存储的应用程序代码,从而实现本专利方法中的功能。Wherein, the memory 1103 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 1101 . The processor 1101 is used for executing the application program code stored in the memory 1103, so as to realize the functions in the method of the present patent.
在具体实现中,作为一种实施例,处理器1101可以包括一个或多个CPU,例如图11中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 11 .
在具体实现中,作为一种实施例,该第三路由设备1100可以包括多个处理器,例如图11中的处理器1101和处理器1107。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the third routing device 1100 may include multiple processors, for example, the processor 1101 and the processor 1107 in FIG. 11 . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
参见图12,本申请实施例提供了一种网络系统1200,所述网络系统1200包括:第一路由设备1201、管理设备1202和第三路由设备1203。其中,第一路由设备1201具体可以是图6所示的第一路由设备600或图9所示的第一路由设备900;管理设备1202具体可以是图7所示的管理设备700或图10所示的管理设备1000;第三路由设备1203具体可以是图8所示的第三设备800或图11所示的第三路由设备1100。Referring to FIG. 12 , an embodiment of the present application provides a network system 1200 , where the network system 1200 includes: a first routing device 1201 , a management device 1202 , and a third routing device 1203 . The first routing device 1201 may specifically be the first routing device 600 shown in FIG. 6 or the first routing device 900 shown in FIG. 9 ; the management device 1202 may specifically be the management device 700 shown in FIG. 7 or the first routing device 900 shown in FIG. 10 . The third routing device 1203 may specifically be the third device 800 shown in FIG. 8 or the third routing device 1100 shown in FIG. 11 .
可选的,第一路由设备1201可以是图4所示实施例中的第一路由设备,第三路由设备1202可以是图4所示实施例中的第三路由设备,管理设备可以是图4所示实施例中的管理设备。Optionally, the first routing device 1201 may be the first routing device in the embodiment shown in FIG. 4 , the third routing device 1202 may be the third routing device in the embodiment shown in FIG. 4 , and the management device may be FIG. 4 Management device in the illustrated embodiment.
此外,本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有程序代码或指令,当其在计算机上运行时,使得计算机执行以上图2或图4所示实施例中任意一种实现方式下的方法。In addition, an embodiment of the present application also provides a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute the implementation shown in FIG. 2 or FIG. 4 above. The method in any of the implementations in the example.
此外,本申请实施例还提供了一种计算机程序产品,当其在计算机上运行时,使得计算机执行前述方法100中任意一种实现方式的方法,或者,使得计算机执行前述方法200中任意一种实现方式的方法。In addition, the embodiments of the present application also provide a computer program product, which, when running on a computer, causes the computer to execute any one of the implementation manners of the foregoing method 100 , or causes the computer to execute any one of the foregoing methods 200 . method of implementation.
本申请实施例中提到的“第一还原路径”、“第一汇聚信息”等名称中的“第一”只是用来做名字标识,并不代表顺序上的第一。该规则同样适用于“第二”等。The "first" in the names such as "first restoration path" and "first aggregation information" mentioned in the embodiments of the present application are only used for name identification, and do not represent the first in order. The same rule applies to "second" etc.
应理解,本申请实施例中提到的“基于根据A确定B”并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that "determining B based on A" mentioned in the embodiments of the present application does not mean that B is only determined according to A, and B can also be determined according to A and/or other information.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如只读存储器(英文:read-only memory,ROM)/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者诸如路由器等网络通信设备)执行本申请各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as read-only memory (English: read-only memory, ROM)/RAM, magnetic disk, An optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the methods described in various embodiments or some parts of the embodiments of the present application.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互 相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例和设备实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiments and device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for related parts. The device and system embodiments described above are only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上所述仅是本申请的优选实施方式,并非用于限定本申请的保护范围。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the present application, several improvements and modifications can also be made, and these improvements and modifications should also be regarded as the protection scope of the present application.

Claims (44)

  1. 一种路径还原的方法,其特征在于,包括:A method for path restoration, comprising:
    第一路由设备获得第一汇聚信息,所述第一汇聚信息包括第二路由设备的标识和所述第一路由设备的至少一个出接口标识,所述第一路由设备的至少一个出接口用于所述第一路由设备向所述第二路由设备发送报文;The first routing device obtains first aggregation information, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and the at least one outgoing interface of the first routing device is used for sending, by the first routing device, a packet to the second routing device;
    所述第一路由设备向管理设备发送所述第一汇聚信息,以便所述管理设备基于所述第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定所述第一路由设备到所述第二路由设备的还原路径,所述第一LSDB是所述第一路由设备和所述第二路由设备所在的第一网络域对应的LSDB。The first routing device sends the first aggregation information to a management device, so that the management device determines the first routing device based on the first aggregation information and the adjacency information in the first link state database LSDB The restoration path to the second routing device, where the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  2. 根据权利要求1所述的方法,其特征在于,所述第一路由设备获得第一汇聚信息,包括:The method according to claim 1, wherein obtaining the first aggregation information by the first routing device comprises:
    所述第一路由设备基于转发表获得所述第一汇聚信息。The first routing device obtains the first aggregation information based on the forwarding table.
  3. 根据权利要求2所述的方法,其特征在于,所述第一路由设备基于转发表获得所述第一汇聚信息,包括:The method according to claim 2, wherein the first routing device obtains the first aggregation information based on a forwarding table, comprising:
    所述第一路由设备在所述转发表中确定所述第二路由设备的互联网协议IP前缀对应的出接口标识;The first routing device determines, in the forwarding table, an outbound interface identifier corresponding to the Internet Protocol IP prefix of the second routing device;
    所述第一路由设备将所述第二路由设备的IP前缀对应的出接口标识确定为所述第一汇聚信息中的所述第一路由设备的至少一个出接口标识。The first routing device determines an outgoing interface identifier corresponding to the IP prefix of the second routing device as at least one outgoing interface identifier of the first routing device in the first aggregation information.
  4. 根据权利要求1所述的方法,其特征在于,所述第一路由设备获得第一汇聚信息,包括:The method according to claim 1, wherein obtaining the first aggregation information by the first routing device comprises:
    所述第一路由设备从本地保存的最短路径树SPT计算结果中,获得所述第一汇聚信息。The first routing device obtains the first aggregation information from the locally stored shortest path tree SPT calculation result.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第二路由设备和第三路由设备属于第二网络域,所述方法还包括:The method according to any one of claims 1-4, wherein the second routing device and the third routing device belong to a second network domain, and the method further comprises:
    所述第一路由设备获得第二汇聚信息,所述第二汇聚信息包括所述第二路由设备的标识和所述第三路由设备的标识;obtaining, by the first routing device, second aggregation information, where the second aggregation information includes an identifier of the second routing device and an identifier of the third routing device;
    所述第一路由设备向所述管理设备发送所述第二汇聚信息,以便所述管理设备基于所述第一汇聚信息、所述第二汇聚信息、所述第一网络域对应的所述第一LSDB中的邻接关系信息和所述第二网络域对应的第二LSDB中的邻接关系信息,确定所述第一路由设备经过所述第二路由设备到达所述第三路由设备的还原路径。The first routing device sends the second aggregation information to the management device, so that the management device based on the first aggregation information, the second aggregation information, the first network domain corresponding to the first network domain. The adjacency relationship information in an LSDB and the adjacency relationship information in the second LSDB corresponding to the second network domain determine a restoration path from the first routing device to the third routing device via the second routing device.
  6. 根据权利要求5所述的方法,其特征在于,所述第一路由设备获得所述第二汇聚信息之前,所述方法还包括:The method according to claim 5, wherein before the first routing device obtains the second aggregation information, the method further comprises:
    所述第一路由设备接收所述第三路由设备发布的路由消息,所述路由消息中携带所述第三路由设备的标识。The first routing device receives a routing message advertised by the third routing device, where the routing message carries the identifier of the third routing device.
  7. 根据权利要求6所述的方法,其特征在于,所述第一路由设备接收所述第三路由设备发布的路由消息,包括:The method according to claim 6, wherein the receiving, by the first routing device, the routing message advertised by the third routing device comprises:
    所述第一路由设备接收所述第三路由设备发送的链路状态通告LSA报文,所述LSA报文通过扩展的长度类型值TLV字段携带所述第三路由设备的标识。The first routing device receives the link state advertisement LSA packet sent by the third routing device, and the LSA packet carries the identifier of the third routing device through an extended length type value TLV field.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一路由设备向管理设备发送所述第一汇聚信息,包括:The method according to any one of claims 1-7, wherein the sending, by the first routing device, the first aggregation information to the management device comprises:
    所述第一路由设备周期性的向所述管理设备发送所述第一汇聚信息。The first routing device periodically sends the first aggregation information to the management device.
  9. 根据权利要求1-7任一项所述的方法,其特征在于,所述第一路由设备向管理设备发送所述第一汇聚信息,包括:The method according to any one of claims 1-7, wherein the sending, by the first routing device, the first aggregation information to the management device comprises:
    所述第一路由设备基于触发指令,向所述管理设备发送所述第一汇聚信息。The first routing device sends the first aggregation information to the management device based on the trigger instruction.
  10. 一种路由还原的方法,其特征在于,包括:A method for route restoration, comprising:
    管理设备从第一路由设备接收第一汇聚信息,所述第一汇聚信息包括第二路由设备的标识和所述第一路由设备的至少一个出接口标识,所述第一路由设备的至少一个出接口用于所述第一路由设备向所述第二路由设备发送报文;The management device receives the first aggregation information from the first routing device, where the first aggregation information includes the identifier of the second routing device and the identifier of at least one outgoing interface of the first routing device, and the at least one outgoing interface of the first routing device the interface is used by the first routing device to send a packet to the second routing device;
    所述管理设备基于所述第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定所述第一路由设备到所述第二路由设备的第一还原路径,所述第一LSDB是所述第一路由设备和所述第二路由设备所在的第一网络域对应的LSDB。The management device determines the first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency information in the first link state database LSDB, and the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    管理设备从第四路由设备接收第三汇聚信息,所述第三汇聚信息包括第二路由设备的标识和所述第四路由设备的至少一个出接口标识,所述第四路由设备的至少一个出接口用于所述第四路由设备向所述第二路由设备发送报文;The management device receives third aggregation information from the fourth routing device, where the third aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the fourth routing device, and at least one outgoing interface identifier of the fourth routing device. the interface is used for the fourth routing device to send a packet to the second routing device;
    所述管理设备基于所述第一汇聚信息和第一LSDB中的邻接关系信息,确定所述第一路由设备到所述第二路由设备的第一还原路径,包括:The management device determines, based on the first aggregation information and the adjacency information in the first LSDB, the first restoration path from the first routing device to the second routing device, including:
    所述管理设备基于所述第一汇聚信息、所述第三汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第一还原路径,所述第一还原路径经过所述第四路由设备。The management device determines the first restoration path based on the first aggregation information, the third aggregation information, and the adjacency relationship information in the first LSDB, and the first restoration path passes through the fourth route equipment.
  12. 根据权利要求11所述的方法,其特征在于,所述管理设备基于所述第一汇聚信息、所述第三汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第一还原路径,包括:The method according to claim 11, wherein the management device determines the first restoration path based on the first aggregation information, the third aggregation information and the adjacency relationship information in the first LSDB ,include:
    所述管理设备基于所述第一汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第一路由设备到所述第四路由设备的第一路径,所述第一LSDB中的邻接关系信息用于指示所述第一路由设备的至少一个出接口和所述第四路由设备的入接口相连;The management device determines the first path from the first routing device to the fourth routing device based on the first aggregation information and the adjacency relationship information in the first LSDB, and the adjacency in the first LSDB The relationship information is used to indicate that at least one outgoing interface of the first routing device is connected to the incoming interface of the fourth routing device;
    所述管理设备基于所述第三汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第四路由设备到所述第二路由设备的第二路径,所述第一LSDB中的邻接关系信息还用于指示所述第四路由设备的至少一个出接口和所述第二路由设备的入接口相连;The management device determines the second path from the fourth routing device to the second routing device based on the third aggregation information and the adjacency relationship information in the first LSDB, and the adjacency in the first LSDB The relationship information is further used to indicate that at least one outgoing interface of the fourth routing device is connected to the incoming interface of the second routing device;
    所述管理设备基于所述第一路径和所述第二路径,确定所述第一还原路径。The management device determines the first restoration path based on the first path and the second path.
  13. 根据权利要求10-12任一项所述的方法,其特征在于,所述第二路由设备和第三路由设备属于第二网络域,所述方法还包括:The method according to any one of claims 10-12, wherein the second routing device and the third routing device belong to a second network domain, and the method further comprises:
    所述管理设备确定所述第一路由设备到所述第三路由设备的第二还原路径,所述第二还原路径为所述第一路由设备经过所述第二路由设备到达所述第三路由设备的路径。The management device determines a second restoration path from the first routing device to the third routing device, where the second restoration path is for the first routing device to reach the third route through the second routing device The path to the device.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13, wherein the method further comprises:
    所述管理设备接收所述第一路由设备发送的第二汇聚信息,所述第二汇聚信息包括所述第二路由设备的标识和所述第三路由设备的标识;receiving, by the management device, second aggregation information sent by the first routing device, where the second aggregation information includes an identifier of the second routing device and an identifier of the third routing device;
    所述管理设备基于所述第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定所述第一路由设备到所述第二路由设备的第一还原路径,包括:The management device determines, based on the first aggregation information and the adjacency information in the first link state database LSDB, the first restoration path from the first routing device to the second routing device, including:
    所述管理设备基于所述第一汇聚信息、所述第二汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第一还原路径。The management device determines the first restoration path based on the first aggregation information, the second aggregation information and the adjacency relationship information in the first LSDB.
  15. 根据权利要求13或14所述的方法,其特征在于,所述方法还包括:The method according to claim 13 or 14, wherein the method further comprises:
    所述管理设备接收所述第二路由设备发送的第四汇聚信息,所述第四汇聚信息包括所述第三路由设备的标识和所述第二路由设备的至少一个出接口标识,所述第二路由设备的至少一个出接口用于所述第二路由设备向所述第三路由设备发送报文;The management device receives fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device, and the first At least one outgoing interface of the second routing device is used for the second routing device to send packets to the third routing device;
    所述管理设备确定所述第一路由设备到所述第三路由设备的第二还原路径,包括:The management device determines the second restoration path from the first routing device to the third routing device, including:
    所述管理设备根据所述第四汇聚信息和所述第二网络域对应的第二LSDB中的邻接关系信息,确定所述第二路由设备到所述第三路由设备的第三还原路径;The management device determines a third restoration path from the second routing device to the third routing device according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain;
    所述管理设备基于所述第一还原路径和所述第三还原路径,确定所述第二还原路径。The management device determines the second restoration path based on the first restoration path and the third restoration path.
  16. 根据权利要求13-15任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 13-15, wherein the method further comprises:
    所述管理设备接收所述第三路由设备发送的所述第三路由设备的标识。The management device receives the identifier of the third routing device sent by the third routing device.
  17. 根据权利要求13所述的方法,其特征在于,所述管理设备确定所述第一路由设备到所述第三路由设备的第二还原路径,包括:The method according to claim 13, wherein the management device determines the second restoration path from the first routing device to the third routing device, comprising:
    所述管理设备根据默认路由,确定所述第二路由设备到所述第三路由设备的第三还原路径;The management device determines, according to the default route, a third restoration path from the second routing device to the third routing device;
    所述管理设备基于所述第一还原路径和所述第三还原路径,确定所述第二还原路径。The management device determines the second restoration path based on the first restoration path and the third restoration path.
  18. 根据权利要求17所述的方法,其特征在于,所述方法还包括:The method of claim 17, wherein the method further comprises:
    所述管理设备接收所述第三路由设备发送的所述默认路由。The management device receives the default route sent by the third routing device.
  19. 一种路由还原的方法,其特征在于,包括:A method for route restoration, comprising:
    第三路由设备向第一路由设备发送路由消息,所述第一路由设备属于第一网络域,所述第三路由设备属于第二网络域,所述路由消息中携带所述第三路由设备的标识,以便所述第一路由设备基于所述第三路由设备的标识获得并向管理设备发送第二汇聚信息,所述第二汇聚信息包括所述第三路由设备的标识和第二路由设备的标识,所述第二路由设备为所述第一网络域和所述第二网络域的边界设备。The third routing device sends a routing message to the first routing device, the first routing device belongs to the first network domain, the third routing device belongs to the second network domain, and the routing message carries the information of the third routing device. identification, so that the first routing device obtains and sends second aggregation information to the management device based on the identification of the third routing device, where the second aggregation information includes the identification of the third routing device and the identification of the second routing device. identification, the second routing device is a border device of the first network domain and the second network domain.
  20. 根据权利要求19所述的方法,其特征在于,所述第三路由设备向第一路由设备发送路由消息,包括:The method according to claim 19, wherein the third routing device sends a routing message to the first routing device, comprising:
    所述第三路由设备向所述第一路由设备发送链路状态通告LSA报文,所述LSA报文通过扩展的长度类型值TLV字段携带所述第三路由设备的标识。The third routing device sends a link state advertisement LSA packet to the first routing device, where the LSA packet carries the identifier of the third routing device through an extended length type value TLV field.
  21. 根据权利要求19或20所述的方法,其特征在于,所述方法还包括:The method according to claim 19 or 20, wherein the method further comprises:
    所述第三路由设备向所述管理设备发送所述第三路由设备的标识。The third routing device sends the identification of the third routing device to the management device.
  22. 一种路由设备,其特征在于,包括:A routing device, characterized in that it includes:
    处理单元,用于获得第一汇聚信息,所述第一汇聚信息包括第二路由设备的标识和所述第一路由设备的至少一个出接口标识,所述第一路由设备的至少一个出接口用于所述第一路由设备向所述第二路由设备发送报文;The processing unit is configured to obtain first aggregation information, where the first aggregation information includes the identifier of the second routing device and the identifier of at least one outgoing interface of the first routing device, and the at least one outgoing interface of the first routing device is used for sending a packet from the first routing device to the second routing device;
    发送单元,用于向管理设备发送所述第一汇聚信息,以便所述管理设备基于所述第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定所述第一路由设备到所述第二路由设备的还原路径,所述第一LSDB是所述第一路由设备和所述第二路由设备所在的第一网络域对应的LSDB。A sending unit, configured to send the first aggregation information to a management device, so that the management device determines, based on the first aggregation information and the adjacency information in the first link state database LSDB, that the first routing device to The restoration path of the second routing device, and the first LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  23. 根据权利要求22所述的路由设备,其特征在于,所述处理单元,具体用于:The routing device according to claim 22, wherein the processing unit is specifically configured to:
    基于转发表获得所述第一汇聚信息。The first aggregation information is obtained based on the forwarding table.
  24. 根据权利要求23所述的路由设备,其特征在于,所述处理单元,具体用于:The routing device according to claim 23, wherein the processing unit is specifically configured to:
    在所述转发表中确定所述第二路由设备的互联网协议IP前缀对应的出接口标识;determining, in the forwarding table, an outgoing interface identifier corresponding to the Internet Protocol IP prefix of the second routing device;
    将所述第二路由设备的IP前缀对应的出接口标识确定为所述第一汇聚信息中的所述第一路由设备的至少一个出接口标识。The outgoing interface identifier corresponding to the IP prefix of the second routing device is determined as at least one outgoing interface identifier of the first routing device in the first aggregation information.
  25. 根据权利要求22所述的路由设备,其特征在于,所述处理单元,具体用于:The routing device according to claim 22, wherein the processing unit is specifically configured to:
    从本地保存的最短路径树SPT计算结果中,获得所述第一汇聚信息。The first aggregation information is obtained from the locally stored shortest path tree SPT calculation result.
  26. 根据权利要求22-25任一项所述的路由设备,其特征在于,所述第二路由设备和第三路由设备属于第二网络域,所述处理单元,还用于:The routing device according to any one of claims 22-25, wherein the second routing device and the third routing device belong to a second network domain, and the processing unit is further configured to:
    获得第二汇聚信息,所述第二汇聚信息包括所述第二路由设备的标识和所述第三路由设备的标识;obtaining second aggregation information, where the second aggregation information includes an identifier of the second routing device and an identifier of the third routing device;
    所述发送单元,还用于:The sending unit is also used for:
    向所述管理设备发送所述第二汇聚信息,以便所述管理设备基于所述第一汇聚信息、所述第二汇聚信息、所述第一网络域对应的所述第一LSDB中的邻接关系信息和所述第二网络域对应的第二LSDB中的邻接关系信息,确定所述第一路由设备经过所述第二路由设备到达所述第三路由设备的还原路径。Send the second aggregation information to the management device, so that the management device is based on the first aggregation information, the second aggregation information, and the adjacency relationship in the first LSDB corresponding to the first network domain information and the adjacency relationship information in the second LSDB corresponding to the second network domain to determine the restoration path from the first routing device to the third routing device via the second routing device.
  27. 根据权利要求26所述的路由设备,其特征在于,所述路由设备还包括:The routing device according to claim 26, wherein the routing device further comprises:
    接收单元,用于在获得所述第二汇聚信息之前,接收所述第三路由设备发布的路由消息,所述路由消息中携带所述第三路由设备的标识。A receiving unit, configured to receive, before obtaining the second aggregation information, a routing message advertised by the third routing device, where the routing message carries the identifier of the third routing device.
  28. 根据权利要求27所述的路由设备,其特征在于,所述接收单元,具体用于:The routing device according to claim 27, wherein the receiving unit is specifically configured to:
    接收所述第三路由设备发送的链路状态通告LSA报文,所述LSA报文通过扩展的长度类型值TLV字段携带所述第三路由设备的标识。Receive a link state advertisement LSA packet sent by the third routing device, where the LSA packet carries the identifier of the third routing device through an extended length type value TLV field.
  29. 根据权利要求22-28任一项所述的路由设备,其特征在于,所述发送单元,具体用于:The routing device according to any one of claims 22-28, wherein the sending unit is specifically configured to:
    周期性的向所述管理设备发送所述第一汇聚信息。The first aggregation information is periodically sent to the management device.
  30. 根据权利要求22-28任一项所述的路由设备,其特征在于,所述发送单元,具体用于:The routing device according to any one of claims 22-28, wherein the sending unit is specifically configured to:
    基于触发指令,向所述管理设备发送所述第一汇聚信息。Based on the trigger instruction, the first aggregation information is sent to the management device.
  31. 一种管理设备,其特征在于,包括:A management device, characterized in that it includes:
    接收单元,用于从第一路由设备接收第一汇聚信息,所述第一汇聚信息包括第二路由设备的标识和所述第一路由设备的至少一个出接口标识,所述第一路由设备的至少一个出接口用于所述第一路由设备向所述第二路由设备发送报文;A receiving unit, configured to receive first aggregation information from a first routing device, where the first aggregation information includes an identifier of the second routing device and at least one outgoing interface identifier of the first routing device, and the first routing device's identifier at least one outbound interface is used for the first routing device to send packets to the second routing device;
    处理单元,用于基于所述第一汇聚信息和第一链路状态数据库LSDB中的邻接关系信息,确定所述第一路由设备到所述第二路由设备的第一还原路径,所述第一LSDB是所述第一路由设备和所述第二路由设备所在的第一网络域对应的LSDB。a processing unit, configured to determine a first restoration path from the first routing device to the second routing device based on the first aggregation information and the adjacency relationship information in the first link state database LSDB, the first The LSDB is the LSDB corresponding to the first network domain where the first routing device and the second routing device are located.
  32. 根据权利要求31所述的管理设备,其特征在于,所述接收单元,还用于:The management device according to claim 31, wherein the receiving unit is further configured to:
    从第四路由设备接收第三汇聚信息,所述第三汇聚信息包括第二路由设备的标识和所述第四路由设备的至少一个出接口标识,所述第四路由设备的至少一个出接口用于所述第四路由设备向所述第二路由设备发送报文;Receive third aggregation information from the fourth routing device, where the third aggregation information includes the identifier of the second routing device and the identifier of at least one outgoing interface of the fourth routing device, and the at least one outgoing interface of the fourth routing device is used for sending a packet from the fourth routing device to the second routing device;
    所述处理单元,具体用于:The processing unit is specifically used for:
    基于所述第一汇聚信息、所述第三汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第一还原路径,所述第一还原路径经过所述第四路由设备。Based on the first aggregation information, the third aggregation information, and the adjacency relationship information in the first LSDB, the first restoration path is determined, and the first restoration path passes through the fourth routing device.
  33. 根据权利要求32所述的管理设备,其特征在于,所述处理单元,具体用于:The management device according to claim 32, wherein the processing unit is specifically configured to:
    基于所述第一汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第一路由设备到所述第四路由设备的第一路径,所述第一LSDB中的邻接关系信息用于指示所述第一路由设备的至少一个出接口和所述第四路由设备的入接口相连;A first path from the first routing device to the fourth routing device is determined based on the first aggregation information and the adjacency information in the first LSDB, where the adjacency information in the first LSDB is used for Instructing at least one outgoing interface of the first routing device to be connected to the incoming interface of the fourth routing device;
    基于所述第三汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第四路由设备到所述第二路由设备的第二路径,所述第一LSDB中的邻接关系信息还用于指示所述第四路由设备的至少一个出接口和所述第二路由设备的入接口相连;A second path from the fourth routing device to the second routing device is determined based on the third aggregation information and the adjacency relationship information in the first LSDB, and the adjacency relationship information in the first LSDB is also used instructing at least one outgoing interface of the fourth routing device to be connected to the incoming interface of the second routing device;
    基于所述第一路径和所述第二路径,确定所述第一还原路径。The first restoration path is determined based on the first path and the second path.
  34. 根据权利要求31-33任一项所述的管理设备,其特征在于,所述第二路由设备和第三路由设备属于第二网络域,所述方处理单元,还用于:The management device according to any one of claims 31-33, wherein the second routing device and the third routing device belong to the second network domain, and the square processing unit is further configured to:
    确定所述第一路由设备到所述第三路由设备的第二还原路径,所述第二还原路径为所述第一路由设备经过所述第二路由设备到达所述第三路由设备的路径。A second restoration path from the first routing device to the third routing device is determined, where the second restoration path is a path from the first routing device to the third routing device via the second routing device.
  35. 根据权利要求34所述的管理设备,其特征在于,所述接收单元,还用于:The management device according to claim 34, wherein the receiving unit is further configured to:
    接收所述第一路由设备发送的第二汇聚信息,所述第二汇聚信息包括所述第二路由设备的标识和所述第三路由设备的标识;receiving second aggregation information sent by the first routing device, where the second aggregation information includes an identifier of the second routing device and an identifier of the third routing device;
    所述处理单元,具体用于:The processing unit is specifically used for:
    基于所述第一汇聚信息、所述第二汇聚信息和所述第一LSDB中的邻接关系信息,确定所述第一还原路径。The first restoration path is determined based on the first aggregation information, the second aggregation information, and the adjacency relationship information in the first LSDB.
  36. 根据权利要求34或35所述的管理设备,其特征在于,所述接收单元,还用于:The management device according to claim 34 or 35, wherein the receiving unit is further configured to:
    接收所述第二路由设备发送的第四汇聚信息,所述第四汇聚信息包括所述第三路由设备的标识和所述第二路由设备的至少一个出接口标识,所述第二路由设备的至少一个出接口用于所述第二路由设备向所述第三路由设备发送报文;Receive fourth aggregation information sent by the second routing device, where the fourth aggregation information includes an identifier of the third routing device and at least one outbound interface identifier of the second routing device, and an identifier of the second routing device. at least one outgoing interface is used for the second routing device to send packets to the third routing device;
    所述处理单元,具体用于:The processing unit is specifically used for:
    所述管理设备根据所述第四汇聚信息和所述第二网络域对应的第二LSDB中的邻接关系信息,确定所述第二路由设备到所述第三路由设备的第三还原路径;The management device determines a third restoration path from the second routing device to the third routing device according to the fourth aggregation information and the adjacency information in the second LSDB corresponding to the second network domain;
    所述管理设备基于所述第一还原路径和所述第三还原路径,确定所述第二还原路径。The management device determines the second restoration path based on the first restoration path and the third restoration path.
  37. 根据权利要求34-36任一项所述的管理设备,其特征在于,所述接收单元,还用于:The management device according to any one of claims 34-36, wherein the receiving unit is further configured to:
    接收所述第三路由设备发送的所述第三路由设备的标识。The identifier of the third routing device sent by the third routing device is received.
  38. 根据权利要求34所述的管理设备,其特征在于,所述处理单元,具体用于:The management device according to claim 34, wherein the processing unit is specifically configured to:
    根据默认路由,确定所述第二路由设备到所述第三路由设备的第三还原路径;determining a third restoration path from the second routing device to the third routing device according to the default route;
    基于所述第一还原路径和所述第三还原路径,确定所述第二还原路径。The second restoration path is determined based on the first restoration path and the third restoration path.
  39. 根据权利要求38所述的管理设备,其特征在于,所述接收单元,还用于:The management device according to claim 38, wherein the receiving unit is further configured to:
    接收所述第三路由设备发送的所述默认路由。The default route sent by the third routing device is received.
  40. 一种路由设备,其特征在于,包括:A routing device, characterized in that it includes:
    发送单元,用于向第一路由设备发送路由消息,所述第一路由设备属于第一网络域,所述第三路由设备属于第二网络域,所述路由消息中携带所述第三路由设备的标识,以便所述第一路由设备基于所述第三路由设备的标识获得并向管理设备发送第二汇聚信息,所述第二汇聚信息包括所述第三路由设备的标识和第二路由设备的标识,所述第二路由设备为所述第一网络域和所述第二网络域的边界设备。a sending unit, configured to send a routing message to a first routing device, where the first routing device belongs to the first network domain, the third routing device belongs to the second network domain, and the routing message carries the third routing device so that the first routing device obtains and sends the second aggregation information to the management device based on the identification of the third routing device, and the second aggregation information includes the identification of the third routing device and the second routing device. and the second routing device is a border device of the first network domain and the second network domain.
  41. 根据权利要求40所述的路由设备,其特征在于,所述发送单元,具体用于:The routing device according to claim 40, wherein the sending unit is specifically configured to:
    向所述第一路由设备发送链路状态通告LSA报文,所述LSA报文通过扩展的长度类型值TLV字段携带所述第三路由设备的标识。Send a link state advertisement LSA packet to the first routing device, where the LSA packet carries the identifier of the third routing device through an extended length type value TLV field.
  42. 根据权利要求40或41所述的路由设备,其特征在于,所述发送单元,还用于:The routing device according to claim 40 or 41, wherein the sending unit is further configured to:
    向所述管理设备发送所述第三路由设备的标识。Send the identification of the third routing device to the management device.
  43. 一种网络系统,其特征在于,所述网络系统包括权利要求22至30所述的路由设备、权利要求31至39所述的管理设备和权利要求40至42所述的路由设备。A network system, characterized in that, the network system includes the routing device described in claims 22 to 30, the management device described in claims 31 to 39, and the routing device described in claims 40 to 42.
  44. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码或指令,当所述程序代码或指令在计算机上运行时,使得所述计算机执行以上权利要求1-21中任意一项所述的方法。A computer-readable storage medium, characterized in that, program codes or instructions are stored in the computer-readable storage medium, and when the program codes or instructions are run on a computer, the computer is made to execute the above claims 1- The method of any one of 21.
PCT/CN2021/109956 2020-08-14 2021-08-02 Path restoring method and device WO2022033341A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010820620.5A CN114143255A (en) 2020-08-14 2020-08-14 Path restoration method and device
CN202010820620.5 2020-08-14

Publications (1)

Publication Number Publication Date
WO2022033341A1 true WO2022033341A1 (en) 2022-02-17

Family

ID=80247703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109956 WO2022033341A1 (en) 2020-08-14 2021-08-02 Path restoring method and device

Country Status (2)

Country Link
CN (1) CN114143255A (en)
WO (1) WO2022033341A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616069A (en) * 2008-06-23 2009-12-30 华为技术有限公司 Information recovering method and router based on Graceful Restart
CN102742224A (en) * 2011-12-13 2012-10-17 华为技术有限公司 Publishing method, publishing apparatus and system of inter-domain link information
CN102870431A (en) * 2012-06-20 2013-01-09 华为技术有限公司 Method, system and node device for recovery path establishment
CN103414645A (en) * 2013-07-24 2013-11-27 北京华为数字技术有限公司 Link status database synchronization method, controller and system
US20140146663A1 (en) * 2012-11-27 2014-05-29 Infinera Corp. Multi-Level Recovery in Transport Networks
CN107623629A (en) * 2016-07-15 2018-01-23 华为技术有限公司 A kind of restoring method and equipment for flowing forward-path

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616069A (en) * 2008-06-23 2009-12-30 华为技术有限公司 Information recovering method and router based on Graceful Restart
CN102742224A (en) * 2011-12-13 2012-10-17 华为技术有限公司 Publishing method, publishing apparatus and system of inter-domain link information
CN102870431A (en) * 2012-06-20 2013-01-09 华为技术有限公司 Method, system and node device for recovery path establishment
US20140146663A1 (en) * 2012-11-27 2014-05-29 Infinera Corp. Multi-Level Recovery in Transport Networks
CN103414645A (en) * 2013-07-24 2013-11-27 北京华为数字技术有限公司 Link status database synchronization method, controller and system
CN107623629A (en) * 2016-07-15 2018-01-23 华为技术有限公司 A kind of restoring method and equipment for flowing forward-path

Also Published As

Publication number Publication date
CN114143255A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
EP3732894B1 (en) Interior gateway protocol flood minimization
US10880203B2 (en) Centralized segment routing dataplane based backup path validation
US11848823B2 (en) System and method to recover from link or node failure in a network
US7707307B2 (en) Method and apparatus for constructing a backup route in a data communications network
US20170093611A1 (en) Egress node protection in evpn all-active topology
US9647928B2 (en) OSPF point-to-multipoint over broadcast or NBMA mode
US20150016242A1 (en) Method and Apparatus for Optimized LFA Computations by Pruning Neighbor Shortest Path Trees
US20220272032A1 (en) Malleable routing for data packets
WO2020135395A1 (en) Notification method and device for prefix identifier of cross-interior gateway protocol
EP2619950A1 (en) Method and apparatus to improve ldp convergence using hierarchical label stacking
WO2013045083A1 (en) Optimizing endpoint selection of mrt-frr detour paths
US9832121B1 (en) Next hop instruction associations for forwarding unit programming within a network device
US11646960B2 (en) Controller provided protection paths
CN116782336A (en) Communication method and device
Papán et al. The survey of current IPFRR mechanisms
WO2016123904A1 (en) Routing convergence method, device and virtual private network system
US8750166B2 (en) Route topology discovery in data networks
US20190334814A1 (en) Path establishment method and device, and network node
CN109831378B (en) Message timeout response method and device
WO2022033341A1 (en) Path restoring method and device
US11582095B2 (en) Systems and methods for convergence of network traffic after an interruption of a network device's link
Pelsser et al. Providing scalable NH-diverse iBGP route re-distribution to achieve sub-second switch-over time
JP2016225729A (en) Network system, data transfer control method and control device
US9143399B2 (en) Minimizing the number of not-via addresses
US20230370368A1 (en) Delaying resource reservation protocol label-switched path signaling through a restarting network device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21855394

Country of ref document: EP

Kind code of ref document: A1