A kind of method and device for transmitting OAM message
Technical field
The present invention relates to communication technical field, more particularly to a kind of method and device for transmitting OAM message.
Background technology
In PTN(Packet Transport Network, Packet Transport Network)In network, MPLS(Multi-Protocol
Label Switching, multiprotocol label switching)For the rapid data packet switch based on Tag switching and the system of route, energy
Fast-forwarding for realizing Packet Service.Packet network is generally by the way of dual-homed, as shown in figure 1, network element A and network element
Service connection or passage are set up between B, C respectively, when network element B is effective, network element A can carry out business transmission by network element B, work as net
During first B failures, network element A can carry out business transmission by network element C.Therefore, business biography is carried out only between A, B under normal circumstances
Send, the passage between network element A, C may be considered the Protection path of service aisle between network A, B.Dual-homing protection is landing section
To a kind of protection scheme of business during point failure.
In dual homed network as shown in Figure 1, such as network element A, network element B and network element C are MEP(Maintenance
Entity Group End Point, the end points of Maintenance Entity), then network element A and network element B, network element C need intercommunication OAM
(Operation administration and maintenance, Operations, Administration and Maintenance)Message.According to existing OAM
Two parts of OAM messages can be received on model, network element A by handling, respectively from network element B and network element C.
Generally, a network element can only run a MEP, then for receiving the network element A of two parts of OAM messages,
Abnormal report and alarm occurs, solution is there is no to this in the prior art.
The content of the invention
The embodiment of the present invention provides a kind of method and device for transmitting OAM message, for solving network element meeting in the prior art
There is the technical problem of abnormal report and alarm because of many receiving texts.
The first aspect of the present invention there is provided it is a kind of transmit OAM message method, including:
MEP in Virtual Home MEP determines whether the MEP is host node;
The MEP is generated when it is determined that the MEP is host node and is sent the first OAM message to receiving terminal;
The MEP forbids generation first OAM message when it is determined that the MEP is not host node;
Wherein, Virtual Home MEP includes at least two MEP, and each MEP property parameters are identical.
With reference in a first aspect, in the first possible implementation, the MEP in Virtual Home MEP determines the MEP
Before or after whether being host node, in addition to:Receive the second OAM message from the receiving terminal.
With reference to the first possible implementation, in second of possible implementation, in Virtual Home MEP
After MEP determines whether the MEP is host node and receives second OAM message, in addition to:
Second OAM message is sent to the Virtual Home by the MEP when it is determined that the MEP is not host node
Host node in MEP.
With reference to the first possible implementation, in the third possible implementation, in Virtual Home MEP
After MEP determines whether the MEP is host node and receives second OAM message, in addition to:The MEP is it is determined that described
When MEP is host node, second OAM message is handled.
Can with reference to any of first aspect or the first possible implementation to the third possible implementation
The implementation of energy, in the 4th kind of possible implementation, one and only one host node in the Virtual Home MEP;Institute
Stating method also includes:When meeting preparatory condition, masterslave switchover occurs for the MEP and another MEP.
The second aspect of the present invention is applied to Virtual Home MEP there is provided a kind of device for transmitting OAM message, described device
In MEP;Including:
Determining module, for determining whether the MEP is host node;
Operation module, for when it is determined that the MEP is host node, generating and sending the first OAM message to receiving terminal, and
When it is determined that the MEP is not host node, forbid generation first OAM message;Wherein, Virtual Home MEP includes at least two
Individual MEP, each MEP property parameters are identical.
With reference to second aspect, in the first possible implementation, described device also includes receiving module, for receiving
The second OAM message from the receiving terminal.
With reference to the first possible implementation, in second of possible implementation, the operation module is additionally operable to
When it is determined that the MEP is not host node, second OAM message is sent to the host node in the Virtual Home MEP.
With reference to the first possible implementation, in the third possible implementation, described device also includes processing
Module, for when it is determined that the MEP is host node, handling second OAM message.
Can with reference to any of second aspect or the first possible implementation to the third possible implementation
The implementation of energy, in the 4th kind of possible implementation, one and only one host node in the Virtual Home MEP;Institute
Stating device also includes switching module, for when meeting preparatory condition, occurring masterslave switchover with another MEP.
In the embodiment of the present invention, the Virtual Home MEP includes at least two MEP, each MEP property parameters phase
Together, then a MEP is invented equivalent to by least two MEP, the virtual MEP is externally counted as a MEP, described virtual
In MEP, only host node can just be generated and send OAM message to the receiving terminal, and OAM message will not be then generated from node,
More OAM message will not be sent to the receiving terminal, therefore, the virtual MEP can only send a described the to the receiving terminal
One OAM message, will not will send two parts of OAM messages by two MEP as in the prior art to receiving terminal, and for only receiving one
The receiving terminal of part OAM message, it is clear that will not occur abnormal report and alarm as in the prior art, it is ensured that each network element is just
Often operation.
Brief description of the drawings
Fig. 1 is dual homed network diagram in the prior art;
Fig. 2 is the method for transmission OAM message in the embodiment of the present invention;
Fig. 3 is the transmission channel schematic diagram of OAM message in the embodiment of the present invention;
Fig. 4 A are a kind of structure chart for the device for transmitting OAM message in the embodiment of the present invention;
Fig. 4 B are a kind of structure chart for the device for transmitting OAM message in the embodiment of the present invention;
Fig. 5 is a kind of structure chart for the device for transmitting OAM message in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method for transmitting OAM message, and methods described can include:In Virtual Home MEP
MEP determine whether the MEP is host node;The MEP is generated and sent out to receiving terminal when it is determined that the MEP is host node
Send the first OAM message;The MEP forbids generation first OAM message when it is determined that the MEP is not host node;Wherein,
Virtual Home MEP includes at least two MEP, and each MEP property parameters are identical.
In the embodiment of the present invention, the Virtual Home MEP includes at least two MEP, each MEP property parameters phase
Together, then a MEP is invented equivalent to by least two MEP, the virtual MEP is externally counted as a MEP, described virtual
In MEP, only host node can just be generated and send OAM message to the receiving terminal, and OAM message will not be then generated from node,
More OAM message will not be sent to the receiving terminal, therefore, the virtual MEP can only send a described the to the receiving terminal
One OAM message, will not will send two parts of OAM messages by two MEP as in the prior art to receiving terminal, and for only receiving one
The receiving terminal of part OAM message, it is clear that will not occur abnormal report and alarm as in the prior art, it is ensured that each network element is just
Often operation.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The techniques described herein may be used in various communication systems, such as current 2G, 3G communication systems and next generation communication
System, such as global system for mobile communications(GSM, Global System for Mobile communications), code division is more
Location(CDMA, Code Division Multiple Access)System, time division multiple acess(TDMA, Time Division
Multiple Access)System, WCDMA(WCDMA, Wideband Code Division Multiple
Access Wireless), frequency division multiple access(FDMA, Frequency Division Multiple Addressing)System, just
Hand over frequency division multiple access(OFDMA, Orthogonal Frequency-Division Multiple Access)System, single carrier
FDMA(SC-FDMA)System, GPRS(GPRS, General Packet Radio Service)System is long
Phase evolution(LTE, Long Term Evolution)System, PTN network system, router network system, MSTP(Multi-
Service Transmission Platform, multiservice transport platform)Network system, and other such communication systems.
The OAM being referred to herein, can be MPLS-TP(Multi-Protocol Label Switching
Transport Profile, multiprotocol label switching transmission subset)OAM, MPLS OAM, ETH(Ethernet, Ethernet)
OAM, and other such OAM.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms " and/
Or ", only a kind of incidence relation for describing affiliated partner, represents there may be three kinds of relations, for example, A and/or B, can be with table
Show:Individualism A, while there is A and B, these three situations of individualism B.In addition, character "/" herein, before and after typicallying represent
Affiliated partner is a kind of relation of "or".
The embodiment of the present invention is described in further detail with reference to Figure of description.
Embodiment one
Fig. 2 is referred to, the embodiment of the present invention provides a kind of method for transmitting OAM message, and the main flow of methods described is such as
Under:
Step 201:MEP in Virtual Home MEP determines whether the MEP is host node.Wherein, when it is determined that the MEP
During for host node, that is, result is determined when being, to perform step 202, when it is determined that the MEP is not host node, that is, determine result
For it is no when, perform step 203.
Fig. 3 is referred to, is the transmission channel schematic diagram of OAM message.2 and 3 in Fig. 3 represent a MEP respectively, the two
It is so that the Virtual Home MEP includes two MEP as an example that MEP, which is constituted in the Virtual Home MEP, i.e. Fig. 3,.But it is of the invention real
Apply the Virtual Home MEP in example to be not limited to only be made up of two MEP, it can include multiple MEP.Dotted line frame in Fig. 3
It is inside 2 and 3, represents the 2 and 3 composition Virtual Home MEP.From figure 3, it can be seen that having connecting path, 2 Hes between 2 and 3
3 can be communicated by the connecting path.
1 in Fig. 3 represents in a MEP, the embodiment of the present invention for convenience, can be referred to as receiving terminal by 1.1 is not
Belong to the Virtual Home MEP.
For example, 1 can be connected with first network side apparatus, 2 can be connected with 3 with the second network side equipment, such as institute
It can be base station to state first network side apparatus, such as described second network side equipment can be RNC(Radio Network
Controller, radio network controller), it is not shown in figure 3.
Specifically, in the embodiment of the present invention, MEP2 and MEP3 shown in Fig. 3 can be two nodes in network, can
To be that MEP2 and MEP3 sets identical property parameters first, thus institute is set to equivalent to by the MEP2 and the MEP3
State Virtual Home MEP.For other network elements in network, the Virtual Home MEP is exactly a MEP, then, no matter described
How many MEP Virtual Home MEP includes, and it is externally just rendered as a MEP.A MEP externally is rendered as, mainly
Refer to, for receiving terminal, can only see a Virtual Home MEP.
In the embodiment of the present invention, if only including two MEP in the Virtual Home MEP, the two Virtual Homes MEP
It is referred to as virtual MEP dual homeds node.
In the embodiment of the present invention, MEP property parameters can include but is not limited to MEG ID(Maintenance Entity body
Part certification)、MEP ID(The end points authentication of Maintenance Entity)、MAC Address (Media Access Control
Address, media access control address), etc..
Preferably, in the embodiment of the present invention, before the MEP in Virtual Home MEP determines whether the MEP is host node
Or afterwards, the MEP may also receive from the second OAM message of the receiving terminal.
If in determining the MEP receives second OAM message before whether being host node, then the MEP can
To continue to determine whether the MEP is host node.
If in determining whether the MEP is to receive second OAM message after host node, then the MEP because
To determine whether the MEP is host node before, it need not can determine again, or, the MEP can also determine described again
Whether MEP is host node.
Further, in the embodiment of the present invention, determine whether the MEP is host node and receives described the in the MEP
After two OAM messages, if the MEP determines that the MEP is host node, directly second OAM message can be carried out
Processing.
Further, in the embodiment of the present invention, determine whether the MEP is host node and receives described the in the MEP
After two OAM messages, if the MEP determines that the MEP is not host node, the MEP can send out second OAM message
The host node in the Virtual Home MEP is given, second OAM message is handled by host node.It is described in the embodiment of the present invention
Host node in Virtual Home MEP and from having connecting path between node, host node and can pass through the connection from node
Path is communicated.
Step 202:The MEP is generated when it is determined that the MEP is host node and is sent the first OAM message to receiving terminal.
In the embodiment of the present invention, if the MEP determines that the MEP is host node, the MEP can be generated and to institute
State receiving terminal and send first OAM message.
In the embodiment of the present invention, the host node in the Virtual Home MEP can generate first OAM message, and can
To send first OAM message to the receiving terminal, first OAM message is handled by the receiving terminal.Then, institute
Stating in Virtual Home MEP MEP can determine whether the MEP is host node first, if it is determined that be saved based on the MEP
Point, then the MEP can generate first OAM message.
Step 203:The MEP forbids generation first OAM message when it is determined that the MEP is not host node;Its
In, Virtual Home MEP includes at least two MEP, and each MEP property parameters are identical.
In the embodiment of the present invention, if the MEP determines that the MEP is not host node, forbid generation the first OAM
Message.That is, in the embodiment of the present invention, in the Virtual Home MEP, only host node can generate OAM message, and be connect to described
Receiving end sends the OAM message of generation, and OAM message will not be then generated from node, and OAM reports will not be more sent to the receiving terminal
Text, so as to ensure that the receiving terminal can only receive a OAM message, effectively prevent the receiving terminal and the feelings of abnormality alarming occurs
Condition.
In the embodiment of the present invention, the receiving terminal can generate second OAM message, it is possible to the Virtual Home
The MEP that MEP is sent in second OAM message, the Virtual Home MEP is received after second OAM message, can be with
Whether be host node, if it is determined that determining that the MEP is host node, then the MEP can be directly to institute if first determining whether the MEP
State the second OAM message to be handled, if it is determined that determining that the MEP is not host node, then the MEP can be by described second
OAM message is sent to host node, and second OAM message is handled by host node.
Can there is no sequencing relation in the embodiment of the present invention between both approaches to be protected.
Further, in one embodiment of the invention, one and only one host node in the Virtual Home MEP.The side
Method can also include:When meeting preparatory condition, masterslave switchover occurs for the MEP and another MEP.
If the MEP is host node, when meeting the preparatory condition, the MEP can complete to lead with one from node
It is standby to switch.
If the MEP is from node, when meeting the preparatory condition, the MEP can complete to lead with a host node
It is standby to switch.
Preferably, if it is determined that the MEP is not host node, then the MEP can in real time, regularly or when being triggered be monitored
Whether host node is normal, if the MEP determines that host node is abnormal, the MEP can be set to host node by the MEP.
Now, the preparatory condition is:The MEP determines that host node is abnormal.
Preferably, if it is determined that the MEP is not host node, then the MEP can in real time, regularly or when being triggered be monitored
Whether the connecting path between host node is normal, if the MEP determines that the connecting path is abnormal, and the MEP can be with
The MEP is set to host node.
Now, the preparatory condition is:The MEP determines that the connecting path is abnormal.
Preferably, if it is determined that the MEP is host node, then the MEP can in real time, regularly or when being triggered to described
MEP is monitored, if monitoring determines that the MEP is abnormal, and the MEP can be to one in the Virtual Home MEP from section
Point sends information, and this is set into host node from node.
Now, the preparatory condition is:The MEP determines that the MEP is abnormal.
Preferably, the Virtual Home MEP can receive the switching command for realizing masterslave switchover, then receiving
State after switching command, the host node and one in the Virtual Home MEP can complete masterslave switchover from node.
Now, the preparatory condition is:The MEP receives the switching command for realizing masterslave switchover.
Embodiment two
Fig. 4 A are referred to, the embodiment of the present invention provides a kind of device for transmitting OAM message, and described device can apply to void
Intend a MEP in ownership MEP.Preferably, described device can be exactly the MEP in itself.Described device can include determining that
Module 401 and operation module 402.
Determining module 401 is determined for whether the MEP is host node.
Operation module 402 can be used for it is determined that the MEP be host node after, generate simultaneously to receiving terminal send the first OAM
Message;Wherein, Virtual Home MEP includes at least two MEP, and each MEP property parameters are identical.
Alternatively, described device can also include receiving module.
The receiving module can be used for receiving the second OAM message from the receiving terminal.
Alternatively, operation module 402 can be also used for it is determined that the MEP be host node after, will the 2nd OAM report
Text is sent to the host node in the Virtual Home MEP.
Alternatively, described device can also include processing module.
The processing module can be used for handling second OAM message.
Alternatively, described device can also include switching module.
In the embodiment of the present invention, one and only one host node in the Virtual Home MEP, the module of switching can be used
In when meeting preparatory condition, occurs masterslave switchover with another MEP.
Fig. 4 B are referred to, are that described device includes determining module 401, operation module 402, receiving module 403, processing mould
Block 404 and structure chart when switching module 405.
Wherein, in described device in addition to including determining module 401 and operation module 402, receiving module can not included
403rd, processing module 404 and module 405 is switched, or comprising receiving module 403, processing module 404 and module 405 can be switched
In part of module or whole module, specifically can be different according to actual conditions and different.
Embodiment three
The embodiment of the present invention is additionally provided in a kind of device 500 for transmitting OAM message, the embodiment of the present invention, described device
The MEP that can apply in Virtual Home MEP.Preferably, described device can be exactly the MEP in itself.
As shown in figure 5, the device 500 includes:Bus 540;And it is connected to processor 510, the memory of bus 540
520 and interface 530, the wherein interface 530 is used to send the first OAM message to receiving terminal;The memory 920 refers to for storage
Order, the processor 910 is used to perform the instruction for determining whether the MEP is host node;The processor 910 performs the instruction
It is additionally operable to when it is determined that the MEP is host node, generate first OAM message;The processor 910 performs the instruction and is additionally operable to
When it is determined that the MEP is not host node, forbid generation first OAM message.
In embodiments of the present invention, alternatively, the interface 530 is used to receive the second OAM message from the receiving terminal.
In embodiments of the present invention, alternatively, the interface 530 is used to manage device 910 in this place by performing instruction determination
When the MEP is not host node, second OAM message is sent to the host node in the Virtual Home MEP.
In embodiments of the present invention, alternatively, the processor 910 performs the instruction and is additionally operable to it is determined that based on the MEP
During node, second OAM message is handled.
In embodiments of the present invention, one and only one host node in the Virtual Home MEP;Alternatively, the processor
910, which perform the instruction, is additionally operable to when meeting preparatory condition, and masterslave switchover occurs for the MEP and another MEP.
Therefore, the device 500 of the transmission OAM message of the embodiment of the present invention, by determining whether the MEP is host node,
And when it is determined that the MEP is not host node, forbid generation first OAM message, so as to ensure only to receive to described
End sends a first OAM message, two parts of OAM reports will not be sent to receiving terminal by two MEP as in the prior art
Text.And for only receiving the receiving terminal of a OAM message, it is clear that will not occur abnormal upper report as in the prior art
It is alert, it is ensured that the normal operation of each network element.
The embodiment of the present invention provides a kind of method for transmitting OAM message, and methods described can include:In Virtual Home MEP
MEP determine whether the MEP is host node;The MEP is generated and sent out to receiving terminal when it is determined that the MEP is host node
Send the first OAM message;The MEP forbids generation first OAM message when it is determined that the MEP is not host node;Wherein,
Virtual Home MEP includes at least two MEP, and each MEP property parameters are identical.
In the embodiment of the present invention, the Virtual Home MEP includes at least two MEP, each MEP property parameters phase
Together, then a MEP is invented equivalent to by least two MEP, the virtual MEP is externally counted as a MEP, described virtual
In MEP, only host node can just be generated and send OAM message to the receiving terminal, and OAM message will not be then generated from node,
More OAM message will not be sent to the receiving terminal, therefore, the virtual MEP can only send a described the to the receiving terminal
One OAM message, will not will send two parts of OAM messages by two MEP as in the prior art to receiving terminal, and for only receiving one
The receiving terminal of part OAM message, it is clear that will not occur abnormal report and alarm as in the prior art, it is ensured that each network element is just
Often operation.
It is apparent to those skilled in the art that, for convenience and simplicity of description, only with above-mentioned each function
The division progress of module is for example, in practical application, as needed can distribute above-mentioned functions by different function moulds
Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to corresponding in preceding method embodiment
Journey, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
Display or the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, the technical scheme of the application is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment(Can be personal computer, server, or network equipment etc.)Or processor(processor)Perform the application each
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
Described above, above example is only described in detail to the technical scheme to the application, but implements above
The explanation of example is only intended to the method and its core concept for helping to understand the present invention, should not be construed as limiting the invention.This
Those skilled in the art the invention discloses technical scope in, the change or replacement that can be readily occurred in should all be covered
Within protection scope of the present invention.