A kind of Business Stream guard method
Technical field
The present invention relates to the Business Stream resist technology, relate in particular to Business Stream and protocol massages guard method on multiprotocol label switching (MPLS, the Multi-Protocol Label Switching) network.
Background technology
Label switched path (LSP in the current MPLS network; Label Switching Path) goes up common operation and safeguard (OAM; Operations and Maintenance) and protection switch (PS; ProtectionSwitching) agreement is carried out detection of connectivity, fault delivery and the protection switching of LSP, to realize the protection to Business Stream.
Fig. 1 is made up of management plane 101, control plane 102 and datum plane 103 for the MPLS network equipment structure chart of operation OAM and PS agreement, the MPLS network equipment of operation OAM and PS agreement.Wherein, control plane 102 is mainly finished and is called out control, connects control, and supports these to connect protocol processes such as required route, signaling; Management plane 101 replenishes as one of control plane 102, finishes the maintenance of whole system, is responsible for all interplanar coordination and cooperations, can be configured and manages end-to-end the connection.The MPLS OAM module 111 and the MPLS PS module 112 that are positioned at control plane 102 run on the MPLS level; MPLS OAM module 111 is used to detect the state of specific LSP; when detecting defective, the meeting report and alarm, and notice MPLS PS module 112 is protected switching.
In the MPLS network, in the principle that adopts operation OAM and PS agreement on the forward path of 1: 1 protection group to carry out the Business Stream protection be: the arrival end of forward path periodically generates connective message and by this forward path it is sent to the port of export of this forward path; The port of export of forward path periodically detects and reads connective message, defect standard according to the agreement regulation judges whether defective takes place on the forward path, if defectiveness on the discovery forward path, then the port of export of forward path is carried out forward path protection switching, and generate the back to defective indication (BDI, Backward Defect Indication) message is sent to this BDI message by reverse path the arrival end of forward path; The arrival end of forward path is carried out forward path protection switching after detecting and read the BDI message.Forward described in the application is the flow direction of Business Stream, describedly is reversed the flow direction opposite with the Business Stream direction, and described forward path adopts 1: 1 protection group, comprises forward primary path and forward backup path.
Fig. 2 is the bussiness flow protection system structure chart of prior art.The forward Business Stream is from flowing to the service node B as the port of export among Fig. 2 as the service node A of arrival end, be connected with two forward paths between service node A and the service node B, these two forward paths are formed 1: 1 protection group, comprise:, represent with heavy line among Fig. 2 as the forward primary path of forward operating path; As the forward backup path in forward protection path, represent with fine line among Fig. 2 that under the normal condition, Business Stream transmits from the forward primary path.BDI message reverse among Fig. 2 flows to service node A from professional Node B, only connects the wall scroll reverse path between service node A and the service node B.
The bussiness flow protection system of prior art comprises: service node A protection system 201 and service node B protection system 202.Service node A protection system 201 comprises: OAM_A module 213 and PS_A module 214, OAM_A module 213 are used for generating and sending connective message, detection and treatments B DI message and notice PS_A module 214 execute protections switch; PS_A module 214 is used to carry out the forward path protection switching at service node A place, the work state information of preservation forward path.Service node B protection system 202 comprises: OAM_B module 225 and PS_B module 226, OAM_B module 225 are used for generating and send the connective message of BDI message, detection and processing and notify PS_B module 226 execute protections to switch; PS_B module 226 is used to carry out the forward path protection switching at service node B place, the work state information of preservation forward path.
Fig. 3 is the Business Stream guard method flow chart of prior art, and the Business Stream guard method of prior art may further comprise the steps:
Step 301~303: Business Stream transmits from the forward primary path; OAM_A module 213 generates connective message and send connective message on the forward primary path; OAM_B module 225 detects connective message, as detects connective message, and then execution in step 304, as do not detect connective message, then execution in step 305 and subsequent step thereof;
Step 304:OAM_B module 225 reads connective message and compares with defect standard, judge whether the forward primary path exists defective,, illustrate that there is defective in the forward primary path if meet defect standard, then execution in step 305 and subsequent step thereof, otherwise process ends;
Step 305~307:OAM_B module 225 notice PS_B modules 226 switch to Business Stream on the forward backup path; OAM_B module 225 generates the BDI messages, encapsulation reverse path label and sending on reverse path before the BDI message; OAM_A module 213 detects the BDI messages, as detects the BDI message, then execution in step 308 and subsequent step thereof, as do not detect BDI message, then process ends;
Step 308~311:OAM_A module 213 reads the path label before this BDI message; OAM_A module 213 reads this BDI message; OAM_A module 213 notice PS_A modules 214 switch to Business Stream on the forward backup path; Business Stream transmits from the forward backup path, process ends.
In the practical application; adopt the Business Stream guard method of prior art; in the bussiness flow protection system only forward path adopt the protection group; when the forward operating path breaks down; the Business Stream port of export carries out forward path protection switching Business Stream is switched on the forward protection path; and the reverse path transmission BDI message notifying Business Stream arrival end by single path carries out the path and switches; but because reverse path is not provided with the protection group; in case reverse path breaks down; the Business Stream arrival end will detect the message less than BDI; also just can't carry out forward path protection switching Business Stream is switched to forward protection path; then Business Stream is inconsistent at arrival end and port of export state, causes Business Stream to interrupt.
Summary of the invention
In view of this, main order of the present invention is to provide a kind of Business Stream guard method, can protect Business Stream and BDI message simultaneously.
For achieving the above object; the invention provides a kind of Business Stream guard method; forward path between two nodes of transmitting business stream adopts 1: 1 protection group, between two nodes of described transmitting business stream reverse path protection group is set, and this method may further comprise the steps:
A, Business Stream port of export node judge according to the detection of connectivity result whether forward path exists defective, if there is defective in forward path, the protection of then carrying out this node is switched, Business Stream port of export node generates the BDI message, and sends the BDI message to Business Stream arrival end node by set reverse path protection group;
B, Business Stream arrival end node receive that the protection of carrying out this node behind the BDI message switches.
Wherein, the port of export of Business Stream described in steps A node judges according to the detection of connectivity result whether forward path exists defective specifically to comprise:
A11, Business Stream arrival end node generate connective message and send connective message on the forward operating paths;
The connective message of A12, Business Stream port of export node detection, as detect connective message, execution in step A13 then, as do not detect connective message, then there is defective in forward path;
A13, Business Stream port of export node read connective message and compare with defect standard, if meet defect standard, then there is defective in forward path, otherwise there is not defective in forward path.
Wherein, described reverse path protection group is the 1+1 protection group, comprises reverse operation path and reverse protection path;
Sending BDI message to Business Stream arrival end node by set reverse path protection group described in the steps A may further comprise the steps:
A21, Business Stream port of export node encapsulate the reverse operation path label and send this BDI message on the reverse operation paths before the BDI message, Business Stream port of export node encapsulates the reverse protection path label and send this BDI message on the reverse protection path before the BDI message;
A22, Business Stream arrival end node detection BDI message, if detect the BDI message, execution in step A23 then is not if detect BDI message, then process ends;
The path label of a BDI message that the current detection that reads A23, Business Stream arrival end arrives is known the transmission path of this BDI message;
A24, the described BDI message of Business Stream arrival end read step A23.
Wherein, described reverse path protection group is 1: 1 protection group, comprises reverse operation path and reverse protection path;
Steps A is described to be may further comprise the steps by set reverse path protection group transmission BDI message to Business Stream arrival end node:
The operating state of A31, Business Stream port of export querying node reverse path protection group is known current reverse operation path;
A32, Business Stream port of export node encapsulate the reverse operation path label and send this BDI message on the reverse operation paths before the BDI message;
A33, Business Stream arrival end node detection BDI message, if detect the BDI message, execution in step A34 then is not if detect BDI message, then process ends;
A34, Business Stream arrival end node read the path label of detected BDI message, and read this BDI message.
Wherein, further comprising the steps of between described steps A 23 and the A24:
The operating state of A231, Business Stream arrival end querying node reverse path protection group is known current reverse operation path;
Whether A232, the described BDI message of Business Stream arrival end node determining step A23 from the reverse operation path, if from the reverse operation path, and execution in step A24 then, if not from the reverse operation path, execution in step A233 then;
A233, Business Stream arrival end node are abandoned steps A 23 described BDI messages; Business Stream arrival end node reads the path label before another part BDI message, and reads another part BDI message, execution in step B.
The Business Stream guard method that the present invention proposes; forward path and reverse path have all adopted the protection group in the bussiness flow protection system; when the forward operating path breaks down; the Business Stream port of export carries out forward path protection switching Business Stream is switched on the forward protection path; and carry out the path by reverse path transmission BDI message notifying Business Stream arrival end and switch; because reverse path is provided with the protection group; in case break down in the reverse operation path; the BDI message can also transmit from the reverse protection path; the Business Stream arrival end still can detect and receive the BDI message; also just can carry out forward path protection switching Business Stream is switched to forward protection path; thereby make the arrival end and the port of export state consistency of Business Stream; Business Stream transmits from forward protection path, reached simultaneously the purpose that Business Stream and BDI message are protected.
Description of drawings
Fig. 1 is the MPLS network equipment structure chart of operation OAM and PS agreement;
Fig. 2 is the bussiness flow protection system structure chart of prior art;
Fig. 3 is the Business Stream guard method flow chart of prior art;
Fig. 4 is the bussiness flow protection system structure chart of the embodiment of the invention one;
Fig. 5 is the Business Stream guard method flow chart of the embodiment of the invention one;
Fig. 6 is the bussiness flow protection system structure chart of the embodiment of the invention two;
Fig. 7 is the Business Stream guard method flow chart of the embodiment of the invention two.
Embodiment
Core concept of the present invention is: by in bussiness flow protection system for reverse path is provided with the protection group, realize simultaneously to the forward Business Stream and oppositely the BDI message protect.Here, the protection group of described setting can be 1+1 protection group or 1: 1 protection group.
For making the purpose, technical solutions and advantages of the present invention clearer, by the following examples, and with reference to accompanying drawing, the present invention is described in more detail.
Embodiment one:
Fig. 4 is the bussiness flow protection system structure chart of the embodiment of the invention one, be connected with two reverse paths between the service node A of present embodiment and the service node B, these two reverse paths have been formed the 1+1 protection group, comprise:, represent with heavy line among Fig. 4 as the reverse primary path in reverse operation path; As the reverse backup path in reverse protection path, represent with fine line among Fig. 4.Under the normal condition, the BDI message transmits from reverse primary path and reverse backup path simultaneously.
The bussiness flow protection system of present embodiment comprises: service node A protection system 201 and service node B protection system 202, and service node A is the Business Stream arrival end, service node B is the Business Stream port of export.Service node A protection system comprises: OAM_A module 213, PS_A module 214 and PS_A_R module 414, PS_A_R module 414 are used to carry out the reverse path protection switching at service node A place, the work state information of preservation reverse path; OAM_A module 213 also is used for the work state information to PS_A_R module 414 inquiry reverse paths.Service node B protection system comprises: OAM_B module 225 and PS_B module 226.
Fig. 5 is the Business Stream guard method flow chart of the embodiment of the invention one, and the Business Stream guard method of present embodiment may further comprise the steps:
Step 501~503: Business Stream transmits from the forward primary path; OAM_A module 213 generates connective message and send this connectedness message on the forward primary path; OAM_B module 225 detects connective message, as detects connective message, and then execution in step 504, as do not detect connective message, then execution in step 505 and subsequent step thereof;
Step 504:OAM_B module 225 reads connective message and compares with defect standard, judges whether defectiveness of forward primary path, as forward primary path defectiveness, and then execution in step 505 and subsequent step thereof, otherwise process ends;
Step 505~507:OAM_B module 225 notice PS_B modules 226 switch to Business Stream on the forward backup path; OAM_B module 225 generation BDI messages encapsulate reverse primary path label and are oppositely sending this BDI message on the primary path before the BDI message, encapsulate reverse backup path label and this BDI message of transmission on reverse backup path before the BDI message; OAM_A module 213 detects the BDI messages, as detects the BDI message, then execution in step 508 and subsequent step thereof, as do not detect BDI message, then process ends;
Step 508~509:OAM_A module 213 reads the path label of a BDI message, knows its transmission path; OAM_A module 213 is to PS_A_R module 414 inquiry reverse path operating states, corresponding relation according to transmission path and operating state, judge that whether this BDI message is from the reverse operation path, as this BDI message from the reverse operation path, then execution in step 513, as this BDI message is not from the reverse operation path, then execution in step 510 and subsequent step thereof;
Step 510~512:OAM_A module 213 is abandoned this BDI message; OAM_A module 213 reads the path label before another part BDI message, and reads another part BDI message, execution in step 514 and subsequent step thereof;
Step 513:OAM_A module 213 reads this BDI message, execution in step 514 and subsequent step thereof;
Step 514~515:OAM_A module 213 notice PS_A modules 214 switch to Business Stream on the forward backup path; Business Stream transmits from the forward backup path, process ends.
Because reverse path adopts the 1+1 protection group, OAM_B module 225 sends the BDI message simultaneously on reverse operation path and reverse protection path, in the then described step 507, OAM_A module 213 may detect two parts simultaneously respectively from the BDI message in reverse operation path and reverse protection path, then execution in step 508 and 509 reads the path label of a copy of it BDI message earlier, judge that whether the BDI message that is read is from the reverse operation path, from the reverse operation path, then execution in step 513 reads this BDI message as this BDI message; As this BDI message is not from the reverse operation path, and then execution in step 510~512 is abandoned this BDI message and read another part BDI message, and another part BDI message that reads this moment is the message from the reverse operation path.
In the described step 508, OAM_A module 213 is behind the path label that reads a copy of it BDI message, and also directly execution in step 513 reads this BDI message.
Embodiment two:
Fig. 6 is the bussiness flow protection system structure chart of the embodiment of the invention two, be connected with two reverse paths between the service node A of present embodiment and the service node B, these two reverse paths have been formed 1: 1 protection group, comprise:, represent with heavy line among Fig. 6 as the reverse primary path in reverse operation path; As the reverse backup path in reverse protection path, represent with fine line among Fig. 6.Under the normal condition, the BDI message transmits from reverse primary path.
The bussiness flow protection system of present embodiment comprises: service node A protection system 201 and service node B protection system 202, and service node A is the Business Stream arrival end, service node B is the Business Stream port of export.Service node A protection system comprises: OAM_A module 213, PS_A module 214 and PS_A_R module 414; Service node B protection system comprises: OAM_B module 225, PS_B module 226 and PS_B_R module 626, PS_B_R module 626 are used to carry out the reverse path protection switching at service node B place, the work state information of preservation reverse path; OAM_B module 225 also is used for the work state information to PS_B_R module 626 inquiry reverse paths.
Fig. 7 is the Business Stream guard method flow chart of the embodiment of the invention two, and the Business Stream guard method of present embodiment may further comprise the steps:
Step 701~703: Business Stream transmits from the forward primary path; OAM_A module 213 generates connective message and send this connectedness message on the forward primary path; OAM_B module 225 detects connective message, as detects connective message, and then execution in step 704, as do not detect connective message, then execution in step 705 and subsequent step thereof;
Step 704:OAM_B module 225 reads connective message and compares with defect standard, judges whether defectiveness of forward primary path, as forward primary path defectiveness, and then execution in step 705 and subsequent step thereof, otherwise process ends;
Step 705~706:OAM_B module 225 notice PS_B modules 226 switch to Business Stream on the forward backup path; OAM_B module 225 generates the BDI messages, and to PS_B_R module 626 inquiry reverse path operating states, judges whether reverse operation path of reverse primary path, is the reverse operation path as reverse primary path, and then execution in step 707; As reverse primary path is not the reverse operation path, and then execution in step 708;
Step 707:OAM_B module 225 encapsulates reverse primary path label and is oppositely sending this BDI message, execution in step 709 on the primary path before the BDI message;
Step 708:OAM_B module 225 encapsulates reverse backup path label and is oppositely sending this BDI message, execution in step 709 on the backup path before the BDI message;
Step 709:OAM_A module 213 detects the BDI messages, as detects the BDI message, then execution in step 710 and subsequent step thereof, as do not detect BDI message, then process ends;
Step 710~713:OAM_A module 213 reads the path label before this BDI message; OAM_A module 213 reads this BDI message; OAM_A module 213 notice PS_A modules 214 switch to Business Stream on the forward backup path; Business Stream transmits from the forward backup path, process ends.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.