CN101132265A - Embedded code error detecting instrument and method for monitoring communication status between communication equipments - Google Patents

Embedded code error detecting instrument and method for monitoring communication status between communication equipments Download PDF

Info

Publication number
CN101132265A
CN101132265A CNA200710151607XA CN200710151607A CN101132265A CN 101132265 A CN101132265 A CN 101132265A CN A200710151607X A CNA200710151607X A CN A200710151607XA CN 200710151607 A CN200710151607 A CN 200710151607A CN 101132265 A CN101132265 A CN 101132265A
Authority
CN
China
Prior art keywords
communication
check code
link
local
code
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.)
Pending
Application number
CNA200710151607XA
Other languages
Chinese (zh)
Inventor
陈晓聪
李锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA200710151607XA priority Critical patent/CN101132265A/en
Publication of CN101132265A publication Critical patent/CN101132265A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

This invention provides a method for monitoring communication state among communication facilities including: an inserted error-code tester set in a loca communication facility takes a received code for monitoring state of communication links between a first communication device and a local communication device as a being tested check code and utilizes a check code generated locally to test the being tested check code, if the test is passed, then it is decided that the communication link from the first to the local device is all right, otherwise, it determined that fault happens to the communication link. This invention also provides an inserted eror code tester and a communication facility.

Description

Embedded error code detector and method for monitoring communication condition between communication devices
Technical Field
The invention relates to the technical field of communication, in particular to an embedded error code detector for monitoring communication conditions between communication devices and a method for monitoring the communication conditions between the communication devices by using the embedded error code detector.
Background
In a communication system, in order to master communication conditions among communication devices, such as whether a communication device participating in communication has a fault or not, and whether a route to the communication device is accessible or not, working communication devices are usually monitored in real time, and under the condition that the communication conditions among the communication devices are monitored to be abnormal and the communication service is interrupted, corresponding remedial measures, such as starting a standby device and continuing the interrupted service, can be adopted to ensure the normal operation of the communication service.
In order to grasp the communication status between communication devices in real time, a monitoring scheme with a detection chip on the communication device is adopted in the prior art, for example, a detection chip with a signal loss detection function is arranged in the communication device. Referring to fig. 1, fig. 1 is a schematic diagram of a monitoring system for communication status between existing communication devices. In fig. 1, the main device B is provided with a detection chip, and the detection chip may monitor a detection signal from the main device a establishing a communication link with the main device B in real time, and if the detection chip does not monitor the detection signal from the main device a within a certain period of time, if the main device a fails or a route to the main device B is not reachable, the detection chip may report alarm information indicating that an abnormal communication condition occurs. Although the detection chip of the communication device can monitor the on-off of the communication link between the main device a and the main device B in real time, it is difficult to monitor whether the code stream transmitted between the communication devices is erroneously transmitted, and it is difficult to accurately locate the fault location.
In the first prior art, some detection chips on the communication device may have a rough error code detection function, for example, when the detection chips detect that the code stream received within a long period of time does not jump but is all "0" or all "1", the detection chips may confirm that the communication condition is abnormal, and may also report an alarm message indicating that the communication condition is abnormal. Although the detection chip has a certain error detection capability, the error detection accuracy is generally relatively rough, for example, in TDM switching, an interface chip of SDH/PDH generally has an error detection function, but can only detect whether an E1(32 time slots) has an error, and cannot detect a single time slot. For some communication systems requiring high error detection accuracy, the detection accuracy of 32 timeslots is obviously not sufficient.
In the second prior art, a peripheral error code detector is adopted to detect the communication condition between communication devices.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication link to be monitored. In fig. 2, a communication device X communicates with a communication device Y, wherein the communication device X includes a service processing and interface module X01, a service processing and interface module X02, and an interconnection module X03 connecting the service processing and interface module X01 and the service processing and interface module X02, and the service processing and interface module X01, the interconnection module X03, and the service processing and interface module X02 are sequentially connected from left to right; it is assumed that the communication device Y includes a service processing and interface module Y01, a service processing and interface module Y02, and an interconnect module Y03 connecting the service processing and interface module Y01 and the service processing and interface module Y02, and the service processing and interface module Y01, the interconnect module Y03, and the service processing and interface module Y02 are sequentially connected from left to right. If the communication condition between the communication device X and the communication device Y is abnormal, an external error code detector may be used to locate the position where the fault occurs.
Referring to fig. 3, fig. 3 is a schematic diagram of a conventional communication device X using an external error detector. In fig. 3, the input and output ports of the external error detector may be connected to the input and output interfaces on the right side of the service processing and interface module X02, and the five loopback links marked in fig. 3 are:
starting from the output end of the peripheral error code detector, looping back to the input end of the peripheral error code detector from the interface connected with the service processing and interface module X02 and the interconnection module X03 to form a loopback link, and marking the loopback link as a loopback link four;
starting from the output end of the peripheral error code detector, passing through the service processing and interface module X02, looping back from the interface connected with the service processing and interface module X02 on the interconnection module, passing through the service processing and interface module X02, and finally looping back to the input end of the peripheral error code detector, so that a loopback link can be formed and marked as a loopback link III;
starting from the output end of the peripheral error code detector, passing through the service processing and interface module X02 and the interconnection module X03, looping back from an interface on the interconnection module connected with the service processing and interface module X01, sequentially passing through the interconnection module X03 and the service processing and interface module X02, and finally looping back to the input end of the peripheral error code detector, so that a loopback link can be formed, and the loopback link is marked as a loopback two-link;
starting from the output end of the peripheral error code detector, passing through the service processing and interface module X02 and the interconnection module X03, looping back from the interface connected with the interconnection module X03 on the service processing and interface module X01, sequentially passing through the interconnection module X03 and the service processing and interface module X02, and finally looping back to the input end of the peripheral error code detector, so that a loopback link can be formed, and the loopback link is marked as a loopback link I;
starting from the output end of the peripheral error detector, the data passes through the service processing and interface module X02, the interconnection module X03 and the service processing and interface module X01, then loops back from the interface on the left side of the service processing and interface module X01, sequentially passes through the service processing and interface module X01, the interconnection module X03 and the service processing and interface module X02, and finally loops back to the input end of the peripheral error detector, so that a loop-back link can be formed, and the loop-back link is marked as a loop-back link zero.
For locating the fault position quickly, the external error detector can firstly execute loopback on the loopback link II, if the loopback execution on the loopback link II succeeds, the communication condition on the loopback link II can be confirmed to be normal, then the loopback is executed on the loopback link I and the loopback link zero step by step, and if the loopback execution on the loopback link I succeeds, the fault position can be determined to be on the service processing and interface module X01; on the contrary, if the loopback execution on the loopback link two fails, the loopback is executed on the loopback links three and four step by step, and if the loopback execution on the loopback link three fails and the loopback execution on the loopback link four succeeds, the fault position can be determined to be on the interconnection module X03.
The detection of the peripheral error code detector on the communication equipment Y is similar to the detection on the communication equipment X, and the detection can be analogized and is not described again.
In the second prior art, the communication status between the communication devices is detected by the peripheral error code detector, and compared with the first prior art, the communication status between the communication devices is detected by the peripheral error code detector by using the check code, so that the error rate of the transmission code stream on the communication link can be detected, and higher detection precision can be achieved. However, the external error detector is usually large in size, so that the external error detector is inconvenient to carry and correspondingly inconvenient to monitor the communication condition between the communication devices in real time. In addition, the peripheral error detector is usually provided by a special equipment provider, the equipment is expensive, and the scheme of detecting the communication condition between the communication equipments by the peripheral error detector realizes detection by detecting the communication condition on the loopback link, so that it is difficult to perform positioning detection on the link fault possibly existing on the unidirectional link.
Therefore, in the prior art, there is still a room for improvement in the detection scheme for detecting the communication status between the communication devices.
Disclosure of Invention
The embodiment of the invention provides an embedded error code detector, which is arranged in local communication equipment and comprises: the device comprises a receiving processing unit, a check code generating unit and a detecting unit; wherein,
the receiving processing unit is used for receiving a check code for monitoring the communication condition of a communication link between the first communication equipment and the local communication equipment, wherein the check code is a check code to be detected;
the check code generating unit is used for generating a local check code;
the detection unit is used for detecting the check code to be detected received by the receiving processing unit by using the local check code generated by the check code generation unit, and if the detection is passed, determining that the communication link between the first communication equipment and the local communication equipment is not in fault; otherwise, determining that the communication link between the first communication device and the local communication device is failed.
The embodiment of the invention provides a method for monitoring the communication condition between communication devices, which can conveniently carry out unidirectional real-time detection on the communication condition between the communication devices and has higher detection precision.
A method of monitoring communication conditions between communication devices, comprising:
the embedded error code detector is arranged in the local communication equipment and used for receiving a check code for monitoring the communication condition of a communication link between first communication equipment and the local communication equipment, wherein the check code is a check code to be detected;
the embedded error code detector detects the check code to be detected by using the generated local check code, and if the check code passes the detection, the communication link between the first communication equipment and the local communication equipment is determined not to have a fault; otherwise, determining that the communication link between the first communication device and the local communication device is failed.
An embodiment of the present invention further provides a communication device, including: an embedded error code detector arranged in the communication equipment; the embedded error code detector comprises: the device comprises a receiving processing unit, a check code generating unit and a detecting unit; wherein,
the receiving processing unit is used for receiving a check code for monitoring the communication condition of a communication link between the first communication equipment and the local communication equipment, and taking the check code as a check code to be detected;
the check code generating unit is used for generating a local check code;
the detection unit is used for detecting the check code to be detected received by the receiving processing unit by using the local check code generated by the check code generation unit, and if the detection is passed, determining that a communication link between the first communication equipment and the local communication equipment is not in fault; otherwise, determining that the communication link between the first communication device and the local communication device is failed.
According to the embedded error code detector, the communication equipment and the method for monitoring the communication condition between the communication equipment, the embedded error code detector arranged on the communication equipment generates the local check code, the local check code is used for detecting the received check code to be detected transmitted through the communication link to be detected, if the check code passes the detection, the communication link to be detected can be determined not to be in fault, otherwise, the communication link to be detected can be determined to be in fault, so that the communication link in fault can be accurately determined, and correspondingly, the fault position can be further determined.
The technical scheme provided by the embodiment of the invention adopts the steps of transmitting the check code on the communication link to be detected and detecting the transmitted check code, so that the detection precision of the error code possibly generated is higher. In addition, in the embodiment of the invention, the fault possibly occurring on the unidirectional communication link can be detected, and the plurality of unidirectional communication links can be simultaneously detected, so that the detection efficiency is higher.
Drawings
FIG. 1 is a schematic diagram of a prior art system for monitoring communication conditions between communication devices;
FIG. 2 is a schematic diagram of a communication link to be monitored;
FIG. 3 is a schematic diagram of a conventional communication device X detected by an external error detector;
FIG. 4 is a schematic structural diagram of an embedded error detector in an embodiment of the present invention;
fig. 5 is a flowchart of a communication condition monitoring method of a communication device according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating monitoring of communication status of a communication device by using an embedded error detector according to an embodiment of the present invention;
fig. 7 is a flow chart of monitoring link 1 according to one embodiment of the present invention;
fig. 8 is a flowchart of determining the location of a fault point by using an embedded error code detector a according to a second embodiment of the present invention;
fig. 9 is an application scenario diagram of the embedded error detector in the third embodiment of the present invention.
Detailed Description
The technical solutions provided by the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
In the embodiment of the invention, in order to conveniently monitor the communication condition between the communication devices, the embedded error code detector embedded in the communication devices is adopted to monitor the communication condition between the communication devices in real time.
In addition, in the embodiment of the invention, the check code is transmitted between the communication devices, and whether the check code is transmitted correctly is detected, so that higher detection precision is ensured.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an embedded error detector in an embodiment of the present invention, where the embedded error detector may be disposed in a communication device, and may include: the device comprises a receiving processing unit, a check code generating unit and a detecting unit; wherein,
the receiving processing unit is used for receiving a check code for monitoring the communication condition of a communication link from the first communication equipment to the local communication equipment, wherein the check code is a check code to be detected;
the check code generating unit is used for generating a local check code;
the detection unit is used for detecting the check code to be detected received by the receiving processing unit by using the local check code generated by the check code generation unit, and if the detection is passed, determining that the communication link from the first communication equipment to the local communication equipment has no fault; otherwise, determining that the communication link from the first communication device to the local communication device is failed.
The embedded error detector may further comprise:
and the reporting unit is used for reporting the fault to a communication system where the embedded error code detector is located after the detection unit determines that the communication link from the first communication equipment to the local communication equipment has the fault.
The embedded error detector may further comprise:
and the sending unit is used for sending out the local check code generated by the check code generating unit. If the embedded error code detector is arranged on the first communication equipment, the local communication equipment is the first communication equipment, and the communication link to be monitored is a loopback link which is looped back to the first communication equipment, then the embedded error code detector firstly sends out a check code for monitoring the communication condition from the first communication equipment to the local communication link, and finally loops back to the embedded error code detector on the first communication equipment through the loopback link. If no fault occurs on the loopback link, the check code for monitoring the communication condition can be correctly looped back to the embedded error code detector, and the check code to be detected received from the loopback link is the same as that sent by the embedded error code detector; on the contrary, if a fault occurs on the loopback link, the check code for monitoring the communication condition generates an error code in the process of transmitting through the loopback link, so that the check code cannot be correctly transmitted.
The detection unit can detect the check code to be detected which returns back by using the local check code, and if the local check code and the check code are the same, the loopback link can be determined not to be in fault; otherwise, a determination may be made that a failure exists on the loopback link.
Referring to fig. 5, fig. 5 is a flowchart of a method for monitoring communication status between communication devices according to an embodiment of the present invention, where the method includes the following steps:
step 501, an embedded error code detector arranged in the local communication device receives a check code for monitoring a communication status of a communication link from the first communication device to the local communication device, where the check code is a check code to be detected.
In the embodiment of the present invention, the check code for monitoring the communication condition of the communication link from the first communication device to the local communication device may be generated in the first communication device according to a preset check code generation policy. The check code generation policy may include: generating a fixed check code according to a preset fixed check code; or generating the check code according to a preset pseudo-random code generation formula and a reference check code. If a fixed check code generation strategy is adopted, the check codes generated on the first communication equipment every time are the same; if a pseudo-random code generation strategy is employed, the check code generated at the first communication device at each time may be different.
Step 502, the embedded error code detector detects the check code to be detected by using the generated local check code, and if the detection is passed, it is determined that the communication link from the first communication device to the local communication device is not in fault; otherwise, determining that the communication link from the first communication device to the local communication device is failed.
In the embodiment of the present invention, the local communication device may be the first communication device itself, or may be a second communication device that establishes the communication link with the first communication device.
If the local communication device is the second communication device, in the embodiment of the present invention, the local check code may be generated according to the check code generation policy that is the same as the check code generated on the first communication device.
If the local communication device is the first communication device itself, the communication link may be a loopback link looping back from the first communication device to the first communication device; if the local communication device is the second communication device, the communication link may be a single-turn link from the first communication device to the second communication device.
In the embodiment of the invention, because the communication condition of the communication link is unknown, under the condition that no fault occurs on the communication link, the check code which is sent from the first communication equipment and used for monitoring the communication condition of the communication link from the first communication equipment to the local communication equipment can be correctly transmitted to the local, and the embedded error code detector can receive the correct check code; if a fault occurs on the communication link, the check code for monitoring the communication condition sent from the first communication device generates an error code in the transmission process, and the check code received by the embedded error code detector is a code stream generating the error code. In the embodiment of the invention, in order to distinguish the check code for monitoring the communication condition sent by the first communication device before the embedded error code detector receives the check code from the locally actually received check code, the locally received check code for monitoring the communication condition is used as the check code to be detected.
Correspondingly, the method for detecting the check code to be detected by using the local check code may be:
determining whether the check code to be detected is the same as the local check code, if so, passing the detection; otherwise, the detection fails.
In the embodiment of the present invention, the embedded error code detector may be implemented by a Field Programmable Gate Array (FPGA).
The implementation and application of the method and the embedded error code detector provided in the embodiments of the present invention are described in detail below with reference to specific embodiments.
The first embodiment is as follows:
referring to fig. 6, fig. 6 is a schematic diagram illustrating a method for monitoring a communication status of a communication device by using an embedded error detector according to an embodiment of the present invention. In the first embodiment, the communication link to be monitored is still the communication link shown in fig. 2, but as can be seen from fig. 6, in the first embodiment, the embedded error detector provided in the embodiment of the present invention may be disposed in each module included in the communication device X and the communication device Y shown in fig. 2. In practical application, the embedded error detector can be arranged in some modules according to requirements, but not necessarily in each module. Taking the monitoring communication device X as an example, the label is an embedded error code detector a disposed on the service processing and interface module X01, an embedded error code detector B disposed on the service processing and interface module X02, and an embedded error code detector AB disposed on the interconnection module X03.
In the embodiment of the invention, the monitoring of the communication link can be unidirectional monitoring. As shown in fig. 6, the communication link from the service processing and interface module X01 to the interconnection module X03 is denoted as link 1, and the communication link from the interconnection module X03 to the service processing and interface module X01 is denoted as link 3; the communication link from the interconnection module X03 to the service processing and interface module X02 is marked as link 2, and the communication link from the interconnection module X03 to the service processing and interface module X02 is marked as link 4. The communication conditions on the link 1 and the link 3 can be monitored by the embedded error detectors a and AB respectively and independently, and similarly, the communication conditions on the link 2 and the link 4 can be monitored by the embedded error detectors B and AB respectively and independently, and the monitoring in each link direction is not affected by each other. In addition, in order to improve the monitoring efficiency, the embedded error detectors A, B and the embedded error detectors AB can be simultaneously started to simultaneously monitor the communication conditions on the four communication links from the link 1 to the link 4. In practical application, any one of the embedded error detectors on the communication device X can be selectively enabled as required.
In the embodiment of the present invention, because the monitoring processes of the communication conditions on the four communication links are similar, the first embodiment focuses on monitoring the link 1 as an example, and illustrates that the embedded error code detector is used to monitor the communication links in the embodiment of the present invention. In this embodiment, the first communication device may be a service processing and interface module X01, referred to as module X01 for short; the interconnect module X03 may be used as a local communication device to detect whether the received check code to be detected is error-coded. Referring to fig. 7, fig. 7 is a flowchart of monitoring a link 1 according to a first embodiment of the present invention, where the flowchart may include the following steps:
step 701, the embedded error code detector a generates a check code for monitoring the communication status of the link 1 from the module X01 to the interconnect module X03 according to a preset check code generation policy, and can send the generated check code to the embedded error code detector AB.
As mentioned above, the check code generation strategy may be to generate a fixed check code or a pseudo-random code.
In the embodiment of the invention, the check code for monitoring the communication condition of the link 1 can be carried in the service code stream and sent out by utilizing the idle time slot of the communication system, so that the normal development of communication service can not be influenced.
Step 702, the embedded error code detector AB receives a check code for monitoring the communication status of the link 1, where the check code is a check code to be detected.
In the embodiment of the invention, in order to detect the communication condition of the link 1, the check code generated by the embedded error code detector A can be transmitted to the embedded error code detector AB through the link 1, and at the side of the embedded error code detector AB, the check code received from the embedded error code detector A received on the link 1 can be detected to see whether the check code generated on the embedded error code detector A generates an error code in the transmission process through the link 1, so that the communication condition on the link 1 can be determined.
And step 703, the embedded error code detector AB generates a local check code by using the check code generation strategy adopted by the embedded error code detector a in step 701.
In the embodiment of the invention, the embedded error code detector AB and the embedded error code detector A can adopt the same check code generation strategy, correspondingly, the check code generated by the embedded error code detector A is transmitted to the embedded error code detector AB through the link 1 to be used as the check code to be detected, and the embedded error code detector AB can verify the check code to be detected by utilizing the generated local check code.
In practical applications, the execution order between step 702 and step 703 is not critical.
Step 704, the embedded error code detector AB compares the local check code with the check code to be detected, and if the two check codes are the same, it can be determined that the link 1 has not failed, and the detection process can be ended; if the two check codes are different, it is determined that link 1 has failed, and step 705 is performed.
In the embodiment of the invention, if the embedded error code detector AB and the embedded error code detector a both adopt fixed check codes, when the embedded error code detector AB and the embedded error code detector a monitor the link 1 at a certain time, the generated check codes are the same, and if the generated fixed check codes are both X0 ═ 1001; in addition, in practical application, in order to monitor the communication condition on the link 1 in real time, the embedded error code detector a will periodically send a detection signal carrying a check code to the embedded error code detector AB through the link 1, and then in the embedded error code detector a, the check code generated each time can be X0. The embedded error code detector AB detects the received check code to be detected according to locally generated X0, and if the check code to be detected transmitted through the link 1 is also X0, the embedded error code detector can determine that no fault occurs on the link 1; otherwise, a failure on link 1 may be determined.
In the embodiment of the present invention, it may also be assumed that the embedded error code detector AB and the embedded error code detector a both use the same pseudo-random code generation formula, and since the generation of the pseudo-random code needs to be based on a known pseudo-random code, the known pseudo-random code for generating the next pseudo-random code may be referred to as a reference pseudo-random code, and in this application, may also be referred to as a reference check code.
The reference pseudo random code on the current embedded error detector a may be X1-1000, and the reference pseudo random code on the embedded error detector AB may be Y1-1000, that is, X1-Y1; the embedded error code detector A generates a pseudo-random code X2 for monitoring the communication condition of the link 1 according to a reference pseudo-random code and pseudo-random code generating formula, and transmits the pseudo-random code X2 through the link 1; the embedded error code detector AB generates a local pseudo-random code Y2 according to a reference pseudo-random code Y1 and a pseudo-random code generating formula, wherein Y2 is X2 is 1002; the embedded error code detector AB detects the received check code to be detected by utilizing Y2, if the check code to be detected is the same as Y2, the pseudo-random code X2 sent by the embedded error code detector A is correctly transmitted to the embedded error code detector AB through a link 1, and the embedded error code detector AB can determine that the link 1 is not in fault; if the check code to be detected is different from Y2, and the check code to be detected is Y2' ═ 1003, the pseudo-random code X2 sent by the embedded error code detector A cannot be correctly transmitted to the embedded error code detector AB through the link 1, and the embedded error code detector AB can determine that the link 1 fails; in addition, in the embodiment of the invention, the detection precision of the error code generated on the link 1 can be accurate to 1Bit (Bit), so the detection precision is higher.
In addition, under the condition of adopting a pseudo-random code generation formula, the embedded error code detector A generates the next pseudo-random code based on X2, and generates X3; accordingly, the embedded error detector a sends the generated pseudo random code X3 to the embedded error detector AB. On the side of the embedded error code detector AB, because the last received error code is Y2 ', the embedded error code detector AB will generate the next local pseudo random code based on Y2', if Y3 is generated, Y3 is not equal to X3; if the fault of the link 1 is not repaired at this time, the check code to be detected received by the embedded error code detector AB is not X3, but may be other error codes, and is set as Y3'; the embedded error code detector AB detects the received check code Y3' to be detected by using the local pseudo-random code Y3, and if the two are different, the failure of the link 1 can be continuously determined; if the fault of the link 1 is repaired later, the link 1 can transmit the next pseudo random code X4 generated by the embedded error detector A based on X3 to the side of the embedded error detector AB; however, the embedded error code detector AB will generate the next local pseudo random code Y4 based on the error code Y3' received last time, and obviously, Y4 is not equal to X4, so even if the pseudo random code X4 sent by the embedded error code detector a can be correctly received this time, the embedded error code detector AB will still give the detection result of the link 1 fault this time; and subsequently, the embedded error code detector A can generate the next pseudo-random code X5 based on the same pseudo-random code X4, the embedded error code detector AB can generate a local check code Y5 based on the same Y4 as X4, and Y5 is X5, so that the embedded error code detector AB can correctly receive the pseudo-random code X5 sent by the embedded error code detector A under the condition that the link 1 is repaired, and the link 1 can be determined to be not failed after the detection is carried out by utilizing the local pseudo-random code Y5.
In the embodiment of the invention, under the condition of detecting the communication link by adopting a pseudo-random code generation formula, on one hand, the detection does not influence the normal development of communication service; on the other hand, in practical application, the error accumulation method can be adopted, and the fault is reported after the error accumulation number reaches a threshold value, so that the situation that the communication system frequently adopts remedial measures, such as the situation that the standby equipment replaces the currently running main equipment, due to the fact that the link is not repaired in time and the fault is reported can be avoided.
Step 705, the embedded error code detector AB reports the fault information to the device with the function of collecting alarms in the communication system of the communication device X, and the detection process can be ended.
Based on the above flow shown in fig. 7, detection of link 2 to link 4 and detection of communication device Y can be analogized, and details are not repeated. In addition, in the embodiment of the present invention, the link 5 from the service processing and interface module X02 to the service processing and interface module Y02 and the link 6 from the service processing and interface module Y02 to the service processing and interface module X02 may be detected by an embedded error code detector B disposed on the service processing and interface module X02 in the communication device X and an embedded error code detector D disposed on the service processing and interface module Y02 in the communication device Y, respectively, and the specific implementation of the detection may still be inferred through the flow shown in fig. 7, which is not described in detail. In the embodiment of the invention, the detection of the communication conditions on the link 5 and the link 6 is difficult to realize by adopting an external error code detector in the prior art.
Example two:
in the first embodiment, it is determined that the link 1 or the link 3 has a failure. In the second embodiment, the position of the fault point can be further determined by using the embedded error code detector a. Accordingly, the first communications device and the local communications device are both at module X01. Referring to fig. 8, fig. 8 is a flowchart of determining a location of a fault point by using an embedded error detector a according to a second embodiment of the present invention, where the flowchart may include the following steps:
step 801, determining that a loopback link to be detected is from the module X01 where the embedded error code detector a is located, passes through the link 1, does not pass through the embedded error code detector AB on the interconnection module X03, loops back to the link 3, and finally returns to the module X01 where the embedded error code detector a is located.
Step 802, the embedded error code detector a may generate a check code for monitoring the communication status of the loopback link according to a preset check code generation policy, and send the check code along the loopback link.
In the second embodiment, the embedded error code detector a is configured to use a pseudo-random code generation formula and a reference check code, and generate the pseudo-random code as the check code, and the reference check code may be set to X1; the embedded error detector A generates a pseudo random code X2 based on X1, and sends out the pseudo random code X2 through a loopback link.
Step 803, the embedded error code detector a receives the check code looped back by the loopback link, and the check code looped back by the loopback link is the check code to be detected.
Step 804, the embedded error code detector a detects the received check code to be detected by using the generated local check code, and if the check code to be detected is the same as the local check code, it is determined that no fault occurs on the loopback link, and therefore it is determined that the fault position is the interconnection module X03; otherwise, the fault location may be determined to be block X01 and the process may end.
In step 804, the embedded error detector a still generates a local check code Y2 identical to X2 based on the reference check code Y1 identical to X1; if the loopback check code is different from Y2, the embedded error code detector a can determine that a fault occurs on the loopback link, so that the fault position can be determined to be the module X01; on the contrary, if the looped check code is the same as Y2, the embedded error detector a may determine that no fault occurs on the looped link, and may determine that the fault location is the interconnect module X03.
As can be seen from the first and second embodiments, in practical applications, unidirectional link detection and loopback link detection can be comprehensively used to determine the fault location.
Example three:
in the third embodiment, the embedded error code detector provided in the embodiment of the present invention is applied to a TDM switch. Referring to fig. 9, fig. 9 is an application scenario diagram of an embedded error detector in the third embodiment of the present invention. Fig. 9 includes a line interface board M and a line interface board N, and a TDM switching network module P of the line interface board M and the line interface board N. Wherein, a line interface module M1 and an embedded error code detector M2 connected with the interface module M1 through a link 7 and a link 7' are arranged on the line interface board M; the embedded error code detector M2 is connected with the switching network module P through a link 8 and a link 8'; the line interface board N is provided with a line interface module N1 and an embedded error code detector N2 connected with the module N through a link 9 and a link 9 ', and the embedded error code detector N2 is connected with the switching network module P through a link 10 and a link 10'; an embedded error code detector P1 can be arranged on the switching network module P.
In the third embodiment of the present invention, the method for monitoring the communication status of the TDM switch may be as follows:
monitoring the communication condition of the line interface module M1: the embedded error detector M2 is enabled, and it is determined that the loopback link to be detected is a link 7 through which the link passes, and then loops back to the link 7' through the line interface module M1, and finally loops back to the link of the embedded error detector M2, and the specific detection process can be inferred from the detection flow shown in fig. 8. If the embedded error code detector M2 determines that the loopback link has not failed, it can further determine that the line interface module M1 has not failed; otherwise, it may be determined that line interface module M, interface module M1, is the fault location;
when the line interface module N1 is monitored, the embedded error code detector N2 may be used, and the specific monitoring method may be inferred from the method for monitoring the line interface module M1, and will not be described again;
monitoring the communication conditions on the links 8 and 8': simultaneously, an embedded error code detector M2 on a line interface board M and an embedded error code detector P1 on a switching network module P are started. The monitoring of the link 8 and the link 8' can be performed simultaneously and independently, and the specific monitoring process can be inferred through the flow shown in fig. 7, which is not described again;
when the communication conditions of the link 10 and the link 10' are monitored, an embedded error code detector N2 on a line interface board N and an embedded error code detector P1 on a switching network module P can be started at the same time; the monitoring of the link 10 and the link 10' can be performed simultaneously and independently, and the specific monitoring process can be inferred through the flow shown in fig. 7, which is not described again;
in practical application, the range of the communication link which can be monitored can be further expanded, for example, the embedded error detectors M2 and N can be simultaneously started to monitor the communication condition in the direction from the link 8 to the link 10; and can monitor the communication condition from the link 10 'to the link 8' at the same time; the embedded error code detector M2 can be started to monitor the passing link 8, the link 10 and the link 9 and loop back on the line interface module N1, and the communication status on the loop back link is looped back to the link 9 ', passed link 10 ' and link 8 ' and finally looped back to the embedded error code detector M2; similarly, the embedded error detector N2 may be enabled to monitor the link 10 ', the link 8 ', and the link 7 ', loop back on the line interface module M1, loop back to the link 7, pass through the link 8 and the link 10, and finally loop back to the embedded error detector N2. Therefore, in practical application, the embedded error code detector provided by the embodiment of the invention can be flexibly utilized to carry out real-time monitoring on the communication link to be monitored.
Because the error code detection precision can reach 1bit in the embodiment of the invention, the error code which is possibly generated on a communication link or communication equipment can be accurately detected by adopting the embedded error code detector and the monitoring scheme provided by the embodiment of the invention in a TDM system with the minimum unit of 1 time slot (8 bit).
The embodiment of the invention also provides communication equipment, which can comprise the embedded error code detector provided by the embodiment of the invention, such as the TDM switch, the equipment X, the equipment Y and the like.
The technical scheme provided by the embodiment of the invention can be suitable for a narrow-band communication system such as a TDM system and can also be suitable for a broadband communication system such as an Ethernet.
In summary, the embedded error code detector, the communication device and the method for monitoring the communication status between the communication devices provided in the embodiments of the present invention generate the local check code by the embedded error code detector disposed on the communication device, and detect the received check code to be detected transmitted through the communication link to be detected by using the local check code, if the check code passes the detection, it is determined that the communication link to be detected is not faulty, otherwise, it is determined that the communication link to be detected is faulty, so that the faulty communication link can be accurately determined, and accordingly, the fault location can be further determined.
The technical scheme provided by the embodiment of the invention adopts the transmission of the check code on the communication link to be detected and detects the transmitted check code, so that the detection precision of the error code possibly generated is higher and can be accurate to 1 bit. In addition, in the embodiment of the invention, the fault possibly occurring on the unidirectional communication link can be detected, and the plurality of unidirectional communication links can be simultaneously detected, so that the detection efficiency is higher.

Claims (10)

1. An embedded error code detector, which is arranged in a local communication device, comprises: the device comprises a receiving processing unit, a check code generating unit and a detecting unit; wherein,
the receiving processing unit is used for receiving a check code for monitoring the communication condition of a communication link between the first communication equipment and the local communication equipment, wherein the check code is a check code to be detected;
the check code generating unit is used for generating a local check code;
the detection unit is used for detecting the check code to be detected received by the receiving processing unit by using the local check code generated by the check code generation unit, and if the detection is passed, determining that the communication link between the first communication equipment and the local communication equipment is not in fault; otherwise, determining that the communication link between the first communication device and the local communication device is failed.
2. The in-line error detector of claim 1, further comprising:
and the sending unit is used for sending the local check code generated by the check code generating unit.
3. The in-line error detector of claim 1, further comprising:
and the reporting unit is used for reporting the fault to a communication system where the embedded error code detector is located after the detection unit determines that the communication link between the first communication equipment and the local communication equipment has the fault.
4. A method for monitoring communication conditions between communication devices, comprising:
the embedded error code detector is arranged in the local communication equipment and used for receiving a check code for monitoring the communication condition of a communication link between first communication equipment and the local communication equipment, wherein the check code is a check code to be detected;
the embedded error code detector detects the check code to be detected by using the generated local check code, and if the check code passes the detection, the communication link between the first communication equipment and the local communication equipment is determined not to have a fault; otherwise, determining that the communication link between the first communication device and the local communication device is failed.
5. The method of claim 4,
the local communication equipment is first communication equipment, and a communication link from the first communication equipment to the local communication equipment is a loopback link for looping back from the first communication equipment to the first communication equipment; or,
the local communication device is a second communication device which establishes the communication link with the first communication device, and the communication link from the first communication device to the local communication device is a single-loop link from the first communication device to the second communication device.
6. The method of claim 4, wherein the check code for monitoring the communication condition of the communication link from the first communication device to the local communication device is generated in the first communication device according to a preset check code generation policy.
7. The method of claim 6, wherein the local check code is generated according to the check code generation policy.
8. The method according to claim 6 or 7,
the check code generation strategy comprises the following steps:
generating a check code according to a preset fixed check code; or,
and generating a check code according to a preset pseudo-random code generation formula and a reference check code.
9. The method of claim, wherein the step of detecting the check code to be detected by using the local check code comprises:
determining whether the check code to be detected is the same as the local check code, if so, passing the detection; otherwise, the detection fails.
10. A communication device, comprising: an embedded error code detector arranged in the communication equipment; the embedded error code detector comprises: the device comprises a receiving processing unit, a check code generating unit and a detecting unit; wherein,
the receiving processing unit is used for receiving a check code for monitoring the communication condition of a communication link between the first communication equipment and the local communication equipment, and taking the check code as a check code to be detected;
the check code generating unit is used for generating a local check code;
the detection unit is used for detecting the check code to be detected received by the receiving processing unit by using the local check code generated by the check code generation unit, and if the detection is passed, determining that a communication link between the first communication equipment and the local communication equipment is not in fault; otherwise, determining that the communication link between the first communication device and the local communication device is failed.
CNA200710151607XA 2007-09-21 2007-09-21 Embedded code error detecting instrument and method for monitoring communication status between communication equipments Pending CN101132265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200710151607XA CN101132265A (en) 2007-09-21 2007-09-21 Embedded code error detecting instrument and method for monitoring communication status between communication equipments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200710151607XA CN101132265A (en) 2007-09-21 2007-09-21 Embedded code error detecting instrument and method for monitoring communication status between communication equipments

Publications (1)

Publication Number Publication Date
CN101132265A true CN101132265A (en) 2008-02-27

Family

ID=39129399

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200710151607XA Pending CN101132265A (en) 2007-09-21 2007-09-21 Embedded code error detecting instrument and method for monitoring communication status between communication equipments

Country Status (1)

Country Link
CN (1) CN101132265A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510809B (en) * 2009-03-27 2012-04-25 华为技术有限公司 Failure detection method, system and TDM veneer
WO2016180197A1 (en) * 2015-09-17 2016-11-17 中兴通讯股份有限公司 Method and apparatus for discovering network element link, and network management system server
CN107135033A (en) * 2017-05-27 2017-09-05 烽火通信科技股份有限公司 A kind of optical link fault diagnosis system and method based on PRBS
CN109495341A (en) * 2018-11-12 2019-03-19 苏州裕太车通电子科技有限公司 A kind of timesharing of Ethernet sends line to information and line to detection method
CN114760222A (en) * 2022-06-13 2022-07-15 北京国科天迅科技有限公司 Link disconnection detection method and device for 100base-T1 PHY chip

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510809B (en) * 2009-03-27 2012-04-25 华为技术有限公司 Failure detection method, system and TDM veneer
WO2016180197A1 (en) * 2015-09-17 2016-11-17 中兴通讯股份有限公司 Method and apparatus for discovering network element link, and network management system server
CN106549775A (en) * 2015-09-17 2017-03-29 中兴通讯股份有限公司 A kind of network element link finds method and device, NM server
CN107135033A (en) * 2017-05-27 2017-09-05 烽火通信科技股份有限公司 A kind of optical link fault diagnosis system and method based on PRBS
CN107135033B (en) * 2017-05-27 2019-04-16 烽火通信科技股份有限公司 A kind of optical link fault diagnosis system and method based on PRBS
CN109495341A (en) * 2018-11-12 2019-03-19 苏州裕太车通电子科技有限公司 A kind of timesharing of Ethernet sends line to information and line to detection method
CN109495341B (en) * 2018-11-12 2021-01-15 苏州裕太微电子有限公司 Time-sharing sending line pair information of Ethernet and line pair detection method
CN114760222A (en) * 2022-06-13 2022-07-15 北京国科天迅科技有限公司 Link disconnection detection method and device for 100base-T1 PHY chip

Similar Documents

Publication Publication Date Title
US9584218B2 (en) Method and arrangement for monitoring optical transmission lines
US8755285B2 (en) Method, system and apparatus for diagnosing physical downlink failure
CN101132265A (en) Embedded code error detecting instrument and method for monitoring communication status between communication equipments
CN105871569B (en) Method and device for automatically detecting OTN network fault node
CN103684818A (en) Method and device for detecting failures of network channel
US9203719B2 (en) Communicating alarms between devices of a network
CN106656575B (en) A kind of method for diagnosing faults suitable for pilot protection multiplex channel
JP5321347B2 (en) Network maintenance management system, end point node, network maintenance management method, and program
CN110768871B (en) Test method and system for automatically counting data transmission correctness of DCS (distributed control system)
CN107005440A (en) A kind of method of link failure positioning, apparatus and system
KR100333954B1 (en) The Mehod and Apparatus of Dual Operation and Fault Detection in Optical Network Using Single Core
KR20140026527A (en) Method, apparatus and system for detectiong packet path signal degraded
CN100367262C (en) Method and device for testing a monitoring function of a bus system and a corresponding bus system
JP2010103631A (en) Media converter station side device, media converter terminal side device, optical communication network system and communication method for the same
KR100827065B1 (en) Network error management system
JP3618550B2 (en) Maintenance method of ATM network system including STM line
KR100251702B1 (en) Fault detecting method of specific device in atm network
JP2003304208A (en) Network device
JP2007207050A (en) Test method and program of communication between parallel processor
JP3693961B2 (en) Power-off information transmission / detection method
JP2540937B2 (en) Maintenance test method
JP2007243914A (en) Transmission apparatus including line test function
CN118041717A (en) CAN communication module and method for double-path backup
JPH04337937A (en) Device inside monitoring system for transmitter
CN114697236A (en) Communication monitoring 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080227