Disclosure of Invention
The invention aims to provide an end-to-end path configuration method for SNCP tangent ring service, which does not need point-by-point configuration and protection subnet creation, has flexible setting, simple operation and high service configuration efficiency.
The purpose of the invention is realized by the following technical scheme:
an end-to-end path configuration method for SNCP tangent ring traffic, the method comprising:
step 1, firstly, selecting a source node and a sink node of a path to be processed based on the path to be processed, and setting an SNC node of the path to be processed;
step 2, obtaining all routing paths between the source node and the destination node;
step 3, based on all the obtained routing paths, selecting two paths with the least repeated nodes as a main route and a protection route;
step 4, screening 2 paths meeting routing conditions as a main path and a protection path respectively based on the set SNC nodes, and merging the 2 paths into 1 SNCP tangent ring path;
and 5, creating the SNCP tangent ring service at the SNC node.
In step 1, the process of setting the SNC node of the path to be processed is:
directly setting the node selected by the path to be processed;
or when the SNCP end-to-end path is created, selecting the nodes meeting the conditions as SNC nodes according to the routing condition.
The process of the step 2 specifically comprises the following steps:
and constructing a path between every two nodes, and obtaining all routing paths from the source node to the destination node according to a connected graph formed by the paths.
The process of the step 4 specifically comprises the following steps:
traversing each segment route of the main route and the protection route, and determining double-transmitting and selective-receiving nodes according to the consistency of source and destination ends of the segment routes;
setting the attribute of a segment routing source end as a dual-forwarding type according to the dual-forwarding node, and if the dual-forwarding node is an SNC node at the same time, setting the attribute of the segment routing source end as an SNC type;
setting the attribute of the segmented route destination as a selective receiving type according to the selective receiving node, and if the selective receiving node is an SNC node at the same time, setting the attribute of the segmented route destination as an SNC type;
and modifying the types of all the segmented routes of the protection path into protection, and deleting the repeated nodes on the protection path to complete path merging.
The technical scheme provided by the invention can show that the method does not need point-by-point configuration and creation of a protection subnet, and has the advantages of flexible setting, simple operation and high service configuration efficiency.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The following will describe the embodiment of the present invention in further detail with reference to the accompanying drawings, and as shown in fig. 1, is a schematic flow chart of an end-to-end path configuration method for SNCP tangent ring service provided by the embodiment of the present invention, where the method includes:
step 1, firstly, selecting a source node and a sink node of a path to be processed based on the path to be processed, and setting an SNC node of the path to be processed;
for example, as shown in fig. 2, which is a schematic diagram of a topology structure of an example according to the embodiment of the present invention, NE1 is used as a source node, NE7 is used as a sink node, and NE4 is used as an SNC node.
In specific implementation, the SNC node has two setting strategies: firstly, directly setting a node selected by a path to be processed; for example, the NE4 node needs to be selected, the right mouse button is clicked, and the SNC node menu item is selected and set; secondly, when the SNCP end-to-end path is created, a node meeting the conditions is selected as the SNC node according to the routing condition, for example, a check box of the complex path may be checked, and the program automatically determines the NE4 as the SNC node according to the routing condition.
Step 2, obtaining all routing paths between the source node and the destination node;
in this step, a path between every two nodes may be first constructed, and all routing paths between the source node and the sink node are obtained according to a connected graph formed by the path.
For example, the connectivity graph of this embodiment adopts an adjacency list mode, as shown in fig. 3, is a schematic diagram of an edge structure of the adjacency list according to the embodiment of the present invention, and constructs an adjacency list based on the edge structure, as shown in fig. 4, is a schematic diagram of the adjacency list constructed according to the embodiment of the present invention, and obtains all routing paths from source node NE1 to sink node NE7 in fig. 2 according to the adjacency list:
(1)NE1-->NE2-->NE4-->NE5-->NE7;
(2)NE1-->NE2-->NE4-->NE6-->NE7;
(3)NE1-->NE3-->NE4-->NE5-->NE7;
(4)NE1-->NE3-->NE4-->NE6-->NE7。
step 3, based on all the obtained routing paths, selecting two paths with the least repeated nodes as a main route and a protection route;
in this step, for a specific example, there may be two options based on all routing paths between source node NE1 to sink node NE 7: (1) and (4), (2) and (3), in this example, (1) and (4) are selected, where (1) is the main route and (4) is the protection route, as shown in fig. 5, which is a schematic diagram of the path route obtained by the embodiment of the present invention.
And 4, screening 2 paths meeting the routing conditions as a main path and a protection path respectively based on the set SNC nodes, and merging the 2 paths into 1 SNCP tangent ring path.
For example, the above process specifically includes:
taking the path conforming to the route (1) in the step 3 as a main path, and taking the path conforming to the route (4) in the step 3 as a protection path;
traversing each segment route (such as the route between NE1 and NE4, which can be called segment route) of the main and protection paths, determining double-sending and selective-receiving nodes according to the consistency of source and destination ends of the segment route, wherein NE1 is a double-sending node, NE7 is a selective-receiving node, and NE4 is a double-sending node and a selective-receiving node;
setting the attribute of a segment routing source end as a DUAL-forwarding type (DUAL _ FED) according to a DUAL-forwarding node, and if the DUAL-forwarding node is an SNC node at the same time, setting the attribute of the segment routing source end as an SNC type;
setting the attribute of the segmented route destination as a selective receiving type (SELECTIVE-RECEIVING) according to the selective receiving node, and if the selective receiving node is an SNC node at the same time, setting the attribute of the segmented route destination as an SNC type;
the type of all segment routes of the protection path is modified to protection, and node NE4 on the protection path (which the primary path already has) is deleted, completing the path merging.
And 5, creating the SNCP tangent ring service at the SNC node.
For example, taking the topology of fig. 2 as an example, it is necessary to create tangent ring traffic of four points, NE4-a1, NE4-a2, NE4-B1, and NE4-B2 (here, a1, a2, B1, and B2 represent port numbers, for example, A1.1.1 represents the 1 st VC12 of the 1 st VC4 of a1 port), and taking the 1 st VC12 of the 1 st VC4 of each port as an example for explanation, as shown in fig. 6, a schematic diagram of a cross graph according to an embodiment of the present invention is shown, and specific cross information (all unidirectional SNCP traffic) is:
(1) source: NE4-A1.1.1, sink: NE4-B1.1.1, protection: NE 4-A2.1.1;
(2) source: NE4-A1.1.1, sink: NE4-B2.1.1, protection: NE 4-A2.1.1;
(3) source: NE4-B1.1.1, sink: NE4-A1.1.1, protection: NE 4-B2.1.1;
(4) source: NE4-B1.1.1, sink: NE4-A2.1.1, protection: NE 4-B2.1.1.
It is noted that those skilled in the art will recognize that embodiments of the present invention are not described in detail herein.
In summary, the method provided by the embodiment of the present invention does not need to configure point-by-point, does not need to create a protection subnet, and only needs to set the SNC node, and the SNC node is temporarily specified when configuring the service, so that the method is very flexible, simple to operate, and high in service configuration efficiency, and especially in an access layer network with frequent service change, the advantage is more obvious.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.