A fault detection method, a first processing unit, a device and a storage medium
Through FPGA and photoelectric conversion module, inner loopback detection and outer loopback detection are performed in the base station, which solves the problem of low efficiency of base station hardware fault detection, realizes automatic fault detection, improves detection efficiency and reduces costs.
Patent Information
- Application Number
- CN202110626705.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-06-04
AI Technical Summary
In the existing technology, base station hardware fault detection efficiency is low, especially when the AAU is located at a high location, and manual detection requires a lot of labor costs, resulting in further reduction in fault detection efficiency.
Using FPGA and photoelectric conversion module, by receiving fault detection instructions, it performs inner loopback detection and outer loopback detection, uses photoelectric converters and electro-optical converters to form a loopback path, sends data packets and compares the original and transmitted data packets. , to detect failures on the loopback path.
Fault detection can be completed without manual participation, which improves fault detection efficiency, reduces labor costs, and accurately determines faults on the loopback path.
Smart Images

Figure CN115442839B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a fault detection method, a first processing unit, a device and a storage medium. Background Art
[0002] During the operation of the base station, the data processed may have bit errors. In order to detect the faults that cause the bit errors, it is necessary to perform fault detection on the hardware in the base station. Specifically, the hardware in the base station includes two processing units: AAU (Active Antenna Unit) and BBU (Base Band Unite). Failures in AAU and BBU may cause bit errors. In order to determine the faults that cause the bit errors, it is necessary to perform fault detection on AAU and BBU.
[0003] In the prior art, it is often necessary to manually perform fault detection on each hardware of the base station, so the efficiency of fault detection is low. In addition, the AAU in the base station is often installed at a higher position, and manual fault detection of the AAU requires additional labor costs, which further reduces the efficiency of fault detection. Summary of the invention
[0004] The purpose of the embodiment of the present invention is to provide a fault detection method, a first processing unit, a device and a storage medium to improve the efficiency of fault detection. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present invention provides a fault detection method, which is applied to a first processing unit in a base station; the first processing unit includes: an FPGA and a photoelectric conversion module, the photoelectric conversion module includes: a first photoelectric converter, a second photoelectric converter, a first electro-optical converter and a second electro-optical converter, and the second photoelectric converter is connected to the second electro-optical converter; the method includes:
[0006] receiving a fault detection instruction;
[0007] If the fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the first inner loop detection is located in the first processing unit and passes through the photoelectric conversion module;
[0008] If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the external loopback detection passes through the first processing unit and the second processing unit in the base station;
[0009] Control the FPGA to send a first data packet, and receive a second data packet after the first data packet flows through a loopback path;
[0010] The first data packet is compared with the second data packet, and a fault occurring on the loopback path is detected according to the comparison result.
[0011] In one embodiment of the present invention, the method further comprises:
[0012] If the fault detection instruction indicates to perform a second internal loopback detection, the first data packet is directly sent, and a second data packet is received after the first data packet flows through the loopback path of the second internal loopback detection, and the loopback path of the second internal loopback detection is located within the FPGA.
[0013] In one embodiment of the present invention, the FPGA includes sending PCS, receiving PCS, sending PMA, and receiving PMA, and the loopback path of the second inner loopback detection is: a path for transmitting data packets in the order of sending PCS, sending PMA, receiving PMA, and receiving PCS.
[0014] In one embodiment of the present invention, before controlling the FPGA to send the first data packet, the method further includes:
[0015] Start the timer;
[0016] The controlling the FPGA to send a first data packet includes:
[0017] When the timing duration does not reach the preset duration, controlling the FPGA to send the first data packet according to the preset time interval;
[0018] The method further comprises:
[0019] After the timing duration reaches the preset duration, the timing ends.
[0020] In one embodiment of the present invention, the preset duration is: a duration determined according to the time interval and a preset number of times the first data packet is sent.
[0021] In one embodiment of the present invention, the first processing unit is an AAU.
[0022] The receiving fault detection instruction comprises:
[0023] Receive the fault detection command sent by the BBU.
[0024] In a second aspect, an embodiment of the present invention provides a first processing unit, the first processing unit is located in a base station, the first processing unit further includes: an FPGA and a photoelectric conversion module, the photoelectric conversion module includes: a first photoelectric converter, a second photoelectric converter, a first electro-optical converter and a second electro-optical converter, the second photoelectric converter is connected to the second electro-optical converter;
[0025] The first processing unit performs the following operations:
[0026] receiving a fault detection instruction;
[0027] If the fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the first inner loop detection is located in the first processing unit and passes through the photoelectric conversion module;
[0028] If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the external loopback detection passes through the first processing unit and the second processing unit in the base station;
[0029] Control the FPGA to send a first data packet, and receive a second data packet after the first data packet flows through a loopback path;
[0030] The first data packet is compared with the second data packet, and a fault occurring on the loopback path is detected according to the comparison result.
[0031] In one embodiment of the present invention, the first processing unit is further configured to:
[0032] If the fault detection instruction indicates to perform a second internal loopback detection, the first data packet is directly sent, and a second data packet is received after the first data packet flows through the loopback path of the second internal loopback detection, and the loopback path of the second internal loopback detection is located in the FPGA.
[0033] In one embodiment of the present invention, the FPGA includes sending PCS, receiving PCS, sending PMA, and receiving PMA, and the loopback path of the second inner loopback detection is: a path for transmitting data packets in the order of sending PCS, sending PMA, receiving PMA, and receiving PCS.
[0034] In one embodiment of the present invention, before controlling the FPGA to send the first data packet, the method is further configured to:
[0035] Start the timer;
[0036] The controlling the FPGA to send a first data packet includes:
[0037] When the timing duration does not reach the preset duration, controlling the FPGA to send the first data packet according to the preset time interval;
[0038] The first processing unit is further configured to:
[0039] After the timing duration reaches the preset duration, the timing ends.
[0040] In one embodiment of the present invention, the preset duration is: a duration determined according to the time interval and a preset number of times the first data packet is sent.
[0041] In one embodiment of the present invention, the first processing unit is an AAU.
[0042] The receiving fault detection instruction comprises:
[0043] Receive the fault detection command sent by the BBU.
[0044] In a third aspect, an embodiment of the present invention provides a fault detection device, including a memory, a transceiver, and a processor:
[0045] A memory for storing a computer program; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer program in the memory and executing any method step described in the first aspect.
[0046] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0047] In a fifth aspect, an embodiment of the present invention further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the method steps described in the first aspect.
[0048] Beneficial effects of the embodiments of the present invention:
[0049] An embodiment of the present invention provides a fault detection method. When a first processing unit receives a fault detection instruction, if the fault detection instruction indicates to perform a first internal loopback detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA. If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA. The FPGA is controlled to send a first data packet, and a second data packet is received after the first data packet is transmitted along the loopback path. The first data packet is compared with the second data packet, and the fault occurring on the loopback path is detected according to the comparison result.
[0050] As can be seen from the above, in the solution provided by the embodiment of the present invention, if the above fault detection instruction indicates to perform the first internal loopback detection, it is necessary to perform fault detection inside the first processing unit, so the second photoelectric converter is maintained to be connected to the input end, and the second electro-optical converter is maintained to be connected to the output end. Since the second photoelectric converter is connected to the second electro-optical converter, the FPGA, the second photoelectric converter and the second electro-optical converter form a loop, and the first data packet sent by the FPGA is transmitted inside the first processing unit. If the fault detection instruction indicates to perform an external loopback detection, it is necessary to perform fault detection on the first processing unit and the second processing unit, so the first photoelectric converter is maintained to be connected to the input end, and the first electro-optical converter is maintained to be connected to the output end, so that the first data packet sent by the FPGA can flow through the first electro-optical converter to be sent to the second processing unit, and the first data packet after the loopback transmission can also be sent to the FPGA through the first photoelectric converter.
[0051] In addition, by comparing the first data packet with the second data packet, it can be determined whether a bit error occurs in the data packet during transmission. If a bit error does not occur, it means that there is no fault on the loopback path. Otherwise, it means that there is a fault on the loopback path, so that a fault detection result can be obtained. Therefore, the solution provided by the embodiment of the present invention can complete fault detection without relying on manual work, thereby improving the efficiency of fault detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and a person skilled in the art can also obtain other drawings based on these drawings.
[0053] Figure 1 A schematic diagram of a flow chart of a first fault detection method provided by an embodiment of the present invention;
[0054] Figure 2A schematic diagram of the structure of a photoelectric conversion module provided by an embodiment of the present invention;
[0055] Figure 3 A schematic diagram of a first loopback path provided by an embodiment of the present invention;
[0056] Figure 4 A schematic diagram of a second loopback path provided by an embodiment of the present invention;
[0057] Figure 5A A schematic diagram of the structure of an FPGA provided by an embodiment of the present invention;
[0058] Figure 5B A schematic diagram of a second inner loop path of a BBU provided in an embodiment of the present invention;
[0059] Figure 5C A schematic diagram of a second inner loop path of an AAU provided in an embodiment of the present invention;
[0060] Figure 5D A schematic diagram of a loopback path for a BBU to perform a first inner loopback detection provided by an embodiment of the present invention;
[0061] Figure 5E A schematic diagram of a loopback path for an AAU to perform a first inner loopback detection provided by an embodiment of the present invention;
[0062] Fig. 6A A schematic diagram of the structure of a first processing unit and a second processing unit provided in an embodiment of the present invention;
[0063] Figure 6B A schematic diagram of a loopback path of a BBU provided in an embodiment of the present invention;
[0064] Figure 7 A schematic diagram of a flow chart of a second fault detection method provided by an embodiment of the present invention;
[0065] Figure 8 A schematic structural diagram of a fault detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0066] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0067] In the embodiments of the present invention, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention belong to the scope of protection of the present invention.
[0069] Since the prior art is inefficient in detecting faults that cause bit errors in a base station, in order to solve this problem, an embodiment of the present invention provides a fault detection method, a first processing unit, a device, and a storage medium.
[0070] In one embodiment of the present invention, a fault detection method is provided, which is applied to a first processing unit in a base station, wherein the first processing unit comprises: an FPGA (Field Programmable Gate Array) and a photoelectric conversion module, wherein the photoelectric conversion module comprises: a first photoelectric converter, a second photoelectric converter, a first electro-optical converter, and a second electro-optical converter, wherein the second photoelectric converter is connected to the second electro-optical converter;
[0071] The above methods include:
[0072] receiving a fault detection instruction;
[0073] If the fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the first inner loop detection is located in the first processing unit and passes through the photoelectric conversion module;
[0074] If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the external loopback detection passes through the first processing unit and the second processing unit in the base station;
[0075] Control the FPGA to send a first data packet, and receive a second data packet after the first data packet flows through a loopback path;
[0076] The first data packet is compared with the second data packet, and a fault occurring on the loopback path is detected according to the comparison result.
[0077] As can be seen from the above, in the solution provided by the embodiment of the present invention, if the above fault detection instruction indicates to perform the first internal loopback detection, it is necessary to perform fault detection inside the first processing unit, so the second photoelectric converter is maintained to be connected to the input end, and the second electro-optical converter is maintained to be connected to the output end. Since the second photoelectric converter is connected to the second electro-optical converter, the FPGA, the second photoelectric converter and the second electro-optical converter form a loop, and the first data packet sent by the FPGA is transmitted inside the first processing unit. If the fault detection instruction indicates to perform an external loopback detection, it is necessary to perform fault detection on the first processing unit and the second processing unit, so the first photoelectric converter is maintained to be connected to the input end, and the first electro-optical converter is maintained to be connected to the output end, so that the first data packet sent by the FPGA can flow through the first electro-optical converter to be sent to the second processing unit, and the first data packet after the loopback transmission can also be sent to the FPGA through the first photoelectric converter.
[0078] In addition, by comparing the first data packet with the second data packet, it can be determined whether a bit error occurs in the data packet during transmission. If a bit error does not occur, it means that there is no fault on the loopback path. Otherwise, it means that there is a fault on the loopback path, so that a fault detection result can be obtained. Therefore, the solution provided by the embodiment of the present invention can complete fault detection without relying on manual work, thereby improving the efficiency of fault detection.
[0079] The technical solution provided by the embodiment of the present invention can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new radio (NR) system, etc. These various systems include terminals and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0080] The terminal involved in the embodiment of the present invention may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal may also be different. For example, in a 5G system, the terminal may be called a user equipment (UE). A wireless terminal can communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal may be a mobile terminal, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a radio access network. For example, personal communication service phones, cordless phones, Session Initiated Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs) and other devices. A wireless terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal, an access terminal, a user terminal, a user agent, and a user device, but is not limited thereto in the embodiments of the present application.
[0081] In addition, in an embodiment of the present invention, the base station and the terminal may each use one or more antennas for multiple input multiple output (MIMO) transmission, and the MIMO transmission may be single user MIMO (SU-MIMO) or multi-user MIMO (MU-MIMO). Depending on the form and number of antenna combinations, MIMO transmission may be 2D-MIMO, 3D-MIMO, FD-MIMO (Full Dimension Multi-Input-Multi-Output) or massive-MIMO, or it may be diversity transmission, precoded transmission, or beamforming transmission, etc.
[0082] See also Figure 1 , which is a flow chart of the first fault detection method provided in an embodiment of the present invention.
[0083] Among them, the above-mentioned fault detection method is applied to the first processing unit in the base station. The above-mentioned first processing unit can be an AAU (Active Antenna Unit) or a BBU (Base Band Unite) contained in the base station. In the base station, the above-mentioned AAU and BBU can be connected to each other through a communication link, and in order to improve the efficiency of the base station, the above-mentioned communication link is often an optical fiber.
[0084] In addition, the first processing unit includes: FPGA and photoelectric conversion module, the photoelectric conversion module includes: a first photoelectric converter, a second photoelectric converter, a first electro-optical converter and a second electro-optical converter, and the second photoelectric converter is connected to the second electro-optical converter.
[0085] Specifically, the signal processed in the above FPGA is an electrical signal, the signal transmitted in the optical fiber is an optical signal, the electro-optical converter is used to convert the differential electrical signal into an optical signal, and the optoelectronic converter is used to convert the optical signal into a differential electrical signal.
[0086] See also Figure 2 , is a schematic diagram of the structure of a photoelectric conversion module provided by an embodiment of the present invention. It can be seen from the figure that the photoelectric conversion module includes a first photoelectric converter, a second photoelectric converter, a first electro-optic converter and a second electro-optic converter, and the second photoelectric converter is connected to the second electro-optic converter. In addition, the channel selector can control the output end of the FPGA to be connected to the first electro-optic converter or the second electro-optic converter, and the channel selector can also control the input end of the FPGA to be connected to the first photoelectric converter or the second photoelectric converter.
[0087] Specifically, the above fault detection method includes the following steps S101-S105.
[0088] S101: receiving a fault detection instruction.
[0089] Specifically, if the first processing unit is a BBU, the fault detection instruction may be Ethernet information received by the FPGA via Ethernet, and the Ethernet information may be sent by a control device other than the base station via Ethernet.
[0090] If the first processing unit is an AAU, the fault detection instruction may be sent by the BBU to the AAU via a communication link, and the step S101 may be implemented by following step A.
[0091] Step A: Receive a fault detection instruction sent by the BBU.
[0092] In addition, the fault detection instruction may include a loopback detection identifier, which may indicate the type of loopback detection that the first processing unit needs to perform, and different loopback detection identifiers correspond to different types of loopback detection.
[0093] The loopback detection identifier may be expressed in the form of a loopback register value. For example, if the loopback register value is 1, it indicates that the first processing unit needs to perform a first inner loopback detection. If the loopback register value is 2, it indicates that the first processing unit needs to perform an outer loopback detection. In addition, the loopback detection identifier may also be expressed in other forms such as characters.
[0094] S102: If the fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA.
[0095] Wherein, the loopback path of the first inner loopback detection is located in the first processing unit and passes through the photoelectric conversion module.
[0096] Specifically, the loopback detection identifier contained in the fault detection instruction can be searched. If the loopback detection identifier corresponds to the first internal loopback detection, it indicates that the fault detection instruction instructs to perform the first internal loopback detection. In addition, the loopback path is a loopback path starting with the FPGA and ending with the FPGA.
[0097] Since the loopback path of the first internal loopback detection needs to pass through the optoelectronic conversion module and is located in the first processing unit, the data packet will not be sent outside the first processing unit while flowing through the loopback path, so it is necessary to maintain the connection between the second optoelectronic converter and the input end of the FPGA, and maintain the connection between the second electro-optic converter and the output end of the FPGA. Since the second optoelectronic converter and the second electro-optic converter are connected, in the above case, a loopback path can be formed between the FPGA, the second optoelectronic converter, and the second electro-optic converter.
[0098] In one embodiment of the present invention, the structure of the above-mentioned photoelectric conversion module is Figure 2 In the case of the structure shown, the channel selector can be controlled to be connected to the second photoelectric converter and the second electro-optical converter respectively, so as to maintain the connection between the second photoelectric converter and the input end of the FPGA, and maintain the connection between the second electro-optical converter and the output end of the FPGA, so that a loop path is formed between the above-mentioned FPGA, the second electro-optical converter and the second photoelectric converter.
[0099] Specifically, a high level may be sent to the channel selector to control the channel selector to be connected to the second photoelectric converter and the second electro-optical converter respectively.
[0100] In one embodiment of the present invention, in hardware, the second photoelectric converter can be always connected to the input end of the FPGA, and the second electro-optical converter can be always connected to the output end of the FPGA. When the fault detection instruction indicates to perform the first inner loopback detection, the link between the second photoelectric converter and the input end can be enabled, and the link between the second electro-optical converter and the output end can be enabled, so that a loopback path is formed between the FPGA, the second electro-optical converter and the second photoelectric converter.
[0101] See also Figure 3 , is a schematic diagram of the first loopback path provided in an embodiment of the present invention. The dotted arrow in the figure represents the loopback path of the first internal loopback detection. It can be seen from the figure that the loopback path passes through the FPGA, the second electro-optical converter, the second photoelectric converter, and the FPGA in sequence. The first data packet sent by the FPGA flows through the loopback path and then returns to the FPGA.
[0102] S103: If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA.
[0103] The loopback path of the outer loopback detection passes through the first processing unit and the second processing unit in the base station. If the first processing unit is a BBU, the second processing unit may be an AAU, and if the first processing unit is an AAU, the second processing unit may be a BBU.
[0104] Specifically, the loopback detection identifier included in the fault detection instruction may be searched. If the loopback detection identifier corresponds to an external loopback detection, it indicates that the fault detection instruction instructs to perform an external loopback detection.
[0105] Since the loopback path of the external loopback detection passes through the first processing unit and the second processing unit, the data packets flowing through the loopback path will be sent outside the first processing unit, so it is necessary to maintain the connection between the first photoelectric converter and the input end, and maintain the connection between the first electro-optical converter and the output end. The first photoelectric converter is connected to the communication link, and the first electro-optical converter is also connected to the communication link. Therefore, in the above case, a loopback path can be formed between the FPGA, the first electro-optical converter, the communication link, the second processing unit, and the first photoelectric converter.
[0106] In one embodiment of the present invention, the structure of the above-mentioned photoelectric conversion module is Figure 2 In the case of the structure shown, the channel selector can be controlled to be connected to the first photoelectric converter and the first electro-optical converter respectively, so as to maintain the connection between the first photoelectric converter and the input end of the FPGA, and maintain the connection between the first electro-optical converter and the output end of the FPGA, so that a loop path is formed between the above-mentioned FPGA, the first electro-optical converter, the communication link, the second processing unit, and the first photoelectric converter.
[0107] Specifically, a low level may be sent to the communication selector to control the channel selector to be connected to the first photoelectric converter and the first electro-optical converter respectively.
[0108] In one embodiment of the present invention, in terms of hardware, the first photoelectric converter may always be connected to the input end of the FPGA, and the first electro-optical converter may always be connected to the output end of the FPGA. When the fault detection instruction indicates to perform an external loopback detection, a link between the first photoelectric converter and the input end of the FPGA may be enabled, and a link between the first electro-optical converter and the output end of the FPGA may be enabled, so that a loopback path is formed between the FPGA, the first electro-optical converter, the communication link, the second processing unit, and the first photoelectric converter.
[0109] See also Figure 4 , which is a schematic diagram of the second loopback path provided in an embodiment of the present invention. The dotted arrow in the figure represents the loopback path of the above-mentioned external loopback detection. It can be seen from the figure that the above-mentioned loopback path passes through the FPGA, the first electro-optical converter, the communication link, the second processing unit, the communication link, the first photoelectric converter, and the FPGA in sequence. Then, the first data packet sent by the FPGA can return to the above-mentioned FPGA after flowing through the above-mentioned loopback path.
[0110] S104: Control the FPGA to send a first data packet, and receive a second data packet after the first data packet flows through the loopback path.
[0111] Specifically, if the above-mentioned loopback path is the loopback path of the first internal loopback detection, since the second photoelectric converter has been connected to the input end of the FPGA and the second electro-optical converter has been connected to the output end of the FPGA before sending the first data packet, the first data packet sent will naturally be transmitted along the loopback path.
[0112] If the above-mentioned loopback path is a loopback path for external loopback detection, since the loopback path involves the second processing unit, that is, the first data packet needs to flow through the second processing unit, before sending the first data packet, the above-mentioned FPGA can send a control instruction to the second processing unit, so that the above-mentioned second processing unit can resend the first data packet to the FPGA through the communication link after receiving the first data packet sent by the FPGA.
[0113] Specifically, the second processing unit may also include an FPGA and an optoelectronic conversion module. The optoelectronic conversion module included in the second processing unit is connected to the communication link. The optoelectronic conversion module may have the same structure as the optoelectronic conversion module included in the first processing unit, or may be different. After receiving the first data packet, the second processing unit may send the first data packet to the FPGA in the second processing unit through the optoelectronic conversion module in the second processing unit, complete the loopback transmission inside the FPGA, resend the first data packet to the optoelectronic conversion module in the second processing unit, and then transmit it to the first processing unit through the communication link.
[0114] In addition, during the external loop detection, before sending the first data packet, optical port synchronization may be performed with the second processing unit to ensure normal sending of the data packet in the communication link.
[0115] In one embodiment of the present invention, the first data packet can be sent through the sending protocol side module in the FPGA, and the second data packet can be received through the receiving protocol side module in the FPGA. Both the sending protocol side module and the receiving protocol side module are modules of the software layer.
[0116] S105: Compare the first data packet with the second data packet, and detect a fault occurring on the loopback path according to the comparison result.
[0117] Specifically, if there is a fault on the loopback path, the first data packet may have bit errors while flowing through the loopback path, that is, the first data packet changes while flowing through the loopback path, resulting in the received second data packet being different from the first data packet.
[0118] Therefore, by comparing the first data packet and the second data packet, it can be determined whether the first data packet and the second data packet are the same. If they are different, it can be considered that a fault has occurred on the loopback path. Otherwise, it can be considered that no fault has occurred on the loopback path.
[0119] In addition, the FPGA can send multiple first data packets, and can compare the first data packets with the second data packets corresponding to the first data packets, and record the number of times the first data packets are different from the corresponding second data packets as the bit error value. If the bit error value is greater than the preset bit error value, it is determined that a fault occurs on the loopback path, otherwise it is determined that no fault occurs on the loopback path.
[0120] Specifically, the bit error value may be a fixed value, or a value determined according to the number of first data packets sent. For example, the preset bit error value may be 30%, 50%, etc. of the number of first data packets sent.
[0121] In one embodiment of the present invention, when the fault detection instruction instructs to perform a first inner loopback detection, if it is determined that a fault has occurred on the loopback path, it indicates that a fault exists in the FPGA and the optoelectronic conversion module.
[0122] In addition, when the fault detection instruction instructs to perform the first inner loopback detection, if it is determined that no fault occurs on the above loopback path, it means that there is no fault in the above FPGA and the optoelectronic conversion module.
[0123] In another embodiment of the present invention, when the fault detection instruction indicates to perform an external loopback detection, if it is determined that a fault has occurred on the above-mentioned loopback path, it means that a fault exists in the above-mentioned FPGA, optoelectronic conversion module, communication link, and second processing unit.
[0124] In addition, when the fault detection instruction instructs to perform an external loopback detection, if it is determined that no fault occurs on the above loopback path, it means that there is no fault in the above FPGA, optoelectronic conversion module, communication link, and second processing unit.
[0125] The fault on the loopback path may be caused by a hardware fault or a software fault. For example, the software fault may be caused by a fault in the sending protocol side module or the receiving protocol side module.
[0126] As can be seen from the above, in the solution provided by the embodiment of the present invention, if the above fault detection instruction indicates to perform the first internal loopback detection, it is necessary to perform fault detection inside the first processing unit, so the second photoelectric converter is maintained to be connected to the input end, and the second electro-optical converter is maintained to be connected to the output end. Since the second photoelectric converter is connected to the second electro-optical converter, the FPGA, the second photoelectric converter and the second electro-optical converter form a loop, and the first data packet sent by the FPGA is transmitted inside the first processing unit. If the fault detection instruction indicates to perform an external loopback detection, it is necessary to perform fault detection on the first processing unit and the second processing unit, so the first photoelectric converter is maintained to be connected to the input end, and the first electro-optical converter is maintained to be connected to the output end, so that the first data packet sent by the FPGA can flow through the first electro-optical converter to be sent to the second processing unit, and the first data packet after the loopback transmission can also be sent to the FPGA through the first photoelectric converter.
[0127] In addition, by comparing the first data packet with the second data packet, it can be determined whether a bit error occurs in the data packet during transmission. If a bit error does not occur, it means that there is no fault on the loopback path. Otherwise, it means that there is a fault on the loopback path, so that a fault detection result can be obtained. Therefore, the solution provided by the embodiment of the present invention can complete fault detection without relying on manual work, thereby improving the efficiency of fault detection.
[0128] If the above-mentioned first processing unit is a BBU and the second processing unit is an AAU, then in one embodiment of the present invention, if the above-mentioned fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter of the BBU is maintained connected to the FPGA input end of the BBU, and the second electro-optical converter of the BBU is maintained connected to the FPGA output end of the BBU, and the BBU controls the FPGA to send a first data packet. After the first data packet is transmitted in the order of the BBU's FPGA, the second electro-optical converter, the second photoelectric converter, and the FPGA, the BBU's FPGA obtains the second data packet.
[0129] In another embodiment of the present invention, when the above-mentioned first processing unit is a BBU and the second processing unit is an AAU, if the above-mentioned fault detection instruction indicates to perform an external loopback detection, the first optoelectronic converter of the BBU is maintained connected to the FPGA input end of the BBU, and the first electro-optical converter of the BBU is maintained connected to the FPGA output end of the BBU, and the BBU controls the FPGA to send a first data packet. After the first data packet is transmitted along the FPGA of the BBU, the first electro-optical converter of the BBU, the communication link between the BBU and the AAU, the AAU, the communication link between the AAU and the BBU, the first optoelectronic converter of the BBU, and the FPGA of the BBU in this order, the FPGA of the BBU obtains the second data packet.
[0130] If the above-mentioned first processing unit is an AAU and the second processing unit is a BBU, then in one embodiment of the present invention, if the above-mentioned fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter of the AAU is maintained connected to the FPGA input end of the AAU, and the second electro-optical converter of the AAU is maintained connected to the FPGA output end of the AAU, and the AAU controls the FPGA to send a first data packet. After the first data packet is transmitted in the order of the AAU's FPGA, the second electro-optical converter, the second photoelectric converter, and the FPGA, the FPGA of the AAU obtains the second data packet.
[0131] In another embodiment of the present invention, if the above-mentioned fault detection instruction indicates to perform an external loop back detection, the first photoelectric converter of the AAU is maintained connected to the FPGA input terminal of the AAU, and the first electro-optical converter of the AAU is maintained connected to the FPGA output terminal of the AAU, and the AAU controls the FPGA to send a first data packet. After the first data packet is transmitted along the FPGA of the AAU, the first electro-optical converter of the AAU, the communication link between the AAU and the BBU, the BBU, the communication link between the BBU and the AAU, the first photoelectric converter of the AAU, and the FPGA of the AAU in this order, the FPGA of the AAU obtains the second data packet.
[0132] In another embodiment of the present invention, the above-mentioned fault detection method can be executed multiple times in sequence. Specifically, a first inner loop detection can be performed first. If it is determined after detection that there is no fault on the loopback path of the first inner loop path, it means that there is no fault in the above-mentioned FPGA and the optoelectronic conversion module. Then an outer loop detection is performed. If it is determined after detection that there is a fault on the loopback path of the outer loop detection, it means that there is a fault in the above-mentioned communication link and the second processing unit, so that the fault location can be further accurately performed.
[0133] In addition, the first processing unit and the second processing unit can respectively perform fault detection according to the above fault detection method. If the first processing unit performs the first internal loop detection, if it is determined that there is no fault on the loopback path of the first internal loop detection within itself, an external loop detection can be performed. If it is determined that there is a fault on the loopback path of the external loop detection passing through the first processing unit and the second processing unit, it means that there is a fault in the communication link or the second processing unit. The second processing unit can also perform the first internal loop detection. If it is determined that there is no fault on the loopback path of the first internal loop detection within itself, it can be determined that there is a fault in the communication link. The fault location can be further accurately performed.
[0134] Furthermore, in one embodiment of the present invention, if the fault detection instruction indicates to perform a second internal loop detection, the step S104 can be directly executed to send a first data packet and receive a second data packet after the first data packet flows through the loop path of the second internal loop detection.
[0135] The loopback path of the second inner loopback detection is located in the FPGA of the first processing unit. Therefore, the first data packet will not be sent outside the FPGA during the transmission in the loopback path of the second inner loopback detection. The loopback path of the second inner loopback detection does not include an optoelectronic conversion module. Therefore, no matter whether the output end of the FPGA is connected to the first electro-optical converter or the second electro-optical converter, and no matter whether the input end of the FPGA is connected to the first optoelectronic converter or the first electro-optical converter, the loopback path of the second inner loopback detection will not be affected. Therefore, steps S102 and S103 may not be executed, and step S104 may be directly executed.
[0136] Specifically, the FPGA includes a sending protocol side module and a receiving protocol side module of the software layer, and a sending PCS (Physical Coding Sublayer), a receiving PCS, a sending PMA (Physical Medium Attachment Sublayer), and a receiving PMA of the hardware layer. The sending PCS, the receiving PCS, the sending PMA, and the receiving PMA together constitute the transceiver IP core.
[0137] See also Figure 5A , is a schematic diagram of the structure of an FPGA provided in an embodiment of the present invention.
[0138] The arrow between the sending protocol side module and the sending PCS indicates that the data packet can be transmitted from the sending protocol side module of the software layer to the sending PCS of the hardware layer, and the arrow between the receiving PCS and the receiving protocol side module indicates that the data packet can be transmitted from the receiving PCS of the hardware layer to the receiving protocol side module of the software layer. In addition, the sending PCS is connected to the sending PMA, the sending PMA is connected to the receiving PMA, the receiving PMA is connected to the receiving PCS, and the receiving PCS is connected to the sending PCS.
[0139] Depend on Figure 5A It can be seen that in the process of performing the second internal loopback detection, there are two feasible loopback paths, namely, a path for transmitting the first data packet in the order of sending protocol side module, sending PCS, receiving PCS, and receiving protocol side module, which path can be called a PCS loopback path, and a path for transmitting the first data packet in the order of sending protocol side module, sending PCS, sending PMA, receiving PMA, receiving PCS, and receiving protocol side module, which path can be called a PMA loopback path.
[0140] See also Figure 5B , is a schematic diagram of a second inner loop path of a BBU provided in an embodiment of the present invention.
[0141] The structure of the BBU shown in the figure is similar to that of the Figure 5A The embodiments shown are similar, the only difference is that the sending protocol side module is a BBU sending module, and the receiving protocol side module is a BBU receiving module. The dotted arrows in the figure respectively represent the second inner loop path of the BBU. Among them, the dotted arrows passing through the BBU sending module, sending PCS, receiving PCS, and BBU receiving module in sequence represent the PCS loopback path of the BBU. The dotted arrows passing through the BBU sending module, sending PCS, sending PMA, receiving PMA, receiving PCS, and BBU receiving module in sequence represent the PMA loopback path of the BBU.
[0142] See also Figure 5C , is a schematic diagram of a second inner loop path of an AAU provided in an embodiment of the present invention.
[0143] The structure of the AAU shown in the figure is similar to the above Figure 5AThe embodiments shown are similar, the only difference is that the sending protocol side module is the AAU sending module, and the receiving protocol side module is the AAU receiving module. The dotted arrows in the figure respectively represent the second inner loop path of the AAU. Among them, the dotted arrows passing through the AAU sending module, sending PCS, receiving PCS, and AAU receiving module in sequence represent the PCS loopback path of the AAU. The dotted arrows passing through the AAU sending module, sending PCS, sending PMA, receiving PMA, receiving PCS, and AAU receiving module in sequence represent the PMA loopback path of the AAU.
[0144] It can be seen that compared with the PCS loopback path, the PMA loopback path also includes the transmit PMA and the receive PMA. Therefore, if the first data packet flows through the PMA loopback path when the second inner loopback detection is performed, the transmit PCS, transmit PMA, receive PMA and receive PCS included in the transceiver IP core can be detected as a whole through the second inner loopback detection, and the efficiency of fault detection is higher.
[0145] Of course, the PCS loopback path can be used to perform a second inner loopback detection first to determine whether there is a fault on the PCS loopback path, and then the PMA loopback path can be used to perform a second inner loopback detection. If it is determined that there is no fault on the above-mentioned PCS loopback path, but there is a fault on the PMA loopback path, it can be determined that the fault is caused by sending PMA or receiving PMA.
[0146] See also Figure 5D , is a schematic diagram of a loopback path for a BBU to perform a first internal loopback detection provided in an embodiment of the present invention.
[0147] Among them, Figure 5B Compared with the structure of the BBU shown in Figure 5D The BBU shown also includes a photoelectric conversion module, which is connected to the transmitting PMA and the receiving PMA respectively, and can convert the electrical signal sent by the transmitting PMA into an optical signal, and can convert the optical signal into an electrical signal and send it to the receiving PMA.
[0148] In the figure, the dotted arrows that sequentially pass through the BBU sending module, sending PCS, sending PMA, optoelectronic conversion module, receiving PMA, receiving PCS, and BBU receiving module represent the loopback path of the first inner loopback detection of the BBU.
[0149] See also Figure 5E , is a schematic diagram of a loopback path for an AAU to perform a first internal loopback detection according to an embodiment of the present invention.
[0150] Among them, Figure 5C Compared with the structure of the AAU shown, Figure 5EThe AAU shown also includes a photoelectric conversion module, which is connected to the transmitting PMA and the receiving PMA respectively, and can convert the electrical signal sent by the transmitting PMA into an optical signal, and can convert the optical signal into an electrical signal and send it to the receiving PMA.
[0151] In the figure, the dotted arrows that pass through the AAU sending module, sending PCS, sending PMA, optoelectronic conversion module, receiving PMA, receiving PCS, and AAU receiving module in sequence represent the loopback path of the first inner loop detection of the AAU.
[0152] In addition, the structure of the FPGA in the second processing unit can also be the same as the above Figure 5A The structure shown is the same as Fig. 6A , is a structural schematic diagram of a first processing unit and a second processing unit provided in an embodiment of the present invention.
[0153] in, Fig. 6A The first processing unit and the second processing unit have the same structure, both of which include FPGA and photoelectric conversion module, and the structure of the FPGA included is the same. Fig. 6A This is only an example of the structure of the first processing unit and the second processing unit. The structures of the first processing unit and the second processing unit may also be different. The second processing unit may not include an FPGA, or the structure of the FPGA included in the second processing unit may be different from the structure of the FPGA included in the first processing unit.
[0154] Fig. 6A The FPGAs of the first processing unit and the second processing unit shown in the figure both include a sending protocol side module, a receiving protocol side module and a transceiver IP core, and the transceiver IP core includes a sending PCS, a receiving PCS, a sending PMA, and a receiving PMA. The structure of the above FPGA is the same as that of the above Figure 5A same.
[0155] As can be seen in the figure, when the first processing unit performs external loopback detection, the loopback path of the external loopback detection passes through the second processing unit. After the second processing unit receives the first data packet, it can transmit the first data packet in the FPGA of the second processing unit in the order of receiving PMA and sending PMA. The path for transmitting the first data packet in the second processing unit in the above order can be called the external PMA loopback path. The first data packet can also be transmitted in the FPGA of the second processing unit in the order of receiving PMA, receiving PCS, sending PCS, and sending PMA. The path for the first data packet in the second processing unit in the above order can be called the external PCS transmission path.
[0156] See also Figure 6B, which is a schematic diagram of a loopback path of a BBU provided in an embodiment of the present invention.
[0157] Wherein, the first processing unit is a BBU, and the second processing unit is an AAU. Figure 6B The structures of the BBU and AAU shown are similar to those described above. Fig. 6A The structures shown are the same, the only difference is Fig. 6A The sending protocol side module in the first processing unit shown in FIG. Figure 6B The middle one is the BBU sending module. Fig. 6A The receiving protocol side module in the first processing unit shown in FIG. Figure 6B The middle one is the BBU receiving module. Fig. 6A The sending protocol side module in the second processing unit shown in FIG. Figure 6B The middle is the AAU sending module, Fig. 6A The receiving protocol side module in the second processing unit shown in FIG. Figure 6B The middle one is the AAU receiving module.
[0158] Specifically, the dotted arrows through the BBU sending module, the BBU sending PCS, the BBU receiving PCS, and the BBU receiving module represent the PCS loopback path of the BBU.
[0159] The dotted arrows sequentially passing through the BBU transmitting module, the BBU transmitting PCS, the BBU transmitting PMA, the BBU receiving PMA, the BBU receiving PCS, and the BBU receiving module represent the PMA loopback path of the BBU.
[0160] The dotted arrows which sequentially pass through the BBU sending module, the BBU sending PCS, the BBU sending PMA, the BBU optoelectronic conversion module, the BBU receiving PMA, the BBU receiving PCS, and the BBU receiving module represent the first inner loop path of the BBU.
[0161] The dotted arrow indicates the external PMA loopback path of the BBU, which passes through the BBU transmitting module, the BBU transmitting PCS, the BBU transmitting PMA, the BBU optoelectronic conversion module, the communication link, the AAU optoelectronic conversion module, the AAU receiving PMA, the AAU transmitting PMA, the AAU optoelectronic conversion module, the communication link, the BBU optoelectronic conversion module, the BBU receiving PMA, the BBU receiving PCS, and the BBU receiving module in sequence.
[0162] The dotted arrow indicates the external PCS loopback path of the BBU, which passes through the BBU transmitting module, the BBU transmitting PCS, the BBU transmitting PMA, the BBU optoelectronic conversion module, the communication link, the AAU optoelectronic conversion module, the AAU receiving PMA, the AAU receiving PCS, the AAU transmitting PCS, the AAU transmitting PMA, the AAU optoelectronic conversion module, the communication link, the BBU optoelectronic conversion module, the BBU receiving PMA, the BBU receiving PCS, and the BBU receiving module.
[0163] See also Figure 7 , is a flow chart of a second fault detection method provided by an embodiment of the present invention, which is similar to the above Figure 1 Compared with the embodiment shown in the figure, step S106 is further included before the above step S104.
[0164] S106: Start timing.
[0165] Specifically, the timing may be started by starting a timer.
[0166] With the aforementioned Figure 1 Compared with the embodiment shown, the above step S104 can be implemented by the following step S104A.
[0167] S104A: When the timing duration does not reach the preset duration, control the FPGA to send the first data packet at a preset time interval, and receive a second data packet after the first data packet flows through the loopback path.
[0168] Among them, when the timing duration does not reach the preset duration, the above-mentioned FPGA will continue to send the first data packet. After the timing duration reaches the preset duration, the above-mentioned FPGA will end sending the first data packet. Therefore, the duration for the FPGA to send the first data packet is the above-mentioned preset duration.
[0169] In addition, the above-mentioned preset duration is: a duration determined according to the above-mentioned time interval and a preset number of times the first data packet is sent.
[0170] Specifically, the preset time length may be the product of the time interval and the number of times the first data packet is sent, and the FPGA may send the first data packet the preset number of times of sending the first data packet within the preset time length.
[0171] After the above step S104A, the above method further includes the following step S107.
[0172] S107: After the timing duration reaches the preset duration, the timing is terminated.
[0173] As can be seen from the above, it is difficult for the first processing unit to perform other signal processing tasks during the loopback detection process. The timing can be used to control the first processing unit to stop controlling the FPGA to send the first data packet after a preset time period, end the loopback detection, and allow the first processing unit to resume normal signal processing. In particular, if the first processing unit is an AAU, it is difficult for the AAU to accept instructions sent by other devices during the loopback detection process. Therefore, if the above preset time period is not set, after the AAU starts the loopback detection, it is difficult to control the AAU to end the loopback detection process by sending instructions to the AAU. The continuous loopback detection of the AAU will affect the normal signal processing of the AAU. By setting the above preset time period, the AAU will stop the loopback detection after performing the loopback detection for the preset time period and resume the normal signal processing process.
[0174] Corresponding to the aforementioned fault detection method applied to the first processing unit, an embodiment of the present invention further provides a first processing unit.
[0175] The first processing unit is located in the base station, and the first processing unit includes: an FPGA and a photoelectric conversion module, the photoelectric conversion module includes: a first photoelectric converter, a second photoelectric converter, a first electro-optical converter and a second electro-optical converter, and the second photoelectric converter is connected to the second electro-optical converter;
[0176] The first processing unit performs the following operations:
[0177] receiving a fault detection instruction;
[0178] If the fault detection instruction indicates to perform a first internal loopback detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the first internal loopback detection is located in the first processing unit and passes through the photoelectric conversion module;
[0179] If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the external loopback detection passes through the first processing unit and the second processing unit in the base station;
[0180] Control the FPGA to send a first data packet, and receive a second data packet after the first data packet flows through a loopback path;
[0181] The first data packet is compared with the second data packet, and a fault occurring on the loopback path is detected according to the comparison result.
[0182] As can be seen from the above, in the solution provided by the embodiment of the present invention, if the above fault detection instruction indicates to perform the first internal loopback detection, it is necessary to perform fault detection inside the first processing unit, so the second photoelectric converter is maintained to be connected to the input end, and the second electro-optical converter is maintained to be connected to the output end. Since the second photoelectric converter is connected to the second electro-optical converter, the FPGA, the second photoelectric converter and the second electro-optical converter form a loop, and the first data packet sent by the FPGA is transmitted inside the first processing unit. If the fault detection instruction indicates to perform an external loopback detection, it is necessary to perform fault detection on the first processing unit and the second processing unit, so the first photoelectric converter is maintained to be connected to the input end, and the first electro-optical converter is maintained to be connected to the output end, so that the first data packet sent by the FPGA can flow through the first electro-optical converter to be sent to the second processing unit, and the first data packet after the loopback transmission can also be sent to the FPGA through the first photoelectric converter.
[0183] In addition, by comparing the first data packet with the second data packet, it can be determined whether a bit error occurs in the data packet during transmission. If a bit error does not occur, it means that there is no fault on the loopback path. Otherwise, it means that there is a fault on the loopback path, so that a fault detection result can be obtained. Therefore, the solution provided by the embodiment of the present invention can complete fault detection without relying on manual work, thereby improving the efficiency of fault detection.
[0184] In one embodiment of the present invention, the first processing unit is further configured to:
[0185] If the fault detection instruction indicates to perform a second internal loopback detection, the first data packet is directly sent, and a second data packet is received after the first data packet flows through the loopback path of the second internal loopback detection, and the loopback path of the second internal loopback detection is located in the FPGA.
[0186] In one embodiment of the present invention, the FPGA includes sending PCS, receiving PCS, sending PMA, and receiving PMA, and the loopback path of the second inner loopback detection is: a path for transmitting data packets in the order of sending PCS, sending PMA, receiving PMA, and receiving PCS.
[0187] In one embodiment of the present invention, before controlling the FPGA to send the first data packet, the method is further configured to:
[0188] Start the timer;
[0189] The controlling the FPGA to send a first data packet includes:
[0190] When the timing duration does not reach the preset duration, controlling the FPGA to send the first data packet according to the preset time interval;
[0191] The first processing unit is further configured to:
[0192] After the timing duration reaches the preset duration, the timing ends.
[0193] In one embodiment of the present invention, the preset duration is: a duration determined according to the time interval and a preset number of times the first data packet is sent.
[0194] As can be seen from the above, it is difficult for the first processing unit to perform other signal processing tasks during the loopback detection process. The timing can be used to control the first processing unit to stop controlling the FPGA to send the first data packet after a preset time period, end the loopback detection, and allow the first processing unit to resume normal signal processing. In particular, if the first processing unit is an AAU, it is difficult for the AAU to accept instructions sent by other devices during the loopback detection process. Therefore, if the above preset time period is not set, after the AAU starts the loopback detection, it is difficult to control the AAU to end the loopback detection process by sending instructions to the AAU. The continuous loopback detection of the AAU will affect the normal signal processing of the AAU. By setting the above preset time period, the AAU will stop the loopback detection after performing the loopback detection for the preset time period and resume the normal signal processing process.
[0195] In one embodiment of the present invention, the first processing unit is an AAU.
[0196] The receiving fault detection instruction comprises:
[0197] Receive the fault detection command sent by the BBU.
[0198] Corresponding to the above-mentioned fault detection method, an embodiment of the present invention further provides a fault detection device.
[0199] See also Figure 8 , is a schematic diagram of the structure of a fault detection device provided by an embodiment of the present invention, including a memory 801, a transceiver 802, and a processor 803:
[0200] The memory 801 is used to store computer programs; the transceiver 802 is used to send and receive data under the control of the processor; the processor 803 is used to read the computer program in the memory and execute any method step described in the fault detection method.
[0201] As can be seen from the above, in the solution provided by the embodiment of the present invention, if the above fault detection instruction indicates to perform the first internal loopback detection, it is necessary to perform fault detection inside the first processing unit, so the second photoelectric converter is maintained to be connected to the input end, and the second electro-optical converter is maintained to be connected to the output end. Since the second photoelectric converter is connected to the second electro-optical converter, the FPGA, the second photoelectric converter and the second electro-optical converter form a loop, and the first data packet sent by the FPGA is transmitted inside the first processing unit. If the fault detection instruction indicates to perform an external loopback detection, it is necessary to perform fault detection on the first processing unit and the second processing unit, so the first photoelectric converter is maintained to be connected to the input end, and the first electro-optical converter is maintained to be connected to the output end, so that the first data packet sent by the FPGA can flow through the first electro-optical converter to be sent to the second processing unit, and the first data packet after the loopback transmission can also be sent to the FPGA through the first photoelectric converter.
[0202] In addition, by comparing the first data packet with the second data packet, it can be determined whether a bit error occurs in the data packet during transmission. If a bit error does not occur, it means that there is no fault on the loopback path. Otherwise, it means that there is a fault on the loopback path, so that a fault detection result can be obtained. Therefore, the solution provided by the embodiment of the present invention can complete fault detection without relying on manual work, thereby improving the efficiency of fault detection.
[0203] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned fault detection methods are implemented.
[0204] When the computer-readable storage medium provided by the embodiment of the present invention is used for fault detection, in the scheme provided by the embodiment of the present invention, if the above-mentioned fault detection instruction indicates to perform a first internal loopback detection, it is necessary to perform a fault detection inside the first processing unit, so the second photoelectric converter is maintained to be connected to the input end, and the second electro-optical converter is maintained to be connected to the output end. Since the second photoelectric converter is connected to the second electro-optical converter, the FPGA, the second photoelectric converter and the second electro-optical converter form a loop, and the first data packet sent by the FPGA is transmitted inside the first processing unit. If the fault detection instruction indicates to perform an external loopback detection, it is necessary to perform a fault detection on the first processing unit and the second processing unit, so the first photoelectric converter is maintained to be connected to the input end, and the first electro-optical converter is maintained to be connected to the output end, so that the first data packet sent by the FPGA can flow through the first electro-optical converter and be sent to the second processing unit, and the first data packet after the loopback transmission can also be sent to the FPGA through the first photoelectric converter.
[0205] In addition, by comparing the first data packet with the second data packet, it can be determined whether a bit error occurs in the data packet during transmission. If a bit error does not occur, it means that there is no fault on the loopback path. Otherwise, it means that there is a fault on the loopback path, so that a fault detection result can be obtained. Therefore, the solution provided by the embodiment of the present invention can complete fault detection without relying on manual work, thereby improving the efficiency of fault detection.
[0206] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any fault detection method in the above embodiments.
[0207] When the computer program product provided by the embodiment of the present invention is used for fault detection, in the scheme provided by the embodiment of the present invention, if the above-mentioned fault detection instruction indicates to perform the first internal loopback detection, it is necessary to perform fault detection inside the first processing unit, so the second photoelectric converter is maintained to be connected to the input end, and the second electro-optical converter is maintained to be connected to the output end. Since the second photoelectric converter is connected to the second electro-optical converter, the FPGA, the second photoelectric converter and the second electro-optical converter form a loop, and the first data packet sent by the FPGA is transmitted inside the first processing unit. If the fault detection instruction indicates to perform the external loopback detection, it is necessary to perform fault detection on the first processing unit and the second processing unit, so the first photoelectric converter is maintained to be connected to the input end, and the first electro-optical converter is maintained to be connected to the output end, so that the first data packet sent by the FPGA can flow through the first electro-optical converter to be sent to the second processing unit, and the first data packet after the loopback transmission can also be sent to the FPGA through the first photoelectric converter.
[0208] In addition, by comparing the first data packet with the second data packet, it can be determined whether a bit error occurs in the data packet during transmission. If a bit error does not occur, it means that there is no fault on the loopback path. Otherwise, it means that there is a fault on the loopback path, so that a fault detection result can be obtained. Therefore, the solution provided by the embodiment of the present invention can complete fault detection without relying on manual work, thereby improving the efficiency of fault detection.
[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0210] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0211] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the first processing unit, device, storage medium and computer program embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0212] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0213] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0214] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0215] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0216] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the embodiments of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A fault detection method, characterized in that: Applied to a first processing unit in a base station; the first processing unit comprises: a field programmable gate array FPGA and a photoelectric conversion module, the photoelectric conversion module comprises: a first photoelectric converter, a second photoelectric converter, a first electro-optical converter and a second electro-optical converter, the second photoelectric converter is connected to the second electro-optical converter; the method comprises: receiving a fault detection instruction; If the fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the first inner loop detection is located in the first processing unit and passes through the photoelectric conversion module; If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the external loopback detection passes through the first processing unit and the second processing unit in the base station; Control the FPGA to send a first data packet, and receive a second data packet after the first data packet flows through a loopback path; The first data packet is compared with the second data packet, and a fault occurring on the loopback path is detected according to the comparison result.
2. The method according to claim 1, characterized in that: The method further comprises: If the fault detection instruction indicates to perform a second internal loopback detection, the first data packet is directly sent, and a second data packet is received after the first data packet flows through the loopback path of the second internal loopback detection, and the loopback path of the second internal loopback detection is located within the FPGA.
3. The method according to claim 2, characterized in that The FPGA includes a sending physical coding layer PCS, a receiving PCS, a sending physical medium connection layer PMA, and a receiving PMA. The loopback path of the second inner loopback detection is: a path for transmitting data packets in the order of sending PCS, sending PMA, receiving PMA, and receiving PCS.
4. The method according to any one of claims 1 to 3, characterized in that Before controlling the FPGA to send the first data packet, the method further includes: Start the timer; The controlling the FPGA to send a first data packet includes: When the timing duration does not reach the preset duration, controlling the FPGA to send the first data packet according to the preset time interval; The method further comprises: After the timing duration reaches the preset duration, the timing ends.
5. The method according to claim 4, characterized in that The preset duration is: a duration determined according to the time interval and a preset number of times the first data packet is sent.
6. The method according to any one of claims 1 to 3, characterized in that The first processing unit is an active antenna processing unit AAU, The receiving fault detection instruction comprises: Receive a fault detection instruction sent by a baseband processing unit BBU.
7. A first processing unit, characterized in that: The first processing unit is located in the base station, and the first processing unit includes: an FPGA and a photoelectric conversion module, the photoelectric conversion module includes: a first photoelectric converter, a second photoelectric converter, a first electro-optical converter and a second electro-optical converter, and the second photoelectric converter is connected to the second electro-optical converter; The first processing unit performs the following operations: receiving a fault detection instruction; If the fault detection instruction indicates to perform a first inner loop detection, the second photoelectric converter is maintained connected to the input end of the FPGA, and the second electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the first inner loop detection is located in the first processing unit and passes through the photoelectric conversion module; If the fault detection instruction indicates to perform an external loopback detection, the first photoelectric converter is maintained connected to the input end of the FPGA, and the first electro-optical converter is maintained connected to the output end of the FPGA, wherein the loopback path of the external loopback detection passes through the first processing unit and the second processing unit in the base station; Control the FPGA to send a first data packet, and receive a second data packet after the first data packet flows through a loopback path; The first data packet is compared with the second data packet, and a fault occurring on the loopback path is detected according to the comparison result.
8. The first processing unit according to claim 7, characterized in that: The first processing unit is further configured to: If the fault detection instruction indicates to perform a second internal loopback detection, the first data packet is directly sent, and a second data packet is received after the first data packet flows through the loopback path of the second internal loopback detection, and the loopback path of the second internal loopback detection is located in the FPGA.
9. The first processing unit according to claim 8, characterized in that: The FPGA includes a sending PCS, a receiving PCS, a sending PMA, and a receiving PMA. The loopback path of the second inner loopback detection is: a path for transmitting data packets in the order of sending PCS, sending PMA, receiving PMA, and receiving PCS.
10. The first processing unit according to any one of claims 7 to 9, characterized in that: Before controlling the FPGA to send the first data packet, the method is further used to: Start the timer; The controlling the FPGA to send a first data packet includes: When the timing duration does not reach the preset duration, controlling the FPGA to send the first data packet according to the preset time interval; The first processing unit is further configured to: After the timing duration reaches the preset duration, the timing ends.
11. The first processing unit according to claim 10, characterized in that: The preset duration is: a duration determined according to the time interval and a preset number of times the first data packet is sent.
12. The first processing unit according to any one of claims 7 to 9, characterized in that: The first processing unit is an AAU, The receiving fault detection instruction comprises: Receive the fault detection command sent by the BBU.
13. A fault detection device, characterized in that: Including memory, transceiver, processor: Memory for storing computer programs; a transceiver, for transmitting and receiving data under the control of the processor; A processor, configured to read the computer program in the memory and execute the method steps described in any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Communication link failover method and device, terminal device and storage medium
CN112019266A
Method and apparatus for multiplexing from low-speed light port to 2M transmission line and protection switching
CN1992572A
Optical transmission apparatus
GB8910957D0
Voice-related dialing testing and loopback method and device
WO2020114033A1
