Fault detection method and device, electronic equipment and storage medium

By alternately sending Hello messages and receiving Linkdown messages in the BBU of the 5G fronthaul network, detecting faulty links or abnormal FSWs, and updating the forwarding table, it solves the problem of being unable to accurately detect faults and update cells in the existing technology, and improves efficiency. Network stability.

CN118741571APending Publication Date: 2024-10-01NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852833.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the ring networking mode of the 5G fronthaul network, the existing fault detection method cannot accurately know the failed link or device, which affects the stability of the network and cannot update the cell where the pRRU attached to the relevant FSW is located.

Method used

Alternately send forward and reverse Hello messages through the BBU's primary port and secondary port, receive Linkdown messages, identify faulty links or abnormal FSWs, remove blocking, and send Common-Flush-FDB messages based on topological relationships to update the forwarding table. , update the cell where the pRRU is located.

Benefits of technology

Improves network stability, accurately detects faulty links or abnormal FSWs, and updates the forwarding table to ensure the continuity and accuracy of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741571A_ABST
    Figure CN118741571A_ABST
Patent Text Reader

Abstract

The invention provides a fault detection method and device, electronic equipment and a storage medium. The method is applied to a BBU, and comprises the following steps: according to a preset period, sending a forward Hello message through a main port, and sending a reverse Hello message through an auxiliary port; if a first Link down message sent by a first FSW is received through a main port and a second Link down message sent by a second FSW directly connected with the first FSW is received through an auxiliary port, it is determined that a link between the first FSW and the second FSW breaks down, the blocked auxiliary port is removed, a first Common-Flush-FDB message is sent to all the FSWs, and when a pRRU under the first FSW and a pRRU under the second FSW are in the same cell, the pRRU under the first FSW and the pRRU under the second FSW are not in the same cell. And according to a preset first cell updating strategy, updating the cells in which all the pRRUs hung under the FSWs in the first cell are located. The network stability can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a fault detection method, device, electronic device and storage medium. Background Art

[0002] The 5G fronthaul network can adopt a star networking solution or a ring networking solution. When the 5G fronthaul network adopts a ring networking solution, that is, when the networking mode of the 5G fronthaul network is a ring networking mode, the baseband processing unit (Base Band Unit, BBU) in the 5G fronthaul network serves as the main node, and each expansion unit (Fronthaul Switch, FSW) in the 5G fronthaul network serves as a transmission node. In addition, each FSW is hung with multiple small radio frequency remote units (picro-Remote Radio Unit, pRRU), and some pRRUs hung under the FSW are merged into one cell.

[0003] For example, Figure 1 As shown, the pRRUs under FSW1 and FSW2 are merged into cell 1, the pRRUs under FSW3 and FSW4 are merged into cell 2, and the pRRUs under FSW5 and FSW6 are merged into cell 3.

[0004] At present, BBU usually uses Rapid Ring Protection Protocol (RRPP) to periodically send loop status detection messages through its own primary port. If BBU receives the loop status detection message through its own secondary port, it blocks the secondary port so that the data message is forwarded on the link formed by the primary port of the master node and the transmission node. In addition, when the BBU detects a network failure, the BBU unblocks the secondary port and notifies all FSWs to update the forwarding table.

[0005] However, this fault detection method cannot accurately know the failed link or device, and cannot update the cell where the pRRU under the relevant FSW is located, which affects the network stability. Summary of the invention

[0006] In order to overcome the problems existing in the related art, the present application provides a fault detection method, device, electronic device and storage medium.

[0007] According to a first aspect of an embodiment of the present application, a fault detection method is provided, the method being applied to a BBU in a 5G fronthaul network, the 5G fronthaul network also including a plurality of FSWs, each FSW having at least one pRRU attached thereto, and the networking mode of the 5G fronthaul network being a ring network mode, the method comprising:

[0008] According to a preset period, a forward handshake (Hello) message is sent through the primary port on itself, and a reverse Hello message is sent through the secondary port on itself, wherein the source MAC address of the forward Hello message is the MAC address of the primary port, the destination MAC address of the forward Hello message is the MAC address of the secondary port, the source MAC address of the reverse Hello message is the MAC address of the secondary port, and the destination MAC address of the reverse Hello message is the MAC address of the secondary port;

[0009] If a first link failure (Linkdown) message sent by the first FSW when a port failure is detected is received through the primary port, and a second linkdown message sent by the second FSW directly connected to the first FSW when a port failure is detected is received through the secondary port, it is determined that a link between the first FSW and the second FSW is faulty, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a first common-flush-FDB message for updating a forwarding table is sent to all FSWs, and when the pRRUs attached to the first FSW and the pRRUs attached to the second FSW are in the same first cell, the cells where the pRRUs attached to all FSWs in the first cell are located are updated according to a preset first cell update strategy;

[0010] If a third Linkdown message sent by the same third FSW is received through the primary port and the secondary port, or the third Linkdown message is received through any one of the primary port and the secondary port, it is determined that the third FSW is abnormal, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a second Common-Flush-FDB message is sent to other FSWs except the third FSW, and when a pRRU hung under the fourth FSW exists in the second cell where the pRRU hung under the third FSW is located, the cell where all the pRRUs hung under the FSW in the second cell are located is updated according to a preset second cell update strategy;

[0011] If a fourth Linkdown message sent by a fifth FSW is received through the primary port, a fifth Linkdown message sent by a sixth FSW is received through the secondary port, and a seventh FSW is connected between the fifth FSW and the sixth FSW, it is determined that the seventh FSW fails, the blocked secondary port is unblocked, a third Common-Flush-FDB message is sent to other FSWs except the seventh FSW based on the topological relationship of all current FSWs, and when a pRRU hung under the eighth FSW exists in the third cell where the pRRU hung under the seventh FSW is located, the cells where all the pRRUs hung under the FSWs in the third cell are located are updated according to a preset third cell update strategy;

[0012] The third Linkdown message is sent by the third FSW through the first port and the second port respectively when the third FSW receives the forward Hello message through the first port on itself but fails to forward the forward Hello message through the second port on itself, or receives the reverse Hello message through the second port but fails to forward the reverse Hello message through the first port;

[0013] The fourth Linkdown message is sent by the fourth FSW through the third port when the fourth FSW does not receive the forward Hello message again within a first set time period after receiving the forward Hello message through the third port on the fourth FSW and no port failure is detected;

[0014] The fifth Linkdown message is sent by the fifth FSW through the fourth port when the fifth FSW does not receive the reverse Hello message again within a second set time period after receiving the reverse Hello message through the fourth port on the fifth FSW.

[0015] According to a second aspect of an embodiment of the present application, a fault detection device is provided, the device being applied to a BBU in a 5G fronthaul network, the 5G fronthaul network also including a plurality of FSWs, each FSW having at least one pRRU attached thereto, and the networking mode of the 5G fronthaul network being a ring network mode, the device comprising:

[0016] A sending module, used to send a forward Hello message through its own primary port and send a reverse Hello message through its own secondary port according to a preset period, wherein the source MAC address of the forward Hello message is the MAC address of the primary port, the destination MAC address of the forward Hello message is the MAC address of the secondary port, the source MAC address of the reverse Hello message is the MAC address of the secondary port, and the destination MAC address of the reverse Hello message is the MAC address of the secondary port;

[0017] A first detection module is configured to determine that a link between the first FSW and the second FSW has failed if a first Linkdown message sent by the first FSW when a port failure is detected is received through the primary port, and a second Linkdown message sent by the second FSW directly connected to the first FSW when a port failure is detected is received through the secondary port, unblock the secondary port, send a first Common-Flush-FDB message for updating a forwarding table to all FSWs based on the topological relationship of all current FSWs, and update the cells where all the pRRUs hung under the FSWs in the first cell are located according to a preset first cell update strategy when the pRRUs hung under the first FSWs and the pRRUs hung under the second FSWs are in the same first cell;

[0018] A second detection module is configured to determine that an abnormality occurs in the third FSW if a third Linkdown message sent by the same third FSW is received through the primary port and the secondary port, or the third Linkdown message is received through any one of the primary port and the secondary port, unblock the secondary port, send a second Common-Flush-FDB message to other FSWs except the third FSW based on the topological relationship of all current FSWs, and when a pRRU hung under the fourth FSW exists in the second cell where the pRRU hung under the third FSW is located, update the cells where all the pRRUs hung under the fourth FSW are located in the second cell according to a preset second cell update strategy;

[0019] a third detection module, configured to determine that the seventh FSW fails if a fourth Linkdown message sent by the fifth FSW is received through the primary port, a fifth Linkdown message sent by the sixth FSW is received through the secondary port, and a seventh FSW is connected between the fifth FSW and the sixth FSW, unblock the blocked secondary port, send a third Common-Flush-FDB message to other FSWs except the seventh FSW based on the topological relationship of all current FSWs, and when a pRRU hung under the eighth FSW exists in the third cell where the pRRU hung under the seventh FSW is located, update the cells where all the pRRUs hung under the FSWs in the second cell are located according to a preset third cell update strategy;

[0020] The third Linkdown message is sent by the third FSW through the first port and the second port respectively when the third FSW receives the forward Hello message through the first port on itself but fails to forward the forward Hello message through the second port on itself, or receives the reverse Hello message through the second port but fails to forward the reverse Hello message through the first port;

[0021] The fourth Linkdown message is sent by the fourth FSW through the third port when the fourth FSW does not receive the forward Hello message again within a first set time period after receiving the forward Hello message through the third port on the fourth FSW and no port failure is detected;

[0022] The fifth Linkdown message is sent by the fifth FSW through the fourth port when the fifth FSW does not receive the reverse Hello message again within a second set time period after receiving the reverse Hello message through the fourth port on the fifth FSW.

[0023] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps of the above-mentioned fault detection method.

[0024] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of the above-mentioned fault detection method are implemented.

[0025] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0026] In an embodiment of the present application, the BBU in a 5G fronthaul network whose networking mode is a ring network mode can send a forward Hello message through the main port, send a reverse Hello message through the secondary port, and receive a LinkDown message through the main port and / or the secondary port to detect a failed link, an abnormal FSW or a failed FSW, and unblock the blocked secondary port. Based on the topological relationship of all current FSWs, the BBU sends relevant Common-Flush-FDB messages to all FSWs, so that the relevant FSWs update the corresponding forwarding table and update the cell where the pRRU under the relevant FSW is located, thereby improving network stability.

[0027] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0029] Figure 1 This is a schematic diagram of the network architecture of the existing 5G fronthaul network;

[0030] Figure 2 A flowchart of a fault detection method provided in an embodiment of the present application;

[0031] Figure 3 One of the network architecture diagrams of the 5G fronthaul network provided in the embodiment of the present application;

[0032] Figure 4 The second network architecture diagram of the 5G fronthaul network provided in the embodiment of the present application;

[0033] Figure 5 The third network architecture diagram of the 5G fronthaul network provided in the embodiment of the present application;

[0034] Figure 6 A schematic diagram of the structure of a fault detection device provided in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0037] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0038] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".

[0039] Next, the embodiments of the present application are described in detail.

[0040] The embodiment of the present application provides a fault detection method, which is applied to a BBU in a 5G fronthaul network. The 5G fronthaul network also includes multiple FSWs, each FSW is connected to at least one pRRU, and the networking mode of the 5G fronthaul network is a ring network mode, such as Figure 2 As shown, the method may include the following steps:

[0041] S21. According to a preset period, a forward Hello message is sent through the primary port on itself, and a reverse Hello message is sent through the secondary port on itself.

[0042] In this step, the source MAC address of the forward Hello message is the MAC address of the primary port, and the destination MAC address of the forward Hello message is the MAC address of the secondary port.

[0043] The source MAC address of the reverse Hello message is the MAC address of the secondary port, and the destination MAC address of the reverse Hello message is the MAC address of the secondary port.

[0044] It should be noted that, in the embodiment of the present application, the above-mentioned preset period can be set by the network administrator according to network requirements and configured in advance on the BBU.

[0045] S22. If a first Linkdown message sent by the first FSW when a port failure is detected is received through the primary port, and a second Linkdown message sent by the second FSW directly connected to the first FSW when a port failure is detected is received through the secondary port, it is determined that a link between the first FSW and the second FSW has failed, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a first Common-Flush-FDB message for updating the forwarding table is sent to all FSWs, and when the pRRU attached to the first FSW and the pRRU attached to the second FSW are in the same first cell, the cells where all the pRRUs attached to the FSWs in the first cell are located are updated according to the preset first cell update strategy.

[0046] For example, Figure 3 As shown in the figure, it is assumed that the pRRU under FSW3 and the pRRU under FSW4 are in the same cell. And at a certain moment, it is assumed that FSW3 detects that its port 32 fails, and FSW4 detects that its port 41 fails. In this case, FSW3 sends Linkdown message 1 to BBU through its port 31. Among them, the source MAC address of Linkdown message 1 is the MAC address of FSW3, and the destination MAC address of Linkdown message 1 is the MAC address of the primary port on the BBU.

[0047] FSW4 sends Linkdown message 2 to BBU through its port 42. The source MAC address of Linkdown message 2 is the MAC address of FSW4, and the destination MAC address of Linkdown message 2 is the MAC address of the secondary port on the BBU.

[0048] Subsequently, the BBU receives Linkdown message 1 sent by FSW3 through the primary port, and receives Linkdown message 2 sent by FSW4 directly connected to FSW3 through the secondary port. At this time, the BBU determines that the link between FSW3 and FSW4 fails, unblocks the blocked secondary port, and sends Common-Flush-FDB message 1 for updating the forwarding table to all FSWs based on the topological relationship of all current FSWs. When the pRRUs under FSW3 and the pRRUs under FSW4 are in the same cell, the cells where all the pRRUs under FSW in the cell are located are updated according to the preset first cell update strategy.

[0049] Here, after receiving Common-Flush-FDB message 1, all FSWs refresh their respective forwarding tables based on Common-Flush-FDB message 1 to ensure that the secondary port can transmit data messages.

[0050] S23. If a third Linkdown message sent by the same third FSW is received through the primary port and the secondary port, or the third Linkdown message is received through any one of the primary port and the secondary port, it is determined that an abnormality occurs in the third FSW, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a second Common-Flush-FDB message is sent to other FSWs except the third FSW, and when there is a pRRU hung under the fourth FSW in the second cell where the pRRU hung under the third FSW is located, the cells where all the pRRUs hung under the FSW in the second cell are located are updated according to the preset second cell update strategy.

[0051] In this step, the third Linkdown message is sent by the third FSW through the first port and the second port respectively when the third FSW receives a forward Hello message through the first port on itself but fails to forward the forward Hello message through the second port on itself, or receives a reverse Hello message through the second port but fails to forward the reverse Hello message through the first port.

[0052] For example, Figure 4 As shown, it is assumed that the pRRU under FSW1 and the pRRU under FSW2 are in the same cell, and it is assumed that FSW2 receives a forward Hello message through its port 21 at a certain moment but fails to forward the forward Hello message through its port 22. In this case, FSW2 sends Linkdown message 3 to the BBU through its port 21 and sends Linkdown message 4 to the BBU through port 22.

[0053] The source MAC address of the Linkdown message 3 is the MAC address of FSW2, and the destination MAC address of the Linkdown message 3 is the MAC address of the primary port on the BBU.

[0054] The source MAC address of Linkdown message 4 is the MAC address of FSW2, and the destination MAC address of Linkdown message 4 is the MAC address of the secondary port on the BBU.

[0055] Subsequently, the BBU receives Linkdown message 3 sent by FSW2 through the primary port and Linkdown message 4 sent by FSW2 through the secondary port. At this time, the BBU determines that FSW2 is abnormal, unblocks the blocked secondary port, and sends Common-Flush-FDB message 2 to other FSWs except FSW2 based on the topological relationship of all current FSWs. When there is a pRRU hung under FSW1 in the cell where the pRRU hung under FSW2 is located, the BBU updates the cells where all the pRRUs hung under FSW in this cell are located according to the preset second cell update strategy.

[0056] Here, after receiving Common-Flush-FDB message 2, other FSWs refresh their respective forwarding tables based on Common-Flush-FDB message 2 to ensure that the secondary port can transmit data messages.

[0057] S24. If a fourth Linkdown message sent by the fifth FSW is received through the primary port, a fifth Linkdown message sent by the sixth FSW is received through the secondary port, and a seventh FSW is connected between the fifth FSW and the sixth FSW, it is determined that the seventh FSW fails, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a third Common-Flush-FDB message is sent to other FSWs except the third FSW, and when there is a pRRU under the eighth FSW in the third cell where the pRRU under the seventh FSW is located, the cells where all the pRRUs under the FSWs in the third cell are located are updated according to a preset third cell update strategy;

[0058] In this step, the fourth Linkdown message is sent by the fourth FSW through the third port when the fourth FSW does not receive a forward Hello message within a first set time after receiving a forward Hello message through the third port on the fourth FSW and does not detect a port failure.

[0059] The fifth Linkdown message is sent by the fifth FSW through the fourth port when the fifth FSW does not receive any reverse Hello message within a second set time period after receiving the reverse Hello message through the fourth port on the fifth FSW itself and does not detect any port failure.

[0060] For example, Figure 5 As shown, assuming that the pRRU under FSW7 and the pRRU under FSW8 are in the same cell, and assuming that FSW6 does not receive a forward Hello message within the first set time after receiving a forward Hello message through port 61 on itself, and does not detect a port failure, at this time, FSW6 sends Linkdown message 5 to the BBU through port 61. Among them, the source MAC address of Linkdown message 5 is the MAC address of FSW6, and the destination MAC address of Linkdown message 5 is the MAC address of the primary port on the BBU.

[0061] Assuming that FSW8 does not receive a reverse Hello message within the second set time after receiving a reverse Hello message through port 82 on itself, and does not detect a port failure, at this time, FSW8 sends a Linkdown message 6 to the BBU through port 82. The source MAC address of the Linkdown message 6 is the MAC address of FSW8, and the destination MAC address of the Linkdown message 6 is the MAC address of the secondary port on the BBU.

[0062] Subsequently, the BBU receives Linkdown message 5 sent by FSW6 through the primary port and Linkdown message 6 sent by FSW8 through the secondary port, and FSW7 is connected between FSW6 and FSW8. At this time, the BBU determines that FSW7 has a fault, unblocks the blocked secondary port, and sends Common-Flush-FDB message 3 to other FSWs except FSW7 based on the topological relationship of all current FSWs. When there is a pRRU under FSW8 in the cell where the pRRU under FSW7 is located, the cell where all the pRRUs under FSW in this cell are located is updated according to the preset third cell update strategy.

[0063] Here, after receiving Common-Flush-FDB message 3, other FSWs refresh their respective forwarding tables based on Common-Flush-FDB message 3 to ensure that the secondary port can transmit data messages.

[0064] It should be noted that, in the embodiment of the present application, the first set duration and the second set duration can be set by a network administrator according to network requirements and configured in advance on the BBU.

[0065] In one example, both the first set time length and the second set time length can be implemented by a timer.

[0066] Specifically, in the above step S22, the BBU may update the cells where all the pRRUs attached to the FSW in the first cell are located in the following manner:

[0067] If the number of cells in the 5G fronthaul network reaches the set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs under the first part of the FSW in the first cell are merged into the cell where the pRRU under the first target FSW is located, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs under the second part of the FSW and the third part of the FSW in the cell are merged into the cell where the pRRU under the second target FSW is located;

[0068] If the number of cells in the 5G fronthaul network does not reach the set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs under the first part of the FSW are merged into a new cell, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs under the second part of the FSW and the third part of the FSW are merged into a new cell;

[0069] Wherein, when there are only two FSWs in the first cell, the first part of the FSW includes the FSW that is not directly connected to the BBU between the first FSW and the second FSW, and the first target FSW is the FSW directly connected to the FSW that is not directly connected to the BBU; the second part of the FSW includes any FSW between the first FSW and the second FSW, the third part of the FSW includes the FSWs in the first cell except the second part of the FSW, and the second target FSW is the FSW directly connected to the first FSW or the second FSW; or,

[0070] When there are more than two FSWs in the first cell, all FSWs in the first cell are adjacent to each other. If the first FSW is the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW is directly connected to the BBU, the first part of the FSWs includes the FSWs other than the first FSW in the first cell, and the first target FSW is the FSW directly connected to the last FSW in the first part of the FSWs, or, when the first FSW is not directly connected to the BBU, the first part of the FSWs includes the first FSW, and the first target FSW is the FSW directly connected to the first FSW; the second part of the FSWs includes the first FSW or the FSWs other than the first FSW in the first cell, the third part of the FSWs includes the FSWs other than the second part of the FSW in the first cell, and the second target FSW is the FSW directly connected to the first FSW or the last FSW in the first cell;

[0071] If the first FSW is not the first FSW in the first cell and the second FSW is the last FSW in the first cell, then when the second FSW is directly connected to the BBU, the first part of the FSW includes the FSWs other than the second FSW in the first cell, and the first target FSW is the FSW directly connected to the first FSW in the first part of the FSW, or, when the second FSW is not directly connected to the BBU, the first part of the FSW includes the second FSW, and the first target FSW is the FSW directly connected to the second FSW; the second part of the FSW includes the second FSW or the FSW other than the second FSW in the first cell, the third part of the FSW includes the FSW other than the second part of the FSW in the first cell, and the second target FSW is the FSW directly connected to the second FSW or the first FSW in the first cell;

[0072] If the first FSW is not the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW in the first cell is directly connected to the BBU, the first part of the FSW includes the second FSW and the FSW behind the second FSW in the first cell, and the first target FSW is the FSW directly connected to the last FSW in the first part of the FSW, or, when the last FSW in the first cell is directly connected to the BBU, the first part of the FSW includes the first FSW and the FSW in front of the first FSW in the first cell, and the first target FSW is the FSW directly connected to the first FSW in the first part of the FSW; the second part of the FSW includes the first FSW and the FSW in front of the first FSW in the first cell, or the second part of the FSW includes the second FSW and the FSW behind the second FSW in the first cell, the third part of the FSW includes the FSW in the first cell except the second part of the FSW, and the second target FSW is the FSW directly connected to the first FSW in the first cell or the FSW directly connected to the last FSW in the first cell.

[0073] Of course, the BBU may also use other methods to update the cells where all the pRRUs attached to the FSW in the first cell are located, which will not be listed here one by one.

[0074] It should be noted that, in the embodiment of the present application, the BBU does not perform any operation when the pRRU attached to the first FSW and the pRRU attached to the second FSW are not in the same cell.

[0075] For example, Figure 3 As shown, it is assumed that the pRRU under FSW1 and the pRRU under FSW2 are in the same cell, the pRRU under FSW5 and the pRRU under FSW6 are in the same cell, and the pRRU under FSW7 and the pRRU under FSW8 are in the same cell. And, it is assumed that the number of cells has reached the set number (i.e., 4). When the BBU determines that the link between FSW3 and FSW4 fails, since the pRRU under FSW3 and the pRRU under FSW4 are in the same cell, and there is no FSW directly connected to the BBU in this cell, and FSW3 is directly connected to FSW2, and FSW4 is directly connected to FSW8, in this case, the BBU can merge the pRRU under FSW3 into the cell where the pRRU under FSW2 is located, and can merge the pRRU under FSW4 into the cell where the pRRU under FSW8 is located.

[0076] Specifically, in the above step S23, the BBU may update the cells where all the pRRUs attached to the FSW in the second cell are located in the following manner:

[0077] If the third FSW is the first FSW in the second cell or the last FSW in the second cell, the third FSW is deleted from the second cell;

[0078] If the third FSW is neither the first FSW nor the last FSW in the second cell, the third FSW is deleted from the second cell, and when there is no FSW directly connected to the BBU in the second cell, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located, or the pRRU under the fourth FSW located after the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located; or,

[0079] When there is a FSW directly connected to the BBU in the second cell, if the first fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW behind the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located;

[0080] If the last fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located.

[0081] Of course, the BBU may also use other methods to update the cells where all the pRRUs connected to the FSW in the second cell are located, which will not be listed here one by one.

[0082] It should be noted that, in the embodiment of the present application, the BBU does not perform any operation when there is no pRRU attached to the fourth FSW in the cell where the pRRU attached to the third FSW is located.

[0083] For example, Figure 4 As shown in the figure, it is assumed that the pRRU under FSW3 and the pRRU under FSW4 are in the same cell, and the pRRU under FSW5 and the pRRU under FSW6 are in the same cell. When the BBU determines that FSW2 is abnormal, since the cell where the pRRU under FSW2 is located still has a pRRU under FSW1, and FSW2 is the last FSW in this cell, the BBU can delete FSW2 from this cell, that is, the pRRU under FSW1 is still in this cell.

[0084] Specifically, in the above step S24, the BBU may update the cells where all the pRRUs attached to the FSW in the third cell are located in the following manner, specifically including:

[0085] If the seventh FSW is the first FSW in the third cell or the last FSW in the third cell, the seventh FSW is deleted from the third cell;

[0086] If the seventh FSW is neither the first FSW nor the last FSW in the third cell, the seventh FSW is deleted from the third cell, and when there is no FSW directly connected to the BBU in the third cell, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located, or the pRRU under the eighth FSW located after the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located; or,

[0087] When there is a FSW directly connected to the BBU in the third cell, if the first eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW behind the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located;

[0088] If the last eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located.

[0089] Of course, the BBU may also use other methods to update the cells where all the pRRUs attached to the FSW in the third cell are located, which will not be listed here one by one.

[0090] It should be noted that, in the embodiment of the present application, the BBU does not perform any operation when there is no pRRU attached to the eighth FSW in the cell where the pRRU attached to the seventh FSW is located.

[0091] For example, Figure 5 As shown, it is assumed that the pRRU under FSW3 and the pRRU under FSW4 are in the same cell. When the BBU determines that FSW7 has failed, since the cell where the pRRU under FSW7 is located also has a pRRU under FSW8, and FSW7 is the first FSW in this cell, at this time, the BBU can delete FSW7 from this cell, that is, the pRRU under FSW8 is still in this cell. Further, in the embodiment of the present application, the BBU can also perform the following operations:

[0092] After the blocked secondary port is unblocked, if the forward Hello message is received again through the secondary port and the reverse Hello message is received again through the primary port, the secondary port is blocked, and the fourth Common-Flush-FDB message is sent to all FSWs based on the topological relationship of all current FSWs;

[0093] If there is a ninth FSW without a cell among all current FSWs, the pRRUs under the ninth FSW are merged into the cell where a FSW directly connected to the ninth FSW is located.

[0094] Here, after receiving the fourth Common-Flush-FDB message, all FSWs refresh their respective forwarding tables based on the fourth Common-Flush-FDB message and no longer use the secondary port to transmit data messages.

[0095] It can be seen from the above technical solution that in the embodiment of the present application, the BBU in the 5G fronthaul network with a ring network mode can send a forward Hello message through the main port, send a reverse Hello message through the secondary port, and receive a LinkDown message through the main port and / or the secondary port to detect a failed link, an abnormal FSW or a failed FSW, and unblock the blocked secondary port. Based on the topological relationship of all current FSWs, relevant Common-Flush-FDB messages are sent to all FSWs, so that the relevant FSWs update the corresponding forwarding table and update the cell where the pRRU under the relevant FSW is located, thereby improving network stability.

[0096] Based on the same inventive concept, the present application also provides a fault detection device, which is applied to the BBU in the 5G fronthaul network, and its structural diagram is as follows: Figure 6 As shown, the 5G fronthaul network also includes multiple FSWs, each FSW is connected to at least one pRRU, and the networking mode of the 5G fronthaul network is a ring network mode. The device specifically includes:

[0097] A sending module 61 is used to send a forward handshake Hello message through its own primary port and send a reverse Hello message through its own secondary port according to a preset period, wherein the source MAC address of the forward Hello message is the MAC address of the primary port, the destination MAC address of the forward Hello message is the MAC address of the secondary port, the source MAC address of the reverse Hello message is the MAC address of the secondary port, and the destination MAC address of the reverse Hello message is the MAC address of the secondary port;

[0098] A first detection module 62 is configured to determine that a link between the first FSW and the second FSW has failed if a first link failure Linkdown message sent by the first FSW when a port failure is detected is received through the primary port, and a second Linkdown message sent by the second FSW directly connected to the first FSW when a port failure is detected is received through the secondary port, unblock the secondary port, send a first Common-Flush-FDB message for updating a forwarding table to all FSWs based on the topological relationship of all current FSWs, and update the cells where all the pRRUs attached to the FSWs in the first cell are located according to a preset first cell update strategy when the pRRUs attached to the first FSW and the pRRUs attached to the second FSW are in the same first cell;

[0099] The second detection module 63 is configured to determine that an abnormality occurs in the third FSW if a third Linkdown message sent by the same third FSW is received through the primary port and the secondary port, or the third Linkdown message is received through any one of the primary port and the secondary port, unblock the secondary port, send a second Common-Flush-FDB message to other FSWs except the third FSW based on the topological relationship of all current FSWs, and when a pRRU hung under the fourth FSW exists in the second cell where the pRRU hung under the third FSW is located, update the cells where all the pRRUs hung under the FSW in the second cell are located according to a preset second cell update strategy;

[0100] The third detection module 64 is configured to determine that the seventh FSW fails if a fourth Linkdown message sent by the fifth FSW is received through the primary port, a fifth Linkdown message sent by the sixth FSW is received through the secondary port, and a seventh FSW is connected between the fifth FSW and the sixth FSW, unblock the blocked secondary port, send a third Common-Flush-FDB message to other FSWs except the seventh FSW based on the topological relationship of all current FSWs, and update the cells where all the pRRUs hung under the FSW in the third cell are located according to a preset third cell update strategy when there is a pRRU hung under the eighth FSW in the third cell where the pRRU hung under the seventh FSW is located;

[0101] The third Linkdown message is sent by the third FSW through the first port and the second port respectively when the third FSW receives the forward Hello message through the first port on itself but fails to forward the forward Hello message through the second port on itself, or receives the reverse Hello message through the second port but fails to forward the reverse Hello message through the first port;

[0102] The fourth Linkdown message is sent by the fourth FSW through the third port when the fourth FSW does not receive the forward Hello message again within a first set time period after receiving the forward Hello message through the third port on the fourth FSW and no port failure is detected;

[0103] The fifth Linkdown message is sent by the fifth FSW through the fourth port when the fifth FSW does not receive the reverse Hello message again within a second set time period after receiving the reverse Hello message through the fourth port on the fifth FSW.

[0104] Preferably, the first detection module 62 is specifically configured to update the cells where all the pRRUs connected to the FSW in the first cell are located in the following manner:

[0105] If the number of cells in the 5G fronthaul network reaches a set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs hung under the first part of the FSW in the first cell are merged into the cell where the pRRU hung under the first target FSW is located, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs hung under any one of the second part of the FSW and the third part of the FSW in the cell are merged into the cell where the pRRU hung under the second target FSW is located;

[0106] If the number of cells in the 5G fronthaul network does not reach the set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs under the first part of the FSW are merged into a new cell, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs under any one of the second part of the FSW and the third part of the FSW are merged into a new cell;

[0107] Wherein, when there are only two FSWs in the first cell, the first part of the FSWs includes the FSW that is not directly connected to the BBU among the first FSW and the second FSW, and the first target FSW is the FSW that is directly connected to the FSW that is not directly connected to the BBU; the second part of the FSWs includes any FSW among the first FSW and the second FSW, the third part of the FSWs includes the FSWs in the first cell except the second part of the FSWs, and the second target FSW is the FSW that is directly connected to the first FSW or the second FSW; or,

[0108] When there are more than two FSWs in the first cell, all FSWs in the first cell are adjacent to each other. If the first FSW is the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW is directly connected to the BBU, the first part of FSWs includes FSWs other than the first FSW in the first cell, and the first target FSW is a FSW directly connected to the last FSW in the first part of FSWs, or, when the first FSW is not directly connected to the BBU, the first part of FSWs includes the first FSW, and the first target FSW is a FSW directly connected to the first FSW; the second part of FSWs includes the first FSW or the FSWs other than the first FSW in the first cell, the third part of FSWs includes FSWs other than the second part of FSWs in the first cell, and the second target FSW is a FSW directly connected to the first FSW or the last FSW in the first cell;

[0109] If the first FSW is not the first FSW in the first cell, and the second FSW is the last FSW in the first cell, then when the second FSW is directly connected to the BBU, the first part of FSWs includes FSWs other than the second FSW in the first cell, and the first target FSW is a FSW directly connected to the first FSW in the first part of FSWs, or, when the second FSW is not directly connected to the BBU, the first part of FSWs includes the second FSW, and the first target FSW is a FSW directly connected to the second FSW; the second part of FSWs includes the second FSW or the FSW other than the second FSW in the first cell, the third part of FSWs includes the FSWs other than the second part of FSW in the first cell, and the second target FSW is a FSW directly connected to the second FSW or the first FSW in the first cell;

[0110] If the first FSW is not the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW in the first cell is directly connected to the BBU, the first part of FSWs includes the second FSW and the FSW in the first cell that is located behind the second FSW, and the first target FSW is the FSW directly connected to the last FSW in the first part of FSWs, or, when the last FSW in the first cell is directly connected to the BBU, the first part of FSWs includes the first FSW and the FSW in the first cell that is located before the first FSW, and the first target FSW is the FSW directly connected to the first FSW in the first part of FSWs; the second part of FSWs includes the first FSW and the FSW in the first cell that is located before the first FSW, or the second part of FSWs includes the second FSW and the FSW in the first cell that is located behind the second FSW, the third part of FSWs includes FSWs in the first cell other than the second part of FSWs, and the second target FSW is the FSW directly connected to the first FSW in the first cell or the FSW directly connected to the last FSW in the first cell.

[0111] Preferably, the second detection module 63 is specifically used to update the cells where all the pRRUs under the FSW in the second cell are located in the following manner, specifically including:

[0112] If the third FSW is the first FSW in the second cell or the last FSW in the second cell, deleting the third FSW from the second cell;

[0113] If the third FSW is neither the first FSW nor the last FSW in the second cell, the third FSW is deleted from the second cell, and when there is no FSW directly connected to the BBU in the second cell, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located, or the pRRU under the fourth FSW located after the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located; or,

[0114] When there is a FSW directly connected to the BBU in the second cell, if the first fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW behind the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located;

[0115] If the last fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located.

[0116] Preferably, the third detection module 64 is specifically configured to update the cells where all the pRRUs connected to the FSW in the third cell are located by:

[0117] If the seventh FSW is the first FSW in the third cell or the last FSW in the third cell, deleting the seventh FSW from the third cell;

[0118] If the seventh FSW is neither the first FSW nor the last FSW in the third cell, the seventh FSW is deleted from the third cell, and when there is no FSW directly connected to the BBU in the third cell, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located, or the pRRU under the eighth FSW located after the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located; or,

[0119] When there is a FSW directly connected to the BBU in the third cell, if the first eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW behind the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located;

[0120] If the last eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located.

[0121] Preferably, the device further comprises:

[0122] Processing Module( Figure 6), which is used for blocking the secondary port if the forward Hello message is received again through the secondary port and the reverse Hello message is received again through the primary port after the first detection module, the second detection module or the third detection module unblocks the secondary port, and sending a fourth Common-Flush-FDB message to all FSWs based on the topological relationship of all current FSWs; if there is a ninth FSW without a cell among all current FSWs, merging the pRRU under the ninth FSW into the cell where a FSW directly connected to the ninth FSW is located.

[0123] It can be seen from the above technical solution that in the embodiment of the present application, the BBU in the 5G fronthaul network with a ring network mode can send a forward Hello message through the main port, send a reverse Hello message through the secondary port, and receive a LinkDown message through the main port and / or the secondary port to detect a failed link, an abnormal FSW or a failed FSW, and unblock the blocked secondary port. Based on the topological relationship of all current FSWs, relevant Common-Flush-FDB messages are sent to all FSWs, so that the relevant FSWs update the corresponding forwarding table and update the cell where the pRRU under the relevant FSW is located, thereby improving network stability.

[0124] The present application also provides an electronic device, such as Figure 7 As shown, it includes a processor 71 and a machine-readable storage medium 72, wherein the machine-readable storage medium 72 stores machine-executable instructions that can be executed by the processor 71, and the processor 71 is prompted by the machine-executable instructions to implement the steps of the above-mentioned fault detection method.

[0125] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.

[0126] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0127] In another embodiment provided in the present application, 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 the above-mentioned fault detection method are implemented.

[0128] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A fault detection method, characterized in that: The method is applied to a baseband processing unit BBU in a 5G fronthaul network, wherein the 5G fronthaul network also includes a plurality of extension units FSW, each FSW is hung with at least one small radio remote unit pRRU, and the networking mode of the 5G fronthaul network is a ring network mode, and the method includes: According to the preset period, a forward handshake Hello message is sent through the primary port on itself, and a reverse Hello message is sent through the secondary port on itself, wherein the source MAC address of the forward Hello message is the MAC address of the primary port, the destination MAC address of the forward Hello message is the MAC address of the secondary port, the source MAC address of the reverse Hello message is the MAC address of the secondary port, and the destination MAC address of the reverse Hello message is the MAC address of the secondary port; If a first link failure Linkdown message sent by the first FSW when a port failure is detected is received through the primary port, and a second Linkdown message sent by the second FSW directly connected to the first FSW when a port failure is detected is received through the secondary port, it is determined that a link between the first FSW and the second FSW fails, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a first Common-Flush-FDB message for updating a forwarding table is sent to all FSWs, and when the pRRUs attached to the first FSW and the pRRUs attached to the second FSW are in the same first cell, the cells where the pRRUs attached to all FSWs in the first cell are located are updated according to a preset first cell update strategy; If a third Linkdown message sent by the same third FSW is received through the primary port and the secondary port, or the third Linkdown message is received through any one of the primary port and the secondary port, it is determined that the third FSW is abnormal, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a second Common-Flush-FDB message is sent to other FSWs except the third FSW, and when a pRRU hung under the fourth FSW exists in the second cell where the pRRU hung under the third FSW is located, the cell where all the pRRUs hung under the FSW in the second cell are located is updated according to a preset second cell update strategy; If a fourth Linkdown message sent by a fifth FSW is received through the primary port, a fifth Linkdown message sent by a sixth FSW is received through the secondary port, and a seventh FSW is connected between the fifth FSW and the sixth FSW, it is determined that the seventh FSW fails, the blocked secondary port is unblocked, and based on the topological relationship of all current FSWs, a third Common-Flush-FDB message is sent to other FSWs except the seventh FSW, and when a pRRU hung under the eighth FSW exists in the third cell where the pRRU hung under the seventh FSW is located, the cells where the pRRUs hung under all FSWs in the third cell are located are updated according to a preset third cell update strategy; The third Linkdown message is sent by the third FSW through the first port and the second port respectively when the third FSW receives the forward Hello message through the first port on itself but fails to forward the forward Hello message through the second port on itself, or receives the reverse Hello message through the second port but fails to forward the reverse Hello message through the first port; The fourth Linkdown message is sent by the fourth FSW through the third port when the fourth FSW does not receive the forward Hello message again within a first set time period after receiving the forward Hello message through the third port on the fourth FSW and no port failure is detected; The fifth Linkdown message is sent by the fifth FSW through the fourth port when the fifth FSW does not receive the reverse Hello message again within a second set time period after receiving the reverse Hello message through the fourth port on the fifth FSW.

2. The method according to claim 1, characterized in that According to the preset first cell update strategy, the cells where all the pRRUs attached to the FSW in the first cell are located are updated, specifically including: If the number of cells in the 5G fronthaul network reaches a set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs hung under the first part of the FSW in the first cell are merged into the cell where the pRRU hung under the first target FSW is located, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs hung under any one of the second part of the FSW and the third part of the FSW in the cell are merged into the cell where the pRRU hung under the second target FSW is located; If the number of cells in the 5G fronthaul network does not reach the set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs under the first part of the FSW are merged into a new cell, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs under any one of the second part of the FSW and the third part of the FSW are merged into a new cell; Wherein, when there are only two FSWs in the first cell, the first part of the FSWs includes the FSW that is not directly connected to the BBU among the first FSW and the second FSW, and the first target FSW is the FSW that is directly connected to the FSW that is not directly connected to the BBU; the second part of the FSWs includes any FSW among the first FSW and the second FSW, the third part of the FSWs includes the FSWs in the first cell except the second part of the FSWs, and the second target FSW is the FSW that is directly connected to the first FSW or the second FSW; or, When there are more than two FSWs in the first cell, all FSWs in the first cell are adjacent to each other. If the first FSW is the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW is directly connected to the BBU, the first part of FSWs includes FSWs other than the first FSW in the first cell, and the first target FSW is a FSW directly connected to the last FSW in the first part of FSWs, or, when the first FSW is not directly connected to the BBU, the first part of FSWs includes the first FSW, and the first target FSW is a FSW directly connected to the first FSW; the second part of FSWs includes the first FSW or the FSWs other than the first FSW in the first cell, the third part of FSWs includes FSWs other than the second part of FSWs in the first cell, and the second target FSW is a FSW directly connected to the first FSW or the last FSW in the first cell; If the first FSW is not the first FSW in the first cell, and the second FSW is the last FSW in the first cell, then when the second FSW is directly connected to the BBU, the first part of FSWs includes FSWs other than the second FSW in the first cell, and the first target FSW is a FSW directly connected to the first FSW in the first part of FSWs, or, when the second FSW is not directly connected to the BBU, the first part of FSWs includes the second FSW, and the first target FSW is a FSW directly connected to the second FSW; the second part of FSWs includes the second FSW or the FSW other than the second FSW in the first cell, the third part of FSWs includes the FSWs other than the second part of FSW in the first cell, and the second target FSW is a FSW directly connected to the second FSW or the first FSW in the first cell; If the first FSW is not the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW in the first cell is directly connected to the BBU, the first part of FSWs includes the second FSW and the FSW in the first cell that is located behind the second FSW, and the first target FSW is the FSW directly connected to the last FSW in the first part of FSWs, or, when the last FSW in the first cell is directly connected to the BBU, the first part of FSWs includes the first FSW and the FSW in the first cell that is located before the first FSW, and the first target FSW is the FSW directly connected to the first FSW in the first part of FSWs; the second part of FSWs includes the first FSW and the FSW in the first cell that is located before the first FSW, or the second part of FSWs includes the second FSW and the FSW in the first cell that is located behind the second FSW, the third part of FSWs includes FSWs in the first cell other than the second part of FSWs, and the second target FSW is the FSW directly connected to the first FSW in the first cell or the FSW directly connected to the last FSW in the first cell.

3. The method according to claim 1, characterized in that According to a preset second cell update strategy, updating the cells where all pRRUs attached to the FSWs in the second cell are located, specifically including: if the third FSW is the first FSW in the second cell or the last FSW in the second cell, deleting the third FSW from the second cell; If the third FSW is neither the first FSW nor the last FSW in the second cell, the third FSW is deleted from the second cell, and when there is no FSW directly connected to the BBU in the second cell, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located, or the pRRU under the fourth FSW located after the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located; or, When there is a FSW directly connected to the BBU in the second cell, if the first fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW behind the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located; If the last fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located.

4. The method according to claim 1, characterized in that According to the preset third cell update strategy, the cells where all the pRRUs under the FSW in the third cell are located are updated, specifically including: If the seventh FSW is the first FSW in the third cell or the last FSW in the third cell, deleting the seventh FSW from the third cell; If the seventh FSW is neither the first FSW nor the last FSW in the third cell, the seventh FSW is deleted from the third cell, and when there is no FSW directly connected to the BBU in the third cell, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located, or the pRRU under the eighth FSW located after the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located; or, When there is a FSW directly connected to the BBU in the third cell, if the first eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW behind the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located; If the last eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located.

5. The method according to claim 1, characterized in that The method further comprises: After the blocked secondary port is unblocked, if the forward Hello message is received again through the secondary port and the reverse Hello message is received again through the primary port, the secondary port is blocked, and a fourth Common-Flush-FDB message is sent to all FSWs based on the topological relationship of all current FSWs; If there is a ninth FSW without a cell among all the current FSWs, the pRRUs under the ninth FSW are merged into the cell where a FSW directly connected to the ninth FSW is located.

6. A fault detection device, characterized in that: The device is applied to a baseband processing unit BBU in a 5G fronthaul network, wherein the 5G fronthaul network also includes a plurality of expansion units FSW, each FSW is hung with at least one small radio remote unit pRRU, and the networking mode of the 5G fronthaul network is a ring network mode, and the device includes: A sending module, used to send a forward handshake Hello message through its own primary port and send a reverse Hello message through its own secondary port according to a preset period, wherein the source MAC address of the forward Hello message is the MAC address of the primary port, the destination MAC address of the forward Hello message is the MAC address of the secondary port, the source MAC address of the reverse Hello message is the MAC address of the secondary port, and the destination MAC address of the reverse Hello message is the MAC address of the secondary port; A first detection module is configured to determine that a link between the first FSW and the second FSW fails if a first link failure Linkdown message sent by the first FSW when a port failure is detected is received through the primary port, and a second Linkdown message sent by the second FSW directly connected to the first FSW when a port failure is detected is received through the secondary port, unblock the secondary port, send a first Common-Flush-FDB message for updating a forwarding table to all FSWs based on the topological relationship of all current FSWs, and update the cells where all the pRRUs hung under the FSWs in the first cell are located according to a preset first cell update strategy when the pRRUs hung under the first FSWs and the pRRUs hung under the second FSWs are in the same first cell; A second detection module is configured to determine that an abnormality occurs in the third FSW if a third Linkdown message sent by the same third FSW is received through the primary port and the secondary port, or the third Linkdown message is received through any one of the primary port and the secondary port, unblock the secondary port, send a second Common-Flush-FDB message to other FSWs except the third FSW based on the topological relationship of all current FSWs, and when a pRRU hung under a fourth FSW exists in a second cell where a pRRU hung under the third FSW is located, update the cells where all the pRRUs hung under the FSWs in the second cell are located according to a preset second cell update strategy; a third detection module, configured to determine that the seventh FSW fails if a fourth Linkdown message sent by the fifth FSW is received through the primary port, a fifth Linkdown message sent by the sixth FSW is received through the secondary port, and a seventh FSW is connected between the fifth FSW and the sixth FSW, unblock the blocked secondary port, send a third Common-Flush-FDB message to other FSWs except the seventh FSW based on the topological relationship of all current FSWs, and when a pRRU hung under the eighth FSW exists in the third cell where the pRRU hung under the seventh FSW is located, update the cells where all the pRRUs hung under the FSWs in the third cell are located according to a preset third cell update strategy; The third Linkdown message is sent by the third FSW through the first port and the second port respectively when the third FSW receives the forward Hello message through the first port on itself but fails to forward the forward Hello message through the second port on itself, or receives the reverse Hello message through the second port but fails to forward the reverse Hello message through the first port; The fourth Linkdown message is sent by the fourth FSW through the third port when the fourth FSW does not receive the forward Hello message again within a first set time period after receiving the forward Hello message through the third port on the fourth FSW and no port failure is detected; The fifth Linkdown message is sent by the fifth FSW through the fourth port when the fifth FSW does not receive the reverse Hello message again within a second set time period after receiving the reverse Hello message through the fourth port on the fifth FSW.

7. The device according to claim 6, characterized in that The first detection module is specifically configured to update the cell where the pRRUs attached to the first FSW and the second FSW are located in the following manner: If the number of cells in the 5G fronthaul network reaches a set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs hung under the first part of the FSW in the first cell are merged into the cell where the pRRU hung under the first target FSW is located, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs hung under any one of the second part of the FSW and the third part of the FSW in the cell are merged into the cell where the pRRU hung under the second target FSW is located; If the number of cells in the 5G fronthaul network does not reach the set number, when there is a FSW directly connected to the BBU in the first cell, the pRRUs under the first part of the FSW are merged into a new cell, or, when there is no FSW directly connected to the BBU in the first cell, the pRRUs under any one of the second part of the FSW and the third part of the FSW are merged into a new cell; Wherein, when there are only two FSWs in the first cell, the first part of the FSWs includes the FSW that is not directly connected to the BBU among the first FSW and the second FSW, and the first target FSW is the FSW that is directly connected to the FSW that is not directly connected to the BBU; the second part of the FSWs includes any FSW among the first FSW and the second FSW, the third part of the FSWs includes the FSWs in the first cell except the second part of the FSWs, and the second target FSW is the FSW that is directly connected to the first FSW or the second FSW; or, When there are more than two FSWs in the first cell, all FSWs in the first cell are adjacent to each other. If the first FSW is the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW is directly connected to the BBU, the first part of FSWs includes FSWs other than the first FSW in the first cell, and the first target FSW is a FSW directly connected to the last FSW in the first part of FSWs, or, when the first FSW is not directly connected to the BBU, the first part of FSWs includes the first FSW, and the first target FSW is a FSW directly connected to the first FSW; the second part of FSWs includes the first FSW or the FSWs other than the first FSW in the first cell, the third part of FSWs includes FSWs other than the second part of FSWs in the first cell, and the second target FSW is a FSW directly connected to the first FSW or the last FSW in the first cell; If the first FSW is not the first FSW in the first cell, and the second FSW is the last FSW in the first cell, then when the second FSW is directly connected to the BBU, the first part of FSWs includes FSWs other than the second FSW in the first cell, and the first target FSW is a FSW directly connected to the first FSW in the first part of FSWs, or, when the second FSW is not directly connected to the BBU, the first part of FSWs includes the second FSW, and the first target FSW is a FSW directly connected to the second FSW; the second part of FSWs includes the second FSW or the FSW other than the second FSW in the first cell, the third part of FSWs includes the FSWs other than the second part of FSW in the first cell, and the second target FSW is a FSW directly connected to the second FSW or the first FSW in the first cell; If the first FSW is not the first FSW in the first cell and the second FSW is not the last FSW in the first cell, then when the first FSW in the first cell is directly connected to the BBU, the first part of FSWs includes the second FSW and the FSW in the first cell that is located behind the second FSW, and the first target FSW is the FSW directly connected to the last FSW in the first part of FSWs, or, when the last FSW in the first cell is directly connected to the BBU, the first part of FSWs includes the first FSW and the FSW in the first cell that is located before the first FSW, and the first target FSW is the FSW directly connected to the first FSW in the first part of FSWs; the second part of FSWs includes the first FSW and the FSW in the first cell that is located before the first FSW, or the second part of FSWs includes the second FSW and the FSW in the first cell that is located behind the second FSW, the third part of FSWs includes FSWs in the first cell other than the second part of FSWs, and the second target FSW is the FSW directly connected to the first FSW in the first cell or the FSW directly connected to the last FSW in the first cell.

8. The device according to claim 6, characterized in that The second detection module is specifically configured to update the cells where all the pRRUs connected to the FSW in the second cell are located in the following manner: If the third FSW is the first FSW in the second cell or the last FSW in the second cell, deleting the third FSW from the second cell; If the third FSW is neither the first FSW nor the last FSW in the second cell, the third FSW is deleted from the second cell, and when there is no FSW directly connected to the BBU in the second cell, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located, or the pRRU under the fourth FSW located after the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located; or, When there is a FSW directly connected to the BBU in the second cell, if the first fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW behind the third FSW in the second cell is merged into the cell where the last FSW directly connected to the fourth FSW in the second cell is located; If the last fourth FSW in the second cell is directly connected to the BBU, the pRRU under the fourth FSW located before the third FSW in the second cell is merged into the cell where the first FSW directly connected to the fourth FSW in the second cell is located.

9. The device according to claim 6, characterized in that The third detection module is specifically configured to update the cell where the pRRU attached to the eighth FSW is located in the following manner: If the seventh FSW is the first FSW in the third cell or the last FSW in the third cell, deleting the seventh FSW from the third cell; If the seventh FSW is neither the first FSW nor the last FSW in the third cell, the seventh FSW is deleted from the third cell, and when there is no FSW directly connected to the BBU in the third cell, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located, or the pRRU under the eighth FSW located after the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located; or, When there is a FSW directly connected to the BBU in the third cell, if the first eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW behind the seventh FSW in the third cell is merged into the cell where the last FSW directly connected to the eighth FSW in the third cell is located; If the last eighth FSW in the third cell is directly connected to the BBU, the pRRU under the eighth FSW located before the seventh FSW in the third cell is merged into the cell where the first FSW directly connected to the eighth FSW in the third cell is located.

10. The device according to claim 6, characterized in that The device also includes: a processing module, configured to block the secondary port if the forward Hello message is received again through the secondary port and the reverse Hello message is received again through the primary port after the first detection module, the second detection module or the third detection module unblocks the secondary port, and send a fourth Common-Flush-FDB message to all FSWs based on the topological relationship of all current FSWs; if a ninth FSW without a cell exists among all current FSWs, merge the pRRU under the ninth FSW into the cell where a FSW directly connected to the ninth FSW is located.

11. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 5.

12. 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 of any one of claims 1 to 5 are implemented.