A network ISIS routing diffusion simulation method and device

By abstracting the ISIS routing simulation problem to the network level and using the LSDB synchronization feature, the problem of low network routing simulation efficiency in the existing technology is solved, and fast and accurate simulation of multiple ISIS domains and multi-level scenarios is achieved.

CN116192657BActive Publication Date: 2024-10-18CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211712554.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2024-10-18
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

Existing network routing simulation solutions over-restore network details, resulting in huge computational workloads and low efficiency. They cannot effectively compare a large number of network design solutions, especially when facing ISIS multi-domain scenarios and multi-level hierarchical problems, they cannot perform accurate simulations.

Method used

By abstracting the ISIS routing simulation problem from a device-level perspective to the network level, and using the link state database (LSDB) synchronization feature, a network-level LSDB data body is unifiedly constructed to avoid repeated storage and simplify simulation, and solve multi-ISIS domain and multi-level problems. .

Benefits of technology

It improves the efficiency of network routing simulation, reduces computing time, enables quick comparison of a large number of network design solutions, and achieves accurate simulation of ISIS multi-domain and multi-level scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116192657B_ABST
    Figure CN116192657B_ABST
Patent Text Reader

Abstract

The present application discloses a network ISIS routing diffusion simulation method and device, which relates to the field of communications and can solve the problem that the current stage of simulating routing is not abstract enough, the simulation and restoration of routing diffusion model is too real, resulting in too slow operation speed and inability to compare and analyze a large number of schemes, including: determining synchronization areas according to ISIS neighbor relationships in the network; wherein each synchronization area includes multiple nodes, and the nodes are used to simulate routing devices in the domain; constructing a link state database LSDB data body for each synchronization area; wherein the LSDB data body is responsible for storage and maintenance by the network data body; determining a preset corresponding relationship; wherein the preset corresponding relationship is responsible for storage and maintenance by the device data body; simulating ISIS routing in the domain according to the preset corresponding relationship and the LSDB data body. The present application is used for network routing simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a network ISIS routing diffusion simulation method and device. Background Art

[0002] Network architecture design is of great significance to operators. Among them, network routing simulation is an important auxiliary means of large-scale network architecture design. It is used to compare different network routing design schemes, so as to find a network routing topology with higher carrying efficiency, more balanced load distribution, and better disaster recovery capabilities. From the perspective of network architecture design, the problem that usually needs to be solved when performing network routing simulation is how to better guide traffic and obtain the optimal routing topology design in the network, rather than restoring the actual network operation as highly as possible.

[0003] At present, most of the commonly used network routing simulation schemes are to restore the network as much as possible, and the network routing is not highly abstracted. Since the current schemes generally restore a large number of network operation details, the operation will simultaneously calculate the data that the network designer does not pay attention to, resulting in a huge amount of calculation and low efficiency. In addition, a small number of existing network routing simulation schemes do not take the highest possible restoration of the network as the goal, but use the shortest path algorithm in graph theory for simulation, which makes it impossible to simulate network routing for specific scenarios in routing technology, such as static routing, default routing, aggregate routing or Internet Protocol (IP) longest prefix matching, multi-domain scenarios of intermediate system to intermediate system (ISIS), and ISIS Level 1 (Level 1, L1) and Level 2 (Level 2, L2) grading. Summary of the invention

[0004] The present application provides a network ISIS routing diffusion simulation method and device to solve the problem that when simulating routing at the current stage, the abstraction is not enough, the routing diffusion model is simulated and restored too realistically, resulting in too slow running speed and inability to compare and analyze a large number of solutions.

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

[0006] In a first aspect, the present application provides a network ISIS routing diffusion simulation method, comprising: determining a synchronization area according to an ISIS neighbor relationship in a network; wherein each synchronization area includes multiple nodes, and the nodes are used to simulate routing devices within a domain; constructing a link state database LSDB data body for each synchronization area; wherein the LSDB data body is responsible for storing and maintaining by a network data body, and each LSDB data body is used to characterize the link state relationship within a corresponding synchronization area; determining a preset corresponding relationship; wherein the preset corresponding relationship is responsible for storing and maintaining by a device data body, and the preset corresponding relationship is used to characterize the pointing relationship between the ISIS process corresponding to each node and the LSDB data body; simulating ISIS routing within the domain based on the preset corresponding relationship and the LSDB data body.

[0007] Based on the above technical solution, this application abstracts the ISIS routing simulation problem in the network from the device-level perspective in real operation to the network-level perspective of the network layer, and uses the link state database LSDB synchronization characteristics of the ISIS protocol between devices to uniformly construct a network-level LSDB data carrier, so that when simulating ISIS routing, it is only necessary to point to its synchronized network-level LSDB data, and there is no need to separately maintain the ISIS process-level LSDB data carrier. This not only avoids the problem of repeated storage of the same LSDB being saved multiple times due to the synchronization of multiple ISIS process LSDBs in real operation, but also solves the problem that a single matrix of the entire network is difficult to simulate multiple ISIS domains and multiple levels of ISIS in simplified simulations.

[0008] In a second aspect, the present application provides a routing diffusion simulation device, which includes: a processing unit; a processing unit, used to determine a synchronization area based on an ISIS neighbor relationship in a network; wherein each synchronization area includes multiple nodes, and the nodes are used to simulate routing devices within a domain; the processing unit is also used to construct a link state database LSDB data body for each synchronization area; wherein the LSDB data body is responsible for storage and maintenance by a network data body, and each LSDB data body is used to characterize the link state relationship within the corresponding synchronization area; the processing unit is also used to determine a preset corresponding relationship; wherein the preset corresponding relationship is responsible for storage and maintenance by a device data body, and the preset corresponding relationship is used to characterize the pointing relationship between the ISIS process corresponding to each node and the LSDB data body; the processing unit is also used to simulate the ISIS routing within the domain based on the preset corresponding relationship and the LSDB data body.

[0009] In addition, the technical effects of the routing diffusion simulation method described in the second aspect can refer to the technical effects of the routing diffusion simulation method described in the first aspect, which will not be repeated here.

[0010] In a third aspect, the present application provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device of the present application, enable the electronic device to perform the routing diffusion simulation method described in the first aspect and any possible implementation of the first aspect.

[0011] In a fourth aspect, the present application provides an electronic device, comprising: a processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the electronic device is running, the processor executes the computer execution instructions stored in the memory to enable the electronic device to perform the routing diffusion simulation method described in the first aspect and any possible implementation method of the first aspect.

[0012] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the electronic device of the present application to perform the routing diffusion simulation method as described in the first aspect and any possible implementation of the first aspect.

[0013] In a sixth aspect, the present application provides a chip system, which is applied to a routing diffusion simulation device; the chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected through a line; the interface circuit is used to receive a signal from the memory of the routing diffusion simulation device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the routing diffusion simulation device executes the routing diffusion simulation method as described in the first aspect and any possible design thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a schematic diagram of the network layered structure of the existing ISIS protocol;

[0015] Figure 2 A schematic diagram of a flow chart of a routing diffusion simulation method provided in an embodiment of the present application;

[0016] Figure 3 A schematic diagram of a flow chart of another routing diffusion simulation method provided in an embodiment of the present application;

[0017] Figure 4 A schematic diagram of a flow chart of another routing diffusion simulation method provided in an embodiment of the present application;

[0018] Figure 5 A schematic diagram of a flow chart of another routing diffusion simulation method provided in an embodiment of the present application;

[0019] Figure 6A schematic diagram of simulation results of a network architecture provided in an embodiment of the present application;

[0020] Figure 7 A schematic diagram of a topological relationship of routing nodes provided in an embodiment of the present application;

[0021] Figure 8 A schematic diagram of a process for determining a synchronization area provided in an embodiment of the present application;

[0022] Fig. 9 A schematic diagram of the construction result of an LSDB provided in an embodiment of the present application;

[0023] Fig.10 A schematic diagram of another topological relationship of routing nodes provided in an embodiment of the present application;

[0024] Fig.11 A schematic diagram of another process for determining a synchronization area provided in an embodiment of the present application;

[0025] Fig.12 A schematic diagram of another LSDB construction result provided in an embodiment of the present application;

[0026] Fig.13 A schematic diagram of the structure of a routing diffusion simulation device provided in an embodiment of the present application;

[0027] Fig.14 A schematic diagram of the structure of another routing diffusion simulation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] In this article, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.

[0030] The terms "first" and "second" in the specification and claims of this application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first edge service node and a second edge service node are used to distinguish different edge service nodes rather than to describe a characteristic order of edge service nodes.

[0031] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0032] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.

[0033] Intermediate system to intermediate system (ISIS) is an internal gateway protocol, which is one of the internal gateway protocols commonly used by telecom operators. The standard ISIS protocol is standardized by ISO / IEC 10589:2002 established by the International Organization for Standardization.

[0034] like Figure 1 As shown in Figure 1, ISIS adopts a two-level hierarchical structure. The routing area is divided into multiple sub-areas and backbone areas. The sub-areas are managed by L1 routing nodes, and the routing between sub-areas is managed by L2 routing nodes. It should be noted that the egress routing node in each sub-area (i.e., the routing node used to connect to other backbone areas) is an L1 / L2 routing node.

[0035] It should be understood that two nodes connected topologically can form a neighbor relationship, which is divided into L1 neighbors and L2 neighbors. Exemplarily, the specific judgment process of the Level type of the neighbor relationship is as follows:

[0036] (1) If two neighboring nodes belong to the same area (same Area ID) and both have L1 level (L1 or L1 / L2), then the two nodes are L1 neighbors;

[0037] (2) If both neighbor nodes have L2 level (L2 or L1 / L2), then the two nodes are L2 neighbors, regardless of whether they belong to the same area (regardless of Area ID);

[0038] (3) Pure L1 nodes and pure L2 nodes do not form a neighbor relationship;

[0039] (4) If two nodes satisfy both L1 neighbor and L2 neighbor conditions, they are defined as L2 neighbors.

[0040] Above, some technical terms involved in this application are introduced.

[0041] At present, there are many network simulation methods and tools. For example, the common NS2 and NS3 are simulation tools commonly used by colleges and scientific research institutions. They can not only simulate network topology, but also simulate various routing protocols, message sending processes, etc., and are very powerful. Another example is the commonly used Netplanner (also known as openet) series of tools, which are simulation tools commonly used by operators. They not only support network simulation of IP networks and transmission networks, but also can directly import the configuration of common equipment through online / offline methods to achieve automatic topology identification. In addition, each equipment manufacturer also has its own network simulation tool, which can read the configuration from the manufacturer's equipment and network management to perform network simulation analysis.

[0042] Although the above tools are very powerful, they are basically aimed at restoring the network as much as possible, rather than highly abstracting the network. The resulting problems are also very obvious. Since these tools restore a large number of network operation details, they will also calculate data that network designers do not pay attention to when they are running, resulting in a huge amount of calculations and low efficiency. In response to this problem, if a single simulation is performed on the existing network, the negative impact will not be very obvious, and the network designer can wait for half an hour or even a day for the calculation time. However, if the problem faced by the network designer is the comparison of a large number of solutions, it is likely that hundreds, thousands, or even tens of thousands of network solutions will be compared in the early stage of network design. The network simulation needs to be run thousands of times. If it involves disaster recovery analysis for each link being broken once, the time required for a single simulation calculation will be calculated in hours. The calculation speed is too slow and cannot be accepted by operators.

[0043] Therefore, only by performing a certain degree of abstraction and simplification in network simulation and building an efficient routing diffusion simulation model, thereby significantly reducing the amount of calculation and controlling a single calculation to within tens of seconds or even a few seconds, can it be possible to perform comparative analysis of a large number of solutions.

[0044] Therefore, in order to solve the problem in the above-mentioned prior art that when simulating routing, the abstraction is not enough, the routing diffusion model is simulated and restored too realistically, resulting in slow operation speed and inability to perform comparative analysis on a large number of solutions, the present application provides a routing diffusion simulation method based on a link state database.

[0045] In this application, the ISIS routing simulation problem in the network is abstracted from the device-level perspective in real operation to the network-level perspective of the network layer, and the link state database (LSDB) synchronization characteristics of the ISIS protocol between devices are used to uniformly construct the network-level LSDB data body, so that when simulating ISIS routing, it is only necessary to point to the synchronized network-level LSDB data, and it is no longer necessary to separately maintain the LSDB data body at the ISIS process level. This not only avoids the problem of repeated storage of the same LSDB being saved multiple times due to the synchronization of multiple ISIS process LSDBs in real operation, but also solves the problem that it is difficult to simulate multiple ISIS domains and multiple levels of ISIS in a single matrix of the entire network in simplified simulation.

[0046] The execution subject of the routing diffusion simulation method in the present application is a routing diffusion simulation device, which can be an electronic device for simulating routing diffusion, a central processing unit (CPU) in an electronic device, or a client in an electronic device for performing routing diffusion simulation. The embodiment of the present application takes an electronic device as a routing diffusion simulation device to perform the routing diffusion simulation method as an example to illustrate the routing diffusion simulation method provided by the present application.

[0047] The technical solution provided by this application is described in detail below in conjunction with the accompanying drawings of the specification.

[0048] Embodiment 1:

[0049] like Figure 2 As shown, the routing diffusion simulation method provided in the embodiment of the present application includes the following steps:

[0050] S201. The routing diffusion simulation device determines a synchronization area according to an ISIS neighbor relationship in the network.

[0051] Each synchronization area includes multiple nodes, and the nodes are used to simulate routing devices in the domain.

[0052] Optionally, one synchronization area corresponds to one LSDB data body determined subsequently, that is, the number of synchronization areas is the same as the number of LSDB data bodies.

[0053] It can be understood that, from the result, the synchronization area is a network area in which the LSDB content corresponding to the nodes included in the entire simulated network is the same. The content of the LSDB data body corresponding to the nodes in a synchronization area is consistent.

[0054] It should be noted that the specific process of determining the synchronization area by the route diffusion simulation device is referred to in the subsequent S301-S303, which will not be described in detail here.

[0055] S202: The routing diffusion simulation device constructs an LSDB data body for each synchronization area.

[0056] The LSDB data body is stored and maintained by the network data body, and each LSDB data body is used to represent the link state relationship in the corresponding synchronization area.

[0057] It should be noted that the LSDB data body defined in this application is a network-level data body uniformly constructed based on the synchronization characteristics of the link state database technology. In order to save network resource consumption, it is not necessary to have a complete link state database function.

[0058] Optionally, for each link between two adjacent nodes in the synchronization area, the routing diffusion simulation device forms a link state entry, and determines the final LSDB data body according to the link state entry corresponding to each link.

[0059] It should be noted that the specific process of the route diffusion simulation device constructing the LSDB data body for each synchronization area can be found in S401-S403 below, which will not be repeated here.

[0060] S203: The routing diffusion simulation device determines a preset corresponding relationship.

[0061] The preset corresponding relationship is stored and maintained by the device data body, and the preset corresponding relationship is used to characterize the pointing relationship between the ISIS process corresponding to each node and the LSDB data body.

[0062] Optionally, the preset corresponding relationship may be a corresponding relationship between a node number and an LSDB number. For example, the A1 node points to the LSDB-L1 data body.

[0063] It can be understood that the node side only stores the pointing relationship between its corresponding ISIS process and the LSDB data body. Therefore, the ISIS process corresponding to each node does not need to perform routing calculation based on internal data like the actual situation of routing devices, but first corresponds to the LSDB data body stored on the network side through the pointing relationship, and then performs routing calculation.

[0064] S204, the route diffusion simulation device simulates the ISIS route within the domain according to the preset corresponding relationship and the LSDB data body.

[0065] Optionally, the route diffusion simulation device determines the LSDB data body pointed to by each node according to the preset correspondence stored in each node in the domain, and simulates the intra-domain routing based on the LSDB data body. Specifically, the route diffusion simulation device calculates the minimum spanning tree for each node in the domain according to the LSDB corresponding to the node; then, the route diffusion simulation device determines multiple route entries based on the minimum spanning tree of the node and the IP reachable address of the node according to the link state entry in the LSDB corresponding to each node in the domain; finally, the route diffusion simulation device determines the optimal route entry among the multiple route entries according to the cost value of each route entry.

[0066] It should be noted that the specific process of the route diffusion simulation device simulating the intra-domain routing according to the LSDB can be referred to in S501-S504 below, which will not be repeated here.

[0067] Based on the above technical solution, this application abstracts the ISIS routing simulation problem in the network from the device-level perspective in real operation to the network-level perspective of the network layer, and uses the link state database LSDB synchronization characteristics of the ISIS protocol between devices to uniformly construct the network-level LSDB data body, so that when simulating ISIS routing, it is only necessary to point to its synchronized network-level LSDB data, and no longer needs to maintain the ISIS process-level LSDB data body separately. This not only avoids the problem of repeated storage of the same LSDB being saved multiple times due to the synchronization of multiple ISIS process LSDBs in real operation, but also solves the problem that a single matrix of the entire network is difficult to simulate multiple ISIS domains and multiple levels of ISIS in simplified simulations.

[0068] Embodiment 2:

[0069] For example, Figure 3 As shown, in the routing diffusion simulation method provided by the present application, the routing diffusion simulation device determines the synchronization area according to the ISIS neighbor relationship in the network, specifically including the following steps:

[0070] S301. The route diffusion simulation device determines an initialization area tag for each ISIS process according to the level tag of the ISIS process of the node.

[0071] It can be understood that, corresponding to the above Figure 1 The node level tag is used to simulate the level type of the routing device in the intermediate system to intermediate system ISIS protocol; wherein, the node level tag includes L1 type, L2 type, and L1 / 2 type.

[0072] In this step, if the ISIS process of node 1 only enables L1, node 1 only has the initialization area mark of L1; if the ISIS process of node 2 only enables L1+L2, node 3 has the initialization area marks of L1 and L2; if the ISIS process of node 3 only enables L2, node 1 only has the initialization area mark of L2.

[0073] S302, the routing diffusion simulation device determines that the first ISIS process and the second ISIS process are ISIS neighbors of each other according to the ISIS neighbor relationship in the network, and determines the first area mark and the second area mark corresponding to the first ISIS process and the second ISIS process; all the area marks in all ISIS processes that are the first area mark or the second area mark are modified to the third area mark.

[0074] The third area mark may be the first area mark, the second area mark, or a new area mark.

[0075] Exemplarily, if node 1 and node 2 are L1 neighbors of each other, the initialization region marks corresponding to the two nodes are synchronized, so the initialization region mark corresponding to L1 in node 2 is synchronously replaced with the initialization region mark corresponding to L1 in node 1. Thus, according to each group of neighbor relationships, the operation described in S302 is performed until each group of neighbor relationships has undergone region mark modification.

[0076] S303: After modifying the area tags according to all the group ISIS neighbor relationships, the route diffusion simulation device determines the ISIS processes with the same area tag as a synchronization area.

[0077] Optionally, if there are no more ISIS neighbor relationships in the domain, the areas corresponding to the nodes with the same area mark are determined as a synchronization area. In other words, the area marks corresponding to the nodes in each synchronization area are the same.

[0078] Based on the above technical solution, the present application can determine the synchronization area for the nodes in the domain, so as to facilitate the subsequent construction of the corresponding number of LSDB data bodies, so that the routing simulation can proceed smoothly.

[0079] Embodiment three:

[0080] For example, Figure 4 As shown, in the route diffusion simulation method provided by the present application, the route diffusion simulation device constructs an LSDB data body for each synchronization area, specifically including the following steps:

[0081] S401. The routing diffusion simulation device creates a data carrier according to each synchronization area.

[0082] Optionally, the data carrier is initially empty when constructed. For a synchronization area, the ISIS processes of all nodes in the synchronization area all point to the initial database corresponding to the synchronization area.

[0083] S402, the routing diffusion simulation device determines whether all links in the network belong to the synchronization area according to the area mark of the ISIS process of the nodes at both ends of each link; for each link belonging to the synchronization area, a link status entry is constructed, and the link status entry is loaded into the data carrier corresponding to the synchronization area.

[0084] The link state entry is used to represent the neighbor relationship between the ISIS processes in the two nodes corresponding to the link.

[0085] For example, if there is a link 1 between node 1 and node 2, a link state packet (LSP) 1 is formed, and since the level representations of node 1 and node 2 are both L1, the level of LSP1 is also determined to be 1, so LSP1 is loaded into the data carrier corresponding to the synchronization area to which node 1 and node 2 belong. Thus, the operation described in S402 is performed for each link until the link state entry of each link is loaded.

[0086] S403, the routing diffusion simulation device determines whether the ISIS process of all nodes in the network belongs to the synchronization area according to the area mark of the ISIS process; for each ISIS process belonging to the synchronization area, a reachable IP entry of the ISIS process is constructed, and the reachable IP entry is loaded into the data carrier corresponding to the synchronization area.

[0087] Optionally, if there are no more reachable IP entries in the domain that have not been loaded, the data carrier that has completed the loading of the reachable IP entries is determined as the final LSDB data body.

[0088] Based on the above technical solution, the present application can construct an LSDB data body according to each link existing in the synchronization area and the domain, so as to simulate the intra-domain routing according to the LSDB data body pointed to by each node in the domain, so that the routing simulation can proceed smoothly.

[0089] Embodiment 4:

[0090] For example, Figure 5 As shown, in the route diffusion simulation method provided by the present application, the route diffusion simulation device simulates the ISIS routing within the domain according to the preset corresponding relationship and the LSDB data body, specifically including the following steps:

[0091] S501. The routing diffusion simulation device calculates a minimum spanning tree for each LSDB data body in the network.

[0092] It should be understood that the minimum spanning tree is also called the SPF Tree. The specific determination method is the shortest path algorithm commonly used in the art. Please refer to the prior art and will not be described in detail here.

[0093] In a possible implementation, different from the specific implementation of ISIS routing, the simulation of the ISIS process in S501 to calculate the minimum spanning tree for the node according to the LSDB calculation is divided into two modes:

[0094] Mode 1: The minimum spanning tree is calculated uniformly by the LSDB digital body, and the ISIS process data carrier of the node only reads the SPF calculation result of the LSDB.

[0095] Mode 2: The ISIS process data carrier is responsible for calculating the minimum spanning tree. The logic is similar to the actual ISIS implementation. The only difference is that the pointed LSDB data is retrieved without letting the ISIS process actually store the LSDB data.

[0096] S502: The routing diffusion simulation device determines, for each node in the domain, the LSDB data volume corresponding to the node according to the preset corresponding relationship stored in the node.

[0097] Optionally, the preset corresponding relationship may be a corresponding relationship between a node number and an LSDB number. For example, the A1 node points to the LSDB-L1.

[0098] S503: The route diffusion simulation device determines multiple route entries for the ISIS process of each node in the network according to the minimum spanning tree calculation result and reachable IP entries in the corresponding LSDB data body.

[0099] It should be noted that S501-S503 are used to simulate the execution of the standard ISIS protocol, so the specific implementation method flow is the same as the standard protocol and the same as the implementation flow of the device in the prior art.

[0100] It should be understood that in some routing simulation scenarios, if there is no need to pay attention to specific IP-based routing, such as network planning scenarios, S503 can be omitted and only S501-S502 are performed.

[0101] S504: The route diffusion simulation device determines the optimal route entry among the multiple route entries according to the cost value of each route entry.

[0102] Optionally, the route diffusion simulation device determines the route entry with the smallest cost value as the optimal route entry among the multiple route entries.

[0103] Based on the above technical solution, after determining the LSDB data body, the present application can simulate the routing within the domain according to the LSDB data body pointed to by each node in the domain, so that the routing simulation can proceed smoothly. The ISIS routing simulation problem in the network is abstracted from the device-level perspective in real operation to the network-level perspective of the network layer, and the link state database synchronization characteristics of the ISIS protocol between devices are used to uniformly construct the network-level LSDB data body, so that when simulating ISIS routing, it is only necessary to point to the synchronized network-level LSDB data, and there is no need to separately maintain the LSDB data body at the ISIS process level. This not only avoids the problem of repeated storage of the same LSDB data body generated by the synchronization of multiple ISIS process LSDBs in real operation, but also solves the problem that a single matrix of the entire network is difficult to simulate multiple ISIS domains and multiple levels of ISIS in simplified simulations.

[0104] For example, in combination Figure 6 , the relationship between LSDB, the device simulated as a node, and the ISIS process in this application is explained.

[0105] like Figure 6 As shown, after the method described above, Figure 6 The domain shown includes two synchronization areas, LSDB synchronization area-1 and LSDB synchronization area-2. The link state database corresponding to LSDB synchronization area-1 is LSDB-1, and the link state database corresponding to LSDB synchronization area-2 is LSDB-2.

[0106] Device 1 is a L1 / L2 type device, that is, device 1 belongs to both LSDB synchronization area 1 and LSDB synchronization area 2. The ISIS process of device 1 points to both LSDB synchronization area 1 and LSDB synchronization area 2.

[0107] Device 2 and device 3 belong to the same LSDB synchronization area -1. Device 2 and device 3 have the same level identifier, and the ISIS processes of device 2 and device 3 both point to LSDB-1.

[0108] Device 4 and device 5 both belong to LSDB synchronization area-2. Device 4 and device 5 have the same level identifier, and the ISIS processes of device 4 and device 5 both point to LSDB-2.

[0109] Embodiment five:

[0110] For example, in combination Figure 7 , Figure 8 , Fig. 9 , the process involved in the routing simulation method provided by this application is specifically described:

[0111] like Figure 7The simple topology shown is a scenario where Level-1 / Level-2 is distinguished in the same ISIS management domain. The ISIS 100 process is enabled on all four routers.

[0112] It should be noted that Figure 7 The router devices in the actual routing simulation process will be simulated as nodes. In the standard ISIS protocol, the node-based routing is based on ISO address, which is also called NSAP (Network Service Access Point). In addition, System ID has a similar meaning. In this embodiment, in order to simplify the modeling, the node name is directly used as a substitute. In the actual use of this application, the node name can be simplified for modeling, or the ISIS protocol can be completely simulated to use ISO address to mark the node.

[0113] In this embodiment, for the convenience of explanation, letters combined with numbers are used to represent router devices, and no special explanation will be given hereinafter.

[0114] The ISIS 100 of the aggregation router B1 is configured as L1+L2, while the ISIS 100 of the access routers A1 and A2 is configured as L1 only, and the backbone router C1 is configured as L2 only. A1 / A2 / B1 are interconnected through links 1 / 2 / 3, B1 / C1 are interconnected through link 4, and ISIS is enabled on both ends of all links.

[0115] Book Figure 7 In the topology shown, the effect is that A1 / A2 / B1 form a Level-1 ISIS neighbor relationship with each other, and mutually diffuse L1 LSPs, that is, mutually synchronize L1 LSDB data bodies; C1 / B1 form a Level-2 ISIS neighbor relationship, and mutually diffuse L2 LSPs, that is, mutually synchronize L2 LSDB data bodies.

[0116] S701: The routing diffusion simulation device determines a synchronization area.

[0117] In a possible implementation manner, S701 is specifically divided into the following steps:

[0118] Step 1-1: Initialize the domain of the LSDB data body according to the Level of each ISIS process.

[0119] Among them, ISIS100 of A1 / A2 only enables L1, so there is only the LSDB data body of L1; ISIS100 of B1 enables L1+L2, so there are LSDB data bodies of L1 and L2; ISIS100 of C1 only enables L2, so there is only the LSDB data body of L2; initially, the name of each LSDB data body is different.

[0120] Specifically, the execution result of step 1-1 is as follows Figure 8 As shown in part (a).

[0121] Step 1-2: Since A1 and A2 are L1 neighbors, their L1 LSDB data volumes are synchronized, so the LSDB data volume name of L1 in A2 is replaced with the LSDB data volume name of L1 in A1.

[0122] Specifically, the execution results of steps 1-2 are as follows: Figure 8 As shown in part (b).

[0123] Step 1-3: Since A1 and B1 are L1 neighbors, their L1 LSDB data volumes are synchronized, so the L1 LSDB data volume name in B1 is replaced with the L1 LSDB data volume name in A1.

[0124] Specifically, the execution results of steps 1-3 are as follows: Figure 8 As shown in part (c).

[0125] Step 1-4: Since A2 and B1 are L1 neighbors, their L1 LSDB data bodies are synchronized, and the L1 LSDB data body names of both parties are the same and do not change.

[0126] Step 1-5: Since B1 and C1 are L2 neighbors, their L2 LSDB data volumes are synchronized, so the L2 LSDB data volume name in C1 is replaced with the L2 LSDB data volume name in B1.

[0127] Specifically, the execution results of steps 1-4 are as follows: Figure 8 As shown in part (c).

[0128] Step 1-6: There are no more ISIS neighbor relationships, and the synchronization area determination of the LSDB data body is completed.

[0129] like Figure 8 As shown in part (d), after the above six steps, two domains are finally formed. The Level-1 LSDB data bodies of A1 / A2 / B1 correspond to domain-1-1, and the Level-2 LSDB data bodies of B1 / C1 correspond to domain-3-2. Therefore, two synchronization areas are determined. Synchronization area-1 includes A1, A2, and B1, and synchronization area-2 includes B1 and C1.

[0130] S702: The route diffusion simulation device constructs an LSDB data body according to the determined synchronization area.

[0131] In a possible implementation manner, S702 is specifically divided into the following steps:

[0132] Step 2-1: Construct an empty LSDB data volume data carrier according to the determined synchronization area.

[0133] Exemplarily, in combination with the two synchronization areas determined in S701, they include two domains, domain-1-1 and domain-3-2. Therefore, an empty LSDB data body-L1 data carrier is constructed, and the Level-1 LSDB data bodies of ISIS100 in domain-1-1, A1 / A2 / B1 all point to the LSDB data body-L1 data carrier; an empty LSDB data body-L2 data carrier is constructed, and the Level-2 LSDB data bodies of ISIS100 in domain-3-2, B1 / C1 all point to the LSDB data body-L2 data carrier.

[0134] Step 2-2: For link 1 from A1 to A2, a link state entry LSP1 is formed, and the Level is determined to be L1, so the LSDB data body-L1 data carrier commonly pointed to by ISIS100 L1 in A1 / A2 is added.

[0135] Step 2-3: For link 2 from A1 to B1, a link state entry LSP2 is formed, and the Level is determined to be L1, so the LSDB data body-L1 data carrier commonly pointed to by ISIS100 L1 in A1 / B1 is added.

[0136] Step 2-4: For link 3 from A2 to B1, a link state entry LSP3 is formed, and the Level is determined to be L1, so the LSDB data body-L1 data carrier commonly pointed to by ISIS100 L1 in A2 / B1 is added.

[0137] Step 2-5: For link 4 from B1 to C1, a link state entry LSP4 is formed, and the Level is determined to be L2, so the LSDB data body-L2 data carrier commonly pointed to by ISIS100 L2 in B1 / C1 is added.

[0138] Step 2-6: If there are no more links in the domain, it is determined that the LSDB data body is constructed.

[0139] For example, Fig. 9 As shown, Figure 7The topology shown finally forms two LSDBs, namely LSDB data body-L1 and LSDB data body-L2. Among them, the LSDB data body-L1 data carrier includes LSP1 / 2 / 3, a total of 3 LSPs, and the LSDB data body-L2 data carrier includes LSP4, a total of 1 LSP.

[0140] S703: The route diffusion simulation device simulates route diffusion according to the LSDB data body.

[0141] It can be understood that the simulated route diffusion calculation in S703 simulates the route calculation process of the actual ISIS protocol. For the ISIS protocol, refer to the standard ISIS protocol (international standard RFC1195).

[0142] Exemplarily, S703 is divided into two steps. First, the minimum spanning tree (DijkstraTree in the standard) is calculated for the node, and then the IP reachability information (IP ReachabilityInformation in the standard) announced by the node carried in the LSP is superimposed to form an IP-based routing entry. The following is a detailed introduction to these two steps:

[0143] Step 3-1: The ISIS process calculates the minimum spanning tree for the node based on the LSDB data body and takes the current node as the root. In this embodiment, the SPF Tree formed by L1 in A1's ISIS100 is A1→A2, A1→B1; the SPF Tree formed by L1 in A2's ISIS100 is A2→A1, A2→B1; the SPF Tree formed by L1 in B1's ISIS100 is B1→A1, B1→A2, and the SPF Tree formed by L2 is B1→C1; the SPF Tree formed by L2 in C1's ISIS100 is C1→B1.

[0144] Step S3-2: The ISIS process adds the IP reachability information of the node to the cost based on the minimum spanning tree of the node according to the IP reachability information of the node carried by the LSP in the LSDB data body, forms an IP-based routing entry, and performs IP routing optimization (when the destination IP is the same, compare the cost value).

[0145] It should be noted that in some simulation scenarios, if specific IP-based routing is not of concern, such as network planning scenarios, step 3-2 can be omitted, and only the shortest route to the node granularity is calculated.

[0146] Embodiment six:

[0147] For example, in combination Fig.10 , Fig.11 , Fig.12 , the process involved in the routing simulation method provided by this application is specifically described:

[0148] like Fig.10 The simple topology shown is a scenario of multiple ISIS management domains. Among them, ISIS is enabled on all three routers and configured as L2 only. The aggregation router B1 enables dual ISIS processes ISIS 100 and ISIS 200, and configures the SystemID to 0000.0001.0002 and 0000.0002.0002 respectively; the access router A1 enables ISIS 100 and configures the SystemID to 0000.0001.0001; the backbone network router C1 enables ISIS 200 and configures the SystemID to 0000.0002.0003. Among them, A1 / B1 are interconnected through link 1, and both interfaces are enabled in ISIS 100, and the cost is configured to 100; B1 / C1 are interconnected through link 2, and both interfaces are enabled in ISIS 200, and the cost is configured to 100. In addition, A1's ISIS 100 announces the reachable subnet 10.0.1.0 / 24 with a cost of 10; B1's ISIS 100 and ISIS 200 both announce the reachable subnet 10.0.2.0 / 24 with a cost of 10; C1's ISIS 200 announces the reachable subnet 10.0.3.0 / 24 with a cost of 10.

[0149] exist Fig.10 In the topological relationship shown, the effect is that the ISIS 100 of A1 / B1 synchronize the LSDB data volume of L2 with each other; and the ISIS 200 of C1 / B1 synchronize the LSDB data volume of L2 with each other.

[0150] S1001. The routing diffusion simulation device determines a synchronization area.

[0151] In a possible implementation, S1001 is specifically divided into the following steps:

[0152] Step 1-1: Initialize the domain of the LSDB data body according to the Level of each ISIS process.

[0153] Among them, all ISIS processes are L2 only, and all have only L2 LSDB data bodies. Initially, the name of each LSDB data body is different.

[0154] Specifically, the execution result of step 1-1 is as follows Fig.11 As shown in part (a).

[0155] Step 1-2: Since the ISIS 100s of A1 and B1 are L2 neighbors, their L2 LSDB data bodies are synchronized, so the LSDB data body name in the B1 ISIS 100 is replaced with the LSDB data body name in the A1 ISIS 100.

[0156] Specifically, the execution results of steps 1-2 are as follows: Fig.11 As shown in part (b).

[0157] Step 1-3: Since the ISIS 200 of B1 and C1 are L2 neighbors, their L2 LSDB data bodies are synchronized, so the LSDB data body name in C1 ISIS 00 is replaced with the LSDB data body name in B1 ISIS 200.

[0158] Specifically, the execution results of steps 1-3 are as follows: Fig.11 As shown in part (c).

[0159] Step 1-4: There are no more ISIS neighbor relationships, and the synchronization area determination of the LSDB data body is completed. Fig.11 As shown in part (c), after the above four steps, two domains are finally formed. ISIS100 of A1 / B1 corresponds to domain-1-1, and ISIS200 of B1 / C1 corresponds to domain-2-2.

[0160] Thus, two synchronization areas are determined: synchronization area-1 includes A1 and B1, and synchronization area-2 includes B1 and C1.

[0161] S1002: The routing diffusion simulation device constructs an LSDB data body according to the determined synchronization area.

[0162] In a possible implementation manner, S702 is specifically divided into the following steps:

[0163] Step 2-1: Construct an empty LSDB data volume data carrier according to the determined synchronization area.

[0164] Exemplarily, in combination with the two synchronization areas determined in S1001, which respectively include domains domain-1-1 and domain-2-2, an empty LSDB data body-1 data carrier is constructed, and corresponding to domain-1-1, the Level-2 LSDB data bodies of ISIS100 in A1 / B1 all point to the LSDB data body-1 data carrier; an empty LSDB data body-2 data carrier is constructed, and corresponding to domain-2-2, the Level-2 LSDB data bodies of ISIS200 in B1 / C1 all point to the LSDB data body-2 data carrier.

[0165] Step 2-2: Link 1 from A1 to B1 forms a link state entry LSP1, 0000.0001.0001 to 0000.0001.0002, with a cost of 100, and adds the LSDB data body-1 data carrier pointed to by ISIS100 in A1 / B1.

[0166] Step 2-3: Link 2 from B1 to C1 forms a link state entry LSP2, 0000.0002.0002 to 0000.0002.0003, with a cost of 100, and adds it to the LSDB data body-2 data carrier commonly pointed to by ISIS200 in B1 / C1.

[0167] Step 2-4: There are no more links, and the synchronized LSDB data body is constructed. Finally, the LSDB data body-1 data carrier includes LSP1, a total of 1 LSP, and the LSDB data body-2 data carrier includes LSP2, a total of 1 LSP.

[0168] S1003. The route diffusion simulation device simulates route diffusion according to the LSDB data body.

[0169] It can be understood that the simulated route diffusion calculation in S1003 simulates the route calculation process of the actual ISIS protocol. For the ISIS protocol, refer to the standard ISIS protocol (international standard RFC1195).

[0170] Exemplarily, S1003 is divided into two steps. First, the minimum spanning tree (DijkstraTree in the standard) is calculated for the node, and then the IP reachability information (IP ReachabilityInformation in the standard) announced by the node carried in the LSP is superimposed to form an IP-based routing entry. The following is a detailed introduction to these two steps:

[0171] Step 3-1: The ISIS process calculates the minimum spanning tree for the node based on the LSDB data body and takes the current node as the root. In this embodiment, the SPF Tree formed in ISIS100 of A1 is 0000.0001.0001→0000.0001.0002; the SPF Tree formed in ISIS100 of B1 is 0000.0001.0002→0000.0001.0001; the SPF Tree formed in ISIS200 of B1 is 0000.0002.0002→0000.0002.0003; the SPF Tree formed in ISIS200 of C1 is 0000.0002.0003→0000.0002.0002.

[0172] Step 3-2: IP reachability information of ISIS process nodes (see the various simulation methods of detail 2 in step 2, which can be maintained uniformly across the entire network, maintained separately by each LSDB data body, or carried by each LSP), based on the minimum spanning tree of the node, the cost is superimposed on the IP reachability information of the node to form an IP-based routing entry, and IP routing optimization is performed (when the destination IP is the same, the cost value is compared). In this embodiment, ISIS100 of A1 combines SPF Tree information 0000.0001.0001→0000.0001.0002 and IP reachability information 0000.0001.0002→[10.0.2.0 / 24,cost=10] to generate an IP type routing entry [10.0.2.0 / 24,cost=110]; similarly, ISIS100 of B1 generates a routing entry [10.0.1.0 / 24,cost=110], ISIS200 generates a routing entry [10.0.3.0 / 24,cost=110]; and ISIS200 of C1 generates a routing entry [10.0.2.0 / 24,cost=110].

[0173] It should be noted that the IP routing entry in step 3-2 included in S1003 is only a possible example. In actual applications, the IP routing entry may also involve corresponding information in the actual routing entry, such as an outbound interface and a next hop.

[0174] Embodiment seven:

[0175] For the topology and solution of Example 6, the simulation of SystemID in the ISIS process corresponds to the relevant content of Section 1.2 of the international standard RFC1195. Further combined with the technical feature of uniformly saving LSDB data bodies in the routing diffusion simulation method provided by this application, SystemID can be simulated in a variety of ways. The following introduces the four simulation methods provided in this embodiment:

[0176] (1) Simulation method 1: Directly use the device name instead of SystemID.

[0177] For example, in the fifth embodiment, the device name A1 / B1 / C1 is directly regarded as the unique device identifier in the ISIS process without further simulating the concept of SystemID. In this case, LSP1 and LSP2 in this embodiment are represented as A1-B1 and B1-C1, rather than 0000.0001.0001-0000.0001.0002 and 0000.0002.0002-0000.0002.0003.

[0178] (2) Simulation method 2: The entire network uniformly maintains the correspondence between the ISIS process and the SystemID.

[0179] For example, in combination with Example 6, a network-wide mapping table is constructed in Example 6: 0000.0001.0001→A1 ISIS100, 0000.0001.0002→B1 ISIS100, 0000.0002.0002→B1 ISIS200, 0000.0002.0003→C1 ISIS200. It is understandable that the mapping table may also be a reverse mapping from ISIS process→SystemID.

[0180] (3) Simulation method three: Each LSDB data body maintains the correspondence between the ISIS process and the SystemID.

[0181] Exemplarily, in combination with Example 6, in Example 6, LSDB data body-1 constructs a mapping table: 0000.0001.0001→A1 ISIS100, 0000.0001.0002→B1 ISIS100, and LSDB data body-2 constructs a mapping table: 0000.0002.0002→B1 ISIS200, 0000.0002.0003→C1 ISIS200.

[0182] It is understandable that the mapping table may also be a reverse mapping from ISIS process→SystemID.

[0183] (4) Simulation method 4: Each ISIS process has only the corresponding relationship between this process and SystemID.

[0184] In this simulation mode, each ISIS process only has the corresponding relationship between this process and SystemID, and does not pay attention to the mapping relationship between other SystemID and ISIS process, but the shortest path operation is still based on SystemID, and forms IP type routing entries with the reachable subnet corresponding to SystemID. It can be understood that simulation mode 4 is most similar to the actual operation mechanism of ISIS, and can form real IP type routing.

[0185] Embodiment eight:

[0186] For the topology and solution of Example 6, the simulation of the device IP reachability information during the operation of ISIS corresponds to the relevant content of Section 3.2 of the international standard RFC1195. Further combined with the technical feature of uniformly saving the LSDB data body in the routing diffusion simulation method provided by this application, multiple methods can be used to simulate the device IP reachability information. The following introduces the four simulation methods provided in this embodiment:

[0187] (1) Simulation method 1: directly ignore the simulation of device IP reachability information and only focus on the routing between nodes.

[0188] For example, in the fifth embodiment, only the routing between nodes is concerned, and no simulation means is adopted for the specific reachable IP situation on the node.

[0189] (2) Simulation method 2: The entire network uniformly maintains the IP reachability information of SystemID.

[0190] Exemplarily, in combination with Example 6, a full-network IP reachable information query table is constructed in Example 6: 0000.0001.0001→[10.0.1.0 / 24,cost=10], 0000.0001.0002→[10.0.2.0 / 24,cost=10], 0000.0002.0002→[10.0.2.0 / 24,cost=10], 0000.0002.0003→[10.0.3.0 / 24,cost=10].

[0191] It is understandable that the content in the IP reachability information query table may also be in the form of [IP, mark, cost].

[0192] (3) Simulation method 3: Each LSDB data body maintains the IP reachability information of SystemID.

[0193] Exemplarily, in combination with Example 6, in Example 6, LSDB data body-1 constructs an IP reachable information query table: 0000.0001.0001→[10.0.1.0 / 24,cost=10], 0000.0001.0002→[10.0.2.0 / 24,cost=10], LSDB data body-2 constructs an IP reachable information query table: 0000.0002.0002→[10.0.2.0 / 24,cost=10], 0000.0002.0003→[10.0.3.0 / 24,cost=10].

[0194] It is understandable that the content in the IP reachability information query table may also be in the form of [IP, mark, cost].

[0195] (4) Simulation method 4: Each LSP carries the IP reachability information of the SystemID.

[0196] Exemplarily, in combination with Example 6, in Example 6 the main information of LSP1 can be 0000.0001.0001 to 0000.0001.0002, with a cost of 100, carrying IP reachable information 0000.0001.0001→[10.0.1.0 / 24, cost=10], 0000.0001.0002→[10.0.2.0 / 24, cost=10]; that is, the main information of LSP2 is 0000.0002.0002 to 0000.0002.0003, with a cost of 100, carrying IP reachable information 0000.0002.0002→[10.0.2.0 / 24, cost=10], 0000.0002.0003→[10.0.3.0 / 24, cost=10].

[0197] It is understandable that the content in the IP reachability information query table may also be in the form of [IP, mark, cost].

[0198] Embodiment nine:

[0199] With respect to the topology and solution of Example 6, for the unified storage of LSDB data bodies, the routing diffusion simulation method in this application can provide multiple implementation methods. The following is an introduction to three possible implementation methods:

[0200] (1) Implementation method 1: Class granularity realizes unified storage of LSDB data bodies.

[0201] That is, in the programming language, the LSDB data body is defined as a class, and then each LSDB data body is an instantiated LSDB data body class.

[0202] For example, for the scenario involved in Example 6, two instantiated LSDB data body classes are generated: LSDB data body-1 and LSDB data body-2. Then ISIS100 of A1 and B1 points to the instantiated LSDB data body-1, and ISIS200 of B1 and C1 points to the instantiated LSDB data body-2. During the simulation process, the program can directly call the data in LSDB data body-1 and LSDB data body-2 in the instantiated LSDB data body class.

[0203] (2) Implementation method 2: unified storage of LSDB data bodies at the process (or thread) granularity.

[0204] Optionally, this embodiment defines an LSDB data body process, and then each LSDB data body starts an LSDB data body process, and multiple LSDB data bodies are simulated respectively through multiple LSDB data body processes.

[0205] For example, for the scenario involved in Example 6, two LSDB data body processes are generated: LSDB data body-1 and LSDB data body-2. Then the ISIS100 simulation process of A1 and B1 points to the LSDB data body-1 process, and the ISIS200 simulation process of B1 and C1 points to the LSDB data body-2 process. During the simulation process, the ISIS simulation process calls the data in the LSDB data body-1 process and the LSDB data body-2 process by means of inter-process communication.

[0206] (3) Implementation method three: unified storage of LSDB data bodies at the virtual machine (or device) granularity.

[0207] Optionally, each LSDB data body starts a virtual machine, and the multiple LSDB data bodies are simulated respectively by LSDB data body simulators in the multiple virtual machines.

[0208] For example, for the scenario involved in Example 6, two virtual machines are generated and run with LSDB data body simulators: LSDB data body-1 and LSDB data body-2. Then the ISIS100 simulators of A1 and B1 point to the LSDB data body simulator in the LSDB data body-1 virtual machine, and the ISIS200 simulators of B1 and C1 point to the LSDB data body simulator in the LSDB data body-2 virtual machine. During the simulation process, the ISIS simulator calls the data in the virtual machine LSDB data body-1 and the virtual machine LSDB data body-2 through the API interface provided by the LSDB data body simulator in the virtual machine.

[0209] The embodiment of the present application can divide the routing diffusion simulation device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0210] For example, Fig.13 1 is a possible structural diagram of a routing diffusion simulation device involved in an embodiment of the present application. The routing diffusion simulation device 1300 includes: a processing unit 1301.

[0211] The processing unit 1301 is used to determine a synchronization area according to the ISIS neighbor relationship in the network; wherein each synchronization area includes a plurality of nodes, and the nodes are used to simulate routing devices in the domain.

[0212] The processing unit 1301 is further used to construct a link state database LSDB data body for each synchronization area; wherein the LSDB data body is responsible for storage and maintenance by the network data body, and each LSDB data body is used to represent the link state relationship in the corresponding synchronization area.

[0213] The processing unit 1301 is further used to determine a preset corresponding relationship; wherein the preset corresponding relationship is stored and maintained by the device data body, and the preset corresponding relationship is used to characterize the pointing relationship between the ISIS process corresponding to each node and the LSDB data body.

[0214] The processing unit 1301 is further configured to simulate intra-domain ISIS routing according to the preset corresponding relationship and the LSDB data body.

[0215] Optionally, the processing unit 1301 is further configured to determine an initialization area mark for each ISIS process according to a level mark of the ISIS process of the node.

[0216] Optionally, the processing unit 1301 is also used to determine, based on the ISIS neighbor relationships in the network, that the first ISIS process and the second ISIS process are ISIS neighbors for each group of ISIS neighbor relationships, and to determine the first area mark and the second area mark corresponding to the first ISIS process and the second ISIS process; to modify all area marks in all ISIS processes that are the first area mark or the second area mark to a third area mark; wherein the third area mark can be the first area mark, the second area mark, or a new area mark.

[0217] Optionally, the processing unit 1301 is further configured to determine the ISIS processes with the same area mark as a synchronization area after the area marks are modified according to all the group ISIS neighbor relationships.

[0218] Optionally, the processing unit 1301 is further configured to create a data carrier according to each synchronization area.

[0219] Optionally, the processing unit 1301 is also used to determine, for all links in the network, whether the link belongs to the synchronization area based on the area mark of the ISIS process of the nodes at both ends of each link; for each link belonging to the synchronization area, construct a link status entry, and load the link status entry into a data carrier corresponding to the synchronization area; the link status entry is used to characterize the neighbor relationship between the ISIS processes in the two nodes corresponding to the link.

[0220] Optionally, the processing unit 1301 is also used to determine whether the ISIS process of all nodes in the network belongs to the synchronization area according to the area mark of the ISIS process in turn; for each ISIS process belonging to the synchronization area, construct a reachable IP entry of the ISIS process, and load the reachable IP entry into the data carrier corresponding to the synchronization area; the reachable IP entry is used to represent the reachable IP information announced by the ISIS process to the outside.

[0221] Optionally, the processing unit 1301 is further configured to calculate a minimum spanning tree for each LSDB data body in the network.

[0222] Optionally, the processing unit 1301 is further configured to determine, for each ISIS process of a node in the network, an LSDB data body corresponding to the ISIS process of the node according to a preset corresponding relationship stored in the node.

[0223] Optionally, the processing unit 1301 is further configured to determine, for each ISIS process of a node in the network, a plurality of routing entries according to a minimum spanning tree calculation result and a reachable IP entry in a corresponding LSDB data body.

[0224] Optionally, the processing unit 1301 is further configured to determine an optimal routing entry among the multiple routing entries according to a cost value of each routing entry.

[0225] Optionally, the route diffusion simulation device 1300 may further include a storage unit ( Fig.13 The storage unit stores a program or instruction. When the processing unit 1301 executes the program or instruction, the routing diffusion simulation device can execute the routing diffusion simulation method described in the above method embodiment.

[0226] also, Fig.13 The technical effects of the routing diffusion simulation device can refer to the technical effects of the routing diffusion simulation method described in the above embodiment, which will not be repeated here.

[0227] For example, Fig.14 FIG. 2 is another possible structural diagram of the routing diffusion simulation device involved in the above embodiment. Fig.14 As shown, the route diffusion simulation device 1400 includes: a processor 1402 .

[0228] The processor 1402 is used to control and manage the actions of the route diffusion simulation device, for example, to execute the steps executed by the above-mentioned processing unit 1301, and / or to execute other processes of the technical solution described in this document.

[0229] The processor 1402 may be a device that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the contents of this application. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the contents disclosed in this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0230] Optionally, the route diffusion simulation device 1400 may further include a communication interface 1403, a memory 1401 and a bus 1404. The communication interface 1403 is used to support the communication between the route diffusion simulation device 1400 and other network entities. The memory 1401 is used to store the program code and data of the route diffusion simulation device.

[0231] Among them, the memory 1401 can be a memory in the routing diffusion simulation device, which can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory can also include a combination of the above types of memory.

[0232] The bus 1404 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 1404 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0233] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and module described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0234] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on an electronic device of the present application, the computer is enabled to execute the routing diffusion simulation method described in the above method embodiment.

[0235] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the electronic device of the present application executes each step executed by the routing diffusion simulation device in the method flow shown in the above method embodiment.

[0236] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values ​​in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0237] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0238] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A network ISIS routing diffusion simulation method, characterized in that: The method comprises: Determine a synchronization area according to the ISIS neighbor relationship in the network; wherein each synchronization area includes a plurality of nodes, and the nodes are used to simulate routing devices in the domain; Construct a link state database LSDB data body for each synchronization area; wherein the LSDB data body is responsible for storage and maintenance by the network data body, and each LSDB data body is used to characterize the link state relationship in the corresponding synchronization area; the LSDB data body includes a link state entry and a reachable IP entry; the link state entry is used to characterize the neighbor relationship between the ISIS processes in the two nodes corresponding to the link, and the reachable IP entry is used to characterize the reachable IP information announced by the ISIS process to the outside; Determine a preset corresponding relationship; wherein the preset corresponding relationship is stored and maintained by the device data body, and the preset corresponding relationship is used to characterize the pointing relationship between the ISIS process corresponding to each of the nodes and the LSDB data body; According to the preset corresponding relationship, the minimum spanning tree of the LSDB data body and the reachable IP entry, simulate the ISIS routing within the domain to determine the optimal routing entry; Determining the synchronization area according to the ISIS neighbor relationship in the network is done by the following steps: Determine an initialization area mark for each ISIS process according to the level mark of the ISIS process of the node; According to the ISIS neighbor relationship in the network, each group of ISIS neighbor relationships determines that the first ISIS process and the second ISIS process are ISIS neighbors of each other, and determines the first area mark and the second area mark corresponding to the first ISIS process and the second ISIS process; all the area marks in all ISIS processes that are the first area mark or the second area mark are modified to a third area mark; wherein the third area mark is the first area mark or the second area mark or a new area mark; After the area mark is modified according to all the group ISIS neighbor relationships, the ISIS processes with the same area mark are determined as one synchronization area.

2. The method according to claim 1, characterized in that The step of constructing a link state database LSDB data body for each synchronization area specifically includes: creating a data carrier according to each of the synchronization areas; For all links in the network, determine whether the link belongs to the synchronization area according to the area mark of the ISIS process of the nodes at both ends of each link; for each link belonging to the synchronization area, construct the link state entry, and load the link state entry into the data carrier corresponding to the synchronization area; For the ISIS processes of all nodes in the network, determine whether the ISIS process belongs to the synchronization area according to the area mark of the ISIS process; for each ISIS process belonging to the synchronization area, construct the reachable IP entry of the ISIS process, and load the reachable IP entry into the data carrier corresponding to the synchronization area.

3. The method according to claim 1, characterized in that The simulating of the intra-domain ISIS routing according to the preset corresponding relationship, the minimum spanning tree of the LSDB data body, and the reachable IP entry to determine the optimal routing entry specifically includes: For each LSDB data body in the network, calculate the minimum spanning tree separately; For each ISIS process of the node in the network, determining the LSDB data body corresponding to the ISIS process of the node according to the preset corresponding relationship stored in the node; For each ISIS process of the node in the network, determine multiple routing entries according to the minimum spanning tree calculation result and the reachable IP entry in the corresponding LSDB data body; According to the cost value of each routing entry, an optimal routing entry among the multiple routing entries is determined.

4. A routing diffusion simulation device, characterized in that: The routing diffusion simulation device comprises: a processing unit; The processing unit is used to determine the synchronization area according to the ISIS neighbor relationship in the network; wherein each of the synchronization areas includes a plurality of nodes, and the nodes are used to simulate the routing devices in the domain; The processing unit is further used to construct a link state database LSDB data body for each synchronization area; wherein the LSDB data body is responsible for storage and maintenance by the network data body, and each LSDB data body is used to characterize the link state relationship in the corresponding synchronization area; the LSDB data body includes a link state entry and a reachable IP entry; the link state entry is used to characterize the neighbor relationship between the ISIS processes in the two nodes corresponding to the link, and the reachable IP entry is used to characterize the reachable IP information announced by the ISIS process to the outside; The processing unit is further used to determine a preset corresponding relationship; wherein the preset corresponding relationship is stored and maintained by the device data body, and the preset corresponding relationship is used to characterize the pointing relationship between the ISIS process corresponding to each of the nodes and the LSDB data body; The processing unit is further configured to simulate the ISIS routing within the domain and determine the optimal routing entry according to the preset corresponding relationship, the minimum spanning tree of the LSDB data body, and the reachable IP entry; The processing unit is further used to determine an initialization area mark for each ISIS process according to the level mark of the ISIS process of the node; The processing unit is further used to determine, according to the ISIS neighbor relationship in the network, that the first ISIS process and the second ISIS process are ISIS neighbors of each other for each group of ISIS neighbor relationships, and determine the first area mark and the second area mark corresponding to the first ISIS process and the second ISIS process; modify all the area marks in all ISIS processes that are the first area mark or the second area mark to a third area mark; wherein the third area mark is the first area mark or the second area mark or a new area mark; The processing unit is further configured to determine the ISIS processes with the same area mark as a synchronization area after the area marks are modified according to all the group ISIS neighbor relationships.

5. The routing diffusion simulation device according to claim 4, characterized in that: The processing unit is further used to create a data carrier according to each of the synchronization areas; The processing unit is further configured to determine, for all links in the network, whether the link belongs to the synchronization area according to the area mark of the ISIS process of the nodes at both ends of each link; for each link belonging to the synchronization area, construct the link state entry, and load the link state entry into the data carrier corresponding to the synchronization area; The processing unit is also used to determine whether the ISIS process of all nodes in the network belongs to the synchronization area according to the area mark of the ISIS process; for each ISIS process belonging to the synchronization area, construct the reachable IP entry of the ISIS process, and load the reachable IP entry into the data carrier corresponding to the synchronization area.

6. The routing diffusion simulation device according to claim 4, characterized in that: The processing unit is further used to calculate a minimum spanning tree for each LSDB data body in the network; The processing unit is further configured to determine, for each ISIS process of the node in the network, the LSDB data body corresponding to the ISIS process of the node according to a preset corresponding relationship stored in the node; The processing unit is further configured to determine, for each ISIS process of the node in the network, a plurality of routing entries according to the minimum spanning tree calculation result and the reachable IP entries in the corresponding LSDB data body; The processing unit is further configured to determine an optimal routing entry among the multiple routing entries according to the cost value of each routing entry.

7. An electronic device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the routing diffusion simulation method as described in any one of claims 1-3.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions. When a computer executes the instructions, the computer executes the routing diffusion simulation method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Routing diffusion simulation method and device based on node and IP address

    CN114363191A

  • Simulation method and system for priority protocal of Internet large-scale route to open shortest path

    CN1404268A