CN102571500B - A kind of method and apparatus that MPLS TP detections are carried out on dynamic route - Google Patents
A kind of method and apparatus that MPLS TP detections are carried out on dynamic route Download PDFInfo
- Publication number
- CN102571500B CN102571500B CN201210034878.8A CN201210034878A CN102571500B CN 102571500 B CN102571500 B CN 102571500B CN 201210034878 A CN201210034878 A CN 201210034878A CN 102571500 B CN102571500 B CN 102571500B
- Authority
- CN
- China
- Prior art keywords
- detection
- message
- opposite end
- stopping
- overtime timer
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A kind of method and apparatus that MPLS TP detections are carried out on dynamic route, this method include:Head end or tail end are detecting that stopping sends detection and wrapped when dynamic bidirectional Path Migration occurs, and actively sending more than one detect to opposite end stops message, and the message is used to notice opposite end stopping packet receiving detection;After opposite end receives detection stopping message, stop the detection overtime timer of local terminal.The device includes:Expiry notification unit, for detecting that stopping sends detection and wrapped when dynamic bidirectional Path Migration occurs, actively send more than one detect to opposite end and stop message, the message is used to notice opposite end stopping packet receiving detection;Stop element, for after receiving detection and stopping message, stopping the detection overtime timer of local terminal.Present invention can ensure that the detection based on the deployment of dynamic route head and the tail device end in network starts or stops and reaches synchronous, data forwarding is influenceed to be minimized, so as to ensure that the stability of the key business on protected network is unaffected.
Description
Technical field
The present invention relates to field of data communication, more particularly to one kind to carry out MPLS-TP (Multi- on dynamic route
Protocol Label Switching Transport Profile, multiprotocol label switching transmission system) detection method
And device.
Background technology
MPLS-TP OAM (Operation Administration and Maintenance, operational administrative and maintenance)
It is the basic training of router device and PTN (Packet Transport Network, Packet Transport Network) equipment dependability guarantee
One of can require, it provides network operation, safeguards the functions such as required fault discovery, positioning, performance monitoring and management, and
And protection mechanism can be notified to complete protection switching in 50ms in time after failure generation, so as to influence to reduce to caused by failure
It is minimum.Therefore, timely discovery and correct trigger protection of the OAM stability with property relationship to network failure is switched and protects
The completion efficiency changed, can also turn into ensure that network normally provides one of key factor of carrier grade service.
That run in MPLS-TP is the OAM without negotiation, and its Cleaning Principle is detected by being sent in the transmitting terminal cycle
Bag, packet receiving confirmation is carried out by receiving terminal, if receiving terminal is not received by detection bag in predetermined time interval, be considered as receiving
Bag breaks down on path, produces alarm immediately, alarm will further trigger path switching, by flow switch to backup link
Go.Detection messages send the optional of cycle and are configured to:3.33ms, 10ms, 100ms, 1s, 10s, 1mim or 10mim, when more than
3.5 times of messages send cycle receiving terminal and do not receive detection bag yet, then it is assumed that exceed the time limit, a length of 10ms when being exceeded the time limit due to minimum, therefore
Can in 10ms quick detection outgoing link failure.Detected for this OAM without negotiation, be entirely by configuration control inspection
The startup and closing of survey.
Disposed for the detection on static path, user can be according to transmitting terminal be first started, and start of heading to be confirmed sends
Afterwards, the mode for restarting receiving terminal is detected;Detection can first close test side when closing, then stop transmitting terminal.Above-mentioned
Configuration sequence can avoid missing alarm problem caused by both ends configure sequencing problem.
For the detection started on dynamic route, because dynamic route is continually changing in itself, when dynamic route is found
During more excellent forward-path, flow can move to more to be forwarded on shortest path, and detection messages are to be passed with converting flow with path
Defeated, it is also desirable to together move on new route and detected.In the transition process of detection messages, it is related on original path
Detection stop and new route on detection start process;Because path head and the tail end points is located in different equipment, Wu Fayan
Lattice ensure the sequential for starting and stopping, and are alerted by mistake it seem likely that producing.Due to the renewal of forward table and the renewal in detection path
It is two independent processes, forward table arrives new route once updating, and flow is just migrated and completed, and actual flow forwarding is completely normal
Without packet loss, but during detection migration on same path the problem of being likely due to issue sequential produce alarm, so as to cause to miss
The appearance of alarm problem.
In summary, because MPLS-TP OAM detections lack link setup in itself and tear the interaction mechanism of chain open, cause on dynamic road
It is very possible during the deployment detection of footpath detection false alarm conditions occur because of the change in path so that testing result turns with actual
Heat condition is not inconsistent;Flow wrong can be switched on the backup path of advance reservation, and then influences the stability of network.
The content of the invention
It is an object of the invention to provide a kind of method and apparatus that MPLS-TP detections are carried out on dynamic route, with solution
Certainly when MPLS-TP OAM operation dynamic route detection in one end have been started up detecting, and the other end due to sequence problem also
Not actuated message is sent, or is sent when one end in MPLS-TP OAM configurations has stopped detection messages, and the other end does not stop also
Only detect, caused by do not receive at the appointed time detection messages produce by mistake alert the problem of.
To solve the above problems, the invention provides a kind of method that MPLS-TP detections are carried out on dynamic route, bag
Include:
Head end or tail end are detecting that stopping sends detection bag, is actively sent out to opposite end when dynamic bidirectional Path Migration occurs
More than one detection is sent to stop message, the message is used to notice opposite end stopping packet receiving detection;
After opposite end receives the detection stopping message, stop the detection overtime timer of local terminal.
Further,
It is to carry TLV in detection is wrapped that the detection, which stops message, stops message as detection for identifying the message.
Further, methods described also includes:
The first packet overtime timer of local terminal is respectively started after the detection overtime timer of local terminal is stopped in head end or tail end;
Before the first packet overtime timer time-out, only detection bag, first sent until receiving opposite end are sent to opposite end
After individual detection bag, start the detection overtime timer of local terminal, state is detected into packet receiving.
Further,
When the first packet overtime timer time-out, the head end or tail end as do not received the detection that opposite end is sent yet
Bag, then start the detection overtime timer of local terminal, state is detected into packet receiving.
Correspondingly, present invention also offers a kind of device that MPLS-TP detections are carried out on dynamic route, it is applied to
In MPLS-TP OAM detections, including:
Expiry notification unit, for detecting occur dynamic bidirectional Path Migration when, stop send detection bag, actively to
Opposite end sends more than one detection and stops message, and the message is used to notice opposite end stopping packet receiving detection;
Stop element, for after receiving the detection and stopping message, stopping the detection overtime timer of local terminal.
Further,
It is to carry type-length-value (TLV) in detection is wrapped that the detection that the expiry notification unit is sent, which stops message,
Stop message as detection for identifying the message.
Further, described device also includes:
Start unit, surpass for after the detection overtime timer that the stop element stops local terminal being known, starting first packet
When timer;
Packet receiving detection unit, for before the first packet overtime timer time-out, only sending detection bag, Zhi Daoshou to opposite end
After the first detection bag sent to opposite end, start the detection overtime timer of local terminal, state is detected into packet receiving.
Further,
The packet receiving detection unit is additionally operable to when the first packet overtime timer time-out, and such as not receiving opposite end yet sends
Detection bag, then start local terminal the detection overtime timer, into packet receiving detect state.
After the present invention, solve the migration that MPLS-TP OAM on dynamic route are detected, be one important highly reliable
Property technology (High Availability, referred to as HA) optimization, it is ensured that dynamic route head and the tail device top is based in network
The detection of administration, which starts or stops, reaches synchronous, data forwarding is influenceed to be minimized, so as to ensure the key on protected network
The stability of business is unaffected.
Brief description of the drawings
Fig. 1 is the detection messages form that MPLS-TP OAM are used in the present invention;
Fig. 2 is that the detection that MPLS-TP OAM are used in the present invention stops message format;
Fig. 3 is the detection operational flow diagram of MPLS-TP OAM in the present invention;
Fig. 4 is that control detects the flow chart synchronously stopped between end points is detected in the present invention;
Fig. 5 is the flow chart of control detection synchronous averaging between detection end points in the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
In the present embodiment, a kind of method that MPLS-TP detections are carried out on dynamic route, applied to dynamic detection point
Between, including:
When due to detecting dynamic bidirectional Path Migration occurs for one end, stop sending detection bag to opposite end, this end is actively
Send more than one detection and stop message, the message is used to notice opposite end stopping packet receiving detection;Wherein, detection stopping message can
It is extended on former protocol detection message, extension in former protocol detection message is specifically carried into TLV (Type-Length-
Value, type-length-value), stop message as detection for identifying the message;
After opposite end receives above-mentioned detection stopping message, stop detection overtime timer, for not connect more than regulation duration
Receive the situation of detection bag, no longer report and alarm;
Head and the tail both ends respectively while original path detection is stopped (the detection overtime timer for stopping local terminal), create
New route detects;
To avoid one end from having started to detect, and one end does not carry out also detecting situation about giving out a contract for a project, it is necessary to support first packet to trigger machine
System, i.e. head and the tail both ends proceed as follows respectively:
Start first packet overtime timer in local terminal;
Before first packet overtime timer time-out, local terminal is only given out a contract for a project to opposite end, but is not started detection overtime timer and (do not opened
Dynamic packet receiving detection), the first detection bag sent until receiving opposite end, packet receiving detection state is immediately entered, starts detection time-out
Timer;
When first packet overtime timer time-out, the detection messages of opposite end are not received yet such as, immediately enter packet receiving detection shape
State;
Into after packet receiving detection state, if not receiving detection messages, upper report yet during detection overtime timer time-out
Alert trigger protection mechanism switching.
The mechanism of first packet detection trigger ensure that the startup detected on dynamic route is synchronous, the detection report sent by opposite end
The local detection of text triggering starts.
After the above method, it is ensured that start or stop based on the detection disposed on dynamic route head and the tail device in network
Only reach synchronous, data forwarding influenceed to be minimized, so as to ensure the stability of the key business on protected network not by
Influence.
Fig. 1 is the detection messages form that MPLS-TP OAM are used in the present invention, as shown in the figure:In MPLS-TP network
OAM message can be directed to SECTION (section layer) path, LSP (Label Switching Path, label switched path) paths and
PW (Pseudo-Wire, pseudo-wire) is detected;When being detected towards three kinds of path entities, its detection messages part is completely the same all
It is as its PDU (Protocol Data with CCM (Continuity Check Message, continuity detection messages) messages
Unit, protocol Data Unit), but message encapsulation format detects the difference in path according to it and has difference, describes as shown in Figure 1
SECTION OAM, LSP OAM and tri- kinds of message encapsulation format of PW OAM.Wherein, Section OAM messages encapsulation is followed successively by:Chain
Road floor head, GAL (general channels label, label value 13) label (13 label), G-ACH (general channels head), OAM PDU;LSP
OAM message encapsulation is followed successively by:Link layer header, lsp labels, GAL labels (13 label), GACH, OAM PDU;PW OAM messages are sealed
Dress is followed successively by:Link layer header, lsp labels, pw labels, GACH, OAM PDU.
As shown in Fig. 2 the carrying in CCM extends TLV fields, for filling in detection stop flag;When receiving terminal detects
When stopping TLV fields are carried in message, then it is assumed that opposite end has cancelled detection, local to stop message time-out detection, no longer produces
Alarm.
As shown in figure 3, MPLS-TP OAM detection operation method, comprises the following steps:
Step 301, detection starts, and periodically gives out a contract for a project to opposite end;
Step 302, detection overtime timer is set, carries out packet receiving detection;
Step 303, before message timer expiry, judge whether to have received desired detection messages;If receive expectation
Message, into step 302, detection overtime timer is reset, continues packet receiving detection;Otherwise timer expiry is continued waiting for,
Into step 304;
Step 304, detection overtime timer arrives, and reports detection to alert;
Step 305, when receiving desired detection messages again, alarm clearance is detected;Into step 302, inspection is reset
Overtime timer is surveyed, continues packet receiving detection.
As shown in figure 4, the flow that control detection synchronously stops between detection end points, including:
Step 401, chain of command issues detection and stopped;
Step 402, the detection of 3 frames of fast hair stops message before detection stops, i.e., quickly sends the detection of 3 frames and stop message;
Step 403, local detection example is deleted;
Step 404, after opposite equip. receives detection stopping message, detection overtime timer is stopped;
Step 405, recover detection alarm and arrive original state.
When both ends detection all stops, flow terminates.
As shown in figure 5, control detects the flow of synchronous averaging between detection end points, both ends perform following operation respectively:
Step 501, periodically detection bag is sent to opposite end;
Step 502, first packet overtime timer is started;
Step 503, judge before first packet overtime timer time-out, if having received desired detection messages;If connect
Detection messages are received, immediately enter formal testing process S505;Otherwise first packet overtime timer time-out is continued waiting for;
Step 504, first packet overtime timer time-out;
Step 505, into formal testing process, specific steps are referring to above-mentioned steps 301~305;
When both ends detection is opened, flow terminates.
In the present embodiment, a kind of device that MPLS-TP detections are carried out on dynamic route, examined applied to MPLS-TP OAM
In survey, including:
Expiry notification unit, for detecting occur dynamic bidirectional Path Migration when, stop send detection bag, actively to
Opposite end sends more than one detection and stops message, and the message is used to notice opposite end stopping packet receiving detection;
Stop element, for after receiving the detection and stopping message, stopping the detection overtime timer of local terminal.
It is preferred that
It is to carry type-length-value (TLV) in detection is wrapped that the detection that the expiry notification unit is sent, which stops message,
Stop message as detection for identifying the message.
It is preferred that described device also includes:
Start unit, surpass for after the detection overtime timer that the stop element stops local terminal being known, starting first packet
When timer;
Packet receiving detection unit, for before the first packet overtime timer time-out, only sending detection bag, Zhi Daoshou to opposite end
After the first detection bag sent to opposite end, start the detection overtime timer of local terminal, state is detected into packet receiving.
It is preferred that
The packet receiving detection unit is additionally operable to when the first packet overtime timer time-out, and such as not receiving opposite end yet sends
Detection bag, then start local terminal the detection overtime timer, into packet receiving detect state.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program
Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read-only storage, disk or CD
Deng.Alternatively, all or part of step of above-described embodiment can also be realized using one or more integrated circuits.Accordingly
Ground, each module/unit in above-described embodiment can be realized in the form of hardware, can also use the shape of software function module
Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the present invention.According to
The content of the invention of the present invention, can also there is other various embodiments, in the case of without departing substantially from spirit of the invention and its essence, be familiar with
Those skilled in the art works as can make various corresponding changes and deformation according to the present invention, all in the spirit and principles in the present invention
Within, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (8)
1. a kind of method that multiprotocol label switching transmission system (MPLS-TP) detection is carried out on dynamic route, including:
Head end or tail end are detecting that stopping sends detection bag, actively sends one to opposite end when dynamic bidirectional Path Migration occurs
Detection more than individual stops message, and the message is used to notice opposite end stopping packet receiving detection;
After opposite end receives the detection stopping message, stop the detection overtime timer of local terminal;
Wherein, detection stops message to be extended on former protocol detection message.
2. the method as described in claim 1, it is characterised in that:
It is to carry type-length-value (TLV) in detection is wrapped that the detection, which stops message, for identifying the message as detection
Stop message.
3. method as claimed in claim 1 or 2, it is characterised in that also include:
The first packet overtime timer of local terminal is respectively started after the detection overtime timer of local terminal is stopped in head end or tail end;
Before the first packet overtime timer time-out, detection bag only is sent to opposite end, first inspection sent until receiving opposite end
After surveying bag, start the detection overtime timer of local terminal, state is detected into packet receiving.
4. method as claimed in claim 3, it is characterised in that:
When the first packet overtime timer time-out, the head end or tail end as do not received the detection bag sent opposite end yet, then
Start the detection overtime timer of local terminal, state is detected into packet receiving.
5. a kind of device that multiprotocol label switching transmission system (MPLS-TP) detection is carried out on dynamic route, including:
Expiry notification unit, for detecting that stopping sends detection bag, actively to opposite end when dynamic bidirectional Path Migration occurs
Send more than one detection and stop message, the message is used to notice opposite end stopping packet receiving detection;
Stop element, for after receiving the detection and stopping message, stopping the detection overtime timer of local terminal;
Wherein, detection stops message to be extended on former protocol detection message.
6. device as claimed in claim 5, it is characterised in that:
It is to carry type-length-value (TLV) in detection is wrapped that the detection that the expiry notification unit is sent, which stops message, is used for
Identify the message and stop message as detection.
7. the device as described in claim 5 or 6, it is characterised in that also include:
Start unit, it is fixed for after the detection overtime timer that the stop element stops local terminal being known, starting first packet time-out
When device;
Packet receiving detection unit, for before the first packet overtime timer time-out, detection bag only is sent to opposite end, until receiving pair
After holding the first detection bag sent, start the detection overtime timer of local terminal, state is detected into packet receiving.
8. device as claimed in claim 7, it is characterised in that:
The packet receiving detection unit is additionally operable to when the first packet overtime timer time-out, does not such as receive the inspection that opposite end is sent yet
Bag is surveyed, then starts the detection overtime timer of local terminal, state is detected into packet receiving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210034878.8A CN102571500B (en) | 2012-02-16 | 2012-02-16 | A kind of method and apparatus that MPLS TP detections are carried out on dynamic route |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210034878.8A CN102571500B (en) | 2012-02-16 | 2012-02-16 | A kind of method and apparatus that MPLS TP detections are carried out on dynamic route |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102571500A CN102571500A (en) | 2012-07-11 |
CN102571500B true CN102571500B (en) | 2018-03-23 |
Family
ID=46416020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210034878.8A Active CN102571500B (en) | 2012-02-16 | 2012-02-16 | A kind of method and apparatus that MPLS TP detections are carried out on dynamic route |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102571500B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103595507A (en) * | 2013-11-15 | 2014-02-19 | 烽火通信科技股份有限公司 | Internal information transmission device and internal information transmission method in packet network system |
CN104113449A (en) * | 2014-07-15 | 2014-10-22 | 华为技术有限公司 | Link detection method and apparatus |
CN104660451B (en) * | 2015-02-28 | 2018-02-06 | 山东华辰泰尔信息科技股份有限公司 | A kind of across disk guard method based on PTN tunnels |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1905483A (en) * | 2006-08-08 | 2007-01-31 | 华为技术有限公司 | Method and apparatus for testing ethernet connection damage |
CN1953400A (en) * | 2005-10-17 | 2007-04-25 | 华为技术有限公司 | A method to control the continuity detection of Ethernet link |
CN101808022A (en) * | 2010-04-22 | 2010-08-18 | 中兴通讯股份有限公司 | Method and device for realizing bidirectional forwarding detection |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100558051C (en) * | 2005-08-10 | 2009-11-04 | 华为技术有限公司 | Two-way conversion link is carried out the method for fault detect |
-
2012
- 2012-02-16 CN CN201210034878.8A patent/CN102571500B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953400A (en) * | 2005-10-17 | 2007-04-25 | 华为技术有限公司 | A method to control the continuity detection of Ethernet link |
CN1905483A (en) * | 2006-08-08 | 2007-01-31 | 华为技术有限公司 | Method and apparatus for testing ethernet connection damage |
CN101808022A (en) * | 2010-04-22 | 2010-08-18 | 中兴通讯股份有限公司 | Method and device for realizing bidirectional forwarding detection |
Also Published As
Publication number | Publication date |
---|---|
CN102571500A (en) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20120087232A1 (en) | Link state relay for physical layer emulation | |
US9521055B2 (en) | Network connectivity management | |
CN100396023C (en) | Multi-jumping pseudo-line fault detecting reporting and maintenance protocol controlling method | |
CN102571601B (en) | A kind of method and label switched path equipment for ensureing two-way converting detection reliability | |
CN101877665B (en) | Ring network protecting method, network node and ring network | |
EP2951959B1 (en) | Using ethernet ring protection switching with computer networks | |
EP3386156B1 (en) | Failure recovery method, device and storage medium | |
CN102868569B (en) | The method for testing performance of Layer3 Virtual Private Network, node and system | |
US20140301275A1 (en) | Dual-homing protection | |
CN1953400A (en) | A method to control the continuity detection of Ethernet link | |
CN101777997A (en) | Method and system for switching flow of network link | |
WO2011057540A1 (en) | Method, device and system for updating ring network topology information | |
JP2013512615A (en) | Method and apparatus for supporting inconsistency detection | |
US9059791B2 (en) | Method and apparatus for protecting tunnel | |
CN101877646A (en) | Protection switching method and node equipment | |
CN102571500B (en) | A kind of method and apparatus that MPLS TP detections are carried out on dynamic route | |
CN102238067B (en) | Switching method and device on Rapid Ring Protection Protocol (RRPP) ring | |
CN109873719A (en) | A kind of fault detection method and device | |
CN110224886A (en) | Tunnel method for detecting connectivity, device and network edge device | |
CN104219068B (en) | The method and the network equipment of tunnel failure notice | |
CN109474446A (en) | It is a kind of to negotiate synchronous method and device | |
CN101989917A (en) | Ethernet tunnel subsection protection method and device | |
JP2016046684A (en) | Relay system and relay device | |
CN102404199B (en) | Multi-segment pseudo-wire establishing and recovering method and device as well as system | |
CN102571460B (en) | Single-fiber failure switching method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |