Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Fig. 1 is the flow chart according to the ethernet port guard method of the embodiment of the invention.As shown in Figure 1, comprise according to the ethernet port guard method of the embodiment of the invention:
Step S102 is provided with the subsequent use network element that is connected with network element with the master who makes up this ethernet port.
Step S104 monitors above-mentioned main operating state with network element;
Step S106 when this master breaks down with network element, uses subsequent use network element to make up this ethernet port.
Said method will expand to the protection degree of depth of ethernet port on the aspect of network element, solve in the prior art problem that can not carry out service protection in the whole network element situation of breaking down, increase professional protection rank and geographic redundancy ability.
Preferably, subsequent use network element can pass through NNI (Network Node Interface, Network-Node Interface) port and be connected with network element with main, is used to monitor main heartbeat message with the network element operating state with transmission.
Preferably, subsequent use network element can be connected with network element with main through VCG (Virtual Concatenation Group, the Virtual Concatenation) port in the NNI port, to transmit above-mentioned heartbeat message.
Stride the ethernet port of veneer for single network element internal and protect, all fault messages all are disclosed for network element, switch so network element can be accomplished protection through the information of self.And protect for the ethernet port of inter-network element; The fault message of a network element is for the another one network element; Be unknown fully; So the key technology of the ethernet port of inter-network element protection is how to accomplish the information sharing between the network element, switches thereby make can accomplish to protect according to these fault messages between the network element.
In the present invention; Two network elements are set up work network element (the main network element of using) through the NNI port of database and are protected the connection (claiming among the present invention that this is connected to the heartbeat line) between the network element (subsequent use network element) to be used for monitoring network element and the state of protecting network element (the present invention claims that this moves is the transmission heartbeat), realize that through heartbeat the protection of inter-network element is switched.The NNI port is a logic port, in the practical implementation process, can adopt ports such as VCG port in the NNI port, ethernet port to set up this connection.
Among the present invention, preferentially select for use the VCG port of the data veneer that comprises on the NNI ports physical to set up this connection, claim among the present invention that this NNI port is " a heartbeat port ".
Preferably, step S104, main situation about breaking down with network element can comprise following processing:
(1) the main transmission to subsequent use network element through above-mentioned connection (heartbeat line) with network element is used to monitor main heartbeat message with the network element operating state.
(2) when subsequent use network element does not receive the main heartbeat message that sends with network element in the given time, judge and mainly breaks down with network element.
In the practical implementation process; Need to use subsequent use network element to make up the situation of ethernet port; Promptly can cause subsequent use network element not receive the situation of master with the heartbeat message of network element transmission in the given time, in fact comprise two kinds, first is exactly that the master with network element fault has taken place really; Must use this moment subsequent use network element to make up ethernet port, with bearer service.Simultaneously, heartbeat NNI port channel fault also possibly occur and main, claim that this situation is " false fault " with the normal situation of network element.After considering that this thing happens; Subsequent use network element can not obtain the information of main port, and contingency is main to break down with network element in order to prevent, in this case; Subsequent use network element is also thought main and is broken down with network element; If at this moment subsequent use network element is normal, subsequent use network element will make up an ethernet port again, and at this moment 2 ethernet ports can bearer service.
Preferably, be because main when breaking down when subsequent use network element does not receive the main heartbeat message that sends with network element in the given time with being connected between network element and the subsequent use network element, this connect recover normal after, close the ethernet port of the subsequent use network element structure of use.
Can know by above-mentioned analysis, after " false fault " takes place, can cause occur simultaneously two can bearer service the situation of ether port, i.e. " two master " state (two main ports having occurred).Under " two master " state, 2 ports all can send business, for some the service of connection devices; Can the business that standby port (being the ethernet port that subsequent use network element makes up) receives be shielded; But for some the service of connection devices, can transmit, may influence business like this business of standby port.Therefore, after the fault recovery of heartbeat NNI port channel, need close one of them port and go wrong avoiding, preferentially close the ethernet port that uses subsequent use network element to make up among the present invention.
On concrete the realization, can be active and standby heartbeat priority in advance with network element configuration, the network element that priority is high is constant, and the network element that priority is low is closed the ethernet port of its structure.Also can be active and standby with the network element numbering in advance, under " two master " state, the ethernet side that uses the predetermined number network element to make up be closed another ethernet port.
Further, in order to prevent the generation of " two master ", can protect heartbeat NNI port channel, can be SNCP (Subnetwork Connection Protection, SNCP) protection or multiplex section protection.Simultaneously, the switching time of considering SNCP protection or multiplex section protection is within 50ms, so the cycle (heart beat cycle) that need require active and standby network element transmission heartbeat is greater than 50ms.
Below in conjunction with instance and Fig. 2, Fig. 3 above-mentioned preferred embodiment is elaborated.
For the definition of heartbeat, can comprise heartbeat pattern and heartbeat message.
The heartbeat pattern: two kinds of aggressive mode and Passive Mode are arranged, be in the master and use the veneer heartbeat pattern of network element to be aggressive mode, the heartbeat pattern that is in the veneer of subsequent use network element is a Passive Mode.The database that the is in Passive Mode professional NNI port of will stopping using, and issue AIS (Alarm Indication Signal, alarm indication signal) alarm to the backboard time slot that professional NNI port is bound.
Heartbeat message: three kinds of active detecting message, passive response message and general information messages are arranged.The active detecting message pattern that only has the initiative could be sent, and the passive response message only is in Passive Mode and could sends, and these two kinds of messages are used for heartbeat shakes hands, and wherein includes the heartbeat priority of network element.The general information message then is used for sending the information that comprises heart beat cycle, port status, heartbeat pattern to the opposite end.
As shown in Figure 2, the handling process of above-mentioned heartbeat aggressive mode is following:
Step S202: aggressive mode begins, and gets into the heartbeat handshake phase, sends heartbeat detection message;
Step S204:, return step S202 if do not receive the heartbeat response message; If receive heartbeat message, down carry out;
Step S206: what receive is the heartbeat response message, gets into step S208; What receive is heartbeat detection message, gets into step S210;
Step S208: accomplish heartbeat and shake hands, stop to send heartbeat detection message, get into the normal heartbeat stage, begin to send and receive common heartbeat message;
Step S210:, return step S202 if the heartbeat priority of detection messages is lower than local terminal heartbeat priority; If the heartbeat priority of detection messages is higher than local terminal heartbeat priority, get into step S218;
Step S212:, then return step S202 if in specified period, can not receive heartbeat message in the normal heartbeat stage; If can continue to receive the cycle message, down carry out;
Whether step S214: it is normal to detect the local terminal port, if normal, returns step S208; If find the local terminal port failure, down carry out;
Step S216: whether normal through receiving common heartbeat message detection Peer-Port, if Peer-Port is also undesired, then return step S208; If Peer-Port is normal, down carry out;
Step S218: the entering pattern changes the stage, the professional NNI port of stopping using, and the time slot of being bound to professional NNI port sends ais alarm;
Step S220: changing local terminal heartbeat pattern is Passive Mode.
As shown in Figure 3, the handling process of above-mentioned heartbeat Passive Mode is following:
Step S302: Passive Mode begins, and gets into the heartbeat handshake phase, detects and whether receives heartbeat detection message;
Step S304:, jump to step S310 if behind a predetermined heart beat cycle, also do not receive detection messages; If in a predetermined heart beat cycle, receive detection messages, down carry out;
Step S306: send the completion heartbeat of heartbeat response message and opposite end and shake hands, get into the normal heartbeat stage, begin to send and receive common heartbeat message;
Step S308: if in the regulation heart beat cycle, can continue to receive common heartbeat message, return step S306,, down carry out if in the regulation heart beat cycle, can not receive common heartbeat message in the normal heartbeat stage;
Step S310: whether normal, if the port has fault, return step S302 if detecting the port, if the port is normal, down carries out;
Step S312: the entering pattern changes the stage, launches professional NNI port, and the time slot that stops to be bound to professional NNI port sends ais alarm;
Step S314: changing the heartbeat pattern is aggressive mode.
Utilize heartbeat, can realize the ethernet port service protection of inter-network element according to following steps.
Steps A: the main port that will dock the network equipment is connected to an ethernet port of the blocks of data plate on the network element; This network element is called the main network element of using; The standby port that will dock the network equipment again is connected on the blocks of data plate of another one network element; This network element is called subsequent use network element, and the master is with the business information of the database configuration consistency of network element and subsequent use network element.
Step B: launch a main NNI port with network element and subsequent use network element data plate more respectively, the NNI port comprises a VCG port of database, and connects mutually, in order to transmit heartbeat, sets up the protection group.
Step C: configuration SNCP 1+1 on the next network element of business process, with network element data backboard plate time slot, alternate channel is to subsequent use network element data backboard plate time slot to main for master channel.
Step D: when the master breaks down with network element data plate port, switch through the protection of heartbeat trigger port, thereby switch the business on the database of subsequent use network element.
Step e: when the integrated circuit board at main port place breaks down or during main situation about breaking down with network element; Subsequent use network element detects the heartbeat channel failure; Launch standby port, and trigger port protection switches, thereby switch the business on the database of subsequent use network element.
Fig. 4 is the structured flowchart according to the ethernet port protective device of the embodiment of the invention.As shown in Figure 4, comprise according to the ethernet port protective device of the embodiment of the invention:
Main with network element 42, be used to make up above-mentioned ethernet port.
Subsequent use network element 44 is connected with network element 42 with main, is used to monitor main operating state with network element 42, when the master breaks down with network element 42, makes up above-mentioned ethernet port.
Said apparatus will expand to the protection degree of depth of ethernet port on the aspect of network element, solve in the prior art problem that can not carry out service protection in the whole network element situation of breaking down, increase professional protection rank and geographic redundancy ability.
Preferably, subsequent use network element 44 can be connected with network element 42 with main through the NNI port, is used to monitor main heartbeat message with network element 42 operating states with transmission.
Preferably, subsequent use network element 44 can be connected with network element 42 with main through the VCG port in the NNI port, to transmit above-mentioned heartbeat message.
The connection (heartbeat line) that above-mentioned two network elements are set up between work network element (the main network element of using) and the protection network element (subsequent use network element) through the NNI port (comprising ports such as VCG port, ethernet ports) of database is used for monitoring network element and the state (transmission heartbeat) of protecting network element, realizes that through heartbeat the protection of inter-network element is switched.Can preferentially select for use the VCG port to set up above-mentioned connection (heartbeat line).
Preferably, main with network element 42, can also be used for being used to monitor said main heartbeat message to subsequent use network element 44 transmissions with the network element operating state through above-mentioned connection (heartbeat line).
Subsequent use network element 44 can also be used for not receiving in the given time when leading the heartbeat message that sends with network element 42, judges that the master breaks down with network element 44.
In the practical implementation process; Need to use subsequent use network element 44 to make up the situation of ethernet port; Promptly can cause subsequent use network element 44 not receive the situation of master with the heartbeat message of network element 42 transmissions in the given time, in fact comprise two kinds, first is exactly that the master with network element 42 fault has taken place really; Must use this moment subsequent use network element 44 to make up ethernet port, with bearer service.Simultaneously, heartbeat NNI port channel fault also possibly occur and main, claim that this situation is " a false fault " with network element 42 normal situation.After considering that this thing happens; Subsequent use network element 44 can not obtain the information of main port, and contingency is main to break down with network element 42 in order to prevent, in this case; Subsequent use network element 44 is also thought main and is broken down with network element 42; If at this moment subsequent use network element 44 is normal, subsequent use network element 44 will make up an ethernet port again, and at this moment 2 ethernet ports can bearer service.
Preferably; Main with network element 42; Can also be used for not receiving the main heartbeat message that sends with network element 42 in the given time at subsequent use network element 44 is owing to lead when breaking down with being connected between network element 42 and the subsequent use network element 44; After this connects recovery normally, close the ethernet port that uses subsequent use network element 44 to make up.
Can know by above-mentioned analysis, after " false fault " takes place, can cause occur simultaneously two can bearer service the situation of ether port, i.e. " two master " state (two main ports having occurred).Therefore, after the fault recovery of heartbeat NNI port channel, need close one of them port and go wrong avoiding, preferentially close the ethernet port that uses subsequent use network element 44 to make up among the present invention.
Be elaborated below in conjunction with instance and 5 pairs of above-mentioned preferred embodiments of accompanying drawing.
Fig. 5 is the networking sketch map of the ethernet port protective device of the instance according to the present invention, and is as shown in Figure 5, and main port integrated circuit board place network element is network element W, and standby port integrated circuit board place network element is network element P, and the next network element of professional process is network element C.
At first, the database business configuration of network element W and network element P is consistent, and the time slot that professional NNI port is bound is through optical link integrated circuit board 1 to network element C, shown in the circuit 1 among network element W among Fig. 5 and the network element P.
Then, two network elements are launched a NNI port respectively as heartbeat NNI port, the bandwidth of 1 VC12 of the VCG port binding among the NNI (the 2M speed virtual container among the SDH), and interconnect through optical link integrated circuit board 2, shown in network element W among Fig. 5 and network element P circuit 2.
Then, at network element C, configuration SNCP protection, service aisle is connected with network element W through the optical link integrated circuit board, and the protection passage is connected with network element P through another optical link integrated circuit board.
At last, the configuration protection group is provided with active and standby ethernet user's port, and professional NNI port is set; Heartbeat NNI port is set, heartbeat priority is set, in principle; The heartbeat priority of the integrated circuit board at master port place is higher than the heartbeat priority at port place fully, and heart beat cycle is set, and accomplishes the protection configuration.
The professional fault that takes place has: main port linkage fault, main port integrated circuit board fault or network element W fault.
When the main port linkage fault, network element W has fault through heartbeat notice network element P main port, and the professional NNI port of stopping using simultaneously issues ais alarm to the time slot of professional NNI port binding; Network element P is after the notice of receiving network element W; Under the normal situation of standby port, launch professional NNI port, stop to issue ais alarm to the time slot of professional NNI port binding; And the SNCP of network element C protection detects service aisle ais alarm is arranged; Under the normal situation of protection passage, switching services receives to the protection passage, thereby has accomplished professional switching from the main port to the standby port.
Main port place database fault or network element W fault, because network element W faults itself, network element P does not receive heartbeat message in the heart beat cycle of regulation; Under the normal situation of standby port; Launch professional NNI port, stop to issue ais alarm, and the SNCP of network element C protection is because network element W fault to the time slot of professional NNI port binding; Detect service aisle ais alarm is arranged; Under the normal situation of protection passage, switching services receives to the protection passage, thereby has accomplished professional switching from the main port to the standby port.
From above description; Can find out, compared with prior art, the invention solves prior art can not be carried out service protection in the whole network element situation of breaking down problem; Expand to the degree of depth of protection on the aspect of network element, increased professional protection rank and geographic redundancy ability.The database of the present invention between network element introduced heartbeat NNI port direct interconnection, makes acquired information fast between network element, and responds fast, guaranteed professional switching fast, reduces the damage of business.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.