CN109547229A - A kind of Ethernet fault handling method and device - Google Patents
A kind of Ethernet fault handling method and device Download PDFInfo
- Publication number
- CN109547229A CN109547229A CN201710858109.2A CN201710858109A CN109547229A CN 109547229 A CN109547229 A CN 109547229A CN 201710858109 A CN201710858109 A CN 201710858109A CN 109547229 A CN109547229 A CN 109547229A
- Authority
- CN
- China
- Prior art keywords
- mep
- state
- transmitting terminal
- uni
- port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/06—Generation of reports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the invention provides a kind of Ethernet fault handling method and devices, Ethernet fault handling method includes: the inspection link information CCM message for receiving transmitting terminal MEP and sending, judge whether that indicating that transmitting terminal MEP has been detected is out of order, and obtains judging result according to CCM message;The state of the user network side uni port management mode of receiving end MEP is set according to judging result;The state of the uni port management mode of receiving end MEP includes: open state and closed state, wherein, open state is for indicating that the business of uni port is normal, closed state is used to indicate the service disconnection of uni port, but the physical connection state of the uni port is consistent with the connection status of uni port multiplicative model.Local network can be isolated in the Ethernet fault handling method between the failure duration, protect the safety of the network equipment and user equipment hung under MEP, be isolated and carry out fault diagnosis simultaneously for network connection segment, and to reducing, investigation range is also helpful.
Description
Technical field
The present invention relates to the OAM of ethernet network (Operation Administration and Maintenance, behaviour
Make, management, maintenance) functional area, in particular to a kind of Ethernet fault handling method and device.
Background technique
OAM(Operation Administration Maintenance) for error management is able to detect, verifies, positions and notices different fault conditions;Ethernet connects
A kind of continuous OAM of property inspection (Ethernet continuity check, ETH-CC) as initiative, can be applied to mistake pipe
The application of reason, performance monitoring or protection conversion;OAM PDU (Protocol Data Unit, association for the carrying of ETH-CC information
View data cell) it is CCM (Connection Check Message checks link information) frame;After ETH-CC is activated,
MEG (ME Group, Maintenance Entity) endpoint MEP (ME Group End Point, Maintenance Entity endpoint) will be according to having matched
The transmission cycle set periodically sends CCM frame, it is also contemplated that can it is right from ME (Maintenance Entity, maintenance entity)
Deng MEP at receive have ETH-CC information frame, when MEP receives CCM frame, it will be checked, CCM frame can detect
Different fault conditions;
Ethernet remote port fault indication function (Remote Defect Indication Function of
Ethernet, ETH-RDI) fault condition encountered can be exchanged with the MEP of its equity by MEP.ETH-RDI is only in ETH-
CC transmission just uses when realizing.
When MEP receives RDI (Remote Defect Indication, remote defect instruction) instruction, it may be possible to
Other failures of itself either far-end fault instruction is made any response currently without specification or standard requirements MEP and is moved
Make;However, how timely automated removing RDI state, restore the UNI (User Network Interface, user network side)
The normal communication function of interface, often the MEP of backup link does not need the function of considering to realize for this.
If setting is after MEP receives RDI instruction, the uni port forced interruption of MEP, MEP itself can be detected at this time
There is physical connection interruption to uni interface, entire ME group can be because the uni interface failure of MEP leads to not remove RDI shape automatically
State, system can not self-healings.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of Ethernet fault handling method and device,
It can solve the problem of local network is isolated between the failure duration.
One aspect according to an embodiment of the present invention provides a kind of Ethernet fault handling method, comprising:
The inspection link information CCM message that transmitting terminal MEP is sent is received, is judged whether to indicate transmitting terminal according to CCM message
MEP, which has been detected, to be out of order, and obtains judging result;
The state of the user network side uni port management mode of the receiving end MEP is set according to the judging result;Its
In,
The state of the uni port management mode of the receiving end MEP includes: open state and closed state, wherein described
For open state for indicating that the business of uni port is normal, the closed state is used to indicate the service disconnection of uni port, but should
The physical connection state of uni port is consistent with the connection status of uni port multiplicative model.
Optionally, the user network side uni port that the receiving end MEP is arranged according to the judging result manages mould
The state of formula, comprising:
It is out of order when the judging result indicates that transmitting terminal MEP has been detected for the CCM message, by the receiving end MEP
The state of management mode of uni port be set to off closed state.
Optionally, the user network side uni port that the receiving end MEP is arranged according to the judging result manages mould
The state of formula, comprising:
When the judging result is that the CCM message indicates that failure is not detected in transmitting terminal MEP, by the receiving end
The state of the management mode of the uni port of MEP is set on state.
Optionally, after setting the closed state of management mode for the state of the uni port of the receiving end MEP,
The method also includes:
The physical connection state of the uni port of regular inquire-receive end MEP;
If the physical connection state of the uni interface of receiving end MEP is connection status, sends and have what port normally connected
Then the CCM message notifying transmitting terminal MEP of type information is returned and is executed the inspection connection letter for receiving transmitting terminal MEP and sending
CCM message is ceased, is judged whether to indicate that transmitting terminal MEP has detected the step of being out of order, obtaining judging result according to CCM message;
If the physical connection state of the uni interface of receiving end MEP is off-state, send with port disconnecting
Then the CCM message notifying transmitting terminal MEP of type information is returned and is executed the inspection connection letter for receiving transmitting terminal MEP and sending
CCM message is ceased, is judged whether to indicate that transmitting terminal MEP has detected the step of being out of order, obtaining judging result according to CCM message.
Other side according to an embodiment of the present invention additionally provides a kind of Ethernet fault treating apparatus, comprising:
Detection module, the inspection link information CCM message sent for receiving transmitting terminal MEP are according to the judgement of CCM message
No instruction transmitting terminal MEP, which has been detected, to be out of order, and obtains judging result;
Setup module, for the user network side uni port management of the receiving end MEP to be arranged according to the judging result
The state of mode;Wherein,
The state of the uni port management mode of the receiving end MEP includes: open state and closed state, wherein described
For open state for indicating that the business of uni port is normal, the closed state is used to indicate the service disconnection of uni port, but should
The physical connection state of uni port is consistent with the connection status of uni port multiplicative model.
Optionally, the setup module includes:
First setting unit, for being that the CCM message indicates that transmitting terminal MEP has detected event when the judging result
Barrier, is set to off closed state for the state of the management mode of the uni port of the receiving end MEP.
Optionally, the setup module includes:
Second setting unit, for being that the CCM message indicates that event is not detected in transmitting terminal MEP when the judging result
Barrier, is set on state for the state of the management mode of the uni port of the receiving end MEP.
Optionally, described device further include:
Enquiry module, the physical connection state of the uni port for regular inquire-receive end MEP;
First sending module is sent if the physical connection state of the uni interface for receiving end MEP is connection status
CCM message notifying transmitting terminal MEP with the type information that port normally connects, then detection trigger module executes the reception
The inspection link information CCM message that transmitting terminal MEP is sent judges whether to indicate that transmitting terminal MEP has detected event according to CCM message
The step of hindering, obtaining judging result;
Second sending module is sent if the physical connection state of the uni interface for receiving end MEP is off-state
The CCM message notifying transmitting terminal MEP of type information with port disconnecting, then detection trigger module executes the reception
The inspection link information CCM message that transmitting terminal MEP is sent judges whether to indicate that transmitting terminal MEP has detected event according to CCM message
The step of hindering, obtaining judging result.
Another aspect according to an embodiment of the present invention additionally provides a kind of Ethernet fault treating apparatus, comprising: storage
Device, processor and storage on a memory and the computer program that can run on a processor, the processor execution journey
The step in Ethernet fault handling method as described above is realized when sequence.
Another aspect according to an embodiment of the present invention additionally provides a kind of computer readable storage medium, stores thereon
There is computer program, which realizes the step in Ethernet fault handling method as described above when being executed by processor.
The embodiment of the present invention has the following beneficial effects:
Firstly, judging whether that indicating that transmitting terminal MEP has been detected is out of order, and obtains judging result according to CCM message;Further according to
The state of the user network side uni port management mode of the receiving end MEP, in this way Ethernet event is arranged in the judging result
Local network can be isolated after MEP receives the CCM message of RDI set in barrier processing method between the failure duration, protect
The safety of the network equipment and user equipment hung under MEP is isolated simultaneously for network connection segment and carries out fault diagnosis, to contracting
Small investigation range is also helpful;After distal end and faults itself are eliminated, which can restore uni interface
Function, automatic to remove RDI state, entire ME group network being capable of self-healing, it is ensured that the normal connection of network and Ethernet distally event
Barrier instruction function playing a role promptly and accurately.
Detailed description of the invention
Fig. 1 is a kind of flow chart of Ethernet fault handling method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another Ethernet fault handling method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of Ethernet fault treating apparatus provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another Ethernet fault treating apparatus provided in an embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.
Term " first ", " second " in description and claims of this specification etc. are for distinguishing similar right
As without being used to describe a particular order or precedence order.It should be understood that the data used in this way in the appropriate case can be with
It exchanges, so that the embodiment of the present invention described herein for example can be with suitable other than those of illustrating or describing herein
Sequence is implemented.
In order to realize the active isolation local network during Ethernet remote port failure, the present invention provides a kind of Ethernets
Fault handling method, Fig. 1 is a kind of flow chart of Ethernet fault handling method provided in an embodiment of the present invention, referring to Fig. 1, institute
Stating Ethernet fault handling method includes:
S101 receives the inspection link information CCM message that transmitting terminal MEP is sent, and judges whether instruction hair according to CCM message
Sending end MEP, which has been detected, to be out of order, and obtains judging result.
Optionally, the judging result can be obtained by CCM message RDI field.It should be noted that the judging result
It include: that CCM message instruction transmitting terminal MEP has been detected and is out of order and CCM message instruction transmitting terminal MEP is not examined
Measure failure.
For example, receiving end MEP once receives a CCM frame, receiving end MEP will check it, and in RDI field
RDI situation is detected when being set.RDI is the information unit of a bit of CCM PDU, when RDI is 1, transmitting terminal MEP instruction
It has detected and has been out of order, into RDI state, RDI state shows that there are failure of connectivity in ME group, at this time in order to protect receiving end
The safety of the network equipment and user equipment hung under MEP uni interface needs that local network is isolated.When RDI is 0, transmitting terminal
MEP does not transmit indicating fault.
UNI (user network side) Port Management mode of the receiving end MEP is arranged according to the judging result in S102
State;
In embodiments of the present invention, the uni port mode of the receiving end MEP includes: multiplicative model and management mode.
Wherein, the uni port multiplicative model of the receiving end MEP is used for according to the negotiation with the Ethernet of transmitting terminal MEP
State determines the physical connection state and/or transmitting-receiving packet rate of uni port.
The multiplicative model includes: DOWN (interruption) state of multiplicative model and UP (connection) state of multiplicative model.
When the uni interface of receiving end MEP is arranged in multiplicative model, uni interface is according to the association of the Ethernet interface with opposite end
Quotient's state automatically determines port connection state, rate etc.;The DOWN state of multiplicative model refers to that the physical connection state of port is
Interrupt status, the UP state of multiplicative model refer to that the physical connection state of port is connection status.
For example, when the uni interface of receiving end MEP is arranged in multiplicative model, if being in the DOWN state of multiplicative model,
Receiving end MEP will send with interface isDown (port disconnecting) TLV (Type, Length and Value, type,
Length and attribute value) information CCM message to opposite end MEP, inform that port failure, opposite end MEP can reply the CCM that RDI set is 1
Message;If being in the UP state of multiplicative model, receiving end MEP can be sent with interface isUp (port normally connects)
The CCM message of TLV information can reply the CCM message that RDI set is 0 to opposite end MEP, opposite end MEP.
The uni port management mode of the receiving end MEP is used to indicate the service disconnection or normal of uni port, Ke Yili
Solution, management mode are the interruptions or normal for the send and receive packets for controlling uni interface.
The management mode controls the send and receive packets of the uni interface of receiving end MEP, and the management mode includes: pipe
DOWN (closing) state of reason mode and UP (unlatching) state of management mode.
Wherein, the DOWN state of the management mode refer to port traffic interrupt, but the physical connection state of uni interface with
It is consistent when multiplicative model, port can be automatically determined according to the negotiation situation of the Ethernet interface with opposite end (transmitting terminal) MEP
Physical connection state and transmitting-receiving packet rate etc..For example, all Ethernet packets do not pass through when being in the DOWN state of management mode
The uni port of the MEP is sent outward, meanwhile, which directly abandons all Ethernet packets received.
The UP state of the management mode refers to that port traffic is normal, i.e., uni interface send and receive packets is normal.
For example, the DOWN state of management mode is to realize the transmitting-receiving of uni interface by the control of the send and receive packets module to MEP
The interruption of packet, it is to be understood that the uni port that all Ethernet packets do not pass through the MEP is sent outward, meanwhile, the port
All Ethernet packets received directly abandon.The UP state of management mode is real by the setting of the send and receive packets module to MEP
Now uni interface send and receive packets is normal.
It should be noted that opposite end (or being reciprocity) MEP of the receiving end MEP includes one or more transmitting terminals
MEP.The MEP of the opposite end (or being reciprocity) of the transmitting terminal MEP includes one or more receiving end MEP.
Optionally, the S102 is comprising steps of S1021 and S1022.
S1021 is out of order, by the reception when the judging result indicates that transmitting terminal MEP has been detected for the CCM message
The state of the uni port of MEP is held to be set as the closed state of management mode;Wherein, the closed state of the management mode refers to
Port traffic is interrupted, but is consistent when the physical connection state and multiplicative model of the uni port.
S1022, when the judging result be the CCM message indicate transmitting terminal MEP failure is not detected, connect described
The state of the uni port of receiving end MEP is set as the open state of management mode;Wherein, the open state of the management mode is
Finger tip port service is normal.
After S1021, the method also includes following steps: S103~S105.
S103, the physical connection state of the uni port of regular inquire-receive end MEP.
It should be noted that the physical connection state includes: connection status and off-state.
S104 is sent normal with port if the physical connection state of the uni interface of receiving end MEP is connection status
Then the CCM message notifying transmitting terminal MEP of the type information of connection is returned and is executed the inspection for receiving transmitting terminal MEP and sending
Link information CCM message judges whether that indicating that transmitting terminal MEP has been detected is out of order, and obtains the step of judging result according to CCM message
Suddenly.
For example, showing the normal nothing in itself port if the physical connection state of receiving end MEP uni port is connection status
Failure waits the elimination of far-end fault at this time, while sending the CCM message notifying pair for having interface isUp TLV information
It holds MEP (i.e. transmitting terminal MEP).
S105 sends and connects with port if the physical connection state of the uni interface of receiving end MEP is off-state
Then the CCM message notifying transmitting terminal MEP of the type information of interruption is returned and is executed the inspection for receiving transmitting terminal MEP and sending
Link information CCM message judges whether that indicating that transmitting terminal MEP has been detected is out of order, and obtains the step of judging result according to CCM message
Suddenly.
For example, showing that itself port is faulty if the physical connection state of the port MEP is off-state, then sending band
There is the CCM message notifying opposite end MEP (i.e. transmitting terminal MEP) of interface isDown TLV information.
It is removed if the RDI of the CCM message received is designated as 0, RDI field, shows two Maintenance Entity endpoints
Between failure all normally, the failure between two Maintenance Entity endpoints includes the uni interface of far-end fault and itself.At this time may be used
The state of receiving end MEP uni port management mode is arranged to UP state, the send and receive packets of the entire port MEP are normal.
For the ETH connectivity of multiple spot, RDI field is received at all MEP of equity of only receiving end MEP and is removed
CCM frame when, just can confirm that network path is normal in entire ME group, i.e., only the uni interface of itself and far-end fault are eliminated
When just can confirm that network path is normal in entire ME group.
In embodiments of the present invention, judge whether that indicating that transmitting terminal MEP has been detected is out of order, and obtains according to CCM message first
To judging result;The shape of the user network side uni port management mode of the receiving end MEP is set further according to the judging result
State, in this way the Ethernet fault handling method can be after MEP receive the CCM message of RDI set, at failure duration interval
From local network, the safety of the network equipment and user equipment hung under MEP is protected, is gone forward side by side simultaneously for network connection segment isolation
Row fault diagnosis, to reducing, investigation range is also helpful;After distal end and faults itself are eliminated, the Ethernet fault handling method
It can restore uni interface function, automatic to remove RDI state, entire ME group network being capable of self-healing, it is ensured that the normal connection of network
With Ethernet far-end fault instruction function playing a role promptly and accurately.
The process of the Ethernet fault handling method of embodiment to facilitate the understanding of the present invention, below in conjunction with attached drawing to wherein
A kind of preferred embodiment be described in detail.
Referring to fig. 2, the embodiment of the invention provides another Ethernet fault handling method, the method includes following steps
It is rapid:
S201 receives CCM message, detects the RDI field of CCM message.
After receiving end MEP enables Ethernet continuity check (ETH-CC), the MEP of equity is replied to according to fault condition
The CCM message of MEP RDI set or removing, receiving end MEP once receive a CCM frame, and receiving end MEP will report CCM
Text is checked, and RDI situation is detected when RDI field is set.When MEP receives the CCM frame that RDI field is removed,
It is able to confirm that in entire ME group that the failure in (itself and distal end) has all been eliminated, network path is normal in entire ME group.
In S201, if RDI state is 0, shows that RDI field is removed, that is, show that fault condition is removed, then execute
S206;If RDI is designated as 1, S202 is executed.
S202 sets the uni interface of receiving end MEP to the DOWN state of management mode.
It should be noted that the state of the management mode of the uni interface of receiving end MEP and physical connection state be not direct
Association, even if in the DOWN state of management mode, as long as being in physically after the uni port and opposite end network interface auto negotiation
Normal connection status, MEP can send the CCM message with interface isUp TLV information to opposite end MEP, opposite end MEP meeting
Reply the CCM message that RDI set is 0.
When entering in S202, it sets the state of the uni port of MEP to the DOWN state of management mode, the business of port
Interruption, influenced with protecting local network not by external fault;The physical connection state of uni interface still with multiplicative model when
It is consistent, according to the negotiation state of the Ethernet of the MEP with opposite end, automatically determines ports physical connection status and send and receive packets speed
Rate etc., executes S203 later.
S203, the physical connection state of MEP uni port is inquired in timing, once MEP uni port is the UP of multiplicative model
State shows itself port normal non-fault, has the condition for removing RDI state after far-end fault elimination, executes S204;Such as
The port fruit MEP is the DOWN state of multiplicative model, shows that itself port is faulty, executes S205.
S204 sends the CCM message notifying opposite end MEP for having interface isUp TLV information, enters S201 later,
Faults itself has been eliminated at this time, is received CCM message and is detected to RDI field, waits the elimination of other failures in management entity.
S205 sends the CCM message notifying opposite end MEP for having interface isDown TLV information, shows exist certainly
It dies barrier, even if can not also remove RDI state after far-end fault is eliminated, enters S201 later, receive CCM message and to RDI word
Section detection, waits the elimination of other failures in faults itself and management entity.
The state of MEP uni port management mode is arranged into UP state in S206, and the send and receive packets of port are normal, restore the UNI
The normal communication function of interface, the interior network-in-dialing of entire ME group are normal;Enter S201 later, once uni port receives one
CCM message will check it, restart detection of connectivity and judgement.
It should be noted that above-described embodiment is only presently preferred embodiments of the present invention, it is not intended to limit the present invention
Protection scope.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.Each portion of the invention
Part embodiment can be implemented in hardware, perhaps realized with the software module that runs on one or more processors or with
Their combination is realized.It will be understood by those of skill in the art that microprocessor or digital signal can be used in practice
Processor (DSP) realizes some or all function of some or all components in device according to an embodiment of the present invention
Energy.The present invention is also implemented as some or all equipment or device journey for executing method as described herein
Sequence (for example, computer program and computer program product).Such realization program of the invention can store can in computer
It reads on medium, or may be in the form of one or more signals.Such signal can be downloaded from an internet website
It obtains, is perhaps provided on the carrier signal or is provided in any other form.
Fig. 3 is a kind of structural schematic diagram of Ethernet fault treating apparatus provided in an embodiment of the present invention, referring to Fig. 3, institute
Stating Ethernet fault treating apparatus 300 includes: detection module 301 and setup module 302.
Detection module 301 is sentenced for receiving the inspection link information CCM message of transmitting terminal MEP transmission according to CCM message
It is disconnected whether to indicate that transmitting terminal MEP has been detected and be out of order, obtain judging result;
Setup module 302, for the user network side uni port of the receiving end MEP to be arranged according to the judging result
The state of management mode;Wherein,
The uni port mode of the receiving end MEP includes: multiplicative model and management mode;
The uni port multiplicative model of the receiving end MEP is used for according to true with the negotiation state of the Ethernet of transmitting terminal MEP
Determine the physical connection state and/or transmitting-receiving packet rate of uni port;
The uni port management mode of the receiving end MEP is used to indicate the service disconnection or normal of uni port.
Optionally, the setup module 302 includes: the first setting unit and the second setting unit.Wherein,
First setting unit, for being that the CCM message indicates that transmitting terminal MEP has been detected when the judging result
Failure sets the state of the uni port of the receiving end MEP to the closed state of management mode;Wherein, the management mode
Closed state refer to that port traffic is interrupted, but be consistent when the physical connection state and multiplicative model of the uni port;
Second setting unit, for being that the CCM message indicates that transmitting terminal MEP is not detected when the judging result
It is out of order, sets the state of the uni port of the receiving end MEP to the open state of management mode;Wherein, the management mould
The open state of formula refers to that port traffic is normal.
Optionally, on the basis of structure shown in Fig. 3, described device further include: enquiry module, the first sending module and
Two sending modules.Wherein,
The enquiry module, the physical connection state of the uni port for regular inquire-receive end MEP;
First sending module, if the physical connection state of the uni interface for receiving end MEP is connection status,
The CCM message notifying transmitting terminal MEP of the type information normally connected with port is sent, then described in the execution of detection trigger module
The inspection link information CCM message that transmitting terminal MEP is sent is received, is judged whether to indicate that transmitting terminal MEP has been detected according to CCM message
The step of being out of order, obtaining judging result;
For example, showing the normal nothing in itself port if the physical connection state of receiving end MEP uni port is connection status
Failure waits the elimination of far-end fault at this time, while sending the CCM message notifying pair for having interface isUp TLV information
It holds MEP (i.e. transmitting terminal MEP), then detection trigger module executes the inspection link information CCM that the reception transmitting terminal MEP is sent
Message judges whether to indicate that transmitting terminal MEP has detected the step of being out of order, obtaining judging result according to CCM message.
Second sending module, if the physical connection state of the uni interface for receiving end MEP is off-state,
Send the CCM message notifying transmitting terminal MEP of the type information with port disconnecting.
For example, showing that itself port is faulty if the physical connection state of the port MEP is off-state, then sending band
There is the CCM message notifying of interface isDown TLV (Type, Length and Value, type, length and attribute value) information
Opposite end MEP (i.e. transmitting terminal MEP).
It should be noted that the Ethernet fault treating apparatus of the embodiment of the present invention can realize above-mentioned too net troubleshooting side
Each step of method, details are not described herein.
In embodiments of the present invention, judged whether to indicate transmitting terminal MEP according to CCM message by detection module 301 first
It has detected and has been out of order, obtained judging result;The receiving end MEP is arranged according to the judging result by setup module 302 again
User network side uni port management mode state, the Ethernet fault treating apparatus in this way can receive RDI in MEP
After the CCM message of set, local network is isolated between the failure duration, protects the network equipment and user equipment hung under MEP
Safety, is isolated simultaneously for network connection segment and carries out fault diagnosis, and to reducing, investigation range is also helpful;In distal end and certainly
After body Failure elimination, which can restore uni interface function, automatic to remove RDI state, entire ME group
Network being capable of self-healing, it is ensured that the normal connection of network and Ethernet far-end fault instruction function playing a role promptly and accurately.
Fig. 4 is the structural schematic diagram of another Ethernet fault treating apparatus provided in an embodiment of the present invention, such as Fig. 4 institute
Show, Ethernet fault treating apparatus 400 includes: processor 401, transceiver 402, memory 403, user interface 404 and bus
Interface, in which:
In embodiments of the present invention, Ethernet fault treating apparatus 400 further include: be stored on memory 403 and can be
The computer program run on processor 401 realizes following steps when computer program is by processor 401, execution:
The inspection link information CCM message that transmitting terminal MEP is sent is received, is judged whether to indicate transmitting terminal according to CCM message
MEP, which has been detected, to be out of order, and obtains judging result;The user network side UNI of the receiving end MEP is set according to the judging result
The state of Port Management mode;The state of the uni port management mode of the receiving end MEP includes: open state and closing shape
State, wherein for the open state for indicating that the business of uni port is normal, the closed state is used to indicate the industry of uni port
Business is interrupted, but the physical connection state of the uni port is consistent with the connection status of uni port multiplicative model.
In Fig. 4, bus architecture may include the bus and bridge of any number of interconnection, specifically be represented by processor 401
One or more processors and the various circuits of memory that represent of memory 403 link together.Bus architecture can be with
Various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like are linked together, these are all these
Well known to field, therefore, it will not be further described herein.Bus interface provides interface.Transceiver 402 can be
Multiple element includes transmitter and receiver, provides the unit for communicating over a transmission medium with various other devices.Needle
To different user equipmenies, user interface 404, which can also be, external the interface for needing equipment is inscribed, and the equipment of connection includes
But be not limited to keypad, display, loudspeaker, microphone, control stick etc..
Processor 401, which is responsible for management bus architecture and common processing, memory 403, can store processor 401 and is holding
Used data when row operation.
Optionally, following steps be can also be achieved when computer program is executed by processor 401:
It is out of order when the judging result indicates that transmitting terminal MEP has been detected for the CCM message, by the receiving end MEP
The state of management mode of uni port be set to off closed state;Wherein, the closed state of the management mode refers to port industry
Business is interrupted, but is consistent when the physical connection state and multiplicative model of the uni port;When the judging result is the CCM
Failure is not detected in message instruction transmitting terminal MEP, and the state of the management mode of the uni port of the receiving end MEP is arranged
For open state.
Optionally, following steps be can also be achieved when computer program is executed by processor 401:
The physical connection state of the uni port of regular inquire-receive end MEP;If the physics of the uni interface of receiving end MEP
Connection status is connection status, sends the CCM message notifying transmitting terminal MEP of the type information normally connected with port, then
It returns and executes the inspection link information CCM message for receiving transmitting terminal MEP and sending, instruction hair is judged whether according to CCM message
Sending end MEP has detected the step of being out of order, obtaining judging result;If the physical connection state of the uni interface of receiving end MEP is
Off-state sends the CCM message notifying transmitting terminal MEP of the type information with port disconnecting, then returns and executes institute
It states and receives the inspection link information CCM message that transmitting terminal MEP is sent, judged whether to indicate that transmitting terminal MEP has been examined according to CCM message
The step of measuring failure, obtaining judging result.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey
The step in Ethernet fault handling method as described above is realized when sequence is executed by processor.
In embodiments of the present invention, judged whether to have indicated transmitting terminal MEP according to CCM message by processor 401 first
Detection is out of order, and judging result is obtained;The use of the receiving end MEP is set by processor 401 according to the judging result again
The state of family network side uni port management mode, in this way the Ethernet fault treating apparatus can receive RDI set in MEP
CCM message after, be isolated local network between the failure duration, protect the safety of the network equipment and user equipment hung under MEP,
It is isolated and carries out fault diagnosis simultaneously for network connection segment, investigation range is also helpful to reducing;It dies in distal end and certainly
After barrier is eliminated, which can restore uni interface function, automatic to remove RDI state, entire ME group network
It being capable of self-healing, it is ensured that the normal connection of network and Ethernet far-end fault instruction function playing a role promptly and accurately.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment
A particular feature, structure, or characteristic is included at least one embodiment of the present invention.Therefore, occur everywhere in the whole instruction
" in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, knot
Structure or characteristic can combine in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be appreciated that magnitude of the sequence numbers of the above procedures are not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
In embodiment provided herein, it should be appreciated that " B corresponding with A " indicates that B is associated with A, can be with according to A
Determine B.It is also to be understood that determine that B is not meant to determine B only according to A according to A, it can also be according to A and/or other information
Determine B.
In several embodiments provided herein, it should be understood that disclosed method and apparatus, it can be by other
Mode realize.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
For a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine
Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase
Coupling, direct-coupling or communication connection between mutually can be through some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or network side equipment etc.) executes transmitting-receiving side described in each embodiment of the present invention
The part steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, letter
Claim ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of Ethernet fault handling method is applied to receiving end Maintenance Entity endpoint MEP characterized by comprising
The inspection link information CCM message that transmitting terminal MEP is sent is received, is judged whether to have indicated transmitting terminal MEP according to CCM message
Detection is out of order, and judging result is obtained;
The state of the user network side uni port management mode of the receiving end MEP is set according to the judging result;Wherein,
The state of the uni port management mode of the receiving end MEP includes: open state and closed state, wherein the unlatching
For state for indicating that the business of uni port is normal, the closed state is used to indicate the service disconnection of uni port, but the end UNI
The physical connection state of mouth is consistent with the connection status of uni port multiplicative model.
2. the method according to claim 1, wherein described be arranged the receiving end according to the judging result
The state of the user network side uni port management mode of MEP, comprising:
It is out of order when the judging result indicates that transmitting terminal MEP has been detected for the CCM message, by the UNI of the receiving end MEP
The state of the management mode of port is set to off closed state.
3. method according to claim 1 or 2, which is characterized in that described that the reception is arranged according to the judging result
Hold the state of the user network side uni port management mode of MEP, comprising:
When the judging result is that the CCM message indicates that failure is not detected in transmitting terminal MEP, by the receiving end MEP's
The state of the management mode of uni port is set on state.
4. according to the method in claim 2 or 3, which is characterized in that by the state of the uni port of the receiving end MEP
It is set as after the closed state of management mode, the method also includes:
The physical connection state of the uni port of regular inquire-receive end MEP;
If the physical connection state of the uni interface of receiving end MEP is connection status, the type normally connected with port is sent
Then the CCM message notifying transmitting terminal MEP of information is returned and is executed the inspection link information CCM for receiving transmitting terminal MEP and sending
Message judges whether to indicate that transmitting terminal MEP has detected the step of being out of order, obtaining judging result according to CCM message;
If the physical connection state of the uni interface of receiving end MEP is off-state, the type for having port disconnecting is sent
Then the CCM message notifying transmitting terminal MEP of information is returned and is executed the inspection link information CCM for receiving transmitting terminal MEP and sending
Message judges whether to indicate that transmitting terminal MEP has detected the step of being out of order, obtaining judging result according to CCM message.
5. a kind of Ethernet fault treating apparatus characterized by comprising
Detection module judges whether to refer to for receiving the inspection link information CCM message of transmitting terminal MEP transmission according to CCM message
Show that transmitting terminal MEP has been detected to be out of order, obtains judging result;
Setup module, for the user network side uni port management mode of the receiving end MEP to be arranged according to the judging result
State;Wherein,
The state of the uni port management mode of the receiving end MEP includes: open state and closed state, wherein the unlatching
For state for indicating that the business of uni port is normal, the closed state is used to indicate the service disconnection of uni port, but the end UNI
The physical connection state of mouth is consistent with the connection status of uni port multiplicative model.
6. device according to claim 5, which is characterized in that the setup module includes:
First setting unit will for being out of order when the judging result indicates that transmitting terminal MEP has been detected for the CCM message
The state of the management mode of the uni port of the receiving end MEP is set to off closed state.
7. device according to claim 5 or 6, which is characterized in that the setup module includes:
Second setting unit, for being that the CCM message indicates that failure is not detected in transmitting terminal MEP when the judging result,
The state of the management mode of the uni port of the receiving end MEP is set on state.
8. device according to claim 6 or 7, which is characterized in that described device further include:
Enquiry module, the physical connection state of the uni port for regular inquire-receive end MEP;
First sending module, if the physical connection state of the uni interface for receiving end MEP is connection status, transmission is had
The CCM message notifying transmitting terminal MEP for the type information that port normally connects, then detection trigger module executes the reception and sends
The inspection link information CCM message for holding MEP to send judges whether that indicating that transmitting terminal MEP has been detected is out of order according to CCM message,
The step of obtaining judging result;
Second sending module, if the physical connection state of the uni interface for receiving end MEP is off-state, transmission is had
The CCM message notifying transmitting terminal MEP of the type information of port disconnecting, then detection trigger module executes the reception and sends
The inspection link information CCM message for holding MEP to send judges whether that indicating that transmitting terminal MEP has been detected is out of order according to CCM message,
The step of obtaining judging result.
9. a kind of Ethernet fault treating apparatus characterized by comprising memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, the processor are realized when executing described program such as any one of Claims 1 to 4
Step in the Ethernet fault handling method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
It realizes when execution such as the step in the described in any item Ethernet fault handling methods of Claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710858109.2A CN109547229A (en) | 2017-09-21 | 2017-09-21 | A kind of Ethernet fault handling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710858109.2A CN109547229A (en) | 2017-09-21 | 2017-09-21 | A kind of Ethernet fault handling method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109547229A true CN109547229A (en) | 2019-03-29 |
Family
ID=65827717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710858109.2A Withdrawn CN109547229A (en) | 2017-09-21 | 2017-09-21 | A kind of Ethernet fault handling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109547229A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1968156A (en) * | 2006-08-30 | 2007-05-23 | 华为技术有限公司 | Ethernet device link failure detection method and its system |
CN101686158A (en) * | 2008-09-22 | 2010-03-31 | 中兴通讯股份有限公司 | Control method for Ethernet loop guard fault recovery and Ethernet loop node |
CN102231674A (en) * | 2011-06-17 | 2011-11-02 | 中兴通讯股份有限公司 | Processing method and apparatus of far-end fault of Ethernet |
US20160352624A1 (en) * | 2015-06-01 | 2016-12-01 | Ciena Corporation | Continuity check systems and methods using hardware native down maintenance end points to emulate hardware up maintenance end points |
-
2017
- 2017-09-21 CN CN201710858109.2A patent/CN109547229A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1968156A (en) * | 2006-08-30 | 2007-05-23 | 华为技术有限公司 | Ethernet device link failure detection method and its system |
CN101686158A (en) * | 2008-09-22 | 2010-03-31 | 中兴通讯股份有限公司 | Control method for Ethernet loop guard fault recovery and Ethernet loop node |
CN102231674A (en) * | 2011-06-17 | 2011-11-02 | 中兴通讯股份有限公司 | Processing method and apparatus of far-end fault of Ethernet |
US20160352624A1 (en) * | 2015-06-01 | 2016-12-01 | Ciena Corporation | Continuity check systems and methods using hardware native down maintenance end points to emulate hardware up maintenance end points |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10708132B2 (en) | Technique for handling a status change in an interconnect node | |
CN103684835B (en) | Link fault reporting method and processing method, and transmission node and primary node | |
CN102594600B (en) | A kind of method and system of definite two-way converting inspection session abort situation | |
CN101908986B (en) | Method and equipment for detecting link fault | |
CN101355466B (en) | Method and apparatus for transmitting continuous check information message | |
CN102377601B (en) | LSP (Local Switched Path) fault notification method and LSP fault notification device | |
CN108123824A (en) | A kind of network fault detecting method and device | |
CN101188527B (en) | A heartbeat detection method and device | |
CN105308904B (en) | A kind of OAM message processing method, the network equipment and network system | |
CN109039825A (en) | A kind of network data protection device and method | |
EP2947793A2 (en) | Link detection method and device for passive optical network | |
EP2207307A1 (en) | Method for processing failure of slave port of master node in ethernet ring network system | |
CN111901197A (en) | Ethernet interface mode detection device and detection method | |
CN103916270B (en) | The system for realizing Link State Pass Through function based on PTN, method and device | |
EP2858302A1 (en) | Connectivity check method of service stream link, related apparatus and system | |
EP1733506B1 (en) | Fault management in an ethernet based communication system | |
CN103220201B (en) | A kind of method and device of detection and protection of ring network faults | |
CN101547131A (en) | EAPS looped network single-channel fault location and protection method | |
CN106506265B (en) | Detection fpga chip hangs dead method and device | |
WO2015180265A1 (en) | Multi-link protection switching method and device | |
CN108289050A (en) | A kind of transmitter loop network control system and control method | |
CN109547229A (en) | A kind of Ethernet fault handling method and device | |
CN103684719B (en) | Network dual-redundancy hot swap method independent of platforms | |
CN109257268A (en) | A kind of network attack test system and method across vlan | |
CN101753465A (en) | Protection method taking Ethernet Ring protection system to control VLAN message and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190329 |
|
WW01 | Invention patent application withdrawn after publication |