Summary of the invention
The object of the present invention is to provide a kind of end-to-end path configuration methods for SNCP tangent rings business, and this method is not
It needs to configure point by point, does not also need creation protection subnet, setting is flexible, easy to operate, and business configuration is high-efficient.
The purpose of the present invention is what is be achieved through the following technical solutions:
A kind of end-to-end path configuration method for SNCP tangent rings business, which comprises
Step 1 is primarily based on path to be processed, selects the source node and destination node in path to be processed, and is arranged to be processed
The SNC node in path;
Step 2 obtains source node to all routed paths between destination node;
Step 3, be based on all routed paths obtained, select least two paths of duplicate node as main road by with
Protection routing;
Step 4, based on set SNC node, filter out 2 and meet the path of route conditions respectively as master, protection
Path, and this 2 paths is merged into 1 tangent endless path of SNCP;
Step 5 creates SNCP tangent rings business in the SNC node.
In step 1, the process of the SNC node in path to be processed is set are as follows:
It is directly configured on the node that path to be processed is chosen;
Or when creating SNCP end-to-end path, select qualified node for SNC node according to routing condition.
The process of step 2 specifically:
The access between node two-by-two is constructed, connected graph is formed by according to access and obtains source node between destination node
All routed paths.
The process of step 4 specifically:
Main, Protection path each Segment routing is traversed, according to the source of Segment routing, the consistency of egress, determining double hairs,
Node is received in choosing;
Attribute according to double hair node setting Segment routing sources is double hair types, if double hair nodes are SNC section simultaneously
Point, then the attribute that Segment routing source is arranged is SNC type;
It is that type is received in choosing according to the attribute that node setting Segment routing egress is received in choosing, if it is SNC section that choosing, which receives node simultaneously,
Point, then the attribute that Segment routing egress is arranged is SNC type;
The type of all Segment routings of Protection path is revised as protecting, and deletes the duplicate node on Protection path,
Path is completed to merge.
As seen from the above technical solution provided by the invention, the above method does not need to configure point by point, does not need to create yet
Protection subnet is built, setting is flexible, easy to operate, and business configuration is high-efficient.
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on this
The embodiment of invention, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, belongs to protection scope of the present invention.
The embodiment of the present invention is described in further detail below in conjunction with attached drawing, is implemented as shown in Figure 1 for the present invention
The end-to-end path configuration method flow diagram for SNCP tangent rings business that example provides, which comprises
Step 1 is primarily based on path to be processed, selects the source node and destination node in path to be processed, and is arranged to be processed
The SNC node in path;
For example, it is illustrated in figure 2 the topological structure schematic diagram of example of the embodiment of the present invention, is saved by source of NE1
Point, NE7 are destination node, and NE4 is SNC node.
In the specific implementation, the SNC node is there are two types of Provisioning Policy: first is that on the node that path to be processed is chosen directly into
Row setting;Such as need to choose NE4 node, right mouse button is clicked, selection setting " SNC node " menu item can be completed;Two
It is to select qualified node for SNC node according to routing condition, such as can choose when creating SNCP end-to-end path
The check box of pahtfinder hard, program determine that NE4 is SNC node automatically according to routing condition.
Step 2 obtains source node to all routed paths between destination node;
In this step, the access between node two-by-two can be constructed first, and connected graph is formed by according to access and is obtained
Source node is to all routed paths between destination node.
For example, the connected graph of the present embodiment uses adjacency list mode, is illustrated in figure 3 neighbour described in the embodiment of the present invention
The side structural schematic diagram of table is connect, adjacency list is constructed based on the side structure, is illustrated in figure 4 adjacency list constructed by the embodiment of the present invention
Schematic diagram all routed paths in Fig. 2 between source node NE1 to destination node NE7 are obtained 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, be based on all routed paths obtained, select least two paths of duplicate node as main road by with
Protection routing;
In this step, for specific example, based on all routed paths between source node NE1 to destination node NE7,
Can there are two types of selections: (1) with (4), (2) and (3), selection (1) and (4) in this example be routed, (4) are protection based on (1)
Routing is illustrated in figure 5 the routing of path obtained by embodiment of the present invention schematic diagram.
Step 4, based on set SNC node, filter out 2 and meet the path of route conditions respectively as master, protection
Path, and this 2 paths is merged into 1 tangent endless path of SNCP.
For example, the above process specifically:
It is Protection path to meet routing (4) in step 3 to meet the path for routing (1) in step 3 as main path;
Traverse main, Protection path each Segment routing (routing between such as NE1 to NE4, can be described as Segment routing), root
According to the source of Segment routing, the consistency of egress, determine that double hairs, choosing receive node, if NE1 is double hair nodes, NE7 is that node is received in choosing,
NE4 had both been double hair nodes, also received node for choosing;
Attribute according to double hair node setting Segment routing sources is double hairs type (DUAL_FED), if double hair nodes are same
When be SNC node, then be arranged Segment routing source attribute be SNC type;
It is that type (SELECTIVE_RECEIVING) is received in choosing according to the attribute that node setting Segment routing egress is received in choosing, such as
It is simultaneously SNC node that node is received in fruit choosing, then the attribute that Segment routing egress is arranged is SNC type;
The type of all Segment routings of Protection path is revised as protecting, deletes the node NE4 (main road on Protection path
Diameter has had the node), it completes path and merges.
Step 5 creates SNCP tangent rings business in the SNC node.
For example, by taking the topological structure of Fig. 2 as an example, need to create NE4-A1, NE4-A2, NE4-B1, NE4-B2 tetra-
(here, A1, A2, B1, B2 indicate that port numbers, such as A1.1.1 indicate the 1st of the 1st VC4 of the port A1 to the tangent rings business of point
A VC12), illustrate by taking the 1st VC12 of the 1st VC4 of each port as an example, is illustrated in figure 6 friendship described in the embodiment of the present invention
Pitch the schematic diagram of figure, specific intersection information (all unidirectional SNCP business) are as follows:
(1) source: NE4-A1.1.1, place: NE4-B1.1.1, protection: NE4-A2.1.1;
(2) source: NE4-A1.1.1, place: NE4-B2.1.1, protection: NE4-A2.1.1;
(3) source: NE4-B1.1.1, place: NE4-A1.1.1, protection: NE4-B2.1.1;
(4) source: NE4-B1.1.1, place: NE4-A2.1.1, protection: NE4-B2.1.1.
It is worth noting that, the content being not described in detail in the embodiment of the present invention belongs to professional and technical personnel in the field's public affairs
The prior art known.
In conclusion method provided by the embodiment of the present invention does not need to configure point by point, creation protection subnet is not needed yet,
Only need to be arranged SNC node, and SNC node is temporarily specified in configuration service, very flexibly, easy to operate, business is matched
Set it is high-efficient, especially in business change than more frequently access layer network, advantage become apparent from.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
Within the technical scope of the present disclosure, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claims
Subject to enclosing.