CN101202677A - Method and device for detecting link - Google Patents
Method and device for detecting link Download PDFInfo
- Publication number
- CN101202677A CN101202677A CNA2007101793871A CN200710179387A CN101202677A CN 101202677 A CN101202677 A CN 101202677A CN A2007101793871 A CNA2007101793871 A CN A2007101793871A CN 200710179387 A CN200710179387 A CN 200710179387A CN 101202677 A CN101202677 A CN 101202677A
- Authority
- CN
- China
- Prior art keywords
- loopback
- cell
- request
- identifying information
- loopback cell
- 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.)
- Granted
Links
Images
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/54—Store-and-forward switching systems
- H04L12/56—Packet switching systems
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The implement mode of the invention provides a method and a device for checking a link. The method and the device belong to the field of network communication. The method includes: a circulating cell for request circulating with recognizing information is transmitted; after the circulating cell for request circulating is received, whether the circulating cell for request circulating is the same as the circulating cell for request circulating with recognizing information is judged; under the same situation and under the situation of receiving the circulating cell for request circulating in setting time, the link is confirmed to be normal; if the circulating cell for request circulating is not received in the setting time, reporting and alarm are carried out. The detail implement mode of the invention also provides the device for checking the link. The method and the device can accurately check out the actual situation of an ATM link under the situation of having a plurality of times of physical circulating or abnormal circulating.
Description
Technical field
The present invention relates to network communication field, relate in particular to a kind of method and device that detects link.
Background technology
Asynchronous transfer mode ATM (Asynchronous Transfer Mode) agreement is divided into 4 layers of structure: high level, ATM Adaptation Layer, ATM layer, physical layer.The oam F4F5 of ATM layer Virtual Channel/virtual channel VP/VC (Virtual Path/Virtual Channel) level is a cover mechanism that detects ATM layer link break-make, general continuity detection CC (Continuity Check) function of using is done long continuity detection, when pinpointing the problems, do loopback test with loopback Loopback function, check whether link is obstructed.High level utilizes this cover mechanism to judge whether atm link is available, distribution service carrying then.
Prior art provides a kind of method that detects link, as shown in Figure 1, comprises following steps:
The originating end of step 11ATM link is used the Loopback cell that the Loopback function sends " request loopback ";
The responder of step 12ATM link receives the Loopback cell that sends " response loopback " behind the Loopback cell of " request loopback ";
The originating end of step 13ATM link judges whether to receive the Loopback cell of " response loopback " in 5s; In 5s, receive in this way and illustrate that then link is normal; Otherwise link occurs fault carry out step 14;
The originating end report and alarm of step 14, atm link.
In realizing process of the present invention, the inventor finds method described in the prior art, and there are the following problems:
Loopback originating end with atm link is the example explanation; usually the originating end and the responder of atm link promptly are that the Loopback transmitting terminal also is the Loopback receiving terminal; so the physics loopback occurring repeatedly or occurring under the situation of unusual loopback, actual networking situation as shown in Figure 2.Send the loopback cell of " request loopback " when the Loopback of atm link originating end after, the direct physical loopback receives to originating end.Because this is the loopback cell of " request loopback ",, continues the direct physical loopback and receive to originating end so originating end sends the loopback cell of " response loopback ".After in 5s, receiving the loopback cell of " response loopback " at originating end, show that atm link is normal, and the actual conditions of this moment are atm link faults, need report and alarm.By foregoing description as can be known, method described in the prior art the physics loopback occurring repeatedly or the actual conditions of atm link occurring can't detecting under the situation of unusual loopback.
Summary of the invention
In view of above-mentioned existing in prior technology problem; embodiment of the present invention provides a kind of method and device that detects link; described method and apparatus can the physics loopback occur repeatedly or occur accurately detecting the actual conditions of atm link under the situation of unusual loopback.
The specific embodiment of the present invention provides a kind of method that detects link, and described method comprises:
Transmission has the loopback cell of the request loopback of identifying information;
Behind the loopback cell of receiving the request loopback, judge whether the described loopback cell of asking loopback received is identical with the loopback cell of the described request loopback that has an identifying information;
Judging under the identical situation, and in setting-up time, receiving under the situation of the loopback cell of responding loopback, confirming that link is normal, as in setting-up time, not receiving the loopback cell of responding loopback, then report and alarm.
The specific embodiment of the invention also provides a kind of device that detects link, and described device comprises:
Transmitting element: the loopback cell that is used to send the request loopback that has identifying information;
Receive request loopback unit: the loopback cell that is used to receive the request loopback;
Judging unit: whether the loopback cell of request loopback that the loopback cell that is used to judge the described request loopback that described receiving element receives and described transmitting element transmission described has identifying information is identical;
Confirmation unit: be used for going out under the identical situation, and in setting-up time, receive under the situation of the loopback cell of responding loopback, confirm that link is normal in described judgment unit judges;
Alarm Unit: be used for going out under the identical situation, in setting-up time, do not receive under the situation of the loopback cell of responding loopback report and alarm in described judgment unit judges.
By the above-mentioned technical scheme that provides as can be seen, the technical scheme of the embodiment of the invention is inserted into identifying information in the loopback cell of request loopback, and judge whether by this identifying information the loopback cell of the request loopback that sends into local terminal to detect the actual conditions of atm link with this.
Description of drawings
Fig. 1 is the flow chart of the method for the described detection link of prior art.
Fig. 2 the physics loopback occurring repeatedly or actual networking situation under the situation of unusual loopback occurring for the prior art atm link.
Fig. 3 is the flow chart of method of the detection link of the embodiment of the invention 1.
Fig. 4 is the structure chart of the device of the described detection link of the specific embodiment of the invention.
Embodiment
Embodiment of the present invention provides a kind of method that detects link.
This method comprises: the loopback cell that at first sends the request loopback that has identifying information; Behind the loopback cell of receiving the request loopback, judge whether the described loopback cell of asking loopback received is identical with the loopback cell of the described request loopback that has an identifying information; Judging under the identical situation, and in setting-up time, receiving under the situation of the loopback cell of responding loopback, confirming that link is normal, as in setting-up time, not receiving the loopback cell of responding loopback, then report and alarm.Said method sends it back the loopback cell of answering loopback under the loopback cell of judging the described loopback cell of receiving the request loopback and the described request loopback that has identifying information situation inequality.Said method can be finished by the originating end or the responder of atm link.
Transmission in the said method have identifying information the request loopback the loopback cell concrete operations can for, at first at the Optional Field " Sourcc ID " of the loopback cell of request loopback or do not use field " Unused " to insert identifying information, have the loopback cell of the request loopback of identifying information in transmission.I.6107.2.4, the structure of above-mentioned loopback cell and form save detailed description in agreement, are not just giving unnecessary details here.Above-mentioned identifying information is the value of local hardware timer preferably, also can select other the identifying information that can distinguish ATM originating end and ATM responder, and the specific embodiment of the invention is not limited to the form of identifying information.
Said method can also carry out following operation after confirming that link is normal, whether to check report and alarm, checking out under the situation of report and alarm, recovers the alarm that this reports; As check out not report and alarm, then end operation.This operation also can be finished by the originating end or the responder of atm link, only needs identical the getting final product of operating main body with said method.
The whether identical concrete grammar of the loopback cell of judging the described loopback cell of receiving the request loopback and the described request loopback that has an identifying information in the said method can for, judge at first whether the described loopback cell of request loopback of receiving has identifying information, when the identifying information in having the loopback cell of identifying information and this identifying information and the described request loopback that has an identifying information was identical, it was identical with the loopback cell of the described request loopback that has an identifying information to judge the described loopback cell of receiving the request loopback; Do not have identifying information or having identifying information but under identifying information in the loopback cell of this identifying information and the described request loopback that has the identifying information situation inequality, judge inequality.
For better describing the described method of embodiment of the present invention, existing 3 pairs of the specific embodiment of the present invention in conjunction with the accompanying drawings describe:
Embodiment 1: a kind of method that detects link that the specific embodiment of the present invention provides, the technology scene of present embodiment is, the operating main body of present embodiment is the originating end of ATM, identifying information is the value of local hardware timer, and the value of this local hardware timer is inserted in the Optional Field " Source ID " of the loopback cell of request loopback.Present embodiment comprises following operation:
The transmitting terminal of step 31, originating end sends the loopback cell of the request loopback of the value that has hardware timer;
The concrete operations of loopback cell that transmitting terminal in this step sends the request loopback of the value that has hardware timer are, after the value of hardware timer being inserted into the Optional Field " Source ID " of loopback cell of request loopback, send the loopback cell of request loopback.
The receiving terminal of step 32, originating end is received the loopback cell of request loopback;
Step 33, originating end judge whether the loopback cell of receiving the request loopback is identical with the loopback cell of the request loopback that sends the value that has hardware timer;
If identical, then carry out step 34~36, if different, then carry out step 37;
In this step originating end judge the loopback cell receive the request loopback and transmission have the whether identical concrete operations of the loopback cell of request loopback of value of hardware timer can for, originating end judges whether the described loopback cell of request loopback of receiving has the value of hardware timer, when the value of the hardware timer in the loopback cell of the value of the value with hardware timer and this hardware timer and the request loopback of the described value that has a hardware timer was identical, it was identical with the loopback cell of the request loopback of the described value that has a hardware timer to judge the described loopback cell of receiving the request loopback; In the value that does not have hardware timer or have the value of hardware timer but under identifying information in the loopback cell of the value of this hardware timer and the described request loopback that has the identifying information situation inequality, judge inequality.
Step 34, originating end judge whether to receive the loopback cell of responding loopback in setting-up time; As in setting-up time, receiving, then carry out step 35, otherwise carry out step 36;
Setting-up time in this step is preferentially selected 5s, also can select other time certainly in actual conditions, and present embodiment does not limit to the concrete time of setting.
Step 35, originating end confirm that link is normal.
Step 36, originating end report and alarm.
Step 37, originating end send it back the loopback cell of answering loopback; Behind completing steps 37, originating end turns back to step 34.
Said method can also comprise following operation after completing steps 35:
Whether step 38, transmitting terminal inspection have sent alarm; Checking out under the situation that sends alarm, carry out step 39, otherwise carry out step 40;
Step 39, transmitting terminal recover alarm.
Step 40, end operation.
But the step 38 among the embodiment 1~40 are selection operation.
The method that embodiment of the present invention provides is inserted into identifying information in the loopback cell of request loopback, and judges whether to detect the actual conditions of atm link into the loopback cell of the request loopback of local terminal transmission with this by this identifying information.
Embodiments of the present invention also provide a kind of device that detects link, and as shown in Figure 4, this device comprises transmitting element 41: the loopback cell that is used to send the request loopback that has identifying information; Receiving element 42: the loopback cell that is used to receive the request loopback; Judging unit 43: be used for after described receiving element is received the loopback cell of described request loopback, whether the loopback cell of the described request loopback that has an identifying information of judging the loopback cell receive the described request loopback and described transmitting element transmission is identical; Confirmation unit 44: be used for judging under the identical situation, and in setting-up time, receive under the situation of the loopback cell of responding loopback, confirm that link is normal at described judging unit 43; Alarm Unit 45: be used for judging under the identical situation, in setting-up time, do not receive under the situation of the loopback cell of responding loopback report and alarm at described judging unit 43.The device of the described detection link of the specific embodiment of the invention can be the originating end or the responder of atm link.
Above-mentioned transmitting element 41 can comprise: insert module 411: be used for identifying information is inserted the Optional Field of the loopback cell of asking loopback or do not use field; Sending module 412 is used for sending the loopback cell of described request loopback after described insert module 411 is inserted the loopback cell of request loopback with identifying information.This identifying information describes in detail among the method embodiment in the specific embodiment of the invention, is not just giving unnecessary details here.Above-mentioned judging unit 43 comprises: detection module 431 is used to detect the described loopback cell of request loopback of receiving and whether has identifying information; Judge module 432, be used for having identifying information and the described loopback cell of receiving the request loopback and having the identifying information of identifying information and the loopback cell of the described request loopback that has an identifying information when identical detecting the described loopback cell of receiving the request loopback, judge identically, otherwise judge inequality.
Said apparatus can also comprise, inspection unit 46: be used for after described confirmation unit 44 confirms that link is normal, whether inspection report and alarm; Recover Alarm Unit 47: be used for checking out under the situation of report and alarm, recover described report and alarm at described inspection unit 46.
The described device of invention embodiment is inserted into identifying information in the loopback cell of request loopback, and judges whether to detect the actual conditions of atm link into the loopback cell of the request loopback of local terminal transmission with this by this identifying information.
In sum, the technical scheme that the specific embodiment of the invention provides has the advantage of the actual conditions that detect atm link.
The above; only be the preferable embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (10)
1. a method that detects link is characterized in that, described method comprises:
Transmission has the loopback cell of the request loopback of identifying information;
Behind the loopback cell of receiving the request loopback, judge whether the described loopback cell of asking loopback received is identical with the loopback cell of the described request loopback that has an identifying information;
If identical, and in setting-up time, receive under the situation of the loopback cell of responding loopback, confirm that link is normal, as in setting-up time, not receiving the loopback cell of responding loopback, then report and alarm.
2. method according to claim 1 is characterized in that, whether the described loopback cell of judging the described loopback cell of receiving the request loopback and the described request loopback that has an identifying information identical comprising:
Detect the described loopback cell of request loopback of receiving and whether have identifying information, have identifying information in the loopback cell that identifying information and the described loopback cell of receiving the request loopback have identifying information and the described request loopback that has an identifying information when identical detecting the described loopback cell of receiving the request loopback, judge identically, otherwise judge inequality.
3. method according to claim 1 is characterized in that, the described loopback cell that has the request loopback of identifying information is:
Identifying information is inserted the Optional Field of the loopback cell of asking loopback or do not use field.
4. according to the arbitrary described method of claim 1~3, it is characterized in that described identifying information is the value of local hardware timer.
5. method according to claim 1 is characterized in that, described method also comprises following operation after confirming that link is normal:
Whether inspection report and alarm;
Checking out under the situation of report and alarm, recover described report and alarm.
6. method according to claim 1 is characterized in that, described method further comprises:
Judging under the situation inequality, sending it back the loopback cell of answering loopback.
7. a device that detects link is characterized in that, described device comprises:
Transmitting element: the loopback cell that is used to send the request loopback that has identifying information;
Receive request loopback unit: the loopback cell that is used to receive the request loopback;
Judging unit: be used for after described receiving element is received the loopback cell of described request loopback, whether the loopback cell of the described request loopback that has an identifying information of judging the loopback cell receive the described request loopback and described transmitting element transmission is identical;
Confirmation unit: be used for going out under the identical situation, and in setting-up time, receive under the situation of the loopback cell of responding loopback, confirm that link is normal in described judgment unit judges;
Alarm Unit: be used for going out under the identical situation, in setting-up time, do not receive under the situation of the loopback cell of responding loopback report and alarm in described judgment unit judges.
8. device according to claim 7 is characterized in that, described transmitting element comprises:
Insert module: be used for identifying information is inserted the Optional Field of the loopback cell of asking loopback or do not use field;
Sending module is used for sending the loopback cell of described request loopback after described insert module is inserted the loopback cell of request loopback with identifying information.
9. device according to claim 7 is characterized in that, described judging unit comprises:
Detection module is used to detect the described loopback cell of request loopback of receiving and whether has identifying information;
Judge module, be used for having identifying information and the described loopback cell of receiving the request loopback and having the identifying information of identifying information and the loopback cell of the described request loopback that has an identifying information when identical detecting the described loopback cell of receiving the request loopback, judge identically, otherwise judge inequality.
10. device according to claim 7 is characterized in that, described device also comprises:
Inspection unit: be used for after described confirmation unit confirms that link is normal, whether inspection report and alarm;
Recover Alarm Unit: be used for checking out under the situation of report and alarm, recover described report and alarm at described inspection unit.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101793871A CN101202677B (en) | 2007-12-12 | 2007-12-12 | Method and device for detecting link |
PCT/CN2008/073281 WO2009074090A1 (en) | 2007-12-12 | 2008-12-01 | Method and apparatus for detecting link |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101793871A CN101202677B (en) | 2007-12-12 | 2007-12-12 | Method and device for detecting link |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101202677A true CN101202677A (en) | 2008-06-18 |
CN101202677B CN101202677B (en) | 2010-11-03 |
Family
ID=39517656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101793871A Expired - Fee Related CN101202677B (en) | 2007-12-12 | 2007-12-12 | Method and device for detecting link |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101202677B (en) |
WO (1) | WO2009074090A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009074090A1 (en) * | 2007-12-12 | 2009-06-18 | Huawei Technologies Co., Ltd. | Method and apparatus for detecting link |
CN102223238A (en) * | 2010-04-16 | 2011-10-19 | 鸿富锦精密工业(深圳)有限公司 | Switching equipment and loopback detecting method thereof |
CN101511100B (en) * | 2009-01-16 | 2012-07-04 | 华为技术有限公司 | Link detection method, device and system |
WO2016116002A1 (en) * | 2015-01-19 | 2016-07-28 | 中兴通讯股份有限公司 | Method and device for automatically detecting otn network fault node |
CN109104338A (en) * | 2018-11-12 | 2018-12-28 | 北京天融信网络安全技术有限公司 | Link intelligent detection method, storage medium and computer equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH114231A (en) * | 1997-06-11 | 1999-01-06 | Nec Corp | Loop back cell control system and device |
US6545979B1 (en) * | 1998-11-27 | 2003-04-08 | Alcatel Canada Inc. | Round trip delay measurement |
CN100344116C (en) * | 2004-04-20 | 2007-10-17 | 北京润光泰力科技发展有限公司 | A method and apparatus for Ethernet converter line side loop back detection |
CN100403689C (en) * | 2005-05-16 | 2008-07-16 | 华为技术有限公司 | Method for detecting Ethernet user line state |
CN101202677B (en) * | 2007-12-12 | 2010-11-03 | 华为技术有限公司 | Method and device for detecting link |
-
2007
- 2007-12-12 CN CN2007101793871A patent/CN101202677B/en not_active Expired - Fee Related
-
2008
- 2008-12-01 WO PCT/CN2008/073281 patent/WO2009074090A1/en active Application Filing
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009074090A1 (en) * | 2007-12-12 | 2009-06-18 | Huawei Technologies Co., Ltd. | Method and apparatus for detecting link |
CN101511100B (en) * | 2009-01-16 | 2012-07-04 | 华为技术有限公司 | Link detection method, device and system |
CN102223238A (en) * | 2010-04-16 | 2011-10-19 | 鸿富锦精密工业(深圳)有限公司 | Switching equipment and loopback detecting method thereof |
CN102223238B (en) * | 2010-04-16 | 2013-11-06 | 鸿富锦精密工业(深圳)有限公司 | Switching equipment and loopback detecting method thereof |
WO2016116002A1 (en) * | 2015-01-19 | 2016-07-28 | 中兴通讯股份有限公司 | Method and device for automatically detecting otn network fault node |
CN105871569A (en) * | 2015-01-19 | 2016-08-17 | 中兴通讯股份有限公司 | Method and device for automatic detection of OTN network fault node |
CN105871569B (en) * | 2015-01-19 | 2020-08-04 | 中兴通讯股份有限公司 | Method and device for automatically detecting OTN network fault node |
CN109104338A (en) * | 2018-11-12 | 2018-12-28 | 北京天融信网络安全技术有限公司 | Link intelligent detection method, storage medium and computer equipment |
CN109104338B (en) * | 2018-11-12 | 2020-10-16 | 北京天融信网络安全技术有限公司 | Link intelligent detection method, storage medium and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2009074090A1 (en) | 2009-06-18 |
CN101202677B (en) | 2010-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101202677B (en) | Method and device for detecting link | |
CN101345581A (en) | Fault location method and system for passive optical network | |
CN101267363A (en) | Loop testing method, system and device | |
JP2000209339A (en) | Method for automatically monitoring communication trunk of communication system | |
CN101335689A (en) | Traceroute implementing method and equipment | |
CN101188529A (en) | E1 loop detection method and device | |
CN103684818A (en) | Method and device for detecting failures of network channel | |
EP2892274A1 (en) | Fault recovery method of operation and maintenance channel and network management terminal | |
CN101207573B (en) | Relay device and communication-path managing method | |
CN101237392B (en) | A network failure testing method under asynchronous transmission mode | |
CN101610181A (en) | Realize method, the Apparatus and system of fault detect | |
CN104539348A (en) | PON system link loopback detection method and device | |
CN105703967A (en) | Method and apparatus for detecting label switching path connectivity | |
US7046693B1 (en) | Method and system for determining availability in networks | |
CN104779994A (en) | Ethernet passive optical network protection method and device | |
CN100372306C (en) | Method for positioning fault of asynchronous transmission mode carrying IP data channel | |
CN102217359B (en) | Interface unit for base station control system and detecting method thereof | |
CN105516255A (en) | Method for pushing configuration from MoCA central office to terminal device and corresponding device | |
JP5064352B2 (en) | Optical communication network system and communication method thereof | |
CN102932172A (en) | Method, equipment and system for detecting Ethernet ring failure node | |
CN101465767B (en) | Alarm detection method and device for medium gateway network interface | |
JPH1079747A (en) | Asynchronous transfer mode communication equipment with operation and maintenance function | |
CN101826918B (en) | Test method, unit, system, single plate and backing plate of optical transport network electric crossing unit | |
CN100450020C (en) | Method and device for inverting mode match verifying of protected field both extremities protecting group | |
CN108173710A (en) | A kind of substation data report method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20101103 Termination date: 20171212 |